Go to advanced search

by Paqueuc
Wed Feb 19, 2014 8:34 pm
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

@ Paqueuc Hi, is it possible to give a complete description what you did in Loxone to establish the remote shut down? I'm having the same problem but also a newbie concerning this stuff. Hello, Here is a printscreen of the config in Loxone 2014-RPi-1.JPG and a special detail on the virtual output "...
by Paqueuc
Thu Aug 15, 2013 10:29 am
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

Hello Sprinkmeier, A big thank you for your help. Your program works great. :D I first thought it wouldn't work on UDP protocole but by changing in the shutdown.py file: port 23 => 24 and /shutdown => /poweroff it finally worked perfectly. So a big thank again for this long lesson, I learned a lot d...
by Paqueuc
Wed Aug 14, 2013 9:16 pm
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

Hello Sprinkmeier, Thanks for your program. OK for the first part until : put that in a file (/root/shudown.py), chmod +x it and call it from /etc/rc.local (with trailing & to run it in the background) In /etc/rc.local I did that : mount -a /bin/chmod +x /root/shutdown.py & But obviously it doesn't ...
by Paqueuc
Mon Aug 12, 2013 10:31 pm
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

Sorry I didn't understand the goal of this command. I manage to make the first part on the Pi. I do the second part (other window) on the Loxone. But it doesn't time out. And what is the goal of the Woot command ?

Thanks for your feedback.
by Paqueuc
Mon Aug 12, 2013 10:18 pm
Forum: Media centres
Topic: SqueezePlug Version 6 available
Replies: 541
Views: 114247

Re: SqueezePlug Version 6 available

Hello, Squeezplug is a great idea but a major point keeps me from using it on a daily basis unfortunately : I can't switch the Rpis off. And as reported in those pages after 24 h, the Rpis don't answer any request. Just reboot them and everything becomes fine again. But making 5 SSH session (I use 5...
by Paqueuc
Mon Aug 12, 2013 9:41 pm
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

Thanks Sprinkmeyer, That just couldn't be simple :roll: One problem fades away, another one rises... OK, I'll try to compile netcat as I don't think I'll manage to make a reverse shell on the Loxone thing... Your trick regarding the Poweroff command was a good idea. Just the port 23 is the trouble. ...
by Paqueuc
Mon Aug 12, 2013 9:07 pm
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

Hello,

I keep looking for an answer. I look at netcat and I try a command like :

Code: Select all

nc -vv -l -p 1337 -e /bin/sh -t
and try to send poweroff command. Unfortunately, the Rpi answers : nc: invalid option -- 'e'

Why ? :evil:

Any help, please ?
by Paqueuc
Sun Aug 11, 2013 9:40 am
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

I don't know the distrib you are using but it should have a /etc/sudoers you edit it with visudo I think pi ALL=(ALL) NOPASSWD: ALL should give the user pi access without a password to evrything [I'm not 100% sure on this] Hello, Strangely, the sudoers file already contained this pi ALL=(ALL) NOPAS...
by Paqueuc
Fri Aug 09, 2013 8:01 am
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

Hello, @RaTTuS. I didn't test yet. I will tonight. @Sprinkmeier : If you're running a real telnet deamon then you need to log on using a username/password. I don't know if I use a real telnet daemon . The Loxone soft asks me to use terms like UDP or TCP (precise command in the soft : / /dev/tcp/192....
by Paqueuc
Thu Aug 08, 2013 2:10 pm
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

also re-reading of the thread ... if you can telnet into the box and then you should be able to do sudo /sbin/poweroff now this requires you to do the password thing unless your account has that disabled Let's explore this road too, if possible, please. How can we disable the id/password thing via ...
by Paqueuc
Thu Aug 08, 2013 12:36 pm
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

So I assume my rc.local looks like this : mount -a /sbin/poweroff & exit 0 It works "too well". The Pi starts and after 2 or 3 mn, comes back to halt mode (deducted by the led). I can't reach it anymore in any manner (I didn't put a screen to see what was happening but I will, if needed). I stopped ...
by Paqueuc
Thu Aug 08, 2013 8:21 am
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

yes it show me you are not logged into the raspberry pi you are wanting to telent into the RPI and shut it down then you should telnet into the rpi and shut it down not the squeesze box I'm not sure to understand. The IP address is the one of the Pi. Sure, it also is the one of the squeezebox but b...
by Paqueuc
Thu Aug 08, 2013 8:05 am
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

