顯示具有 splashtop 標籤的文章。 顯示所有文章
顯示具有 splashtop 標籤的文章。 顯示所有文章

2014年1月13日 星期一

ubuntu virtualbox 共用資料夾 plexWatch, splashtop streamer, xrdp on ubuntu 13.10

接續上篇使用ubuntu設定plexwatch web時也遇到一些問題,整理如下。

  • virtualbox共用資料夾位置在/media
    • 需要先將使用者加入群組
    • virtualbox預設為vboxsf
    • 終端機輸入指令sudo gpasswd -a 使用者帳號 vboxsf
  • 在設定crontab工作時不要輸入使用者名稱
  • twitter則需填入consumer_key, consumer_secret, access_token, access_token_secret四項,並且create my access token
  • ubuntu軟體中心位置 /usr/bin/software-center
  • remotebox不知為何無法成功使用,使用phpvirtualbox取代
  • virtualbox如果要使用遠端控制(非windows內建的遠端桌面)則需安裝extension pack
  • xrdp如果遇到灰色畫面無法進入則輸入以下指令,原因是gnome更動了設定
    • sudo apt-get install xrdp
    • sudo add-apt-repository ppa:xubuntu-dev/xfce-4.10
    • sudo apt-get update
    • sudo apt-get install xfce4
    • echo xfce4-session >~/.xsession  
  • ubuntu上使用splashtop streamer需要輸入以下指令否則目前無法使用於13.10(官方尚未支援)
    • sudo apt-get install aptitude
      sudo aptitude update
      sudo aptitude safe-upgrade
    • python /opt/splashtop-streamer/SRStreamer.pyc
    • sudo aptitude install python-appindicator

參考資料
共用資料夾權限
http://ubuntuforums.org/showthread.php?t=1921707
http://www.mobile01.com/topicdetail.php?f=300&t=3122670
plexWatch on ubuntu
http://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/
https://github.com/ljunkie/plexWatch/blob/master/README.md
crontab
sudo gedit /etc/cron.d/anacron
http://askubuntu.com/questions/2368/how-do-i-set-up-a-cron-job
xrdp 灰畫面
http://c-nergy.be/blog/?p=4448
http://askubuntu.com/questions/266271/xubuntu-12-04-desktop-grey-with-no-icons
plexWatch email notification
https://forums.plex.tv/index.php/topic/72552-plexwatch-plex-notify-script-send-push-alerts-on-new-sessions-and-stopped/
ubuntu splashtop streamer on 13.10
https://support-splashtoppersonal.splashtop.com/entries/30097576-Splashtop-Streamer-on-Ubuntu-13-10
http://qiita.com/nyarla/items/4202ddb8e29e2d0ddd65
http://timothyandrewbarber.blogspot.tw/2011/02/finding-config-folder-in-ubuntu.html
RemoteBox
http://knobgoblin.org.uk/downloads.cgi
http://www.openfoundry.org/tw/foss-programs/8319--virtualbox-remotebox
http://www.ibm.com/developerworks/cn/linux/l-cn-remotebox/
http://www.openfoundry.org/tw/foss-programs/8319--virtualbox-remotebox
phpvirtualbox
http://www.arthurtoday.com/2011/11/windows-phpvirtualbox.html#.Usl3t_QW2tQ
http://blog.segmentfault.com/jifei/1190000000346904
vboxwebsrv.exe
https://forums.virtualbox.org/viewtopic.php?f=6&t=38449
http://nikolas.demiridis.gr/post/10280216759/how-to-run-vboxwebsrv-as-a-service-on-windows-2008
virtualbox rdp extension pack
http://www.virtualbox.org/manual/ch07.html#vbox-auth
ubuntu切換2D
http://www.mobileai.tw/2013/01/08/ubuntu-12-10-2d/
PlexWatch ip address必須與PMS在同一台電腦上(localhost)才可正常抓取
https://forums.plex.tv/index.php/topic/72552-plexwatch-plex-notify-script-send-push-alerts-on-new-sessions-and-stopped/page-21#entry483408


2013年10月15日 星期二

Sendemail.exe與VBS與中華電信小烏龜與splashtop與wake on lan(internet)

前幾天花了點時間把server整理了一下。一開始是想讓server開機時可以自動傳送email告知開機成功,以及休眠時可以回傳IP位址以達成wake on lan避免休眠時臨時需要連線之窘境。於是著手研究,傳送email本來打算用工作排程器內建功能,後來發現常常失敗,搜尋後得知內建為非常陽春的功能,甚至照網頁所說outlook須先設定電子郵件帳號我卻沒有,所以能夠傳成功很詭異。後來改用sendemail.exe小程式,有很冗長的參數,不過也一一解決了。最後是自動回傳ip部分,參考網路寫了個vbs小程式,然後配合sendemail.exe傳送附件。

至此算是告一個段落,沒想到後來wake on lan的設定才是噩夢的開始。因為我是用虛擬router,所以並沒有另外接一個路由器而是直接接到中華電信小烏龜,並且也是用固定ip,與小烏龜的浮動ip不同。這是因為當初小烏龜內無法設定固定ip撥接,設定的話wifi會無法使用。於是我繞了路使用虛擬路由器monowall,也就是說網路線雖是接到server,但是實際上是透過虛擬路由才能夠連線,否則會是斷線狀態,算是增加安全性,這是前話。

不過這次搜尋了一下找到了中華電信小烏龜的密碼,登入後可以更改設定,發現要達成wake on internet因為小烏龜功能陽春必須每次重開後寫入arp table,加上如果照原本設想休眠後透過wol啟動也太過狹隘,如果是跳電等路由取得新浮動ip就沒用了。因此就整個大改,把小烏龜改成固定ip連線,arp table則透過遠端控制連入更改。至此以為問題結束,卻發現回到家無法遠端控制且原本設定無誤的splashtop也無法使用。因此又開始了debug之路。

最後結論是,McAfee不知為何把連接埠封鎖,把連接埠打開即可(記得6783,6784,6785皆要開啟,我本來只開啟6783,後來一團混亂)。另外關於回到家無法遠端連入小烏龜問題則在於Access Control下還有一個ip Addresses,必須輸入可以通過的ip才行。至此終於結束。

後來想一想直接買一台有支援wol的router好像最省事,算了,就當學習吧。

另外如果要達成wake on lan(internet)因為大部分路由器會檔broadcast封包,所以除非路由器有相關設定,否則需要設定NAT之後,使用參考資料最下方網址發送mask為255.255.255.255之magic packet,不然會啟動失敗。

sendemail格式

SENDEMAIL -s mail-server -t 收件人 -f 寄件人   -u "主旨"  -o message-file="本文檔" -a "附加檔" -o message-charset=big5 -o message-header="Disposition-Notification-To:<回信收件人>"

參考資料
http://alycesrestaurant.com/sendemailexe.htm
http://zonble.net/archives/2006_07/867.php
http://ithelp.ithome.com.tw/question/10046673
http://www.pczone.com.tw/thread-155562.html
http://www.depicus.com/wake-on-lan/woli.aspx
http://tw.knowledge.yahoo.com/question/question?qid=1008100609144
http://www.dotblogs.com.tw/rachen/archive/2010/03/31/14328.aspx