This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| deb13:minisetup [2026/09/10 14:36] – created Bernard Condrau | deb13:minisetup [2026/09/10 15:53] (current) – Bernard Condrau | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| * Login to the server via SSH as root | * Login to the server via SSH as root | ||
| * Install sudo, create the main user, and add him to the sudoers group< | * Install sudo, create the main user, and add him to the sudoers group< | ||
| - | # adduser <user> | + | adduser <username> sudo |
| - | # vi /etc/group (add < | + | </ |
| - | * (VPS) change the machine name:< | + | * (VPS) change the machine name:< |
| sudo edit / | sudo edit / | ||
| * enable // | * enable // | ||
| Line 13: | Line 13: | ||
| * [[deb13: | * [[deb13: | ||
| + | ===== Network ===== | ||
| + | * In a minimal install without GUI is no NetworkManager present. Configure the static ip address first to be able to access the host. | ||
| + | * Modify ''/ | ||
| + | iface enp0s3 inet static | ||
| + | address 192.168.3.150/ | ||
| + | gateway 192.168.3.1 | ||
| + | dns-nameservers 192.168.3.1</ | ||
| + | * Add the nameserver to ''/ | ||
| + | * Reboot with either of the following commands:< | ||
| + | sudo shutdown -r now</ | ||
| + | * Don't forget to bridge the interface if it is a VirtualBox virtual machine. | ||
| ===== Security ===== | ===== Security ===== | ||
| * Configure [[deb9: | * Configure [[deb9: | ||
| Line 25: | Line 36: | ||
| $ sudo apt install rename | $ sudo apt install rename | ||
| $ sudo apt install rsync | $ sudo apt install rsync | ||
| - | $ sudo apt install curl | + | $ sudo apt install curl</ |
| - | $ sudo apt install hping3 | + | |
| - | $ sudo apt install openjdk-17-jre openjdk-17-jdk</ | + | |
| * Change visudo editor< | * Change visudo editor< | ||
| * Check install< | * Check install< | ||
| - | ===== Upgrade linux headers ===== | ||
| - | * Check remaining space on the boot partition with:< | ||
| - | * Remove outdated kernel packages:< | ||
| - | * First check your kernel version, so you won't delete the in-use kernel image, running:< | ||
| - | * Delete the kernels you don't want/need anymore by running this:< | ||
| - | * Update grub kernel list:< | ||
| - | |||
| - | ===== System Startup ===== | ||
| - | Debian 11 uses Systemd, not SysV, that's why your commands in ''/ | ||
| - | - Create a rc.local unit file, follow [[deb10: | ||
| - | - Create file rc.local in /etc with the following content:< | ||
| - | #!/bin/sh -e | ||
| - | # | ||
| - | # rc.local | ||
| - | # | ||
| - | # This script is executed at the end of each multiuser runlevel. | ||
| - | # Make sure that the script will "exit 0" on success or any other | ||
| - | # value on error. | ||
| - | # | ||
| - | # In order to enable or disable this script just change the execution | ||
| - | # bits. | ||
| - | # | ||
| - | # By default this script does nothing. | ||
| - | exit 0</ | ||
| - | - Add execute permissions and start daemon:< | ||
| - | systemctl daemon-reload | ||
| - | systemctl start rc-local | ||
| - | systemctl status rc-local | ||
| - | |||
| - | ● rc-local.service - / | ||
| - | | ||
| - | Drop-In: / | ||
| - | | ||
| - | | ||
| - | Process: 1443 ExecStart=/ | ||
| - | Tasks: 0 (limit: 4915) | ||
| - | | ||
| - | </ | ||
| - | |||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | ===== System Shutdown ===== | ||
| - | - Put a symbolic link to the script to be run at shutdown into / | ||
| - | * [[https:// | ||
| - | * [[https:// | ||