View unanswered posts | View active topics It is currently Tue May 21, 2013 7:09 am



Reply to topic  [ 267 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 27  Next
 [HOW TO] install optware and get transmission, twonky 
Author Message

Joined: Fri Nov 20, 2009 8:25 am
Posts: 41
Post Re: [ HOW TO ] install optware and get transmission, twonky
frater wrote:
re-upgrade and remove the opt directory.....
You already gave up?
It IS working here.....
It is of course possible I made a little tweak which I didn't include in my install script....

I will do a virgin install this evening and see if it works out of the box.....

Here's the speed of the Acryan's harddisk :cry:

# hdparm -tT /dev/sda

/dev/sda:
Timing cached reads: 86 MB in 2.04 seconds = 42.16 MB/sec
Timing buffered disk reads: 72 MB in 3.04 seconds = 23.68 MB/sec


No i don't give up that easy :D but i like to know my escape ;)

It must be something little i think, or hope :)

Do you know if there is a way to disable telnetd, looks like it's a busybox command :(

O ye, a Samsung HD154UI, :(

[root@PlayonHD ~]# hdparm -tT /dev/sda1

/dev/sda1:
Timing cached reads: 80 MB in 2.02 seconds = 39.60 MB/sec
Timing buffered disk reads: 68 MB in 3.01 seconds = 22.59 MB/sec

Oké a silent 5400 rpm drive :)


Mon Nov 30, 2009 6:24 pm
Profile

Joined: Mon Nov 02, 2009 9:22 pm
Posts: 100
Post Re: [ HOW TO ] install optware and get transmission, twonky
Quote:
Do you know if there is a way to disable telnetd, looks like it's a busybox command



disable telnet:
Code:
/bin/mount -o,remount,rw /
sed -i -e "s/^telnet/#telnet/" /etc/inetd.conf
/bin/mount -o,remount,ro /
killall -HUP inetd


enable telnet:
Code:
/bin/mount -o,remount,rw /
sed -i -e "s/^#telnet/telnet/" /etc/inetd.conf
/bin/mount -o,remount,ro /
killall -HUP inetd


I'm currently testing the transmission install using a virgin setup. I think I already found the culprit....


Mon Nov 30, 2009 8:09 pm
Profile

Joined: Mon Nov 02, 2009 9:22 pm
Posts: 100
Post Re: [ HOW TO ] install optware and get transmission, twonky
If you want to reinstall you should follow this sequence:

upgrade firmware (system will reboot)
select language, network settings & Internet time
login with telnet
Code:
rm -rf /tmp/hdd/root/opt
reboot

login with telnet
Code:
cd /tmp/hdd/root
wget -O ryanopt http://wd.mirmana.com/ryanopt
sh ryanopt

and reboot again
Code:
reboot

The double reboot is for ensuring samba is started....

Login another time and issue a restart of transmission so it will get more appropriate default settings for this box...

Code:
service transmission restart


You can drop a torrent in Torrent/source and it should start downloading..
I did a test with a piratebay-torrent and nothing happened.
You should go here for a quick test.... http://www.seedpeer.com/details/2570245.html

I added ssh so you can use scp. I advice you to make a private/public keypair and add your public key to /root/.ssh/authorized_keys
You will not need to use a password to login....

I added the user "ryan" so it can be used for ftp which is also installed now. Its password is 'ryan'. If you want to change that you need to give these commands:

Code:
/bin/mount -o,remount,rw /
passwd ryan

after you change the password you need to move /etc/passwd to /usr/local/etc/passwd because that utility messed it up. make a new symbolic link and then make the filesystem read-only again with the following commands:
Code:
if [ ! -h /etc/passwd ] ; then
  mv /etc/passwd /usr/local/etc/
  ln -s ../usr/local/etc/passwd /etc/passwd
fi
/bin/mount -o,remount,ro /


Last edited by frater on Mon Nov 30, 2009 11:45 pm, edited 5 times in total.



Mon Nov 30, 2009 9:11 pm
Profile

