TI lab setup
The computers in TI lab will be setup as follows.
All home directories will be on the server ramanujan(10.7.51.101).
You will be able to login from any of the machines and see your(and other's) home directory
Access will be using EE (athreya) login and password.
All tools and libraries will be under /cad
on the server and replicated on local machines.
/data
partition on local machines will hold cadence (and any other long) simulation results. These will be accessible from everywhere as /host/machinename
e.g. /host/ti1
You don't need local installation of tools. Point to the correct global directory. This also ensures consistency. Any new tool can be experimented with in the local directory, but should finally be installed under /cad/tools
and the local copy removed. This way everyone can use it.
All the programs in /usr
will be updated regularly on ramanujan and will be replicated on local machines
Users
In general, personal setup should be the only things that you need to set. You shouldn't be resetting things which are already set by default.
Your shell will be zsh
which is DCF default. Do tcsh
or whatever to get into your favourite shell and set environment variables. DCF will soon change this default setting and it will be more convenient after that.
Files that you'll have to modify after the transition
.cshrc: Tool paths, tool related environment variables
-
.cdsinit: Bindkey paths, default simulation directory. The following line in .cdsinit will set the default correctly. envSetVal(“asimenv.startup” “projectDir” 'string “/data/yourusername/simulation”)
assura_tech.lib: assura path
cds.lib: Paths to cadence design libraries
-
Right now, the printer is connected to ti14 and you need to login to it to print.
TI lab users can see VLSI I/II and DSD lab user directories under /mnt/imports/vlsinfs
and design directories of Nagendra and Shanthi under /mnt/imports/nagendra
and /mnt/imports/shanthi
respectively
VLSI I/II and DSD lab users can see TI lab user directories under /mnt/ramanujan
and design directories of Nagendra and Shanthi under /mnt/imports/nagendra
and /mnt/imports/shanthi
respectively
Administrators
Bringing up a new machine for Debian/Lenny 64 bit hardware
Basic Installation Procedure:
Partitions: On a 160 GB HDD :
16 GB for /
71 GB for /cad
51 GB for /data
(no more than) 2 GB for swap
remaining for /opt
Option "NoAccel" "True"
Create directories home1, home2, home3, home5 and databse in /mnt. Create directories nagendra, shanthi and vlsinfs in /mnt/imports. Add the required entries in /etc/fstab to mount filesystems automatically at startup. (see other machine's /etc/fstab file)
Setting up Repositories & Installation of basic packages:
Other settings
Setting up LDAP:
ldap server : ldap://10.7.51.101 or ldap://10.7.0.2 (NOTE IT SHOULD BE ldap: NOT ldapi:)
Search base : dc=ee,dc=iitm,dc=ac,dc=in
Make local root Database admin: No
Does the LDAP database require login: No
Services to be used : group,password,shadow
File name - common-account
account sufficient pam_ldap.so
account required pam_unix.so
File name - common-auth
auth sufficient pam_ldap.so
auth required pam_unix.so use_first_pass
File name - common-session
session required pam_unix.so
session optional pam_ldap.so
File name - common-password
password sufficient pam_unix.so nullok obscure md5
password required pam_ldap.so
Setting up Automount for /data directories:
For e.g. /data 10.7.51.0/255.255.255.0(rw,sync) shares(with write access) the folder /data in this machine to other machines in the network with Internet address 10.7.51.0. These are controlled appropriately through the subnet mask. Google for more information
/host /etc/auto.host
∗ &:/data
To make Cadence and Matlab work properly
Install the following packages: apt-get install ia32-libs elfutils libc6-dev-i386
Create a soft link for the file /cad/tools/Berkeley_DA/lib/Linux_x86_64_AMD_64bit/libelf.so.1 in the folder /usr/lib32 so that Spectre Verilog works
Run the command sed -i 's/XINERAMA/FAKEEXTN/g' libmawt.so in the following folder(make a backup of the file!)
Only Matlab 7 works in debian. There is some issue with java that Matlab 6
GUI doesn't work. But Matlab6 can be used in command prompt by starting as
matlab -nodesktop
The cadence help manager invoked using
cdsdoc doesn't work because of some issues with Java. A fix is required for this.
Currently the ldap user doesn't have privileges to access special devices like /dev/snd/ /dev/cdrom because the console-kit-daemon which is supposed to give permissions to these nodes through Access control List couldn't be configured properly. As a result these nodes in /dev/ doesn't have read permission. Unmounting the cdrom may not be possible, but the eject button in the cd drive will automatically unmount it. Temporarily the system administrator can give permission through a particular user through ACL with the command setfacl -m <login name>:rw- /dev/snd/* But this should be used with caution as it may potentially collapse the Kernel. The device node should be reverted back to its original state using the command setfacl -b /dev/snd/* Fixed by installing the pam module libpam-devperm.
Setting Correct access permissions for Audio, CDrom, Flash player
Make sure the module libpam-devperm is installed
Add the entry :0 0600 /dev/snd/∗ to the file /etc/logindevperm
Add the entry session required pam_devperm.so before the line @include common-password in /etc/pam.d/gdm
These settings work only for gdm. For tty's it doesn't work
The user should copy this file
libflashplayer.so to his .mozilla/plugins folder. This 64 bit flash player is a beta version. The machine can be updated with this flash version once the stable version is released.
Wheezy Installation
Basic Packages to be installed:
apt-get install build-essential ssh rsync nfs-common rdist libstdc++5 nfs-kernel-server ntpdate autofs acl ksh nfs-common gv enscript
apt-get install xvnc4viewer vnc4server xcircuit vim vim-gtk imagemagick xpdf xfig mplayer emacs nedit htop pdftk
apt-get install jabref kile texlive-latex-extra texlive-latex-recommended
apt-get install octave-communications octave-control octave-data-smoothing octave-general octave-io octave-nan octave-missing-functions octave-odepkg octave-optim octave-plot octave-signal octave-specfun octave-symbolic octave-splines
apt-get install zsh csh tcsh
apt-get install libck-connector0 libpam-ck-connector consolekit
apt-get install texlive-full lyx noweb unison unison-gtk impose+ scilab smplayer
LDAP Setting
Package installation
account sufficient pam_unix.so
account required pam_ldap.so
auth sufficient pam_unix.so nullok_secure
auth required pam_ldap.so use_first_pass
password sufficient pam_unix.so nullok obscure min=4 max=8 md5
password required pam_ldap.so use_first_pass
edit /etc/nsswitch
passwd: compat ldap
group: compat ldap
shadow: compat ldap
Edit /etc/ldap/ldap.conf
Comment all the lines and add the following lines.
URI ldap://10.7.0.2:389
BASE dc=ee,dc=iitm,dc=ac,dc=in
To install 32 bit libraries
dpkg --add-architecture i386
apt-get update
apt-get install libc6:i386
apt-get install ia32-libs
Hosts list
# DCF Related
10.7.0.1 athreya.ee.iitm.ac.in athreya
10.7.0.2 volt.ee.iitm.ac.in volt
10.7.0.3 agasthya.ee.iitm.ac.in agasthya proxy
# NFS Servers
10.7.7.43 server3
# License servers
10.7.9.36 server6
10.7.9.34 server1
10.7.9.35 server5
10.7.7.42 server2
10.65.0.45 moon
Mounting /home
server3:/home /home nfs rw,rsize=8192,wsize=8192,timeo=14,intr,bg,soft 0 0