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

2018年5月9日

microbit模擬滑鼠(on scratch2)

使用micro:bit來模擬mouse,想到的是使用是xyz的值和按鈕
使用bdesigner來當中介程式
偵測板子的x移動會有L和R兩個值
偵測板子的y移動會有B和F兩個值

2018年2月11日

擷錄影片vcd

有人麻煩我處理vcd轉mp3,本想很簡單,但沒想到是有點麻煩的光碟。
首先想用拷貝方式複製.dat檔,結果,出現誤訊息無法複製。
用vlc播放,只有一首,從頭到尾,有時還沒有聲音。
用k3b燒錄光碟成為iso,也是無法成功。
正在煩惱時看到k3b有[擷取影像cd]功能試了一下,竟然成功了。


有了mpeg檔案,用ff multi comverter來轉成mp3,就解決了問題了。

2017年11月8日

網點測速


遇到一個問題,如何知道你的電腦的網路線是否有問題(網路是通的,下載速度慢),到底多慢?事實上網路速度有很多問題,從線、switch、ISP...。我們只能處理最基層問題(通常是校內),寫了一個shell來解決這想法。

從opensource.ntpc.edu.tw網站上,建一256MB的檔案,來當來源,如果自己能在校內主機放是最好。

再從自己的電腦下載這個檔案,用檔案大小/下載時間,可以得到一個大約數字,是你下載這個檔案的平均速度。

目前新北市各校間的連線速度是300MBt,如果你的下載速度能達到 10MB/秒以上,則網路速度應該是不錯的,如果只有不到1MB,則要報修了。


shell內容:

#!/bin/bash
path_d="163.20.174.98/netspeed/"
file_name="dd_256M"
cd /tmp
b_time=$(date +%s)
echo "自"$path_d"下載256MB檔案"
wget http://$path_d$file_name
e_time=$(date +%s)
echo "下載完成Download completed"
rm dd_256M

all_time=$(($e_time-$b_time))

netspeed=$(echo 256 $all_time | awk '{printf("%.2f", ($1/$2))}')
echo "下載時間(Download times):"$all_time"秒"
echo "平均下載速度(Download seed) :"$netspeed"MB/秒(MB/Second)"


shell下載:
https://drive.google.com/file/d/1prBsKdduzFUSDaeGiEbqY0rd2wFWOIYw/view?usp=sharing

有一個python程式還不錯用
安裝
apt-get install python-pip
pip install speedtest-cli

使用
列出測速主機
speedtest-cli --list
 太多了,找台灣主機,可以看到離你最近的主機(有寫出距離?km)
speedtest-cli --list |grep Taiwan
測速指令
speedtest-cli --server 2327
就可以看到上傳和下載速度了
speedtest-cli --server 2327
Retrieving speedtest.net configuration...
Testing from Digital United (112.104.30.26)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Far Eastone Telecommunications Co., Ltd. (Taipei) [3.82 km]: 18.602 ms
Testing download speed................................................................................
Download: 89.78 Mbit/s
Testing upload speed................................................................................................
Upload: 1.38 Mbit/s

2017年8月27日

edu2017安裝micro:bit

sudo add-apt-repository -y ppa:team-gcc-arm-embedded
#sudo add-apt-repository -y ppa:pmiller-opensource/ppa
sudo apt-get update 
apt-get install python3-pip 
sudo apt-get install cmake ninja-build gcc-arm-none-eabi srecord libssl-dev
pip3 install yotta 

有個來源有問題,我把它註解掉不用了ppa:pmiller-opensource/ppa
 

使用瀏覽器編輯:https://makecode.microbit.org/?lang=zh-TW
編輯完後下載檔案(hex),把它複製到micro:bit磁碟中即可


2017年7月13日

教育部台羅輸入法安裝ubutnu

在ubuntu下安裝教育部台羅輸入法
系統:edu2017 (ubuntu 16.04)
輸入法:教育部台灣羅馬拼音輸入法
安裝出問題
下載:https://depart.moe.edu.tw/ED2400/cp.aspx?n=BB47AA61331DDAC8&s=5900082022C17E11

http://language.moe.gov.tw/sujip/tlim2.tar.gz

下載後解壓縮

