User Tools

Site Tools


notes:hpc0:kdenson_projects:backup

Project 1 - Linux Install / Linux VM Server Install

Steps to fresh Linux install.

  1. Insert Disk.
  2. Select Install.
  3. Follow the seven walk-through steps that are promted too you.
  4. When install is complete remove disk and restart the machine.
  5. Follow steps to set up computer name, ect…
  6. Enable networking.
  7. Install updates.
  8. ?????
  9. Profit!

I did not have to install any extra packages outside of updates, no troubles in need of shooting arose and no files were in need of editing.

To set up remote desktop do the following..

  1. (On your Ubuntu machine) System > Remote Dekstop > General tab; enable “allow other users to view your desktop”, enable “allow other users to control your desktop. Set password if desired.
  2. Install vinagre on second machine.(update the intltool file!)
  3. Input IP of the machine acting as the server and hit connect.
  4. You should be remotely viewing the desktop at this point!

Project 3 - Video Wall!

Steps to set up a video wall

  1. Install the same operating system on both machenes. Setup intstallation, setting names, passwords, ect.

The following line where done to both systems

  1. Update. * ' aptitude update '
  2. ' aptitude upgrade '
  3. Install video driver. We used; wget http://10.80.2.6/files/student/nvidia173.run (because we already had this on the lab server)
    • chmod 777 nvidia173.run ; to compile the driver
    • ./nvidia173.run ; to install the driver. We ran into some problems here. To get around them we used 'aptitude install build-essential' and aptitude install linux-sorce-2.6.31 to bring the system up to date.
    • Using the dpkg -l | grep nvidia we found all the nvidia files we needed too, and installed all files that showed up with aptitude install

The following line was done to vidwall and scp to vidwall2

  • In the xorg.config file we needed to edit Nvidia to nvidia, and uncomment NoLogo and TwinView lines.

' scp /etc/X11/xorg.conf 10.80.2.194 '

           
- Next we needed to install Fluxbox to have a window manager; ' **aptitude install fluxbox** ' on both systems
           * To set the screens to either act verticly or horizantly under the /etc/X11 directory we needed to edit the xorg.conf file on both systems. Under the "device" section we need to add   **Option "MetaModes"      "1280x1024 +0+0, 1802x1024 +0+0"** 
           * 
- Use **xhost +** to enable network communitcations on both machines.
- Use export** DISPLAY=10.80.2.194;0** to set the monitors of the second machine to display what is on the first machine.
- Installing Xdmx by using **aptitude install xdmx**, on both machenes. (Make sure both machenes are set to the same resolution)
- At this point we where able to launch the fluxbox desktop on both systems.
- Then we created a confiuration file that looked like this. 
              startx -- /usr/bin/X11/Xdmx:1 -display 10.80.2.199:0 -display 10.80.2.194:0 -ignorebadfontpaths + xinerana
        