Hello Sprinkmeyer, Thanks, there is a great progress. Logged as an admin in SSH via putty, The pi respond to the command : /bin/nc -l -p 23 ; /sbin/poweroff But too quickly as it immediately answers : nc: Address already in use and then shuts down. It doesn't wait for the telnet thing. I understood ...
by Paqueuc
Wed Aug 07, 2013 7:21 pm
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

Hello Sprinkmeyer,

Here is the printscreen of what I did. Is it correct ? I did a reboot and unfortunately, no result.

Thanks for your answer.
by Paqueuc
Tue Aug 06, 2013 9:06 pm
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

Unfortunately, I did. Several times... :cry:

I still can access the pi with putty (telnet, no SSH) and it doesn't shut down.

Sorry for resisting this hard.
by Paqueuc
Tue Aug 06, 2013 8:32 pm
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

Hello,

Unfortunately, no result with :

Code: Select all

     nc -l -p 23 ; /sbin/poweroff & 
Here is the printscreen enclosed. I can telnet the Pi via putty or loxone, it doesn't shutdown. Did I do it well ?

I enclose a few more tests with tcpdump and wireshark, just in case.

Thanks for more ideas, if possible.
by Paqueuc
Tue Aug 06, 2013 8:23 pm
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

it does not look like it's conencted telnet in again from a PC then ls -l does that produce an output as expected ? ... Here is the print screen of this test. Does it tell you anything ? personally I'd use ssh for connections but not sure about your phone If I could, I would. But the soft I use is ...
by Paqueuc
Tue Aug 06, 2013 1:44 pm
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

Hello, Thanks both of you. I'll test the 2 options and let you know. Assuming you're not worried about security just add something like this: nc -l -p 23 ; /sbin/poweroff & to /etc/rc.local Any attempt to telnet to the Pi should shut it down :-) Not worried about security effectively. But the squeez...
by Paqueuc
Tue Aug 06, 2013 10:24 am
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

Hello, So I have some results. I post some printscreens and the loxone.pcap file (in a zip file loxone.zip) for complete analysis. More printscreeen are available, if needed. I made different tests and it looks like there is a communication. Unfortunately, I'm not able to analyse it. But at the end ...
by Paqueuc
Mon Aug 05, 2013 9:41 am
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

I assume you've telnet-ed in from another pi and verified that it works handraulically? No, I didn't. Unfortunately, my knowledge at this level is limited. just run telnet 192.168.1.41 on another computer/pi and check that you can log on using the credentials you supplied to the Loxone. then run th...
by Paqueuc
Mon Aug 05, 2013 9:20 am
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

Hello Sprinkmeier, Thanks for your reply. I take it the Loxone is supposed to telnet to the Pi and tell it to shut down. Yes. Exactly. I assume you've telnet-ed in from another pi and verified that it works handraulically? No, I didn't. Unfortunately, my knowledge at this level is limited. try runni...
by Paqueuc
Mon Aug 05, 2013 8:59 am
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Re: Shut down via a smart home controler via telnet

Hello, Thanks itimpi for your reply. More than power, another reason to shut the Rpis down is that squeezeplug distribution just can't stand staying on a long time (idle) without being used. If you don't use them for 24h, then they don't answer to request anymore (even if they still appear on squeez...
by Paqueuc
Sun Aug 04, 2013 9:33 pm
Forum: General discussion
Topic: Shut down via a smart home controler via telnet
Replies: 41
Views: 7156

Shut down via a smart home controler via telnet

Hello, Using 5 Rpi as squeezeboxes via Squeezeplug distribution (Debian), I want to shut them down at night (even if they use small power). I use a smarthome controler (Loxone) that theorically allows me to do it via telnet command (I installed the telnet package on the Rpis to allow connection). Th...
by Paqueuc
Sat Jan 26, 2013 12:13 am
Forum: Media centres
Topic: SqueezePlug for Raspberry Pi ready for download
Replies: 449
Views: 147960

Re: SqueezePlug for Raspberry Pi ready for download

Hello, Thanks to Thomas for this wonderful Squeezeplug idea. New to the community, I start straight on with a whole installation question while I'm still waiting for receiving my Pis... As I will use those squeezeplugs on Pi, combined with home automation on a box that can send HTTP requests, I was ...

Go to advanced search