Anpassen des Debian Templates: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 19: Zeile 19:
 
   address <span style="color:red">'''IP/CIDR'''</span>
 
   address <span style="color:red">'''IP/CIDR'''</span>
 
   gateway <span style="color:red">'''GW'''</span>
 
   gateway <span style="color:red">'''GW'''</span>
 
+
  dns-nameservers <span style="color:red">'''NS'''</span>
==Namerserver==
+
  dns-search <span style="color:red">'''DOM'''</span>
*nano /etc/resolv.conf
 
nameserver <span style="color:red">'''NS'''</span>
 
search <span style="color:red">'''DOM'''</span>
 
*chattr +i /etc/resolv.conf
 
 
 
==Hosts==
 
*nano /etc/hosts
 
127.0.0.1 localhost
 
127.0.1.1 <span style="color:red">'''FQDN'''</span> <span style="color:red">'''SHORT'''</span>
 
 
# The following lines are desirable for IPv6 capable hosts
 
::1    localhost ip6-localhost ip6-loopback
 
ff02::1 ip6-allnodes
 
ff02::2 ip6-allrouters
 
  
 
==Reboot==
 
==Reboot==
 
*systemctl reboot
 
*systemctl reboot
==JumpHost==
 
;Auf dem KIT Host anfügen
 
*vim ~/.ssh/config
 
Host <span style="color:red">'''SHORT'''</span>
 
  Hostname <span style="color:red">'''IP'''</span>
 
  ProxyJump kit@fw
 
;PubKey Übertragung
 
*ssh-copy-id <span style="color:red">'''SHORT'''</span>
 
Danach könnt ihr euch mit '''ssh''' <span style="color:red">'''SHORT'''</span> passswortlos einlogen
 

Aktuelle Version vom 2. Juni 2026, 12:26 Uhr

Hostname

  • hostnamectl set-hostname FQDN

Netzwerk

  • nano /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 enp0s3
iface enp0s3 inet static 
 address IP/CIDR
 gateway GW
 dns-nameservers NS
 dns-search DOM

Reboot

  • systemctl reboot