unable to install transmission

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware
Author Message
ifro4u
DD-WRT Novice


Joined: 25 Aug 2015
Posts: 8

PostPosted: Mon Aug 31, 2015 12:16    Post subject: unable to install transmission Reply with quote
guys please help
when execute first step on asus n13ub1 with firmware 27745
i get


root@ASUS N13B1:~# cd /tmp/mnt/sda1
root@ASUS N13B1:/tmp/mnt/sda1# touch optware.enable
root@ASUS N13B1:/tmp/mnt/sda1# cd /tmp/mnt/sda2
root@ASUS N13B1:/tmp/mnt/sda2# mkdir etc opt root bin lib usr
root@ASUS N13B1:/tmp/mnt/sda2# touch optware.enable
root@ASUS N13B1:/tmp/mnt/sda2# chmod 755 etc opt root bin lib usr
root@ASUS N13B1:/tmp/mnt/sda2# mkdir opt/lib
root@ASUS N13B1:/tmp/mnt/sda2# chmod 755 opt/lib
root@ASUS N13B1:/tmp/mnt/sda2# cp -a /etc/* /tmp/mnt/sda2/etc/
root@ASUS N13B1:/tmp/mnt/sda2# cp -a /bin/* /tmp/mnt/sda2/bin/
root@ASUS N13B1:/tmp/mnt/sda2# cp -a /lib/* /tmp/mnt/sda2/lib/
root@ASUS N13B1:/tmp/mnt/sda2# cp -a /usr/* /tmp/mnt/sda2/usr/
root@ASUS N13B1:/tmp/mnt/sda2# sleep 15
root@ASUS N13B1:/tmp/mnt/sda2# mount -o bind /tmp/mnt/sda2/usr /usr
root@ASUS N13B1:/tmp/mnt/sda2# mount -o bind /tmp/mnt/sda2/lib /lib
root@ASUS N13B1:/tmp/mnt/sda2# mount -o bind /tmp/mnt/sda2/bin /bin
root@ASUS N13B1:/tmp/mnt/sda2# mount -o bind /tmp/mnt/sda2/opt /jffs
-sh: mount: not found
root@ASUS N13B1:/tmp/mnt/sda2# mount -o bind /tmp/mnt/sda2/etc /etc
-sh: mount: not found
root@ASUS N13B1:/tmp/mnt/sda2#

please let me know what i am doing wrong
Sponsor
ifro4u
DD-WRT Novice


Joined: 25 Aug 2015
Posts: 8

PostPosted: Mon Aug 31, 2015 13:50    Post subject: Reply with quote
ddwrt gurus please help
js1662
DD-WRT Guru


Joined: 23 Jul 2014
Posts: 1237
Location: BC, CA

PostPosted: Fri Sep 04, 2015 4:26    Post subject: Re: unable to install transmission Reply with quote
ifro4u wrote:
guys please help
when execute first step on asus n13ub1 with firmware 27745
i get


root@ASUS N13B1:~# cd /tmp/mnt/sda1
root@ASUS N13B1:/tmp/mnt/sda1# touch optware.enable
root@ASUS N13B1:/tmp/mnt/sda1# cd /tmp/mnt/sda2
root@ASUS N13B1:/tmp/mnt/sda2# mkdir etc opt root bin lib usr
root@ASUS N13B1:/tmp/mnt/sda2# touch optware.enable
root@ASUS N13B1:/tmp/mnt/sda2# chmod 755 etc opt root bin lib usr
root@ASUS N13B1:/tmp/mnt/sda2# mkdir opt/lib
root@ASUS N13B1:/tmp/mnt/sda2# chmod 755 opt/lib
root@ASUS N13B1:/tmp/mnt/sda2# cp -a /etc/* /tmp/mnt/sda2/etc/
root@ASUS N13B1:/tmp/mnt/sda2# cp -a /bin/* /tmp/mnt/sda2/bin/
root@ASUS N13B1:/tmp/mnt/sda2# cp -a /lib/* /tmp/mnt/sda2/lib/
root@ASUS N13B1:/tmp/mnt/sda2# cp -a /usr/* /tmp/mnt/sda2/usr/
root@ASUS N13B1:/tmp/mnt/sda2# sleep 15
root@ASUS N13B1:/tmp/mnt/sda2# mount -o bind /tmp/mnt/sda2/usr /usr
root@ASUS N13B1:/tmp/mnt/sda2# mount -o bind /tmp/mnt/sda2/lib /lib
root@ASUS N13B1:/tmp/mnt/sda2# mount -o bind /tmp/mnt/sda2/bin /bin
root@ASUS N13B1:/tmp/mnt/sda2# mount -o bind /tmp/mnt/sda2/opt /jffs
-sh: mount: not found
root@ASUS N13B1:/tmp/mnt/sda2# mount -o bind /tmp/mnt/sda2/etc /etc
-sh: mount: not found
root@ASUS N13B1:/tmp/mnt/sda2#

