# Laboratorium 2 ## 1. Konfiguracja źródeł pakietów https://wiki.debian.org/SourcesList Below is an example of a sources.list for Debian 10/Buster. ``` $ nano /etc/apt/sources.list ``` test Below is an example of a sources.list for Debian 10/Buster. ``` deb http://deb.debian.org/debian buster main deb-src http://deb.debian.org/debian buster main deb http://deb.debian.org/debian-security/ buster/updates main deb-src http://deb.debian.org/debian-security/ buster/updates main deb http://deb.debian.org/debian buster-updates main deb-src http://deb.debian.org/debian buster-updates main ``` If you also need the contrib and non-free components, add contrib non-free after main. For example, for Debian 10/Buster: ``` deb http://deb.debian.org/debian buster main contrib non-free deb-src http://deb.debian.org/debian buster main contrib non-free deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free deb http://deb.debian.org/debian buster-updates main contrib non-free deb-src http://deb.debian.org/debian buster-updates main contrib non-free ``` ## 2. skonfigurować forward portów w virtualbox ![](https://i.imgur.com/MP29VLU.png) ![](https://i.imgur.com/szypzF2.png) https://www.linuxbabe.com/desktop-linux/how-to-install-virtualbox-guest-additions-on-debian-step-by-step ## 3. ustawić klucze SSH (instrukcja laboratorium 3) ## 4. Połącz się przez Putty ## 5. Dodaj użytkownika do sudo usermod -aG sudo username