Joined: Fri Nov 20, 2009 8:25 am
Posts: 41
Post Re: [ HOW TO ] install optware and get transmission, twonky
Hi Frater, if i understand you well from vanilla transmission isn't working also by you?

For easy testing i have removed the watchdog script in cron, then started transmission-daemon manual in foreground mode.

Looks like a conflicting path :?

[root@PlayonHD ~]# transmission-daemon -f -g /tmp/hdd/root/opt/home/transmission/.config/transmission-daemon/settings.json

[14:13:44.715] Couldn't create "/tmp/hdd/root/opt/home/transmission/.config/transmission-daemon/settings.json/resume": File "/tmp/hdd/root/opt/home/transmission/.config/transmission-daemon/settings.json" is in the way
[14:13:44.717] Couldn't create "/tmp/hdd/root/opt/home/transmission/.config/transmission-daemon/settings.json/torrents": File "/tmp/hdd/root/opt/home/transmission/.config/transmission-daemon/settings.json" is in the way
[14:13:44.744] Couldn't create "/tmp/hdd/root/opt/home/transmission/.config/transmission-daemon/settings.json/blocklists": File "/tmp/hdd/root/opt/home/transmission/.config/transmission-daemon/settings.json" is in the way
[14:13:44.744] RPC Server: Adding address to whitelist: 127.0.0.1
[14:13:44.751] RPC Server: Serving RPC and Web requests on port 9091
[14:13:44.755] RPC Server: Whitelist enabled
[14:13:44.756] Transmission 1.76 (9395) started
[14:13:44.800] DHT: Generating new id
[14:13:45.085] Port Forwarding (NAT-PMP): initnatpmp succeeded (0)
[14:13:45.085] Port Forwarding (NAT-PMP): sendpublicaddressrequest succeeded (2)
[14:13:53.122] Port Forwarding: Starting
[14:13:53.472] Port Forwarding: Starting
[14:14:17.147] Couldn't open "/tmp/hdd/root/opt/home/transmission/.config/transmission-daemon/settings.json/settings.json": Not a directory
[14:14:17.148] Saved "/tmp/hdd/root/opt/home/transmission/.config/transmission-daemon/settings.json/settings.json"
[14:14:17.149] DHT: Not saving nodes, DHT not ready
[14:14:17.150] Couldn't open "/tmp/hdd/root/opt/home/transmission/.config/transmission-daemon/settings.json/stats.json": Not a directory
[14:14:17.150] Port Forwarding: Stopped
Closing transmission session... done.


Mon Nov 30, 2009 9:21 pm
Profile

Joined: Mon Nov 02, 2009 9:22 pm
Posts: 100
Post Re: [ HOW TO ] install optware and get transmission, twonky
Quote:
Hi Frater, if i understand you well from vanilla transmission isn't working also by you?

Just use the startup scripts I provided.
I'm currently in the process of my last 'virgin run'
I found out the utility 'passwd' turned my symbolic link '/etc/passwd' into a file.....

Do also take care you're not running the old install script (wget doesn't overwrite an existing file if the -O is not used).

I made some minor but trivial changes in my instructions which reflect my recent findings....
Please re-read my recent posts....

To get a proper config you need to restart transmission the first time....
I tried to do this during the install sequence but then it doesn't work as expected....
Just restart transmission after installation with "service transmission restart"

I just checked this and the thing runs out of the box......


Mon Nov 30, 2009 9:59 pm
Profile

Joined: Sat Sep 26, 2009 6:08 am
Posts: 829
Location: Seattle
Post Re: [ HOW TO ] install optware and get transmission, twonky
Hey Frater,

Any chance you can type a few quick descriptions on how optware fits into the Linux/Unix OS lineup and what you had to add (libraries?)to the current firmware OS to get the programs you have provided to the PlayOn!HD community to run?

I know I am not just rusty with command line Linux but was not up to this speed when I was my most knowledgable.

Or send me to the best source for optware and busybox.

Thanks,

Matt.