- Patch Xdmx. We retrived the new patches from [[https://launchpad.net/ubuntu/karmic/+source/xorg-server/2:1.6.4-2ubuntu4.2]] (xorg-server_164.org.tar.gz and xorg-server_1.6.4-2ubuntu.4.2.diff)
- To patch files and output any errors to an error file, patch -p1 <xorg-server_1.6.4 2>err 
- All of those patched files should be in the /home/vidwall/xorg-server-1.6.4 directory
           * config, glx, debian, hw, doc, xkb (all of these should be in the zorg-server-1.6.4 directory)
- To compile these dpkg-buildpackage -rfakeroot -us -uc
           * Remove old files by aptitude remove xdmx (should remove both xdmx and xdmx-tools
           * To install new, dpkg -i packagename

At this point we should have had a working system, but we did not. This is what else we tried.

  • We tried to download and install “dmxpict.patch” from the notes page of this wiki, under systems and networking.
    • in xorg-server-1.6.4/hw/dmx/dmxpict.c edit the file
    • between the line “FIX ME: Handle savng clip region ~” and “DMX_WRAP(Change Picture ~)”
    • XRectanle aRect;
    • aRect.x = 0; aRect.y = 0;
    • Arect.width = 9999 ;
    • ARect.height = 9999;
    • XRenderSetPictureClipRectangles(dmxScreen→beDisplay, pPictPriv→pict,0,0, &aRect,1);
  • When trying to fix the bad fonts issue we…
    • cd /usr/share/fonts/X11
    • cp fontname fixed.pcf.gz (we chose something that seemed like a 'normal' font name)

NOTE: Because this did not satisfy me I rebuilt the systems using debian Lenny and this process. Once I got this done and tried to bring up the wall I keep having a problem with the mouse. I then googled the problem. The resolution to the problem ended up being to load Xdmx from debian etch. This worked and I was able to bring up the vidoe wall.

Project 3 - VM Server Install

First step of this project is to do a fresh install of the physical VM server.

  1. F12 → System Setup → Integrated Devices → Integrated NIC. Restart.
  2. 32-bit(i386)→ Debian/i386 Netboot.install Lenny Stable[text]
  3. Setup → Enter mirror manually → mirror → /debian/
  4. Setup install → install nothing → install grub boot loader
  5. Reboot and change the boot prioirty back to normal.

* While running as root run the following….

  1. userdel -r vm02
  2. cd/etc/apt
  3. rm sources.list
  4. aptitude updaate
  5. aptitude upgrade

* Next…

  1. Aptitude install openssh-client open ssh-server
  2. aptitude install xen-linux-system-2.26.26-2-xen-686
  3. aptitude install xen-tools

* Next…

  1. cd /etc/xen
  2. vi xend-config.sxp
    1. Find the line (network-script network-bridge) and remove the # to uncomment this line.
    2. Find the line (network-script network-dummy) and add a # to commentout this line.
    3. Make sure that (vif-script vif-bridge)
    4. To quickly find these lines rather than scrolling through hit enter while not in insert mode and use a forward slash(/) and type in what you want to match.

* Next…

  1. vi /etc/modules
  2. Set loop maxloop = 255

* Next…

  1. cd /boot/grub
  2. vi menu.lst~
  3. Scroll down untill you find 4 lines pertaining to xen that do not have a .gz attached to them; remove those lines.
  4. Do this for the 3rd and 4th group of quad lines as well.
  5. After you've removed those 3 groups of 4 lines. There should be one remaining, on the line speficied as Kernal change it to match..
    • kernel /boot/xen-3.2-1-i386.gz dom0_mem=262144

* Next…

  1. cd /etc/xen-tools
  2. vi xen-tools.conf
  3. Search for the line #dir = /home/xen
  4. Remove the # and /home from the line. It should look like dir = /xen
  5. Uncomment install-method = debootstrap
  6. Down a little further find the “Disk and Sizing options” section and change the following…
  • size = 2Gb
  • dist = lenny
  1. Down further find the line that says dhcp = 1, and uncomment.
  2. Going further, the line passwd = 1, uncomment.
  3. serial_device = hvc0 #default, uncomment at the beginning of the line, leave the #default alone.
  4. A couple lines down, disk_device = xvda #default, uncomment, leave #default the same.
  5. At the bottom of the file uncomment and change the output line to match
  • output = /xen/conf
  1. And the same for the extention line, it should read as..
  • extension = .cfg

* Next

  1. cd /
  2. mkdir /xen
  3. mkdir /xen/images
  4. mkdir /xen/conf
  5. mkdir /xen/save
    • These can all be done at the same time, like…
    • mkdir /xen /xen/images /xen/conf /xen/save

At this point you should reboot, and see your final product up and running!

Project 4 - Setting up a Virtual Machine

To do this, you must first have set up the Virtual Machine Server, a how-to on this can be found here…

You must also claim a VM number for yourself, here (Under the VM server users list.)…

After you have claimed your territory follow this walkthrough and enjoy your new VM!

Project 5 - RAID Arrays

RAID stands for Redudant Array of Inexpensive Disks, it can be incredibly useful for backing up your data, increaseing your disk speed and size, or both!

There are different types of RAID arrays, for more information consult this wiki

There are more types of raid than these, but these are the different types I used.

  • RAID0 - Two or more disks with stripped data.
  • RAID1 - Two or more disks with mirrored data.
  • RAID5 - Three or more disks with parity.
  • RAID6 - Four or more disks with parity.
  • RAID10 - Four or more disks mirrored then stripped.
  • RAID01 - Four or more disks stripped then mirrored.
  1. To setup your virtual disks on your VM, you'll need to be on your VM server (the VM server I used was named vmserver02).
    1. CD into /xen/conf and open up you're virtual machines .cfg file (my VM was named vm11)
    2. In your .cfg file you'll want to add disks. To do this; Under the “disk devices” section add..
      • 'file:/xen/domains/vm11/disk_1.img,xvda3,w',
      • 'file:/xen/domains/vm11/disk_2.img,xvda4,w',
      • 'file:/xen/domains/vm11/disk_3.img,xvda5,w',
      • 'file:/xen/domains/vm11/disk_4.img,xvda6,w',
      • 'file:/xen/domains/vm11/disk_5.img,xvda7,w',
      • 'file:/xen/domains/vm11/disk_6.img,xvda8,w',
      • 'file:/xen/domains/vm11/disk_7.img,xvda9,w',
      • 'file:/xen/domains/vm11/disk_8.img,xvda10,w',
  1. While still on your server..
    1. cd /xen/domains/vm11
      • dd if=/dev/zero of=disk_1.img bs=1M count=1024
      • Do this for all disks, 1 through 8.
      • dd is the data dump command, which will dump the data from the input file (if=/dev/zero) to the output file (of=disk_x.img). The /dev/zero file is a file full of infinate zeros.
      • bs=1M is bit size equals 1 megabyte count=1024, do it 1024 times.
  1. At this point you'll need to install mdadm, mdadm will configure and allow the RAID array to functnuh.
  2. Next, run the following
    • modprobe raid0
    • modprobe raid1
    • modprobe raid5
    • modprobe raid6
    • modprobe raid01
    • modprobe raid10
  3. Modprobing all the raid types will allow the system to reconize what raids you are going to run.

-To create the virtual raid do the following..

Raid0
  • mdadm –create /dev/md0 –level=0 –raid-disks=2 /dev/xvda3 /dev/xvda4
  • This uses mdadm to create a new raid. It will uses disks 1 and 2 (xvda3 and xvda4) and set it to level 0.
Raid1
  • mdadm –create /dev/md0 –level=1 –raid-disks=2 /dev/xvda3 /dev/xvda4
  • This will do the same thing as raid0, only setting up a raid1 instead of a raid0, obvisouly.
Raid5
  • mdadm –create /dev/md0 –leve=5 –raid-disks=3 /dev/xvda3 /dev/xvda4 /dev/xvda5
  • Like raid0 and raid1 this will set up a raid 5, only it uses three disks instead of two, too account for parity.
Raid6
  • mdadm –crate /dev/md0 –level=6 –raid-disks=4 /dev/xvda3 /dev/xvda4 /dev/xvda5 /dev/xvda6
  • Again, like the previous raids this will set up raid6 using 4 disks.
Raid01
  • For raid 10, we have to do a little bit more, but really, we're only using the same thing we've all ready done.
    1. mdadm –create /dev/md0 –level=0 –raid-disk=2 /dev/xvda3 /dev/xvda4
    2. mdadm –create /dev/md1 –leve=0 –raid-disk=2 /dev/xvda5/xvda6
  • Here, we are creating 2 raid0 arrays, that we will then use together, as one, in our raid01
    1. mdadm –create /dev/md2 –level=1 –raid-disks=2 /dev/md0 /dev/md1
  • You can see that rather than using the virtual disks, we use the two lower level raid's we set up, to act as the disks in the higher level raid.
  • mkfs.ext3 /dev/md0
  • mount /dev/md0 /mnt
notes/hpc0/kdenson_projects/backup.txt · Last modified: 2010/05/11 17:21 by kdenson