For those of you that have a raspberry pi and tried installing the latest update to the OS from my last post: https://steemit.com/pixel/@bitcoinparadise/pixel-for-raspberry-pi-review-and-turtorial(typo I know lol).
Some of you may want to run your pi headless using using VNC and have even already tried. If you ran into a resolution problem like I did, here's a little guide I found that worked for me.
Screenshot:
Head over to http://blog.tonywall.co/2013/07/setting-up-raspberry-pi-for-headless-mode-with-x11vnc/ if you want to follow the instructions from source.
The first thing you want to do is get your ip address your pi is using. So just type in the terminal:
ifconfig
you want to look for your internet address. Should look something like this if you're connected to a router:
inet addr: 192.168.1.***
Remember your ip on the pi because you will need this for later.
Installing VNC:
sudo apt-get install x11vnc
After you install x11vnc, set up a password. It’s important you do NOT run this command elevated (do not use sudo) because it writes the encrypted password in the current user’s home directory, which must be the default user if you want to connect before logon and desktop start-up
x11vnc -storepasswd
You will not be able to see the password you type when creating it. Input it twice to confirm.
To have vnc start automatically at startup, we need to setup a couple things.
nano ~/.xsessionrc
Enter Text:
# Start X11VNC
x11vnc -bg -nevershared -forever -tightfilexfer -usepw -display :0
Hit ctl+x,
y,
Enter.
Make the file executable.
chmod 775 ~/.xsessionrc
Edit /boot/config file:
sudo nano /boot/config.txt
Uncomment the following line. So it should go from this:
#hdmi_force_hotplug=1
#hdmi_group=
#hdmi_mode=
To this:
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=16
Set the "hdmi_group” and "hdmi_mode” number to select the default resolution. You can find these codes on: https://www.raspberrypi.org/documentation/configuration/config-txt.md
I went with the "group=2" and "mode=16" values since those worked best for me.
sudo reboot
Then your done on the pi and head over to your PC or whatever device you want to view your raspberry pi desktop on and install one of many vnc apps that are available. I'm using Windows desktop to do this and I went with tightvncviewer. http://www.tightvnc.com/
after you installed your choice of vncviewer app, get your ip address you got in the beginning of the instructions and input that in for your connection. Enter your password after that and your in!
More Screenshots:
Enjoy :)
Feel free to follow and find me in Smart Media Group on Discord.
Twitter: @the_smartmedia
Instagram: @the_smartmedia