_________________
Playon!HD Firmware v7.06.r4107 (6/4/2010)
Internal SAMSUNG EcoGreen F2 HD103SI 1TB 5400 RPM
Windows 7x64 to Playon!HD Syncing done by Syncback (Free) over Ethernet via WRT54g (DD-WRT)
AVR(AVR130) <-SPDIF <- PlayOn!HD -> HDMI -> TV(TH-42pz700u)


Tue Dec 01, 2009 7:21 am
Profile

Joined: Mon Nov 02, 2009 9:22 pm
Posts: 100
Post Re: [ HOW TO ] install optware and get transmission, twonky
The nslu2 - optware was an initiative to enhance the nslu2 (a NAS from Linksys). This is brought to many other platforms. I have a DD-WRT router and a Western Digital Worldbook.
It's a collection of the standard gnu-utilities and are precompiled / preconfigured for specific platforms.

To make a cheap system hardware vendors use Linux because it's a good system for which a lot of software already exists and it's free. Well.... not really free. They have to publish the source of the whole package although they don't really like doing so (also their own contributions). Many vendors just like to take all this work from the community and will not give back....

busybox is a very good software package which brings most of the utilities into a small compact form. It's quite popular to be used....

I've written several shell scripts and found out a lot of utilities are behaving either wrong, different or just don't exist when busybox is used as the core application. The script which runs great on one box then just doesn't run properly on another.... bash (bourne again shell by bourne) is IMHO the standard to be used.

Two popular and very powerfull languages that can be interpreted are perl and python. These languages are very portable.

A lot more can be said, written but alas I have to go to work :cry:


Tue Dec 01, 2009 8:16 am
Profile

Joined: Fri Nov 20, 2009 8:25 am
Posts: 41
Post Re: [ HOW TO ] install optware and get transmission, twonky
frater wrote:
If you want to reinstall you should follow this sequence:

upgrade firmware (system will reboot)
select language, network settings & Internet time
login with telnet
Code:
rm -rf /tmp/hdd/root/opt
reboot

login with telnet
Code:
cd /tmp/hdd/root
wget -O ryanopt http://wd.mirmana.com/ryanopt
sh ryanopt

and reboot again
Code:
reboot

The double reboot is for ensuring samba is started....

Login another time and issue a restart of transmission so it will get more appropriate default settings for this box...

Code:
service transmission restart


You can drop a torrent in Torrent/source and it should start downloading..
I did a test with a piratebay-torrent and nothing happened.
You should go here for a quick test.... http://www.seedpeer.com/details/2570245.html

[...]

[/code]


Nope, still transmission doesn't download anything,

Announce response: Announce failed: tracker did not respond.
Scrape response: Scrape failed: tracker did not respond.

Everything looks good, transmission web interface, twonky, watchdog ...

Thanks anyway Frater for your help.

Cheers
Kees


Tue Dec 01, 2009 9:29 am
Profile

Joined: Tue Sep 29, 2009 6:39 pm
Posts: 48
Post Re: [ HOW TO ] install optware and get transmission, twonky
frater wrote:
TODO:
- change the size of part3 which is now only 159 MB


maybe this could be a possible way
viewtopic.php?f=41&t=3014
I donno if the POHD checks the size of the ext3 partition, if it doesn't it should work...


Tue Dec 01, 2009 10:26 am
Profile

Joined: Mon Nov 02, 2009 9:22 pm
Posts: 100
Post Re: [ HOW TO ] install optware and get transmission, twonky
Quote:
Announce response: Announce failed: tracker did not respond.
Scrape response: Scrape failed: tracker did not respond.

Everything looks good, transmission web interface, twonky, watchdog ...

Thanks anyway Frater for your help.

Cheers
Kees

I have no idea why it doesn't work for you. If you run the script again you should download the script as well. Have you tried the firmware upgrade and deletion of /opt ?
I didn't have to do anything to get it going the last test run.....

SCRIPTVER="Tue Dec 1 07:40:31 CET 2009


Tue Dec 01, 2009 8:34 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 267 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 27  Next

Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by: phpBB | Innitial forum Design by: STSoftware | Modified by: AC Ryan.