Author Topic: Proper way to shut down RPi2 + vncViewer  (Read 1894 times)

0 Members and 1 Guest are viewing this topic.

Offline Vindhyachal.taknikiTopic starter

  • Frequent Contributor
  • **
  • Posts: 487
Proper way to shut down RPi2 + vncViewer
« on: June 27, 2015, 08:09:57 am »
1. I have installed vnc-server on RPi2 board & vncViewer on laptop PC.
2. Now I have been able to run RPi2 via laptop PC.
3. I want to know what is the correct way to shut down RPi2 board via laptop.
4. If I directly close vncViewer on laptop, a messsgae is displayed that "connection is graciously disconnected" & screen is gone.
I don't know that at this point if Pi board is shut or running?
 

Offline electr_peter

  • Supporter
  • ****
  • Posts: 1303
  • Country: lt
Re: Proper way to shut down RPi2 + vncViewer
« Reply #1 on: June 27, 2015, 12:25:44 pm »
To be sure that RPi is shut down, open terminal program and type:
Code: [Select]
sudo shutdown -h nowCommand will close all programs and communications, RPi will shutdown and your PC will say something like "connection is lost".

This command can be automated via scripts, links, etc.
 

Offline Muxr

  • Super Contributor
  • ***
  • Posts: 1369
  • Country: us
Re: Proper way to shut down RPi2 + vncViewer
« Reply #2 on: June 27, 2015, 03:55:56 pm »
you can also use:
Code: [Select]
halt and for reboot:
Code: [Select]
rebootYou have to have root privileges to do it. So if you're not logged in as root you would generally use "sudo" (superuser do) to execute the command. Example:
Code: [Select]
sudo halt
 

Offline PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5129
  • Country: nl
Re: Proper way to shut down RPi2 + vncViewer
« Reply #3 on: June 27, 2015, 05:27:41 pm »
4. If I directly close vncViewer on laptop, a messsgae is displayed that "connection is graciously disconnected" & screen is gone.
I don't know that at this point if Pi board is shut or running?

The board is still running, which you can verify by trying to reconnect.
Keyboard error: Press F1 to continue.
 

Offline eejake52

  • Contributor
  • Posts: 21
Re: Proper way to shut down RPi2 + vncViewer
« Reply #4 on: June 28, 2015, 02:42:33 pm »
If you are running the graphical interface on the Pi (which would be the only reason to use vncViewer), then click on the raspberry menu and select "Shutdown". Otherwise use any of the command line methods mentioned above.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf