Ps: I have been using ubuntu. I prefer debian Linux compared to RedHat. I'm looking forward to Ubuntu 9.04, but it seems that I can't wait for the pull (Ubuntu 8.04 is good, but considering the Rapid Upgrade of the kernel, I can't just choose to use Ubuntu. Here we only make a quick configuration record. If not stated, all permissions are operated under root. Switch to root permissions, sudo-s1, update U
Ps: I have been using Ubuntu 8.04. I prefer debian Linux compared to RedHat. We are looking forward to Ubuntu 9.10, but we don't seem to be able to wait for the pull (Ubuntu 8.04 is good, but considering the Rapid Upgrade of the kernel, we can't just choose to use Ubuntu 9.04. Here we only make a quick configuration record. If not stated, all permissions are operated under root.
Switch to the root permission, sudo-s
1. Update the source of Ubuntu 9.04
Deb http://mirrors.163.com/ubuntu/ jaunty main restricted universe multiverse
Deb http://mirrors.163.com/ubuntu/ jaunty-security main restricted universe multiverse
Deb http://mirrors.163.com/ubuntu/ jaunty-updates main restricted universe multiverse
Deb http://mirrors.163.com/ubuntu/ jaunty-proposed main restricted universe multiverse
Deb http://mirrors.163.com/ubuntu/ jaunty-backports main restricted universe multiverse
The deb-src http://mirrors.163.com/ubuntu/ jaunty main restricted universe multiverse
The deb-src http://mirrors.163.com/ubuntu/ jaunty-security main restricted universe multiverse
The deb-src http://mirrors.163.com/ubuntu/ jaunty-updates main restricted universe multiverse
The deb-src http://mirrors.163.com/ubuntu/ jaunty-proposed main restricted universe multiverse
Deb-src http://mirrors.163.com/ubuntu/ jaunty-backports main restricted universe multiverse
My choice is: Netease 163 source, I personally feel that the speed is good, can be 1 M.
# Cd/etc/apt/
# Cp sources. list sources. list_back
# Gedit sources. list
# Replace the source, save and update the source
# Apt-get update
2. Update Software
# Apt-get upgrade
3. Update the system
# Apt-get dist-upgrade
Update the kernel and header file, and then restart.
4. Uninstall the old Kernel
# Uname-
# Dpkg -- get-selections | grep linux
# Apt-get remove linux-image-2.6.28-11-generic
# Apt-get autoremove
# Apt-get clean
# Dpkg-l | grep ^ rc | awk '{print $2}' | sudo xargs dpkg-P
5. Configure the programming environment
# Apt-get install manpages-dev
# Apt-get install build-essential
# Apt-get install gdb
# Apt-get install automake
# Apt-get install autoconf
# Apt-get install autogen
# Apt-get install libtool
6. Configure vim
# Apt-get install vim
# Apt-get install exuberant-ctags
# Apt-get install cscope
$ Mkdir ~ /. Vim uses common permissions to create the vim configuration directory
From http://www.vim.org/scripts/script.php? Script_id = 273 download: taglist_45.zip
Decompress the package in the vim configuration directory.
$ Ls ~ /. Vim/
Doc plugin
$ Cd ~ /. Vim/plugin
$ Wget http://cscope.sourceforge.net/cscope_maps.vim
$ Gedit ~ /. Vimrc
Copy the following content to the. vimrc file:
"Enable vim to open the last location
If has ("autocmd ")
Autocmd BufRead *. txt set tw = 78
Autocmd BufReadPost *
\ If line ("'\" ")> 0 & line ("' \ "") <= line ("$") |
\ Exe "normal! G' \ "" |
\ Endif
Endif
"Switch tag window
"Map: TlistToggle
"Imap I
Nnoremap : TlistToggle
"Use the tag window on the right
"Let Tlist_Use_Right_Window = 1
"Code folding
"Set foldmethod = manual
"General settings.
"Set nocompatible" VIM instead of VI
Set history = 50 "50 historical records
Set fenc = UTF-8 "sets the default language to 8-bit unicode
"Man Q gq" shields Q to avoid entering the Ex Mode
Filetype on "open file type detection
"Enable encoding format Recognition
Set encoding = UTF-8 "enc sets the display encoding.
Set fileencodings = ucs-bom, UTF-8, cp936 "fencs set the decoding format
"
"" Color settings.
Colorscheme delek "topic
"Colorscheme evening" topic
Syntax on "syntax highlighting
Set hls "Search for text highlighting
"Interface settings.
Set ruler "to display the current location
Set number "display row number
"" Set nonumber "does not display row numbers
"Format settings.
Set autoindent "auto indent
Set smartindent "smart indent
Set cindent "C indent
Set tabstop = 4 "Hard TAB
Set softtabstop = 4 "soft TAB
Set shiftwidth = 4 "Number of indented Spaces
Set expandtab "Space replacement TAB
"Set smarttab" smart TAB
"
Set showmatch "show matching
"Set matchtime = 5" 1/10 seconds delay
"Set hlsearch" highlight search
"Set incsearch" Matching
"
Set tags = tags; "ctags
Set autochdir "ctags
7. Install the Chinese Input Method
# Apt-get remove scim
# Apt-get install im-switch fcitx
# Im-switch-s fcitx-z default
# Apt-get install xfonts-wqy
After restarting, you will find that fcitx can be used, but there is a box in which to configure the font of fcitx:
$ Vim ~ /. Fcitx/config
Note: The input method is not configured until now, because the font encoding in the fcitx configuration file is not UTF-8, and gedit opens garbled characters. Therefore, fcitx is configured only after vim is configured.
Modify:
Show font (medium) = WenQuanYi Bitmap Song
Font (English) = WenQuanYi Bitmap Song
The rest is the fcitx interface and color.
8. Configure the video card
Right-click the desktop and modify it.
9. Configure the sound card
The sound card configuration file of ubuntu9.04 seems to be different from other ubuntu8.04, the configuration file is: alsa-base.conf
# Cd/etc/modprobe. d/
# Vim alsa-base.conf.
Add at the end:
Options snd-hda-intel model = laptop-eapd
Restart the computer, and sound is available outside the boot. The sound card configuration is OK.
10. Install Common Software
# Apt-get install xfonts-terminus terminal font
# Apt-get install rar unrar
# Apt-get install gnochm
# Apt-get install nautilus-open-terminal
11. desktop icon Configuration
# Gconf-editor
Set/apps/nautilus/icon_view/default_zoom_level to small
Go to/apps/nautilus/desktop and set "Volumes_visible"
12. Configure firefox
About: config
Change browser. urlbar. maxRichResults to-1.
Install the flash plug-in, as long as you have a website, wait for the prompt to pop up, let it automatically search.
Because my ubuntu9.04 is incomplete in Chinese (only the Chinese environment in cd is installed, half English and half Chinese), a box is displayed after the flash plug-in is installed, therefore, the following flash font configuration is available.
# Cp/etc/fonts/conf. d/49-sansserif.conf/etc/fonts/conf. d/49-sansserif.conf.bak
# Rm/etc/fonts/conf. d/49-sansserif.conf