Optware, the right way

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3 ... 155, 156, 157, 158, 159  Next
Author Message
Spy king
DD-WRT Novice


Joined: 12 Apr 2009
Posts: 25

PostPosted: Mon Oct 15, 2012 19:38    Post subject: Reply with quote
Hi,

Thanks, what does -l do? I wasn't able to find much info.


What would be the best way to mount this pendrive with the the partitions mentioned for optware and a HDD for downloads?

When I use automount,

the /opt partitions are mounted, and the HDD is mounted as /tmp/C while the Data partitions of the pen drive is mounted as /tmp/mnt
Sponsor
basmaf
DD-WRT Guru


Joined: 24 Feb 2011
Posts: 1074

PostPosted: Mon Oct 15, 2012 19:46    Post subject: Reply with quote
The trick for functions in *nix os
Is to google for man [function]

http://unixhelp.ed.ac.uk/CGI/man-cgi?umount+8

If i recall correctly the way other partitions are mounted are stored in /opt/etc/automount
Editing that file would make sure the partitions are mounted "your" way
Spy king
DD-WRT Novice


Joined: 12 Apr 2009
Posts: 25

PostPosted: Sat Oct 20, 2012 8:40    Post subject: Reply with quote
Thanks!

I just checked the auto mount script, the drives are mounted only twice, but somehow, they seem to be getting mounted twice.

When i run mount from terminal, I get two entries for the /opt mount.

This, however doens't seem to be affecting the functioning of the router in anyway.
Unless, it can't effect the running of cron jobs could it? I seem to be unable to get cron jobs to work.
basmaf
DD-WRT Guru


Joined: 24 Feb 2011
Posts: 1074

PostPosted: Sat Oct 20, 2012 12:48    Post subject: Reply with quote
Spy king wrote:
Thanks!

I just checked the auto mount script, the drives are mounted only twice, but somehow, they seem to be getting mounted twice.

When i run mount from terminal, I get two entries for the /opt mount.

This, however doens't seem to be affecting the functioning of the router in anyway.
Unless, it can't effect the running of cron jobs could it? I seem to be unable to get cron jobs to work.


What are you trying to do with cron?
Cron works fine so its probably syntax
Spy king
DD-WRT Novice


Joined: 12 Apr 2009
Posts: 25

PostPosted: Sun Oct 21, 2012 5:21    Post subject: Reply with quote
Hi,

I am trying to schedule flexget to run every hour.

Here is what I have added in the cron menu on the GUI.
Code:

*/45 * * * * root /opt/local/bin/flexget --cron


What would be the most simple way to check if cron is working? I tried entering a
Code:

*/5 * * * * root reboot


to check but couldn't get the router to reboot.

I then tried applying the fixes suggested herehttp://www.dd-wrt.com/phpBB2/viewtopic.php?p=717952&highlight=#top but still no luck.
basmaf
DD-WRT Guru


Joined: 24 Feb 2011
Posts: 1074

PostPosted: Mon Oct 22, 2012 16:48    Post subject: Reply with quote
Spy king wrote:
Hi,

I am trying to schedule flexget to run every hour.

Here is what I have added in the cron menu on the GUI.
Code:

*/45 * * * * root /opt/local/bin/flexget --cron


What would be the most simple way to check if cron is working? I tried entering a
Code:

*/5 * * * * root reboot


to check but couldn't get the router to reboot.

I then tried applying the fixes suggested herehttp://www.dd-wrt.com/phpBB2/viewtopic.php?p=717952&highlight=#top but still no luck.


Am not familiar with flexget but.
When executed in command line with this syntax it does work?

Something else is cron enabled?

Always use full paths in cron.


Test if cron works with a command like this
Code:
*/2 * * * * root /bin/echo `date` >> /tmp/cron_test
AgostinhoF
DD-WRT Novice


Joined: 21 Sep 2012
Posts: 4

PostPosted: Wed Oct 24, 2012 19:14    Post subject: Reply with quote
zoomlink wrote:
First check in the /opt/etc/init.d directory for a file called: S95twonky

Then check in the /opt/local directory for a directory called twonkymedia.

