maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   an already "gainrooted" xterm (https://talk.maemo.org/showthread.php?t=40698)

Bec 2010-01-17 22:25

Re: an already "gainrooted" xterm
 
Ok, but is it compatible/ported for maemo or is is x86 linux only?
And the stupid question... anything similar for us windows users?

fatalsaint 2010-01-17 23:19

Re: an already "gainrooted" xterm
 
As a rule of thumb.. *never* use a windows text editor to edit linux files. Windows uses different end of line characters by default than Linux. Causes many weird things.

I believe visudo is already on the device - or at least available in the repo's (can't check atm).

The sudoers file is very very sensitive.

geneven 2010-01-17 23:40

Re: an already "gainrooted" xterm
 
On my N900, visudo tells me no editor is set. I guess I have to make a symbolic link to /bin/vi however I do that.

fatalsaint 2010-01-17 23:49

Re: an already "gainrooted" xterm
 
Code:

export EDITOR=/bin/vi
I think should work..

Bec 2010-01-18 12:47

Re: an already "gainrooted" xterm
 
Ok, after this nice experiment I suddenly got awful battery issues. I need to investigate further...

EDIT1: something is "stuck" in the memory and pushes the cpu to 100%
EDIT2: tried to run visudo and although "nothing happened", I got myself a nice running app called "vi" that was using my cpu 90-100%. The battery lasted 8 hours this way.

ruskie 2010-01-18 12:56

Re: an already "gainrooted" xterm
 
Maybe add a red colourized xterm icon as well :)

eitama 2010-03-12 21:07

Re: an already "gainrooted" xterm
 
2 Attachment(s)
Trying to follow the steps in this thread for a rooted xterm resulted in nothing. So I found a different way to do it.

Gain root access to a terminal : ssh / terminal + sudo gainroot

1.1. vi /usr/share/rootedXterm.sh
1.2. This command will create a file named rootedXterm.sh and open an editor named vi to edit it. VI is not an easy editor to work with if you don't know what you are doing, so please pay attention to the steps.

2.1. Now we will insert a line into out newly created file :
2.2. Press "i" > Type > sudo gainroot > Press ESC > Type :wq!
2.3. Press Enter.

3.1. Now we give our new file run permissions.
3.2. Type "chmod 755 /usr/share/rootedXterm.sh" press Enter.

4.1. Now we create a "desktop shortcut" for our new script.
4.2. Type : "vi /usr/share/applications/hildon/rooted_xterm.desktop"
4.3. Press "i" to enter "insert" mode, and insert or paste the following code into your file :
Code:

[Desktop Entry]
Type=Application
Name=Rooted Xterm
Exec=/usr/bin/osso-xterm /usr/share/rootedXterm.sh
Icon=terminal

4.4. To exit edit mode press ESC.
4.5. type ":wq!" And press enter, to save and exit the file.

5.1. We are done editing files, close the ssh or terminal window.
5.2. In your phone, go into your application manager, wait for it to refresh, and close it.
5.3. The new Rooted Xterm should now appear in you applications.
5.4. Create a desktop shortcut for it if you want as you normally do for other apps. GL.

Beware, root is a dangerous mode, you can do whatever you want, including messing up your device.

Eitam.
Attachment 8063
Attachment 8064

lma 2010-03-13 07:31

Re: an already "gainrooted" xterm
 
Quote:

Originally Posted by fatalsaint (Post 478874)
Code:

export EDITOR=/bin/vi
I think should work..

That's the default (and broken, just filed bug 9516 about it), use /usr/bin/vi (or another editor of your choice) instead.

les_garten 2010-03-13 08:15

Re: an already "gainrooted" xterm
 
1 Attachment(s)
Quote:

Originally Posted by ruskie (Post 479782)
Maybe add a red colourized xterm icon as well :)

Like this one I made?

It is the correct size BTW.

DangerZone 2010-09-01 13:54

Re: an already "gainrooted" xterm
 
Quote:

Originally Posted by eitama (Post 565483)
Trying to follow the steps in this thread for a rooted xterm resulted in nothing. So I found a different way to do it.

Gain root access to a terminal : ssh / terminal + sudo gainroot

1.1. vi /usr/share/rootedXterm.sh
1.2. This command will create a file named rootedXterm.sh and open an editor named vi to edit it. VI is not an easy editor to work with if you don't know what you are doing, so please pay attention to the steps.

2.1. Now we will insert a line into out newly created file :
2.2. Press "i" > Type > sudo gainroot > Press ESC > Type :wq!
2.3. Press Enter.

3.1. Now we give our new file run permissions.
3.2. Type "chmod 755 /usr/share/rootedXterm.sh" press Enter.

4.1. Now we create a "desktop shortcut" for our new script.
4.2. Type : "vi /usr/share/applications/hildon/rooted_xterm.desktop"
4.3. Press "i" to enter "insert" mode, and insert or paste the following code into your file :
Code:

[Desktop Entry]
Type=Application
Name=Rooted Xterm
Exec=/usr/bin/osso-xterm /usr/share/rootedXterm.sh
Icon=terminal

4.4. To exit edit mode press ESC.
4.5. type ":wq!" And press enter, to save and exit the file.

5.1. We are done editing files, close the ssh or terminal window.
5.2. In your phone, go into your application manager, wait for it to refresh, and close it.
5.3. The new Rooted Xterm should now appear in you applications.
5.4. Create a desktop shortcut for it if you want as you normally do for other apps. GL.

Beware, root is a dangerous mode, you can do whatever you want, including messing up your device.

Eitam.
Attachment 8063
Attachment 8064

I was looking for something like this for a while now, thanks!


All times are GMT. The time now is 08:12.

vBulletin® Version 3.8.8