通常狀況下,當你點擊Firestarter的圖標或者手動從終端中啓動Firestarter時,會提示你輸入管理員密碼。可是這樣實在是有點煩人,尤 其是你想每次登陸都啓動firestarter時。Firestarter能夠在你以普通用戶登陸的狀況下自動加載在後臺運行,而且最小化到系統托盤圖 標,而不須要向你詢問密碼。
給用戶運行Firetarter而不須要Root密碼的許可
爲了讓普通用戶能夠運行Firetarter,普通用戶必須被給予額外的特權。用你最喜歡的編輯器編輯「/etc/sudoers」,而且在最後添加下面一段:
username ALL= NOPASSWD: /usr/bin/firestarter
注意:Debian用戶須要將上面一段中的「/usr/bin/firestarter」替換爲「/usr/sbin/firestarter」
將"username"替換成須要登陸的普通用戶登陸名。上文中指定的用戶能夠運行Firestarter而不會再被提示輸入密碼或者使用命令行:sudo firestarter。
安 全方面的一點點注意:這種方法是將本地安全同便捷作了交換,若是你的登陸賬戶被攻擊者破解了,那麼攻擊者將會控制Firestarter。 However this method is preferable to having a shared root user password in a multiuser setting. It is also preferable if the alternative is not to run Firestarter at all.
登陸時運行Firesarter並最小化至系統托盤:
若是已經設置了上面的許可,那麼系統能夠繼續設置爲當你用普通賬戶登陸時自動運行Firetarter。那樣的話,Firetarter能夠自動運行至系統托盤中,而不須要用戶的干涉,以後能夠點擊系統托盤圖標打開主界面。
Gnome設置:
打開Gnome的「系統」菜單,選擇「首選項」裏的「會話」,切換到「啓動程序」選項卡。
點擊「添加」,並輸入:「sudo firestarter --start-hidden」做爲啓動程序的命令,點擊「肯定」,結束設置。
很簡單的只須要將剛纔輸入的列從表中刪除就能夠在登陸時不自動啓動Firestarter.
Kde設置:
打開終端並執行下面兩行命令:
echo -e '#'\!'/bin/sh\nsudo firestarter --start-hidden' > ~/.kde/Autostart/firestarter
chmod a+x ~/.kde/Autostart/firestarter
如今Firestarter就能夠隨着KDE一塊兒啓動了。若是要終止隨着KDE啓動,只需刪除下面這個文件:「~/.kde/Autostart/firestarter」。
譯者注:水平有限,萬望海涵。E-mail:kongweiguo@gmail.com
附原文以下:
How can I get Firestarter to load automatically when I log in as a regular user?
Normally when you start Firestarter by clicking an icon or manually from a terminal, the system will prompt you for your root user's password. However, this is a bit of a hassle, especially if you want to run Firestarter all the time when logged in. In that case Firestarter can be loaded in the background when you log in with your regular user, without asking a password and minimized to the system tray (pictured right).
Giving the user permission to launch Firestarter without the root password
In order for a regular user to be able to launch Firestarter, the user must be given additional privileges. Edit your /etc/sudoers file in your favorite text editor and add the following line at the end:
username ALL= NOPASSWD: /usr/bin/firestarter
Note: Debian users should replace /usr/bin/firestarter with /usr/sbin/firestarter in the above line.
Simply replace username with whatever your login is. The specified user is now able to launch Firestarter without being prompted for a password using the command sudo firestarter.
A note on the security aspects: This method makes a trade off in local security for convenience. If your user account becomes compromised the attacker will be able to control the firewall. However this method is preferable to having a shared root user password in a multiuser setting. It is also preferable if the alternative is not to run Firestarter at all.
Launching Firestarter minimized to the tray on login
Having performed the above configuration of permissions, the system can further be set up to load Firestarter when you log in with your regular user account. Firestarter will in that case load directly into the system tray without user intervention, after which the main interface can be accessed by clicking the tray icon.
Using GNOME:
Open up your GNOME menu, select Preferences followed by Sessions. Switch to the Startup programs tab, pictured right.
Click Add and enter
sudo firestarter --start-hidden
as the startup command. Click OK and you're done.
To stop Firestarter from loading on login, simply remove its entry from the startup programs listing.
Using KDE:
Open a terminal and execute the following two commands:
echo -e '#'\!'/bin/sh\nsudo firestarter --start-hidden' > ~/.kde/Autostart/firestarter
chmod a+x ~/.kde/Autostart/firestarter
Firstarter will now load automatically when KDE starts. To stop Firestarter from loading when you log in, remove the ~/.kde/Autostart/firestarter file. iamif 2008-3-1 16:20
在kde環境下,能夠保存上次會話的session,在下次登錄中會自動運行的. 只須要用visudo命令改變用戶的執行權限就能夠了.promise