If it is not there... then you need to re-install it. The best thing to do is to re run the prep_optware script.

If you find the program but the script is what you are missing, then do this....
Code:

wget -O /opt/etc/init.d/S95twonky http://wd.mirmana.com/S95twonky

I Have all of this, running on a netgear wndr3440, with DD-WRT v24-sp2 (12/08/11) big, the service twonky looks like in the place, but not really working.
When i try to start the service, the folowing error message shows:
Start service "twonky" (/opt/etc/init.d/S95twonky)
service: Start service: "twonky" (/opt/etc/init.d/S95twonky)
S95twonky: Starting twonky
Daemonizing...
/opt/local/twonkymedia/twonkymedia: can't resolve symbol 'atexit'

Any suggestions? Question
slobodan
DD-WRT Guru


Joined: 03 Nov 2011
Posts: 1557
Location: Zwolle

PostPosted: Wed Oct 24, 2012 20:15    Post subject: Reply with quote
AgostinhoF wrote:

I Have all of this, running on a netgear wndr3440, with DD-WRT v24-sp2 (12/08/11) big, the service twonky looks like in the place, but not really working.
When i try to start the service, the folowing error message shows:
Start service "twonky" (/opt/etc/init.d/S95twonky)
service: Start service: "twonky" (/opt/etc/init.d/S95twonky)
S95twonky: Starting twonky
Daemonizing...
/opt/local/twonkymedia/twonkymedia: can't resolve symbol 'atexit'

Any suggestions? Question

OTRW media servers are known not to work with K26 builds. I would rip minidlna from a Kong firmware and use it on a USB stick.

_________________
2 times APU2 Opnsense 21.1 with Sensei

2 times RT-AC56U running DD-WRT 45493 (one as Gateway, the other as AP, both bridged with LAN cable)

3 times Asus RT-N16 shelved

E4200 V1 running freshtomato 2020.8 (bridged with LAN cable)

3 times Linksys WRT610N V2 converted to E3000 and 1 original E3000 running freshtomato 2020.8 (bridged with LAN cable)


Spy king
DD-WRT Novice


Joined: 12 Apr 2009
Posts: 25

PostPosted: Thu Nov 01, 2012 6:19    Post subject: Reply with quote
basmaf wrote:


Am not familiar with flexget but.
When executed in command line with this syntax it does work?

Something else is cron enabled?

Always use full paths in cron.


Test if cron works with a command like this
Code:
*/2 * * * * root /bin/echo `date` >> /tmp/cron_test


Sorry, have been traveling.

Cron is enabled, from the WebGui that is,

and, yes, the same command for flexget works well over telnet.

The above command should echo date in the syslog right?

that's at /opt/var/log/messages ? I don't seem to see any additional dates there.
basmaf
DD-WRT Guru


Joined: 24 Feb 2011
Posts: 1074

PostPosted: Thu Nov 01, 2012 8:17    Post subject: Reply with quote
Spy king wrote:
basmaf wrote:


Am not familiar with flexget but.
When executed in command line with this syntax it does work?

Something else is cron enabled?

Always use full paths in cron.


Test if cron works with a command like this
Code:
*/2 * * * * root /bin/echo `date` >> /tmp/cron_test


Sorry, have been traveling.

Cron is enabled, from the WebGui that is,

and, yes, the same command for flexget works well over telnet.

The above command should echo date in the syslog right?

that's at /opt/var/log/messages ? I don't seem to see any additional dates there.


No it echos the date to the file /tmp/cron_test every 2 minutes
Spy king
DD-WRT Novice


Joined: 12 Apr 2009
Posts: 25

PostPosted: Thu Nov 01, 2012 13:43    Post subject: Reply with quote
basmaf wrote:

No it echos the date to the file /tmp/cron_test every 2 minutes


