Sie sind auf Seite 1von 6

1.

Setup a VM machine by using TinyNet-gcc image file


2. Uses cowsay, figlet and toilet package in the VM file.
3. Demonstrate on this VM using scripts and ideas getting from the link provided
in the question.

8.2 Configuration
Before we start, there is some tools need to be downloaded for later use. For example,
cowsay, figlet 2.2.5 and toilet 0.3 are needed to download.

8.2.1 Cowsay

8.2.2 Figlet 2.2.5

8.2.3 Toilet 0.3


8.2.4 Libcaca

Next, the Virtual machine is setting up with the “TinyNet-gcc.iso” file.

After that, put all the downloaded file into a USB so that we could copy it from USB
into SLAX. Go to VM’s setting, at the option USB user are able to use attach an USB.
In this case, I use my USB “Kingston DataTraveller 2.0”.
After login into the system with the root account, go to directory /mnt/sda1. User
might able to see the file downloaded before shown in the directory. This means that
the VM has successfully read the file from USB.

Then, we copy all 4 files into SLAX system to the directory /mnt/hda1/slax/modules
so that the package could be used every time the VM operate.

Last, kindly ensure that those file copied is inside the directory
Step require for installation of the 4 files:

1. ”mnt/sda1” – go to the folder where the file in USB assist


2. “lzm2dir cowsay-3.03.Izm/” – install cowsay package
3. “tar xvfz figlet-2.2.5.tar.gz” – this is to extract figlet-2.2.5.tar.gz
4. “cd figlet-2.2.5” – This one will go to the extracted folder of figlet2.2.5
5. “/configure; make; make install” – this command compile the package of
figlet2.2.5
6. “tar xvfz libcaca-0.99.beta19.tar.gz” – used for extract tar.gz of libcaca
7. “cd libcaca-0.99.beta19.tar.gz” – used to go to the extracted folder of libcaca
8. “/configure; make; make install” – This one use to compile the packages of
libcaca
9. “tar xvfz toilet-0.3.tar.gz” – extract tar.gz of toilet
10. “cd toilet-0.3” – go to the extracted folder of toilet
11. “/configure; make; make install” – use this command for compilation of toilet
package
12. “reboot” – reboot the system to makes those changes to system

8.3 Demonstration of cowsay, figlet and toilet


Login page
1. To use cowsay, type in Command= “cowsay –f dragon-and-cow Hello! Yung
Peng here”

2. To use figlet, type in Command = “figlet –f slant LYCHEEPIE ”

3. To use toilet, type in Command = “toilet –F gay –F border LycheePie ”


4. To use toilet, type in Command = toilet –metal ”Super Mario “

8.4 Obstacles and Solutions


While extract and install toilet-0.3, there is an error message keep on prompt
out while we want to install it. It is telling user that system require Libcaca package to
continue the installation of toilet. Libcaca was not a material mention in the Question
8 as a requirement material to solve the question. Hence a little more research about
the uses of Libcaca has been done. Besides that, while doing installation of figlet
2.2.2, we found that an error encounter by notifying user about that the front file is
unable to open. To solve this problem, I download another version of figlet which is
figlet2.2.5 from its official website and try to run it. Hopefully, the problem was
solved.

Das könnte Ihnen auch gefallen