Today we had our first C Lab and I got to experience the amazing welcome that Matt gives to the new students.
<charter> title = Scrubbed Traffic size = 700×230 align = center type = bar legendEntries = Scrubber XAxisName = Hour XAxisFormat = Time YAxisName = Traffic Mbps shadow = on dots = 3 palette = tropical titleColor = #efefef scaleColor = #efefef shadowColor = #000 bggradient = #333@50 graphGradient = #666@50 fontLegend = VeraMono.ttf@8 graphLabels = 1|5|6Gbps DDoS
0,0,0,1,0,6,0,0,0,0,0,0 </charter>
This is a sample format for a dated entry. Please substitute the actual date for “Month Day, Year”, and duplicate the level 4 heading to make additional entries.
As an aid, feel free to use the following questions to help you generate content for your entries:
Can you answer the following questions?:
Does this code have any preprocessor directives? What line(s)? What does the preprocessor directive do? What line(s) encompass the main() function? Are there any: function prototypes? local variable declarations? initializations taking place? statements performing some process (the “processing”)? de-initialization / wrapping things up steps? What does each keyword, function, or equation do? (hint, there are no equations in this program). What is that printf(), a keyword or a function? What is that return(), a keyword or a function?
This is a sample format for a dated entry. Please substitute the actual date for “Month Day, Year”, and duplicate the level 4 heading to make additional entries.
As an aid, feel free to use the following questions to help you generate content for your entries:
First, clone your repository.
hg clone https://yourusername@bitbucket.org/yourusername/cscs1320s14
cd into your repository directory that it just made
cd cscs1320s14
Next, cd into the .hg directory directory
The .hg directory is hidden because it begins with a . run ls -a to see it
cd .hg
Now, edit the hgrc file
nano hgrc
The paths should already be there, add the following info, replacing the correct variables
[paths] default = https://yourusername@bitbucket.org/yourusername/cscs1320s14 [auth] bb.prefix = https://bitbucket.org/yourusername/ bb.username = yourusername [ui] username = Firstname Lastname <mybitbucketemailaddress@whatever.com> verbose = True
save the the file and go back to the repo directory
cd ..
add your files you wish to push, type
hg add
this adds them to the repo, and then you can use
hg commit -m "Your commit message"
then
hg push
to push it to Bitbucket
Today we got comfortable in the LAIR and set up our computers that we will run virtual machines on.
Today we set up Xen and installed our VMs
From a base Debian Wheezy system
# apt-get install xen-linux-system
Now we need to change the kernel boot order so that the Xen kernel is chosen automatically
# dpkg-divert --divert /etc/grub.d/08_linux_xen --rename /etc/grub.d/20_linux_xen
Now we need to update Grub
# update-grub
We'll have to configure the networking on the host to support the VMs, so let's edit our /etc/network/interfaces file
# nano /etc/network/interfaces
Replace this file with the following configuration. (May need to be modified for non-LAIR machines)
#The loopback network interface auto lo iface lo inet loopback iface eth0 inet manual auto xenbr0 iface xenbr0 inet dhcp bridge_ports eth0 #other possibly useful options in a virtualized environment #bridge_stp off # disable Spanning Tree Protocol #bridge_waitport 0 # no delay before a port becomes available #bridge_fd 0 # no forwarding delay
Now we need to install the Xen configuration tools
# apt-get install xen-tools
Now we need to change a few Xen tools settings
Open up the Xen tools config file
# nano /etc/xen-tools/xen-tools.conf
Read through this file and edit as needed. In my case, I uncommented or edited the following lines.
dir = /home/xen install-method = debootstrap memory = 256Mb # Memory size dhcp = 1 passwd = 1 mirror_wheezy = http://mirror/debian #(this is my local mirror)
Now we are ready to create our first VM
# xen-create-image --hostname myfirstvm --vcpus 1 --pygrub
It should ask you to set a root password for the VM during this process
After this has finished, we can start it up and view the boot process with
# xm create -c /etc/xen/myfirstvm.cfg
You should now see the boot process and end up at the login prompt Login with root and the password you set during the create process, and get the IP of your VM
ifconfig
Now logout and disconnect from this console with Ctrl + ]
and SSH into your new VM
You can view the currently running VMs by using
xm list
This is a sample format for a dated entry. Please substitute the actual date for “Month Day, Year”, and duplicate the level 4 heading to make additional entries.
As an aid, feel free to use the following questions to help you generate content for your entries: