Changes

Jump to: navigation, search

Debian Linux Post Install Steps

1,397 bytes added, 15:49, 13 March 2019
Install packages
hostnamectl set-hostname sky.mgk.ro
reboot
 
== Package management ==
 
=== Enable more repositories ===
 
cat <<EOT >/etc/apt/sources.list
deb http://deb.debian.org/debian/ stretch main contrib non-free
deb-src http://deb.debian.org/debian/ stretch main contrib non-free
deb http://security.debian.org/debian-security stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free
deb http://deb.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian/ stretch-updates main contrib non-free
EOT
 
=== Do not install recommended and suggested packages ===
 
cat <<EOT >/etc/apt/apt.conf.d/50norecommends
APT::Install-Recommends "false";
APT::Install-Suggests "false";
EOT
== Update the software ==
reboot
== Do not install recommended and suggested packages User management == === Create a user (cloud computing) ===  useradd -c 'Aram Hăvărneanu' -G users -m -s /bin/bash -g staff aram passwd -l aram Enable passwordless sudo for the staff group:
cat echo '%staff ALL=(ALL) NOPASSWD:ALL' >/etc/apt/apt.confsudoers.d/50norecommends <<EOT APT::Install91-staff-Recommends "false"; APT::Installno-Suggests "false"; EOT password
== Create a = Fix the user created during installation (non-cloud) ===
useradd usermod -c 'Aram Hăvărneanu' a -G users -m -s /bin/bash -g staff aram
passwd -l aram
chmod 700 .ssh
chmod 644 .ssh/authorized_keys
 
== Install packages ==
 
For home installations you might want to install avahi.
 
apt install avahi-daemon
 
For development system you might want to install:
 
apt install rsync git build-essential linux-headers-amd64 gccgo gccgo-go golang-go clang clang-format clang-tidy
 
And if you have [[Install newer kernels in Debian stable|backports]]:
 
apt -t stretch-backports install clang-6.0 golang-go
apt autoremove
 
== Newer kernel ==
 
If it's a testing or development system, perhaps you might want a [[Install newer kernels in Debian stable|newer kernel]].

Navigation menu