FAQ - 6. General Questions
Click on a link to jump to the question. If you want to return to this list, just hit the back button after you've read the question.
- Change my password
- Documentation for <command>
- What UNIX program should I use to do xyz?
- How do I save PostScript Graphics generated by Mathematica?
- Decode MIME file
- Send Papers to the Los Alamos Preprint Site
- E-mail Binary Files, Large Files, or a Set of Several Files?
- Vacation message for e-mail
- Transfer Windows/DOS files to Unix account
- Re-assign the keyboard on my X Terminals or Workstation
- Machines to run jobs involving particulary large numerical calculations
- Backup frequency
- Convert from .dvi to .ps
- Display remotely from another computer
6.1. Change my password
To change your Mac OS X login password, choose System Preferences from the Apple Menu. Click on the Accounts icon, select your account in the pane at the left, and then edit your password in the fields provided.
To change your email password, log in through the web email interface.
6.2. Documentation for <command>
|
|
Many UNIX commands have an on-line manual page in which you can find in-depth information on your favorite UNIX programs.
Manual pages can be accessed with man <command>.
For example, man man will give you information on the man command, itself. Additionally, referring to man intro
provides an overview as well.
|
man <command>
man man
man intro |
6.3. What UNIX program should I use to do xyz?
There are several options for you here. The quickest way is to contact the help desk. But if you would like, you may wish to try the following:
|
|
Try apropos <key word>
apropos password displays (among many other things) what you see in the opposite cell.
The output to apropos may seem overwhelming, because you'll often get a page or two of output, most of which are listings for cryptic manual pages you aren't interested in. But in most cases, you can skim through the listings looking for those commands that have a (1) next to them. The (1) indicates that the manual page for the command came from section 1 of the UNIX manual: Section 1 is devoted to User commands.
|
apropos <key word>
apropos password
passwd (5) - password file
passwd, chfn, chsh (1) - change local or NIS password information
putpwent (3) - write password file entry
pwck (8V) - check password database entries
|
6.4. How do I save PostScript Graphics generated by Mathematica?
|
|
|
Note: The Mathematica program has two different interfaces: a text-based interface, started with the math command; and an X window based interface, started with the mathematica command. If you run the text-based interface on a remote system, be sure to set the X DISPLAY variable correctly before running math. Otherwise, Mathematica's graphics output will be in text mode.
To plot y=sin(x) in Mathematica, save the graph in PostScript, and include it in your LaTeXdocument, follow the instructions in the opposite cell.
The Encapsulated PostScript ( EPS) file, figure1.ps, can now be included in your TeX and LaTeX files (with epsf.tex), and can be viewed with ghostview, or printed out with lpr.
To include figure1.ps in your LaTeX document, add something like the following in your document:
|
First, create an ´´almost PostScript'' file in Mathematica:
Display[ "figure1", Plot[ Sin[x], {x, 0, 2Pi} ] ]
Next, convert figure1 into Encapsulated PostScript, by typing: psfix figure1 > figure1.ps
input epsf
begin{figure}
epsfysize=3.2 truein
epsfxsize=3.2 truein
centerline{epsffile{figure1.ps}\
caption[ ]{
This is the graph for $y=sin(x)$ for an example.
}
end{figure}
}
|
6.5. Decode a MIME file
|
|
Strip off all mail header information, etc. (including any Content-X lines), until the file only includes lines like the following:
XGRvY3VtZW50c3R5bGVbYXBzLHByZXByaW50XX
tyZXZ0ZXh9DQpcbmV3Y29tbWFuZHtcR3plcm99eyR7
157KDApfX1fe1xtdSBcbnV9JH0NClxuZXdjb21tYW5ke
1xHb25lfXske0deeygxKX19X3tcbXUgXG51fSR9DQpcb
Then use the mimencode command with the -u (un-encode) command option.
Alternatively, you may choose to use the mime-aware program in Mailtool, which will automatically decode encoded files.
|
mimencode -u < <inputfile> > <outputfile>
For example:
mimencode -u < paper.mime > paper.tex
|
6.6. Send Papers to the Los Alamos Preprint Site
|
|
Los Alamos National Laboratory (LANL) collects and makes available preprints from physicists. You can see what preprints are available by pointing your Web browser, such as Netscape, at the following Universal Resource Locator (URL): http://xxx.lanl.gov.
For help with paper submission, go to http://xxx.lanl.gov/help; there you will be able to find further topics, such as " Submit a paper".
|
- Email mypaper.uu to LANL. Be sure to:
- mail your paper to the correct destination (different areas of physics have different email addresses): a listing of email addresses can be found at the following URL:
http://xxx.lanl.gov/help.
- include the database information required by LANL to send out the announcement for your paper, in addition to the uuencoded paper, itself.
|
6.7. E-mail Binary Files, Large Files, or a Set of Several Files
|
|
|
Although ftp is the preferred way to transfer binary files, large files, and a set of several files, sometimes ftp is not possible, and you must use e-mail instead. Unfortunately, sending these types of files by e-mail is not as straightforward as one would wish. The Internet's primary delivery agent, sendmail sometimes has trouble with very large files, and also cannot send binary files. Fortunately, there are ways around these problems.
Basically, all you need to do is archive your set of files into one archive file, compress the archive file, and then convert the compressed (binary) file into a text file. The converted file can then be sent by e-mail to your intended destination.
For example, suppose you want to send mypaper.tex, fig1.ps, and fig2.ps to your colleague Jane.
In Berkeley Mail, ~r <filename>, includes <filename> in the body of your mail. A period on its own line quits and sends the mail.
|
- Archive the 3 files into one file, mypaper.tar:
tar -cvf mypaper.tar mypaper.tex fig1.ps fig2.ps
- Compress mypaper.tar into mypaper.tar.Z:
compress mypaper.tar
- Convert the binary file, mypaper.tar.Z into the text file, mypaper.uu (note that the two instances of mypaper.tar.Z is required):
uuencode mypaper.tar.Z mypaper.tar.Z > mypaper.uu
- Now you can send the uuencoded text file, mypaper.uu, using your favorite mail program. For example, using the Berkeley Mail program, enter the following:
mail jane@physics.ucla.edu
Subject: Here is my paper.
Hello Jane, the following is a uuencoded file containing
mypaper.tex, fig1.ps, and fig2.ps.
Cut and save this into <filename>, then:
- uudecode <filename>
- uncompress mypaper.tar.Z
- tar -xvf mypaper.tar
Thanks,
- Tarzan
~r mypaper.uu
.
|
6.8. Vacation message for e-mail
|
|
|
This procedure has changed as of Nov. 11, 2004 and has yet to be documented.
|
|
6.9. Transfer Windows/DOS files to Unix account
If possible, use sftp from your laptop to connect to bree.kitp.ucsb.edu. Any files you transfer to bree will be available on your OS X account. If you don't have a laptop computer with you, log into your account on the machine with the floppy drive in the user room (2202) or ask the computing help desk to lend you a USB keychain drive.
6.10. Re-assign the keyboard on my X Terminals or Workstation
|
|
|
Get the current settings of key codes and key names with the xev command.
- A small window will pop up with its title ´´Event Tester'' and a square box will also appear inside the window.
- Position the mouse within the square box.
- Press a key on the keyboard.
- A paragraph containing information about the key will be displayed, including:
- its keycode (e.g., if you press the up-arrow key, you should find that its keycode is 27.
- its keyname/keysym (e.g., for the up-arrow key: (keysym 0xff52, Up))
Edit a file called .xmodmaprc where you put the remapping key codes on each line. This file should look like the following:
keycode 27 = Up
keycode 34 = Down
keycode 35 = Right
keycode 31 = Left
To make your mappings take effect, type:
xmodmap .xmodmaprc
Then add the following line to your .xsession file, if you wish your mappings to take effect whenever you use a SPARCStation or X-terminal at KITP.
xmodmap $HOME/.xmodmaprc
|
To assign new key strokes, use xev to get key codes and key names and xmodmap to remap the codes with the names.
Assign new keynames to keycodes with xmodmap
For more details, type man xmodmap.
|
6.11. Machines to run jobs involving particulary large numerical calculations
|
|
|
Running the UNIX "nice" command prevents your job from interfering with interactive use of the machine (e-mail, ssh, Netscape, etc).
|
e.g. nice -9 1348 |
6.12. Backup frequency
Your files are backed-up to tape on Tuesdays and Fridays, and to disk on all the other days. The disk backup is incremental, and only saves files that have been changed since the last tape backup.
6.13. Convert .dvi to .ps
|
|
|
To create a postscript file from a dvi file, type:
( output.ps is your desired name for the ps file, and input.dvi is the source file).
|
dvips -o output.ps input.dvi |
6.14. Display remotely from another computer
|
|
|
Connect to the machine with the command
|
ssh -X username@remote_machine |
|