Dev/Embedded/Rootfs/Devuan/Config: Difference between revisions

From Embeded Linux (and more) Wiki by Nathael
< Dev‎ | Embedded‎ | Rootfs
Jump to navigation Jump to search
(Created page with "== Logins == === root password === * Change root password: (should be "devuan" in the images I provide) === SSH === * Re-generate SSH key: rm /etc/ssh/ssh_host_* dpkg-recon...")
 
Line 8: Line 8:
  dpkg-reconfigure openssh-server
  dpkg-reconfigure openssh-server


== APT ==
* Some basic apt configuration (Saves a lot of space) :
echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/02norecommends
== udev and eudev ==
* Prevent udev from renaming eth0 :
echo "# Disable persistent net generator
# This empty file overrides the default persistent net generator
#  ... and does the job ... of doing nothing :)" > /etc/udev/rules.d/75-persistent-net-generator.rules
* And remove the rules which already got created :
rm /etc/udev/rules.d/70-persistent-net.rules


== Configure network ==
== Configure network ==

Revision as of 05:09, 17 October 2019

Logins

root password

  • Change root password: (should be "devuan" in the images I provide)

SSH

  • Re-generate SSH key:
rm /etc/ssh/ssh_host_*
dpkg-reconfigure openssh-server

APT

  • Some basic apt configuration (Saves a lot of space) :
echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/02norecommends

udev and eudev

  • Prevent udev from renaming eth0 :
echo "# Disable persistent net generator
# This empty file overrides the default persistent net generator
#   ... and does the job ... of doing nothing :)" > /etc/udev/rules.d/75-persistent-net-generator.rules
  • And remove the rules which already got created :
rm /etc/udev/rules.d/70-persistent-net.rules

Configure network

  • Edit these files :
/etc/network/interfaces
/etc/hosts