INSTALLING DEBIAN 12.1.0 AND VIRTUALBOX GUEST ADDITIONS STEP BY STEP

1- INSTALLATING DEBIAN 12.1.0


0-
Before starting: Check that you are working with
VirtualBox 6.1.38 (or higher) and VirtualBox 6.1.38 Oracle VM VirtualBox Extension Pack (or higher).

1- Download the installation image of Debian 12.1.0 called debian-12.1.0-amd64-DVD-1.iso from
this link (you can find the image at the bottom).

2
- Create a new virtual machine with te following specifications:
3- Additional configuration parameters:
4- Start your newly created virtual machine.

5- Select Graphical install

6- Select a language: English.

7-  Select your location: Other --> Europe --> Andorra or Spain
.

8- Configure locales: United States - en_US.UTF-8.

9- Keymap to use: Catalan or Spanish

10- Configure the network:
11- Set up users and passwords:
12-  Partition disks --> Guided-use entire disk

13- Select SCSI1 (0,0,0) (sda) - 21.5 GB ATA VBOX HARDDISK (Don't worry if the number showed by the system is not 1).

14- Select All files in one partition (recommended for new users).

15- Select Finish partitioning and write changes to disk.

16- Answer  Yes to the question Write the changes to disk?

17- Now, the base system will be installed in your host. It takes a few minutes to complete this task.
Take it easy!!!.

18- Configure the package manager --> Answer No to the question Scan extra installation media?

19- Configure the package manager --> Answer Yes to the question Use a network mirror? and select the following mirror: United States --> deb.debian.org.

20- HTTP proxy information: None (blank). Do not write anything.
 
21-  Now, your package manager (a software required to download and install programs on Debian GNU/Linux) will be configured. Afterwards, a first group of important software packages will be downloaded from the server and installed in your computer.
It takes a few minutes to complete this task. Take it easy!!!.

22- Answer No to the question made by the system in the window  Configuring popularity-conquest.

23-  In Software selection  select :
Now, part of the selected software will be downloaded and installed. It could take a few minutes to complete this task (it depends on your internet connection and  features of your laptop). Take it easy!!!.

24- Select gdm3 as a default display manager.
Now, the rest  of the selected software will be downloaded and installed. It could take several minutes to complete this task. Take it easy!!!.

25-  Answer Yes to the question Install the GRUB boot loader to your primary drive?.

26- Select /dev/sda at the next section.

27- Now, the installation is complete. Reboot your system. Afterwards:
If everything works properly,  the selected desktop appears.

28- Check your Internet connection: Select Applications --> Internet --> Firefox and surf the net with Firefox.

29-
Power off your system in the right way.
Select System --> Shut Down --> Shut Down.

2-  INSTALLING VIRTUALBOX GUEST ADDITIONS ON DEBIAN GNU/Linux 12.1.0

0- Before starting -> What are VirtuaThelBox Guest Additions?

1-
Boot your virtual computer: Select debian12.1 and press Start.

2- Open a terminal:
Select Applications --> System Tools  --> MATE Terminal.

3- Become the root user running  su - . Write the root user password.

4- Gain access to the directory /etc/apt running on your terminal:  cd /etc/apt

5- With the help of the nano text editor we are going to change a file called sources.list:
6- Update the list of sofware packages available of you repository server.  Run on your terminal:  apt-get update

7- Install the command line package manager called aptitude. Run
on your terminal: apt-get install aptitude

8- Install the following software packages: gcc, make,build-essential, dkms, module-assistant  and linux-headers-5.10.0-18-amd64. Run on your terminal:

aptitude install gcc make build-essential dkms module-assistant linux-headers-6.1.0-11-amd64

It takes a few minutes to complete this task.Take it easy!!!.

9-
Select the Devices menu --> Insert Guest Additions CD image and:

10- Run the command:  /bin/bash /media/cdrom0/VBoxLinuxAdditions.run

11-
Close the MATE Terminal.

12- Shutdown your system in the right way.: Select System --> Shut Down --> Shutdown.

13- Eject the VBoxGuestAdditions.iso cdrom image:

13-  Boot (Start) Debian GNU/Linux. Gain access to your Desktop.

14-  Resize your window and your Desktop with the help of your mouse.

15- Power off your system in the right way. Select System --> Shut Down --> Shut Down.

3- ADD NEW REPOSITORIES TO YOUR PACKAGE MANAGER

0- Before starting:


1-
 
As a root user, change /etc/apt/sources.list in order to add the contrib and non-free repository addresses (or sources).  Adding these new repositories allows the system  to gain access to some extra useful software packages.  The new sources.list  file should have the following contents:



After changing  the contents of /etc/apt/sources.list, run: aptitude update

2- Install a useful  GUI text editor called  Geany  on your system. Just follow the next steps as a root user:  aptitude  install geany

3- Install the arial font (and another useful fonts).
Run: aptitude install ttf-mscorefonts-installer

It takes a few minutes to complete this task.Take it easy!!!.

4- Install MATE Tweak. Run:  aptitude install mate-tweak

4- Logout as root. Run: exit

5- Show the Trash bin and Computer icons on your Desktop:
    a)
