如何實(shí)現(xiàn)在臺(tái)式機(jī)和筆記本電腦上的文件共享,以臺(tái)式機(jī)為服務(wù)器,筆記本遠(yuǎn)程訪問臺(tái)式機(jī)(服務(wù)器)上的文件。
1 依賴可視化GUI操作--適合Ubuntu(Linux)初級(jí)用戶
Boot the desktop to Ubuntu.
On both the desktop and the laptop do the following to make sure ssh-server is intalled:
Open a terminal by pressing?Ctrl+Alt+T?and enter
首先,打開終端(Ctrl+Alt+T?),安裝openssh服務(wù)器
sudo apt-get install openssh-server
輸入密碼,等待安裝成功。
打開文件管理器,找到網(wǎng)絡(luò)/連接到網(wǎng)絡(luò)服務(wù)器,在網(wǎng)絡(luò)地址欄中輸入
sftp://desktop_user_id@desktop_name.local/home/desktop_user_id
如何查看自己的user ID
whoami
如果只想分享硬盤上部分資源的話,可以采用在網(wǎng)絡(luò)地址欄輸入
/path/to/.../drive 是你實(shí)際要共享的文件的路徑。
如果你知道臺(tái)式機(jī)(服務(wù)器)的IP地址的話,可以用IP地址如192.168.1.1代替deaktop_name.local
連接,可以看到一個(gè)輸入密碼的對(duì)話框,輸入你要連接的服務(wù)器的密碼,即可進(jìn)入。
同時(shí)可以選擇記住密碼或不記住密碼。
2 依賴scp命令命令行操作--適合進(jìn)階Ubuntu(Linux)用戶使用
命令:
scp? FilePath?user@hostAddress:FilePath
如:
scp ?/home/1.png user@192.168.164.130.:/home/pictures