TA Resources
Changing initialization files
There are a number of files that are processed automatically when certain events happen. These are the startup, or initialization files. They all begin with a period, making them hidden, and therefore not visible unless you add the ‘-a’ switch to ls. The common files on this system are in the accordion sections below.
Note:
When changing startup files, it is a good idea to back up the file you are going to edit, in case you somehow destroy or damage it. For instance, before you were going to edit your .tcshrc file you would type:
mv .tcshrc .tcshrc.bak
This would make a backup copy of your file, so in case the new one had ill effects, you could easily switch back to the old one.
To edit a startup files, use any common text editor.
Each of these files has a default copy somewhere in the system. If you have your own file, this default file may be skipped, or it might be processed in addition to your personal file.
.login
This is the initialization file that is read each time you login. Usually, most of these commands should go into the .tcshrc.
Save this file as “.login” in your homedirectory
The initial machine wide defaults (csh.login & csh.cshrc) for tcsh. This file is modified from the profile.orig file for use on the ICL systems at UIC. By John Yancey 01/02/98.
# Check policy addition
if ( “$LOGNAME” != “root” ) then
if ( -x /usr/local/etc/check_policy ) then
/usr/local/etc/check_policy
set exitvalue=$?
else
set exitvalue=0
endif
if ($exitvalue != 0 ) then
logout
else
echo “”
endif
endif
# End check policy addition
.logout
If you need a certain set of commands executed when you logout, this is the place to put them.
.bash_profile and .bashrc
.bash_profile
# Written by John W. Yancey # Set the path to include all the good stuff. PATH=”\ $PATH:\ $HOME/bin:\ /usr/local/gnu/bin:\ /usr/TeX/bin:\ /bin:\ /usr/local/X11/bin:\ /usr/local/bin:\ /usr/ucb:\ /usr/bin:\ /usr/5bin:\ /usr/etc:\ /usr/local/openwin/bin:\ /usr/local/lang:\ /usr/bsd:\ /bin:\ /usr/sbin:\ /usr/bin/X11:\ .” TROFF=’troff -t ‘ HOSTNAME=`hostname` HOST=`expr $HOSTNAME` USER=`whoami` PRINTER=ps NNTPSERVER=news.uic.edu MANPATH=”\ ~/bin/man:\ /usr/local/X11/man:\ /usr/man:\ /usr/local/man:\ /usr/local/gnu/man:\ /usr/local/openwin/man:\ /usr/local/lang/man:” PS1=”\u:\w>$ ” PS2=”->” MAILPATH=”/usr/spool/mail/$USER?Some one must like you, you have mail!” # Add in .bashrc file, will also source aliases. source $HOME/.bashrc # Set up TERM to work properly if [ $TERM = “dialup” ]; then TERM=vt220 fi if [ $TERM = “linux” ]; then TERM=vt220 fi if [ $TERM = “network” ]; then TERM=sun-cmd fi # Set up DISPLAY TTY=`tty` if [ $DISPLAY = 0 ]; then if [ $TTY = “/dev/console” ]; then DISPLAY=`hostname`:0.0 else DISPLAY=null fi else if [ $DISPLAY = “:0.0” ]; then DISPLAY=`hostname`:0.0 fi fi # Export shell environment export PATH MANPATH HOSTNAME HOST USER PS1 PS2 export PRINTER NNTPSERVER TROFF TERM DISPLAY MAILPATH # End .bash_profile
.bashrc
# This file has been generated by John Yancey for use in the ICLab in 2260SEL # Questions, comments to: jyancey@acm.org # Complaints to: /dev/null # Prompting–general setup unset PROMPT_COMMAND # Primary prompt export PS1=”\$ ” # Secondary prompt export PS2=”-> ” # Prompt 3 export PS3=”#? ” # Prompt 4 export PS4=”+” # Command aliases alias rm=’rm -i’ alias ll=’ls -l’ alias la=’ls -a’ alias lla=’ls -la’ alias l=’less’ #alias lpq=’lpq -l’ alias m=’more’ alias h=’history’ alias ..=’cd ..’ alias …=’cd .. ; cd ..’ # Command history export HISTFILE=~/.bash_history export HISTCONTROL=ignoreboth export HISTSIZE=500 export HISTFILESIZE=500 unset FCEDIT export command_oriented_history=on export histchars=’!^#’ # Commandline set -o emacs #set -o posix set +o verbose set +o xtrace set -o ignoreeof unset TMOUT export EDITOR=’emacs’ # Completion export HOSTFILE=/etc/hosts set +o noglob unset allow_null_glob_expansion unset glob_dot_filenames # Job control set -o monitor unset auto_resume set +b # Mail check export MAILCHECK=60 export MAIL_WARNING=on # TTY appearance #shopt -u checkwinsize export COLUMNS=80 export LINES=24 # Error handling set +o nounset unset no_exit_on_failed_exec set +o errexit # File/directory handling set +o noclobber umask 022 #set +o physical export cdable_vars=on # Paths (We don’t add in things from .bash_profile) PATH=”\ /usr/mlocal/math/bin:\ /usr/mlocal/maple/bin:\ /tools/synopsys/sparc/syn/bin:\ /tools/synopsys/worldview/bin:\ /tools/silvaco/bin:\ .” export PATH # Extra stuff # VHDL Tools export SYNOPSYS=”/tools/synopsys” cp /tools/synopsys/doc/syn/examples/dotfiles/synopsys ~/.synopsys_dc.setup #source $SYNOPSYS/admin/install/sim/bin/environ.csh # SILVACO export SILVACO=”/tools/silvaco” export SFLM_SERVER=”ernie.eecs.uic.edu” # System limits #ulimit -d unlimited #ulimit -s unlimited #ulimit -v 4194302 #ulimit -m unlimited #ulimit -l unlimited #ulimit -f unlimited #ulimit -c 0 #ulimit -n 256 #ulimit -t unlimited #ulimit -u 256
.xsession
Whenever you log into a machine in the ICL, this file is read to determine what programs you want to load automatically. Each command is executed sequentially; the last command should be the window manager that you wish to use (mwm, fvwm, olwm, ctwm).
/usr/local/X11/bin/xsetroot -solid black & /usr/local/X11/bin/xconsole -g 630×64+0+0 & /usr/local/X11/bin/xlbiff -g +0+0 & /usr/local/X11/bin/xterm -g 80×42+0+175 -ls -sf -fn 9×15 -sb & /usr/local/X11/bin/xman -g 114×70-0+0 & #mwm fvwm2
.Xdefaults
This file sets parameters for many X programs, such as xterm, xclock, xbiff, etc.
!# .Xdefaults !# —– Misc defaults —– Scrollbar.JumpCursor: true alarm.visible: true LanguageAssistant.Line_width: 80 LanguageAssistant.Display_status: Show all of them LanguageAssistant.Parse_style: Parse On Parse Key LanguageAssistant.Parse_key: ESCAPE_KEY !# —– twm Window Manager defaults —– TextWindowManager.Tab_width: 8 TextWindowManager.Wrap_around: false !# —– xman defaults —– xman*background: floralwhite xman*foreground: darkolivegreen xman*directoryFontNormal: 8x13bold xman*manualFontNormal: -adobe-courier-bold-r-normal–18-180-75-75-m-110-iso8859-1 xman*manualFontBold: -adobe-helvetica-bold-r-normal–18-180-75-75-p-103-iso8859-1 xman*manualFontItalic: -adobe-courier-bold-o-normal–18-180-75-75-m-110-iso8859-1 xman*topBox*background: gold xman*topBox*foreground: black xman*topBox*geometry: 120×105+0+0 xman*help*background: lightgray xman*help*foreground: black xman*help*geometry: 900×870+0+0 xman*manualBrowser*background: steelblue xman*manualBrowser*foreground: lightgray xman*xmanCommands*background: black xman*xmanCommands*foreground: gold xman*xmanSections*background: skyblue xman*xmanSections*foreground: black xman*xmanSearch*background: lightgray xman*xmanSearch*foreground: black !# —– Xconsole defaults —– XConsole.autoRaise: off XConsole.geometry: -0+0 XConsoleFrame.defaultDistance: 1 XConsole*consoleLog: /tmp/conslog XConsole*reverseVideo: true XConsole*background: midnightblue XConsole*foreground: white XConsole*doTitle: true XConsole*title.width: 150 XConsole*title.borderWidth: 0 XConsole*text.width: 487 XConsole*text.height: 200 XConsole*text.displayCaret: false XConsole*text.horizDistance: 6 XConsole*text*font: fixed XConsole*text.borderWidth: 1 XConsole*title.font: -adobe-new century schoolbook-bold-r-normal–18-180-75-75-* XConsole*thickness: 10 XConsole*closeWindow.label: Hide XConsole*closeWindow.borderWidth: 0 XConsole*closeWindow.horizDistance: 452 XConsole*closeWindow.internalHeight: 2 XConsole*Command*resize: false XConsole*title.top: ChainTop XConsole*title.bottom: ChainTop XConsole*title.left: ChainLeft XConsole*title.right: ChainLeft XConsole*closeWindow.top: ChainTop XConsole*closeWindow.bottom: ChainTop XConsole*closeWindow.left: ChainRight XConsole*closeWindow.right: ChainRight XConsole*text.fromVert: title XConsole*displayNonPrinting: false XConsole*closeWindow.font: -adobe-new century schoolbook-bold-r-normal–14-140-75-75-* !# —– Xterm defaults —– xterm*background: MidnightBlue xterm*bodyFont: fixed xterm*borderColor: gray50 xterm*cursorColor: gray50 !xterm*font: 8×13 xterm*foreground: gray80 !xterm*geometry: 80×40 xterm*multiscroll: on xterm*pointerColor: gray50 xterm*saveLines: 1000 xterm*scrollbar: on xterm*showTitle: on xterm*sunFunctionKeys: on !# —– RTerm defaults —– RTerm*method: rlogin RTerm*xpath: /usr/local/X11/bin !# —– xedit defaults —– xedit*background: white xedit*backupNameSuffix: .bak xedit*font: -adobe-courier-bold-r-normal–18-180-75-75-m-110-iso8859-1 xedit*foreground: black xedit*geometry: 900×700+0+0 xedit*load.label: Load xedit*quit.label: Quit xedit*save.label: Save xedit*scrollbar: on !# —– x3270 defaults —– x3270.colorBackground: MidnightBlue x3270.boldColor: Red x3270.inputColor: white x3270.normalColor: green x3270.keymap.default: sun-4 x3270.keymap.sun: sun-4 x3270.sun4.user: sun-4 x3270.iconY:-10 x3270.iconX:900 !# —– bitmap defaults —– bitmap*background: white bitmap*borderColor: purple bitmap*borderWidth: 2 bitmap*bodyFont: variable bitmap*dashed: off bitmap*dimensions: 16×16 bitmap*foreground: black bitmap*geometry: 500×500+0+0 bitmap*highlight: red bitmap*mouse: darkgreen !# —– xcalc defaults —– xcalc*background: skyblue xcalc*foreground: black xcalc*geometry: 300×300 xcalc*dispBack: black xcalc*dispFore: yellow xcalc*fKeyBack: steelblue xcalc*fKeyFore: white xcalc*iconBack: white xcalc*iconFore: red xcalc*nKeyBack: white xcalc*nKeyFore: black xcalc*oKeyBack: darkslategrey xcalc*oKeyFore: aquamarine !# —– xload defaults —– xload*background: black xload*foreground: hotpink xload*geometry: 128×150 xload*highlight: white !# —– xclock defaults —– xclock*background: midnightblue xclock*foreground: gray80 xclock*hands: gray80 !# —– oclock defaults —– oclock*background: white oclock*foreground: purple oclock*hands: purple !# —– xmag defaults —– xmag*source: 100×100 xmag*magnification: 5 !# —– xtroff defaults —– xtroff*hscroll: on xtroff*vscroll: on !# xcoral defaults xcoral*geometry: =700×700+200+100 xcoral*background: midnightblue xcoral*foreground: darkseagreen1 xcoral*font: 9×15 xcoral*displaywarning: True !# emacs defaults !emacs.font:-adobe-courier-medium-r-normal–18-180-75-75-m-110-iso8859-1 !emacs.pointerColor:SpringGreen !emacs.cursorColor:SpringGreen !emacs.bitmapIcon:on !emacs.foreground:SpringGreen !emacs.background:midnightblue !emacs.borderColor:orchid1 !emacs.geometry:80×40 !emacs.title:emacs !# tgif defaults !# Tgif*UsePsAdobeString: true !# xfig defaults xfig.landscape: false xfig.pwidth: 8.5 xfig.pheight: 9 xfig.scalablefonts: true xfig.exportLanguage: ps xfig.flushleft: true xfig.iconX:775 xfig.iconY:0 !# xvnews defaults XVnews.background: XVnews.highlight: XVnews.textcolor: XVnews.logFile: /home/class0/acm/haslett1/news.record XVnews.Indent: > XVnews.listfont: 1 XVnews.Rescan: 15 XVnews.SearchDefault: 2 XVnews.NextDefault: 2 XVnews.PrevDefault: 2 XVnews.Header: 0 XVnews.listfontsize: 2 XVnews.displaysize: 13 XVnews.textfont: 1 XVnews.textfontsize: 9 !# !xbiff.geometry: 75×75+900+0 !# xbiff.shapeWindow:false !xbiff*fullPixmap:/usr/local/X11/include/X11/bitmaps/letters !xbiff*emptyPixmap:/usr/local/X11/include/X11/bitmaps/noletters xbiff*background: midnightblue xbiff*foreground: gray80 !# !xnlock.text: Consultant will be back in a flash! !# —– Xemacs defaults —– ! This file specifies the default resources used by XEmacs. ! ! You can use the examples below as a basis for your own customizations: ! copy and modify any of the resources below into your own ~/.Xdefaults file. ! .Xdefaults specifies defaults for all applications, not just Emacs; it is ! normally used to customize fonts, colors, and the like, while ~/.emacs is ! used to change other sorts of (Emacs-specific) behavior. ! ! In general, changes to your .Xdefaults file will not take effect until the ! next time you restart the window system. To reload your resources ! explicitly, use the shell command ! ! xrdb -merge ~/.Xdefaults.com ! ! The resources will take effect the next time you restart Emacs. (Simply ! creating a new emacs screen is not enough – you must restart the editor ! for the changes to take effect.) ! ! The resources below are loaded into the emacs executable at compile-time: ! changes to …/etc/Emacs.ad made after emacs has been built will have no ! effect. ! ! However, you may copy …/etc/Emacs.ad to /usr/lib/X11/app-defaults/Emacs ! (or whatever the standard app-defaults directory is at your site) to cause ! it to be consulted at run-time. (Do this only for site-wide customizations: ! personal customizations should be put into ~/.Xdefaults instead.) ! ! See the NEWS file (C-h n) or Emacs manual (C-h i) for a description of ! the various resources and the syntax for setting them. ! ! Energize users: note that this is not the same app-defaults file that is ! used with the Energize-specific version of XEmacs. ! Colors and backgrounds. ! ====================== ! The contrasts of these colors will cause them to map to the appropriate ! one of “black” or “white” on monochrome systems. ! ! The valid color names on your system can be found by looking in the file ! `rgb.txt’, usually found in /usr/lib/X11/ or /usr/openwin/lib/X11/. ! Set the foreground and background colors. This will apply to all ! elements of Emacs, except those that specifically override them. Emacs*Foreground: gray80 !Emacs*Background: WhiteSmoke Emacs*Background: midnightblue ! Set the color of the text cursor. Emacs*cursorColor: gray50 ! Set the color of the mouse pointer. !Emacs*pointerColor: Black Emacs*pointerColor: gray90 ! Set the menubar colors. This overrides the default foreground and ! background colors specified above. Emacs*menubar*Foreground: Gray30 Emacs*menubar*Background: Gray75 ! Specify the colors of popup menus. Emacs*popup*Foreground: Black Emacs*popup*Background: Gray75 ! Specify the colors of the various sub-widgets of the dialog boxes. Emacs*dialog*Foreground: Black ! #A5C0C1 is a shade of blue Emacs*dialog*Background: #A5C0C1 Emacs*dialog*XmTextField*Background: WhiteSmoke Emacs*dialog*XmText*Background: WhiteSmoke Emacs*dialog*XmList*Background: WhiteSmoke ! If you want to turn off scrollbars, or change the default pixel width ! of the scrollbars, do it like this (0 width means no scrollbars): ! ! Emacs*scrollBarWidth: 0 ! ! To change it for a particular screen, do this: ! ! Emacs*SCREEN-NAME.scrollBarWidth: 0 ! To have the Motif scrollbars on the left instead of the right, do this: ! ! Emacs*scrollBarPlacement: BOTTOM_LEFT ! ! The default is BOTTOM_RIGHT. There is no way to change the placement of ! the Athena scrollbars (all Athena programs put the scrollbars on the left.) ! Fonts. ! ====== ! Emacs requires the use of XLFD (X Logical Font Description) format font ! names, which look like ! ! *-courier-medium-r-*-*-*-120-*-*-*-*-*-* ! ! if you use any of the other, less strict font name formats, some of which ! look like ! lucidasanstypewriter-12 ! and fixed ! and 9×13 ! ! then Emacs won’t be able to guess the names of the bold and italic versions. ! All X fonts can be referred to via XLFD-style names, so you should use those ! forms. See the man pages for X(1), xlsfonts(1), and xfontsel(1). Emacs*font: -adobe-courier-bold-r-normal-*-*-120-100-100-m-110-iso8859-1 ! The default font for the text area of XEmacs is chosen at run-time ! by lisp code which tries a number of different possibilities in order ! of preference. If you wish to override it, use this: ! ! Emacs*default.attributeFont: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-* ! If you choose a font which does not have an italic version, you can specify ! some other font to use for it here: ! ! Emacs*italic.attributeFont: -*-courier-medium-o-*-*-*-120-*-*-*-*-iso8859-* ! ! And here is how you would set the background color of the `highlight’ face, ! but only on the screen named `debugger’: ! ! Emacs*debugger.highlight.attributeBackground: PaleTurquoise ! ! See the NEWS file (C-h n) for a more complete description of the resource ! syntax of faces. ! Font of the menubar and pop-up menus. ! Note that these do not use the `face’ syntax, since they are outside the ! domain of Emacs proper, and in the domain of the X toolkit widgets: ! Emacs*menubar*Font: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-* Emacs*popup*Font: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-* ! Font in the Motif dialog boxes. ! (Motif uses `fontList’ while most other things use `font’ – if you don’t ! know why you probably don’t want to.) ! Emacs*XmDialogShell*FontList: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-* Emacs*XmTextField*FontList: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-* Emacs*XmText*FontList: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-* Emacs*XmList*FontList: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-* ! Dialog box translations. ! ======================= ! This accelerator binds in a dialog box to on button1 Emacs*dialog*button1.accelerators:#override\ Return: ArmAndActivate()\n\ KP_Enter: ArmAndActivate()\n\ Ctrlm: ArmAndActivate()\n ! Translations to make the TextField widget behave more like Emacs Emacs*XmTextField.translations: #override\n\ !osfBackSpace: delete-previous-character()\n\ !osfDelete: delete-previous-character()\n\ !Ctrlh: delete-previous-character()\n\ !Ctrld: delete-next-character()\n\ !MetaosfDelete: delete-previous-word()\n\ !MetaosfBackSpace: delete-previous-word()\n\ !Metad: delete-next-word()\n\ !Ctrlk: delete-to-end-of-line()\n\ !Ctrlg: process-cancel()\n\ !Ctrlb: backward-character()\n\ !osfLeft: backward-character()\n\ !Ctrlf: forward-character()\n\ !osfRight: forward-character()\n\ !Metab: backward-word()\n\ !MetaosfLeft: backward-word()\n\ !Metaf: forward-word()\n\ !MetaosfRight: forward-word()\n\ !Ctrle: end-of-line()\n\ !Ctrla: beginning-of-line()\n\ !Ctrlw: cut-clipboard()\n\ !Metaw: copy-clipboard()\n\ : copy-primary()\n ! With the Emacs typeahead it’s better to not have space be bound to ! ArmAndActivate() for buttons that appear in dialog boxes. This is ! not 100% Motif compliant but the benefits far outweight the ! compliancy problem. Emacs*dialog*XmPushButton.translations:#override\n\ : Arm()\n\ ,: Activate()\ Disarm()\n\ (2+): MultiArm()\n\ (2+): MultiActivate()\n\ : Activate()\ Disarm()\n\ osfSelect: ArmAndActivate()\n\ osfActivate: ArmAndActivate()\n\ osfHelp: Help()\n\ ~Shift ~Meta ~Alt Return: ArmAndActivate()\n\ : Enter()\n\ : Leave()\n Emacs.geometry: 80×40-1-1
.mwmrc
The Motif window manager (mwm) reads this file to determine how you want to customize its appearance. Commonly, one uses this file to personalize menus, colors, and icons.
! ! (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC. ! ALL RIGHTS RESERVED ! ! ! Motif Release 1.2 ! !! !! DEFAULT Mwm 1.2 RESOURCE DESCRIPTION FILE (system.mwmrc) !! !! NOTE: To personalize this file, copy this file before editing it. !! Personalize copies of the Mwm resource file typically !! reside as: !! !! $HOME/.mwmrc !! !! !! Root Menu Description (this menu must be explicitly posted via f.menu) !! Menu DefaultRootMenu { “Root Menu” f.title “New Window” f.exec “xterm &” “Shuffle Up” f.circle_up “Shuffle Down” f.circle_down “Refresh” f.refresh “Pack Icons” f.pack_icons ! “Toggle Behavior…” f.set_behavior no-label f.separator “Restart…” f.restart “Quit…” f.quit_mwm } Menu RootMenu_1.1 { “Root Menu” f.title “New Window” f.exec “xterm &” “Shuffle Up” f.circle_up “Shuffle Down” f.circle_down “Refresh” f.refresh ! “Pack Icons” f.pack_icons ! “Toggle Behavior” f.set_behavior no-label f.separator “Restart…” f.restart } !! !! Default Window Menu Description !! Menu DefaultWindowMenu { Restore _R AltF5 f.restore Move _M AltF7 f.move Size _S AltF8 f.resize Minimize _n AltF9 f.minimize Maximize _x AltF10 f.maximize Lower _L AltF3 f.lower no-label f.separator Close _C AltF4 f.kill } !! !! Key Binding Description !! Keys DefaultKeyBindings { ShiftEscape window|icon f.post_wmenu Altspace window|icon f.post_wmenu AltTab root|icon|window f.next_key Alt ShiftTab root|icon|window f.prev_key AltEscape root|icon|window f.circle_down Alt ShiftEscape root|icon|window f.circle_up Alt Shift Ctrlexclam root|icon|window f.set_behavior AltF6 window f.next_key transient Alt ShiftF6 window f.prev_key transient ShiftF10 icon f.post_wmenu ! Alt ShiftDelete root|icon|window f.restart } !! !! Button Binding Description(s) !! Buttons DefaultButtonBindings { icon|frame f.raise icon|frame f.post_wmenu root f.menu DefaultRootMenu } Buttons ExplicitButtonBindings { frame|icon f.raise frame|icon f.post_wmenu root f.menu DefaultRootMenu ! icon f.restore Alt window|icon f.lower ! Alt window|icon f.resize ! Alt window|icon f.move } Buttons PointerButtonBindings { frame|icon f.raise frame|icon f.post_wmenu root f.menu DefaultRootMenu window f.raise ! icon f.restore Alt window|icon f.lower ! Alt window|icon f.resize ! Alt window|icon f.move } !! !! END OF mwm RESOURCE DESCRIPTION FILE !!
Setting up an initial ".tcshrc" file
The .tcshrc (pronounced dot-t-c-s-h-r-c) file tells the shell (assuming you are using the tcsh shell environment all) sorts of setup parameters, most important of which are where to find certain programs. For some unknown reason, new accounts are not setup with any such file so we provide the following as a good starting point.
Directions: Expand the section below to copy the tcshrc file. Then save it in your home directory as .tcshrc (don’t forget the dot in front). (I.e. save it as ~/.tcshrc)
Finally, log out and log back in again.
tcshrc file
setenv CADENCE /opt/cds
setenv CDS_Netlisting_Mode “Analog”
setenv GNU /usr/local/gnu
setenv HPHFSS_DIR /opt/hpeesof
setenv HPEESOF_DIR /opt/hpeesof
setenv ICCAP_ROOT /opt/iccap
setenv MDSROOT /opt/mds
setenv SABER_HOME /usr/local/saber
setenv SFLM_SERVER nfs46c.ece.uic.edu
setenv SFLM_VERBOSE
setenv SILVACO /usr/local/silvaco
setenv TEX /usr/local/teTeX
setenv PATH ${PATH}:/usr/local/matlab_R13
setenv MANPATH:/usr/local/X11/man:/usr/local/man:/usr/man
setenv MANPATH${MANPATH}:${CADENCE}/tools/man
setenv MANPATH ${MANPATH}:${GNU}/man
setenv CDS_LIC_FILE 1712@lserver1.ece.uic.edu:1712@lserver2.ece.uic.edu:1712@lserver3.ece.uic.edu
setenv PATH .
setenv PATH${PATH}:/usr/local/X11/bin:/usr/ucb:/usr/local/bin:/usr/bin:/usr/local/openwin/bin
setenv PATH ${PATH}:${SABER_HOME}/bin
setenv PATH ${PATH}:${SABER_HOME}/saberdesigner
setenv PATH${PATH}:opt/cds/tools/bin:/opt/cds/tools/dfII/bin
setenv PATH ${PATH}:${CADENCE}/tools/bin
setenv PATH ${PATH}:${CADENCE}/tools/dfII/bin
setenv PATH ${PATH}:${GNU}/bin
setenv PATH ${PATH}:${GNU}/lib
setenv PATH ${PATH}:${HPHFSS_DIR}/bin
setenv PATH ${PATH}:${ICCAP_ROOT}/bin
setenv PATH ${PATH}:${MDSROOT}/mdsbin
setenv PATH ${PATH}:${TEX}/bin
setenv PATH ${PATH}:${SILVACO}:${SILVACO}/bin
setenv HPEESOF /opt/ADS2001
setenv CLS_CDSD_COMPATIBILITY_LOCKING NO
setenv AILM_LICENSE_FILE 1712@lserver1.ece.uic.edu:1712@lserver2.ece.uic.edu:1712@lserver3.ece.uic.edu
setenv SYNOPSYS /usr/local/synopsys
setenv SYNOPSYS_SIM ${SYNOPSYS}/simulation
setenv SNPSLMD_LICENSE_FILE${SYNOPSYS}/admin/license/license.dat
set path=( $SYNOPSYS/sparcOS5/syn/bin , $path )
source $SYNOPSYS_SIM/admin/setup/environ.csh
Problem with paths?
Cannot start your favorite program or view a postscript file? Here is the solution!
instructions
Students who are having problems with ghostview and other programs may have overwritten the default environment at login. By default, the LD_LIBRARY_PATH is set. This points to the X11, Openwin, and other librarys that need to be loaded for dynamic library sharing.
Insert the following in the .tcshrc file:
setenv LD_LIBRARY_PATH /usr/local/X11/lib:/usr/openwin/lib:/opt/SUNWspro/lib:/usr/dt/lib:/usr/local/lib:/usr/local/gnu/lib:/usr/local/dt/lib
This will correct the problem.
You may want to just use this .tcshrc file. (See the .tschrc section on this webpage for more information.)
Unix commands: a quick guide
This section offers a quick guide of UNIX commands available on most UNIX systems. Depending on the configuration, some of the commands may be unavailable on your system. All commands work on Sun Solaris operating system version 2.5.1 (also known as SunOS 5.5.1).
Directory and File Commands
cd d
Change to directory called “d”
mkdir d
Create new directory called “d”
mv f1 [f2…] d
Move file “f” to directory called “d”
mv d1 d2
Rename directory d1 as d2
ls
List files in directory
ls -1 filename
List files in detail
-a filename
Display of hidden files
cat filename
List contents of file
more filename
List file contents by screen
chmod mode filename
Change permission(r/w/x) of file
cp f1 f2
Copy file f1 into f2
sort filename
Alphabetically sort file called “f”
mv f1 f2
Rename file f1 as f2
rm f
Delete (remove) file f
-r filename
Delete (remove) file f recursively
dirname
Delete (remove) directory recursively
rmdir dirname
Delete (remove) directory (if given directory is empty)
Compilers
cc filename
C compiler
CC Filename
Sun’s C++ Compiler
gcc Filename
GNU C Compiler
g++ Filename
GNU C++ Compiler
f77 Filename
Fortran77 Compiler
f90 Filename
Fortran90 Compiler
pc Filename
Pascal Compiler
File compression
compress filename
Compress filename (filename will be replaced by filename.Z — it will add .Z extension)
uncompress filename
Expand filename.Z into its original size and remove .Z extension (reverse of compress command)
gunzip filename.gz
Expand filename.gz into its original size and remove .gz extension
gzip filename
Compress filename with GNU zip (gzip) and add .gz extension
zip zipname files
Create an archive compressed file that contains all files
unzip filename.zip
Extract files from filename.zip (reverse of zip command)
unarj filename.arj
Extract files from filename.arj
tar
Create tape archives and add or extract files (use man tar for more information)
File transfer
ftp hostname
using ftp program to perform FTP to/from hostname
ncftp hostname
A user-friendly FTP program
xftp
X-window interface to FTP
Print commands
lpr -P printername f
Output file to line printer
For ICL: lpr -Picl2 filename
lpq -P printername
Display the queue of printer jobs
For ICL: lpq -Picl2
lprm -P printername #job
Removes the job from the printer queue
For ICL: lprm -Picl2 –
Process control
CTRL/c *
Interrupt processes
sleep n
Sleep for n seconds
ps
Print process status stats
kill -9 n
Remove process n
CTRL/z *
Suspend current process
exit
Exit from shell
Text editors
pico filename
A simple text editor
vi filename
Vi editor
emacs filename
macs editor
xemacs filename
X window Emacs editor
nedit filename
Nedit editor
xedit filename
A simple X window text editor
Window manager
fvwm
feeble window manager
mwm
Motif window manager
olvwm
OpenLook virtual window manager
olwm
OpenLook window manager
twm
Tom’s window manager
X window programs
filemgr
OpenWindows file manager
xclock
display clock
oclock
display oclock
xcalc
calculator
xlock
lock your screen
xterm
a terminal or shell session
Miscellaneous
telnet hostname
Connect to hostname using telnet program
who
List logged in users
whoami
Display current user
finger [username]
Output user information
talk userid@hostname
Talk to userid at given hostname
write userid
Write to userid screen/session
ping hostname
Check if hostname is alive
man name
Unix manual entry for name
pwd
Print working directory
gs filename
A postscript previewer
xv filename
Image previewer
date
Print date & time
history
Display recent commands
alias [name]
Display command aliases
quota -v
Display disk quota for User
head f
Output beginning of file f
tail f
Output end of file f
passwd/yppasswd
Change password
alias name1 name2
Create command alias
unalias name1[na2…]
Remove command alias na
script filename
Save terminal session to given filename (useful to store a.out)
logout/exit/quit/bye
End terminal session
The software garden
All gardeners know better than other gardeners.
—Chinese proverb
Cadence
Cadence (IC4.4.6) can be run from lab machines or ernie.
Environment:
1. dot files:
a. add following lines to .cshrc or .tcshrc file:
setenv SFLM_SERVER nfs46c.ece.uic.edu
#For Cadence user
setenv PATH ${PATH}:/opt/cds/tools/bin:/opt/cds/tools/dfII/bin
setenv CDS_Netlisting_Mode “Analog”
setenv CLS_CDSD_COMPATIBILITY_LOCKING NO
setenv CADENCE /opt/cds
setenv CDS_LIC_FILE 1712@lserver1.ece.uic.edu:1712@lserver2.ece.uic.edu:1712@lserver3.ece.uic.edu
# end for Cadence
After adding these lines, do: source .cshrc or source .tcshrc
b. download following files to your home directory:
cds.lib display.drf .cdsenv .cdsinit
2. download transistor models into a directory called models in your home directory:
a. Models pertain to the MOSIS AMI 1.2 micron bulk CMOS process:
nmos12.m pmos12.m b. Models pertain to MOSIS HP 0.5 micron builk CMOS process: nmos05.m pmos05.m c. Models pertain to MITLL 0.25 micron FD-SOI CMOS process: hysoi2_NMOS.m hysoi2_PMOS.m
http://www.ece.uic.edu/~shenai/cds_environment.html
To run Cadence:
1. Cadence tools can be started from any directory by typing: icfb
2. Online manuals can be accessed by typing: cdsdoc(4.4.6)
Java
Using Java 1.4.2
J2SE is located on /usr directory on either bert or ernie.
To run java, set the path:
set path=($path /usr/j2se/bin)(for .cshrc file)
set path=(/usr/j2se/bin $path \.)(for .tcshrc file)
Here’s the information re: setting up path for jdk1.1.5
Path Variable – Add the absolute path of the “jdk1.1.5/bin” directory to your Unix path variable, as follows. The path variable enables Solaris to find the executables (javac, java, javadoc, etc.) from any current directory. To find out if the path is currently set for any java tools, execute: ernie> which java This will print the path to java, if it can find it. If you use the C shell (csh) or T shell(tcsh), you can set the path in your startup file (~/.cshrc) or (~/.tcshrc>as follows, for example: set path=($path /usr/local/jdk1.1.5/bin)(for .cshrc file)
set path=(/usr/local/jdk1.1.5/bin $path \.)(for .tcshrc file)
Then load the startup file and verify that the path is set by repeating the “which” command above: ernie> source ~/.cshrc or source ~/.tcshrc ernie>which java
This will print the path to java.
HP MDS
setenv MDSROOT /opt/mds_b.07.00
setenv PATH ${PATH}:${MDSROOT}/mdsbin
To start it type:
mds
Latex
Problem: if someone mounts /usr/local from us they
cannot write anything into /usr/local. dvips/xdvi try to produce
bitmaps of fonts using MakeTeXPK which in turn tries to write
the file into /usr/local/lib/texmf/fonts/tmp.
Fix: They need to set up an env variable that will tell
MakeTeXPK to write the file into a place where they have access.
e.g., setenv MTPK_DESTROOT $HOME/texfonts
make sure you have the following directories:
$HOME/texfonts
$HOME/texfonts/tmp
$HOME/texfonts/tmp/pk
$HOME/texfonts/tmp/pk/ljfour (this depends on the mode you are
using for the printer)
Next you to tell dvips to look for the fonts in this directory
setenv PKFONTS $HOME/texfonts//:/usr/local/lib/texmf/fonts//
You also need to tell xdvi to look for the fonts
setenv XDVIFONTS $HOME/texfonts/tmp/pk:
Marble
You need to include the following line in your .tcshrc file
setenv NPX_PLUGIN_PATH /usr/local/netscape/plugins
Project
We have a system on the SUN workstations which allows students to turn in
assignments to their T.A. Its consists of 2 programs: project, turnin
Both are located in /usr/local/bin and all the unix accounts are configured
to use this path.
project: To be used by the instructor/TA.
This program allows you to start and shut off submissions for
a specific assigment. To get more info check the man page by
typing “man project” or type “project -h”.
Example: Say you are the TA for ece 270 and you want to allow
students to turn in their first programming assigment which we will
call “project1”.
1. Log into the “i270” account.
(TA accounts are in the form “iXXX”, where XXX is the course
number)
2. To start submission type: “project -c ece270 -e project1”
This is create a directory called “submit/project1” in your
home directory and will start allowing students to submit
their assignments via “turnin”.
Also it will make “project1” the default assignments,
ie. Files will automatically be submitted into “project1”
if a student does not specify an assignment name while
using “turnin”.
3. To shut off submission to “project1” in “ece270” type:
“project -c ece270 -d project1”
4. To check the status of the projects type: “project -o”.
turnin: Used by students to turn in assigments.
To list info on ece270 type: “turnin -c ece270 -l”
To submit files for “ece270″, project name:”project1”, type
“turnin -c ece270 -p project1 fname1 fname2”.
for more info type “man turnin” or “turnin -h”
Note: If a student resubmits a file, the previous version
WILL BE DELETED from the submission directory.
All submitted files are stored in the instructors/TA home directory under
submit/project_name/user_name, where project_name is the name of the
project and user_name is the name of the user who submitted something.
The user_name file is a tar file and may or may not be compressed.
There is a sample shell script called “gradeit” in /usr/local/lab_info.
This program can be used by the TA to process the submitted files.
PLEASE use the script **ONLY*** if you understand how it works!
Ptolemy
setenv PTOLEMY /usr/local/ptolemy
set path = ($PTOLEMY/bin $path)
To run demo:
cd $PTOLEMY/demo
pigi
RTF
set path=($path /usr/local/bin)
setenv RTFLIBDIR /usr/local/lib/rtftohtml
rtftohtml yourfile.rtf
running rtftohtml on yourfile.rtf – will produce
yourfile.html (the main HTML document)
and yourfile_ToC.html (a Table of contents document)
and yourfile_fn.html (For any footnotes)
and yourfile.err (With any errors and warnings)
and yourfile1.pict, or yourfile1.wmf (for graphics files)
^ changes for each graphic file.
Saber
Add the following line in .cshrc or .tcshrc file:
setenv PATH ${PATH}:/usr/local/saber/bin
setenv PATH ${PATH}:/usr/local/saber/saberdesigner
setenv AILM_LICENSE_FILE 1712@lserver1.ece.uic.edu:1712@lserver2.ece.uic.edu:1712@lserver3.ece.uic.edu
save the file, then type the following command:
source .tcshrc
or source .cshrc
To run,
$saber
or $dscap (to start the schematic capture tool)
Silvaco
Silvaco is updated to recent version on ernie,bert and icl lab workstations.
C-Shell, tsh Users:
Add the following at the end of $HOME/.cshrc or .tcshrc file:
setenv PATH ${PATH}:/opt/silvaco/bin
setenv SFLM_SERVER nfs46c.ece.uic.edu
To run,
$ deckbuild
GUI program to access all packages: manager
If you copy $SILVACO to your local disk then you need to
rename the var.orig subdirectory to var
mv $SILVACO/var.orig $SILVACO/var
SICSTUS
SICSTUS Prolog is located in /usr/local/sicstus/bin/
To launch it, simply type in /usr/local/sicstus/bin/sicstus
To exit it, hit ^C and then e or
hit ^D or type in ‘halt.’
There are HTML documents in /usr/local/sicstus/doc/html
Sybase
try using this in your .tcshrc file:
setenv SYBASE /usr/local/sybase
set path=($SYBASE/bin $path)
setenv LD_LIBRARY_PATH $SYBASE/lib:$LD_LIBRARY_PATH
if that didn’t work use this in our .tcshrc file:
setenv DISPLAY `hostname`:0.0
setenv SYBASE /usr/local/sybase
setenv PATH $SYBASE/bin:${PATH}
setenv LD_LIBRARY_PATH $SYBASE/lib:${LD_LIBRARY_PATH}
Cmds to use:
isql -U -Sjupiter
syman doc_name
where:
userid: sybase useid
doc_name: command on which you want help
do an “ls /usr/local/sybase/doc” to see all the docs available
you can also use “sqsh” instead of “isql”. “sqsh” has a LOT more features.
Synopsys
NOTE!
Synopsys is updated to the latest version which is quite different from the previous one
which was used on spring ’03. This version is designed by a different vendor and doesn’t
support all the commands used on previous one like vhdldbx.
Please make sure to refer to user documentation about new commands . The old version
is not supported from the vendor and we don’t have license to use it.
It runs on grover.ece.uic.edu, oscar.ece.uic.edu and icl lab,
not in ernie and bert which are used strictly for checking the mail and managing ece accounts.
Add the following line in .cshrc or .tcshrc file:
setenv SYNOPSYS /usr/local/synopsys
setenv SYNOPSYS_SIM ${SYNOPSYS}/simulation
setenv SNPSLMD_LICENSE_FILE ${SYNOPSYS}/admin/license/license.dat
set path=( $SYNOPSYS/sparcOS5/syn/bin, $path)
source $SYNOPSYS_SIM/admin/setup/environ.csh
To view online docs type: iview
First time users need to copy startup file:
cp $SYNOPSYS/admin/setup/.synopsys_dc.setup ~/.synopsys_dc.setup
cp $SYNOPSYS/admin/setup/.synopsys_vss.setup ~/.synopsys_vss.setup
Executables:
dc_shell
design_analyzer — synthesizer
dt_shell
lc_shell
gvan
vhdlan — VHDL Analyzer. Compile VHDL into intermediate form. Your source file should have a .vhd extension.
vhdldbx — VHDL Debugger. Not supported in current version.
vhdlsim — VHDL Simulator. Run compiled VHDL programs, display results.
xfig
There are 2 different binaries, “visualworks” and “vwsybase.sun4” in
/usr/local/visual/bin. The first one is the plain Smalltalk system, the
second one contains additional stuff to connect to a sybase server.
A user has to use it as follows assuming “/usr/local/visual/bin” is
in their path.
visualworks /usr/local/visual/image/visual.im
OR
vwsybase.sun5 /usr/local/visual/image/visual.im
They can also copy the image to their home directory, that way their
env will persist with each session. This is because Smalltalk stores
the whole system state in the image file.