如何在Ubuntu上利用ssh 登入系統並留言在桌面(libnotify-bin)

Install openSSH, and libnotify-bin (via terminal)

sudo apt-get install openssh libnotify-bin 

on both computers.

Then SSH (via the terminal) into the other computer and when your logged in, type in:

ssh <user name>@<ip address> 

and then when your logged in, type:

export DISPLAY=:0.0 notify-send "Title of message" "message text" 

Hope this works, Jonathan.

From: Send messages between 2 Ubuntu PCs (Net Send Style)

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s