SQUAREHEAD
Posts: 39
Joined: Sun Nov 30, 2014 10:22 pm

Up To date guide needed - How do i access Raspberry Pi from

Mon Dec 08, 2014 7:54 pm

Hi guys,

I'm looking to find a simplistic clear and up to date instruction of accessing Pi from another network via SSH and VNC. All the other posts i've found contradict each other or are 2+ years old, could someone be so kind as to provide a step by step guide of the cleanest way to do this.

Matt

gkreidl
Posts: 6307
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Up To date guide needed - How do i access Raspberry Pi f

Mon Dec 08, 2014 8:27 pm

It was the same 2 years (or ten years) ago.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

SQUAREHEAD
Posts: 39
Joined: Sun Nov 30, 2014 10:22 pm

Re: Up To date guide needed - How do i access Raspberry Pi f

Mon Dec 08, 2014 8:34 pm

gkreidl wrote:It was the same 2 years (or ten years) ago.
How would you do it

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Up To date guide needed - How do i access Raspberry Pi f

Mon Dec 08, 2014 8:40 pm

These questions are never "How do I do X?", but rather "What did you (the OP) try and what went wrong/what did you do wrong?"

So, what did you try and what didn't work?
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Up To date guide needed - How do i access Raspberry Pi f

Tue Dec 09, 2014 1:16 am

Joe Schmoe wrote:These questions are never "How do I do X?", but rather "What did you (the OP) try and what went wrong/what did you do wrong?"

So, what did you try and what didn't work?
+1

Also, what guides did you look at and how did they contradict each other. They may just use different approaches to the same thing.
There are 10 types of people: those who understand binary and those who don't.

knute
Posts: 550
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas
Contact: Website

Re: Up To date guide needed - How do i access Raspberry Pi f

Tue Dec 09, 2014 1:52 am

Enable SSH from raspi-config, select item 8, Advanced Options and then A4, Enable SSH.

sudo raspi-config

Install VNC

sudo apt-get install tightvncserver

run: tightvncserver as pi, not root, to set up passwords. You don't need the second password.

start the server with: vncserver :1 -geometry 1920x1080 -depth 24, again as pi not root

to log in use your VNC viewer and point it to the IP of your Pi:1.

If you want the VNC server to start when you start your Pi then you need to put a script in /etc/init.d. The script is below, name it vncboot. The script should be owned by root and the permissions should be 755. Then run: sudo update-rc.d vncboot defaults, from the /etc/init.d directory. That's it. Simple enough.

### BEGIN INIT INFO
# Provides: vncboot
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start VNC Server at boot time
# Description: Start VNC Server at boot time.
### END INIT INFO

#! /bin/sh
# /etc/init.d/vncboot

USER=pi
HOME=/home/pi

export USER HOME

case "$1" in
start)
echo "Starting VNC Server"
#Insert your favoured settings for a VNC session
sudo -u ${USER} /usr/bin/vncserver :1 -geometry 1920x1080 -depth 24
;;

stop)
echo "Stopping VNC Server"
#/usr/bin/vncserver -kill :1
sudo -u ${USER} /usr/bin/vncserver -kill :1
;;

restart)
$0 stop
$0 start
;;

*)
echo "Usage: /etc/init.d/vncboot {start|stop|restart}"
exit 1
;;
esac

exit 0

gkreidl
Posts: 6307
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Up To date guide needed - How do i access Raspberry Pi f

Tue Dec 09, 2014 9:24 am

@knute

1) You fell into the trap set up by the OP (I want a new explanation just for myself, because I'm too lazy to search and follow the other guides).
2) You didn't answer his question at all. He wants to connect to his Pi from another network via SSH and VNC. Although it wasn't completely clear in the OP (no information give whatsoever), I assume that SSH and VNC are already running and he wants to know how to access them from the outside world, which boils down to:
How do I do port forwarding?
How to get a dynamic DNS address?
For both questions you'll find thousands of answers on the net and lots inside the forum, too.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Return to “General discussion”