Select System --> Control Center --> Look and Feel --> MATE Tweak. Enable Trash and Computer.
    b) Check that Trash
bin and Computer appear on your Desktop.

6- Start the LibreOffice Writer text editor: Applications --> Office --> LibreOffice Writer.  Check that the arial font is now available.

7- Install net-tools. Run: aptitude install netstat -atupn

4- ADD YOUR USER TO SUDO GROUP


1- Start a terminal (MATE Terminal) and using the su - command, become the root user.

2- Add your user to sudo group. Run:
gpassswd  -a  xxyyzz  vboxsf

where xxyyzz is the user created by you during the installation process of Debian GNU/Linux.

3-
Log out as root.
Afterward,
Close  the terminal window properly and  log out as standard user from your desktop. Finally, gain access to your desktop again.

5- ATTACH A physical USB DRIVE TO DEBIAN GNU/Linux

1- Start a terminal (MATE Terminal) and using the su - command, become the root user.

2-
Provide your user with the proper permissions to work with shared folders by running the command:

gpasswd  -a  xxyyzz  vboxsf

where xxyyzz is the user created by you during the installation process of Debian GNU/Linux.

3-
Log out as root.
Afterward,
Close  the terminal window properly and  log out as standard user from your desktop. Finally, gain access to your desktop again.
 
4-
Plug your USB drive into your laptop.

5-  Attach and open a USB drive into your virtual machine: Click on the  "USB settings.." icon  at the bottom right corner of your virtual machine and select your USB drive. Automatically a folder showing the contents of your USB drive will appear.

6- SHARING FOLDERS BETWEEN THE HOST (PHYSICAL)  MACHINE AND THE VIRTUAL MACHINE

1- Shutdown
your virtual computer.

2-
Create a new folder, called sharing, inside the folder VirtualBox VMs of your host operating system. Create a new empty file called inf1_xxyyzz.txt inside the folder sharing
of your host operating system. Remember: xx=two first letters of your name, yy=two first letters of your first surname and zz=two first letters of your second surname.

3- On VirtualBox Manager, select your virtual machine and, afterwards, select Shared folders.

4-
Select Machine Folders and click on the small blue rectangle with a green cross at the right side of the window. A window will appear with a form to add a new shared folder. Add a new one with the following features:
    a) Folder Path: Look for sharing on your system and select it.
    b) Folder Name -->
sharing
    c) Select Auto-mount
    d)
Mount point --> Do no write anything

5-
Boot your virtual machine.

6- Select  and open the sf_sharing folder on your Desktop. Check that the file inf1_xxyyzz.txt created in step 2 appears. Copy the file on the Desktop of your virtual machine.