This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
faq:hpc [2010/05/20 22:23] – mgough | faq:hpc [2010/05/22 03:04] (current) – ryoung12 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | < | ||
+ | <script language=" | ||
+ | document.title = " | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | ======High Performance Computing FAQs====== | ||
+ | < | ||
+ | ??? What is a FAQ? | ||
+ | !!! A list of Frequently asked questions and answers to them. | ||
+ | =? | ||
+ | |||
+ | ==What If== | ||
+ | * A VM gets taken down? | ||
+ | * Command: xm create -c / | ||
+ | * Example sign in | ||
+ | |||
+ | Godzirra | ||
+ | user name: bob | ||
+ | pw: ginger | ||
+ | root | ||
+ | pw: bob | ||
+ | ~Michael Short | ||
+ | |||
+ | ==How to== | ||
+ | * Sign into a VM? | ||
+ | * Open a lab46 terminal | ||
+ | * Command: ssh root@NameofVM.student.lab | ||
+ | * Password: bob | ||
+ | ~Michael Short | ||
+ | |||
+ | * Access a VM remotely? | ||
+ | * Open a terminal | ||
+ | * Command: ssh root@vmserverNumberofServerYou' | ||
+ | * Password: bob | ||
+ | ~Michael Short | ||
+ | =?===Linux Terminal Server==== | ||
+ | |||
+ | ==Need Something? | ||
+ | * How about your IP address? | ||
+ | * Command: sudo dhclient eth(put the number of the ethernet card here) | ||
+ | ~Michael Short | ||
+ | |||
+ | ==How do I set up a computer to Netboot?== | ||
+ | * In your BIOS settings, change the boot priority to Intergrated NIC w/ PXE | ||
+ | * Restart your computer, and you will now be prompted to install via your network server. | ||
+ | -Kenneth Denson | ||
+ | |||
+ | ==Do I need anything in order to log in?== | ||
+ | * You need a user name and a password on the system that is the server in order to sign in | ||
+ | --- // | ||
+ | |||
+ | ==I can't log in, what is wrong?== | ||
+ | * Make sure that you have a login on the server system, if you do then make sure that your ssh_known_hosts file has the IP address of the ethernet interface being used for the server is after the hostname on the beginning lines of the entries. | ||
+ | --- // | ||
+ | |||
+ | ==What is so special about using this?==\\ | ||
+ | * LTSP allows you to set up a lab or a group of networked computers while only having to install and maintain a single box. It allows for centralized management and makes updating and keeping packages up to date a lot easier than if users were spread out over multiple individual systems. Also it allows a user to no matter what box they log into (provided they are logging into the server) to always have their work at their fingertips.\\ | ||
+ | --- // | ||
+ | |||
+ | ==How easy is this to implement? | ||
+ | * All it takes is installing a few packages and modifying a few configuration files to suit the situation for your group that you will be netbooting. Also it may require a high end machine if the system is going to be running a full graphical install on a thin client as all of the processing is done on the server system.\\ | ||
+ | --- // | ||
+ | |||
+ | ==Is there an option that allows for a little less of a high end machine to be used as the server?==\\ | ||
+ | * Implementing a " | ||
+ | --- // | ||
+ | |||
+ | =? | ||
+ | |||
+ | ==What is a RAID?== | ||
+ | * RAID stands for Redundant Array of Inexpensive Disks. A RAID makes use of multipule disks acting together to increase size, performance, | ||
+ | -Kenneth Denson | ||
+ | |||
+ | |||
+ | ==What tool should I use to set up a RAID?== | ||
+ | * mdadm will fit all your RAIDing needs. | ||
+ | * '' | ||
+ | -Kenneth Denson | ||
+ | |||
+ | |||
+ | ==Fun Fact 0== | ||
+ | |||
+ | To mount: | ||
+ | * Command: '' | ||
+ | * Example: '' | ||
+ | -Kenneth Denson | ||
+ | |||
+ | |||
+ | ==Fun Fact 1== | ||
+ | |||
+ | To unmount: | ||
+ | * Command: umount .path .ie | ||
+ | * For Example: Command: umount /dev/md0 | ||
+ | * To take raid offline: | ||
+ | * Command: mdadm .stop insert path you figured out in the above statement | ||
+ | *For Example: Command: mdadm .stop /dev/md0 | ||
+ | ~Michael Short | ||
+ | |||
+ | ==Fun Fact 2== | ||
+ | To zero out drives: | ||
+ | * Command: mdadm .zero -superblock / | ||
+ | ~Michael Short | ||
+ | |||
+ | Another command for zeroing out the drives: | ||
+ | *dd if=/ | ||
+ | --- // | ||
+ | |||
+ | ==Fun Fact 3== | ||
+ | * To view your active disks.. | ||
+ | * '' | ||
+ | -Kenneth Denson | ||
+ | |||
+ | ==How do I set a share to mount when the system boots?== | ||
+ | * Add an entry to the /etc/fstab file for the share that you want to mount. Make sure that you use rw for the options. | ||
+ | --- // | ||
+ | |||
+ | =? | ||
+ | |||
+ | ==You may ask== | ||
+ | |||
+ | - How do i make my script an executable? Need a reminder? | ||
+ | * Command: chmod +x <Name of script> | ||
+ | * OR | ||
+ | * Command: chmod 700 <Name of script> | ||
+ | * both of these commands accomplish the same thing | ||
+ | ~Michael Short | ||
+ | |||
+ | - How do i get started? How can i make bash make my mouse move without my hand? | ||
+ | - hint *xte mousemove x y* | ||
+ | - hint *xte mousdown 1* | ||
+ | - hint *xte mouseup 1* | ||
+ | - And yes you could even loop these | ||
+ | ~Michael Short | ||
+ | |||
+ | -How would I take a chunk of a script or entire script to call and use ,in others? | ||
+ | -Save the block of code, if you haven' | ||
+ | -In the calling script insert ". / | ||
+ | --- // | ||
+ | |||
+ | === If I wanted to automate a mouse' | ||
+ | *Simple. "xte mouseup 3" | ||
+ | --- // | ||
+ | |||
+ | === Grabbing Desktop Dimensions === | ||
+ | *Let's say your on a system and you're unsure of the desktop dimensions. To find them you would do the following: | ||
+ | *< | ||
+ | | ||
+ | *It isn't much different when grabbing window dimensions. | ||
+ | *< | ||
+ | --- // | ||
+ | |||
+ | === Basic xwit Usage === | ||
+ | *the xwit command is also very useful for mouse cursor manipulation | ||
+ | *xwit -root -warp xPosition yPosition will move to that absolute x,y position on the desktop | ||
+ | *xwit -root -rwarp xPosition yPosition will move to the mouse' | ||
+ | --- // | ||
+ | |||
+ | === sleep command === | ||
+ | -Another useful tidbit in doing the automated drawing is the sleep command. Lets say, for example, that you're opening Xpaint and then trying to grab the window IDs for the canvas and tool bar. However, the script tries grabbing for them before the system is finished opening Xpaint. Insert the sleep command using the syntax "sleep #s". In most cases, a second or two will be more than sufficient for the system to catch up. | ||
+ | --- // | ||
+ | |||
+ | =====Virtual Server Questions==== | ||
+ | |||
+ | ==How do I see what VM's are running on my Virtual Server?== | ||
+ | *'' | ||
+ | -Kenneth Denson | ||
+ | |||
+ | ==How do I shutdown a server, or VM?== | ||
+ | * '' | ||
+ | * Be careful to use this command in the correct terminal! | ||
+ | -Kenneth Denson \\ | ||
+ | |||
+ | |||
+ | Q: If you try to shutdown a Virtual Machine normally and it will not shutdown what command can you use to stop it?== [jbrant]\\ | ||
+ | A: xm destroy domain-name [jbrant] | ||
+ | |||
+ | Q: What command can you use to move a virual machine from one vm server to another vm server with out shutting it down? [jbrant]\\ | ||
+ | A: xm migration | ||
+ | |||
+ | Q: Can you have virtual machines using different operating system on the same vm server? | ||
+ | A: No because each guest is copy of the original Kernal. [jbrant] | ||
+ | |||
+ | Q: How would you make a virtual disk? [jbrant]\\ | ||
+ | |||
+ | A: | ||
+ | dd if=/ | ||
+ | ^ | ||
+ | Name of virtual disk Number of blockes | ||
+ | | ||
+ | |||
+ | Q: Can you build a server cluster across multiple subnets? == [jbrant] | ||
+ | |||
+ | |||
+ | =?===In Soviet Russa, Videos Wall YOU!==== | ||
+ | |||
+ | ==What tools will I need to set up a video wall?== | ||
+ | * xdmx and fluxbox will be very useful. | ||
+ | * xdmx will allow you to run multipule screens off of one machine. | ||
+ | * fluxbox is a window manager that you will need to use all screens as one. | ||
+ | -Kenneth Denson | ||
+ | |||
+ | what do you need to create a 12 monitor video wall | ||
+ | * definately 12 monitors and 6 machines will be needed along with a switch and a long mudkip video | ||
+ | * Jeff jansen just rules | ||
+ | |||
+ | =?=== Questions About installs ==== | ||
+ | |||
+ | Q: How do you update source.list? | ||
+ | A: aptitude update < | ||
+ | | ||
+ | |||
+ | |||
+ | Q: How can you check to see what packages have been installed? == [jbrant] \\ | ||
+ | A: dpkg -l will list installed packages [jbrant] | ||
+ | |||
+ | Q: What is the ' | ||
+ | A: To determine | ||
+ | |||
+ | Q: How do you uninstall an application or driver? [jbrant] \\ | ||
+ | A: aptitude purge application [jbrant] | ||
+ | |||
+ | Q: What is the difference between aptitude and apt-get == [jbrant]\\ | ||
+ | A: One difference is that aptitude keeps logs. The log file is located at / | ||
+ | |||
+ | Q: What if aptitude can't install the package I want?\\ | ||
+ | A: Almost every package can also be installed from source from the site. To do this download the source archive, extract it and follow the instructions usually enclosed within. Usually this involves running a script called configure within the folder the archive extracts to. Then running make and make install. Any changes to this will normally be listed in the instructions.\\ | ||
+ | --- // | ||
+ | |||
+ | Q: How do I search for packages using aptitude?\\ | ||
+ | A: aptitude search *Possible package name*\\ | ||
+ | --- // | ||
+ | |||
+ | Q: Aptitude is installing more than I want it to, is this okay?\\ | ||
+ | A: This is most likely because the package you told it to install needed some extra things that were found in those other packages, it's normal.\\ | ||
+ | --- // | ||
+ | |||
+ | |||
+ | =? | ||
+ | |||
+ | == What are the versions of Debian name after? == [jbrant] | ||
+ | |||
+ | == How do you mount a peripheral device? == [jbrant] | ||
+ | |||
+ | === Generating a random number in a script or on the command line === | ||
+ | *If for some reason you need a quick simple way to generate a random number, the command line is your best friend. On the command line or in a shell script type the following: | ||
+ | |||
+ | < | ||
+ | *This will generate a random integer between 1 and 10. If you wanted a number between 0-9, simply leave out the +1. | ||
+ | --- // | ||
+ | |||
+ | === Unwanted Wiki Syntax === | ||
+ | *Also, if you're having trouble display a command line on the wiki properly, and for some oddball reason the code tag doesn' | ||
+ | < | ||
+ | --- // | ||
+ | |||
+ | === Display array contents in a shell script === | ||
+ | *When displaying things to the command echo is a very useful tool. When displaying an array, it can sometimes be a bit funky. When echoing variables, simply using a plain " | ||
+ | --- // | ||
+ | |||
+ | =?===Jesse Short==== | ||
+ | |||
+ | - Uh ohez, I created a user I didn't want to. How do I delete this? | ||
+ | * userdel -r "user name" | ||
+ | - What does this " | ||
+ | * Well it stands for secure shell (it uses the three way handshake) and lets two devices connect to eachother over a network. | ||
+ | - I'm not root why wont some of my commands work? | ||
+ | * Try prefixing it with sudo. It means super user do and allows for some commands that require you to be logged into root to work. | ||
+ | - What is bash? | ||
+ | * Bash (Bourne again shell) is a shell scripting language (It's a simple language to understand and can also execute commands on the command line interface). | ||
+ | - How do I begin a bash script? | ||
+ | * # | ||
+ | - How do I end a bash script? | ||
+ | * exit 0 | ||
+ | - Why cant my bash script do decimal point math? | ||
+ | * Remember its a simple language, however, also remember that it can use terminal commands and tools. | ||
+ | - How do I kill a process? | ||
+ | * You can either choose the appropriate kill -# " | ||
+ | |||
+ | =?=== Tyrone Riley ==== | ||
+ | |||
+ | Q: How do I transfer files fromlab46 account to my home Linux system? | ||
+ | |||
+ | A: Put Files that need to be transferred into Public_html | ||
+ | <cli> | ||
+ | wget http:// | ||
+ | </ | ||
+ | |||
+ | Q: How do i transfer files from my home system to my lab46 account? | ||
+ | |||
+ | A: got to the directory were your file is located | ||
+ | <cli> | ||
+ | scp filename $USER@lab46.corning-cc.edu: | ||
+ | </ | ||
+ | |||
+ | Q: What file permissions are needed to use wget? | ||
+ | |||
+ | A: (a+r) -rw-r--r-- | ||
+ | |||
+ | Q: What file permissions are needed to view a webpage? | ||
+ | |||
+ | A: (a+r) -rw-r--r-- | ||
+ | |||
+ | Q: What file permissions are needed for a web page to access the contents of a folder? | ||
+ | |||
+ | A: (a+x) drwx-----x | ||
+ | |||
+ | Q: How do i get the raw data from my wiki jornal into lab46? | ||
+ | |||
+ | A: | ||
+ | <cli> | ||
+ | wget http:// | ||
+ | </ | ||
+ | |||
+ | Q: How do i look at log files that only pertain to me? | ||
+ | |||
+ | A: using swatch [[lab46> | ||
+ | |||
+ | Q: how do i add a style sheet to a lab46 public_html web page? | ||
+ | |||
+ | A: place your stle.css file in the public_html directory and within the head section of your web page add | ||
+ | <code html> | ||
+ | <style type+" | ||
+ | @import " | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | =?===Mr. Jeff Jansen==== | ||
+ | welcome to the section ginger the hottest club in all of asia. | ||
+ | |||
+ | |||
+ | |||
+ | so how do you remove directories you ask? | ||
+ | |||
+ | you simply do the command : rmdir (directory name here) | ||
+ | |||
+ | |||
+ | and jesse short your use of the ginger racist slurr is unnecessary i will find you in your sleep and kill you | ||
+ | |||
+ | how do i crate raid with he os on one of the hard drives? | ||
+ | |||
+ | you will need to set up the raid when you are installing the os such as ubuntu. | ||
+ | |||
+ | What shoud i do if i cannot get my computer to connect to the network? | ||
+ | |||
+ | one of the first steps would be to check the ethernet cable to see if it is connected at both ends. | ||
+ | |||
+ | how do i access the irc network? | ||
+ | |||
+ | well you start by opening a screen session then type irssi /server irc then join the channels you want to | ||
+ | |||
+ | |||
+ | =? | ||
+ | |||
+ | =? | ||
+ | |||
+ | Q: What is MPI?\\ | ||
+ | A: MPI stands for Message Passing Interface. | ||
+ | Open MPI can be found here: http:// | ||
+ | |||
+ | Q: What is cluster computing? | ||
+ | A: A computer cluster is a group of two or more homogeneous computers networked and configured to provide access to parallel processing. | ||
+ | |||
+ | Q: What is parallel processing? | ||
+ | A: Parallel processing breaks up the data to be processed and sends the individual sections to a computer or processor to be independently calculated or modified. | ||
+ | |||
+ | Q: What is scp??\\ | ||
+ | A: SCP stands for secure copy, its a quick and easy way to transfer files between computers and hosts. | ||
+ | $ scp filename bob@bob.com: | ||
+ | This will copy a file from your current folder named " | ||
+ | |||
+ | Q: What is cURL and how is it useful?\\ | ||
+ | A: cURL (Cambridge University Robot Language) is/was intended to be an easy to use replacement for html/ | ||
+ | |||
+ | Q: What is chromium and where can I find it?\\ | ||
+ | A: Chromium allows parallel graphical rendering across a cluster, supporting openGL it allows fast graphical rendering and advanced graphics.\\ | ||
+ | Chromium can be found here: http:// | ||
+ | |||
+ | Q: What are some examples of distributed processing? | ||
+ | A: There are quite a few programs out there that use the idle time of home PC's to perform complex calculations. | ||
+ | |||
+ | Q: Ok, how do you time how fast it takes a program to run?\\ | ||
+ | A: Just type the word " | ||
+ | $ time ./thisprog | ||
+ | You will have time statistics returned when execution is over. This is useful when optimizing a program, or comparing single run to cluster run times. | ||
+ | |||
+ | Q: What is a KVM?\\ | ||
+ | A: A KVM stands for keyboard, video, mouse. | ||
+ | |||
+ | =? | ||
+ | |||
+ | =? | ||
+ | |||
+ | =? |