autostart debian and pyload

1,160 views
Skip to first unread message

Vittorio

unread,
Jan 7, 2012, 8:23:14 PM1/7/12
to DealExtreme NAS SnakeOS
Hello everyone, I've installed debian chroot and inside Pyload ,fully
functional. Now how I can to autostart debian and then pyload???we try
to solve this problem once and for all :D Thanks and Happy new year !!

robert

unread,
Jan 8, 2012, 2:29:15 AM1/8/12
to DealExtreme NAS SnakeOS
Hi.

Read mails from forum here, about autostart services.
(Generally replace telnet service with your ones.
Then snake gui will start automaticaly.)

Robert

Vittorio Coppola

unread,
Jan 8, 2012, 6:53:19 PM1/8/12
to dealextr...@googlegroups.com
You can send me some email whe is well explained?? Thanks

Stefan Scheffler

unread,
Jan 8, 2012, 9:06:57 PM1/8/12
to dealextr...@googlegroups.com

I'll try to throw something together.

Am Sat, 7 Jan 2012 17:23:14 -0800 (PST)
schrieb Vittorio <vitt...@gmail.com>:

Vittorio Coppola

unread,
Jan 8, 2012, 9:19:19 PM1/8/12
to dealextr...@googlegroups.com
 
I read somewhere that you should create a .sh file and add a string to the file etc/init.d/telnet. but I can not create the .sh

Seb Seb

unread,
Jan 9, 2012, 6:35:11 AM1/9/12
to dealextr...@googlegroups.com
Hello,

I bought a NAS mod650BT. I installed snake os "from original" and update it with "from snake". Nas respondig correctly, but when I want make a directory with ftp commander, this operation always failed. I can't creat or delete directory.
My question is: Is it possible to downgrade snake with the original kernel? and how can I do?

Thx

2012/1/9 Vittorio Coppola <vitt...@gmail.com>
You can send me some email whe is well explained?? Thanks

--
You received this message because you are subscribed to the Google
Groups "Snake OS mail list": http://groups.google.com/group/dealextreme-nas-?hl=en
 
Snake OS website is here: http://code.google.com/p/snake-os/

Stefan Scheffler

unread,
Jan 9, 2012, 7:56:52 PM1/9/12
to dealextr...@googlegroups.com

I went for something a bit fancier.

See my comment at the bottom:
http://code.google.com/p/snake-os/wiki/Debian_Chroot


I got debian and pyload running this way:

- cd /usb/sda1/
- tar -zxf debian_chroot.tgz
- Install debianctl.opk from system -> packages
- In services -> debianctl set "Debian directory" to /usb/sda1/debian
and hit apply
- Download pyload-cli-v0.4.9-all.deb from the pyload site and put it
somewhere under /usb/sda1/debian/
- chroot /usb/sda1/debian/
- apt-get update
- dpkg -i pyload-cli-v0.4.9-all.deb (it will complain about missing
packages)
- apt-get -f install
- pyLoadCli -s (follow the instructions. you can just hit enter on
most questions)
- On the debianctl page enter pyload in the "Services" field and hit
apply again

After a few seconds you should be able to connect to pyload with your
browser via <ip of snake>:8000. After a restart pyload should start
automatically. If it doesn't something went wrong.

Note: Don't use the "Downloads" tab in the pyload interface. For some
reason downloading a file from there makes pyload consume tons of
memory and it usually ends up crashing.


Am Mon, 9 Jan 2012 03:19:19 +0100
schrieb Vittorio Coppola <vitt...@gmail.com>:

Vittorio Coppola

unread,
Jan 9, 2012, 9:32:45 PM1/9/12
to dealextr...@googlegroups.com
Tx for reply :D.I've installed all.But for example I in debian have installed SAMBA, but if put SAMBA in services, don't autostart. why?

Stefan Scheffler

unread,
Jan 10, 2012, 11:48:24 AM1/10/12
to dealextr...@googlegroups.com

Try downloading the package again. I've added a workaround that may fix
samba. Also, make sure that you enter lowercase "samba" into the
box and that you disable the builtin samba service.

I was able to access a share from xp that was defined like this in
<debian directory>/etc/samba/smb.conf:

security = share

...

[torrents]
path = /mnt/sda1/torrents/
comment = TORRENTS
read only = yes
guest ok = yes
browseable = yes

I think some options may not be needed.

Am Tue, 10 Jan 2012 03:32:45 +0100
schrieb Vittorio Coppola <vitt...@gmail.com>:

> Tx for reply :D.I've installed all.But for example I in debian have

Vittorio Coppola

unread,
Jan 11, 2012, 6:35:43 PM1/11/12
to dealextr...@googlegroups.com
Work great !! Thanks very much !! :D

Vittorio Coppola

