Øvelse+1+-+Getting+set+up

Exercise 1.1 Acquiring the Golden Image
>
 * Download and install the newest VMWare Player from http://www.vmware.com/products/player/.
 * Copy and unpack the Golden Image from K:\staff2stud\EIT-elektro og IKT\3. Semester\I3ISU\VMWare Golden Image\GoldenImage.zip to your local harddrive.

Exercise 1.2 Booting Kubuntu
Start VMWare Player and open the Golden Image (In VMWare Player: File ! Open, browse to the directory where you unpacked the Golden Image). Then turn on the Golden Image virtual machine (green arrow, top left-hand corner) and watch Kubuntu boot

Exercise 1.3 Login
When Kubuntu has booted you will be faced with a login screen. Here you will see that the login name has already been pretyped (stud), just login using the password stud.

**Open a terminal and write down which commands you use to:**

 * Display the full path of the current folder: //**pwd**//


 * Get a list of all les and folders in the current folder: **//ls//**

(ls -l giver dig ekstra detaljer såsom permissions, ejer, og dato for ændring osv.)


 * Change directory to the subdirectory work/: **//cd work///**

>
 * Change directory to /home/stud: **//cd /home/stud//**
 * Create a directory /home/stud/test: **//mkdir test//**

(assuming we're already in /home/stud)


 * Create a le text1 containing hello there using kate: **Done. Saved as /home/stud/work/ex1/text1**

> > > > >
 * Create a le text2 containing hello there using echo: //**echo "Hello There" > text2**//
 * Addend 1234567890 to le text1 using echo: **//echo "\n1234567890" >> text1//**
 * Dump the contents of text1 to the terminal window: **//cat text1//**
 * Copy text1 to the directory test: **//cp text1 /home/stud/test///**
 * Delete text1 and text2 in one go: //**rm text1 text2**//
 * Delete the directory /home/stud/test: //**rm -r /home/stud/test**//

Exercise 1.4.2 Program control & system poweroff

 * Get a list of the currently running processes (programs): **//ps- aux//**


 * Run program xload in the background: //**xload**//**&**


 * Now kill the program xload you just started: //**kill -9 4205**//

pid gotten from ps -aux Default signals for kill is TERM "-9" cannot be blocked

> code ls code 3. Excecuted with **./Shell**
 * Write a small shell script that lists the current directory. Remember to make you shell script executable using the program chmod.
 * 1) chmod command: **//chmod 775 Shell//** -read write execute rights for owner and group, read execute rights for others.
 * 2) Shell script:
 * 1) !/bin/bash


 * Shutdown the system (now): **sudo poweroff**

alternative: sudo shutdown now

Exercise 1.4.3 Acquiring system information


 * Display the current date and time in the terminal: **date**


 * Find the IP address of the network adapter eth0: **ifconfig eth0**


 * Print system information: **uname -a**

uname is used to print information on the system such as OS type, kernel version et cetera.


 * Print the kernel buffer: **dmesg**

Ejaculates the contents of the kernel ringbuffer to the terminal


 * List all USB devices currently attached to the system: **lsusb**


 * Determine the CPU type by looking the directory /proc: **cat /proc/cpuinfo**


 * There is a lot of system information to nd in /proc, mention at least 3 dierent les and what they tell you:


 * 1) **cat /proc/meminfo** prints info about ram (and swap)
 * 2) **cat /proc/stat** -Kernel activity since last boot
 * 3) **cat /proc/crypto -** lists all installed cryptographic ciphers used by the Linux kernel