Archive for the ‘Operation Systems’ Category
Dock any applications into system tray area in ubuntu
alltray 能够让任意程序最小化到system tray。
安装也很简单:sudo apt-get install alltray
使用就更简单了,启动alltray后,按照alltray的提示,点击要minimize的程序即可
Categorized in: Operation Systems · Tagged with: Linux, Ubuntu
某些 Linux distribution 导致 Java swing 空白
某些 Linux 下使用最新的 Java Swing application 会出现一片空白。
尝试如下两种解决办法:
在 .profile 或 .bashrc 添加 export AWT_TOOLKIT=MToolkit
禁用外观的特殊效果
Categorized in: Java, Operation Systems · Tagged with: Java, Linux, Swing
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
Categorized in: Operation Systems · Tagged with: Linux, SVN, Ubuntu
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
现在可以重启了,机器将使用新密码启动。
Categorized in: Operation Systems · Tagged with: Linux, Ubuntu
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
Categorized in: Java, Operation Systems · Tagged with: Java, Linux, Ubuntu
如何更改Mac程序的图标
若要更改项目的图标:
选择要更改其图标的宗卷、应用程序、文件夹或文件,单击图标即可将其选中。
在文件菜单中,选择查看简介或按 Command-I 打开“简介”窗口。
单击“简介”窗口左上角的图标将其选中。
在编辑菜单中,选择拷贝,或按 Command-C。
选择要替换其图标的宗卷、应用程序、文件夹或文件。
在文件菜单中,选择查看简介,或按 Command-I。
单击左上角的图标。
在编辑菜单中,选择粘贴,或按 Command-V,替换该图标。
Categorized in: Operation Systems · Tagged with: Apple, mac, OS
VIM 如何切换 buffers
命令 ls 可查看当前已打开的buffers
命令 b num 可切换buffer (num为buffer list中的编号)
其它命令:
:bn — buffer列表中下一个 buffer
:bp — buffer列表中前一个 buffer
:b# — 你之前所在的前一个 buffer
Categorized in: Operation Systems · Tagged with: VIM
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>
Categorized in: Operation Systems · Tagged with: Linux

(
(4.00 out of 5)