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
deb13:minisetup [2026/09/10 14:38] – [Server Setup] Bernard Condraudeb13:minisetup [2026/09/10 15:53] (current) Bernard Condrau
Line 13: Line 13:
   * [[deb13:tuning#swap_behavior|Swap behavior]]   * [[deb13:tuning#swap_behavior|Swap behavior]]
  
 +===== 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 ''/etc/network/interfaces'':<code>auto enp0s3
 +iface enp0s3 inet static
 +    address 192.168.3.150/24
 +    gateway 192.168.3.1
 +    dns-nameservers 192.168.3.1</code>
 +  * Add the nameserver to ''/etc/resolv.conf'':<code>nameserver 192.168.3.1</code>
 +  * Reboot with either of the following commands:<code>sudo reboot
 +sudo shutdown -r now</code>
 +  * Don't forget to bridge the interface if it is a VirtualBox virtual machine.
 ===== Security ===== ===== Security =====
   * Configure [[deb9:ssh|SSH Access]]   * Configure [[deb9:ssh|SSH Access]]
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</code>
-$ sudo apt install hping3 +
-$ sudo apt install openjdk-17-jre openjdk-17-jdk</code>+
   * Change visudo editor<code>$ sudo update-alternatives --config editor</code>   * Change visudo editor<code>$ sudo update-alternatives --config editor</code>
   * Check install<code>apt-cache policy <packagename></code>   * Check install<code>apt-cache policy <packagename></code>
  
-===== Upgrade linux headers ===== 
-  * Check remaining space on the boot partition with:<code>df -h | grep "^/dev/"</code> 
-  * Remove outdated kernel packages:<code>sudo apt-get autoremove</code> 
-  * First check your kernel version, so you won't delete the in-use kernel image, running:<code>uname -r</code> 
-  * Delete the kernels you don't want/need anymore by running this:<code>sudo apt-get remove linux-image-VERSION</code> 
-  * Update grub kernel list:<code>sudo update-grub</code> 
  
-===== System Startup ===== 
-Debian 11 uses Systemd, not SysV, that's why your commands in ''/etc/rc.local'' file would not run at system boot time. This guide explains how to enable ''/etc/rc.local'' script to run on system startup. 
-  - Create a rc.local unit file, follow [[deb10:rclocal|Services - rc.local]] 
-  - Create file rc.local in /etc with the following content:<code>vim /etc/rc.local 
-#!/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</code> 
-  - Add execute permissions and start daemon:<code>chmod +x /etc/rc.local 
-systemctl daemon-reload 
-systemctl start rc-local 
-systemctl status rc-local 
  
-● rc-local.service - /etc/rc.local Compatibility 
-   Loaded: loaded (/lib/systemd/system/rc-local.service; static; vendor preset:  
-  Drop-In: /lib/systemd/system/rc-local.service.d 
-           └─debian.conf 
-   Active: active (exited) since Sun 2019-05-05 10:55:29 +07; 11min ago 
-  Process: 1443 ExecStart=/etc/rc.local start (code=exited, status=0/SUCCESS) 
-    Tasks: 0 (limit: 4915) 
-   CGroup: /system.slice/rc-local.service 
-</code> 
- 
-  * [[https://www.linuxbabe.com/linux-server/how-to-enable-etcrc-local-with-systemd|How to Enable /etc/rc.local with Systemd]] 
-  * [[https://stackoverflow.com/questions/44797694/where-is-rc-local-in-debian-9-debian-stretch|Where is rc.local in Debian 9 (Debian Stretch)]] 
- 
-===== System Shutdown ===== 
-  - Put a symbolic link to the script to be run at shutdown into /lib/systemd/system-shutdown 
- 
-  * [[https://unix.stackexchange.com/questions/347306/how-to-execute-scripts-in-usr-lib-systemd-system-shutdown-at-reboot-or-shutdow|How to execute scripts in /usr/lib/systemd/system-shutdown/ at reboot or shutdown?]] 
-  * [[https://opensource.com/life/16/11/running-commands-shutdown-linux|How to run commands at shutdown on Linux]]