This tutorial allows connecting to Raspberry Pi 3 directly using built-in WiFi module. VNC server must be installed on raspberry. VNC viewer must be installed on phone/tablet.
Push
2016-05-27-raspbian-jessie.img image to SD card. Boot up Pi2016-05-27-raspbian-jessie.zip
b8e031595bacb580d5618122ae14cc39
64c7ed611929ea5178fbb69b5a5f29cc9cc7c157
Launch
raspi-config
sudo raspi-config
To save more RAM lets turn on default boot to graphical interface:
pi and move to the super user account:
sudo su
Update system. This will take lot of time:
apt-get update -y && apt-get upgrade -y
Install TightVNC server:
apt-get install tightvncserver -y
Install VNC server configuration file or manually create /etc/init.d/tightvnc:
cat > /etc/init.d/tightvnc << EOF
#!/bin/sh
case "\$1" in
start)
su pi -c 'vncserver :1 -geometry 1024x768 -depth 16 -pixelformat rgb565:'
echo "VNC Started"
;;
stop)
pkill Xtightvnc
echo "VNC Terminated"
;;
*)
echo "Usage: /etc/init.d/tightvnc {start|stop}"
exit 1
;;
esac
EOF
Set service file executable:
chmod 755 /etc/init.d/tightvnc
Re-check which service needs to be launched at startup:
update-rc.d tightvnc defaults
This will output:
insserv: warning: script 'tightvnc' missing LSB tags and overrides
Exit super user:
exit
Make sure you are now you are pi
whoami
Launch VNC at the first time to configure password:
tightvncserver
This will output:
You will require a password to access your desktops.
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
New 'X' desktop is raspberrypi:1
Creating default startup script /home/pi/.vnc/xstartup
Starting applications specified in /home/pi/.vnc/xstartup
Log file is /home/pi/.vnc/raspberrypi:1.log
Now you can connect! Look which exact IP address you pi has:
ifconfig
This will output:
eth0 Link encap:Ethernet HWaddr b8:27:eb:3c:a7:45
inet addr:192.168.88.33 Bcast:192.168.88.255 Mask:255.255.255.0
inet6 addr: fe80::a549:62d8:42cf:803d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5441 errors:0 dropped:9 overruns:0 frame:0
TX packets:1113 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7032562 (6.7 MiB) TX bytes:158853 (155.1 KiB)
Now i can open TightVNC viewer on windows and connect:
Set up Raspberry Pi 3 to act like Wireless Access Point
No comments:
Post a Comment