Ubuntu 6.06
Sun Java5: Install it from the Applications -> Add/Remove... menu, or install the sun-java5-jdk package.
Blackdown Java2 1.4 packages: Install the j2re1.4 package, available in the multiverse repositories. Install it from the Applications -> Add/Remove... menu, or install the j2re1.4 package.
Kubuntu 6.06
Sun Java5: Load up Konsole, and type: sudo apt-get install sun-java5-jdk
Accept the licence agreement that appears.
Blackdown Java2 1.4 packages: Install the j2re1.4 package, available in the multiverse repositories. Install it from the Applications -> Add/Remove... menu, or install the j2re1.4 package.
Install JDK5 on Ubuntu/Kubuntu
Sunday, September 17, 2006check process, disk and memory usage
Monday, September 11, 2006
A few commands here:
1. Check current programme process
$ ps
or with switchers
$ ps -ax
You will get something similar to this:
PID is the Process Identification Number. TTY shows which terminal. CMD stands for command.
Linux is real multi-user system, which has got 6 virtual terminals so that 6 user (actually is 7) can login in at the same time. By default, you a login in as TTY0. Press keyboard Ctrl + Alt + F1 (or F1 - F6), monitor shows a black terminal (this is TT1, if you press Ctrl + Alt + F1) asking you type username and password. Switch back to TT0, press Ctrl + Alt + F7.
2. Stop a Process
$ kill -9 3511
(3511 is the PID number)
3. Check Disk Usage
$ df
or use du command to find out a folder size:
$ du /home (this will list all the size of files in he folder)
$ du -s /home (this will only state folder size)
if you are in the /home directory for example, the directory can be ignored:
$ du -s (same as above)
4. Check memory Usage
$ free
This shows a static memory usage
$ top
This shows a dynamic memory and CPU usage, including all the programs the system is using.
HELP FULL COMMANDs:
if you want to know about meanings of those "-ax" like swichers, type:
$ [the command] --help (very breif manul)
$ man [the command] (very detailed manul, usually has 9 sections)
$ man [section number] [the command]
eg. $ man 5 ps (ps manual section 5)
1. Check current programme process
$ ps
or with switchers
$ ps -ax
You will get something similar to this:
PID TTY TIME CMD
3511 pts/1 00:00:00 bash
3514 pts/1 00:00:00 ps
PID is the Process Identification Number. TTY shows which terminal. CMD stands for command.
Linux is real multi-user system, which has got 6 virtual terminals so that 6 user (actually is 7) can login in at the same time. By default, you a login in as TTY0. Press keyboard Ctrl + Alt + F1 (or F1 - F6), monitor shows a black terminal (this is TT1, if you press Ctrl + Alt + F1) asking you type username and password. Switch back to TT0, press Ctrl + Alt + F7.
2. Stop a Process
$ kill -9 3511
(3511 is the PID number)
3. Check Disk Usage
$ df
Filesystem 512-blocks Free %Used Iused %Iused Mounted on
/dev/hd1 16384 15368 7% 136 7% /home
or use du command to find out a folder size:
$ du /home (this will list all the size of files in he folder)
$ du -s /home (this will only state folder size)
if you are in the /home directory for example, the directory can be ignored:
$ du -s (same as above)
4. Check memory Usage
$ free
This shows a static memory usage
$ top
This shows a dynamic memory and CPU usage, including all the programs the system is using.
HELP FULL COMMANDs:
if you want to know about meanings of those "-ax" like swichers, type:
$ [the command] --help (very breif manul)
$ man [the command] (very detailed manul, usually has 9 sections)
$ man [section number] [the command]
eg. $ man 5 ps (ps manual section 5)
XGL Desktop for linux
Sunday, September 10, 2006
Found two vids on YouTube! 3D desktop?
http://www.youtube.com/watch?v=vykigxsd0oo&mode=related&search=
http://www.youtube.com/watch?v=lawkc3jH3ws&NR
The Vista Upgrade Advisor mumbled something about needing a better video card... but this can be setup on your linux! A MS vista tester said it's not even fast with 3.4 Pentium with 2gig ram.
XGL is pretty easy to use on SUSE and there are good instructions available for popular distributions like Ubunutu.
http://www.youtube.com/watch?v=vykigxsd0oo&mode=related&search=
http://www.youtube.com/watch?v=lawkc3jH3ws&NR
The Vista Upgrade Advisor mumbled something about needing a better video card... but this can be setup on your linux! A MS vista tester said it's not even fast with 3.4 Pentium with 2gig ram.
XGL is pretty easy to use on SUSE and there are good instructions available for popular distributions like Ubunutu.
安装vmware tools的可怕经过
Saturday, September 02, 2006
首先我要说下 虚拟机和主机之间的文件传输
由于我的网络关系,我在linux下直接下载软件安装包速度很慢,于是我只能在windows下用flashget开50线程爆下来,这就牵涉到2个问题,第一是获得文件url列表,第二是把下完的文件传给linux虚拟机
所以这就牵涉到一个很重要的工具 samba,安装非常简单用apt-get或者用图形界面的synaptic都行

安装好以后就能在这里找到
前面说过我是通过nat方式连接虚拟机网络的,所以主机和虚拟机并列在192.168.153.*这个段里,所以只要共享某个windows文件夹在samba里就能看到
sudo apt-get install samba
(Kubuntu下面要打开Kconquer ,页面上出现一个Network Folder, 就可以看到Samba Shares了)

