2015年9月15日

edu2015隨身碟系統

今天去分享一些東西,由於地點沒有edu2015系統,於是想到了一個方法,來讓大家體驗系統。
用隨身碟來試用linux不是新聞,但我使用的是把系統安裝進入隨身碟,而不是做live隨身碟,差異在它是install進隨身碟的,所有功能都正常,就如同一個硬碟(隨身碟效能要比硬碟差些),該調的該補丁的都完成了。
我把它用clonezilla live備起來再壓縮成zip,需要的人自取。
還原方式:
    下載zip,解壓縮到根目錄中,找一只32GB隨身碟,使用clonezilla live還原到隨身碟中。即完成了。
我還有一個用意是clonezilla live真的很好用,希望還沒有用的人可以試著用。我用它一次可以做十幾支的隨身碟,快速又好用。
    這支隨身碟也可以當救火隊,用來救昏倒當機時的資料,帶著走,隨時都有自已的系統可以用。

2015年9月14日

ramdisk應用

現在電腦的記憶體都不少,平時多數是空在哪裡。把一些常做寫入動作又不重要的檔案(tmp cache)放在ramdisk是個好方法。
記錄一下做法

vim /etc/fstab
加入下列內容
tmpfs    /home/teacher/.cache    tmpfs size=512M    0    0

teacher是帳號,512M是大小請自訂之。
做完有感覺執行檔程式時有變快

2015年9月9日

磁碟效能評測

在ubuntu下有個disk程式,發現還不錯用,可以測試磁碟效能、備份和還原。個人測了一下,測試隨身碟效能可以知道你這個隨身碟效能如何。



2015年9月5日

ubuntu1504安裝scratch2 offline

ubuntu 15.04安裝scratch2 offline 和s2a
記錄一下

sudo -s
cd
##安裝adob air
###安裝Scratch2 offline
wget https://scratch.mit.edu/scratchr2/static/sa/Scratch-439.3.air
Adobe\ AIR\ Application\ Installer  ~/Scratch-439.3.air

rm ~/Scratch-439.3.air
##安裝範例檔
wget https://scratch.mit.edu/scratchr2/static/sa/Scratch2StarterProjects.zip

unzip -d /opt/Scratch\ 2/share/Scratch\ Projects Scratch2StarterProjects.zip
rm -rf ~/文件/Scratch\ Projects/
ln -s  /opt/Scratch\ 2/share/Scratch\ Projects ~/文件/Scratch\ Projects
###改語系為只有英文和中文
cat /opt/Scratch\ 2/share/locale/lang_list.txt |grep zh-tw  >/opt/Scratch\ 2/share/locale/lang_list.txt-cc
mv /opt/Scratch\ 2/share/locale/lang_list.txt-cc /opt/Scratch\ 2/share/locale/lang_list.txt

##安裝s2a
##安裝python-pip 
apt-get install python-pip
##顯示 pre-installed Python 套件:
pip freeze
 ##如果沒有出現任何像pyserial==2.5 or pyserial==2.7 在清單中請建立使用 pip, 並安裝 PySerial:
 pip install PySerial
##安裝 PyMata 為了串行通訊在Python 用 Firmata 在 Arduino (PySerial 需要事先安裝 ):
pip install PyMata   
##下載s2a到家目錄
wget https://github.com/MrYsLab/s2a_fm/archive/master.zip


unzip master.zip
cp -a s2a_fm-master /usr/share/
chmod -R 777 s2a_fm-master/
下載連線程式
cd /home/teacher 
wget ftp://163.20.108.1/open/s2a_content.sh
wget ftp://163.20.108.1/open/s2a_content.png
chmod +x s2a_content.sh
cp -a s2a_content.sh /usr/share/s2a_fm-master

mv  s2a_content.sh ~/s2a_fm-master
cp   s2a_content.png /usr/share/s2a_fm-master
cp ~/s2a_fm-master/ScratchFiles/ScratchProjects/s2a_fm_base_zh_tw.sb2  ~/s2a_fm-master/
cp  /usr/share/s2a_fm-master/ScratchFiles/ScratchProjects/s2a_fm_base_zh_tw.sb2 /usr/share/s2a_fm-master
 
cd ~/Desktop

wget ftp://163.20.108.1/open/s2a_Scratch%202.desktop
chmod 777  s2a_Scratch\ 2.desktop
wget ftp://163.20.108.1/open/s2a.desktop
chmod 777 s2a.desktop
改ttyUSB0的群組
vim /etc/group
找到 dialout
在:後加入使用者,我這裡習慣用teacher和student就會成為下列
dialout:x:20:teacher,student 
 


2015年9月2日

NTPC-WPA2在edu2015

實做出來記錄一下:ubuntu連NTPC-WPA2這個AP,設定只要注意起個地方,設定不難。
憑證無可以連線,第一次連時會有警告訊息,如想傳輸加密可以加上憑證檔。


2015年9月1日

edu2015為視障生調整

1.可以改變螢幕大小為800*600
2.使用Tw-eak可以改變佈景與主題為高亮度和滑鼠
3.改變滑鼠游標,如果沒有適合的可以到
http://gnome-look.org/content/show.php/ComixCursors?content=32627
下載,下載後解壓縮,並把ComixCursors-0.8.2資料夾內的資料夾搬移到/usr/share/icons
這樣就會有很多滑鼠可以選了。
4.放大螢幕可以在CompizConfig中調整,把縮放螢幕拿出來用,可以設定鍵盤和滑鼠