[Day 2] 6. Setting up a new Debian Machine
These instructions are for the VM that Manu Sir gave us.
Steps to Configure a Virtual Machine (VM)
-
Users and Passwords
- The VM has two default users: and
root.shuhari - Both users have the password .
toor
- The VM has two default users:
-
Login and Change Passwords
- Log in using each user (and
root).shuhari - When prompted, change their passwords to ones you prefer.
- Log in using each user (
-
Edit Sources List (as
)root-
Log in as the
user.root -
Open the
file by running:/etc/apt/sources.listbashnano /etc/apt/sources.list -
Add the following line at the end of the file:
bashdeb [trusted=1] http://sunbeam.shuharilabs.com/sw/repo/deb12/ bookworm main deb [trusted=1] http://deb.debian.org/debian bookworm main contrib non-free -
Save and close the file in
by pressing:nano- to exit.
CTRL + X - Type to confirm saving.
Y - Press to finalize.
Enter
-
-
Update Package List
-
Run this command to update the package list:
bashapt-get update
-
-
Install SSH Server
-
Install the OpenSSH server by running:
bashapt-get install openssh-server vim -
This sets up the VM to act as an SSH server.
-
-
Install
sudo-
Install the
package by running:sudobashapt-get install sudo
-
-
Grant
Access tosudoUsershuhari-
Add the
user to theshuharigroup with this command:sudobashusermod -aG sudo shuhari
-
This version makes the steps clearer and easier to follow. Let me know if you'd like further improvements!
Read Next
[Day 2] 7. Extra
#### **Excluding Files/Folders from Windows Defender** If you want to prevent Windows Defender from scanning specific files or folders, you can add...
[Day 3] 1. Introduction to Cryptography
### **Introduction to PKI** **Why is PKI included in the syllabus?** PKI (Public Key Cryptography Infrastructure) is crucial for two main reasons...