|
2008-01-09
, 19:14
|
Posts: 88 |
Thanked: 15 times |
Joined on Jun 2007
|
#22
|
Yes, you need to be root to do this. The easiest way is to install Becomeroot package and then type in xterm 'sudo gainroot'.
I rewrote this guide now when I packed all the necessary files into one zip file and also cleaned up the scripts a little... so here it goes:
The attached zip file contains four files: host.desktop, otg.desktop, Host.sh and Otg.sh. Before continuing make sure you have Becomeroot package installed.
Here are step by step instructions to install the files:
1) Copy Host.sh and Otg.sh to /home/user/MyDocs
2) Cd into the aforementioned directory and change the files executable by applying commands:
- chmod +x Host.sh
- chmod +x Otg.sh
3) Become root (sudo gainroot) and copy otg.desktop and host.desktop to /usr/share/applications/hildon
Thats it! Now you have two "applications" in your Extras that you can change the USB port mode into Host and Otg mode as you wish.
There are alternative methods to enable host mode as well. Please see the wiki page.
And if anyone finds better way to do this, please feel free to modify the scripts. (I did find the idea how to make entries to Extras and how to write the scripts from someone's post here... don't remember who was it... . If you "someone" find the scripts very familiar now you know who did "stole" them... )
|
2008-01-09
, 19:26
|
|
Posts: 1,310 |
Thanked: 820 times |
Joined on Mar 2006
@ Irving, TX
|
#23
|
mara-
when I run ./Host.sh I get:
/home/user/MyDocs # ./Host.sh
/bin/sh: ./Host.sh not found
Any idea why?
The Following User Says Thank You to Mara For This Useful Post: | ||
|
2008-01-09
, 19:44
|
Posts: 835 |
Thanked: 772 times |
Joined on Oct 2007
@ Finland
|
#24
|
|
2008-01-09
, 21:54
|
Posts: 88 |
Thanked: 15 times |
Joined on Jun 2007
|
#25
|
Hmm?
Did you set the file executable? (chmod +x ...)
Who has read rights to it? (ls -l)
When I tested this I tried with command "sh Host.sh"... (when in MyDocs directory) that worked for me. (I think this works even if the files are not set executable? But I may be wrong...?)
EDIT: Sure you have Becomeroot installed?
|
2008-01-10
, 03:03
|
Posts: 88 |
Thanked: 15 times |
Joined on Jun 2007
|
#26
|
|
2008-01-12
, 14:06
|
|
Posts: 2,142 |
Thanked: 2,054 times |
Joined on Dec 2006
@ Sicily
|
#27
|
|
2008-01-12
, 17:27
|
Posts: 551 |
Thanked: 46 times |
Joined on Oct 2007
|
#28
|
|
2008-01-13
, 05:01
|
Posts: 35 |
Thanked: 2 times |
Joined on Dec 2007
|
#29
|
|
2008-01-13
, 23:03
|
Posts: 551 |
Thanked: 46 times |
Joined on Oct 2007
|
#30
|
I'm not sure this matters, as I can not get it to work no matter WHAT I do - seems to be my fate; I start the thread and end being one of the few that can't get what I asked to work - but I digress - I noticed that the USB icon is not present in the "taskbar", is it only there when it's NOT the host?
Just got it to work doing all that you did EXCEPT I had to go to xterm and put it in host mode. I'm thinking you're running something I'm not maybe?
Last edited by Beakman; 2008-01-08 at 18:38. Reason: Update