Notices


Reply
Thread Tools
Bec's Avatar
Posts: 876 | Thanked: 396 times | Joined on Dec 2009
#21
Ok, but is it compatible/ported for maemo or is is x86 linux only?
And the stupid question... anything similar for us windows users?
__________________
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#22
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.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Posts: 5,795 | Thanked: 3,151 times | Joined on Feb 2007 @ Agoura Hills Calif
#23
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.
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#24
Code:
export EDITOR=/bin/vi
I think should work..
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Bec's Avatar
Posts: 876 | Thanked: 396 times | Joined on Dec 2009
#25
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.
__________________

Last edited by Bec; 2010-01-18 at 14:22.
 
Posts: 543 | Thanked: 181 times | Joined on Aug 2009 @ Universe,LocalCluster.MilkyWay.Sol.Earth.Europe.Slovenia.Ljubljana
#26
Maybe add a red colourized xterm icon as well
__________________
For any repos or anything else I might have working on my N900 see:
http://wiki.maemo.org/User:Ruskie
A quick list of what I have in the repos
zsh|xmms2|fcron|gtar|gcoreutils
 
eitama's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#27
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.
Name:  apps.jpg
Views: 423
Size:  21.5 KB
Name:  rootFTW.jpg
Views: 421
Size:  23.1 KB
 

The Following 3 Users Say Thank You to eitama For This Useful Post:
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#28
Originally Posted by fatalsaint View Post
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.
 

The Following User Says Thank You to lma For This Useful Post:
Posts: 1,283 | Thanked: 370 times | Joined on Sep 2009 @ South Florida
#29
Originally Posted by ruskie View Post
Maybe add a red colourized xterm icon as well
Like this one I made?

It is the correct size BTW.
Attached Images
 
 
Posts: 1 | Thanked: 0 times | Joined on Sep 2010
#30
Originally Posted by eitama View Post
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!
 
Reply


 
Forum Jump


All times are GMT. The time now is 01:11.