1.更新源
nano /etc/apt/source.list
1 deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free r$ 2 # Uncomment line below then 'apt-get update' to enable 'apt-get source' 3 ##deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi 4 5 deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ jessie main contrib $ 6 deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ jessie main cont$ 7 8 deb http://mirror.devunt.kr/raspbian/raspbian/ jessie main contrib non-free rpi 9 deb ftp://ftp.kaist.ac.kr/raspbian/ jessie main contrib non-free rpi 10 deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib $ 11 deb http://mirror.nus.edu.sg/raspbian/raspbian/ jessie main contrib non-free rpi
1 apt-get update 2 apt-get upgrade 3 apt-get dist-upgrade
2.卸載epiphany-browser
突然發現自帶epiphany-browser閃退,重裝無效,可能在升級jessie之前卸載,升級后再安裝可以解決。
1 apt-get purge epiphany-browser 2 apt-get autoremove epiphany-browser
3.安裝輸入法
 
        
1.不如ibug在右上角有切換圖標 卸載
給樹莓派安裝中文輸入法Fcitx及Google拼音輸入法
2.注意同時添加Chinese pinyin和英文us,重啟生效
#安裝ibus 輸入法引擎 和 ibus 拼音輸入法 sudo apt-get install ibus ibus-pinyin
安裝完畢后重新啟動lxde,可以在屏幕右下角看到ibus的圖標.
 右鍵選擇preference ,然后在input method選項卡的select a input method 里面選擇Chinese ,然后選pinyin.
 點擊add添加拼音輸入法,同時添加英文us然后點擊Close關閉窗口.
 再次點擊ibus的圖標 可以發現列表里面有拼音輸入法可供選擇,到這里拼音輸入就安裝完畢.
3.不知道有沒有必要性
安裝chromium和flash插件
參考資料
基礎編輯策略--樹莓派raspberry安裝flash(firefox版本)
1 sudo apt-get install chromium 2 #到自己百度網盤找PepperFlash-12.0.0.77-armv7h.tar.gz 3 tar -xzf PepperFlash-12.0.0.77-armv7h.tar.gz 4 cd PepperFlash 5 chmod +x * 6 sudo cp * /usr/lib/chromium/plugins 7 8 sudo nano /etc/chromium/default 9 #modify 10 CHROMIUM_FLAGS="--ppapi-flash-path=/usr/lib/chromium/plugins/libpepflashplayer.so --ppapi-flash-version=12.0.0.77 -password-store=detect -user-data-dir"
安裝firefox和flash插件
1 apt-get install iceweasel 2 apt-get install lightspark browser-plugin-lightspark
安裝shadowsocks
參考資料
1.安裝
1 apt-get install python-pip 2 pip install shadowsocks
2.配置shadowsocks賬號信息
nano /home/pi/Documents/shadowsocks.json
{ "server":"xxxxxxxx", "server_port":xxxxxxxx, "local_address": "127.0.0.1", "local_port":1080, "password":"xxxxxxxx", "timeout":600, "method":"aes-256-cfb", "fast_open": false, "workers": 1 }
3.手動啟動
sslocal -c /home/pi/Documents/shadowsocks.json
4.腳本啟動
nano /home/pi/Documents/shadowsocks.sh
腳本內容
1 #!/bin/sh 2 sslocal -c /home/pi/Documents/shadowsocks.json &
通過腳本啟動
sh /home/pi/Documents/shadowsocks.sh
開機啟動
sudo nano /etc/rc.local 
        #add nohup bash /home/pi/Documents/shadowsocks.sh
