|
2008-04-01
, 17:37
|
Posts: 244 |
Thanked: 10 times |
Joined on Jan 2007
|
#12
|
|
2008-04-01
, 17:52
|
Posts: 1,950 |
Thanked: 1,174 times |
Joined on Jan 2008
@ Seattle, USA
|
#13
|
if you want to do the alias option, you do it as a normal user, not as root.
|
2008-04-01
, 18:37
|
Posts: 244 |
Thanked: 10 times |
Joined on Jan 2007
|
#14
|
|
2008-04-01
, 21:19
|
Posts: 1,097 |
Thanked: 650 times |
Joined on Nov 2007
|
#15
|
The Following 4 Users Say Thank You to nilchak For This Useful Post: | ||
|
2008-04-01
, 21:46
|
Posts: 1,950 |
Thanked: 1,174 times |
Joined on Jan 2008
@ Seattle, USA
|
#16
|
2 methods to make a shortcut so you dont have to type it all (sudo gainroot) in always
Go into xTerminal.
Select main Menu -> Tools -> Settings
Click on Toolbar Shortcut
Add (New) a new shortcut
Title = Sudo (or whatever you want to name it)
Value = s . u . d . o . KP_Space . g . a . i . n . r . o . o . t . KP_Enter
The discussion on this and the above command to go into the shortcut command line is as per this thread
(Note : you dont need any additional software for this)
|
2008-04-02
, 00:38
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#17
|
Thanks, nilchak, this worked for me, and it's very convenient. (The earlier method (with typing in Xterm, from post #8) worked for me until I exited; then when I came back to Xterm and typed "rt", it told me: "-sh: rt: not found" but that doesn't matter now because I like this shortcut on the Toolbar better, anyway.)
|
2008-04-02
, 23:18
|
Posts: 333 |
Thanked: 32 times |
Joined on Jul 2007
|
#18
|
|
2008-04-02
, 23:23
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#19
|
The "#!/bin/sh" is just to tell people who are view the script it is a bash script , I grow up using DOS so the few scripts I write are more composed like batch {.bat} then Bash {.sh}.
The alias also works but I'm just more used to using scripts which I have cloned on some OS I use daily.
Any to answer your question, yes you do have to install "BecomeRoot" first, My script just makes it easier to type
very simple.