INSTALLING DEBIAN 9.5.0
AND GUEST ADDITIONS. WORKING WITH VIRTUALBOX.
PRACTICAL EXERCISE: INSTALLING
DEBIAN 9.5.0 AND GUEST ADDITIONS STEP BY STEP
1- Download the installation
image of Debian 9.5.0 from: https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/debian-9.5.0-amd64-DVD-1.iso
2- Create a
new virtual machine with te following specifications:
3- Extra features:
- Name: daw2-m08uf2-xxyyzz (where
xx=two first letters of your name, yy=two
first letters of your first surname and zz=two first letters of your second surname. For
instance, for somebody called Jaume Pons Martínez
- Type: Linux
- Version: Debian (64-bit)
- Memory: 1024MB
- File Location --> daw2-m08-xxyyzz
- File size: 12GB
- Hard drive file type: VDI
- Storage on physical hard drive: Dinamically
your newly created virtual machine.
- System --> Processor --> Enable
- System --> Motherboard --> Boot
- 1st device: CD/DVD
- 2nd device: Hard Disk
- Network --> Bridge Adapter
- Storage --> Storage Tree -->
Controller IDE --> Select Empty
- Storage --> Attributes --> Click on
the smal DVD icon --> Select Choose a virtual CD/DVD
disk files... --> FInd and Select debian-9.5.0-amd64-DVD-1.iso.
5- Select Graphical install.
6- Language: Catalan.
7- Location: Other
--> Europe --> Andorra.
8- Keymap to use: Catalan.
9- Now, some additional
components are loaded in your system. Afterwards, you will be
required to provide a name
for your host. Write daw2m08-xxyyzz,
where xx=two first letters of your name, yy=two
first letters of your first surname and zz=two
first letters of your second surname (For instance, the
hostname for somebody called Jaume Pons Martínez
would be inf1-japoma).
10- Now, you should write the Domain name to which your host
belongs. Write fjeclot.net.
Write the following password for your root user: fjeclot
12- Now, write
your name and first surname as a real name
for a new non-administrative user account. Remember, you
are not wrting a username, you are writing the real name. A
real name is for instance "Jaume Llopis".
13- Nom, you have
to write a username for the new non-adminstrative user
account. Write: xxyyzz, where xx=two first
letters of your name, yy=two first letters of your first
surname and zz=two first letters of your second
instance, the username for somebody called Jaume Llopis
Martínez would be jallma).
Remember, that is the name you have to write when you are
logging in your system.
14- Choose and
re-enter a password for the new non-adminstrative account. Write clotfje.
disks --> Guided-use entire disk
16- Select SCSI3 (0,0,0) (sda) - 12,9 GB ATA VBOX
HARDDISK (Don't worry if the number showed by the system is
17- Select All files in one partition.
18- Select Finish
partitioning and write changes to disk.
19- Answer Yes to the question Write the
changes to disk?
20- Now, the base system will be installed
in your host. It takes a few minutes to complete this task.
21- Configuring the
package manager --> Answer No to the question Scan
another CD or DVD?
the package manager --> Answer
Yes to the question Use a network mirror?
and select the following mirror: Finland
It's a server with a high speed connection to Internet.
23- HTTP proxy
information: None. Do not write anything.
24- Now, your
package manager 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.
25- Answer No to the question made by the
system in the window Configuring popularity-conquest.
26- In Software
selection select :
part of the selected software will be downloaded and installed.
It could take several minutes to complete this task (it depends
on your internet connection and the features of your laptop). Take it easy!!!.
- Debian desktop
- web server
- print server
- SSH server
- Standard system utilities
27- 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!!!.
28- Answer Yes to the question Install
the GRUB boot loader to the master boot record?.
29- Select /dev/sda at the next section.
30- Now, the installation is complete.
Reboot your system. Select the first option in the GRUB menu
(*Debian GNU/Linux). Afterwards, select your
user and write your password. Finally, select your
desktop (at the moment MATE) by clicking on the gear icon
and press Enter (or click on Sign in). If everything works
properly, the selected desktop appears.
31- Check your Internet connection: Surf
the net with Firefox.
Select Applications --> Internet --> Firefox.
32- Power off your system in the right
way. Select System --> Shut
Down --> Shut Down.
1- Open a terminal (Select
Applications --> System Tools -->
MATE Terminal). Become the root user
running su - . Write the root user password.
2- Gain access to the directory /etc/apt running cd
/etc/apt on your terminal.
3- With the help of the nano text editor we
are going to change a file called sources.list. Run nano
sources.list. Add # before any line starting with
deb cdrom. Save sources.list (press <ctrl +
o> and <enter>). Leave the nano text editor
(press <ctrl + x>).
5- Update the list of sofware packages available of you
repository server (ftp.fi.debian.org). Run apt-get
6- Install the command line package manager called aptitude.
Run apt-get install aptitude.
7- Update again the
list of sofware packages available of you repository server
(ftp.fi.debian.org). Run aptitude update.
8- Install the following
softwarre package: gcc, make, openjdk-8-jdk
and linux-headers-4.9.0-7-all-amd64. Run aptitude
install gcc make openjdk-8-jdk linux-headers-4.9.0-7-all-amd64.
9- Select Devices
--> Insert Guest Additions CD image. Now, you have
inserted a new CD and new windows appers where you can select
among several options. Select Do Nothing.
10- Run the
command: /bin/bash /media/cdrom0/VBoxLinuxAdditions.run.
11- Close the MATE Terminal. Write exit (2
12- Eject the VBOXADDITIONS_5.1.28_117968
cdrom image. Click with the right button of your mouse on the
CDROM and select Eject on the menu.
13- Reboot your system: Select System
--> Shut Down --> Restart.
14- Gain access to your Desktop. 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.