firefox配置代理
1.http://firefoxfan.cc/firefox-gaogent/firefox-shadowsocks-autoproxy.html autoproxy總是訂閱失敗,改用下面的foxyproxy
1.到https://addons.mozilla.org/zh-CN/firefox/addon/foxyproxy-standard/安裝擴展;
2.訂閱網址填“https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt”
http://firefoxfan.cc/firefox-gaogent/firefox-with-foxyproxy-goagent.html
https://www.librehat.com/hello-foxyproxy-goodbye-autoproxy/
a.右鍵選擇option,proxies標簽頁選擇add new proxy,勾選manual proxy configuration,127.0.0.1:1080,注意選擇下方socks v5
b.關閉后選擇use proxy 127.0.0.1:1080 for all urls
c.option選擇pattern sub,go,輸入https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt,format選擇autoproxy,obfuscation選擇base64
chromium配置代理
暫時無解
perl錯誤提示,貌似沒有根治
pi@raspberrypi ~ $ sudo raspi-config 
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_TIME = "zh_CN.UTF-8",
    LC_MONETARY = "zh_CN.UTF-8",
    LC_ADDRESS = "zh_CN.UTF-8",
    LC_TELEPHONE = "zh_CN.UTF-8",
    LC_NAME = "zh_CN.UTF-8",
    LC_MEASUREMENT = "zh_CN.UTF-8",
    LC_IDENTIFICATION = "zh_CN.UTF-8",
    LC_NUMERIC = "zh_CN.UTF-8",
    LC_PAPER = "zh_CN.UTF-8",
    LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
解決辦法
Perl warning Setting locale failed in Debian
1 export LANGUAGE=en_GB.UTF-8 2 export LC_ALL=en_GB.UTF-8 3 locale-gen en_US.UTF-8 4 dpkg-reconfigure locales
Privoxy實現終端代理
參考資料
Ubuntu 14.04 配置Shadowsocks和Privoxy實現瀏覽器和終端代理
www.liuzong.net/wordpress/index.php/category/pi/ 打不開,用bing預覽:
樹莓派使用shadowsocks和privoxy搭建http代理
1.安裝
sudo apt-get install privoxy
2.配置
sudo nano /etc/privoxy/config
在4.2. toggle前面幾行找到listen-address  localhost:8118
確認監聽端口號。ubuntu不用修改。
# listen-address [::1]:8118 # listen-address localhost:8118 # # 4.2. toggle # ============
注意raspberry pi參考第二個鏈接要將localhost顯式修改為0.0.0.0。
# listen-address [::1]:8118 # #listen-address localhost:8118 listen-address 0.0.0.0:8118 # # 4.2. toggle # ============
在5.3. forwarded-connect-retries前面幾行添加forward-socks5 / 127.0.0.1:1080 .注意最后帶小數點
# forward localhost/ . forward-socks5 / 127.0.0.1:1080 . # # 5.3. forwarded-connect-retries # ===============================
3.重啟Privoxy
sudo /etc/init.d/privoxy restart
4.配置終端環境
export http_proxy="127.0.0.1:8118" export https_proxy="127.0.0.1:8118"
5.測試生效性
wget http://www.baidu.com
wget https://www.google.com 
        6.開機自啟動
sudo nano /etc/rc.local 
        add:
sudo /etc/init.d/privoxy start
sudo nano /etc/profile
add:
export http_proxy="127.0.0.1:8118" export https_proxy="127.0.0.1:8118"
CSI攝像頭掛載到video0
1.raspi-config啟用camera
2.raspistill測試ok
3.ls /dev沒有看到video0設備,導致第三方拍照庫找不到設備
4.有效辦法http://pimachine.blogspot.com/2013/11/video4linux2-v4l2-driver-for-raspberry.html
1 wget http://www.linux-projects.org/listing/uv4l_repo/lrkey.asc && sudo apt-key add ./lrkey.asc 2 nano /etc/apt/sources.list 3 #add: 4 deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/ wheezy main 5 sudo apt-get update 6 sudo apt-get install uv4l uv4l-raspicam 7 #optional: 8 sudo rpi-update 9 #usage: 10 uv4l --driver raspicam --auto-video_nr --width 640 --height 480 --encoding jpeg
開機自啟動
#for auto start sudo nano /etc/rc.local #add uv4l --driver raspicam --auto-video_nr
測試可用性
1 sudo reboot 2 ls -l /dev/video0 3 sudo apt-get install fswebcam 4 sudo fswebcam -d /dev/video0 -r 320x240 --bottom-banner --title "test" --no-timestamp /home/pi/test.jpg
