在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-remote

Actually '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...