please let me know what i am doing wrong


As the problem happens after you did mount -o bind /tmp/mnt/sda2/bin /bin so please check the directory /tmp/mnt/sda2/bin and see if there is mount there. Chances are there is problem when you copy the files from /bin to /tmp/mnt/sda2/bin

I understand that you are trying to install optware and transmission on your RT-N13UB1 based on the guide on this forum but please note that the guide is for Atheros platforms and RT-N13UB1 has a Ralink RT3052. It doesn't mean that you can't use the guide here but you can't just follow the guide, you have to make some adjustments. Reason being that the repository used on the guide refer to ar71xx/generic on openwrt but for Ralink RT3052 you have to use ramips/rt305x.

Another thing you have to check is whether your dd-wrt for RT-N13B1 has ipkg or not as that is very important. You need that to install uclibc; libc and opkg. Without ipkg, you can't proceed further. My Belkin F5D8235-4 v2 has Ralink too and the dd-wrt for F5D8235-4 v2 doesn't come with ipkg. In case your RT-N13UB1 doesn't have ipkg, you can try to use dd-wrt development kit to modify the firmware and put opkg directly on the firmware. Sound complicated, right?

BTW, there is a thread that talk about optware for RT-N13U, may be a bit outdated (2010) but you can try if you like. Check this thread: http://www.dd-wrt.com/phpBB2/viewtopic.php?p=454647#454647

Finally, since RT-N13UB1 use Ralink chip, so you better post your question on the Ralink forum. Chances are you may get more attention from members who use RT-N13UB1 and they may provide more help on your problem.
ifro4u
DD-WRT Novice


Joined: 25 Aug 2015
Posts: 8

PostPosted: Tue Sep 08, 2015 13:51    Post subject: Reply with quote
thanks for your reply sir
my firmware does contain ipkg as i am successfully able to install transmission on ram folder
but when am trying to mount i am losing root for my router
and its not only when i mount bin folder but any folder
and there is no guide to install optware on ralink devices?
right now i am considering to downgrade to stable simple ddwrt version so i can install transmission
js1662
DD-WRT Guru


Joined: 23 Jul 2014
Posts: 1237
Location: BC, CA

PostPosted: Wed Sep 09, 2015 8:23    Post subject: Reply with quote
ifro4u wrote:
thanks for your reply sir
my firmware does contain ipkg as i am successfully able to install transmission on ram folder
but when am trying to mount i am losing root for my router
and its not only when i mount bin folder but any folder
and there is no guide to install optware on ralink devices?
right now i am considering to downgrade to stable simple ddwrt version so i can install transmission


It sounds like you are still having problem with mount command. First of all, are you following this guide: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=177532&start=0 to install optware to your router? If so, please try following the exact order as specified on the guide and see if it makes any difference, i.e.

mount -o bind /tmp/mnt/sda2/etc /etc
mount -o bind /tmp/mnt/sda2/bin /bin
mount -o bind /tmp/mnt/sda2/lib /lib
mount -o bind /tmp/mnt/sda2/usr /usr
mount -o bind /tmp/mnt/sda2/opt /jffs

Please note that my previous comment regarding the openwrt repository still holds.

"I understand that you are trying to install optware and transmission on your RT-N13UB1 based on the guide on this forum but please note that the guide is for Atheros platforms and RT-N13UB1 has a Ralink RT3052. It doesn't mean that you can't use the guide here but you can't just follow the guide, you have to make some adjustments. Reason being that the repository used on the guide refer to ar71xx/generic on openwrt but for Ralink RT3052 you have to use ramips/rt305x."

Anyway, lets fix the mount issue first and we can discuss about the repository issue later.
ifro4u
DD-WRT Novice


Joined: 25 Aug 2015
Posts: 8

PostPosted: Tue Sep 15, 2015 2:45    Post subject: Reply with quote
thanks for reply
i was following that guide
but then i am fed up of it so changed the way

following is script which working perfectly fine

cd /mnt
mkdir /mnt/opt
mkdir -p /mnt/data/torrents
mount /mnt/opt /opt
wget http://www.3iii.dk/linux/optware/optware-install-ddwrt.sh -O /tmp/optware-install.sh
sh /tmp/optware-install.sh
/opt/bin/ipkg-opt -verbose_wget install transmission
/opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-­daemon
killall transmission-daemon
wget http://www.3iii.dk/linux/optware/settings.json -O /mnt/data/torrents/.config/transmission-daemon/settings.json
/usr/sbin/iptables -I INPUT 1 -p tcp --dport 25000 -j logaccept
/opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-­daemon

but it has got its limitation. as the opt and torrents data folder created on mnt folder which is i think ram of device and get clear on router reboot.

so i did work around i create data folder and torrents on sda1.
so in case of reboot of device i dont loose my torrents

