faq

# Phys 2660 F.A.Q.

## Connecting

### I lost/forgot my password, what do I do?

Go here and click the link at the bottom of the page to request a new one.

### How do I login to my Galileo account from home?

Refer to the login instructions on the Getting Started page.

### Where can I find computers on Grounds that can connect to Galileo and display X-windows graphics (ITS-Supported Labs)

See the ITS-Supported Computer Lab page. These computers will have both secureCRT for connecting to Galileo and the (Hummingbird) Exceed X-Server. Just start X-server (the Exceed program) and connect to Galileo using the secureCRT program. If you get an error trying to display X windows, open the configuration for secureCRT and enable X11 tunneling. Then exit and restart secureCRT.

## File Transfers

### How do I transfer files between my computer and Galileo?

• From a mac or linux machine you may use Secure_copy
• Refer to the software page for finding GUI programs to run on Windows(WinSCP)/Mac(Fugu) to do secure transfers between your computer and Galileo.

### How do I transfer files to my lab partner?

See the documentation at the bottom of the Labs Page.

### How can I download a file from the web directly to my Galileo account?

Use the wget command from your Galileo account. For example to copy the data file from homework 1, give the link to the data file to wget (you can copy a link location with your mouse by right clicking on the link):

wget http://hepcat.phys.virginia.edu/phys2660/html/homework/hw01/young.dat

This will copy the file young.dat to your current directory on Galileo.

## Printing

### How do I print files?

1) One choice for printing is to transfer your files to your UVa Webmail or your home PC. See the Homework Page for instructions.

2) You may print directly from galileo as follows:

• Print to the laser printer in the physics library:
 lpr -P physics_323@print <filename>

This will send your file to the printer in Room 323. You must use your Cavalier card to claim the job at the printer before your print job will complete. To make this your default printer add the following line to you .login file in your home directory:

setenv PRINTER physics_323@print

Then you can simply type:

lpr <filename>

to send your print job to the library.

3) This option is probably useful to the T.A.'s only. If you have a copier account with the physics department you can use the department printers. The codes are the same codes you use for the photocopier. If you are logged in under your official UVA user ID when you submit the print job, the billing system will automatically send you an e-mail message reminding you that you have an unclaimed job waiting in the queue. This message will also give you the address of the web page you should visit to claim the job. If you do not receive an e-mail message, you'll need to point your web browser at the following address to claim the job: https://print.phys.virginia.edu/claim/

print commands for Physics Department printers
room 315 BW printer lpr -P physics_315@print
room 100 BW printer lpr -P physics_100@print

## Graphics Questions

### Can I make a plot with gnuplot if I'm not running an Xserver (can't view Xwindows from Galileo on my local PC)?

Yes. Just set gnuplot to output to a graphics file:

gnuplot> set term pdf
gnuplot> set output "outfile.pdf"
gnuplot> quit

### How do I convert postscript files into something I'm more familiar with (pdf, jpeg,...)?

pdf files: ps2pdf filename.ps # creates filename.pdf
jpg file: mogrify -density 120 -format jpg filename.ps
png file: mogrify -density 120 -format png filename.ps

The density setting specifies how many pixels to use per inch when translating your postscript document. Higher densities will generate larger and more detailed bitmapped graphics. Note: gnuplot can also output directly to a png file using the setting set term png

### How can I make an animated display/graphic from my data files or plots?

gnuplot has the ability to make animated plots from your data files. If your data are divided into different sections separated by two blank lines in your file, gnuplot can make an animated display by successively plotting the different data sections. To create an animated gif graphic of your individual frames (png or jpg files for example) follow these steps:

(1)type: convert -delay 20 snap*.png anim.gif
optimize the file:
(2)type: gifsicle -O anim.gif > anim2.gif
delete the original giff file -it's big!
(3)rm anim.gif

you can view the result in a web browser or by using the program:
gifview anim2.gif

## Misc

### What's a gnu? And is that pronounced "new" or "guh noo"?

The GNU acronym stands for Gnu's not Unix. It's pronounced: “guh noo”. You can learn about the GNU Project from their website at www.gnu.org. Here you can also learn about the history of modern free (as in freedom) and open source software efforts and the GNU/Linux relationship.

### How can I fix the Backspace key to work as Delete in emacs?

Having trouble w/ delete on certain terminals when using emacs? Make a file called .emacs in your home directory, and include the following lines. This will setup your Backspace key to delete a character to the left of the cursor.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; These two commands let you use Backspace
;; (Ctrl-h) as Delete in emacs.
;; The second one sets M-h (Esc h) to be the
;; help key.
;; Copy this four-line block unchanged to the
;; end of your .emacs file
;; Translate C-h to DEL
(keyboard-translate ?\C-h ?\C-?)
;; Define M-h to help
;; don't add an extra ' after help!
(global-set-key "\M-h" 'help)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;