This will be established in the first class-day.
If this is not done feel free to make an appointment by mailing me at rus@silicon.weeg.uiowa.edu. I'm available most any time.
There are two steps involved:
xhost silicon.weeg
export DISPLAY=ant.cs:0if using ksh, or
setenv DISPLAY ant.cs:0if using csh or tcsh.
You may put
xhost silicon.weegin the .login of a csh account or the .profile of a ksh account. This should work from any CS or ICAEN account. Note that doing this will allow anyone to display graphical programs on your terminal, even if you aren't logged into silicon. There is supposed to be a way to specify "csf123@silicon.weeg" but I haven't been able to get it to work.
Upon login, ksh keeps sets an environment variable which points back to the machine at which you are sitting. It's called REMOTEHOST. You may automatically set DISPLAY in your .profile on silicon by copying the value of this variable into DISPLAY.
export DISPLAY=$REMOTEHOST:0or
setenv DISPLAY ${REMOTEHOST}:0
for ksh or csh, respectively.
This info is given numerous places and I'm sure you all know the answer already, but I'll include it here for the sake of completeness.
ulimit -S -awill show you all your limits and
ulimit -S -t #will let you set your CPU time limit. For example,
ulimit -S -t 120will set it to 2 minutes.
limitwill show you all your limits and
limit cputime #will let you set your CPU time limit. For example,
limit cputime 120will set it to 2 minutes.
This solution applies to ksh only.
This is an interesting problem and I don't know an ideal solution to it. You need to set up some aliases. For example, type
alias __A=Control-p alias __B=Control-n alias __C=Control-f alias __D=Control-bto map the arrows up, down, left and right to the control keys for previous, next, forward and back. The problem is, of course, if you type Control-b on the command line, the cursor will simply jump back, as it is supposed to do.
The solution is to put these lines in your .kshrc using emacs or vi.
alias __A=Control-q Control-p alias __B=Control-q Control-n alias __C=Control-q Control-f alias __D=Control-q Control-bThe "Q" stands for "quote" and may be used to insert any control character into any file.
alias __A=Control-v Control-p alias __B=Control-v Control-n alias __C=Control-v Control-f alias __D=Control-v Control-bThe "V" stands for "verbose" and it works the same as emacs' "Q".
A note to vi users: if you have your EDITOR environment variable set to vi, then ksh will be in vi mode. Control-p, n, f and b will have no effect and the above info is useless. The consolation is that, if you're a vi user, you're probably already used to moving the cursor around with h, j, k and l which work fine in ksh, so the above discussion is moot.
If you're using ksh, then you need a .kshrc and a .profile. If you're using csh or tcsh, then you need a .cshrc and a .login. The .kshrc and .cshrc serve the same purpose and the .profile and .login serve the same purpose.
Your .kshrc/.cshrc is there to configure your shell. Use it to set any environment variables that you may need, create aliases, change your prompt, or turn shell options on and off.
Your .profile/.login is there to execute commands and programs at login time. Use it to automatically check your mail, enable talk messages, show you the system's status, or whatever else you might want. An important distinction is that the .profile/.login is only referenced by interactive shells, i.e. when you log in. If you execute a shell script, .profile/.login is not referenced by the shell that executes it. The .kshrc/.cshrc is referenced in either case.
No, I didn't. If you have more questions or if you've found problems with this file please alert me by sending mail to csi000@silicon.weeg.uiowa.edu.