http://www.it.northwestern.edu/offcampus/providers/index.htmlFor some services you may need also VPN (Virtual Private Networking):
http://www.it.northwestern.edu/oncampus/vpn/One simple way to check your email on our system from home is to use webmail:
https://secure.math.northwestern.edu/mathmail/That link takes you to your email in your "public" account on our system. If you have a "private" machine in your office with a separate email account, then you may request to have webmail installed on your machine. Contact your system administrator about it.
If you want to set up an email reader on your home computer to access our email server using POP or IMAP (over SSL), you will need to use VPN (see above). The details of how to configure your mail reader depends on the particular program you are using, but these are some of the technical details commonly needed:
| POP or IMAP sever: | imap.math.northwestern.edu | |
| Outgoing mail server: | mailhost.math.northwestern.edu |
http://www.math.northwestern.edu/internal/computer_information/netid.html
Remember that your NetID password is the password that you need to use with your university NetID in order to access various services such as dialing into the University network via modem. Note that your university computer account is independent from your department computer account.
epstopdf filename.ps
or the pstill command
pstill -o filename.pdf filename.ps
dvipdfm filename.dvi
dvips -Ppdf filename.dvi -o filename.ps
then convert the PostScript file to PDF with epstopdf or
pstill as explained above.
pdftex filename.tex
or
pdflatex filename.tex
rm ~/.forward
(We do not want to use that file, to avoid "replying" to spam.)
Then include the following rule in your .procmailrc file
(after the antispam rules!):
:0c |/usr/local/bin/vacation usernamewhere "username" is your username.
Ask for assistance from your system administrator if you have any problems.
To disable the vacation mechanism just comment out those lines:
#:0c #|/usr/local/bin/vacation username
PATH=/bin:/usr/bin:/usr/local/bin MAILDIR=$HOME/Mail # you'd better make sure it exists SPOOLDIR=/var/spool/mail DEFAULT=$SPOOLDIR/$LOGNAME NSMAIL=$HOME/nsmail PINEMAIL=$HOME/mail SENDMAIL=/usr/lib/sendmail LINEBUF=16384 #------------- begin vacation segment ------------------- SHELL=/bin/sh :0 hc * !^FROM_DAEMON * !^X-Loop: username@math.northwestern.edu | (formail -rA"Precedence: junk" \ -A"X-Loop: username@math.northwestern.edu" ; \ cat $HOME/vacation.msg \ )| $SENDMAIL -oi -t #------------- end vacation segment ---------------------
Click here for a sample of a .procmailrc file that you can use for emulating the vacation program.
mcopy foo a:
If you want to copy the file from the diskette to your current
directory, type
mcopy a: foo
Use the command mdir to list the files on the diskette.
mdir a:
The main problem with the photocopier is that it scans entire pages, so if you only want to scan a part of a page you may consider using our scanner. Make sure that each page is saved to a file in PDF format - i.e.: in tkscan select "Output to File" and "File Type: PDF". If you cannot save the page in PDF format, save it in any image format (say PNM) and convert it later into PDF:
convert file.pnm file.pdf
Once you have scanned all the
pages of the document you will have a number of PDF files, one for
each page. The final step is to merge
them into a single PDF document, as explained in the next
paragraph.
gs -sDEVICE=pdfwrite -sOutputFile=foo.pdf -q -dNOPAUSE foo1.ps foo2.pdf foo3.ps quit.ps
A slightly different way of doing the same:
ghostscript -dNOPAUSE -sDEVICE=pdfwrite -dBATCH -sOutputFile=foo.pdf foo1.ps foo2.pdf foo3.ps
Same, but the output is now a PostScript file:
ghostscript -dNOPAUSE -sDEVICE=pswrite -dBATCH -sOutputFile=foo.ps foo1.ps foo2.pdf foo3.ps
The following command will merge all files named part*.ps into out.pdf:
mergeps2pdf part out
There are similar commands mergeps2ps, mergepdf2ps, and
mergepdf2pdf, intended to merge ps to ps, pdf to ps and pdf to pdf
respectively.
texexec --pdfselect --selection=n:m -result=outfile.pdf infile.pdf
Assume that the forwarding address is "j-doe@another.site.ws". Hopefuly you have a .procmailrc file on your directory, at least for the purpose of filtering spam - if you don't have it you will need to creat it. Then, insert the following rule after the rules intended to filter spam:
:0c ! j-doe@another.site.wsRemark: The "c" after the "0" means that a copy of the incoming message will be generated (without it the message will be forwarded to the given address but no copy would be left here.) The exclamation mark "!" means "mail the message to the given address."
Note: If there is a risk that the fowarded email may bounce (causing a loop), use the following recipe instead:
:0c * !^FROM_DAEMON ! j-doe@another.site.ws
The following is a possible example of the content of a .procmailrc file with spam filtering followed by forwarding.
############################################################# PATH=/bin:/usr/bin:/usr/local/bin MAILDIR=$HOME/Mail #you'd better make sure it exists SPOOLDIR=/var/spool/mail DEFAULT=$SPOOLDIR/$LOGNAME LOGFILE=$MAILDIR/from #recommended LOGABSTRACT=all LINEBUF=16384 ###################### SPAMASSASSIN ######################### :0fw: spamc.lock | spamc :0 * ^X-Spam-Flag: YES caughtspam ####################### forwarding ########################## :0c # (remove the c if you do not want to keep copy of incoming email here) ! j-doe@another.site.ws #############################################################
ssh-agent gnome-terminal &
This starts a new window (in fact a gnome terminal) that will act as
an authentication agent. Inside that window type
ssh-add
You will be prompted for your passphrase. Write it. That adds your
private key to the authentication agent. Now you can open other
windows by typing (inside the window acting as authentication agent)
gnome-terminal &
The new windows opened that way will serve also as authentication
agents with your private key already added. Now you can ssh from
inside any of those windows without having to retype your passphrase.
The technical details are in the manual page of ssh-agent (man ssh-agent).
gunzip filename.gz
That produces an uncompressed file with the same name but without the
".gz".
PATH=/bin:/usr/bin:/usr/local/bin MAILDIR=$HOME/Mail #you'd better make sure it exists SPOOLDIR=/var/spool/mail DEFAULT=$SPOOLDIR/$LOGNAME LOGFILE=$MAILDIR/from #recommended LOGABSTRACT=all LINEBUF=16384 ###################### SPAMASSASSIN ######################### :0fw: spamc.lock | spamc :0 * ^X-Spam-Flag: YES caughtspam #############################################################After doing that all messages determined to probably be spam by the spamassassin program will be placed in a file called "caughtspam" in the Mail subdirectory of your home directory. Make sure to look at that file periodically to check for false positives (messages wrongly classified as spam by spamassassin).
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is 4b:c7:84:51:cd:12:27:cb:f3:bd:6e:98:9a:e3:cb:ae. Please contact your system administrator. Add correct host key in /rhome/username/.ssh/known_hosts2 to get rid of this message. Offending key in /rhome/username/.ssh/known_hosts2:1 RSA host key for hostname has changed and you have requested strict checking.Solution: The problem can be solved with some editing of the files known_hosts (and possibly known_hosts2,) but the simplest thing is just to remove them:
rm ~/.ssh/known_hosts ~/.ssh/known_hosts2They will be recreated later with the correct host keys.
If you have an office with a Linux machine and you cannot login probably it is private. Depending on various circumstances you may be eligible to get a separate "private" account in it. Contact the system administrator to find out.
which htpasswdThat should return "/usr/bin/htpasswd". If it returns something like "/usr/bin/which: no htpasswd in ... " that means that the command is not available, and the rest of the process can not be carried out - in that case ask your system administrator to install the apache webserver on your machine (but you may want to leave it "off" anyway).
Then do the following.
cd /rhome/username mkdir passwdwhere "/rhome/username" means the full path of your "public" home directory.
htpasswd -c passwd/passwords john_doeIf you wish, you may add more users and passwords with the same command but without the "-c" flag:
htpasswd passwd/passwords jane_doe
cd public_html mkdir restricted cd restricted
AuthType Basic AuthName "Restricted Files" AuthUserFile /rhome/username/passwd/passwords require user john_doewhere "/rhome/username" must be replaced with the full path of your "public" home directory.
http://www.math.northwestern.edu/~username/protected/index.htmlwhere "username" is your system username. You should be prompted for a username and password. You may use any username you have entered in the password file ("john_doe", or "jane_doe", or whatever), and the corresponding password for that username.
convert -size 200x15 xc:white -pointsize 12 -draw "text 5,10 username@math.northwestern.edu" emailadd.jpgYou should get something that looks like this:
If the resulting image does not look quite right you may need to change the options and flags of the command (type man convert for additional information on the convert command.)![]()
sa-learn --spam --mbox junk
sa-learn --ham --mbox good_mail
You may use more than one folder of each ham and spam. Just run
sa-learn similarly for each folder.
sa-learn --ham --mbox /var/spool/mail/username
where "username" is your username, or
sa-learn --ham --mbox mbox
depending on where you store your incoming messages.
sa-learn --dump magic
You will get something like this:
0.000 0 3 0 non-token data: bayes db version 0.000 0 147531 0 non-token data: nspam 0.000 0 102387 0 non-token data: nham 0.000 0 138118 0 non-token data: ntokens 0.000 0 1164052510 0 non-token data: oldest atime 0.000 0 1165431546 0 non-token data: newest atime 0.000 0 1165429022 0 non-token data: last journal sync atime 0.000 0 1165234855 0 non-token data: last expiry atime 0.000 0 345600 0 non-token data: last expire atime delta 0.000 0 265307 0 non-token data: last expire reduction countnspam and nham are the number of spam and ham messages that spamassassin has learned from.
convert filename.pnm filename.pdf
convert filename.abc filename.xyz
The best way to prevent your email from being classified as spam by hotmail is that the receiver includes your email address, or better yet, the "math.northwestern.edu" domain, in his/her hotmail safelist. These are the instructions provided by Hotmail to that effect:
Q. I received an e-mail in my Junk E-Mail Folder that wasn't Junk. What can I do?
A. To help prevent messages from specific senders from being evaluated as junk e-mail, you can add the senders to your safelist.
If you're using MSN Hotmail:
1. Click Options.
2. On the left side of the page, click Mail, and then click Junk
E-Mail Protection.
3. Click Safe List.
4. Type an address or domain (a domain is the part of an e-mail
address that follows the @ sign) from which you always want to receive
messages, and then click Add.
If you're using Windows Live Hotmail:
1. Click Options.
2. Click Allowed and Blocked Senders under Junk e-mail
3. Click Allowed senders.
4. Type an address or domain (a domain is the part of an e-mail
address that follows the @ sign) from which you always want to receive
messages, and then click Add to List.
See: http://postmaster.hotmail.com/FAQ.aspx
Comments: webmaster@math.northwestern.edu
Last modified: Friday June 06, 2008