Skip to content

leovincentseles/adclab

 
 

Repository files navigation

adclab

Create bootable usb:

  • Download Centos 7 1810 from here
  • use rufus to make a bootable usb

Install the system:

  • select gnome desktop(select all)
  • create sudo user, and assign administration permission.

preparation step:

  • install the graphic driver for graphic card WX 2100
  • setting the network interface
    • ip: 140.113.xxx.xxx
    • netmask: 255.255.255.0
    • dns: 140.113.6.2
  • change chinese directory to english directory
    • export LANG=en_US
    • xdg-user-dirs-gtk-update : update new name
    • export LANG=zh_CN.UTF-8
    • xdg-user-dirs-gtk-update : keep old name
  • install google
    • sudo vi /etc/yum.repos.d/google.repo
    • sudo yum -y install google-chrome-stable

ssh server install

  • turn off SELinux
    • sudo vi /etc/selinux/config
    • SELINUX=disabled
    • sudo reboot
  • copy welcome script
    • sudo mkdir -p /usr/lib/lab-script
    • sudo vi /usr/lib/lab-script/mkmotd
    • sudo vi /usr/lib/lab-script/labShell
    • sudo chown adc /usr/lib/lab-script/mkmotd
    • sudo chgrp adc /usr/lib/lab-script/mkmotd
    • sudo chmod 755 /usr/lib/lab-script/mkmotd
    • sudo chown adc /usr/lib/lab-script/labShell
    • sudo chgrp adc /usr/lib/lab-script/labShell
    • sudo chmod 755 /usr/lib/lab-script/labShell
  • install figlet
    • sudo yum install epel-release
    • sudo yum install figlet
  • install ssh server
    • sudo yum install openssh openssh-server
    • sudo vi /etc/ssh/sshd_config
    • sudo service sshd restart

Autofs(nas)

  • sudo yum install autofs*
  • sudo yum install nfs-utils nfs-utils-lib
  • sudo vim /etc/auto.syno
  • sudo vim /etc/auto.master
  • sudo service autofs restart
  • sudo chkconfig autofs on
  • cd /net/lab/ : success

Ldap client(nas)

  • reference
  • sudo yum install {openldap,openldap-clients,nss-pam-ldapd}
  • setup / Authentication configuration
    • authentication setup
      • 緩衝區資訊
      • 使用 LDAP
      • 使用 LDAP 認證
      • 使用 TLS
      • ldap://140.113.xxx.xxx
      • dc=xxx,dc=xxx,dc=xxx,dc=xxx
  • 匯出憑證
    • cd /etc/openldap/cacerts/
    • sudo cp ~/Downloads/cert.pem cert.pem
    • sudo cp ~/Downloads/syno-ca-cert.pem syno-ca-cert.pem
  • sudo vi /etc/openldap/ldap.conf

auth config(nas)

  • reference
  • sudo authconfig --enableforcelegacy --update
  • authconfig --enableldap --enableldapauth --ldapserver="140.113.147.69" --ldapbasedn="dc=adclab,dc=nctu,dc=edu,dc=tw" --update
  • authconfig --enableldaptls --update

nsswitch.conf(nas)

  • sudo vim /etc/nsswitch.conf

nslcd config(nas)

  • sudo vim /etc/nslcd.conf
  • sudo service nslcd start
  • sudo systemctl enable nslcd

csh.cshrc

  • sudo vim /etc/csh.cshrc
  • sudo vim /etc/home.cshrc
  • sudo vim /etc/tool.cshrc

default shell

  • chsh : /bin/tcsh

some useful link

  • increase root directory partition: link

Troubleshooting

  • Failed to lock log file: /home/john/CDS.log.9
    • sudo yum install sssd-client.i686 nss-pam-ldapd.i686
  • wv libmng.so.1 shared object not found
    • sudo yum install libmng.x86_64
  • virtuoso command not found
    • sudo yum install ksh
    • sudo yum install libGLU

nas(nas)

  • sudo vim /etc/auto.syno test: # cd /net/lab
  • Ldap client
  • auth config
  • sudo service nslcd restart

CIC software

  • download to path : /usr/cad/cadence/
  • mmsim
    • sudo yum install elfutils-libelf-0.172-2.el7.i686
    • /usr/cad/cadence/CIC/mmsim.cshrc comment out 35、36
  • sudo vim /etc/tool.cshrc
    • source /usr/cad/cadence/CIC/.cshrc

nas user

  • Directory Server
    • 管理使用者 > add user
  • 控制台
    • 網域/LDAP > 更新LDAP資料
  • File Station
    • homes/lab
      • add folder 內容 > 擁有者 > 套用到資料夾

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 52.3%
  • Shell 43.5%
  • Makefile 4.2%