Development Environment
Lecturer : Eugene Lee
ICLAB NCTU Institute of Electronics
1
Login to the terminal & Change Password
Upload/Download Files Through FTP
Set DISPLAY Environment
Basic Operations
On-line Text Editor – VIM
Text Editor – notepad++
Discussion Board
ICLAB NCTU Institute of Electronics
2
Login to the terminal
Download, PUTTY, PIETTY, or any other telnet
software, MobaXterm: PCMAN, …
– download MobaXterm here (http://mobaxterm.mobatek.net/)
– download PUTTY here
(http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)
– download PIETTY here (http://ntu.csie.org/~piaip/pietty/)
Open PUTTY (or PIETTY)
• >ee??.ee.nctu.edu.tw (number ?? may start from 01 to 05)
• >linux??.ee.nctu.edu.tw (number ?? may start from 01 to 35)
For information security, it is necessary to change the
password of your account ASAP!
Use the command
– >passwd
ICLAB NCTU Institute of Electronics
3
Login to the terminal : MobaXterm
http://mobaxterm.mobatek.net/
ICLAB NCTU Institute of Electronics
4
Login to the terminal : MobaXterm
Remote Host location:
linux01~linux35, ee01 ~ ee05
e.g : ee05.ee.nctu.edu.tw
ICLAB NCTU Institute of Electronics
5
Login to the terminal : MobaXterm
Account: iclab01~70
Default Password:
iclab
ICLAB NCTU Institute of Electronics
6
Upload/Download Files: FileZilla
With a FTP (File Transfer Protocol) software
– Login to ee??.ee.nctu.edu.tw - series workstations.
– Download / Upload files as usual.
– FileZilla
21 for FTP(default)
ICLAB NCTU Institute of Electronics
7
Upload/Download Files : Terminal
With a terminal
– Use ftp ee??.ee.nctu.edu.tw to enter the main directory of your
account.
ICLAB NCTU Institute of Electronics
8
Upload/Download Files : Terminal
With a terminal
– Use get to download files and put to upload files.
– Use bye to logout.
ICLAB NCTU Institute of Electronics
9
If not using MobaXterm:
Set DISPLAY Environment
When using GUI tools such as nWave, nLint, IC
Compiler,..., it’s necessary to transmit the GUI
windows from the workstation to your PC.
If you’re using MobaXterm,
then execute the tool directly
Open Xming
– download Xming here
>setenv DISPLAY 140.113.xxx.xxx:0
Open the GUI tool
ICLAB NCTU Institute of Electronics
10
Linux : Basic Operations
>man COMMAND //format and display the on-line manual pages
– ex: man ln
>mkdir DIRECTORY //make directory
– e.g. mkdir –p /home/test
>cd DESTINATION //change current directory
– e.g. cd ../iclab08/Lab01/
– e.g. cd (change to home directory)
>cp SOURCE DESTINATION //copy files
– e.g. cp ABC.v DEF.v
– e.g. cp –rf Lab01/ Lab02/
>mv SOURCE DESTINATION //move or rename files
– e.g. mv ABC.v ../ABC.v
– e.g. mv ABC.v DEF.v
ICLAB NCTU Institute of Electronics
11
Linux : Basic Operations
>rm FILE_NAME //remove (delete) files
– e.g. rm ABC.v
– e.g. rm –rf Lab01/
>ls //list directory contents
– e.g. ls –l
– or you can use dir as well.
>ln TARGET LINK_NAME //make links between files
– e.g. ln –s ~iclabt01/LIB/slow.db slow.db
>quota //display disk usage and limits
– e.g. quota
ICLAB NCTU Institute of Electronics
12
On-line Text Editor – VIM
>vi filename //create a file
– e.g. vi test.v
– e.g. vim test.v
i
Insert Mode
[ESC]
Command Mode
:
Visual Mode
[ESC]
ICLAB NCTU Institute of Electronics
13
On-line Text Editor – VIM
Command mode
– Move cursor:
• [Page Down], [Page Up]
• [Home], [End]
• ↑↓←→: move cursor
• G: cursor moves to last column
• nG: “n” is number. cursor moves to “n”th column
• gg: cursor moves to the first column. (=1G)
• n<Enter>: “n” is number. cursor moves down n columns.
– Search & Replace:
• /word: search for ”word”
• n: search the next
• N: search the previous
ICLAB NCTU Institute of Electronics
14
On-line Text Editor – VIM
– Delete & Copy & Paste:
• [delete] or x: delete the character under the cursor.
• X: delete the character before the cursor.
• dd: delete a column where the cursor located at.
• ndd: “n” is number. delete “n” columns.
• yy: copy a column where the cursor located at.
• nyy: “n” is number. copy “n” columns.
• u: recover.
• . : repeat the previous action.
• [Shift]+v : select the column where the cursor located at.
• [Ctrl]+v+[Shift]+I : edit multi-line.
ICLAB NCTU Institute of Electronics
15
On-line Text Editor – VIM
Insert mode:
• i : switch to insert mode before the current position.
• [Esc]: switch from the insert mode to the command
mode
Visual mode:
• :w : write the current buffer to disk.
• :q : closes current window.
• :wq : write the current buffer to disk and closes current
window.
• :q! : closes current window forcibly.
• :set nu : display the column number.
ICLAB NCTU Institute of Electronics
16
Text Editor – notepad++
https://notepad-plus-plus.org/
ICLAB NCTU Institute of Electronics
17
Text Editor – notepad++
ICLAB NCTU Institute of Electronics
18
Text Editor – notepad++
upload/download
connect
Edit multi line: Alt + left mouse button
ICLAB NCTU Institute of Electronics
19
Discussion board
• https://www.facebook.com/groups/547755475584158/
①
Login your facebook account
ICLAB NCTU Institute of Electronics
20