unread,
Jan 11, 2012, 7:59:44 PM1/11/12
to dealextr...@googlegroups.com
problem!! :( I reinstall pyload, but after download and install pyload-cli, but when I put "- pyLoadCli -i " says me this error:


Traceback (most recent call last):
  File "/usr/bin/pyLoadCli", line 590, in <module>
    main()
  File "/usr/bin/pyLoadCli", line 564, in main
    client = ThriftClient(config["addr"], int(config["port"]), username, password)
ValueError: invalid literal for int() with base 10: ''

How solve?? Tx!! :D

Stefan Scheffler

unread,
Jan 12, 2012, 9:13:08 AM1/12/12
to dealextr...@googlegroups.com

Why "- pyLoadCli -i " and where did you put it? pyLoadCli has no -i
option..

The error message sounds like you have a bad value in the pyload
config file. Maybe it go corrupted or something or you entered
something wrong in the setup.

Try running "pyLoadCli -s" to go through the setup again.

If that doesn't help delete <debian dir>/root/.pyload/ and run
"pyLoadCli -s"

Am Thu, 12 Jan 2012 01:59:44 +0100
schrieb Vittorio Coppola <vitt...@gmail.com>:

> problem!! :( I reinstall pyload, but after download and install

Vittorio Coppola

unread,
Jan 13, 2012, 8:12:50 PM1/13/12
to dealextr...@googlegroups.com
what is your address and your port?? I try with default, but says it's impossibile to connect to 127.0.0.1:7227
Tx :D

Stefan Scheffler

unread,
Jan 15, 2012, 7:34:54 PM1/15/12
to dealextr...@googlegroups.com

Oh, I think I get it now. I got pyLoadCli and pyLoadCore mixed up. I've
only used the web interface until now.

That pyLoadCli can't connect probably means the pyload service isn't
running.

To get the pyLoadCli to run I did:
pyLoadCore -s # configure pyload
pyLoadCore & # launch pyload service/server
pyLoadCli # run the command line client

To autostart pyload enter "pyload" in the debianctl services field.

Am Sat, 14 Jan 2012 02:12:50 +0100
schrieb Vittorio Coppola <vitt...@gmail.com>:

> what is your address and your port?? I try with default, but says it's

Vittorio Coppola

unread,
Jan 16, 2012, 2:36:50 PM1/16/12
to dealextr...@googlegroups.com
I configure pyLoadCore,can see the web interface but when set pyLoadCli always the same problem...:O

Stefan Scheffler

unread,
Jan 16, 2012, 3:01:53 PM1/16/12
to dealextr...@googlegroups.com

Can you post the exact steps that you used?

Am Mon, 16 Jan 2012 20:36:50 +0100
schrieb Vittorio Coppola <vitt...@gmail.com>:

> I configure pyLoadCore,can see the web interface but when set

Vittorio Coppola

unread,
Jan 16, 2012, 4:56:35 PM1/16/12
to dealextr...@googlegroups.com
start putty
- chroot /usb/sda1/debian
-wget http://get.pyload.org/get/ubuntu-cli/pyload-cli-v0.4.9-all.deb
-dpkg -i pyload-cli-v0.4.9-all.deb
-apt get install -f
-pyLoadCore -s (start the setup)
-snake:8000 can be reached
-
pyLoadCli
Could not establish connection to 127.0.0.1:7227
I tryed to pyLoadCli -i and click always enter but eventually I give this error :

 
File "/usr/bin/pyLoadCli", line 590, in <module>
    main()
  File "/usr/bin/pyLoadCli", line 564, in main
    client = ThriftClient(config["addr"], int(config["port"]), username, password)
ValueError: invalid literal for int() with base 10: ''

Maybe try to change the etc/init.d/pyload file...

Stefan Scheffler

unread,
Jan 16, 2012, 8:40:22 PM1/16/12
to dealextr...@googlegroups.com

Did you answer "n" to the "External clients" question in the
pyLoadCore setup? Otherwise I can't think of a reason why you can
connect through the web interface and not the cli..

Am Mon, 16 Jan 2012 22:56:35 +0100
schrieb Vittorio Coppola <vitt...@gmail.com>:

> start putty


> - chroot /usb/sda1/debian
> -wget http://get.pyload.org/get/ubuntu-cli/pyload-cli-v0.4.9-all.deb
> -dpkg -i pyload-cli-v0.4.9-all.deb
> -apt get install -f
> -pyLoadCore -s (start the setup)
> -snake:8000 can be reached
> -pyLoadCli
> Could not establish connection to 127.0.0.1:7227
> I tryed to pyLoadCli -i and click always enter but eventually I give
> this error :
>

> *File "/usr/bin/pyLoadCli", line 590, in <module>


> main()
> File "/usr/bin/pyLoadCli", line 564, in main
> client = ThriftClient(config["addr"], int(config["port"]),
> username, password)
> ValueError: invalid literal for int() with base 10: ''

> *

Vittorio Coppola

unread,
Jan 19, 2012, 8:30:25 PM1/19/12
to dealextr...@googlegroups.com
I tryed to answer " yes " or "no" but no result

Vittorio Coppola

unread,
Jan 19, 2012, 8:31:20 PM1/19/12
to dealextr...@googlegroups.com
I can access to snake:8000, can download and all, but the problem is always autostart..bye

alexcmoa

unread,
Jan 21, 2012, 8:18:51 PM1/21/12
to DealExtreme NAS SnakeOS
I'm also stuck here
=> I've replaced the telnet script by a script calling chroot
=> I've installed debianctl.opk
but both don't work for me
thanks for your work anyway

Vittorio Coppola

unread,
Feb 3, 2012, 11:02:13 AM2/3/12
to dealextr...@googlegroups.com
Up

2012/1/22, alexcmoa <alexandr...@gmail.com>:

> --
> You received this message because you are subscribed to the Google
> Groups "Snake OS mail list":
> http://groups.google.com/group/dealextreme-nas-?hl=en
>
> Snake OS website is here: http://code.google.com/p/snake-os/
>

--
Inviato dal mio dispositivo mobile

Stefan Scheffler

unread,
Feb 3, 2012, 3:36:41 PM2/3/12
to dealextr...@googlegroups.com

Can you try it with this version of debianctl?

http://code.google.com/p/snake-os/downloads/detail?name=debianctl-0.3-1.opk

The previous one really has issues with pyload. My mistake ..I must have
done the setup via serial console when it worked for me.

Am Fri, 3 Feb 2012 17:02:13 +0100
schrieb Vittorio Coppola <vitt...@gmail.com>:

> Up

Reply all
Reply to author
Forward
0 new messages