but every time i reboot i have to run the above script to install opt and transmission

so now i am on how get install and run transmission on sda1
js1662
DD-WRT Guru


Joined: 23 Jul 2014
Posts: 1237
Location: BC, CA

PostPosted: Tue Sep 15, 2015 6:03    Post subject: Reply with quote
You can try the following modifications to your instructions and see if it works:

Make a directory /opt on sda1 and mount it to /opt, i.e. mount -o bind /tmp/mnt/sda1/opt /opt

Run the script and workaround that you did previously to install optware and transmission.

After you have installed both optware and transmission successfully, add the following to the start up commands so that it will automatically mount the /opt and add the iptables as well as run transmission whenever the router is rebooted:

#! /bin/sh
mount -o bind /tmp/mnt/sda1/opt /opt
/usr/sbin/iptables -I INPUT 1 -p tcp --dport 25000 -j logaccept
/opt/bin/transmission-daemon -g /tmp/mnt/sda1/data/torrents/.config/transmission-­daemon

I assume your workaround for the data folder is on /tmp/mnt/sda1/data. If not, change that to the correct directory.
ifro4u
DD-WRT Novice


Joined: 25 Aug 2015
Posts: 8

PostPosted: Tue Sep 22, 2015 17:50    Post subject: Reply with quote
thanks for your reply
your suggestion work flawlessly
transmission working superfine i will try to upgrade guide on wiki for my router

now i am working on installing pyload
and i got success from following command as

cd /mnt

mkdir /mnt/sda1/opt

chmod 755 /tmp/mnt/sda1/opt

mount -o bind /tmp/mnt/sda1/opt /opt

wget http://www.3iii.dk/linux/optware/optware-install-ddwrt.sh -O /tmp/optware-install.sh

sh /tmp/optware-install.sh

ipkg install wget tesseract-ocr tesseract-ocr-lang-eng ossp-js unrar

ipkg install /tmp/mnt/sda1/python25_2.5.6-2_mipsel.ipk

ipkg install /tmp/mnt/sda1/pyload-v0.4.9-noarch.ipk

pyLoadCore -s

it install successfully pyload
but when i run command
pyLoadCore
it execute some pre run thing till it says downloading plugin it halt there
some times gives segmentation fault

and strangely till this i can access webgui of it once this execution end in putty the webgui becomes inaccessible
js1662
DD-WRT Guru


Joined: 23 Jul 2014
Posts: 1237
Location: BC, CA

PostPosted: Wed Sep 23, 2015 4:13    Post subject: Reply with quote
I am not familiar with pyload so I am not sure what is the problem. May be you can try the ipk from openwrt which is compatible with RT-N13 and see if it works better in your case or not. The link to openwrt's repository is: http://downloads.openwrt.org/barrier_breaker/14.07-rc3/ramips/rt305x/packages/

Moreover, I think after you have run the optware script to install optware to your router, you should use ipkg-opt in place of ipkg for installing other ipk. However, I am not sure if that matters as I have never used the optware script.
ifro4u
DD-WRT Novice


Joined: 25 Aug 2015
Posts: 8

PostPosted: Wed Sep 23, 2015 16:55    Post subject: Reply with quote
thanks for reply
and thanks for link for my router pkgs

i found solution for pyload as
the update manager of pyload was faulty it has to replace with correct one.

and can you make correction to my script according ipkg-opt so i can understand clearly

but every thing is installing with optware script!
js1662
DD-WRT Guru


Joined: 23 Jul 2014
Posts: 1237
Location: BC, CA

PostPosted: Wed Sep 23, 2015 22:05    Post subject: Reply with quote
Never mind what I said in my previous post. It is better not to change anything as long as it is working. Keep it as it is for now.
ifro4u
DD-WRT Novice


Joined: 25 Aug 2015
Posts: 8

PostPosted: Thu Sep 24, 2015 12:09    Post subject: Reply with quote
so what you do for http download on router
js1662
DD-WRT Guru


Joined: 23 Jul 2014
Posts: 1237
Location: BC, CA

PostPosted: Fri Sep 25, 2015 7:39    Post subject: Reply with quote
ifro4u wrote:
so what you do for http download on router


No, I don't do http download on router. I never use Transmission. I don't even use my router as NAS due to its poor speed. I use my router mainly as wifi router.
ifro4u
DD-WRT Novice


Joined: 25 Aug 2015
Posts: 8

PostPosted: Sat Sep 26, 2015 3:01    Post subject: Reply with quote
ok thanks a lot for all your support
you have given very good advice Very Happy Very Happy Very Happy
BellaDavis
DD-WRT Novice


Joined: 08 Jul 2019
Posts: 1

PostPosted: Mon Jul 08, 2019 7:22    Post subject: Atheros WiSOC based Hardware Reply with quote
Thank you for this information.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum 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