Active Topics

 


Reply
Thread Tools
Posts: 35 | Thanked: 2 times | Joined on Jan 2008
#1
1. Unzip the files at Mara's post, and copy the Host.sh and Otg.sh to /home/user/MyDocs
how do i copy that to the assigned folder? is there an xterm command to type to copy it?
 
Posts: 311 | Thanked: 110 times | Joined on Nov 2007 @ Boston, MA
#2
The UNIX command to copy is cp, once you open an xterm change to the directory where these 2 files are saved and then type the following

cp Host.sh /home/user/MyDocs
cp Otg.sh /home/user/MyDocs

Should do it.
 
Posts: 35 | Thanked: 2 times | Joined on Jan 2008
#3
how do i changge to my directory? whenever i type (sudo gainroot), i'm always redericted to /home/user and when i type something it just say permission denied
 
Posts: 322 | Thanked: 28 times | Joined on Feb 2007
#4
Originally Posted by cutegelo View Post
how do i changge to my directory? whenever i type (sudo gainroot), i'm always redericted to /home/user and when i type something it just say permission denied

I'm an xterm rooky, but here are a couple of things I just learned doing something else. Root is gained by typing 'sudo su' and then pressing the enter key. Confirm that you are root by typing 'whoami' and pressing enter. If you are root xterm will say so.

Neil
 
Mara's Avatar
Posts: 1,310 | Thanked: 820 times | Joined on Mar 2006 @ Irving, TX
#5
Originally Posted by cutegelo View Post
how do i changge to my directory? whenever i type (sudo gainroot), i'm always redericted to /home/user and when i type something it just say permission denied
If you just executed the "sudo gainroot" command then you are normally in /home/user directory. You can enter into the MyDocs from there by typing "cd MyDocs"

One more note that if you did unzip the files on your host computer (Windows, Linux, OSX...) and copied them to your N8x0 memory card using the USB cable, you can copy them to the correct location (/home/user/MyDocs) just simply by opening File Manager in N8x0 and copy the files from the memory card to the top level in N8x0 directory tree (seen as "N800" on my N800 device). Therefore you do not need to "copy" them any furtner in Xterm... But you still need to change the files to executable with chmod command. After this you still need to copy the Host.desktop and Otg.desktop files to correct places as described in the WiKi. This can only be done with Xterm and with Root access.

I can understand that this is not exactly most user friendy... and I did not by purpose make step by step instructions what to type in Xterm. The reason is that this method does mess with the system files and if done incorrectly can mess up the programs (extras)... so if you do not know what the WiKi instructions are saying then this method may not be for you...

I just hoticed that Konttori has posted similar application that does the same thing, but without need to mess with Xterm. You may take a look at it.
 
Posts: 35 | Thanked: 2 times | Joined on Jan 2008
#6
thank you very much... now i just need to do the last step which gets me stuck again....

5. Edit the /etc/sudoers file and add the following lines to the bottom of the file

user ALL = NOPASSWD: /home/user/MyDocs/Host.sh
user ALL = NOPASSWD: /home/user/MyDocs/Otg.sh

Ensure that the /etc/sudoers file retains the 0440 file access permissions, or else bad things will happen!
im in the etc folder but when i type "cd sudoers" the xterm says that "cam't cd to sudoers" any idea to on how am i gonna do this last step?
 
Mara's Avatar
Posts: 1,310 | Thanked: 820 times | Joined on Mar 2006 @ Irving, TX
#7
Originally Posted by cutegelo View Post
thank you very much... now i just need to do the last step which gets me stuck again....



im in the etc folder but when i type "cd sudoers" the xterm says that "cam't cd to sudoers" any idea to on how am i gonna do this last step?
That's because the sudoers is not a directory but file. You need to use text editor to add the lines to the file.

You do not need this step if you want to use the "extras application" method. If you do like to use the statusbar run command method then you do need this.
 
Posts: 35 | Thanked: 2 times | Joined on Jan 2008
#8
Originally Posted by Mara View Post
That's because the sudoers is not a directory but file. You need to use text editor to add the lines to the file.

You do not need this step if you want to use the "extras application" method. If you do like to use the statusbar run command method then you do need this.
yeah, i'm using the statusbar.. so how can i open it? cause when iopen the notes app and do open, i don't know how to go to the etc folder...
 
Mara's Avatar
Posts: 1,310 | Thanked: 820 times | Joined on Mar 2006 @ Irving, TX
#9
Originally Posted by cutegelo View Post
yeah, i'm using the statusbar.. so how can i open it? cause when iopen the notes app and do open, i don't know how to go to the etc folder...
Well, you could use the built in vi text editor. The way how it works is nothing like your typical text editor... so you should first study a while how to use it:
http://www.cs.colostate.edu/helpdocs/vi.html

You can open the file in vi just typing "vi sudoers'.

WARNING: with vi you really can hose your system if not careful!!!
 

The Following User Says Thank You to Mara For This Useful Post:
Posts: 35 | Thanked: 2 times | Joined on Jan 2008
#10
thanks... i got it all working now...
 
Reply


 
Forum Jump


All times are GMT. The time now is 19:17.