12
FP501 Open Source Operating System 1 / 12 LAB 1 : Installing Ubuntu and managing User and Groups in Ubuntu Duration : 6 Hours Learning Outcomes By the end of this laboratory session, you should be able to: 1. To install virtualBox or VMware and Linux distro UBUNTU 11.0 3. To create 3 partition during installation (primary(root), swap and home). 4. Expose to the GNOME Desktop. 5. Use applications in GNOME Desktop. 6. To create new user and delete user using Command Line Interface (CLI) and Graphical User Interface (GUI). 7. To create new group and assign members to the group. Hardware/ Software: Computer, virtualBox or VMWare, Linux (Ubuntu) Activity 1A Activity Outcome : Install virtualBox and Linux distro Ubuntu 11.0 Step 1 : Copy 2 files : Ubuntu 11.10 and virtualBox 4.1 / VMWare Step 2 : install the virtualBox 4.1 Step 3 : Click New and (follow the <NEXT> step)

Labsheet1

Embed Size (px)

DESCRIPTION

LAB SHEET 1

Citation preview

Page 1: Labsheet1

FP501 Open Source Operating System

1 / 12

LAB 1 : Installing Ubuntu and managing User and Groups in Ubuntu

Duration : 6 Hours Learning Outcomes By the end of this laboratory session, you should be able to: 1. To install virtualBox or VMware and Linux distro UBUNTU 11.0 3. To create 3 partition during installation (primary(root), swap and home). 4. Expose to the GNOME Desktop. 5. Use applications in GNOME Desktop. 6. To create new user and delete user using Command Line Interface (CLI) and Graphical User

Interface (GUI). 7. To create new group and assign members to the group.

Hardware/ Software: Computer, virtualBox or VMWare, Linux (Ubuntu)

Activity 1A Activity Outcome : Install virtualBox and Linux distro Ubuntu 11.0 Step 1 : Copy 2 files : Ubuntu 11.10 and virtualBox 4.1 / VMWare

Step 2 : install the virtualBox 4.1

Step 3 : Click New and (follow the <NEXT> step)

Page 2: Labsheet1

FP501 Open Source Operating System

2 / 12

Step 4 : Enter the OS name Ubuntu and type as Linux and Ubuntu

Step 5 : Click on Start button to install Ubuntu on top of VirtualBox

Step 6 : In Media Source select the Ubuntu .iso file and click the Next button. When the above box appears, tick Something else, to create or resize partitions for Ubuntu and click Continue

Step 7 : After clicking Continue button, new popup window named Create a new partition display like above, click on create a new partition, and choose the / (root) for Mount point then click resize the size 4000 megabytes then click ok button.

Page 3: Labsheet1

FP501 Open Source Operating System

3 / 12

Step 8 : Next create /home partition and choose the /home at Mount point. Resize the size 2000 megabytes then click OK

Step 9 : Repeat the same step and resize the new partition size for 2000 and in use as menu, choose swap area to create swap partition. After finish, click the ‘install now’ button.

Step 10 : After finish installing Ubuntu, go to Terminal and use command lsblk to check the partition created.

Activity 1B Activity Outcome: To use Workspace Switcher Step 1 : Click in Workspaces icon as below

Step 2 : The desktop will be split into 4 part

Page 4: Labsheet1

FP501 Open Source Operating System

4 / 12

Step 3 : Click on right left desktop to return to the first switcher. Now user can switch to any workspace to access the application that already opened. Note: User can manage their working space using Workspace Switcher. For example the first workspace, user can put web browser and for the second workspace, user wanted to put word processor. We can use 4 Workspace Switchers.

Activity 1C Activity Outcome: To adjust setting in Desktop Preferences Change Appearance Step 1 : Click menu System Setting > Appearance

Step 2 : On Appearance window, user can change theme, background.

Step 3 : Explore all the applications in Appearance Window.

Page 5: Labsheet1

FP501 Open Source Operating System

5 / 12

Change Screen setting Step 4 : Click menu System Setting > Screen.

Step 5 : Explore all the ‘Turn Off after’ setting

Step 6 : Adjust the regarding these computers idle after to 1 minute and click close. Step 7 : Idle and wait for 1 minute. See the output. Change Universal Access Step 8 : Click menu System Setting > Universal Access

Step 9 : Adjust the display, Text size and notification when Caps and Num Lock used.

Step 10 : Adjust depends on you like. Explore it.

Activity 1D Activity Outcome : Change user environment Step 1 : Change your user environment from user to root Step 2 : Type command su (superuser) and root password in order to change into root environment.

Step 3 : Symbol # indicates that you’re in root environment

Page 6: Labsheet1

FP501 Open Source Operating System

6 / 12

Activity 1E Activity Outcome: Use terminal (command line interface) to create new user Step 1 : Add new user in Ubuntu by using adduser command adduser [username] Step 2 : Enter user password twice. Step 3 : Enter user information as per request (Full Name, Room Number, Work Phone, Home Phone and Other information).

Step 4 : Adding user process as per above figure

Activity 1F Activity Outcome: Use GUI (Graphical User Interface) to create new user Step 1 : Go to System settings User account

Page 7: Labsheet1

FP501 Open Source Operating System

7 / 12

Step 2 : New popup windows Users Settings appear.

Step 3 : Click on Add buttons to add new user in Create New User windows. Enter new user Name and Short Name and click OK.

Step 4 : Change User Password windows appear and enter New password and Confirmation and click OK.

Page 8: Labsheet1

FP501 Open Source Operating System

8 / 12

Step 5 : New added user listed in user setting windows.

Activity 1G Activity Outcome: Use terminal (command line interface) to delete user Step 1 : List down user in Ubuntu by using any of approach as below

Approach 1

Approach 2

Step 2 : After verify the username to be deleted, use command userdel in order to delete user

userdel –r [username] - Option –r to delete the home directory

Page 9: Labsheet1

FP501 Open Source Operating System

9 / 12

Activity 1H Activity Outcome: Use GUI (Graphical User Interface) to delete user Step 1 : In User Settings windows, click on username to be deleted and click Delete.

Step 2 : After click on Delete button, new pop-up windows appear with 3 option of deletion. Option Action

Keep files Delete user but keep all the files created by that particular user

Don’t remove Account Undo deletion of user

Delete Files Delete user and the files

Page 10: Labsheet1

FP501 Open Source Operating System

10 / 12

LAB Exercise 1: Instructions: Answer all questions. 1. Specify the minimum hardware requirements for: (2 marks)

a. Client

_______________________________________________________________________

_______________________________________________________________________

_______________________________________________________________________

b. Server

_______________________________________________________________________

_______________________________________________________________________

_______________________________________________________________________

2. Use lsblk and state the output appear in your terminal (3 marks)

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

3. List another 2 command that have same function with su command. (2 marks)

a.

b.

4. Write a command to set root password (1 marks)

a.

Question 3 and 4 will be refer to picture below

Page 11: Labsheet1

FP501 Open Source Operating System

11 / 12

5. Write the command to add groups and members as above picture (6 marks)

a.

b.

c.

d.

e.

f.

6. Assign user in group members as above picture (2 marks)

a.

b.

7. Using usermod command add the user in non_members group (2 marks)

a.

b.

8. Check user ID for members group member (farid & aina) and GID for members (2 marks)

a.

b.

c.

9. Change the UID for user name neena into UID 2000 (2 marks)

a.

10. Change the GID for group non_members GID 3000 (2 marks)

a.

Group : members

Group : non_members

Khai

Neena

Farid Aina

Page 12: Labsheet1

FP501 Open Source Operating System

12 / 12

11. List the file that involve when add new user in Ubuntu (3 marks)

a.

b.

c.

12. Capture screen the content of /etc/passwd and /etc/group file (2 marks)

(30 Marks)

Conclusion

______________________________________________________________________

______________________________________________________________________

______________________________________________________________________

______________________________________________________________________

______________________________________________________________________