Raspberry Pi Setup, Config and Reference Notes
Last Updated: January 01, 2020 by Pepe Sandoval
If you find the information in this page useful and want to show your support, you can make a donation
Use PayPal
This will help me create more stuff and fix the existent content...
user: pi
password: raspberry
.img
to media.img
fileCheck available networks with sudo iwlist wlan0 scan
Edit /etc/wpa_supplicant/wpa_supplicant.conf
file and add the following lines at the of the file:
network={
ssid="ssid_name_here" # e.g. "Home"
psk="wifi_password_here" # e.g. "mypass123"
id_str="id_ssid" # e.g. "home"
}
Restart network interface and/or reboot system
sudo ifdown wlan0
sudo ifup wlan0
sudo reboot
Use raspi-config
or sudo raspi-config
command to
You usually need to reboot (
sudo reboot
) for changes inraspi-config
to take effect
sudo apt-get install ntfs-3g
sudo apt-get install exfat-fuse
For remote access you can either use a third party webpage/service or open a port on your network and forward all traffic of that port to the Raspberry Pi but first is recommended the Raspberry Pi device has a static IP address
dhcpcd.conf
config file/etc/dhcpcd.conf
file, add the following lines at the end of the file and after that reboot# <the id_ssid of wpa_supplicant.conf here> static_wlan0 # Use this if you want to use id_ssid from the /etc/wpa_supplicant/wpa_supplicant.conf file
interface wlan0 # use eth0 if its a wired connection
static ip_address=192.168.0.10/24 # <static_ip>/24 use ifconfig
static routers=192.168.0.1 # <gateway> the router ip use route -n or netstat -r
static domain_name_servers=192.168.0.1 # <dns_server_ip> usually the router ip or gateway
Optional Add the public key of the computer that will ssh into the pi to the ~/.ssh/authorized_keys
fileMake sure to choose an IP address outside of the DHCP server address range if you don't you may or may not have issues with IP assigment, usually the DHCP server is the router so you can check the range on the router config page
/etc/network/interfaces
file (Deprecated)/etc/network/interfaces
file add the following lines using the id_ssid
you used on the wpa_supplicant.conf
file and after that, rebootiface <id_ssid> inet static
address <static IP address>
gateway <gateway> # <gateway> the router ip use route -n
netmask <netmask> # subnet mask usually 255.255.255.0
You may need to disable dhcpcd sudo systemctl disable dhcpcd
and just enable networking sudo systemctl enable networking
On the /etc/network/interfaces
file you may need to add static
to the iface wlan0
or iface eth0
lines
If that returns an error usually the
/var/run/wpa_supplicant/wlan0` got corrupted, removing it and rebooting should fix the issueConfigure port forwarding on the router (Usually a personal device connected to the modem)
192.168.0.1
).192.168.0.128
) which is assigned by Router (Raspi device).
Configure port forwarding on the modem (Usually provided by the ISP)
192.168.1.254
).192.168.1.70
) which is assigned by the modem (the one provide by the ISP)
Connect
You can use whatsmyIP to get your external IP address (Ex:
189.163.12.246
)
Using Weaved create a account on its page
email_here
; pasw: your_pass
Follow the page instructions to install and run the Weaved service
Log in into your Weaved account and use the provided IP and port to ssh into the raspberry
sudo apt-get install xrdp
Set a static IP (Check the Set Static IP section)
Install a VNC server on the device you want to control remotely you can use the raspi-config
command and the Enable VNC option or use the following commands
sudo apt-get install realvnc-vnc-server
Make sure NOT to run these commands from a remote or SSH connection it can cause installation issues
You can choose 'No' when asked for view only password
If you used the raspi-config
command to install realVNC then by default is setup to auto start, the following commands are for reference only in that case
systemctl (start|stop) vncserver-virtuald.service
systemctl (enable|disable) vncserver-virtuald.service
Install a VNC client and connect to the remote device with it
192.168.0.40
(default port is ::5901) cat /proc/cpuinfo
) and copy to /usr/local
wget https://nodejs.org/dist/latest-v8.x/node-v8.11.3-linux-armv6l.tar.gz
tar -xvf node-v8.11.3-linux-armv6l.tar.gz
cd node-v8.11.3-linux-armv6l
sudo cp -R * /usr/local/
check
https://nodejs.org/dist/
to get the right NodeJS version for you, latest version may have installation problems I tried node v8.11.3 on raspberry pi 2 and worked
/usr/local/lib
and create sym linkwget https://cli-assets.heroku.com/branches/stable/heroku-linux-arm.tar.gz
sudo tar -xvzf heroku-OS-ARCH.tar.gz -C /usr/local/lib
sudo ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku
make sure
/usr/local/lib
and/usr/local/bin
exists, create them otehr wisemkdir -p /usr/local/lib /usr/local/bin
heroku update
latest version didnt work fro me on Rpi so I skipped this stepsudo apt-get install transmission-daemon
sudo systemctl stop transmission-daemon
sudo mkdir -p /media/pi/D/inprogress
sudo mkdir -p /media/pi/D/completed
sudo chown -R pi:pi /media/pi/D/inprogress
sudo chown -R pi:pi /media/pi/D/completed
/etc/transmission-daemon/settings.json
file (sudo vim /etc/transmission-daemon/settings.json
) to configure the following settings:"incomplete-dir": "/media/pi/D/inprogress",
"incomplete-dir-enabled": true,
"download-dir": "/media/pi/D/completed",
"rpc-password": "Your_Password", # Here you can use your RPi username
"rpc-username": "Your_Username", # Here you can use your RPi credentials or other exclusive Tranmission password
"rpc-whitelist": "192.168.*.*",
/etc/init.d/transmission-daemon
file (sudo vim /etc/init.d/transmission-daemon
) and change USER
to the user who owns
the folders set in incomplete-dir and download-dir in our case the user is pi so we set USER=pi
/etc/systemd/system/multi-user.target.wants/transmission-daemon.service
file (sudo vim /etc/systemd/system/multi-user.target.wants/transmission-daemon.service
)
and change user
to the user who owns the folders set in incomplete-dir and download-dir in our case the user is pi so we set User=pi
sudo systemctl daemon-reload
/etc/transmission-daemon
folder: sudo chown -R pi:pi /etc/transmission-daemon
sudo mkdir -p /home/pi/.config/transmission-daemon/
sudo ln -s /etc/transmission-daemon/settings.json /home/pi/.config/transmission-daemon/
sudo chown -R pi:pi /home/pi/.config/transmission-daemon/
/etc
, /var
, /media
:sudo chown -R pi:pi /etc/transmission-daemon
sudo chown -R pi:pi /etc/init.d/transmission-daemon
sudo chown -R pi:pi /var/lib/transmission-daemon
sudo chmod 777 /media/
sudo chmod 777 /media/*
sudo chmod 777 /media/*/*
sudo systemctl start transmission-daemon
http://your_pi_ip:9091
/etc/transmission-daemon/settings.json
filesudo apt install -y vlc
vlc
command or vlc path_to_video/video.mp4
to open a video file or use th GUI under Sound and VideoIf you find the information in this page useful and want to show your support, you can make a donation
Use PayPal
This will help me create more stuff and fix the existent content...