基础配置篇
1.修改软件源
2.解决中文乱码
gnome2下
gconf-editor
apps->gedit-2->preferences->encodings
中的auto-detected
在双击弹出对话框中加入GB18030,GBK,GB2312,然后将GB18030,GB2312移到最上
gnome3下
gsettings set org.gnome.gedit.preferences.encodings
auto-detected "['GB18030', 'GB2312', 'GBK', 'UTF-8', 'BIG5',
'CURRENT', 'UTF-16']"
gsettings set org.gnome.gedit.preferences.encodings
shown-in-menu "['GB18030', 'GB2312', 'GBK', 'UTF-8', 'BIG5',
'CURRENT', 'UTF-16']"
(sudo
yum install dconf-editor)
3.解决音乐文件名乱码
sudo apt-get install
python-mutagen
mid3iconv -e GBK *.mp3
4.一款控制触摸板开关的小软件:
sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update
sudo apt-get install touchpad-indicator
5.一款键盘大小写,数字锁定的小软件
sudo add-apt-repository ppa:tsbarnes/indicator-keylock
sudo apt-get update
sudo apt-get install indicator-keylock
6.分析软件运行频度,起到开机预载常用软件
sudo apt-get install preload
7.把home下的文件名改成英文
export LANG=en_US
xdg-user-dirs-gtk-update
export LANG=zh_CN.UTF-8
8.zip,rar,7z等压缩包支持
sudo apt-get install unrar
p7zip-rar p7zip
9.笔记本触摸板管理软件TrackPoint and TouchPad Tweeks
sudo apt-get install gpointing-device-settings
10.恢复ubuntu默认桌面的上下两栏面板
gconftool --recursive-unset /apps/panel(注意:每个斜杠 “/”
后面没有空格)
rm -rf ~/.gconf/apps/panel
pkill gnome-panel
编程环境篇:
1.编辑器(选一)
sudo apt-get install vim
sudo apt-get install emacs23
2.c/c++
sudo apt-get install build-essential
3.java
add-apt-repository "deb http://archive.canonical.com/ lucid
partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin
sudo update-java-alternatives -s java-6-sun
4.eclipse
sudo apt-get install eclipse
管理配置篇:
1.开机自启程序管理
sudo apt-get install sysv-rc-conf
2.将某用户添加到某组
修改/etc/group
或者
gpasswd -a 用户名 组名
3.更改vsftp默认目录的简单方法
修改/etc/passwd ftp用户的家目录即可
4.无底洞
/dev/null
5.dos2unix工具代替品
sudo apt-get install
tofrodos
实际上它安装了两个工具:todos(相当于unix2dos),和fromdos(相当于dos2unix)
安装完即可,现在你已经可以进行文本格式的转换啦。 比如: todos Hello.txt (即unix2dos Hello.txt) fromdos Hello.txt (即dos2unix Hello.txt)
更名步骤:
ln -s /usr/bin/todos
/usr/bin/unix2dos ln -s /usr/bin/fromdos /usr/bin/dos2unix 或者在 ~/.bashrc里起个别名
vi ~/.bashrc
添加 alias unix2dos=todos alias dos2unix=fromdos