|
2007-08-13
, 13:20
|
Posts: 3,401 |
Thanked: 1,255 times |
Joined on Nov 2005
@ London, UK
|
#2
|
|
2007-08-13
, 13:29
|
Posts: 3,401 |
Thanked: 1,255 times |
Joined on Nov 2005
@ London, UK
|
#3
|
|
2007-08-13
, 14:28
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#4
|
I put "sudo gainroot" in /home/user/.profile, because every time I used xterm, I wanted root access.
alias r='sugo gainroot'
|
2007-08-14
, 11:29
|
|
Posts: 122 |
Thanked: 21 times |
Joined on Sep 2006
|
#5
|
What about creating just one letter alias to sudo gainroot in your .profile (or .bashrc if .profile reads it)?
then you can just type r + enterCode:alias r='sugo gainroot'
|
2007-08-14
, 12:32
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#6
|
echo 'alias r="sudo gainroot"' >>/home/user/.profile
|
2007-08-17
, 09:52
|
Posts: 8 |
Thanked: 1 time |
Joined on Aug 2007
|
#7
|
you will need to close and reopen osso-xterm (the advanced one) or reboot for the definition to take effect
source /home/user/.profile
It seems obvious in hindsight, but I put "sudo gainroot" in /home/user/.profile, because every time I used xterm, I wanted root access.
Unfortunately, something at the end of the boot process must use a shell, and it can't run as root, because with this change the N800 halts its boot when the progress bar is fully right.
Yeah, I know, it seems obvious now, but I didn't think the change through, and kept re-doing it after a reflash (reflash, install xterm, gainroot, start adding other stuff, and it would be fine until I rebooted). I wasted lots of time.