VLSI Design Lab0 - Setup Working Environment Advisor : Prof.An-Yeu Wu

Download Report

Transcript VLSI Design Lab0 - Setup Working Environment Advisor : Prof.An-Yeu Wu

ACCESS IC LAB
Graduate Institute of Electronics Engineering, NTU
VLSI Design Lab0 Setup Working
Environment
Advisor : Prof.An-Yeu Wu
Speaker : Pei-Ling Shen
Pei-Ling Shen
ACCESS IC LAB
ACCESS IC LAB
Graduate Institute of Electronics Engineering, NTU
What’s Workstation
Root
USER
USER
limitations
Pei-Ling Shen
USER
• Multiple User
• Stable Operation
• High throughput
rate
• Popular OS- Unix
ACCESS IC LAB
Graduate Institute of Electronics Engineering, NTU
Abstraction of Unix
• Shell
解
釋
指
令
Hardware
Kernel
Shell
Application
Pei-Ling Shen
應
用
程
式
- Command Interpreter
- Language : “Shell Script”
- Noted Symbol : % (C-Shell)
- path=/usr/bin (.cshrc)
ACCESS IC LAB
Graduate Institute of Electronics Engineering, NTU
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
ACCESS IC LAB
Graduate Institute of Electronics Engineering, NTU
Getting Start
• 申請一個rm231的帳號
• 至rm231拿申請單,填寫完畢交回rm231
• 下載x-window
• http://www.starnet.com/products/ (試用版)
• 安裝x-window
• MS-Windows 本身並不提供遠程的圖形或視
窗交換。需要另外安裝一個 MS-Windows
環境中的 X 伺服軟體
Pei-Ling Shen
ACCESS IC LAB
Graduate Institute of Electronics Engineering, NTU
X-Window setup(I)
• 開啟 X-config,按下 Add...
Pei-Ling Shen
ACCESS IC LAB
Graduate Institute of Electronics Engineering, NTU
X-Window setup(II)
• step(2):填入 Session name (可隨意命名),
connecting using 選擇 XDMCP
Pei-Ling Shen
ACCESS IC LAB
Graduate Institute of Electronics Engineering, NTU
X-Window setup(III)
• step(3):XDMCP欄選Query, Hostname
填入cadXX.ee.ntu.edu.tw,(xx=16~39),按下
save
Pei-Ling Shen
ACCESS IC LAB
Graduate Institute of Electronics Engineering, NTU
Open X-window
• 開啟 X-Win32 ,隨即就會常駐在螢幕右
下方
Pei-Ling Shen
ACCESS IC LAB
Graduate Institute of Electronics Engineering, NTU
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
ACCESS IC LAB
Graduate Institute of Electronics Engineering, NTU
Use Workstations in R231(I)
• Login
• Key in your username
• Key in your password
• You can choose CDE mode
(actually, OpenWindow
environment is more like to MSWindows environment. You can
try it by yourself.
Pei-Ling Shen
• Open a terminal
ACCESS IC LAB
Graduate Institute of Electronics Engineering, NTU
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
ACCESS IC LAB
Graduate Institute of Electronics Engineering, NTU
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
ACCESS IC LAB
Graduate Institute of Electronics Engineering, NTU
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
ACCESS IC LAB
• cd
Graduate Institute of Electronics Engineering, NTU
Useful Commands(II)
• 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
ACCESS IC LAB
Graduate Institute of Electronics Engineering, NTU
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.tw to find more info
Pei-Ling Shen
ACCESS IC LAB
Graduate Institute of Electronics Engineering, NTU
Summary
•
•
•
•
開/關機 : WS Manager
使用完畢,利用ps指令來查看process
不使用或暫時離開請logout
不可存無關研究資料在WS 上
Pei-Ling Shen
ACCESS IC LAB
Graduate Institute of Electronics Engineering, NTU
Assignment
•
•
•
•
Due on Friday March 21,2003
1.申請一個工作站的帳號
2.灌好x-window,確定可連上工作站
3.設定.cshrc
Pei-Ling Shen