下載字型:http://prdownloads.sourceforge.net/vietunicode/hannomH.zip?download
下載後解壓縮
複製字型到資料夾
sudo cp hannomH/*.ttf /usr/share/fonts/truetype/

安裝scim輸入法
apt-get install scim scim-gtk-immodule scim-chewing scim-tables-zh

改變預設輸入法

在控制台中改變輸入法

安裝教育部台羅輸入法
cd tlim2/
 sudo ./scim-install-tlim2.sh
但是會出現錯誤訊息

sudo  ./scim-install-tlim2.sh 本安裝套件係由教育部開發,免費供公眾散布使用。使用者可以免費下載、使用、重製、散布本安裝套件,惟重製和散布時,必須保持本安裝套件完整。使用者如為下載、使用、重製、散布以外之其他目的,須先得到教育部之書面授權,惟本安裝套件之任何使用目的均不得涉及主要為獲取商業利益或私人金錢報酬之方式。若因使用本軟體所產生之任何損害,本部一概不負任何責任。

釋出日期: 2015.04.09
表格檔版本: 2.4.245

===================================================

本安裝程序將為您安裝 臺灣閩南語漢字輸入法 SCIM 表格檔及其相關圖示檔
(安裝過程中可能會要求您輸入目前使用者的登入密碼)

表格安裝路徑: /usr/share/scim/tables
圖示安裝路徑: /usr/share/scim/icons

您是否確定要安裝? (y/[N]): y

您目前的預設輸入法引擎並非是 SCIM,是否仍然要安裝? (y/[N]): y


本程序必須存取 /usr 目錄,而您目前的使用者權限不足!
請試著登入 root 帳戶再重新操作一次
(請按 Enter 鍵結束...)

修改安裝程式
sudo vim scim-install-tlim2.sh
在188行把它註解掉(插入#號)
#if ! `sudo -l | grep -i "(ALL)" > /dev/null`; then
#    printf "\n$S_NEEDROOT\n"
#    terminal
#fi

就可以安裝成功
登出,再重新登入即可。

2017年6月24日

gimp製作gif

使用gimp來製作gif anmation圖檔。
1.建立數個圖層,放置不同的圖片

2.檔案/匯出為,輸入為gif檔案。
 

完成。


2017年5月26日

chrome 閃爍問題

記錄一下:
發現在chrome下(intel顯卡)會有閃欒問題,保太說是硬體加速問題,把它關掉
拿掉後會發現,chrome效能變差。保太又改變做法。
確定有安裝
sudo apt-get install xserver-xorg-video-intel
加入設定檔
sudo vim  /usr/share/X11/xorg.conf.d/20-intel.conf
加入下列內容

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "AccelMethod"  "sna"
   Option      "TearFree"    "true"
   Option      "DRI"    "3"
EndSection
重開機。閃欒情形不見了,效能也沒降下來。

2017年2月17日

Mint 18.1調校記事

1.改套件源至國高
輸入法
2.apt-get install fcitx fcitx-table-cangjie5 fcitx-chewing fcitx-table-boshiamy
安裝libreoffice-base
3. apt-get install libreoffice-base librecad

 安裝flashplayer
4. apt-get install flashplugin-installer
安裝解壓縮
apt-get install unrar

 重新定義ctrl alt backspace登出
sudo dpkg-reconfigure keyboard-configuration

文字編輯器apt-get install vim 
小畫家
apt-get install kolourpaint4

企鵝小畫家
apt-get install tuxpaint tuxpaint-config
 
ln -s ../.tuxpaint tuxpaint
 
ln -s 下載 Download
ln -s 公共 Public
ln -s 影片 Videos
ln -s 桌面 Desktop
ln -s 音樂 Music
ln -s 文件 Documents
ln -s 模板 Templates

安裝audacity

apt-get install audacity
 
安裝vlc 

apt-get install  vlc  

安裝gimp

apt-get install gimp gimp-plugin-registry

安裝inkscape和雷雕擴充套件

 apt-get install inkscape
wget http://www.jtechphotonics.com/Downloads/Inkscape/JTP_Laser_Tool_V1_7.zip
 
 
安裝kdenlive

apt-get install kdenlive
 
安裝smplayer

apt-get install smplayer
 
安裝openshot

apt-get install openshot frei0r-plugins
 
安裝java 8

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
 
 ##安裝adob air
##安裝adob air
wget -O adobe-air.sh http://drive.noobslab.com/data/apps/AdobeAir/adobe-air.sh
 wget https://scratch.mit.edu/scratchr2/static/sa/Scratch2StarterProjects.zip
 
 ln -s /opt/Scratch\ 2/share/Scratch2StarterProjects/  Scratch\ Projects 
 
 ##安裝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 /usr/share/s2a_fm-master/ 
 chmod -R 777 s2a_fm-master
 
 
安裝網路工具 
apt-get install gnome-nettool
 
apt-get install canna-utils
  
 
 安裝photofilmstrip
wget https://nchc.dl.sourceforge.net/project/photostoryx/photofilmstrip/3.0.0/photofilmstrip_3.0.0-1_all.deb
dpkg -i  photofilmstrip_3.0.0-1_all.deb
apt-get -f install
 
  
安裝imagination
apt-get install imagination 
 
 安裝ktouch打字練習

apt-get install ktouch
 
安裝企鵝愛打字

apt-get install tuxtype
  
安裝sweethome3d
apt-get install sweethome3d

開機選單調整grub-customizer

sudo -s
add-apt-repository ppa:danielrichter2007/grub-customizer
apt-get update
sudo apt-get install grub-customizer
 
firefox匯入政府憑證
http://gca.nat.gov.tw/repository/Certs/GCA2.cer
  
安裝gparted
apt-get install gparted

安裝blender
sudo add-apt-repository ppa:thomas-schiex/blender
sudo apt-get update
sudo apt-get install blender
 
 
安裝wine
sudo add-apt-repository ppa:ubuntu-wine/ppa
apt-get update
sudo apt-get install wine1.8
apt-get install unoconv 
apt-get install pv


firefox增加google search
about:config
 
browser.fixup.alternate.enabled should be false
keyword.enabled should be true
keyword.URL should be http://www.google.com/search?ie=UTF-8&oe=UTF-8&q= 
 
 
安裝髮型彩粧
 http://jkiwi.com/download/ubuntu/下載deb安裝
wget http://nchc.dl.sourceforge.net/project/jkiwi/jkiwi/jKiwi-0.9.5/jkiwi_0.9.5_ubuntu.deb
dpkg -i jkiwi_0.9.5_ubuntu.deb

https://sites.google.com/site/estea8968/home/ntpc-2014-unity/jkiwi_locale_zh_TW.properties?attredirects=0&d=1 
https://sites.google.com/site/estea8968/home/ntpc-2014-unity/jkiwi.jar?attredirects=0&d=1
 
安裝pdf閱讀器 
 apt-get install okular 
 
pdf編輯軟體
apt-get install pdfshuffler
 
webcam工具

apt-get install kamoso  

7zip解壓縮
 sudo apt-get install p7zip p7zip-full p7zip-rar
 
安裝kde語言套件 
apt-get install kde-l10n-zhtw 
 
安裝shutter
 sudo apt-get install shutter
 
安裝k3b 
 apt-get install k3b k3b-i18n libk3b6-extracodecs
 
安裝看圖片程式
  apt-get install gthumb

安裝arduino ide 
  apt-get install arduino
 wget http://jaist.dl.sourceforge.net/project/ardublock/ardublock-beta-20140828.jar
 
mkdir /usr/share/arduino/tools/ArduBlockTool
mkdir /usr/share/arduino/tools/ArduBlockTool/tool  

安裝教育部標準楷書和全字庫字型 
安裝qtqr
 apt-get install qtqr
 
安裝krita 
sudo apt-get install krita 
 sudo add-apt-repository ppa:thopiekar/cura
sudo apt-get update
sudo apt-get install cura
 
安裝電子書
apt-get install calibre 
安裝blueman
 apt-get install blueman 
安裝bluegriffon 
wget http://bluegriffon.org/freshmeat/2.3/bluegriffon_2.3-1ubuntu1_amd64.deb

ubuntu tw-eak
wget http://getdeb.megaglest.org/ubuntu/pool/apps/u/ubuntu-tweak/ubuntu-tweak_0.8.7-1~getdeb2~xenial_all.deb
dpkg -i
ubuntu-tweak_0.8.7-1~getdeb2~xenial_all.deb
 apt-get -f install
安裝fritzing
 apt-get install fritzing
 安裝kazam
apt-get install kazam
 
安裝guvcview
apt-get install guvcview 
 打包改 pinguybuilder
apt-get install aufs-tools python-vte plymouth-x11
 dpkg -i pinguybuilder_4.3-8_all-beta.deb

https://sourceforge.net/projects/pinguy-os/files/ISO_Builder/

apt-get update卡住問題 
sudo -s

cd /etc/apt/apt.conf.d

vim 1000-force-ipv4-transport

貼入下列內容

Acquire::ForceIPv4 "true";

vim 1000-force-ipv6-transport

貼入下列內容

Acquire::ForceIPv6 "true";
 
清理磁碟 
apt-get install bleachbit
 
關機還原
 user_recover
網路硬碟
mynet_hd
chrome
dpkg -i google-chrome-stable
 
apt-get install pepperflashplugin-nonfree 
 
 
安裝 transformer
 安裝filezilla

apt-get install filezilla 
 
 安裝iptux
apt-get install iptux 
  

 apt-get install nemo-image-converter
 
apt-get install mm3d 
apt-get install freecad
 
大量更名
解壓縮中文zip
 
vidcutter影片剪輯 
sudo add-apt-repository ppa:ozmartian/apps
sudo apt update && sudo apt install vidcutter 

http://www.omgubuntu.co.uk/2017/03/vidcutter-3-0-released-new-features-mpv-backend

 
apt-get install screenkey
download 0.9
install 
http://www.omgubuntu.co.uk/2016/11/screenkey-show-key-presses-screen-ubuntu

螢幕轉gif
sudo add-apt-repository ppa:peek-developers/stable
sudo apt update && sudo apt install peek 
http://www.omgubuntu.co.uk/2017/03/peek-gif-recorder-1-0-flatpak?_utm_source=1-2-2 
 
freemind 
wget https://sourceforge.net/projects/freemind/files/freemind-deb/0.8.1/freemind_0.8.1-2_all.deb/download
dpkg -i freemind_0.8.1-2_all.deb
apt-get -f install 

xmind
wget http://dl2.xmind.net/xmind-downloads/xmind-8-update1-linux.zip
解壓縮後搬到/opt下
還要做/usb/bin/xmind
cd /opt/xmind目錄中
再執行XMind才不會error
還要做.desktop

boot-repair
sudo add-apt-repository -y ppa:yannubuntu/boot-repair; \
sudo apt-get update; \
sudo apt-get install -y boot-repair && boot-repair