Dev/Embedded/Rootfs/Devuan/Config: Difference between revisions
Jump to navigation
Jump to search
(→Logins) |
(→APT) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
== APT == | == APT == | ||
* Some basic apt configuration (Saves a lot of space) : | * Some basic apt configuration (Saves a lot of space) : | ||
echo 'APT::Install-Recommends " | echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/02norecommends | ||
echo 'APT::Install-Suggests "false";' > /etc/apt/apt.conf.d/03nosuggests | |||
== udev and eudev == | == udev and eudev == | ||
Line 20: | Line 21: | ||
rm /etc/udev/rules.d/70-persistent-net.rules | rm /etc/udev/rules.d/70-persistent-net.rules | ||
== | == Common Host specific configuration == | ||
=== Hostname === | |||
* Edit these files : | |||
: /etc/hostname | |||
: /etc/hosts | |||
: /etc/motd | |||
=== Users === | |||
: /etc/skel | |||
: /etc/bash.bashrc | |||
: /etc/profile | |||
=== Startup script === | |||
: /etc/rcS.d/S01startup.sh | |||
: /etc/rc.local | |||
=== Network === | |||
* Edit these files : | * Edit these files : | ||
: /etc/network/interfaces | : /etc/network/interfaces | ||
: /etc/hosts | : /etc/ssh/sshd_config | ||
: /etc/init.d/firewall | |||
* You can find information about [[Dev/Host/NetworkSharing|network configuration]] and [[Dev/Host/Firewall|firewall sysvinit script]] | |||
=== "copy paste" === | |||
cd ${mntpoint}/etc/ | |||
vi hostname hosts motd rc.local network/interfaces ssh/sshd_config init.d/firewall | |||
== More specific configuration == | |||
* Other boot scripts | |||
* Install additional software | |||
* Additional software configuration |
Latest revision as of 08:20, 4 July 2024
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 "false";' > /etc/apt/apt.conf.d/02norecommends echo 'APT::Install-Suggests "false";' > /etc/apt/apt.conf.d/03nosuggests
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
Common Host specific configuration
Hostname
- Edit these files :
- /etc/hostname
- /etc/hosts
- /etc/motd
Users
- /etc/skel
- /etc/bash.bashrc
- /etc/profile
Startup script
- /etc/rcS.d/S01startup.sh
- /etc/rc.local
Network
- Edit these files :
- /etc/network/interfaces
- /etc/ssh/sshd_config
- /etc/init.d/firewall
- You can find information about network configuration and firewall sysvinit script
"copy paste"
cd ${mntpoint}/etc/ vi hostname hosts motd rc.local network/interfaces ssh/sshd_config init.d/firewall
More specific configuration
- Other boot scripts
- Install additional software
- Additional software configuration