This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:mshort3:start [2010/03/25 20:35] – mshort3 | user:mshort3:start [2010/04/08 19:58] (current) – mshort3 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | =====Documentation for Linux/*BSD Desktop install===== | ||
+ | |||
+ | =====Debian Install===== | ||
+ | |||
+ | <WRAP round info> | ||
+ | |||
+ | - Upon bootup hit F12 | ||
+ | - If Integrated NIC is not displayed then | ||
+ | - Reboot and hit F6 | ||
+ | - ... make it pxe something (must look into) | ||
+ | - Save and reboot | ||
+ | - Should be option 5 or 6 (Integrated NIC). Choose it | ||
+ | - The next screen will display 4 things. Choose 32-Bit (i386). | ||
+ | - This screen has some more options, the one required is Debian/i386 Netboot. | ||
+ | - Some more options but the one needed is Install Lenny/ | ||
+ | - Choose a language: | ||
+ | - Choose a country: | ||
+ | - Keymap: | ||
+ | - Host Name: | ||
+ | - Domain Name: | ||
+ | - Debian archive mirror country: | ||
+ | - Debian archive mirror hostname: | ||
+ | - Debian archive mirror directory: /debian/ | ||
+ | - HTTP proxy information: | ||
+ | - Time Zone: | ||
+ | - Partitioning method: | ||
+ | - Select disk to partition: | ||
+ | - Partitioning Scheme: | ||
+ | - Finish partitioning and write changes to disk | ||
+ | - Write the changes to the disk: Yes | ||
+ | - Root password: | ||
+ | - Verify: | ||
+ | - Name of user: Michael Short | ||
+ | - Username of account: | ||
+ | - Password for the user: god | ||
+ | - Verify: | ||
+ | - Participate in the package usage survey: No | ||
+ | - Choose software to install: | ||
+ | - Install the GRUB boot loader to the master boot record: Yes | ||
+ | |||
+ | Finally it will bear the fruit of your children through a straw stareing at you through a glassed window... Yes | ||
+ | |||
+ | How to get into terminal: | ||
+ | While on the desktop go to the top and click on Applications -> Accessories -> Terminal: ssh mshort3@lab46 | ||
+ | |||
+ | | ||
+ | |||
+ | * Dual-head Accelerated graphics with Compiz Desktop effects | ||
+ | System -> Administration -> Add/Remove Applications -> System Tools -> scroll down until you find: Compiz Fusion Icon or you can search it. | ||
+ | - Click the box so an ' | ||
+ | - After a long drawn out battle with the midget class tanks we switched to Ubuntu. | ||
+ | |||
+ | </ | ||
+ | |||
+ | =====Ubuntu Install===== | ||
+ | |||
+ | <WRAP round info> | ||
+ | |||
+ | - Upon bootup hit F12 | ||
+ | - Choose Integrated NIC should be option 5 or 6 | ||
+ | - Choose 32-bit (i368) | ||
+ | - Choose Ubuntu/i386 Netboot | ||
+ | - Install Jaunty " | ||
+ | - Language: | ||
+ | - Country: | ||
+ | - Detect keyboard layout: no | ||
+ | - Origin of keyboard: | ||
+ | - keyboard layout: | ||
+ | - Hostname: | ||
+ | - Mirror: | ||
+ | - continue | ||
+ | - continue | ||
+ | - Time Zone: Eastern | ||
+ | - Partitioning Method: | ||
+ | - In our case: SCSI1 (0,0,0) (sda) - 40GB ATA WDC WD400BB-75FJ | ||
+ | - Write changes to disk: Yes | ||
+ | - User name: Michael Short | ||
+ | - Username: | ||
+ | - User password: | ||
+ | - Verify: | ||
+ | - Encrypt home directory: no | ||
+ | - Manage upgrades: | ||
+ | - Choose software to install: Ubuntu desktop | ||
+ | - Is the system clock set to UTC: Yes | ||
+ | - Continue | ||
+ | - Log in: ender | ||
+ | - Password: god | ||
+ | |||
+ | YOUR CHILD HAS BEEN DELIVERED!!! WATCH OUT FOR THE AFTERBIRTH!!! | ||
+ | |||
+ | * In the upper right hand corner on the desktop screen there will be a small green thingy meh bob. clickz it. | ||
+ | - Then click install the driver | ||
+ | - Type in the password | ||
+ | - Close and restart the computer | ||
+ | - On the desktop in the upper right hand corner press System -> Preferences -> Display -> Yes -> x Screen 0 -> Reads with your eyes | ||
+ | - Top left of the desktop screen click Applications -> Accessories -> Terminal -> ssh mshort3@lab46 -> yes -> password | ||
+ | |||
+ | | ||
+ | |||
+ | * Dual-head Accelerated graphics with Compiz Desktop effects | ||
+ | - Right click | ||
+ | - Change Desktop Background | ||
+ | - Visual Effects Tab | ||
+ | - Extra | ||
+ | |||
+ | </ | ||
+ | |||
+ | =====Documentation for Linux VM Server install===== | ||
+ | |||
+ | <WRAP round info> | ||
+ | |||
+ | - Upon bootup hit F12 | ||
+ | - Should be option 5 or 6 (Integrated NIC). Choose it | ||
+ | - The next screen will display 4 things. Choose 32-Bit (i386). | ||
+ | - This screen has some more options, the one required is Debian/i386 Netboot. | ||
+ | - Some more options but the one needed is Install Lenny/ | ||
+ | - Choose a language: | ||
+ | - Choose a country: | ||
+ | - Keymap: | ||
+ | - Host Name: | ||
+ | - Domain Name: | ||
+ | - Debian archive mirror country: | ||
+ | - De/bian archive mirror hostname: | ||
+ | - Debian archive mirror directory: /debian/ | ||
+ | - HTTP proxy information: | ||
+ | - Time Zone: | ||
+ | - Partitioning method: | ||
+ | - Select disk to partition: | ||
+ | - Partitioning Scheme: | ||
+ | - Finish partitioning and write changes to disk | ||
+ | - Write the changes to the disk: Yes | ||
+ | - Root password: | ||
+ | - Verify: | ||
+ | - Name of user: Michael Short | ||
+ | - Username of account: | ||
+ | - Password for the user: | ||
+ | - Verify: | ||
+ | - Participate in the package usage survey: No | ||
+ | - Choose software to install: | ||
+ | - Install the GRUB boot loader to the master boot record: Yes | ||
+ | - Continue | ||
+ | - Restart computer | ||
+ | - Command: aptitude install openssh-client openssh-server | ||
+ | - Restart computer | ||
+ | |||
+ | <WRAP todo round> | ||
+ | Access remotely: Terminal → ssh root@vmserver01.student.lab -> password: bob | ||
+ | </ | ||
+ | |||
+ | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||
+ | @@@Because i like mo betta vim@@@@@@ | ||
+ | @@@Command: aptitude install vim@@@@ | ||
+ | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||
+ | |||
+ | - Command: aptitude install xen-linux-system-2.6.26-2-xen-686 and xen-tools | ||
+ | - continue: Yes | ||
+ | - command: vi / | ||
+ | - type: Loop max_loop=255 | ||
+ | |||
+ | network-script network-bridge setting in xend-config.sxp | ||
+ | |||
+ | - Command: vi etc/ | ||
+ | - Uncomment: network-script network-bridge | ||
+ | - Comment: network-script network-dummy | ||
+ | - with a '#' | ||
+ | |||
+ | ensure vif-script is vif-bridge, same file | ||
+ | |||
+ | - Command: vi / | ||
+ | - Uncomment: vif-script | ||
+ | - Uncomment: vif-bridge | ||
+ | |||
+ | configure the grub boot entry accordingly | ||
+ | |||
+ | - vi / | ||
+ | - Allow for the host to have 256MB | ||
+ | - Go to the very bottom | ||
+ | - Remove the two entries that look like this: | ||
+ | |||
+ | title | ||
+ | root (hd0,0) | ||
+ | kernel | ||
+ | initrd | ||
+ | | ||
+ | title | ||
+ | root (hd0,0) | ||
+ | kernel | ||
+ | initrd | ||
+ | |||
+ | Then to the top entry add this after kernel 2.6.26-2-xen-686: | ||
+ | |||
+ | Configure Xen-tools | ||
+ | |||
+ | - Command: vi / | ||
+ | - Make all these adjustments at: http:// | ||
+ | |||
+ | Create the following directories: | ||
+ | |||
+ | - Command: mkdir | ||
+ | - /xen | ||
+ | - /xen/images | ||
+ | - /xen/boot | ||
+ | - /xen/conf | ||
+ | - /xen/save | ||
+ | |||
+ | Then type " | ||
+ | |||
+ | </ | ||
+ | |||
+ | =====Creating Virtual Machines===== | ||
+ | |||
+ | <WRAP info round> | ||
+ | |||
+ | - Command: xen-create-image – -hostname=vm06 – -mac=00: | ||
+ | - Make a new password: bob | ||
+ | - Logfile produced at: / | ||
+ | - Command: xm create -c / | ||
+ | |||
+ | <WRAP todo round> | ||
+ | To sign on type: ssh root@vm06.student.lab -- Password: bob | ||
+ | But we used 09 -- Password: bob | ||
+ | </ | ||
+ | |||
+ | - To detach type: ctrl + ] | ||
+ | - To reattach type: xm console vm06 | ||
+ | |||
+ | Have Funs with yo new babeh | ||
+ | |||
+ | </ | ||
+ | |||
+ | =====Data and Storage===== | ||
+ | If you mess up rewrite everything by typing this in the server prompt: xen-create-image – -hostname=vm09 – -mac=00: | ||
+ | |||
+ | <WRAP info round> | ||
+ | |||
+ | RAID, an acronym for Redundant array of inexpensive disks or sometimes Redundant array of independent disks, is a technology that allows high levels of storage reliability from low-cost and less reliable PC-class disk-drive components, via the technique of arranging the devices into arrays for redundancy. | ||
+ | |||
+ | - From vmserver01 → command: xm shutdown vm09 | ||
+ | - Command: xm list (to verificate) | ||
+ | - Command: cd / | ||
+ | - Command: dd if=/ | ||
+ | - Repeat previous step 5 times while replacing disks with an incremented count up to 5 | ||
+ | - Command: vi / | ||
+ | - Copy/paste the line with ' | ||
+ | - Command: xm create -c / | ||
+ | - Command: aptitude install mdadm | ||
+ | - Continue: yes | ||
+ | |||
+ | Raid 0 (striped raid) | ||
+ | |||
+ | - Command: mdadm –create –verbose /dev/md0 –level=0 –raid-device=5 /dev/xvda3 /dev/xvda4 /dev/xvda5 /dev/xvda6 /dev/xvda7 | ||
+ | - Command: cat / | ||
+ | - Command: mkfs.ext3 -v /dev/md0 (formats md0 found from previous step) | ||
+ | - Command: mount /dev/md0 /mnt | ||
+ | | ||
+ | Raid 1 (Mirroring) | ||
+ | |||
+ | - Command: mdadm –create /dev/md0 –level=1 –raid-devices=4 –spare-devices=1 /dev/xvda3 /dev/xvda4 /dev/xvda5 /dev/xvda6 /dev/xvda7 | ||
+ | - Command: cat / | ||
+ | - Command: mkfs.ext3 -v /dev/md0 | ||
+ | - Command: mount /dev/md0 /mnt | ||
+ | |||
+ | Raid 5 (Striped set with distributed parity) | ||
+ | |||
+ | - Command: mdadm - -create - -verbose /dev/md0 - -chunk=64 - -level=5 - -raid-devices=5 /dev/xvda3 /dev/xvda4 /dev/xvda5 /dev/xvda6 /dev/xvda7 | ||
+ | - Command: mkfs.ext3 -v /dev/md0 (formats md0 found from previous step) | ||
+ | - Command: mount /dev/md0 /mnt | ||
+ | |||
+ | |||
+ | |||
+ | <WRAP todo round> | ||
+ | +++Raiding Notes+++ | ||
+ | |||
+ | To unmount: | ||
+ | * Command: umount “path” ie (and in our case): umount /dev/md0 | ||
+ | To take raid offline: | ||
+ | * Command: mdadm –stop /dev/md0 | ||
+ | To zero out drives | ||
+ | * Command: mdadm –zero -superblock /dev/xvda3 (repeat but replace the # in xvda# by incrementing from 3 to 7 | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | =====Linux Terminal Server Project====== | ||
+ | |||
+ | <WRAP info round> | ||
+ | |||
+ | <WRAP todo round> | ||
+ | @@@We had to install Ubuntu on a new machine, therefore, account info below@@@\\ | ||
+ | User Name: bob\\ | ||
+ | Pw: ginger\\ | ||
+ | User Name: root\\ | ||
+ | Pw: bob | ||
+ | </ | ||
+ | |||
+ | - Command: sudo apt-get install dhcp3-server | ||
+ | - Command: sudo vi / | ||
+ | - Command: pw: bob | ||
+ | - Change: | ||
+ | - option domain-name “Example.org”; | ||
+ | - pegasus.lan | ||
+ | - option domain-name-servers ns1.example.org, | ||
+ | - ns1.pegasus.lan | ||
+ | - ns2.pegasus.lan | ||
+ | - #option domain-name-servers ns1.example.org; | ||
+ | - ns1.pegasus.lan | ||
+ | - #option domain-name “internal.example.org”; | ||
+ | - ubuntu.pegasus.lan | ||
+ | |||
+ | - Command: sudo vi / | ||
+ | - Change: INTERFACES=”” | ||
+ | - To: | ||
+ | - Command: sudo vi / | ||
+ | - Uncomment: iface eth0 inet dhcp | ||
+ | - ADD: | ||
+ | - auto eth1 | ||
+ | - iface eth1 inet static | ||
+ | - address 10.5.5.1 (will be different for you) | ||
+ | - netmask 255.255.255.0 (will be different for you) | ||
+ | |||
+ | - Command: sudo vi / | ||
+ | - Find: #A slightly different configuration for an internal subnet. | ||
+ | - This is your subnet and netmask | ||
+ | - Reboot computer | ||
+ | - Command: ifconfig | ||
+ | - Check to see if the ip address and mask took to eth1 | ||
+ | |||
+ | * Determine which eth# will be used for the interface within the file: | ||
+ | * dhcp3-server | ||
+ | * Command: ifconfig | ||
+ | * Whichever eth# has an ip address thats the one to currently use. We used eth1. | ||
+ | |||
+ | - Command: sudo apt-get install openssh-server | ||
+ | - Command: sudo apt-get install install ltsp-server-standalone | ||
+ | - Command: sudo ltsp-build-client --mirror " | ||
+ | - In case of having to repeat the previous step | ||
+ | - Command: rm -rf / | ||
+ | - Command: vi etc/ | ||
+ | - Change the subnet, range, option routers, option domain-name, | ||
+ | - Subnet: | ||
+ | - Range: | ||
+ | - Option Domain-Name: | ||
+ | - Option Domain-Name-Server: | ||
+ | - Option Broadcast-address: | ||
+ | - Option Routers: | ||
+ | - Command: vi / | ||
+ | - Change RUN DEAMON=" | ||
+ | - To RUN DEAMON=" | ||
+ | - Command: / | ||
+ | - Get another computer | ||
+ | - Connect new computer' | ||
+ | - Turn on new computer | ||
+ | - Log on with an existing account within the server | ||
+ | |||
+ | FINISHED | ||
+ | |||
+ | <WRAP todo round> | ||
+ | @@@Notes@@@\\ | ||
+ | Sudo - super user do: makes a normal user Super User\\ | ||
+ | Command: / | ||
+ | |||
+ | - ifconfig | ||
+ | - if eth0 or eth1 is not up do this | ||
+ | - Command: sudo ifconfig eth# up | ||
+ | - Command: ifconfig | ||
+ | - to check it | ||
+ | - Need an IP address? look no further! | ||
+ | - Command: sudo dhclient eth# | ||
+ | |||
+ | - To restart | ||
+ | - Command: sudo / | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | =====Automated Drawing===== | ||
+ | ===Squares=== | ||
+ | <WRAP todo round> | ||
+ | < | ||
+ | #!/bin/bash | ||
+ | #All sleeps helps the system keep up with the script, without them this would fail :( | ||
+ | |||
+ | pkill xpaint & #process kills xpaint to make sure its not open before hand | ||
+ | |||
+ | sleep 2 | ||
+ | |||
+ | xpaint -size 1130x940 & #opens xpaint whilst resizing the CANVAS to the specified screen size | ||
+ | |||
+ | sleep 4 | ||
+ | |||
+ | windowProcessID=`xwit -print -all | grep -i xpaint | cut -d ":" | ||
+ | |||
+ | sleep 3 | ||
+ | |||
+ | xwit -id $windowProcessID -move 0 0 #Moves the xpaint toolbar respectively | ||
+ | |||
+ | sleep 4 | ||
+ | |||
+ | #Opens a new canvas | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | |||
+ | sleep 3 | ||
+ | |||
+ | wPID2=`xwit -print -all | grep -i untitled | cut -d ":" | ||
+ | |||
+ | sleep 3 | ||
+ | |||
+ | xwit -id $wPID2 -move 125 0 -resize 1150 990 #Moves and Resizes the CANVAS respectively | ||
+ | |||
+ | sleep 3 | ||
+ | |||
+ | #Draws first box | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | |||
+ | sleep 2 | ||
+ | |||
+ | #Colors first box/pencil | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | sleep 2 | ||
+ | |||
+ | #Draws inner box | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | |||
+ | sleep 2 | ||
+ | |||
+ | #Colors inner box/pencil | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | xte ' | ||
+ | exit 0 | ||
+ | </ | ||
+ | </ | ||
+ | ===Circle=== | ||
+ | <WRAP todo round> | ||
+ | < | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===Notes=== | ||
+ | <WRAP todo round> | ||
+ | to get these to work properly command: chmod +x filename | ||
+ | </ | ||
+ | |||
+ | =====Notes===== | ||
+ | |||
+ | <WRAP todo round> | ||
+ | if a VM gets taken down do this: | ||
+ | * Command: xm create -c / | ||
+ | |||
+ | Godzirra\\ | ||
+ | user name: bob\\ | ||
+ | pw: ginger\\ | ||
+ | root\\ | ||
+ | pw: bob | ||
+ | |||
+ | To sign into a VM type: ssh root@vm06.student.lab – Password: bob\\ | ||
+ | But we used 09 - Password: bob | ||
+ | |||
+ | Access remotely: Terminal → ssh root@vmserver01.student.lab → password: bob | ||
+ | </ | ||
+ | |||
+ | =====Completed Tasks===== | ||
+ | <WRAP info round> | ||
+ | - Linux/*BSD Desktop Install | ||
+ | - Base | ||
+ | - 1 Star | ||
+ | - Linux VM Server Install | ||
+ | - base | ||
+ | - 1 Star | ||
+ | - Linux Terminal Server Project | ||
+ | - Real | ||
+ | - 1 Star | ||
+ | - Creating Virtual Machines | ||
+ | - Virtual | ||
+ | - 1 Star | ||
+ | - Data and Storage | ||
+ | - virtual | ||
+ | - 2 Stars | ||
+ | - Automated Drawing (Not Finished Yet) | ||
+ | - Real | ||
+ | - 2 Stars | ||
+ | \\ | ||
+ | The breakdown: | ||
+ | * Total Projects Required: 8 | ||
+ | * Total Completed: 5 | ||
+ | * 2 projects need to be ' | ||
+ | * Completed: | ||
+ | * Real: 1 | ||
+ | * Virtual: 2 | ||
+ | * Base: 2 | ||
+ | * 1 project needs to be 3 stars | ||
+ | * Completed: 0 | ||
+ | </ | ||
+ | |||