Skip to content

Latest commit

 

History

History
53 lines (27 loc) · 841 Bytes

debian-setup.md

File metadata and controls

53 lines (27 loc) · 841 Bytes

Debian/Ubuntu Setup

Common packages

curl wget tree htop gnupg openssh-server \
fzf silversearcher-ag ripgrep exa \
python3-pip opam golang

User Management

Add regular user:

adduser <username>

Make sudo:

usermod -aG sudo <username>

Add system user:

adduser --system --no-create-home --shell /bin/false --group --disabled-login <username>

Text editor

To set editor to point to vim:

sudo update-alternatives --set editor /usr/bin/vim.basic

Disable Root SSH Login

Edit:

/etc/ssh/sshd_config

Set:

PermitRootLogin no

Boot to console

Using systemd:

sudo systemctl set-default multi-user.target

Alternative, configure GRUB, writing to /etc/default/grub:

#GRUB_CMDLINE_LINUX_DEFAULT=<whatever>
GRUB_CMDLINE_LINUX="text"
GRUB_TERMINAL=console