然后我首先用synaptic下载某个包,中途取消,就会出现文件的url列表,然后传输到windows导入fg下载

把下载的deb文件传输到linux ,然后在synaptic里用文件/加入下载的包 打开下载包所在的文件夹

以上说的是怎么手动下载包~相信应该有更好的办法
下面的我都是建立在这个基础上的
先是让ubuntu加载vmware tools的安装文件

然后应该ubuntu会自动让这个盘出现在桌面上,进去把那个源码包考出来,假设放在/tmp
然后要执行以下步骤,我是失败了无数次以后从网上找到的最终办法,要下载2个kenerl源码包和1个编译器然后进行一系列设置(详见http://www.superjason.com/archive/2006/08/15/Installing-VMware-Tools-in-Ubuntu-Linux-Use-VMware-server-1.0.aspx),步骤如下,我会说明下
然后后面就是到解压缩vm安装包的目录,运行./vmware-install.pl了
顺利的话应该就能装上了,反正我是这么装上的
装完以后感觉大的变化没有,就是在虚拟机/主机间切换鼠标比较方便,直接移进移出就行和xp的远程桌面一样
不过我后台运行vmtools的时候出现了错误
Unable to locate loadable module in module_path: "libindustrial.so",
而且说明上说有主/客机间的粘贴版传送功能也没实现,不知道为什么,下次来解决吧,最近有点忙,linux暂时放一下
最后总结下
共享文件用samba,手动安装包用"新立得软件包管理器"(synaptic),安装源码包别忘记看kenerl版本,命令是
uname -r
以上~ (有空研究下vmware tools怎么用啊~)
由于我的网络关系,我在linux下直接下载软件安装包速度很慢,于是我只能在windows下用flashget开50线程爆下来,这就牵涉到2个问题,第一是获得文件url列表,第二是把下完的文件传给linux虚拟机
所以这就牵涉到一个很重要的工具 samba,安装非常简单用apt-get或者用图形界面的synaptic都行

安装好以后就能在这里找到
前面说过我是通过nat方式连接虚拟机网络的,所以主机和虚拟机并列在192.168.153.*这个段里,所以只要共享某个windows文件夹在samba里就能看到
sudo apt-get install samba
(Kubuntu下面要打开Kconquer ,页面上出现一个Network Folder, 就可以看到Samba Shares了)

然后我首先用synaptic下载某个包,中途取消,就会出现文件的url列表,然后传输到windows导入fg下载

把下载的deb文件传输到linux ,然后在synaptic里用文件/加入下载的包 打开下载包所在的文件夹

以上说的是怎么手动下载包~相信应该有更好的办法
下面的我都是建立在这个基础上的
先是让ubuntu加载vmware tools的安装文件

然后应该ubuntu会自动让这个盘出现在桌面上,进去把那个源码包考出来,假设放在/tmp
然后要执行以下步骤,我是失败了无数次以后从网上找到的最终办法,要下载2个kenerl源码包和1个编译器然后进行一系列设置(详见http://www.superjason.com/archive/2006/08/15/Installing-VMware-Tools-in-Ubuntu-Linux-Use-VMware-server-1.0.aspx),步骤如下,我会说明下
sudo apt-get update
//更新下
sudo apt-get install build-essential
//下载编译器,我是用我上面那个办法下载的
sudo apt-get install linux-source-2.6.15
//是个源码包,我下载方法同上,不过需要先查看下kenerl的地址(使用uname -r命令),下载包必须和你的版本一样(文件比较大...)
sudo apt-get install linux-headers-2.6.15-26-386
//是头文件好像,我的版本有问题,是386的,我看过貌似我Pm的处理器应该用686版的,再次声明,版本必须一至否则功亏一篑
cd /usr/src
sudo bzip2 -d linux-source-2.6.15.tar.bz2
sudo tar xvf linux-source-2.6.15.tar
//以上解压缩目录源码包,很大的大概有127mb
sudo ln -s linux-source-2.6.15 linux
//ln似乎是个添加类似快捷方式的命令,具体不是很懂,反正就是给文件夹起个别名,因为后面安装文件会用/usr/src/linux/include/做默源码认目录
sudo mv /usr/src/linux-source-2.6.15/include /usr/src/linux-source-2.6.15/include.orig
//把那个include改名改掉,因为我们不用那个
sudo ln -s /usr/src/linux-headers-2.6.15-26-386/include /usr/src/linux-source-2.6.15/include
//把head里的include映射到source里,大概这个意思,用header里的include
** Run the VMware tools install script here
然后后面就是到解压缩vm安装包的目录,运行./vmware-install.pl了
顺利的话应该就能装上了,反正我是这么装上的
装完以后感觉大的变化没有,就是在虚拟机/主机间切换鼠标比较方便,直接移进移出就行和xp的远程桌面一样
不过我后台运行vmtools的时候出现了错误
Unable to locate loadable module in module_path: "libindustrial.so",
而且说明上说有主/客机间的粘贴版传送功能也没实现,不知道为什么,下次来解决吧,最近有点忙,linux暂时放一下
最后总结下
共享文件用samba,手动安装包用"新立得软件包管理器"(synaptic),安装源码包别忘记看kenerl版本,命令是
uname -r
以上~ (有空研究下vmware tools怎么用啊~)

