![]() |
2010-04-13
, 15:52
|
Posts: 1,283 |
Thanked: 370 times |
Joined on Sep 2009
@ South Florida
|
#92
|
On Topic:
I know this thread is kinda dead (;
but I gotta give back, after receiving so much from it.
The solution mentioned here works.
Using /bin/busybox sh -c 'echo sh /etc/hildon-welcome.d/lalala.sh | sudo gainroot' works.
But, you need the desktop to refresh, for the icon to be up to date,
I have a script killing my desktop which I wrote some time ago ( on intention ) for cases when it gets stuck, I just used it - and it refreshed and everything works.
Another way is to just reboot the phone.
Thanks for all the info guys.
Now I have 2 icons on my desktop, "OC 600 MHz" and "OC 900 MHz" which I can just press and toggle to the wanted OC.
Off Topic:
If anyone wants them, they are for the titan ulv kernel,
attached below with icons. (inside zip file).
Instructions :
To get 2 icons for the desired overclocks download the attached files, and put them in the right locations :
1. Icon files should be in ./usr/share/icons/hicolor/64x64/hildon/
2. .desktop file should be in /usr/share/applications/hildon
3. .sh files should be in /usr/share (this is where I put them, as they are small and I don't care about the size they take.
4. You must have rootsh installed.
5. Don't forget to "chmod 777 <filename>" the .sh files.
![]() |
2010-06-12
, 17:52
|
Posts: 44 |
Thanked: 11 times |
Joined on Oct 2009
@ UK, Manchester
|
#93
|
Is it possible to just execute a shell script but without opening the terminal?
I have a simple toggle script which should just be executed and not shown and currently I always get a black window with a loading animation which is annoying and not necessary.
The desktop file looks like this:
and the script like this:Code:[Desktop Entry] Encoding=UTF-8 Version=0.1 Name=FMTX Toggle Terminal=false Type=Application Comment=FMTX Toggle Exec=/home/user/apps/fmtransmtoggle.sh Icon=terminal #X-Window-Icon=timerwidget X-Window-Icon= X-HildonDesk-ShowInToolbar=false X-Osso-Type=application/x-executable
Is it also possible to have only a shortcut on the desktop but not in the menu?Code:#!/bin/sh fmtx_client|grep disabled > /dev/null if [ $? -eq 0 ]; then fmtx_client -p 1 > /dev/null fmtx_client -f 106900 > /dev/null fmtx_client -s "N900 " > /dev/null fmtx_client -t "My N900 radio channel" > /dev/null echo 118 > /sys/class/i2c-adapter/i2c-2/2-0063/power_level echo "RF Enabled @106.90 with power `cat /sys/class/i2c-adapter/i2c-2/2-0063/power_level`" else fmtx_client -p 0 echo "RF Disabled" fi exit 0
Thanks
![]() |
2011-01-17
, 11:13
|
Posts: 330 |
Thanked: 97 times |
Joined on Dec 2010
@ saudi arabia
|
#94
|
![]() |
2011-08-19
, 10:36
|
Posts: 47 |
Thanked: 12 times |
Joined on Jun 2011
|
#95
|
[Desktop Entry] Encoding=UTF-8 Version=0.1 Type=Application Terminal=true Name=Kismet Exec=/bin/busybox sh -c 'echo sh /home/user/skripte/kismet.sh | sudo gainroot Icon=kismet X-Window-Icon= kismet X-HildonDesk-ShowInToolbar=true X-Osso-Type=application/x-executable
#!/bin/sh ( /usr/bin/osso-xterm 'sudo gainroot' /usr/bin/osso-xterm 'kismet' & )
![]() |
2011-10-04
, 11:10
|
Posts: 99 |
Thanked: 36 times |
Joined on Mar 2010
|
#96
|
![]() |
2011-10-04
, 12:39
|
Posts: 99 |
Thanked: 36 times |
Joined on Mar 2010
|
#97
|
The Following User Says Thank You to ziggadebo For This Useful Post: | ||
![]() |
2011-11-03
, 21:53
|
Posts: 12 |
Thanked: 1 time |
Joined on Sep 2011
|
#98
|
[Desktop Entry] Encoding=UTF-8 Version=0.1 Type=Application Terminal=true Name=topx Exec=/usr/bin/osso-xterm -e "ssh toby@192.168.0.23 -p 443 -t 'screen -dR'" Icon= #X-Window-Icon=timerwidget X-Window-Icon= X-HildonDesk-ShowInToolbar=true X-Osso-Type=application/x-executable
The Following User Says Thank You to asktoby For This Useful Post: | ||
I know this thread is kinda dead (;
but I gotta give back, after receiving so much from it.
The solution mentioned here works.
Using /bin/busybox sh -c 'echo sh /etc/hildon-welcome.d/lalala.sh | sudo gainroot' works.
But, you need the desktop to refresh, for the icon to be up to date,
I have a script killing my desktop which I wrote some time ago ( on intention ) for cases when it gets stuck, I just used it - and it refreshed and everything works.
Another way is to just reboot the phone.
Thanks for all the info guys.
Now I have 2 icons on my desktop, "OC 600 MHz" and "OC 900 MHz" which I can just press and toggle to the wanted OC.
Off Topic:
If anyone wants them, they are for the titan ulv kernel,
attached below with icons. (inside zip file).
Instructions :
To get 2 icons for the desired overclocks download the attached files, and put them in the right locations :
1. Icon files should be in ./usr/share/icons/hicolor/64x64/hildon/
2. .desktop file should be in /usr/share/applications/hildon
3. .sh files should be in /usr/share (this is where I put them, as they are small and I don't care about the size they take.
4. You must have rootsh installed.
5. Don't forget to "chmod 777 <filename>" the .sh files.
| Reverse SSH - access your N900 from anywhere, anytime |
| Using Samsung Galaxy S GT-i9000 and Nokia N900 |
| DonateMe - If you feel I helped you in a very good way, feel free to donate |