Skip to content

Linux

Linux GPLv3 license

Permissions

StaticIP

/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto ens18
iface ens18  inet static
 address 192.168.0.90
 netmask 255.255.255.0
 network 192.168.0.0
 broadcast 192.168.0.255
 gateway 192.168.0.1
restart network
systemctl restart networking.service

mDNS

avahi
apt install -y avahi-daemon avahi-utils
nano /etc/avahi/hosts # config

Resize disk

#Fdisk
fdisk -l # list partitions
fdisk /dev/sda # enter on sda partition
  p # list partitions table
  d # delete partition (delete all partitions)
  n # create new partition
    p # create primary partition (select default options)
  a # bootable flag
  p # list partitions table (check new config)
  w # write changes

#Resize2fs 
resize2fs /dev/sda1

#Apply
reboot

NoSpaceLeft

apt clean
apt autoremove
journalctl --vacuum-size=100M