Please Do Not skip steps, and pay close attention to the instructions
- NCHC registration and login
- Thinlinc download and connect NCHC
- Uploading files to NCHC and downloading files
- iServer (Website): Used to create server accounts and enable OTP (One-Time Password) functionality to secure accounts.
- Terminal (macOS) or CMD (Windows): Access the server or supercomputer remotely from the local machine for command-line operations.
- ThinLinc (Local Software): Provides a graphical interface for remote server operations, suitable for tasks requiring a desktop environment.
- rsync (macOS Tool) or FileZilla (Windows Software): Used for transferring and managing files between the local machine and the server.
This is a guide for NCHC registration and login. Please follow the steps below in order.
-
Go to the iService interface: https://iservice.nchc.org.tw/nchc_service/index.php?lang_type=
-
Click "Registeration" in the upper right corner of the screen.
-
Read and agree to the iService Member Registration and Service Terms.
-
Enter the desired iService account name. (Note: The iService account here is only for logging into the iService website (not the supercomputer!))
-
Fill out the Member Information and Supercomputer account information sequentially. (Note: A single mobile number can only be used to apply for one account.) (Note: Make sure to record the email & password used for registering (for logging into the iService website), as well as the supercomputer account & password (for logging into and operating the NCHC).)
-
Complete the verification as instructed. (Note: The member registration confirmation email will be sent to the email used for registration, and the registration authorization code will be sent via SMS.)
-
Go to the iService website: https://iservice.nchc.org.tw/nchc_service/index.php?lang_type=
-
Click the following options at the top of the screen: Member Center -> Member Profile -> System Account
A. Check if your supercomputer account has the "Enable" label next to it. If not, please check if you have completed the verification step in Registering for an iService Account.(Note: You may periodically change the supercomputer password if necessary.)
B. Click "Create OTP Token" and check your email for the "Token Registration Notification".
C. Follow the instructions in the email to install the 'IDExpert' app and complete the mobile binding. (https://iservice.nchc.org.tw/nchc_service/nchc_service_qa_single.php?qa_code=774)
- After accessing the iService webpage, click the following options at the top of the screen: Member Center -> Projects -> My Projects
- Please fill NCHC Account Registration form. [NCHC Account Registration form](https://docs.google.com/forms/d/e/1FAIpQLSdj1NXX9Z7DCfTjYdZQKBB3T6H3DXBOz3eZLf34g4zGW-2Sug/viewform?usp=sf_link
- After filling out the form, please wait for the TA to add your account to the "Fantastic Genomic Biomarkers and Where to Find Them" project.
- In CMD (or Terminal), type
ssh [email protected]
to log into the NCHC biomedical node.
ℹ️
ssh
: Log in to a remote server.- Usage:
ssh user@hostname
- 'user' is your username on the remote server, and 'hostname'is the IP address or hostname of the remote server.
-
Enter the two-factor authentication method (this is not the supercomputer password).If you chose two-factor authentication method 1 or 3, you will need to enter the OTP.
-
Enter the supercomputer password (this is not the iService login password). It is normal if the password does not appear on the screen while typing.
-
Enter OTP
!! Note: Enter the supercomputer password first, then the OTP. Do not reverse the order.
-
Download software: thinlinc official website
-
Download and install the version corresponding to your computer from the Thinlinc official website.
-
Ensure that NCHC OTP is enabled.
Here remind you if you still cannot log in after following the steps below, please check the following:
(1) If you encounter "Permission denied (keyboard-interaction)", please ensure you have filled out the form provided by the instructor. If not, fill it out immediately and notify the TA.
(2) Confirm that OTP authentication is enabled on the iService website.
(3) Ensure the input order during login is correct.
(4) Verify that the supercomputer password is entered correctly (Note: This is different from the iService account password).
(5) Pay attention to case sensitivity, language switching, and full-width/half-width character switching issues (Mac users should be extra cautious). If all the above issues are resolved and you still cannot log in, please notify the instructor or TA. Do not force a login attempt, as it may lock your account!
-
Enter the login node
t3-c4.nchc.org.tw
in the server field. -
Enter your "NCHC supercomputer account" in the username field.
-
Enter "1"or"3" in the password field, then press enter to log in. (Note: Do not enter the supercomputer password or iService password here!)
-
Enter your "NCHC supercomputer password" (Note: This is the supercomputer password, not the iService password!)
-
Use your mobile app to obtain the OTP. Enter the OTP just obtained (This is not the supercomputer password or the iService password!), this step should be down twice!
-
After logging in, click on the top left "Activities" to see nine dots (Show Applications) appear on the left. Click on it, then select Xfce Terminal.
(==Reminder: If the system logs you out after a period of inactivity, you will need to repeat the login process==)
- In the terminal, use the
cd
command to navigate to your directory under the /work path on the host:
cd /work/{your_username}
- Use the
pwd
command to verify if you are in the correct directory.
ℹ️
cd
is a commonly used command in command-line tools. It stands for change directory and is used to switch the current working directory in a terminal or command-line interface.
Usage of cd:
cd .. # Move up to the parent directory
cd ~ # Return to the user's home directory
cd # Used without arguments, it will switch the current directory back to the user's home directory
cd - # Switch back to the previous working directory
Note: There is a "space" between the command and the path. Do not type it as "cd/work/{your_username}". The same applies to the following code as well. Tip: Use your mouse to select and confirm if there is a space.
Note: If you copy the command, make sure to check if anything needs to be modified! Note: Replace {your_username} entirely with your supercomputer account. Do not include the {} symbols! Also, do not delete the /. The same applies to the following code as well.
ℹ️
pwd
print working directory, is used to display the full path of the current working directory. It is especially useful when working in multi-level directories, allowing you to check your current location at any time.
- Mac users can use the terminal and the rsync command to upload or download files.
- Windows users can use FileZilla to upload or download files.
-
First, ensure that the three files you want to upload are placed together in a separate folder on your computer (Do not store them in your computer’s desktop or download folder, as the subsequent steps will upload all files in that folder).
-
Open the local terminal on your computer (Note: Open a new terminal, not the one where you are logged into the NCHC host!).
-
Use the "cd" command to navigate to the directory containing the files you want to upload (You can quickly input the folder path by dragging the folder into the terminal command line). (For reference on how to display the file or folder path in Finder on a Mac, see macOS User Guide(https://support.apple.com/zh-tw/guide/mac-help/mchlp1774/mac)).
-
Use the following command to upload the files from your local directory to
/home/spercomputer account/HW1
on the NCHC host (Replace your_username with your actual username):rsync -azrvh [email protected]:/home/suppercomputeraccount/HW1
ℹ️
rsync
:The command itself, used for synchronizing files and directories.-azrvh
:
-
-a: Archive mode. This is a combination of several options that preserve the structure and attributes of the files. It ensures that symbolic links, devices, attributes, permissions, ownerships, and timestamps are preserved. Essentially, it attempts to make an exact copy of the source.
-
-z: Compress file data during the transfer. This option compresses the data as it is being transferred to reduce the amount of data that needs to be sent over the network or between locations.
-
-r: Recursive. This option tells rsync to copy directories recursively. It is necessary when you want to synchronize directories and their contents.
-
-v: Verbose. This option increases the verbosity of the output, providing more information about what rsync is doing during the synchronization process. It shows details about the files being transferred and other related actions.
-
-h: Human-readable. This option makes the output more readable by converting file sizes into a human-friendly format (e.g., KB, MB) rather than displaying raw byte sizes.
-
".": This represents the source directory. In this case, it means the current directory. rsync will synchronize the contents of the current directory to the specified destination (which is missing in this command).
Note: If the directory name on NCHC is not "HW1", modify it accordingly.
(Note: The "."represents the current directory.) (Important: There must be a space between the file and ".") (Note: If the files are large, it may take some time to upload, so be patient.) 5. Enter your two-factor authentication, supercomputer password, and OTP (required only if you selected 1 or 3 as your authentication method) in sequence to start uploading the files.
-
Open the local terminal and
cd
to the directory where you want to download the files (You can input the folder path by dragging the folder into the terminal command line). (Note: Open a new terminal, not the one where you are logged into the NCHC host!). -
Use the following command to download files from NCHC to the current local directory:
rsync -azvh [email protected]:file path .
If you need to download a folder, modify the command to rsync -azrvh
.
(Important: There must be a space between the file and ".") 3. Enter your authentication method, supercomputer password, and OTP in sequence to start the download. After the download is complete, you can access the files from your local machine.
-
If you haven’t installed FileZilla yet, download it from this link, select FileZilla Client, and click download. FileZilla download
-
Open FileZilla and click on the Site Manager in the top left corner.
If successful, you’ll see the following screen:
-
Click New Site and fill in or change the options as shown in the following screen:
-
Follow the steps in Uploading Files Using FileZilla steps 1-7 to connect.
-
On the left side, navigate to the directory where you want to download the files (to avoid losing track of where the files are saved).
-
On the right side (NCHC directories), select the files you want to download, right-click and choose Download, then follow the prompts to enter your two-factor authentication, supercomputer password, and OTP in sequence. The files will be downloaded to the directory displayed on the left side of the screen.
Note: To open a file, do not click on it in FileZilla's local site; instead, go to your computer's desktop and open the file from the saved location. If you click on the file name directly in FileZilla's local site, the file will be uploaded back to NCHC.
Protocol: SFTP-SSH file
Host: t3-c4.nchc.org.tw
Logon Type: interactive
User: your supercomputer account
-
After making the changes, click Connect and follow the prompts to enter your two-factor authentication, supercomputer password, and OTP in sequence. (Note: Do not enter the supercomputer password at every prompt; follow the instructions and enter the correct information in the correct order.)
-
After successfully connecting, the left side of the screen will show your local directories, and the right side will show your NCHC directories.
-
On the right side under "Remote Site," navigate to the directory where you want to upload the files.
-
On the left side (local directories), select the files you want to upload, right-click and choose Upload, then follow the prompts to enter your two-factor authentication, supercomputer password, and OTP in sequence. This will upload the files to NCHC.
不要跳步驟、不要跳步驟、不要跳步驟 請看好文字及注意事項、請看好文字及注意事項、請看好文字及注意事項
- 國網註冊及登入
- Thinlinc下載並連結國網
- 上傳檔案至國網及至國網下載檔案
- iServer(網站):用於建立伺服器帳號,並啟用 OTP(一次性密碼)功能來保護帳號安全
- Terminal開啟終端機(macOS)或CMD命令列(Windows):從本地電腦遠端登入伺服器或超級電腦,進行指令操作
- ThinLinc(local 軟體):用於透過圖形化介面遠端操作伺服器,適合處理需要桌面環境的工作
- rsync(macOS 工具)或FileZilla(Windows 軟體):在本地與伺服器之間傳輸與管理檔案
這是一份國網註冊及登入的教學指南,請按照以下步驟逐一操作
- 進入iservice介面:https://iservice.nchc.org.tw/nchc_service/index.php?lang_type=
- 點選畫面右上角的"註冊"
- 閱讀並同意iService會員註冊及服務使用條款
- 請輸入預計註冊的iservice帳號 (注意:這裡的iservice帳號只是用來登入iservice網站(非主機!)用的)
- 依序填寫會員資料、主機帳號資料
(注意:一支手機號碼只能申請一個帳號)
(注意:請記下你用來註冊的信箱&密碼(用來登入iservice網站)、記下你的主機帳號&密碼(用來登入及操作國網主機))
- 依照指示完成驗證 (注意:會員註冊確認信會寄送到你用來註冊的信箱、註冊授權碼會寄送到手機簡訊)
- 進入iservice介面:https://iservice.nchc.org.tw/nchc_service/index.php?lang_type=
- 點選畫面右上角的"登入"
- 依序點選畫面上方的:會員中心->會員資訊->主機帳號資訊
A. 注意你的主機帳號旁邊是否有註記"啟用",若沒有請注意註冊iservice帳號是否有完成驗證步驟
(注意:若有需要可自行定期更改主機密碼)
B. 請點選"建立OTP載具",並到當時註冊的信箱中收取"載具註冊通知信"
C. 依據信件中的指示安裝『IDExpert』APP』並完成綁定手機
*更詳細的取得OTP認證碼步驟請參考連結文章
- 進入iservice網頁後,依序點選畫面上方的:會員中心->計畫管理->我的計畫
- 請填寫表單NCHC Account Registration form
- 完成表單後,敬請等待助教們將您的帳號加入本課程「2024生物標記物與它們的產地」的計畫中
- 在CMD(或terminal)中打上
ssh 主機帳號@t3-c4.nchc.org.tw
登入國網生醫節點
ℹ️
ssh
:登錄到遠程伺服器- 用法:
ssh user@hostname
- 'user'是你在遠程伺服器上的用戶名,'hostname' 是遠程伺服器的 IP 地址或主機名。
- 輸入兩階段驗證方式(不是主機密碼),若兩階段驗證方式選擇1或3,需要輸入OTP
- 輸入主機密碼(不是登入iservice的密碼),輸入密碼時密碼沒有出現在螢幕上是正常的
- 輸入OTP
!!注意是先輸入主機密碼,再輸入OTP,不要輸反了
- 下載需要用到的軟體:Thinlinc
- 在thinlinc官網下載您的電腦相對應的版本並安裝即可
- 確認國網OTP是否已啟用
(小提醒) 依照以下步驟仍無法登入時,請先確認:
(1) 如果出現Permission denied (keyboard-interaction),請確認當時是否有填寫老師給你的表單,如果沒有請立馬填寫、通知助教
(2) 是否有到iservice網站啟用OTP認證
(3) 登入時,輸入的東西順序是否正確
(4) 主機帳號密碼是否輸錯 (注意:跟iservice帳號密碼不一樣)
(5) 釐清大小寫/中英切換/全形半形字切換問題 (Mac使用者更需注意)
若上述問題都排除後,仍無法登入,請通知老師or助教,千萬不要硬登!會被鎖起來!!!
-
請在server輸入登入節點
t3-c4.nchc.org.tw
-
請在username 輸入「國網主機帳號」
-
請在password 輸入「1」,再按 enter 登入 (注意:這裡不是輸入主機密碼、不是iservice密碼!!!)
-
登入之後,點選左上角 Activitives 後會看到左邊出現九個點 (Show Applications),點進去之後,選擇 Xfce Terminal
(==小提醒:如果過一陣子沒有使用,系統會自動跳出,這時候再重新操作登入流程==)
- 在terminal利用
cd
指令,進入自己的主機、位於/work
路徑下的空間
cd /work/{your_username}
- 使用
pwd
可查看所在位置是否正確
ℹ️
cd
是命令列工具中的一個常用指令,全稱為 change directory,用來在終端或命令列中切換當前工作目錄
cd的用法:
cd [目錄路徑] #切換到指定目錄
cd .. #返回上一級目錄
cd ~ #回到使用者主目錄
cd #直接使用,會將當前目錄切換回使用者的主目錄
cd - #這會將當前目錄切換到上一次使用的目錄
- 注意:指令跟路徑之間有"空白",不要輸成"cd/work/{your_username}",後面的程式碼也是一樣
- 小技巧:用滑鼠選取、確認一下有無空白
- 注意:如果直接複製指令碼、記得看一下是否有要改的地方!!!
- 注意:請將
{your_username}
整個改成你的主機帳號,不要把"{}"也打入!也請不要把"/"刪掉!後面的程式碼也是一樣
ℹ️
pwd
print working directory,用來顯示當前所在的工作目錄的完整路徑,特別是在多層目錄中工作時,可以隨時查看當前的位置
- 使用Mac的同學可使用終端機並搭配rsync指令上傳/下載
- 使用Windows的同學可使用FileZilla上傳/下載
-
首先,先確認你自己的電腦,你要上傳的3個檔案是否統一放在一個獨立的資料夾(千萬不要放到本機電腦的desktop or download,不然依照後面的步驟會把所有在資料夾的檔案全部上傳喔)
-
"cd"到你要上傳的資料夾位置(資料夾位置的部分,可用滑鼠拖曳的方式將資料夾拉到終端機指令區,即可快速輸入資料夾位置) (附註:『Mac如何在finder顯示檔案或檔案夾的路徑位置』可參見macOS 使用手冊)
-
使用以下指令將本機資料夾中的檔案上傳到
/home/主機帳號/HW1
下 (請自行將主機帳號替換成自己的)rsync -azrvh . 主機帳號@t3-c4.nchc.org.tw:/home/主機帳號/HW1
ℹ️
rsync
:這是用來同步文件和目錄的命令工具-azrvh
:
- -a:歸檔模式。這是一個選項組合,保留文件的結構和屬性。確保符號鏈接、設備、屬性、權限、所有權和時間戳被保留。基本上,它會嘗試創建源文件的精確副本。
- -z:在傳輸過程中壓縮文件數據。這個選項會在數據傳輸過程中進行壓縮,以減少需要通過網絡或在位置之間傳輸的數據量。
- -r:遞歸。這個選項告訴 rsync 以遞歸方式複製目錄。當你想同步目錄及其內容時,這個選項是必要的。
- -v:詳細模式。這個選項增加了輸出的詳細程度,提供更多有關 rsync 在同步過程中正在做什麼的信息。它顯示有關正在傳輸的文件和其他相關操作的詳細信息。
- -h:人類可讀。這個選項使輸出更易於閱讀,將文件大小轉換為更友好的格式(例如 KB、MB),而不是顯示原始字節大小。
- ".":這表示源目錄。在這種情況下,它意味著當前目錄。rsync 會將當前目錄的內容同步到指定的目標位置(在這個命令中目標位置缺失)。
注意!如果你在國網上建的資料夾名稱不是 "HW1" 的話,請根據你的資料夾名稱更改 (附註:"."代表你現在資料夾所在的位置) (注意:檔案與 "." 之間需空一格) (附註,檔案比較大,可能會上傳很久,可以打坐冥想) 5. 依序輸入兩階段驗證方式、主機密碼與OTP(若兩階段驗證方式選擇1或3才需要) 後就會將資料夾中的檔案開始上傳
-
開啟本機端的終端機並
cd
到檔案要下載到的位置(可用滑鼠拖曳的方式將資料夾位置輸入到終端機中) (注意,要另外開一個終端機,不是你現在有登入國網主機的終端機!) -
使用以下指令將國網上的檔案下載到本機端當前路徑
rsync -azvh 主機帳號@t3-c4.nchc.org.tw:檔案路徑 .
若需要下載的為資料夾,則須在前面的指令改為
rsync -azrvh
(注意:檔案與 "." 之間需空一格) -
依序輸入 1、主機密碼與OTP 後就會開始下載,下載完成後即可從本地端開啟檔案
- 若沒安裝FileZilla的同學,請至此網址下載,點選FileZilla Client並點選download
- 開啟FileZilla,點選左上角的站台管理員
若成功會看到以下畫面
- 點選新增站台並依照以下畫面填入或更改選項
協定:SFTP-SSH file
主機: t3-c4.nchc.org.tw
登入型式: 交談式
使用者: 你的國網帳號名稱
-
更改完成後按下連線並在跳出的視窗依序輸入 1、主機密碼與OTP (注意:不要看到"密碼"就直接全部都輸入主機密碼,請依據說明"依序"輸入)
- 請依照前面上傳檔案step 1~step 7進行連線
- 在左半部先移動到檔案要下載到的資料夾下 (注意:避免到時候檔案下載到你不知道的地方去)
- 在右半部(國網主機空間)選取要下載的檔案,按右鍵選擇下載,依序輸入 1、主機密碼與OTP,即可將檔案下載(檔案放的位置就在你左半部顯示的資料夾路徑下)
(注意,若想要開啟檔案,請不要直接在FileZilla的本地站台點開,請回到你的電腦桌面點選剛剛儲存的路徑再去打開檔案,若直接從FileZilla的本地站台點選檔名,將會把檔案上傳到國網)