Code:
root@Belkin N600:~# tail -f /tmp/cron_test
cannot open `/tmp/cron_test' for reading: No such file or directory
no files remaining
root@Belkin N600:~#


No luck Sad
[img][/img]



ddwrt-cron.JPG
 Description:
 Filesize:  14.41 KB
 Viewed:  16768 Time(s)

ddwrt-cron.JPG


basmaf
DD-WRT Guru


Joined: 24 Feb 2011
Posts: 1074

PostPosted: Thu Nov 01, 2012 14:33    Post subject: Reply with quote
Spy king wrote:
basmaf wrote:

No it echos the date to the file /tmp/cron_test every 2 minutes


Code:
root@Belkin N600:~# tail -f /tmp/cron_test
cannot open `/tmp/cron_test' for reading: No such file or directory
no files remaining
root@Belkin N600:~#


No luck Sad
[img][/img]


Remove quotes on date and reboot.
If that doesn't work I'm clueless
Spy king
DD-WRT Novice


Joined: 12 Apr 2009
Posts: 25

PostPosted: Thu Nov 01, 2012 14:53    Post subject: Reply with quote
basmaf wrote:

Remove quotes on date and reboot.
If that doesn't work I'm clueless


No luck Sad

Code:
root@Belkin N600:/tmp# dir
blkid          fs_used      mountedall        parts        swaps
c              hosts        nas.wl0.1lan.pid  resolv.conf  var
cron.d         loginprompt  nas.wl0wan.pid    root         www
disktype.dump  mnt          nvram             sds
etc            mounted      oet               smb.conf
root@Belkin N600:/tmp# cron_test
-bash: cron_test: command not found
root@Belkin N600:/tmp# cd ..
root@Belkin N600:/# /tmp/cron_test
-bash: /tmp/cron_test: No such file or directory
justhaveaq
DD-WRT Novice


Joined: 11 Nov 2012
Posts: 4

PostPosted: Tue Nov 13, 2012 6:27    Post subject: Reply with quote
Dear everyone,

I just successfully mounted my external usb hdd to my router (info included in bottom) using "Optware, The Right Way" ( http://www.dd-wrt.com/wiki/index.php/Optware%2C_the_Right_Way ). I know optware comes with samba2. I am trying to detect my hdd through my Win7 OS but I'm not able to see it in my network (I have ext2/3 drivers for Win7 and I am able to see ext2/3 partitions when hdd is connected straight to my computer). I have only completed the above tutorial and it doesn't mention how to get your PC to detect the hdd or how to configure Samba2 to get your PC to detect your hdd. Any guidance of what I can do now would be amazing.

info:
Router: Netgear WNR3500v2/U/L
dd-wrt: DD-WRT v24-sp2 (08/12/10) mega - build 14929

after mounting and installing optware (I did NOT upgrade to Samba3.5):
root@tv-ap:~# blkid
/dev/sda1: LABEL="Optware" UUID="43760197-aa62-4f4e-ae2b-b5240f9aa1e0" TYPE="ext
/dev/sda2: UUID="021e4578-e111-4df1-bf0a-8deb1d14f993" TYPE="swap"
/dev/sda3: LABEL="Data" UUID="08e06cff-eacf-4081-a0ad-83a319af5170" TYPE="ext2"


Thank you in advance.
slobodan
DD-WRT Guru


Joined: 03 Nov 2011
Posts: 1557
Location: Zwolle

PostPosted: Tue Nov 13, 2012 16:46    Post subject: Reply with quote
Spy king wrote:

root@Belkin N600:/tmp# cron_test
-bash: cron_test: command not found
root@Belkin N600:/tmp# cd ..
root@Belkin N600:/# /tmp/cron_test
-bash: /tmp/cron_test: No such file or directory[/code]

Use /bin/echo -e "`date`" in your cron line.

_________________
2 times APU2 Opnsense 21.1 with Sensei

2 times RT-AC56U running DD-WRT 45493 (one as Gateway, the other as AP, both bridged with LAN cable)

3 times Asus RT-N16 shelved

E4200 V1 running freshtomato 2020.8 (bridged with LAN cable)

3 times Linksys WRT610N V2 converted to E3000 and 1 original E3000 running freshtomato 2020.8 (bridged with LAN cable)


Goto page Previous  1, 2, 3 ... 155, 156, 157, 158, 159  Next Display posts from previous:    Page 156 of 159
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC 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 can attach files in this forum
You can download files in this forum