The Following 5 Users Say Thank You to Saturn For This Useful Post: | ||
|
2010-11-08
, 23:21
|
|
Posts: 623 |
Thanked: 289 times |
Joined on Jan 2010
@ UK
|
#12
|
The Following User Says Thank You to JonWW For This Useful Post: | ||
|
2010-11-08
, 23:25
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#13
|
The Following User Says Thank You to Saturn For This Useful Post: | ||
|
2010-11-08
, 23:26
|
|
Posts: 388 |
Thanked: 115 times |
Joined on Oct 2009
@ London, UK
|
#14
|
|
2010-11-08
, 23:29
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#15
|
Using Mac TexEdit, converted files to plantext. Uploaded via sftp on FileZilla.
|
2010-11-08
, 23:30
|
|
Posts: 388 |
Thanked: 115 times |
Joined on Oct 2009
@ London, UK
|
#16
|
ooh, you changed your post while i was writing too..
How did you make the script? using notes or in windows?
|
2010-11-08
, 23:34
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#17
|
It works. The myscript.sh.
I ****ing love you. Ah, you're lucky I don't know you IRL, I might just have to rape you!
I'm gonna change the .desktop files now and make sure it does indeed work.
Thanks! You're awesome!
The Following User Says Thank You to Saturn For This Useful Post: | ||
|
2010-11-11
, 16:00
|
|
Posts: 623 |
Thanked: 289 times |
Joined on Jan 2010
@ UK
|
#18
|
Using Mac TexEdit, converted files to plantext. Uploaded via sftp on FileZilla.
The Following User Says Thank You to JonWW For This Useful Post: | ||
|
2010-12-30
, 12:29
|
Posts: 2 |
Thanked: 0 times |
Joined on Dec 2010
|
#19
|
OK,
Put this in a script (using leafpad for example, but not notes) called myscript.sh in the folder /home/user/
Make it execulable: chmod 755 /home/user/myscript.sh
execute it as user by simply in an xterm:Code:#!/bin/sh # gain superuser rights. if [ `id -u` != 0 ] ; then exec sudo gainroot <<EOF exec sh $0 $* EOF exit $? fi # put your code below rmmod wl12xx; rmmod mac80211; rmmod cfg80211; insmod /home/user/MyDocs/neo/compat.ko; insmod /home/user/MyDocs/neo/rfkill_backport.ko; insmod /home/user/MyDocs/neo/cfg80211.ko; insmod /home/user/MyDocs/neo/mac80211.ko; insmod /home/user/MyDocs/neo/wl1251.ko; insmod /home/user/MyDocs/neo/wl1251_spi.ko; exit;
/home/user/myscript.sh
If it does what you need then in your desktop file replace the exec line with:
Exec=/home/user/myscript.sh
|
2011-02-10
, 16:23
|
Posts: 21 |
Thanked: 6 times |
Joined on Apr 2010
|
#20
|
#!/bin/sh nohup x11vnc -forever&
[Desktop Entry] Encoding=UTF-8 Version=0.1 Type=Application Terminal=true Name=StartVNCserver Exec=/usr/local/bin/StartVNCserver.sh Icon=terminal X-Osso-Type=application/x-executable X-HildonDesk-ShowInToolbar=true
Exec=osso-xterm
Exec=osso-xterm "nohup x11vnc -forever&"
Put this in a script (using leafpad for example, but not notes) called myscript.sh in the folder /home/user/
Make it execulable: chmod 755 /home/user/myscript.sh
/home/user/myscript.sh
If it does what you need then in your desktop file replace the exec line with:
Exec=/home/user/myscript.sh
Packages: elGR Locale, SMSCON Editor, Swappolube, CSSU Features Configuration, Snuggle, YAMAS, Cleven
Garage: SMSCON, Swappolube, CSSU Features Configuration, Snuggle
Wiki: SMSCON, SMSCON Editor, Swappolube, CSSU Features Configuration, Cleven