在 Ubuntu Linux x64 上安裝 Scratch 2 – 失敗篇

因為之前在 Ubuntu Linux 安裝 Adobe Air / Scratch 2 時,都是在 x86 平台上安裝,特地在 Ubuntu MATE 14.04-2 x64 平台試試!
加入 i386 平台
$ sudo dpkg –add-architecture i386
$ dpkg –print-architecture
amd64
$ dpkg –print-foreign-architectures
i386
進行套件庫更新及安裝套件
$ sudo apt-get update
$ sudo apt-get install lib32bz2-1.0 lib32ncurses5 lib32tinfo5 lib32z1 libc6-i386
$ sudo dpkg -i adobeair_2.6.0.19170-franklin_amd64.deb[@more@]開始安裝 Scratch 2.x 及解決錯誤訊息
$ sudo /etc/alternatives/airappinstaller ./Scratch-435.air
/etc/alternatives/airappinstaller: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
$ sudo apt-get install libstdc++6:i386

$ sudo /etc/alternatives/airappinstaller ./Scratch-435.air
Error loading the runtime (libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory)
$ sudo apt-get install libgtk2.0-0:i386

$ sudo /etc/alternatives/airappinstaller ./Scratch-435.air
Error loading the runtime (libxml2.so.2: cannot open shared object file: No such file or directory)
$ sudo apt-get install libxml2:i386

$ sudo /etc/alternatives/airappinstaller ./Scratch-435.air
Error loading the runtime (libnss3.so: cannot open shared object file: No such file or directory)
$ sudo apt-get install libnss3:i386

$ /usr/bin/Adobe AIR Application Installer ./Scratch-435.air
Gtk-Message: Failed to load module “gail”
Gtk-Message: Failed to load module “atk-bridge”
Gtk-Message: Failed to load module “canberra-gtk-module”
unexpected error: ArgumentError: Absolute path of the air file needs to be specified.
$ sudo apt-get install libatk-adaptor:i386 libgail-common:i386

$ /usr/bin/Adobe AIR Application Installer ./Scratch-435.air
Gtk-Message: Failed to load module “canberra-gtk-module”
unexpected error: ArgumentError: Absolute path of the air file needs to be specified.
$ sudo apt-get install libcanberra-gtk-module:i386

出現
(Adobe AIR Application Installer:9911): Gtk-WARNING **: 無法在 module_path 中找出佈景主題引擎:‘murrine’
$ sudo apt-get install gtk2-engines-murrine:i386

以圖形模式安裝

就卡在這裡!

使用 PsShutdown 來做電腦教室的電腦管理

PsShutdown 是由 Microsoft 所推出的程式,它可以在命令提示字元下,對區域網路中的電腦,進行關機、登出、重新啟動的動作。
PsShutdown 下載網址:https://technet.microsoft.com/en-us/sysinternals/bb897541.aspx

PsShutdown 包含在 PsTools 中,是其中的一個小程式,目前最新版本是 2.52 版。[@more@]1. 下載 PsTools 之後,目前只用到 PsShutdown,所以只解壓縮 PsShutdown 到 c:Windows 目錄

2. PsShutdown 指令使用語法

列出幾個常用的指令
強制關機
start /min psshutdown -f 192.168.1.112 -u administrator -p 123456 -t 1
關機
start /min psshutdown -k 192.168.1.112 -u administrator -p 123456 -t 1
重新啟動電腦
start /min psshutdown -r 192.168.1.112 -u administrator -p 123456 -t 1
關機
start /min psshutdown -s 192.168.1.112 -u administrator -p 123456 -t 1

取消 Ubuntu 15.04 的訪客作業階段

不需要 Ubuntu 15.04 的訪客作業階段
[@more@]解決方式:
1. 備份原檔
$ sudo  cp /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf  /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf.$(date +%F)
2. 進行設定
$ sudo sed -i ‘$aallow-guest=false’ /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

重新啟動電腦
或重新啟動 lightdm
$ sudo /etc/init.d/lightdm restart
[ ok ] Restarting lightdm (via systemctl): lightdm.service.

Ubuntu 15.04 Family

稍微理了一下 Ubuntu 15.04 下載網址:
Ubuntu 15.04
下載位址:http://releases.ubuntu.com/15.04/
 
  [@more@]
Ubuntu GNOME 15.04
下載位址:http://cdimage.ubuntu.com/ubuntu-gnome/releases/15.04/release/

 

Kubuntu 15.04
下載位址:http://cdimage.ubuntu.com/kubuntu/releases/15.04/release/

Lubuntu 15.04 LXDE
下載位址:http://cdimage.ubuntu.com/lubuntu/releases/15.04/release/
 

功能表是亂碼
 

Xubuntu 15.04 XFCE
下載位址:http://cdimage.ubuntu.com/xubuntu/releases/15.04/release/
 

 

Ubuntu MATE 15.04
下載網址:https://ubuntu-mate.org/vivid/
 

 

