A72-RPi: Unterschied zwischen den Versionen

Aus Andis Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „ == HW == * Attach the cables * Attach an external disk (Note: This might get booted twice at every system start) == Setup OS == * Format an micro SD cart…“)
 
 
(6 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 5: Zeile 5:
* Attach the cables
* Attach the cables
* Attach an external disk (Note: This might get booted twice at every system start)
* Attach an external disk (Note: This might get booted twice at every system start)
* If the SD card gets corrupted, repair it with e2fsck or dosfsck:
  linux:/dev # dosfsck -a mmcblk0p6
  fsck.fat 4.1 (2017-01-24)
  0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
  Automatically removing dirty bit.
  Performing changes.
  mmcblk0p6: 211 files, 45710/139106 clusters


== Setup OS ==
== Setup OS ==


* Format an micro SD cart to FAT (the preinstalled exFAT is possibly not recognized)
Prepare a micro-sd-card using the commands:
* Unzip the NOOBS installer
 
* sudo zypper install rpi-imager  # or apt
* rpi-imager


== Configure OS ==
== Configure OS ==
* Add your external disk to fstab (note the auto, nofail, exec flags, use blkid or gparted to find the UUID):
  proc            /proc          proc    defaults          0      0
  /dev/mmcblk0p6  /boot          vfat    defaults          0      2
  /dev/mmcblk0p7  /              ext4    defaults,noatime  0      1
  UUID="47be...-350a-...9cfb" /home/berrydisk ext4 auto,nofail,noatime,async,suid,dev,rw,nouser,exec  0  3
  UUID="1941...-bf8d-...4476" /var/berrydisk ext4 auto,nofail,noatime,async,suid,dev,rw,nouser,exec  0  3


* define users
* define users
Zeile 17: Zeile 35:
   adduser <user> # adds a user and a group and a home directory
   adduser <user> # adds a user and a group and a home directory
   adduser <user> sudo # adds an existing user to the group sudo
   adduser <user> sudo # adds an existing user to the group sudo
   deluser --remove-home <user> # deletes a user - do this for pi
   # deluser --remove-home <user> # deletes a user - do this for pi


* use the same user ids as on the other linuxes where you attach the external disks
* use the same user ids as on the other linuxes where you attach the external disks
* Add your external disk to fstab (note the auto, nofail, exec flags):
  proc            /proc          proc    defaults          0      0
  /dev/mmcblk0p6  /boot          vfat    defaults          0      2
  /dev/mmcblk0p7  /              ext4    defaults,noatime  0      1
  UUID="47be...-350a-...9cfb" /home/berrydisk ext4 auto,nofail,noatime,rw,exec,user 0 3
  UUID="1941...-bf8d-...4476" /var/berrydisk ext4 auto,nofail,noatime,rw,user 0 3


* in /etc/passwd change the homedirectory of a user to /home/berrydisk/...
* in /etc/passwd change the homedirectory of a user to /home/berrydisk/...
Zeile 33: Zeile 43:
* Make user selectable at boot:  
* Make user selectable at boot:  


sudo raspi-config
  sudo raspi-config
 
* for the right keyboard, configure via raspbi-config;
  for the R-go Split keyboard choose Generic-105-key-PC,
  German no-dead-keys, Right Alt as AltGr, no Compose Key, no Ctrl-Alt-Del.
  Eventually you have to create your own .Xmodmap file and replace the preconfigured keymaps,
  see https://wiki.archlinux.org/title/Xmodmap


== Installation of Packages ==
== Installation of Packages ==
Zeile 41: Zeile 57:
   sudo apt install simple-scan
   sudo apt install simple-scan


* Printer
* Install printer software
 
  sudo apt install cups
  sudo usermod -a -G lpadmin <user>


  # t.b.d.
* Configure a printer at http://localhost:631/


* Development tools
* Development tools
Zeile 52: Zeile 71:


   sudo apt install kate code
   sudo apt install kate code
== Monitor System ==
* Temperature
 
  sudo vcgencmd measure_temp

Aktuelle Version vom 27. Dezember 2023, 18:24 Uhr


HW

  • Attach the cables
  • Attach an external disk (Note: This might get booted twice at every system start)
  • If the SD card gets corrupted, repair it with e2fsck or dosfsck:
 linux:/dev # dosfsck -a mmcblk0p6
 fsck.fat 4.1 (2017-01-24)
 0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
  Automatically removing dirty bit.
 Performing changes.
 mmcblk0p6: 211 files, 45710/139106 clusters

Setup OS

Prepare a micro-sd-card using the commands:

  • sudo zypper install rpi-imager # or apt
  • rpi-imager

Configure OS

  • Add your external disk to fstab (note the auto, nofail, exec flags, use blkid or gparted to find the UUID):
 proc            /proc           proc    defaults          0       0
 /dev/mmcblk0p6  /boot           vfat    defaults          0       2
 /dev/mmcblk0p7  /               ext4    defaults,noatime  0       1
 UUID="47be...-350a-...9cfb"	/home/berrydisk	ext4	auto,nofail,noatime,async,suid,dev,rw,nouser,exec  0  3
 UUID="1941...-bf8d-...4476"	/var/berrydisk	ext4	auto,nofail,noatime,async,suid,dev,rw,nouser,exec  0  3
  • define users
 adduser <user> # adds a user and a group and a home directory
 adduser <user> sudo # adds an existing user to the group sudo
 # deluser --remove-home <user> # deletes a user - do this for pi
  • use the same user ids as on the other linuxes where you attach the external disks
  • in /etc/passwd change the homedirectory of a user to /home/berrydisk/...
  • Make user selectable at boot:
 sudo raspi-config
  • for the right keyboard, configure via raspbi-config;
 for the R-go Split keyboard choose Generic-105-key-PC,
 German no-dead-keys, Right Alt as AltGr, no Compose Key, no Ctrl-Alt-Del. 
 Eventually you have to create your own .Xmodmap file and replace the preconfigured keymaps, 
 see https://wiki.archlinux.org/title/Xmodmap

Installation of Packages

  • Scanner
 sudo apt install simple-scan
  • Install printer software
 sudo apt install cups
 sudo usermod -a -G lpadmin <user>
  • Development tools
 sudo apt install cmake gcc libgtk-3-dev libsqlite3-dev devscripts build-essential yamllint debsigs dblatex xmlto doxygen inkscape lcov
  • Development IDEs
 sudo apt install kate code

Monitor System

  • Temperature
 sudo vcgencmd measure_temp