sudo mkdir /mnt/newdrive sudo mount -t ext3 /dev/hdb1 /mnt/newdrive/ sudo mkdir /mnt/newdrive/home.new sudo cp -R -p /home/[user] /mnt/newdrive/home.new/ sudo chown [user]:[user] /mnt/newdrive/home.new/[user] sudo umount /mnt/newdrive/
sudo pico /etc/fstab在主分区和交换分区条目后面加上以下行:
/dev/hdb1 /home ext3 defaults,errors=remount-ro 0 1按 [CTRL] + [o] 键保存文件. 按 [CTRL] + [x] 退出 Pico程序.
sudo mv /home /home.old sudo mkdir /home sudo mount -a
sudo apt-get update sudo apt-get upgrade
sudo apt-get install nvidia-glx nvidia-settings sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.nvidia-driver.backup sudo nvidia-glx-config enable
sudo gedit /usr/share/applications/NVIDIA-Settings.desktop在文件中添加以下行:
[Desktop Entry] Name=NVIDIA Settings Comment=NVIDIA Settings Exec=nvidia-settings Icon= Terminal=false Type=Application Categories=Application;System;
sudo gedit /etc/X11/xorg.conf编辑xorg.conf文件并找到以下项:
... Section "Device" Identifier "NVIDIA Corporation NV11 [GeForce2 MX/MX 400]" Driver "nvidia" BusID "PCI:1:0:0" ...在下面添加以下这一行:
Option "NoLogo"
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.5-button-mouse.backup
sudo gedit /etc/X11/xorg.conf替换下面项目:
Section "InputDevice" Identifier "mouse.usb" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "IMPS/2" Option "Emulate3Buttons" "YES" Option "ZAxisMapping" "4 5" EndSection为:
Section "InputDevice" Identifier "mouse.usb" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ExplorerPS/2" Option "Buttons" "7" Option "ZAxisMapping" "4 5" EndSection
(参照 http://ubuntuguide.org/#speedupcddvdrom.)
sudo hdparm -d1 /dev/cdrom sudo cp /etc/hdparm.conf /etc/hdparm.conf_backup sudo gedit /etc/hdparm.conf
/dev/cdrom { dma = on }
(参照 http://ubuntuguide.org/#configuresoundproperly.)
gnome-theme-manager点击 "Theme Details", 设置 "Set Controls = Glider, Window Border = Mist, Icons = GNOME".
gnome-font-properties设置 "App = Sans 8, Desktop = Sans 8, Window title = Sans 8, Terminal = FreeMono 10".
gconf-editor选择 "apps / nautilus / preferences" 并选中 "always use browser".
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo gedit /etc/apt/sources.list添加以下行(注:由于国内的设置不一样,该项请参照ubuntu.com.cn网站上公布的配置):
# deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main restricted # Example sources.list for Ubuntu 5.10 "The Breezy Badger" release ## All officially supported packages, including security- and other updates deb http://us.archive.ubuntu.com/ubuntu breezy main restricted deb-src http://us.archive.ubuntu.com/ubuntu breezy main restricted deb http://security.ubuntu.com/ubuntu breezy-security main restricted deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted deb http://us.archive.ubuntu.com/ubuntu breezy-updates main restricted deb-src http://us.archive.ubuntu.com/ubuntu breezy-updates main restricted ## All community supported packages, including security- and other updates deb http://us.archive.ubuntu.com/ubuntu breezy universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu breezy universe multiverse deb http://security.ubuntu.com/ubuntu breezy-security universe multiverse deb-src http://security.ubuntu.com/ubuntu breezy-security universe multiverse deb http://us.archive.ubuntu.com/ubuntu breezy-updates universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu breezy-updates universe multiverse ## libdvdcss2, w32codecs # deb ftp://ftp.nerim.net/debian-marillat/ etch main # deb http://ubuntu-backports.mirrormax.net/ breezy-extras-staging main restricted universe multiverse ## jedit # deb http://dl.sourceforge.net/sourceforge/jedit ./ # deb-src http://dl.sourceforge.net/sourceforge/jedit ./ ## hoary-extras - the most widely used source for packages not includded in Ubuntu ## no guarantees on working - not enabled by default # deb http://public.planetmirror.com/pub/ubuntu-backports/ hoary-extras main universe multiverse restricted
sudo apt-get update
sudo apt-get install msttcorefonts
(参考 http://ubuntuguide.org/#codecs.)
sudo gedit /etc/apt/sources.list在最后添加以下行:
deb ftp://ftp.nerim.net/debian-marillat/ etch main保存文件.
sudo apt-get update sudo apt-get install w32codecs sudo apt-get install libdvdcss2
sudo gedit /etc/apt/sources.list取消下面行前面的注释符号:
deb ftp://ftp.nerim.net/debian-marillat/ etch main保存文件.
sudo apt-get update
cd ~/ sudo dpkg -i w32codecs_*.deb sudo /usr/share/doc/libdvdread3/examples/install-css.sh
sudo apt-get install libmad0 libdvdread3
sudo apt-get install lame sox ffmpeg mjpegtools vorbis-tools
sudo apt-get install gstreamer0.8-misc gstreamer0.8-plugins gstreamer0.8-plugins-multiverse gstreamer0.8-ffmpeg gst-register-0.8
sudo apt-get install totem-xine gedit ~/.xine/config修改下面行:
video.driver:xv
sudo apt-get install gxine gedit ~/.gxine/config修改下面行:
video.driver:xv
sudo apt-get install mplayer-386 mozilla-mplayer sudo cp /etc/mplayer/mplayer.conf /etc/mplayer/mplayer.conf_backup sudo gedit /etc/mplayer/mplayer.conf查找:
vo=x11,替换为:
vo=xv,
sudo apt-get install vlc
xine-check
cp ~/.xine/catalog.cache ~/.xine/catalog.cache.backup gedit ~/.xine/catalog.cache查找下面段:
[/usr/lib/xine/plugins/1.0.0/xineplug_decode_w32dll.so] size=173768 mtime=1112804124 type=131 api=15 id=win32a version=10000 supported_types=50593792 52428800 52822016 ... (long line truncated) decoder_priority=1替换为其中一行:
decoder_priority=1为:
decoder_priority=7
sudo cp /usr/share/applications/defaults.list /usr/share/applications/defaults.list_backup sudo sed -e 's/totem.desktop/gxine.desktop/g' /usr/share/applications/defaults.list_backup > /tmp/defaults.list sudo mv /tmp/defaults.list /usr/share/applications/defaults.list killall gnome-panel killall nautilus
gconftool-2 --type string --set /desktop/gnome/volume_manager/autoplay_dvd_command "gxine dvd://"
sudo ln -fs /usr/lib/gxine/gxineplugin.a /usr/lib/mozilla-firefox/plugins/ sudo ln -fs /usr/lib/gxine/gxineplugin.la /usr/lib/mozilla-firefox/plugins/ sudo ln -fs /usr/lib/gxine/gxineplugin.so /usr/lib/mozilla-firefox/plugins/
sudo apt-get install timidity timidity-interfaces-extra freepats
timidity -ig [file]
sudo apt-get install gparted
sudo apt-get install mozilla-thunderbird
sudo apt-get install smeg
sudo apt-get install gnomebaker
sudo apt-get install acroread mozilla-acroread
sudo gedit /usr/share/applications/defaults.list将:
application/pdf=evince.desktop替换为:
application/pdf=AdobeReader.desktop
sudo apt-get install flashplayer-mozilla
sudo mount /dev/hdb1 [mount_point_dir] -t ext3
sudo mount /dev/hda1 [mount_point_dir] -t ntfs -o nls=utf8,umask=0222
sudo mount /dev/hda1 [mount_point_dir] -t vfat -o iocharset=utf8,umask=000
sudo mount /media/cdrom0/ -o unhide
sudo modprobe loop sudo mount file.iso /media/iso/ -t iso9660 -o loop -r
sudo umount [mount_point_dir]
sudo umount [mount_point_dir] -l
dd if=/dev/[device] of=file.iso bs=1024
mkisofs -o file.iso [dir]
md5sum file.iso > file.iso.md5
md5sum -c file.iso.md5
sudo apt-get install tetex-base tetex-bin tetex-extra
sudo apt-get install build-essential sudo apt-get install manpages-dev autoconf automake libtool sudo apt-get install flex bison gcc-doc g++
sudo apt-get install libxxf86vm-dev nvidia-glx-dev sudo apt-get install libsdl1.2-dev libsdl-ttf2.0-dev libsdl-image1.2-dev libsdl-mixer1.2-dev sudo apt-get install libsdl-sound1.2-dev libsdl-net1.2-dev
sudo apt-get install x-window-system-dev libgtk1.2-dev libpng-dev libxxf86vm-dev
sudo apt-get install cvs
sudo apt-get install vim-gnome
gedit ~/.vimrc添加下面行:
set ruler set showcmd set incsearch set history=500 set expandtab set tabstop=4 set autoindent set shiftwidth=4 colorscheme desert if has("vms") set nobackup else set backup endif if &t_Co > 2 || has("gui_running") syntax on set hlsearch endif
sudo gedit /usr/share/applications/gvim.desktop添加下面行:
[Desktop Entry] Encoding=UTF-8 Name=gvim Comment=Edit text files Exec=gvim --remote-silent %U TryExec=gvim Terminal=false Type=Application StartupNotify=false MimeType=text/plain; Icon=text-editor Categories=GNOME;Application;Utility;TextEditor;保存文件.
sudo gedit /usr/share/applications/defaults.list替换该行:
text/plain=gedit.desktop为:
text/plain=gvim.desktop
(参照 https://wiki.ubuntu.com/JavaPackageBuildNewVersions.)
sudo apt-get install java-package java-common sudo apt-get install build-essential
sudo apt-get install fakeroot fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin sudo dpkg -i sun-j2re1.5_1.5.0+update06_i386.deb
sudo update-alternatives --config java选择 sun java 选项.
sudo gedit /etc/apt/sources.list添加以下行:
deb http://dl.sourceforge.net/sourceforge/jedit ./ deb-src http://dl.sourceforge.net/sourceforge/jedit ./保存文件.
sudo apt-get update sudo apt-get install jedit
sudo gedit /usr/bin/jedit替换:
... ${JEDIT} -jar "/usr/share/jedit/jedit.jar" $@为:
... ${JEDIT} -jar "/usr/share/jedit/jedit.jar" -reuseview $@
sudo apt-get install scummvm sudo apt-get install beneath-a-steel-sky flight-of-the-amazon-queen
(参见 http://www.cs.cornell.edu/support/.)
pico ~/.ssh/config添加下面行:
host herakles hostname herakles.cs.cornell.edu user djm ForwardAgent yes LocalForward 2001 lion.cs.cornell.edu:22 IdentityFile ~/.ssh/herakles/id_dsa host lion hostname localhost user djm ForwardX11 yes port 2001 LocalForward 2002 smtp.cs.cornell.edu:25 LocalForward 2003 popsrv.cs.cornell.edu:110 LocalForward 2004 blather.cs.cornell.edu:515 LocalForward 2005 falcon.cs.cornell.edu:139 LocalForward 2006 cucsfs1.cs.cornell.edu:139 LocalForward 2007 [office_computer_name].u.cs.cornell.edu:3389 IdentityFile ~/.ssh/id_dsa
ssh -N -f herakles ssh -N -f lion
rdesktop -r disk:sync=/home/[local_dir] localhost:2007注意 disk:sync 要设置为绝对路径.
(参见http://www.cs.cornell.edu/support/Linux/smbmount.htm.)
ssh -N -f herakles ssh -N -f -L2006:cucsfs1.cs.cornell.edu:139 lion
smbclient //cucsfs1.cs.cornell.edu/a -U [user_name] -W CUCS -I localhost -p 2006或者
smbmount //localhost/a [local_dir] -o port=2006,username=[user_name],workgroup=CUCS smbumount [local_dir]
cd [dir] find . -name "*.afm" -exec rm {} \;
sudo cp /usr/share/applications/defaults.list /usr/share/applications/defaults.list.backup
sudo gedit /usr/share/applications/defaults.list添加/修改 类似的项:
[mime-type]=[new-app].desktop查找安装了的软件:
ls /usr/share/applications/*.desktop查找安装了的MIME类型:
ls /usr/share/applications/mime/[text|image|...]
killall gnome-panel killall nautilus
本文中大部分的信息来自: