Skip to content

Instantly share code, notes, and snippets.

@asavt92
Last active July 5, 2020 21:23
Show Gist options
  • Save asavt92/3cfcd00b6f529e2ac2f630d5dd497fa6 to your computer and use it in GitHub Desktop.
Save asavt92/3cfcd00b6f529e2ac2f630d5dd497fa6 to your computer and use it in GitHub Desktop.
Raspberry pi 3
Enable ssh https://linuxize.com/post/how-to-enable-ssh-on-raspberry-pi/
To enable SSH on your Raspberry Pi perform the following steps:
Power off your Raspberry Pi and remove the SD card.
Insert the SD card into your computer’s card reader. The SD card will mount automatically.
Navigate to the SD card boot directory using your OS file manager. Linux and macOS users can also do this from the command line.
Create a new empty file named ssh, without any extension, inside the boot directory.
Remove the SD card from your computer and put it in your Raspberry Pi.
Power on your Pi board. On boot Pi will check whether this file exists and if it does, SSH will be enabled and the file is removed.
The default for all versions of Raspbian:
User: pi
Password: raspberry
VNC
Tutorial from https://raspberrypi.stackexchange.com/questions/38/prepare-for-ssh-without-a-screen
Copy boot_enable_ssh.rc to boot.rc from /boot in the Raspberry Pi's rootfs (SD card)
Still in the Raspberry Pi's rootfs, edit /etc/network/interfaces in order to have a fixed IP address assigned (so no DHCP server is needed). For example,
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.0.202
netmask 255.255.255.0
gateway 192.168.0.200
Boot your Raspberry Pi, use an Ethernet cable to connect it to the same network that your PC is connected to (or connect it directly to your PC) and login via SSH:
ssh [email protected]
Install a light VNC server in your Raspberry Pi:
sudo apt-get install tightvncserver
Then start the VNC server (you'll be asked to set a password):
vncserver :1 -name RasPi -depth 16 -geometry 1024x768
Install a VNC client in your PC:
apt-get install xtightvncviewer
Then connect to your Raspberry Pi via VNC from your PC:
xtightvncviewer 192.168.0.202:1
(fedora install vnc client `sudo dnf install tigervnc`)
connect to server
vncviewer 192.168.0.104:5901
VNC info
config https://kushrami.wordpress.com/2015/01/22/how-to-start-raspberry-pi-without-screen/
https://help.realvnc.com/hc/en-us/articles/360002249917-VNC-Connect-and-Raspberry-Pi#setting-up-your-raspberry-pi-0-0
Articles
https://habr.com/ru/post/486928/
https://habr.com/ru/post/475172/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment