Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 1 | P a g e
If this lab is an Individual assignment, you must do all coded programs on your own. You may ask others for help on the language syntax, but you must
organize and present your own logical solution to the problem. No lab is complete until the MyClass submits the signed pledge form associated with that
lab. I realize that no coded programs will be graded until I turn in the sign & pledge form associated with that program; any late penalties will continue to
compound until the pledge form is submitted.
If this lab is a team assignment, both team members may share logic as they program side by side on their own computers. Each person must type all of
his/her own code as part of the learning process. Team assignments are never to be "You do this portion and I’ll do that portion" or "You do this lab and
I’ll do the next lab".
Some of the lab assignments will have short answer questions. These short answer questions will be spot checked and graded for completion, but not
checked for accuracy. Once these labs are graded and returned, I encourage you to compare answers with another class member who has also had the
lab graded and returned.
These short answer questions will be spot checked and graded for completion, but not checked for accuracy. I encourage you to form a study group; get
together to prepare for exams. Once your homework and labs are graded and returned, I encourage you to compare answers others in your study group
who have also had the lab, or homework, graded and returned. You may not share this work outside the class; it is a violation of academic integrity to
share your work with others outside the class. It is a violation of academic integrity to receive the software engineering work completed by other
students.
I/We realize that the penalty for turning in work that is not my own, or assisting others in doing so, can range from an "F" in the class to dismissal from
Trinity University.
I/We realize that the penalty for turning in work that is not my own, or assisting others in doing so, can range from an "F" in the class to dismissal from
Trinity University. I realize that it is a violation of academic integrity to share any portion of this lab with any person (outside my 2320 team & professor)!
Print Name _________________________________________ Time Required = ______.____ Hrs.
Signature _______________________________________________________________ (pledged)
Linux Lab 1 - Ubuntu 15 Server Individual Assignment
25 Points
Configuration
Team 1:
Z1W3.cs.trinity.edu Zone 1 Static Workstation 3 ....: 131.194.33.37
Z1W4.cs.trinity.edu Zone 1 Static Workstation 4 ....: 131.194.33.38
Team 2:
Z2W3.cs.trinity.edu Zone 2 Static Workstation 3 ....: 131.194.33.69
Z2W4.cs.trinity.edu Zone 2 Static Workstation 4 ....: 131.194.33.70
Team 3:
Z3W3.cs.trinity.edu Zone 3 Static Workstation 3 ....: 131.194.33.101
Z3W4.cs.trinity.edu Zone 3 Static Workstation 4 ....: 131.194.33.102
Team 4:
Z4W3.cs.trinity.edu Zone 4 Static Workstation 3 ....: 131.194.33.133
Z4W4.cs.trinity.edu Zone 4 Static Workstation 4 ....: 131.194.33.134
Team 5:
Z5W3.cs.trinity.edu Zone 5 Static Workstation 3 ....: 131.194.33.165
Z5W4.cs.trinity.edu Zone 5 Static Workstation 4 ....: 131.194.33.166
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 2 | P a g e
Pledge
1] ______________ {Initial/Pledge} I have plugged the Ethernet cable, associated with my network workstation, into
our cisco switch.
2] ______________ {Initial/Pledge} My host name is the same as the first four characters of my DNS entry above.
3] ___________________________________________________________________ My host name is _?_
4] ______________ {Initial/Pledge} My IP is the one associated with my DNS entry above.
5] ___________________________________________________________________ My static IP address is _?_
6] ___________________________________________________________________ My subnet mask is _?_
7] ___________________________________________________________________ My gateway address is _?_
8] ______________ {Initial/Pledge} I have successfully installed Ubuntu with the static IP address associated with
my DNS entry above.
9] ______________ {Initial/Pledge} I have successfully installed the ubuntustudio GUI.
10] ______________ {Initial/Pledge} I have successfully installed the x11vnc service.
11] ______________ {Initial/Pledge} If I am using a computer in my subnet, I can use the RealVNC client to connect
to my computer by host name. [maybe Z5W3:0]
12] ______________ {Initial/Pledge} If I am using a computer outside my subnet, I can use the RealVNC client to
connect to my computer by host name. [maybe Z5W3.cs.trinity.edu:0]
13] ______________ {Initial/Pledge} If I am using a computer outside my subnet, I can use the RealVNC client to
connect to my computer by host name. [maybe 131.194.33.165:0]
14] ______________ {Initial/Pledge} After logging into one of the CS-? Systems, I have printed a page showing my
RealVNC client connection to my Ubuntu server. (similar to that below). I have stapled it to the back of this lab.
15] ______________ {Initial/Pledge} If I have created an administrative account called thicks
16] ______________ {Initial/Pledge} The password for the thicks account is the same as that for my mars
account.
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 3 | P a g e
17] ______________ {Initial/Pledge} I have done all of the following:
Base Install
1] Select English Hit Carriage Return
2] Select Install Ubuntu Server Hit Carriage Return
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 4 | P a g e
3] Select English Hit Carriage Return
4] Select United States Hit Carriage Return
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 5 | P a g e
5] Select No Hit Carriage Return
6] Select English Hit Carriage Return
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 7 | P a g e
9] Select Continue [You may or may not get this] Hit Carriage Return
10] Enter IP if requested Hit Carriage Return [See the list above]
Set Your System Up Static Each Team is to use Workstations 3 & 4 from their zone
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 8 | P a g e
11] Enter Subnet Mask if requested Hit Carriage Return
12] Enter Gateway if requested Hit Carriage Return
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 9 | P a g e
13] Enter DNS Servers if requested Hit Carriage Return
14] Enter HostName if requested Hit Carriage Return
Team 1:
Z1W3.cs.trinity.edu Zone 1 Static Workstation 3 ....: 131.194.33.37
Z1W4.cs.trinity.edu Zone 1 Static Workstation 4 ....: 131.194.33.38
Team 2:
Z2W3.cs.trinity.edu Zone 2 Static Workstation 3 ....: 131.194.33.69
Z2W4.cs.trinity.edu Zone 2 Static Workstation 4 ....: 131.194.33.70
Team 3:
Z3W3.cs.trinity.edu Zone 3 Static Workstation 3 ....: 131.194.33.101
Z3W4.cs.trinity.edu Zone 3 Static Workstation 4 ....: 131.194.33.102
Team 4:
Z4W3.cs.trinity.edu Zone 4 Static Workstation 3 ....: 131.194.33.133
Z4W4.cs.trinity.edu Zone 4 Static Workstation 4 ....: 131.194.33.134
Team 5:
Z5W3.cs.trinity.edu Zone 5 Static Workstation 3 ....: 131.194.33.165
Z5W4.cs.trinity.edu Zone 5 Static Workstation 4 ....: 131.194.33.166
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 10 | P a g e
Enter the hostname associated with your IP
15] Hit Carriage Return
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 11 | P a g e
16] Enter Your Full Name Hit Carriage Return
17] Enter Your User Name [I would like my students to use their Mars UserName ] Hit Carriage Return
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 12 | P a g e
18] Enter Your Password [I would like my students to use their Mars Password] Hit Carriage Return
19] Enter Your Password Again Hit Carriage Return
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 13 | P a g e
20] Select No Hit Carriage Return
21] Select Central [if needed] Hit Carriage Return
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 14 | P a g e
22] Select Use Entire Disk Hit Carriage Return
23] Hit Carriage Return
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 15 | P a g e
24] Select Yes Hit Carriage Return
25] Select Continue Hit Carriage Return
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 17 | P a g e
28] Select Continue Hit Carriage Return
29] Select Install Security Updates Automatically Hit Carriage Return
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 18 | P a g e
30] Select the following software Hit Carriage Return
31] Enter U & Q Hit Carriage Return
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 20 | P a g e
34] Enter Continue Hit Carriage Return
35] Will Restart Hit Carriage Return
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 21 | P a g e
Login & Do Updates
1] Log In Hit Carriage Return
2] Welcome Message note sudo.
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 22 | P a g e
3] Update existing applications
sudo apt-get update
Install the Ubuntu Studio Desktop
1] You could do this in one line, but I am going to do it in two parts. Part 1 [Each step takes 30 min plus)
sudo apt-get update && sudo apt-get install ubuntustudio-desktop ubuntustudio-audio
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 23 | P a g e
2] Enter Y Hit Carriage Return
3] Enter Y Hit Carriage Return
4] You could do this in one line, but I am going to do it in two parts. Part 1
sudo apt-get install ubuntustudio-audio-plugins ubuntustudio-graphics ubuntustudio-video
5] Reboot the system
sudo reboot
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 24 | P a g e
6] Login to the desktop.
7] Checkout the desktop
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 25 | P a g e
Update Your Software
1] Apt-get does not yet work; We will install it shortly.
2] Install it now.
3] Select OK.
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 27 | P a g e
2] Do a search for AptURL
3] Install AptURL
Download The VNC Client On Your Windows System
1] On your windows 10 system, download & Install the VNC-64 client.
Install x11vnc On Your Ubuntu Server
1] You may install it from the Software Center.
or you may install it from a terminal window [now that we have apt-get
sudo apt-get install x11vnc
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 31 | P a g e
x11vnc [cont 3]
3] Down near the bottom is what I am looking for. It directs me to try to connect to host Ubuntu-1 on port 0. Go to
your remote system and try to connect with VNC.
4] The connection should not be successful until we configure VNC.
5] We could enter a single command that would allow us to connect to our Ubuntu Server if and only if we were
logged in, but this kind of defeats the purpose of a remote desktop experience.
6] In order to empower it to work for all users – whether logged in or not – is to install the VNC as a service.
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 32 | P a g e
Install x11vnc On Your Ubuntu Server
1] If we are not going to be physically logged into the server during the connection process, we must create a
password. Run the following from the command line; this is to establish an entry password for all users. If you
have multiple users, you might not want to use your root password.
[I would like my students to use their Mars Password]
sudo x11vnc –storepasswd /etc/x11vnc.pass
2] Create the Service File Unit: [You may use gedit if you prefer a GUI.
sudo nano /lib/systemd/system/x11vnc.service
3] Add the following code:
[Unit]
Description=Start x11vnc at startup.
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat
-rfbauth /etc/x11vnc.pass -rfbport 5900 -shared
[Install]
WantedBy=multi-user.target
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 33 | P a g e
4] Once you have saved the service file, empower the system to use the service file. Enter the following on the
command line.
sudo systemctl daemon-reload
sudo systemctl enable x11vnc.service
5] Restart your system.
6] Go to a windows system on your subnet. Connect to your server
Linuxr-Lab-1.docx Dr. Tom Hicks CSCI-3342 35 | P a g e
What To Turn In
1] This lab sheet with all items completed/pledged
2] Sign, Pledge, & Record the amount of time.
3] Staple the required image printout to the back.
- - - - - - - - - - - - - No Lab Is Complete Until Both Are Complete - - - - - - - - - - - - -
1] You sign & submit the Pledge form.
a) Review the Pledge statement
b) Sign & Pledge
c) Record the amount of time you think you spent on this lab
d) Staple all pages of this lab. Fold in half length-wise (like a hot-dog). Put your name on the outside. Place it on the professor
desk before the beginning of lecture on the day it is due. The penalty for late homework will not exceed 25% off per day.
2] Place all programming code associated with this program, if any, in the Professor’s Code Drop Box
a) I do not accept programs by mail; do not submit labs via email!
- - - - - - - - - - - - - - - - - Comments - - - - - - - - - - - - - - - - -
A] Programs that do not compile are worth little, if anything.
B] If a print statement format is off, the penalties will often be less than the 25% per day late penalty; turn in the lab. You would not be
happy if you went to Best Buy and purchased a large screen TV that did everything except show the picture; you would consider it
pretty worthless. Most users consider software that does not work properly pretty useless as well. If the lab is not working correctly,
credit will be small (if any); you might be better to accept a 25% (1 day) late penalty and turn in the lab working correctly!
C] Start all programs early so that you can get in contact with the professor if you have problems.
D] If you are turning in this lab late, you may
hand it to me if I am in the office
put it in the mail box outside my office door
slide it under the outer door to our suite {if locked}
slide it under my office door. The sooner I get late labs, the sooner the late penalty meter quits clicking.
E] Backup your programs in at least three places. Put a copy on your Y drive. Put a copy on your flash drive. Put a copy on your
personal computer. Send yourself a copy in your e-mail.