Basic OS Configuration

1. Permissions

Create users with permissions according to their role:

sudo to bring over

sudo adduser major

sudo adduser operator

sudo adduser technical

Add users to groups if necessary (ex. sudo):

sudo usermod -aG sudo super

– Configure folder permissions: Example: Give access only to the group technician a /opt/info360

sudo mkdir /opt/info360

sudo chown root:tecnic /opt/info360

sudo chmod 770 /opt/info360

2. Network

Check network interfaces:

ip a

Assign static IP (with Netplan or interfaces)

car enp0s8

iface enp0s8 inet static

address 192.168.10.10

netmask 255.255.255.0

gateway 192.168.10.1

Restart network service:

sudo systemctl restart networking

3. Basic software

Install useful tools for everyday use:

sudo apt update

sudo apt install -y net-tools vim curl wget htop sudo openssh-server

You can also add:

  • nmap (to scan network)
  • tree (to see folder structure)

4. Remote access (SSH)

Ensure that the SSH service is installed:

sudo apt install openssh-server

1. Activate and start the service:

sudo systemctl enable ssh

sudo systemctl start ssh

2. Check that it is working:

systemctl status ssh

5. Shell Environment

Useful aliases for all users: A /etc/bash.bashrc can be put:

alias ll='ls -l --color=auto'

alias gs='git status'

1. Global environment variables: Example a /etc/environment:

EDITOR=vim

Custom Prompt (PS1) to make it more visible: Hobby a .bashrc:

PS1="\[\e[1;32m\]\u@\h:\w\$ \[\e[0m\]"
Esta web utiliza cookies propias y de terceros para su correcto funcionamiento y para fines analíticos. Contiene enlaces a sitios web de terceros con políticas de privacidad ajenas que podrás aceptar o no cuando accedas a ellos. Al hacer clic en el botón Aceptar, acepta el uso de estas tecnologías y el procesamiento de tus datos para estos propósitos.
Privacidad