First start with raspberry!
1. Download Raspberry Pi OS Lite image
login: pi
password: raspberry
4. Enable SSH
$ sudo update-rc.d ssh defaults
$ sudo su
$ systemctl enable ssh.socket
$ exit
$ sudo reboot
5. Update repositories
$ sudo apt-get update
Localization Options
Change Keyboard Layout
Choose your keyboard or one of the generics
English (US)
$ sudo reboot
7. Configure wireless network
Fine your AP
$ sudo iwlist wlan1 scan | grep ESSID
Add info about access point to config file
$ vim /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="bla-bla-bla"
psk="secret password"
}
Set IP address
$ sudo vim /etc/network/interfaces
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.88.8
netmask 255.255.255.0
gateway 192.168.88.1
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
$ sudo iw reg set US
via raspi-config
$ sudo raspi-config
Localisation Options
Change Wi-fi Country
US United States
OK
Finish.
$ sudo mkdir /media/2tb
$ sudo chown -R pi:pi /media/usb
$ sudo mkdir /media/4tb
Problem 1: Cannot open access to console, the root account is locked.
1. Mount SD card to windows machine
2. Edit cmdline.txt
Add to the end of file: init=/bin/bash
3. Start Raspberry Pi
4. Remount root partition to RW:
$ mount -o remount,rw /dev/mmcblk0p2 /
- Raspberry Pi Imager - https://www.raspberrypi.org/software/
- balenaEtcher - https://www.balena.io/etcher/
3. First connection
login: pi
password: raspberry
4. Enable SSH
$ sudo update-rc.d ssh defaults
$ sudo su
$ systemctl enable ssh.socket
$ exit
$ sudo reboot
5. Update repositories
$ sudo apt-get update
6. Change keyboard layout
$ sudo raspi-config
Localization Options
Change Keyboard Layout
Choose your keyboard or one of the generics
English (US)
$ sudo reboot
Fine your AP
$ sudo iwlist wlan1 scan | grep ESSID
Add info about access point to config file
$ vim /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="bla-bla-bla"
psk="secret password"
}
Set IP address
$ sudo vim /etc/network/interfaces
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.88.8
netmask 255.255.255.0
gateway 192.168.88.1
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Set country for Wi-Fi (to activate 5Ghz)
via terminal:
$ sudo iw reg get$ sudo iw reg set US
via raspi-config
$ sudo raspi-config
Localisation Options
Change Wi-fi Country
US United States
OK
Finish.
8. Install KODI
sudo apt-get install kodi
9. Install torrent client
$ sudo apt-get install transmission-daemon
qbit is better
7. Install vim
$ sudo apt-get install vim
8. Настройка Locale
$ sudo dpkg-reconfigure locales
en_US.UTF-8 UTF-8
ru_RU.UTF-8 UTF-8
In iTerm disable the checkbox "Preferences>Profiles>Default>Advanced>International>Set locale variables automatically on startup"
9. Connect remote usb drive
Identify The Devices Unique ID:
$ cat /var/log/messages | tail
$ sudo fdisk -l /dev/sda
$ ls -l /dev/disk/by-uuid/ | grep sda1
Auto Mount Configure:
$ sudo vim /etc/fstab
$ sudo apt-get install transmission-daemon
qbit is better
7. Install vim
$ sudo apt-get install vim
8. Настройка Locale
$ sudo dpkg-reconfigure locales
en_US.UTF-8 UTF-8
ru_RU.UTF-8 UTF-8
In iTerm disable the checkbox "Preferences>Profiles>Default>Advanced>International>Set locale variables automatically on startup"
9. Connect remote usb drive
Identify The Devices Unique ID:
$ cat /var/log/messages | tail
$ sudo fdisk -l /dev/sda
$ ls -l /dev/disk/by-uuid/ | grep sda1
Auto Mount Configure:
$ sudo vim /etc/fstab
UUID=63AB615E7F0C41A6 /media/2tb ntfs-3g auto,nofail,noatime,users,rw,uid=pi,gid=pi 0 0
UUID=66f72624-fda3-0bf6-41f1-1e0d4b1df6b0 /media/4tb ext4 rw,suid,dev,exec,auto,users,nofail 0 0
$ sudo mkdir /media/2tb
$ sudo chown -R pi:pi /media/usb
# for ext4 uid parameters are unavailable. Root permissions will be changed automatically to User permission after mounting.
$ sudo mkdir /media/4tb
$ reboot
10. Настройка transmission
$ sudo systemctl stop transmission-daemon
$ sudo vim /etc/transmission-daemon/settings.json
"upload-limit": 300,
"upload-limit-enabled": 1,
"download-dir": "/media/usb/Downloads",
"download-limit": 1000,
"download-limit-enabled": 1
"rpc-whitelist": "127.0.0.1,<your-ip>"
$ sudo systemctl start transmission-daemon
11. Подключение к transmission (transmission - transmission)
http://<raspberry-ip>:9091/transmission
10. Настройка transmission
$ sudo systemctl stop transmission-daemon
$ sudo vim /etc/transmission-daemon/settings.json
"upload-limit": 300,
"upload-limit-enabled": 1,
"download-dir": "/media/usb/Downloads",
"download-limit": 1000,
"download-limit-enabled": 1
"rpc-whitelist": "127.0.0.1,<your-ip>"
$ sudo systemctl start transmission-daemon
11. Подключение к transmission (transmission - transmission)
http://<raspberry-ip>:9091/transmission
########################################
1. Mount SD card to windows machine
2. Edit cmdline.txt
Add to the end of file: init=/bin/bash
3. Start Raspberry Pi
4. Remount root partition to RW:
$ mount -o remount,rw /dev/mmcblk0p2 /
5. Fix fstab file
$ vim /etc/fstab
6. Mount SD card to windows machine and remove latest changes in cmdline.txt
$ vim /etc/fstab
6. Mount SD card to windows machine and remove latest changes in cmdline.txt
7. Start Raspberry Pi
- How to install new locale?
$ sudo vim /etc/locale.gen
uncomment ru_RU.UTF-8, en_US.UTF-8
$ sudo locale-gen ru_RU.UTF-8
$ sudo locale-gen en_US.UTF-8
$ sudo update-locale en_US.UTF-8
$ sudo vim /etc/locale.gen
uncomment ru_RU.UTF-8, en_US.UTF-8
$ sudo locale-gen ru_RU.UTF-8
$ sudo locale-gen en_US.UTF-8
$ sudo update-locale en_US.UTF-8
#####
No comments:
Post a Comment