gnu.linux
x-tile: gnome下的tile window manager
http://www.giuspen.com/x-tile/
达到awesome那种拼凑窗口的效果。但每个程序还是有边。不过聊胜于无啊。:)
如何使用vmstats
http://www.unix.com/unix-dummies-questions-answers/6538-kicking-users-of...
如何在bash中踢出登陆的用户 how to kick a user out in bash
我通过搜索 linux kick pts user out 找到答案
who -uthis will list users logged on system including their process id(pid) on colume 7
then issuekill -9 (pid)http://www.unix.com/unix-dummies-questions-answers/6538-kick...
在gnu/linux服务器上安装firefox的flash插件
服务器上没有桌面程序,无法点击下载的flash插件的.deb包,因此求助于命令行了
sudo apt-get install mozilla-plugin-gnash
sudo apt-get install flashplugin-nonfree
我装flash只有一个目的:google reader中mp3附件没有flash,不光无法收听(我从不在那里听),而且downloadthemall这个插件无法获取所有mp3的url,因此不能批量下载。
运行完了那些命令就好了。
总算能够启动服务器上的浏览器来浏览网页了
现在我用的命令 $ ssh -X myserver firefox -no-remote
myserver是我通过ssh的config设置的我服务器的别名
参考:
Launch firefox on a remote linux server
from Command-Line-Fu by KoRoVaMiLK
$ ssh -X user@REMOTESERVER firefox -no-remoteActually 'firefox' is a script that then launches the firefox web browser. You need to specify the 'no-remote' option in order to launch remote firefox and not your local one (this drove me crazy time ago)
http://feedproxy.google.com/~r/Command-line-fu/~3/N_PD1YbZqm...
发现这个比ssh -d 好,因为我直接在上面用download them all 这个下载mp3直接保存在服务器上
在bash中查看有趣的“一句话”
$ w3m -dump_source http://www.onelinerz.net/random-one-liners/1/ | awk ' /.*<div id=\"oneliner_[0-9].*/ {while (! /\/div/ ) { gsub("\n", ""); getline; }; gsub (/<[^>][^>]*>/, "", $0); print $0}'
Put this command in .bashrc and every time you open a new terminal a random quote will be downloaded and printed from onelinerz.net.
By altering the URL in the w3m statement you can change the output:
1 to 10 lines - http://www.onelinerz.net/random-one-liners/(number)/
20 newest lines - http://www.onelinerz.net/latest-one-liners/
Top 10 lines - http://www.onelinerz.net/top-100-funny-one-liners/
Top 10 lines are updated daily.
source: http://feedproxy.google.com/~r/Command-line-fu/~3/3ERL60ERKz...
centos上启用epel
http://www.cyberciti.biz/faq/rhel-fedora-centos-linux-enable...
给的例子是 i386的,需要把i386换成 x86_64,因为我是64位系统
列出centos上正在使用哪些软件源 List new repo:
yum repolist
查看自己的centos版本是什么 cat /etc/redhat-release
cat /etc/redhat-release