LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
LinkBack Search this Thread
Old 01-02-2014, 01:16 PM   #1
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Tiny Core Linux 4.5.6, knoppix 6.7, antixM8.11, partedmagic, slitaz 3.0,PuppyLinux,Ubuntu 10.04
Posts: 508
Blog Entries: 1

Rep: Reputation: 34
How to properly shutdown a raspberry pi with raspbian?


From my ubuntu PC in the home network, I make
Code:
ssh pi@192.168.178.50 sudo shutdown -h 0
then it ask the password "pi@192.168.178.50's password: "
then I take later the connector away from the raspberry pi.

For making it easier for my family members, I was thinking about using an alias
alias stopsmallpc="ssh pi@192.168.178.50 sudo shutdown -h 0"
But
a) the password has still to be given
b) the connector has still to be taken away before the raspberry light is off

Know somebody a solution for a) and/or b) ?
For a), how to give the password into the ssh command line?
Perhaps the raspberry pi LED-lamp cannot completely be shutdowned when it stay at the electricity?
 
Old 01-02-2014, 02:01 PM   #2
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-19-live-usb/ aix
Posts: 3,564

Rep: Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522
a) maybe sudo visudo will help ?
 
Old 01-02-2014, 04:04 PM   #3
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Tiny Core Linux 4.5.6, knoppix 6.7, antixM8.11, partedmagic, slitaz 3.0,PuppyLinux,Ubuntu 10.04
Posts: 508
Blog Entries: 1

Original Poster
Rep: Reputation: 34
"sudo visudo": what would be the full syntax? I dont fully understand.
Or perhaps, is it possible to de-activate the password questioning of a SSH line command? (according ubuntu SSH explanation it could be possible with changing the /etc/ssh/sshd_config of the server ?
"PasswordAuthentication no" or other). I would like to have a robust answer before I am messing up my whole home server installation.
 
Old 01-02-2014, 06:39 PM   #4
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-19-live-usb/ aix
Posts: 3,564

Rep: Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522
sorry, i think there are 2 issues here.

the first is setting up private key encryption:
www.linuxproblem.org/art_9.html

Last edited by schneidz; 01-02-2014 at 06:46 PM.
 
Old 04-01-2014, 03:12 AM   #5
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Tiny Core Linux 4.5.6, knoppix 6.7, antixM8.11, partedmagic, slitaz 3.0,PuppyLinux,Ubuntu 10.04
Posts: 508
Blog Entries: 1

Original Poster
Rep: Reputation: 34
Whatever the shutdown command of the raspberry pi is, my family take the cable away when they dont need the printer anymore. So, I could have 2 solutions:
1. find a hardware "button" and motivate the family members to push it before they take the cable away. I will search such hardware: if I cannot find it? I will buy another SD card when it is destroyed by the wild deconnections.
2. create an icon on windows and ubuntu 12.04 and.. where the command line "ssh ..." is working in the background.
I am searching for 1 due to the amount of pc connected to the raspberry pi server (and where icons should be made..).
So, I close that question.
 
  


Reply

Tags
command, raspberry pi, shutdown


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Howto connect Win7-Netbook to my RASPBERRY PI server with raspbian? floppy_stuttgart Linux - Server 1 01-01-2014 01:20 PM
LXer: Raspberry Pi's Raspbian Improves Its Performance LXer Syndicated Linux News 0 05-28-2013 06:40 AM
LXer: Raspbian The best optimized distro for Raspberry Pi LXer Syndicated Linux News 0 07-20-2012 03:00 AM
LXer: Raspberry Pi Foundation launches Raspbian distribution LXer Syndicated Linux News 0 07-18-2012 02:10 PM
Can't shutdown properly hus Linux - Newbie 5 01-01-2004 04:24 AM


All times are GMT -5. The time now is 07:11 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration