180 likes | 201 Views
Get guidance on setting up the working environment for VLSI Design Lab from Prof. An-Yeu Wu. Learn about workstation limitations, Unix OS, Shell scripting, X-Window setup, and useful commands.
E N D
VLSI Design Lab0 -Setup Working Environment Advisor : Prof.An-Yeu Wu Speaker : Pei-Ling Shen ACCESS IC LAB Pei-Ling Shen
Root USER USER USER limitations What’s Workstation • Multiple User • Stable Operation • High throughput rate • Popular OS- Unix Pei-Ling Shen
Abstraction of Unix • Shell - Command Interpreter - Language : “Shell Script” - Noted Symbol : % (C-Shell) - path=/usr/bin (.cshrc) Pei-Ling Shen
Rule • License A. 申請帳號 - WS Manager B. 開/關機 - WS Manager (no way for users) • Basic instruction 1. 更改密碼 : passwd 2. 登 出 : logout (not shut down power) 3. 查看程序: ps (process) 4. 刪除程序: kill –9 PID Pei-Ling Shen
Getting Start • 申請一個rm231的帳號 • 至rm231拿申請單,填寫完畢交回rm231 • 下載x-window • http://www.starnet.com/products/(試用版) • 安裝x-window • MS-Windows 本身並不提供遠程的圖形或視窗交換。需要另外安裝一個 MS-Windows 環境中的 X 伺服軟體 Pei-Ling Shen
X-Window setup(I) • 開啟 X-config,按下 Add... Pei-Ling Shen
X-Window setup(II) • step(2):填入 Session name (可隨意命名), connecting using 選擇 XDMCP Pei-Ling Shen
X-Window setup(III) • step(3):XDMCP欄選Query,Hostname填入cadXX.ee.ntu.edu.tw,(xx=16~39),按下save Pei-Ling Shen
Open X-window • 開啟 X-Win32 ,隨即就會常駐在螢幕右下方 Pei-Ling Shen
Use Workstation from PC • Connecting from your PC • Step1.Open the X-Window software in your pc. • Step2.Right click the little icon,choose “sessions”. • Step3.Login with your account and password • Step4.Execute below command in the prompt. • setenv DISPLAY your_PC_IP:0 • e.g setenv DISPLAY 140.112.xxx.xxx:0 Pei-Ling Shen
Login Key in your username Key in your password You can choose CDE mode (actually, OpenWindow environment is more like to MS-Windows environment. You can try it by yourself. Open a terminal Use Workstations in R231(I) Pei-Ling Shen
Use Workstations in R231(II) • If you want to login another WS (ex: cad27) • xhost + • telnet cad27.ee.ntu.edu.tw • setenv DISPLAY your_PC_IP:0 Pei-Ling Shen
Use Workstations in R231(III) • Logout • We recommend you that • PC environment is more friendly • Telnet to cad27 or cad29 (they are much faster!) Pei-Ling Shen
Useful Commands(I) • ls • List a directory’s contents • ls –a :list the hidden files • cp • Copy files from one directory to another • e.g cp filename1 filename2 • mkdir • Make a new directory Pei-Ling Shen
Useful Commands(II) • cd • Change directory • ps • Display process status by process identification number and name • kill –9 process_number • Terminate a running process, when it crash • rm -r • quota • tar • e.g tar xvf sample.tar Pei-Ling Shen
Edit your cshell file • The shell is an interface between unix operating system and users. • %cp /home/cad28_1/public/.cshrc . • %textedit & ,check those sources and alias’ • You can also link to http://cad.ee.ntu.edu.twto find more info Pei-Ling Shen
Summary • 開/關機 : WS Manager • 使用完畢,利用ps指令來查看process • 不使用或暫時離開請logout • 不可存無關研究資料在WS 上 Pei-Ling Shen
Assignment • Due on Friday March 21,2003 • 1.申請一個工作站的帳號 • 2.灌好x-window,確定可連上工作站 • 3.設定.cshrc Pei-Ling Shen