Autoinstall OPKG, Transmission,hd-idle and Minidlna

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3, 4, 5, 6  Next

Was this useful ?
Yes
88%
 88%  [ 47 ]
No
11%
 11%  [ 6 ]
Total Votes : 53

Author Message
janesgloucester
DD-WRT Novice


Joined: 07 Apr 2011
Posts: 3

PostPosted: Sat Apr 09, 2011 0:04    Post subject: Reply with quote
when running the initiate command i'm also getting the "/mnt/setupscript.sh: not found" error.

very annoying, i've tried going into the directory and running from there, tried running from the commands window in the router settings and tried through ssh all end up with the same error.

Also tried the above after a factory reset with no luck.

No idea what else to try. Question Sad
Sponsor
Madnick
DD-WRT User


Joined: 28 Dec 2010
Posts: 79

PostPosted: Sat Apr 09, 2011 4:16    Post subject: Reply with quote
I had to try it too.
Same error here...

_________________
1x DIR-615 D3 (DD-WRT 15778)
2x WHR-HP-G54 (DD-WRT 14929)
2x WLI-TX4-G54HP (DD-WRT 13064 and autoAP)
1x WZR-HP-G300NH (joke right?)
anees.sw
DD-WRT User


Joined: 17 Sep 2010
Posts: 267
Location: India

PostPosted: Sat Apr 09, 2011 5:59    Post subject: Reply with quote
thats coz ur probably using build 16454. most things dont work on build 16454
anees.sw
DD-WRT User


Joined: 17 Sep 2010
Posts: 267
Location: India

PostPosted: Sat Apr 09, 2011 6:01    Post subject: Reply with quote
works on previous builds.
janesgloucester
DD-WRT Novice


Joined: 07 Apr 2011
Posts: 3

PostPosted: Sat Apr 09, 2011 16:16    Post subject: Reply with quote
thanks, will try a previous build and will let you know how it goes.

Edit: tried 15940, 14896 and 14815 all result in the same error Crying or Very sad

Will have to see if I can do it the manual way.
slan
DD-WRT Novice


Joined: 13 Apr 2011
Posts: 14

PostPosted: Wed Apr 13, 2011 17:24    Post subject: Reply with quote
I have installed, but was not easy

You must be in /root , then type "/mnt/setupscript.sh torrent install" or "/mnt/setupscript.sh minidlna", then will be installed
Beerukoff
DD-WRT Novice


Joined: 12 Apr 2011
Posts: 13

PostPosted: Wed Apr 13, 2011 20:10    Post subject: Reply with quote
root@DD-WRT:~# chmod +x /mnt/setupscript.sh
root@DD-WRT:~# /mnt/setupscript.sh initiate
-sh: /mnt/setupscript.sh: not found



root@DD-WRT:~# cd /mnt
root@DD-WRT:/mnt# ls
asp lost+found setupscript.sh


Help me pls!
anees.sw
DD-WRT User


Joined: 17 Sep 2010
Posts: 267
Location: India

PostPosted: Thu Apr 14, 2011 4:36    Post subject: Reply with quote
slan wrote:
I have installed, but was not easy

You must be in /root , then type "/mnt/setupscript.sh torrent install" or "/mnt/setupscript.sh minidlna", then will be installed



what do you mean?
slan
DD-WRT Novice


Joined: 13 Apr 2011
Posts: 14

PostPosted: Thu Apr 14, 2011 6:51    Post subject: Reply with quote
I have make all in the first post
To install minidlna, samba etc., start Putty from Windows(telnet to router(must have internet connection) ip)->login and type:

/mnt/setupscript.sh samba install
this are the options:

minidlna - Installing minidlna media server
torrent install - Installing transmission torrent client
torrent setup - Setting up transmission torrent client
samba install - Installing Samba server
samba setup - Setting up Samba server
ftp install - Installing pure-ftpd server
ftp setup - Setting up pure-ftpd server
printer - Setting up the USB printer and sharing
hdidle install - Install hd-idle
hdidle remove - Remove hdidle
anees.sw
DD-WRT User


