=====Linux Desktop Install===== -Setup Boot sequence for legacy hardware of ethernet interface, Restarted Computer -Setup Boot sequence for ethernet as first boot device, Restarted Computer -After Restart, I was prompted with what type of system i was running, i chose 32 bit -Next I was prompted with which package of linux to install, Chose Debian -Next I was prompted with which version to install, i selected Lenny/stable [gui] -Asked to test video mode, or continue with spacebar, chose continue -Asked what language, i chose english -Asked what country, Chose United States -Asked what keymap to use, chose American English -Several screens appeared, eventually i was aksed to create a hostname, i made mine TIM-COLLINS-DEBIAN -The domain name is asked next, already inputted was the domain i was in(offbyone.lan) -List of countires for mirror appeared, i procedded all the way to the top and entered manually -Asked hostname of mirror, i typed in mirror -Asked what mirror directory, it was already filled with /debian/ so hit enter -Asked if i needed a proxy(i did not, so hit enter to continue, leaving the field blank) -The install procedded to downloaded the neccissary files -Asked what time zone, i chose Eastern -Asked what partitioning method to use, i chose Guided - use entire disk -Asked what disk partition to use, chose IDE1 master(hda) -Asked which scheme of partitioning to use(chose all files ion one partition) -Showed me the current partition setup, chose "Finish partitioning and write changes to disk" -Asked to write changes to disk, chose Yes -Began installation -Asked for root password, I set mine to root -Asked to verify password, re-enterd root -Asked for Full name for new user, I set mine to Tim Collins -Asked for username(mine already set to tim, so i hit enter) -Asked for password of new user(i set mine to tim for now) -asked to verify password(re-enter tim) -Begins installing -During installation i was propted if i could allow the installation information to be collected for statistics, i chose yes -During installation i was asked what software i wanted to install, i chose Desktop environment(already selected), Standard system(Already Selected), hit enter -Installation of grub -Grub prompts if it should be install as master boot, i chose yes -Prompts that it needs to restart -removed ethernet cord -hit enter -devian started up =====Debian VM Server Install===== - Hit F12 for the boot menu when the system starts - Go to the BIOS setup and change the option for the network controller to On w/ PXE and reboot - Hit F12 and boot from the integrated NIC - Choose 32-Bit Debian Lenny, text install - Choose the language for the install - Choose United States with American English keymap - Keep the hostname and domain name the same - Choose manual entry of information for mirror country and enter mirror - Keep the package directory and proxy information the same - Choose eastern time for the time zone - Choose guided partition, use entire disk - Choose the only hard drive - Set the partitioning to put all files in one partition - Finish partitioning and write changes to disks - Set root password - Set the username and password for the user - Select not to participate in package usage survey - Uncheck all package information in the choosing functions section and reboot once complete - Delete /etc/apt/sources.list and then wget it from http://10.80.2.6/files/student/sources.list - Perform aptitude update and aptitude upgrade - Change the contents of /etc/modules to be 'loop max_loop=255' - Perform aptitude install xen-linux-system-2.6.26-2-xen-686 xen-tools - Confirm vif-script and vif-bridge is set and set network-bridge and network-script in /etc/xen/xend-config.sxp, ensure no spaces at start of line - Add 'dom0_mem=262144' to the end of the kernel option in the first section of the grub menu in /boot/grub/menu.lst - Delete the two entries directly below the first kernel section - Change the contents of /etc/xen-tools/xen-tools.conf to be the same as the blocked text on the project page [[http://lab46.corning-cc.edu/haas/hpc0/projects/vm_server_install]] - Create the directories /xen, /xen/images, /xen/boot, /xen/conf, and /xen/save and reboot - install openssh-server openssh-client at command line =====Create Virtual Maching===== - Log into the virtual server - Create a virtual machine through the following command line: xen-create-image --hostname=vm## --mac=00:16:3E:2E:C0:## --role=udev - ## = number in hex(i.e: '01' = 1, '0A' = 10, '20' = 32) - after it is done creating the vm server you are prompted to give root a password - after that is done type: xm create -c ../conf/vm##.cfg - login into the virtual machine - cd into /etc/apt - remove the file sources.list - wget 10.80.2.6/files/student/sources.list - type: aptitude update - type: aptitude upgrade - Now enjoy =====Setting up a Network File System(NFS)===== ====Setting up the server==== - Log into the virtual machine that well server as root - type aptitude intstall nfs-kernel-server - reboot the vm, (reboot command) - Log into the virtual machine again - edit the file /etc/exports - add line: /var/ftp 10.80.3.0/24(rw) (folder to share, network and/or host, (options)) - type exportfs ====Setting up the client==== - Log into the virtual machine that well be client as root - type aptitude install nfs-common - reboot the vm, (reboot command) - Log into the virtual machine again - mount 10.80.3.1:/var/ftp /mnt (Host:Dir MntDir) ====Setting up autofs(Auto file mounting)==== - Setup client and server first - aptitude install autofs - vi /etc/auto.master (assuming server is setup to share home dir, and all subdir's) - put: /home /etc/auto.home - save and exit - vm /etc/auto.home - put: * serverIP/Hostname:/home (* means to mount same path's local i.e: /home on server, becomes /home locally - run: /etc/init.d/autofs restart - cd into /home =-)