linux environment setup

1. set default OS in launch

sudo gedit /boot/grub/menu.lst

look for

"default        5", set the number to the index of your default OS.

/boot/grub/grub.cfg "replaces" Grub Legacy's /boot/grub/menu.lst since ununtu9.10

 

2. SCIM

sudo apt-get install scim
sudo apt-get install scim-tables-zh

 

Log out, then log in again. SCIM should be now the default input for all applications

 

 

3. java

Ubuntu10.04  sun-java6-jdk 安装

众所周知,10.04当中sun-jdk被弄走了。从某种程度上说我还是不大适应openjdk,于是在官方的release notes 里面看到这样一段:

Sun Java moved to the Partner repository

For Ubuntu 10.04 LTS, the sun-java6 packages have been dropped from the Multiverse section of the Ubuntu archive. It is recommended that you use openjdk-6 instead.

If you can not switch from the proprietary Sun JDK/JRE to OpenJDK, you can install sun-java6 packages from the Canonical Partner Repository. You can configure your system to use this repository via command-line:

add-apt-repository "deb http://archive.canonical.com/ lucid partner"

---------------
于是:
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk

不过速度就相当可怕了,十几K。

话说openjdk除了那个字体难看一点(10.04里面是 否如此我不知道),基本也没什么问题,用sun的jdk字体就可以了。

 

4. g++

Install g++ if it does not work.

sudo apt-get install g++

 

5. good terminator

 

sudo apt-get install terminator
 

6. aptitude

sudo apt-get aptitude

7. search the package to install

 

aptitude search <package_name>

  8. quick launch tool

sudo apt-get install gnome-do
 

Install ant

 

[root@laptop:~] cd /tmp 
[root@laptop:/tmp] wget http://www.carfab.com/apachesoftware//ant/binaries/apache-ant-1.8.2-bin.zip

[root@laptop:/tmp] unzip apache-ant-1.8.2-bin.zip
[root@laptop:/tmp] mv apache-ant-1.8.2 /usr/local/ant
[root@laptop:/tmp] ln -s /usr/local/ant/bin/ant /usr/local/bin/ant
 

Install mysql

sudo apt-get install mysql-server mysql-client
 

 

你可能感兴趣的:(jdk,linux,OS,ubuntu,sun)