Joined: 17 Sep 2010
Posts: 267
Location: India

PostPosted: Thu Apr 14, 2011 7:12    Post subject: Reply with quote
what did you mean by you must be in /root. it works for me, i wrote it, but why isnt it working for the rest?
Beerukoff
DD-WRT Novice


Joined: 12 Apr 2011
Posts: 13

PostPosted: Thu Apr 14, 2011 18:38    Post subject: Reply with quote
Another chance

root@DD-WRT:~# chmod +x /mnt/setupscript.sh
root@DD-WRT:~# sh /mnt/setupscript.sh
: not foundcript.sh: line 13:
: not foundcript.sh: line 14:
/mnt/setupscript.sh: line 15: syntax error: word unexpected (expecting "in")

Could you please help me?
ZmiauX
DD-WRT Novice


Joined: 04 Apr 2011
Posts: 1

PostPosted: Thu Apr 14, 2011 23:05    Post subject: :( Reply with quote
Hi, I too have the same problem. I went from 16454 to 15704, but nothing has changed:

-sh: /mnt/setupscript.sh: not found

I have a D-Link DIR-825.

Thank you for your work
anees.sw
DD-WRT User


Joined: 17 Sep 2010
Posts: 267
Location: India

PostPosted: Fri Apr 15, 2011 13:49    Post subject: Reply with quote
try on of these

Code:
chmod 777 /mnt/setupscript.sh
sh /mnt/setupscript.sh


or

Code:
cd /mnt
chmod 777 ./setupscript.sh
./setupscript.sh


or
Code:
cd /mnt
chmod 777 ./setupscript.sh
sh ./setupscript.sh
randombrick
DD-WRT Novice


Joined: 30 Apr 2011
Posts: 2

PostPosted: Sat Apr 30, 2011 11:37    Post subject: Reply with quote
edit:double post

Last edited by randombrick on Sat Apr 30, 2011 12:03; edited 1 time in total
randombrick
DD-WRT Novice


Joined: 30 Apr 2011
Posts: 2

PostPosted: Sat Apr 30, 2011 12:02    Post subject: Reply with quote
mate,

the attached shell script has Windows line-enders. Saving the file with Unix line-enders lets the script run for me.

I am having other problems with the script though. Once installed, I can no longer ssh to my router. Errors out with - "PTY allocation request failed on channel 0"

Why does the script look for /dev/scsi/? My USB drive lists as /dev/sda. Should I edit the script for this?

The script output is below. Mine's a Buffalo WZR-HP-G300NH

Code:
##################################
# Setup Script. Adapted from wrt160nl.org #
##################################
Make sure Automount is enabled on /mntfind: /dev/scsi/: No such file or directory
done.
Mounting USB drive...
/mnt has been already used. umounting... umount: can't umount /mnt: Device or resource busy
mount: can't find /mnt in /etc/fstab
done.
 
Copying stuff to USB... mkdir: cannot create directory '/mnt/opt': File exists
cp: omitting directory '/jffs'
done.
Mounting USB over running system... done.
Setting up ipkg... done.
Creating startup scripts... done.
Creating Shutdown Script
done.
Creating Firewall Script
done
Preparing OPKG
mkdir: cannot create directory '/mnt/root': File exists
Installing OPKG
Connecting to downloads.openwrt.org (78.24.191.177:80)
wget: can't open 'opkg_576-1_ar71xx.ipk': File exists
Bus error
rm: cannot remove '/mnt/etc/opkg.conf': No such file or directory
Updating OPKG...
./setupscript.sh: line 460: opkg: not found
Done
 
Initiation done, router will reboot in 30 seconds........
Goto page Previous  1, 2, 3, 4, 5, 6  Next Display posts from previous:    Page 3 of 6
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum