Voldemort: Difference between revisions

From miki
Jump to navigation Jump to search
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:


== Information ==
== Information ==
* CPU is a '''armv8''', but as raspbian is 32-bit, it is reported as a 32-bit '''armv7l''' [https://raspberrypi.stackexchange.com/questions/101215/why-raspberry-pi-4b-claims-that-its-processor-is-armv7l-when-in-official-specif]:
* CPU is a '''armv8''', but as raspbian is 32-bit, it is reported as a 32-bit '''armv7l''' [https://raspberrypi.stackexchange.com/questions/101215/why-raspberry-pi-4b-claims-that-its-processor-is-armv7l-when-in-official-specif].
: We need usual Debian ARM to get 64-bit apps running. But this may also not be as optimized as Raspbian.
<source lang="bash">
<source lang="bash">
lscpu
lscpu
Line 9: Line 10:
# CPU(s): 4
# CPU(s): 4
</source>
</source>
* Ethernet: IP '''192.168.1.96''', <code>link/ether dc:a6:32:59:10:89</code>
* We need usual Debian ARM to get 64-bit apps running. But this may also not be as optimized as Raspbian.
* WiFi: IP '''192.168.1.95''', <code>link/ether dc:a6:32:59:10:8a</code>


== Configuration ==
== Configuration ==
Line 18: Line 20:
AvailableSessionTypes unix-remote,unix-console,unix-default,unix-application,shadow,unix-xsession-default,unix-gnome,unix-xdm,windows,physical-desktop
AvailableSessionTypes unix-remote,unix-console,unix-default,unix-application,shadow,unix-xsession-default,unix-gnome,unix-xdm,windows,physical-desktop
:* Restart the server <code>/etc/NX/nxserver --restart</code>.
:* Restart the server <code>/etc/NX/nxserver --restart</code>.
* Use static IP by editing {{file|/etc/dhcpcd.conf}} [https://pimylifeup.com/raspberry-pi-static-ip-address/]:
* Use static IP by editing {{file|/etc/dhcpcd.conf}} [https://pimylifeup.com/raspberry-pi-static-ip-address/]: '''192.168.1.96'''
<source lang="diff">
<source lang="diff">
+interface wlan0
+interface wlan0
Line 49: Line 51:
:* Add custom launcher exe {{file|/usr/local/bin/transmission-gtk}} to set <code>http_proxy</code> to point to ratio ghost port.
:* Add custom launcher exe {{file|/usr/local/bin/transmission-gtk}} to set <code>http_proxy</code> to point to ratio ghost port.
:* Enable remote connection.
:* Enable remote connection.

=== Borg server ===
We will use this pi4 as temporary borg server.

* Remove <code>pi</code> from <code>sudo</code> group.
* Remove <code>pi</code> from <code>sudo</code> group.
* Disable no password sudo rule ({{file|/etc/sudoers.d/010_pi-nopasswd}}).
* Disable no password sudo rule ({{file|/etc/sudoers.d/010_pi-nopasswd}}).
* Install borg:
<source lang="bash">
sudo apt install cython cython3
sudo apt-get install python3 python3-dev python3-pip python-virtualenv \
libssl-dev openssl \
libacl1-dev libacl1 \
build-essential
sudo pip3 install borgbackup
</source>
* Add a user <code>borg</code>.
* Mount borg share as separate autofs host ({{file|/smb/borg/borg}}), restricted to borg user:
<source lang="bash">
borg -fstype=cifs,vers=1.0,_netdev,perm,iocharset=utf8,sec=ntlm,uid=borg,forceuid,gid=borg, \
forcegid,file_mode=660,dir_mode=770,credentials=/etc/auto.master.d/smb.borg.borg.cred ://wolverine/homes/borg
</source>


== Issues ==
== Issues ==

Latest revision as of 18:40, 6 December 2020

Voldemort is our new Raspberry Pi 4 that shall replace Xbcmcbuntu for browsing / downloading / ...

Information

  • CPU is a armv8, but as raspbian is 32-bit, it is reported as a 32-bit armv7l [1].
We need usual Debian ARM to get 64-bit apps running. But this may also not be as optimized as Raspbian.
lscpu
# Architecture:        armv7l
# Byte Order:          Little Endian
# CPU(s):              4
  • Ethernet: IP 192.168.1.96, link/ether dc:a6:32:59:10:89
  • WiFi: IP 192.168.1.95, link/ether dc:a6:32:59:10:8a

Configuration

  • Install Raspbian Buster 32-bit (2020-08-20-raspios-buster-armhf-full.zip) using imager_1.4_amd64.deb.
  • Install NoMachine server (armv7 because 32-bit OS, also 64-bit is reported as not being optimized).
  • Enable hardware acceleration in server settings.
  • Add to /etc/NX/server/localhost/server.cfg [2]:
AvailableSessionTypes unix-remote,unix-console,unix-default,unix-application,shadow,unix-xsession-default,unix-gnome,unix-xdm,windows,physical-desktop
  • Restart the server /etc/NX/nxserver --restart.
  • Use static IP by editing /etc/dhcpcd.conf [3]: 192.168.1.96
+interface wlan0
+static ip_address=192.168.1.96/24
+#static ip6_address=fd51:42f8:caae:d92e::ff/64
+static routers=192.168.1.1
+static domain_name_servers=192.168.1.1 8.8.8.8 fd51:42f8:caae:d92e::1
  • Enable ssh server. The simplest is to [4]:
# Either touch a file and reboot the device
sudo touch /boot/ssh
sudo reboot
# Or enable through systemd
sudo systemctl enable ssh
sudo systemctl start ssh
  • Add to ~/.config/autostart/set_belgian_kbd.desktop:
[Desktop Entry]
Type=Application
Name=Set Belgian autostart
Comment=Set keyboard to Belgian layout
NoDisplay=true
Exec=sh -c '/usr/bin/setxkbmap be'
This should fix the wrong keyboard layout issue.
  • Install Ratio Ghost, and add to autostart.
  • Install Transmission, and add to autostart.
  • Add custom launcher exe /usr/local/bin/transmission-gtk to set http_proxy to point to ratio ghost port.
  • Enable remote connection.
  • Remove pi from sudo group.
  • Disable no password sudo rule (/etc/sudoers.d/010_pi-nopasswd).

Issues

  • When booting headless, the session is not the same as the one we get when we boot with hdmi connected.