PCN Wiki

SCP Failure

You are probably generating output in your .bashrc or .tcshrc/.cshrc file. Scp becomes confused by any terminal output.

The solution is to remove all output from non-interactive login scripts. man bash (or tcsh if you've changed your shell) for details on the necessary changes.
-------
Please visit the source wiki page for the rest of this article.

CUPS Commands

For the most part, you use CUPS lpr commands exactly like you used to with LPRNG:

lpr -Pprintername

And that's it!

However, specifying printer options with CUPS is done differently. With LPRNG, printing to transparency or disabling duplexing was done by appending ”--slide”, ”--duplex”, or ”--simplex” to the printer name.
-------
Please visit the source wiki page for the rest of this article.

^M Appearing after importing files from Windows

The ^M is due to Windows and Unix using a different characters for newlines.
Windows' newline character shows up as ^M in UNIX text editors.

You can use the dos2unix command to remove the ^M characters. Simply run

dos2unix filename > newfilename

and what you specified as “newfilename” will contain your file, without the ^M characters.
-------
Please visit the source wiki page for the rest of this article.

Quota Exceeding

A common culprit for quota-exceeding is the Mozilla browser. By default, it will store cache files in your home directory's .mozilla directory. A helpful solution to this problem is to use your desktop's /tmp directory for cache storage:

Place the following commands in your shell startup files:
-------
Please visit the source wiki page for the rest of this article.

Postscript File Combination

If you want to combine file1.ps and file2.ps into a file named “combined.ps”, you can use gs in the following manner:

gs -sDEVICE=pswrite -sOutputFile=combined.ps -dNOPAUSE \
file1.ps file2.ps -c quit
-------
Please visit the source wiki page for the rest of this article.