Ubuntu Studio 15.04
下載位址:https://ubuntustudio.org/download/

 

Ubuntu Kylin 15.04 for China
下載位址:http://www.ubuntukylin.com/downloads/

至於 Edubuntu 和 Mythbuntu 因為沒有 14.10 / 15.04 版,所以就不特別列出! 

 

解決在 Windows 8.1 DRBL-winroll 無法自動更改主機名稱的問題

偶然發現在 Windows 8.1 安裝完 DRBL-winroll 後,主機名稱不會自動更改。
[@more@]解決的方式:參考:Google 網上論壇
1. 切換到 C:cygwindrbl_winroll-config 目錄,並修改 hosts.confwinroll.conf

2. 修改 hosts.conf

3. 修改 winroll.conf
    把原先設定檔中的
    HN_WSNAME_PARAM = /RDF:C:cygwindrbl_winroll-confighosts.conf /DFK:$MAC
    改成
    HN_WSNAME_PARAM = /RDF:C:cygwindrbl_winroll-confighosts.conf /DFK:$IP

4. 重新啟動電腦後,可以發現電腦主機名稱已經可以自動更改了!

試用 Ubuntu 15.04 桌面版

預設桌面
[@more@]預設安裝的中文輸入法架構是 fcitx 企鵝輸入法
但內定並沒有安裝任何的輸入法,在這裡加裝行列30輸入法

$ sudo apt-get install fcitx-table fcitx-table-array30

加裝輸入法之後,在 fcitx 企鵝輸入法並不會自動啟用
在 fcitx 輸入法圖示上按滑鼠右鍵,選擇 Configurefcitx

選擇下方的 +

選擇新增加的輸入法,然後按 確定

但又發生之前 行列輸入法在 fcitx 上的問題
頭城國小資訊組 | Ubuntu 14.04 上安裝 fcitx 小企鵝輸入法

移除 fcitx 輸入法架構
$ sudo apt-get remove –purge `sudo dpkg -l | awk ‘{print $2}’ | grep ^fcitx`

改安裝 gcin
$ sudo apt-get install gcin

更改輸入法架構為 gcin
執行 im-config 來進行設定

設定過程

設定完成之後,登出再登入即可!

gcin 又無法出現圖示,解決方式:
頭城國小資訊組 | Ubuntu Desktop 14.10 – 解決 gcin 的圖示無法出現在工作列

中文輸入也沒有問題

切換回傳統介面
安裝 gnome-session-flashback 套件
$ sudo apt-get install gnome-session-flashback

重新登出再登入或重新啟動後

選擇 GNOME Flashback(Compiz)GNOME Flashback(Metacity) 即可

傳統介面

底下稍做調整
1. 移除遊戲
$ sudo apt-get remove –purge aisleriot gnome-mahjongg gnome-mines gnome-sudoku

2. 移除 Brasero 光碟燒錄程式
$ sudo apt-get remove –purge brasero-cdrkit brasero-common

3. 移除 掃描易
$ sudo apt-get remove –purge simple-scan

4. 移除 Thunderbird 郵件
$ sudo apt-get remove –purge thunderbird thunderbird-gnome-support thunderbird-locale-en thunderbird-locale-en-us thunderbird-locale-zh-hant thunderbird-locale-zh-tw

5.
移除 Transmission
$ sudo apt-get remove –purge transmission-common transmission-gtk

6. 移除 掃描易
$ sudo apt-get remove –purge simple-scan

7. 移除 Empthy
$ sudo apt-get remove –purge empathy empathy-common

8. 移除 amazon
$ sudo apt-get remove –purge unity-webapps-service

9. 移除 Evolution
$ sudo apt-get remove –purge evolution

10. 移除無障礙功能
$ sudo apt-get remove –purge onboard onboard-data gnome-orca

11. 移除 Ubuntu 網頁瀏覽器
$ sudo apt-get remove –purge webbrowser-app

12. 清除用不到的套件
$ sudo apt-get autoremove

13. 安裝 Chromium 瀏覽器及 Flash Player
$ sudo apt-get install chromium-browser chromium-browser-l10n
pepperflashplugin-nonfree

大概試用了一下,個人應該不會把系統移轉到 Ubuntu 15.04,因為它的支援期只有 9 個月,目前還是使用 14.04 LTS 版本,除非有什麼特別的因素。
以前 Ubuntu Linux 釋出新的版本都是一件很轟動的大事,甚至還有倒數,現在就比較冷清了,大家也應該麻痺了。

Acer M480 Windows 8.1 網路喚醒

電腦教室本來是以 Windows 7 和 Ezgo 為主,這次加上 Windows 8.1,網路喚醒的部分也要重新做設定。
設定的方式和 Windows 7 大致相同,只針對不同的地方做說明。
1. 在 電腦管理 頁面,取消 允許電腦關閉這個裝置以節省電源(A),但要 勾選下面二個選項
    不過,我重新開機之後,發現 允許這個裝置喚醒電腦的選項會取消勾選
     所以這個步驟我後來就沒有做
