在x界面打开:
先在x界面查看当前界面:
printenv
得到 DISPLAY=:1.0
然后输入命令:
DISPLAY=:1.0 firefox
打开firefox窗口:
firefox -new-window google.com &
打开firefox新标签:
firefox -new-tab baidu.com &
关闭firefox:
kill $(pgrep firefox)
清除firefox session:
unlink $(find -name sessionstore.js)
或
unlink `find -name sessionstore.js`
删除cookies:
unlink $(find -name cookies.sqlite)
设置user-agent:
编辑 `find -name prefs.js`,
user_pref(“general.useragent.override”, “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)“);
设置代理服务器:
编辑 `find -name prefs.js`,
user_pref(“network.proxy.http”, “180.96.64.179”);
user_pref(“network.proxy.http_port”, 8080);
user_pref(“network.proxy.type”, 1);