编辑apt-get源(推荐使用http://ubuntu.csie.ntu.edu.tw/……):
gksu gedit /etc/apt/sources.list
更新源列表(换源后执行):
sudo apt-get update
更新软件 :
sudo apt-get dist-upgrade
编辑Grub菜单:
sudo gedit /boot/grub/menu.lst
在英文系统下输入中文:
sudo apt-get install scim scim-modules-socket scim-pinyin scim-gtk2-immodule im-switch libapt-pkg-perl
sudo im-switch -s scim -z default
gksu gedit /etc/X11/xinit/xinput.d/scim
Changes:
GTK_IM_MODULE="scim-bridge"
QT_IM_MODULE="scim-bridge"
使Gedit自动识别中文文本:
(Applications - System Tools - gconf-editor)
/ - Apps - gedit-2 - preferences - encodings -
auto_detected [CURRENT,GB18030,GBK,GB2312,UTF-8,UTF-16]
shown_in_menu [GB18030,GB2312,UTF-8]
使Evince/Xpdf支持中文:
sudo apt-get install xpdf-chinese-simplified
打开光盘时中文显示为乱码:
在options里添加iocharset=utf8
/dev/cdrom /media/cdrom0 udf,iso9660 user,noauto,iocharset=utf8 0 0
linux开机时并行启动进程,加速跳转到图形登录界面:
编辑/etc/init.d/rc:查找CONCURRENCY的参数,将none改为shell
开机时不自动检查Windows的磁盘:
在/etc/fstab中将 vfat/ntfs格式的磁盘所在行最后一个数字 1更改为0
动态禁用触摸板:
先安装"gsynaptics"。
sudo gedit /etc/X11/xorg.conf
修改此部分:
Section "InputDevice"
Identifier "Synaptics Touchpad"
添加这一行用于在开机时自动禁用:
Option "TouchpadOff" "1"
添加这一行可以实现通过输入"synclient touchpadoff=0"来临时开启触摸板(1用于禁用):
Option "SHMConfig" "on"
添加Windows常用字体:
1. cd /usr/share/fonts/zh_CN/TrueType/
2. cp [windows fonts]/simsun.ttf... ./
3. mkfontscale
4. mkfontdir
5. fc-cache /usr/share/fonts/zh_CN/TrueType/
更简单的方法:
apt-get install msttcorefonts
设置使用 CTRL+ALT+DELETE 打开 gnome-system-monitor:
gconftool-2 -t str --set /apps/metacity/global_keybindings/run_command_9 "
gconftool-2 -t str --set /apps/metacity/keybinding_commands/command_9 "gnome-system-monitor"
直接从 Configuration Tools 里修改也可
自定义快捷键:
方法一:System->Preference->Control Center->Keyboard Shortcuts
方法二:输入 gconf-editor或Application->System Tools->Configuration Editor
路径:/apps/metacity/
在global_keybinding中设置一个快捷键,如
在window_commands中定义该快捷键的命令,如nautilus(文件浏览器)
目前还定义了
安装NVIDIA驱动://////未能成功
[http://www.phpwind.net/simple/index.php?t378644.html&t=1]
firefox的backspace键设置:
firefox地址栏:about:config
filter:backspace
browser.backspace_action value=0 for backward; 1 for down page
Windows中firefox的默认字体设置:
西方:比例:衬线字体;衬线:Times New Roman;无衬线:Arial;等宽:Courier New;16;13;允许
简体中文:比例:无衬线;其它:宋体;16;16;允许
安装Mplayer:
sudo apt-get install mplayer-fonts mplayer mplayer-skins mozilla-mplayer
在开始用它进行视频播放前还需要进行以下设置(先启动它),然后右键弹出主菜单 -> Preferences/属性 -> Video/视频,在"Available drivers/可用驱动"中选择"x11"或"xv",在同一窗口下半部份钩上"允许掉帧/Enable frame dropping"。
解决mplayer在宽屏显示器上全屏播放画面比例失调:
在~/.mplayer/config中添加一行:monitoraspect=1280:800
在命令行中使用mplayer播放播放列表:mplayer -playlist LISTNAME.pls
主要快捷键:<、>用于切换曲目;9、0用于调整音量;方向键用于控制进度
设置SAMBA文件共享:
sudo apt-get install samba
sudo apt-get install smbfs
mkdir /home/username/share
chmod 777 /home/username/share
sudo vi /etc/samba/smb.conf
查找: ; security = user
替换为: security = user
username map = /etc/samba/smbusers
添加:[Share]
comment = Shared Folder with username and password
path = /home/username/share
public = yes
writable = yes
valid users = guest
create mask = 0700
directory mask = 0700
force user = nobody
force group = nogroup
available = yes
browseable = yes
修改:[global]
workgroup = WORKGROUP
display charset = UTF-8
unix charset = UTF-8
dos charset = cp936
添加新用户guest: sudo useradd guest
sudo smbpasswd -a guest
sudo vi /etc/samba/smbusers
添加: guest = "Network username"
删除帐号用: sudo smbpasswd -x guest
sudo testparm
sudo /etc/init.d/samba restart
重新登录或重启即可。
启用红外:
首先要在BIOS中激活电脑的红外端口(使用COM4)
1 安装操纵红外端口的工具
sudo apt-get install irda-utils openobex-apps
2 加载模块
sudo modprobe irda irtty_sir sir_dev
若要开机自动加载,修改/etc/modules文件,
将irda,irtty_sir,sir_dev三个模块依次写在文件的末尾
3 测试红外是否工作
sudo irdadump
4 发送文件到手机
irobex_palm3 PATH_OF_FILE
5 从手机接收文件,文件自动保存在用户文件夹内
irobex_palm3
vim的设置:
创建 ~/.vimrc 文件,添加以下内容:
" References:
" http://edyfox.codecarver.org/html/_vimrc_for_beginners.html
" http://sm4llb0y.blog.163.com/blog/static/18912397200732081752824
" Not Compatible with vi
set nocp
" Show Ruler
set ru
" High Light Selection
set hls
" Finding while typing
set is
" Color Keywords
syntax on
" Backspace could DELETE indent, End of line, Old text
set backspace=indent,eol,start
set whichwrap=b,s,<,>,[,]
" Encoding. Using fileencoding for Code convertion
set encoding=utf-8
set ambiwidth=double
" auto indent: 4 spaces
set sw=4
" Tab width: 4
set ts=4
" Replace Tab with Spaces while Editing. using :retab for exist Tabs
" set et
" Delete 4 spaces(1 tab) at once
" set smarttab
" break long line at space but not letter
set lbr
" Support for Asia Language
set fo+=mB
"//// for C/C++
" show matching bracket
set sm
" auto indent for C
set cin
set cino=:0g0t0(sus
"////
" Auto Indent
set ai
set wildmenu
" color theme: gvim & vim are different
if (has("gui_running"))
colo evening
else
colo ron
endif

No comments:
Post a Comment