[@more@]2. 選擇 開始設定(S)控制台(C)

3. 選擇 電源選項

4. 選擇 選擇按下電源按鈕時的行為

5. 選擇 變更目前無法使用的設定

6. 取消勾選 開啟快速啟動(建議選項),最後按 儲存變更

不過設定完之後,試過各種網路喚醒的方式都無法喚醒,不知道是什麼原因?

Ubuntu 15.04 釋出

Ubuntu 15.04 已於日前釋出,版本代號是 Vivid Vervet,有興趣的人可以下載下來試用看看。
更詳細的介紹可以參考:
Ubuntu 15.04 擁抱物聯網,支援無人機與機器人 | TechNews 科技新報
ubuntu 15.04釋出 [論壇 – Ubuntu 哈啦] | Ubuntu 正體中文站
Ubuntu 15.04 正式推出 – LinuxPilot | LinuxPilot

開機

預設桌面
[@more@]下載:
1. 官方網站:http://releases.ubuntu.com/15.04/

台灣 Mirror 站台:
桌面版本
x86
    http://ftp.ubuntu-tw.org/mirror/ubuntu-releases/15.04/ubuntu-15.04-desktop-i386.iso
    http://ftp.yzu.edu.tw/Linux/ubuntu-cdimage/ubuntu/15.04/ubuntu-15.04-desktop-i386.iso
    http://tw.releases.ubuntu.com/15.04/ubuntu-15.04-desktop-i386.iso
    http://free.nchc.org.tw/ubuntu-cd/15.04/ubuntu-15.04-desktop-i386.iso
    http://ubuntu.stu.edu.tw/ubuntu-cd/15.04/ubuntu-15.04-desktop-i386.iso
    http://shadow.ind.ntou.edu.tw/ubuntu-releases/15.04/ubuntu-15.04-desktop-i386.iso

x64
    http://ftp.ubuntu-tw.org/mirror/ubuntu-releases/15.04/ubuntu-15.04-desktop-amd64.iso
    http://ftp.yzu.edu.tw/Linux/ubuntu-cdimage/ubuntu/15.04/ubuntu-15.04-desktop-amd64.iso
    http://tw.releases.ubuntu.com/15.04/ubuntu-15.04-desktop-amd64.iso
    http://free.nchc.org.tw/ubuntu-cd/15.04/ubuntu-15.04-desktop-amd64.iso
    http://ubuntu.stu.edu.tw/ubuntu-cd/15.04/ubuntu-15.04-desktop-amd64.iso
    http://shadow.ind.ntou.edu.tw/ubuntu-releases/15.04/ubuntu-15.04-desktop-amd64.iso

伺服器版本
x86
    http://ftp.ubuntu-tw.org/mirror/ubuntu-releases/15.04/ubuntu-15.04-server-i386.iso
    http://ftp.yzu.edu.tw/Linux/ubuntu-cdimage/ubuntu/15.04/ubuntu-15.04-server-i386.iso
    http://tw.releases.ubuntu.com/15.04/ubuntu-15.04-server-i386.iso
    http://free.nchc.org.tw/ubuntu-cd/15.04/ubuntu-15.04-server-i386.iso
    http://ubuntu.stu.edu.tw/ubuntu-cd/15.04/ubuntu-15.04-server-i386.iso
    http://shadow.ind.ntou.edu.tw/ubuntu-releases/15.04/ubuntu-15.04-server-i386.iso

x64
    http://ftp.ubuntu-tw.org/mirror/ubuntu-releases/15.04/ubuntu-15.04-server-amd64.iso
    http://ftp.yzu.edu.tw/Linux/ubuntu-cdimage/ubuntu/15.04/ubuntu-15.04-server-amd64.iso
    http://tw.releases.ubuntu.com/15.04/ubuntu-15.04-server-amd64.iso
    http://free.nchc.org.tw/ubuntu-cd/15.04/ubuntu-15.04-server-amd64.iso
    http://ubuntu.stu.edu.tw/ubuntu-cd/15.04/ubuntu-15.04-server-amd64.iso
    http://shadow.ind.ntou.edu.tw/ubuntu-releases/15.04/ubuntu-15.04-server-amd64.iso

Acer M480 Windows 7 網路喚醒

因為整個電腦教室重新安裝,所以之前的設定全部都清除掉了!
底下是設定步驟:
1. 在桌面上的 電腦,按滑鼠右鍵,選擇 內容
[@more@]2.  選擇 網路卡介面

3. 按滑鼠右鍵,選擇 內容

4.  選擇 進階 頁面

5. 選擇 從關閉狀態喚醒,再選擇 開啟

6. 選擇 喚醒功能,再選擇 Magic Packet 喚醒模式

或選擇 MP和PM喚醒模式,二者試過都可以

7. 選擇 電源管理 頁面

8. 取消 允許電腦關閉這個裝置以節省電源(A),最後按 確定