Dock any applications into system tray area in ubuntu

alltray 能够让任意程序最小化到system tray。
安装也很简单:sudo apt-get install alltray
使用就更简单了,启动alltray后,按照alltray的提示,点击要minimize的程序即可

By javafuns on February 22, 2010 at 20:29 · Views: 43 · Permalink · Leave a comment
Categorized in: Operation Systems · Tagged with: ,

某些 Linux distribution 导致 Java swing 空白

某些 Linux 下使用最新的 Java Swing application 会出现一片空白。
尝试如下两种解决办法:

在 .profile 或 .bashrc 添加 export AWT_TOOLKIT=MToolkit
禁用外观的特殊效果

By javafuns on November 3, 2009 at 17:06 · Views: 153 · Permalink · Leave a comment
Categorized in: Java, Operation Systems · Tagged with: , ,

SVN 1.6 on ubuntu

For Karmic:
deb http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu karmic main
deb-src http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu karmic main
For Jaunty:
deb http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu jaunty main
deb-src http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu jaunty main
For Intrepid:
deb http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu intrepid main
deb-src http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu intrepid main
For Hardy:
deb http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu hardy main
deb-src http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu hardy main

By javafuns on June 30, 2009 at 09:57 · Views: 617 · Permalink · Leave a comment
Categorized in: Operation Systems · Tagged with: , ,

How to reset your Linux root password (reship)

原文: http://www.ibm.com/developerworks/cn/linux/l-10sysadtips/
技巧 4:找回根密码
如果忘记根密码,就必须重新安装整台机器。更惨的是,许多人都会这样做。但是启动机器并更改密码却十分简单。这并非在所有情况下都适用(比如设置了一个 GRUB 密码,但也忘记了),但这里介绍一个 Cent OS Linux 示例,说明一般情况下的操作。
首先重启系统。重启时会跳出如图 1 所示的 GRUB 屏幕。移动箭头键,这样可以保留在此屏幕上,而不是进入正常启动。
图 1. 重启后的 GRUB 屏幕

然后,使用箭头键选择要启动的内核,并输入 E 编辑内核行。然后便可看到如图 2 所示的屏幕:
图 2:准备编辑内核行

再次使用箭头键突出显示以 kernel 开始的行,按 E 编辑内核参数。到达如图 3 所示的屏幕时,在图 3 中所示的参数后追加数字 1 即可:
图 3. 在参数后追加数字 1

然后按 Enter 和 B,内核会启动到单用户模式。然后运行 passwd 命令,更改用户根密码:
sh-3.00# passwd
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully
现在可以重启了,机器将使用新密码启动。

By javafuns on June 19, 2009 at 10:15 · Views: 397 · Permalink · Leave a comment
Categorized in: Operation Systems · Tagged with: ,

How to install libstdc++.so.5 for Ubuntu

Today when I tried to run our applications, I was told that there is a necessary library libstdc++.so.5 missing.
Now, I give the programmers who also faces the same problem a solution:
sudo apt-get install libstdc++5

By javafuns on May 13, 2009 at 09:25 · Views: 1,447 · Permalink · Leave a comment
Categorized in: Java, Operation Systems · Tagged with: , ,

Redhat Linux 查看cpu、memory 等命令

查看系统内核版本:
# uname -a
查看系统版本:
# more /etc/redhat-release
查看内核版本gcc版本
# more /proc/version
查看cpu 信息
# grep “model name” /proc/cpuinfo
# more /proc/cpuinfo
查看cpu 的位数
# getconf LONG_BIT
查看内存信息
# more /proc/meminfo
查看系统资源使用情况
“vmstat  reports  information  about  processes,  memory,  paging, block IO, traps, and cpu activity.
#vmstat 5
“display Linux tasks
#top
“Display amount of free and used memory in the system
#free
查看磁盘i/o
“用iostat查看磁盘/dev/sdc3的磁盘i/o情况,每两秒刷新一次
$ iostat -d -x /dev/sdc3 2
查看用户磁盘限额
quota [-u] <username>

By javafuns on November 7, 2008 at 03:06 · Views: 6,916 · Permalink · Leave a comment
Categorized in: Operation Systems · Tagged with: 

Linux 图形界面和虚拟终端的相互切换命令

ctrl+alt+F1/F2/F3/F4/F5/F6,可以从X切换到terminal。这个命令好久不用,都忘记了。通常Linux会有7个虚拟终端,最后一个是图形界面。
在X死掉的时候,可以切换到命令行虚拟终端,杀掉X,然后再重新启动X。
alt+F7,则是从terminal切换到X。
ctrl+alt+BACKSPACE,则是注消。

By javafuns on April 29, 2008 at 21:27 · Views: 1,137 · Permalink · Leave a comment
Categorized in: Operation Systems · Tagged with: ,

windows软件的Linux类似/替换/相近品

看看这个网站吧,有很多的Linux软件可以免费使用:
http://www.linuxrsp.ru/win-lin-soft/table-chn.html

By javafuns on April 23, 2008 at 20:49 · Views: 598 · Permalink · Leave a comment
Categorized in: Operation Systems · Tagged with: ,
  • Highest Rated

  • My PicasaPhotos

    IMG_0539.JPG

    IMG_0875.JPG

    IMG_0658.JPG

  • RSS My del.icio.us

  • My RSS