This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:jjansen4:start [2010/01/28 19:45] – jjansen4 | user:jjansen4:start [2010/05/21 03:21] (current) – jjansen4 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Documentation for the Linux Desktop Install ===== | ||
+ | |||
+ | 1. | ||
+ | F12 | ||
+ | 2. | ||
+ | Integrated NIC | ||
+ | 3. | ||
+ | 32-bit (i368) | ||
+ | 4. | ||
+ | Ubuntu/i386 Netboot | ||
+ | 5. | ||
+ | Install Jaunty “9.04” [text] | ||
+ | |||
+ | 1. | ||
+ | language: English | ||
+ | 2. | ||
+ | Country: United States | ||
+ | 3. | ||
+ | Detect keyboard layout: no | ||
+ | 4. | ||
+ | Origin of keyboard: USA | ||
+ | 5. | ||
+ | keyboard layout: USA | ||
+ | 6. | ||
+ | Hostname: Unikorn | ||
+ | 7. | ||
+ | mirror: Go to the top and enter manually: mirror | ||
+ | 8. | ||
+ | continue | ||
+ | 9. | ||
+ | continue | ||
+ | 10. | ||
+ | Time Zone: Eastern | ||
+ | 11. | ||
+ | Partitioning Method: Guided - use entire disk | ||
+ | 12. | ||
+ | In our case: SCSI1 (0,0,0) (sda) - 40GB ATA WDC WD400BB-75FJ | ||
+ | 13. | ||
+ | write changes to disk: Yes | ||
+ | |||
+ | 1. | ||
+ | User name: God | ||
+ | 2. | ||
+ | Username: godzirra | ||
+ | 3. | ||
+ | User password: boob | ||
+ | 4. | ||
+ | Verificate | ||
+ | 5. | ||
+ | In our case: it's a weak pw and it yelled at me, but I continued anyway :) | ||
+ | 6. | ||
+ | Encrypt home directory: no | ||
+ | 7. | ||
+ | Manage upgrades: no automatic updates | ||
+ | 8. | ||
+ | Choose software to install: Ubuntu desktop | ||
+ | 9. | ||
+ | Is system clock set to UTC: Yes | ||
+ | 10. | ||
+ | Continue | ||
+ | |||
+ | 1. | ||
+ | log in: godzirra | ||
+ | 2. | ||
+ | pw: boob | ||
+ | |||
+ | |||
+ | ===== Documentation for the VM Server Install ===== | ||
+ | |||
+ | |||
+ | 1. | ||
+ | f12: boot up menu | ||
+ | 2. | ||
+ | Integrated NIC | ||
+ | 3. | ||
+ | 32 bit | ||
+ | 4. | ||
+ | Debian/i386 Netboot | ||
+ | 5. | ||
+ | lenny/ | ||
+ | 6. | ||
+ | language: English | ||
+ | 7. | ||
+ | territory: United States | ||
+ | 8. | ||
+ | key map: American English | ||
+ | 9. | ||
+ | hostname: vmserver01 | ||
+ | 10. | ||
+ | domain name: student.lab | ||
+ | 11. | ||
+ | mirror: scroll up to enter manually: mirror | ||
+ | 12. | ||
+ | continue | ||
+ | 13. | ||
+ | continue | ||
+ | 14. | ||
+ | time zone: eastern | ||
+ | 15. | ||
+ | partitioning method: use entire disk | ||
+ | 16. | ||
+ | select a hard drive | ||
+ | 17. | ||
+ | all files in one partition | ||
+ | 18. | ||
+ | finish | ||
+ | 19. | ||
+ | yes | ||
+ | 20. | ||
+ | root password: bob | ||
+ | 21. | ||
+ | verificate | ||
+ | 22. | ||
+ | full name of user: RHINO | ||
+ | 23. | ||
+ | user name: rhino | ||
+ | 24. | ||
+ | user password: bob | ||
+ | 25. | ||
+ | verificate | ||
+ | 26. | ||
+ | participate in survey: no | ||
+ | 27. | ||
+ | software to install: none (uncheck everything) | ||
+ | 28. | ||
+ | Install GRUB boot loader: yes | ||
+ | 29. | ||
+ | continue | ||
+ | 30. | ||
+ | restart computer (automatic) | ||
+ | 31. | ||
+ | log in: root pw: bob | ||
+ | 32. | ||
+ | command: cd /etc/apt | ||
+ | 33. | ||
+ | command: wget http:// | ||
+ | 34. | ||
+ | command: aptitude update | ||
+ | 35. | ||
+ | command: aptitude upgrade (not required but a good habit to do after updating) | ||
+ | 36. | ||
+ | command: aptitude install openssh-client openssh-server | ||
+ | 37. | ||
+ | access remotely | ||
+ | |||
+ | |||
+ | To access remotely: Terminal → ssh root@vmserver01.student.lab → pw: bob | ||
+ | 1. | ||
+ | aptitude install xen-linux-system-2.6.26-2-xen-686 and xen-tools | ||
+ | 2. | ||
+ | continue: y | ||
+ | 3. | ||
+ | command: vi/ | ||
+ | |||
+ | * | ||
+ | max_loop=255 | ||
+ | |||
+ | network-script network-bridge setting in xend-config.sxp | ||
+ | |||
+ | 1. | ||
+ | command: cd /etc/xen | ||
+ | 2. | ||
+ | command: vi xend-config.sxp (uncomment: (network-script network-bridge) comment: (network-script network-dummy) (# = comment) | ||
+ | |||
+ | ensure vif-script is vif-bridge, same file | ||
+ | |||
+ | 1. | ||
+ | command: cd /etc/xen | ||
+ | 2. | ||
+ | command: vi xend-config.sxp (search for vif-script and make sure it is uncommented and accompanied with vif-bridge) | ||
+ | |||
+ | configure the grub boot entry accordingly (allow for the host to have 256MB) | ||
+ | |||
+ | 1. | ||
+ | command: cd /boot/grub | ||
+ | 2. | ||
+ | command: vi menu.lst | ||
+ | 3. | ||
+ | Go to the bottom and remove the second and third entries (in our case). | ||
+ | 4. | ||
+ | Go to: | ||
+ | |||
+ | * | ||
+ | title Xen 3.2-1-i386 / Debian GNU/Linux, kernel 2.6.26-2-xen-686 | ||
+ | * | ||
+ | root (hd0,0) | ||
+ | * | ||
+ | kernel / | ||
+ | * | ||
+ | module / | ||
+ | * | ||
+ | module / | ||
+ | |||
+ | And where it says: | ||
+ | |||
+ | * | ||
+ | kernel / | ||
+ | |||
+ | Add at the end of line: dom0_mem=262144 For this to take affect, reboot. | ||
+ | |||
+ | configure Xen-tools (/ | ||
+ | |||
+ | 1. | ||
+ | command: cd / | ||
+ | 2. | ||
+ | vi xen-tools.conf | ||
+ | |||
+ | * | ||
+ | Make the adjustments specified at: http:// | ||
+ | |||
+ | Create the following directories: | ||
+ | |||
+ | 1. | ||
+ | command: mkdir and the paths specified above | ||
+ | |||
+ | command: reboot | ||
+ | |||
+ | ==== documentation for creating a vm ==== | ||
+ | |||
+ | 1. | ||
+ | network-script network-bridge setting in xend-config.sxp (uncommented in vm server install; make sure there is no space before that line) | ||
+ | 2. | ||
+ | xen-create-image –hostname=vm07 - -mac=00: | ||
+ | |||
+ | * | ||
+ | log file created: / | ||
+ | |||
+ | 1. | ||
+ | Enter new password: bob | ||
+ | 2. | ||
+ | verificate | ||
+ | 3. | ||
+ | xm create -c / | ||
+ | 4. | ||
+ | login: root | ||
+ | 5. | ||
+ | password: bob | ||
+ | |||
+ | * | ||
+ | detach: ^] (ctrl closing square bracket) | ||
+ | * | ||
+ | reattach command: xm console vm07 (hit enter again) | ||
+ | * | ||
+ | command: xm list (lists virtual machines; run from vmserver01) | ||
+ | * | ||
+ | command: xm shutdown vm# (run from vmserver01) | ||
+ | |||
+ | |||
+ | ==== data and storage the right way ==== | ||
+ | |||
+ | 1. | ||
+ | from vmserver01 → command: xm shutdown vm09 | ||
+ | 2. | ||
+ | xm list to verificate | ||
+ | 3. | ||
+ | command: cd / | ||
+ | 4. | ||
+ | command: dd if=/ | ||
+ | 5. | ||
+ | repeat previous step 5 times BUT replacing disk with an incremented count up to 5 | ||
+ | 6. | ||
+ | mkfs.ext3 -v disk1.img (formats disk) | ||
+ | 7. | ||
+ | proceed (for previous step) | ||
+ | 8. | ||
+ | cd /xen/conf | ||
+ | 9. | ||
+ | vi vm09.cfg | ||
+ | 10. | ||
+ | copy/paste the line with ' | ||
+ | 11. | ||
+ | xm create -c / | ||
+ | 12. | ||
+ | aptitude search mdadm | ||
+ | 13. | ||
+ | aptitude install mdadm (if discovered via the search from the previous step, this one can be skipped) | ||
+ | 14. | ||
+ | yes (for previous step) | ||
+ | |||
+ | * | ||
+ | RAID (redundant array of inexpensive disks) information: | ||
+ | * | ||
+ | mdadm commands for raiding: http:// | ||
+ | |||
+ | Raid 0 (striped raid) | ||
+ | |||
+ | 1. | ||
+ | mdadm - -create - -verbose /dev/md0 - -level=0 - -raid-device=5 /dev/xvda3 /dev/xvda4 /dev/xvda5 /dev/xvda6 /dev/xvda7 | ||
+ | 2. | ||
+ | cat / | ||
+ | 3. | ||
+ | mkfs.ext3 -v /dev/md0 (formats md0 found from previous step) | ||
+ | 4. | ||
+ | command: mount /dev/md0 /mnt | ||
+ | |||
+ | * | ||
+ | for details: | ||
+ | o | ||
+ | command: df or df -h or mdadm - -detail /dev/md0 | ||
+ | |||
+ | Raid 1 (mirroring) | ||
+ | |||
+ | 1. | ||
+ | mdadm - -create /dev/md0 - -level=1 - -raid-devices=4 - -spare-devices=1 /dev/xvda3 /dev/xvda4 /dev/xvda5 /dev/xvda6 /dev/xvda7 | ||
+ | 2. | ||
+ | cat / | ||
+ | 3. | ||
+ | mkfs.ext3 -v /dev/md0 | ||
+ | 4. | ||
+ | mount /dev/md0 /mnt | ||
+ | |||
+ | Raid 5 | ||
+ | |||
+ | 1. | ||
+ | mdadm - -create - -verbose /dev/md0 - -chunk=64 - -level=5 - -raid-devices=5 /dev/xvda3 /dev/xvda4 /dev/xvda5 /dev/xvda6 /dev/xvda7 | ||
+ | 2. | ||
+ | mkfs.ext3 -v /dev/md0 (formats md0 found from previous step) | ||
+ | 3. | ||
+ | command: mount /dev/md0 /mnt | ||
+ | |||
+ | ==== autodrawing for fashon and awesomenessification ==== | ||
+ | |||
+ | because i am a great i know this is how you bring up x-paint and resizes and moves everything to its proper place | ||
+ | |||
+ | #!/bin/bash | ||
+ | |||
+ | #screen awareness | ||
+ | maxX=`xwininfo -root | grep Width | cut -d" " -f4` | ||
+ | maxY=`xwininfo -root | grep Height | cut -d" " -f4` | ||
+ | |||
+ | pkill xpaint | ||
+ | sleep 2 | ||
+ | |||
+ | let x=$maxX-135 #124 is the width of the xpaint tool panel | ||
+ | |||
+ | xpaint -size " | ||
+ | sleep 3 | ||
+ | |||
+ | winId=`xwit -print -all | grep -i xpaint | cut -d":" | ||
+ | toolBoxSize=`xwininfo -id $winId | grep Width | cut -d" " -f4` #This will get the width of the toolbox for xpaint | ||
+ | let canvasSize=$maxX-$toolBoxSize | ||
+ | sleep 3 | ||
+ | |||
+ | xwit -id $winId -move 0 0 | ||
+ | sleep 4 | ||
+ | |||
+ | #open new canvas | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | sleep 3 | ||
+ | |||