在 Ubuntu Mac Style 上安裝 DesktopNova 自動切換桌布

在 Windows 及 Mac OSX 的作業系統中,都可以設定定時自動切換桌布,偶爾換一下桌布,感覺可以換一下心情。
Ubuntu Mac Style 預設的桌布
[@more@]在套件搜尋了一下,尋找可以自動切換桌布的套件
$ sudo apt-cache search wallpaper | grep auto

先試第一套 desktopnova
安裝 DesktopNova
$ sudo apt-get install desktopnova

安裝完成後在功能表的位置

執行畫面

選擇 Add Folder 新增桌布放置的目錄
系統預設的目錄是 /usr/share/backgrounds

新增完成的目錄

選擇 Settings,選擇 Modules

Modules 設定

選擇 Save settings

選擇 Tray-Icon 做設定,選擇 Save settings

登出或重新啟動電腦後,可以在上方功能表找到 DesktopNova 的圖示

可是等了很久,桌布依然沒有更換,採用手動方式來切換,依然是不行,所以就把它給移除了!

移除 DesktopNova
$ sudo apt-get remove –purge desktopnova desktopnova-module-gnome desktopnova-tray

在 Ubuntu Mac Style 中改使用 LibreOffice

在 Ubuntu Mac Style 中預設是安裝 Apache OpenOffice,不過用起來有些不太習慣,所以改安裝 LibreOffice。
[@more@]首先先移除 Apache OpenOffice
$ sudo apt-get remove –purge openoffice-calc openoffice-core01 openoffice-debian-menus openoffice-ure openoffice.org-hyphenation

 安裝 LibreOffice
$ sudo apt-get install libreoffice libreoffice-l10n-zh-tw

移除 Apache OpenOffice 功能表
$ rm -rf ~/.local/share/applications/openoffice4-*

如果功能表上找不到 LibreOffice
$ rm -rf ~/.local/share/applications/libreoffice*
$ cd /usr/share/applications
$ cp libreoffice-base.desktop libreoffice-calc.desktop libreoffice-draw.desktop libreoffice-impress.desktop libreoffice-math.desktop libreoffice-writer.desktop ~/.local/share/applications/

在功能表上的 LibreOffice

在 Ubuntu 上安裝 arduino

使用 apt-get 安裝 arduino
$ sudo apt-get install -y arduino arduino-core
在功能表上的位置
[@more@]執行時,使用者必須要加入 dailout 群組才能正常使用 arduino

程式執行畫面 版本是 1.0.x 版

因為版本比較舊,所以直接到網站上下載的版本
Arduino 下載網站:Arduino – Software

依系統所需版本下載

建立目錄
$ sudo mkdir /opt/arduino
解壓縮
$ sudo tar xvzf arduino-1.5.8-linux32.tgz -C /opt/arduino
讓所有人都可以執行
$ sudo chmod a+rX /opt/arduino

建立在功能表上執行的圖示
$ sudo cp /usr/share/applications/arduino.desktop /usr/share/applications/arduino158.desktop
修改
$ sudo vim /usr/share/applications/arduino158.desktop
[Desktop Entry]
Type=Application
Name=Arduino IDE 1.5.8
GenericName=Create physical computing projects
Exec=/opt/arduino/arduino-1.5.8/arduino
Icon=arduino
Terminal=false
Categories=Development;Engineering;Electronics;
MimeType=text/x-arduino

在功能表上位置

執行畫面

在 Ubuntu Mac Style 上安裝 Chromium 使用的 Flash Player

參考網頁:Chromium 34 and later cannot detect flash plugin – Ask Ubuntu
chrome://plugins
[@more@]新增套件庫
$ sudo apt-add-repository ppa:skunk/pepper-flash
更新套件庫
$ sudo apt-get update
安裝 pepflashplugin-installer 套件
$ sudo apt-get install pepflashplugin-installer

修改 /etc/chromium-browser/default 檔案,在檔案最後面一行加入
. /usr/lib/pepflashplugin-installer/pepflashplayer.sh

# sudo sed -i ‘$a. /usr/lib/pepflashplugin-installer/pepflashplayer.sh’ /etc/chromium-browser/default

重新執行 Chromium
chrome://plugins

在 Ubuntu Mac Style 12.04 中使用 Grive 來同步 Google 網路硬碟檔案

本篇文章參考:在 Linux 中使用 Grive 指令工具同步 Google 雲端硬碟(Drive)上的檔案 – G. T. Wang
1. 新增套件庫
$ sudo add-apt-repository ppa:nilarimogard/webupd8
For other (specialized) PPAs we maintain, see: https://launchpad.net/~webupd8team
 More info: https://launchpad.net/~nilarimogard/+archive/ubuntu/webupd8
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: `/tmp/tmpZW9M0p/secring.gpg’ 鑰匙圈已建立
gpg: `/tmp/tmpZW9M0p/pubring.gpg’ 鑰匙圈已建立
gpg: 正在請求金鑰 4C9D234C 自 hkp 伺服器 keyserver.ubuntu.com
gpg: /tmp/tmpZW9M0p/trustdb.gpg: 建立了信任資料庫
gpg: 金鑰 4C9D234C: 公鑰 “Launchpad webupd8” 已匯入
gpg: 處理總量: 1
gpg:               已匯入: 1  (RSA: 1)
OK

2. 更新套件庫
$ sudo apt-get update
[@more@]3. 安裝 grive 套件
$ sudo apt-get install grive

4. 建立要同步的目錄
$ sudo mkdir ~/google_drive

5. 切換目錄至要同步的目錄
$ cd ~/google_drive

6. 開始進行同步
$ grive -a

7. 複製紅色框起來的網址,複製到瀏覽器,選擇 接受

8. 複製授權碼

9. 貼到終端機中

10. 開始同步

grive 指令用法
$ grive -h
grive: Symbol `json_tokener_errors’ has different size in shared object, consider re-linking
Grive options:
  -h [ –help ]         Produce help message
  -v [ –version ]      Display Grive version
  -a [ –auth ]         Request authorization token
  -p [ –path ] arg     Path to sync
  -V [ –verbose ]      Verbose mode. Enable more messages than normal.
  –log-xml             Log more HTTP responses as XML for debugging.
  –new-rev             Create new revisions in server for updated files.
  -d [ –debug ]        Enable debug level messages. Implies -v.
  -l [ –log ] arg      Set log output filename.
  -f [ –force ]        Force grive to always download a file from Google Drive
                        instead of uploading it.
  –dry-run             Only detect which files need to be uploaded/downloaded,
                        without actually performing them.