User Tools

Site Tools


operating_systems:raspbian:clean_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
operating_systems:raspbian:clean_installation [2019/05/14 12:07] maferreiraoperating_systems:raspbian:clean_installation [2019/05/24 07:34] – [dhclient can't create lease file] maferreira
Line 8: Line 8:
  
 ===== Serial connection and disable first boot autosize ===== ===== Serial connection and disable first boot autosize =====
-<note important>Do the following 3 steps **BEFORE BOOTING FOR THE FIRST TIME** your raspberry pi</note>+<note warning>Do the following 3 steps **BEFORE BOOTING FOR THE FIRST TIME** your raspberry pi</note>
  
 ==== Backup cmdline.txt and config.txt ==== ==== Backup cmdline.txt and config.txt ====
Line 54: Line 54:
     /dev/mmcblk0p3        /media/data     ext4    defaults                   0     /dev/mmcblk0p3        /media/data     ext4    defaults                   0
  
-<note important>Make sure you have **CREATED /media/data** folder **BEFORE MOUNTING** it because your raspberry pi **WON'T BOOT** after that : **Cannot open access to console. The root account is locked see sulogin(8) man page for more details.**</note>+<note warning>Make sure you have **CREATED /media/data** folder **BEFORE MOUNTING** it because your raspberry pi **WON'T BOOT** after that : **Cannot open access to console. The root account is locked see sulogin(8) man page for more details.**</note>
  
 Now, it's time to test what you have done. Now, it's time to test what you have done.
Line 75: Line 75:
     /dev/mmcblk0p3  6.7G   31M  6.3G   1% /media/data     /dev/mmcblk0p3  6.7G   31M  6.3G   1% /media/data
  
 +===== dhclient can't create lease file =====
 +    # mkdir -p /media/data/var/lib/dhcp
 +    # touch /media/data/var/lib/dhcp/dhclient.leases
 +    # ln -s /media/data/var/lib/dhcp/dhclient.leases /var/lib/dhcp/dhclient.leases
 +
 +    # vi /etc/dhcp/dhclient-enter-hooks.d/samba
 +    # netbios_setup (comment the function call)
 ===== Update raspbian packages and install needed packages ===== ===== Update raspbian packages and install needed packages =====
     # apt update     # apt update
Line 94: Line 101:
              
     # reboot     # reboot
-<note important>**REBOOT** your raspberry pi **AFTER** adding each line to **FSTAB**</note>+<note warning>**REBOOT** your raspberry pi **AFTER** adding each line to **FSTAB**</note>
  
 Systemd-hostnamed doest not start Systemd-hostnamed doest not start
Line 154: Line 161:
     /dev/mmcblk0p1  /boot           vfat    defaults,ro          0       2     /dev/mmcblk0p1  /boot           vfat    defaults,ro          0       2
  
-<note important>**REBOOT** your raspberry pi **AFTER** adding each line to **FSTAB**</note>+<note warning>**REBOOT** your raspberry pi **AFTER** adding each line to **FSTAB**</note>
  
 Systemd manual: https://freedesktop.org/software/systemd/man/systemd.exec.html#id-1.20.8 Systemd manual: https://freedesktop.org/software/systemd/man/systemd.exec.html#id-1.20.8