Pandora 1GHz ⇒ Debian Mark3

安裝系統


安裝步驟(建議使用8G SDCard):
1. 下載Debian Mark3
2. 執行如下命令(假設SDCard為sdx)

$ 7za x pandian-mark2-hf_2014-01-02.7z
$ sudo dd if=./pandian-mark2-hf_2014-01-02.img of=/dev/sdx

3. 使用gparted工具將Partition 2調整為最大空間
4. Debian Mark3開機完成後,修改pndXmodmap對應鍵

$ nano ~/.pndXmodmap
keycode   9 = Escape NoSymbol Escape
keycode  10 = 1 section 1 section
keycode  11 = 2 braceleft 2 braceleft
keycode  12 = 3 braceright 3 braceright
keycode  13 = 4 asciitilde 4 asciitilde
keycode  14 = 5 percent 5 percent
keycode  15 = 6 asciicircum 6 asciicircum
keycode  16 = 7 ampersand 7 ampersand
keycode  17 = 8 asterisk 8 asterisk
keycode  18 = 9 bracketleft 9 bracketleft
keycode  19 = 0 bracketright 0 bracketright
keycode  22 = BackSpace Delete BackSpace Delete
keycode  24 = q Q q Q
keycode  25 = w W w W
keycode  26 = e E e E
keycode  27 = r R r R
keycode  28 = t T t T
keycode  29 = y Y y Y
keycode  30 = u U u U
keycode  31 = i I i I
keycode  32 = o O o O
keycode  33 = p P p P
keycode  34 = parenleft NoSymbol parenleft
keycode  35 = parenright NoSymbol parenright
keycode  36 = Return Multi_key Return
keycode  37 = Control_L NoSymbol Control_L
keycode  38 = a A a A
keycode  39 = s S s S
keycode  40 = d D d D
keycode  41 = f F f F
keycode  42 = g G g G
keycode  43 = h H h H
keycode  44 = j J j J
keycode  45 = k K k K
keycode  46 = l L l L
keycode  47 = semicolon NoSymbol semicolon
keycode  48 = apostrophe NoSymbol apostrophe
keycode  49 = grave NoSymbol grave
keycode  50 = Shift_L NoSymbol Shift_L
keycode  52 = z Z z Z
keycode  53 = x X x X
keycode  54 = c C c C
keycode  55 = v V v V
keycode  56 = b B b B
keycode  57 = n N n N
keycode  58 = m M m M
keycode  59 = comma less comma less
keycode  60 = period greater period greater
keycode  61 = slash NoSymbol slash
keycode  62 = Shift_R NoSymbol Shift_R
keycode  64 = Alt_L NoSymbol Alt_L
keycode  65 = space NoSymbol space
keycode  66 = Caps_Lock NoSymbol Caps_Lock
keycode  67 = F1 NoSymbol F1
keycode  68 = F2 NoSymbol F2
keycode  69 = F3 NoSymbol F3
keycode  70 = F4 NoSymbol F4
keycode  71 = F5 NoSymbol F5
keycode  72 = F6 NoSymbol F6
keycode  73 = F7 NoSymbol F7
keycode  74 = F8 NoSymbol F8
keycode  75 = F9 NoSymbol F9
keycode  76 = F10 NoSymbol F10
keycode  82 = minus NoSymbol minus NoSymbol
keycode  83 = Home quotedbl Home quotedbl
keycode  86 = plus NoSymbol plus NoSymbol
keycode  87 = Prior Multi_key Prior Multi_key
keycode  88 = End XF86_Switch_VT_2 End XF86_Switch_VT_2
keycode  89 = Next XF86_Switch_VT_1 Next XF86_Switch_VT_1
keycode  95 = F11 NoSymbol F11
keycode  96 = F12 NoSymbol F12
keycode 118 = Insert NoSymbol Insert
keycode 132 = yen NoSymbol yen
keycode 187 = parenleft NoSymbol parenleft
keycode 188 = parenright NoSymbol parenright
keycode 191 = acute NoSymbol acute
keycode 192 = bar NoSymbol bar
keycode 193 = underscore NoSymbol underscore
keycode 194 = numbersign NoSymbol numbersign
keycode 195 = exclam NoSymbol exclam
keycode 196 = sterling NoSymbol sterling
keycode 197 = quotedbl NoSymbol quotedbl
keycode 198 = at NoSymbol at
keycode 199 = colon NoSymbol colon
keycode 200 = dollar NoSymbol dollar
keycode 201 = EuroSign NoSymbol EuroSign
keycode 222 = question NoSymbol question
keycode 235 = Tab NoSymbol Tab
add mod4 = XF86MenuKB

P.S. 主要的修改部份是新增Pandora按鍵

5. 修改xbindkeysrc對應鍵

$ nano .xbindkeysrc
"gnome-screenshot -w" 
  control + alt + w

"gnome-screenshot" 
  control + alt + s

"lxpanelctl menu"
  XF86MenuKB

按鍵 說明
Ctrl + Alt + w Screen catpture(當下視窗)
Ctrl + Alt + s Screen catpture(全螢幕)
Pandora Menu

6. 修改repository

$ su
# rm /etc/apt/sources.list.d/*
# nano /etc/apt/sources.list.d/pandora.list
deb http://pandian.openpandora.org/debian testing mark3

deb [arch=armhf] http://ftp.debian.org/debian jessie main contrib non-free
deb [arch=armhf] http://ftp.debian.org/debian jessie-backports main contrib non-free
deb [arch=armhf] http://ftp.debian.org/debian wheezy main contrib non-free
deb-src http://ftp.debian.org/debian jessie main contrib non-free
deb-src http://ftp.debian.org/debian jessie-backports main contrib non-free
deb-src http://ftp.debian.org/debian wheezy main contrib non-free

7. 更新並安裝套件

# apt-get update
# apt-get install xbindkeys xmodmap

8. 修改成自動登入

# nano  /etc/lightdm/lightdm.conf
autologin-user=xxx
autologin-user-timeout=0

P.S. xxx是使用者名字

9. 修改字型

$ sudo apt-get install fonts-arphic-bkai00mp fonts-arphic-bsmi00lp fonts-arphic-gbsn00lp ttf-arphic-bkai00mp ttf-arphic-bsmi00lp ttf-arphic-gbsn00lp fonts-droid ttf-droid ttf-wqy-zenhei ttf-wqy-microhei xfonts-wqyfonts-arphic-ukai ttf-arphic-ukai fonts-arphic-uming ttf-arphic-uming fonts-arphic-ukai ttf-arphic-ukai fonts-arphic-uming ttf-arphic-uming
$ vim ~/.font.conf
CTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- prefered fonts -->
<alias>
 <family>serif</family>
 <prefer>
  <family>DejaVu Serif</family>
  <family>Bitstream Vera Serif</family>
  <family>Evermore Song</family>
  <family>WenQuanYi Bitmap Song</family>
  <family>AR PL UMing CN</family>
  <family>AR PL ShanHeiSun Uni</family>
  <family>Droid Sans Fallback</family>
  <family>WenQuanYi Micro Hei</family>
  <family>WenQuanYi Zen Hei</family>
 </prefer>
</alias>
<alias>
 <family>sans-serif</family>
 <prefer>
  <family>DejaVu Sans</family>
  <family>Bitstream Vera Sans</family>
  <family>Evermore Song</family>
  <family>Droid Sans Fallback</family>
  <family>WenQuanYi Micro Hei</family>
  <family>WenQuanYi Bitmap Song</family>
  <family>WenQuanYi Zen Hei</family>
  <family>AR PL UMing CN</family>
  <family>AR PL ShanHeiSun Uni</family>
 </prefer>
</alias>
<alias>
 <family>monospace</family>
 <prefer>
  <family>DejaVu Sans Mono</family>
  <family>Bitstream Vera Sans Mono</family>
  <family>Evermore Song</family>
  <family>WenQuanYi Micro Hei Mono</family>
  <family>WenQuanYi Zen Hei Mono</family>
  <family>Droid Sans Fallback</family>
  <family>WenQuanYi Bitmap Song</family>
  <family>AR PL UMing CN</family>
  <family>AR PL ShanHeiSun Uni</family>
 </prefer>
</alias>
<!-- Default Alias -->
<alias>
 <family>DejaVu Sans</family>
 <default>
  <family>sans-serif</family>
 </default>
</alias>
<!-- Generic font families -->
<match target="pattern">
 <test name="family" qual="any">
  <string>serif</string>
 </test>
 <edit binding="strong" mode="prepend" name="family">
  <string>DejaVu Serif</string>
 </edit>
</match>
<match target="pattern">
 <test name="family" qual="any">
  <string>sans-serif</string>
 </test>
 <edit binding="strong" mode="prepend" name="family">
  <string>DejaVu Sans</string>
 </edit>
</match>
<match target="pattern">
 <test name="family" qual="any">
  <string>monospace</string>
 </test>
 <edit binding="strong" mode="prepend" name="family">
  <string>DejaVu Sans Mono</string>
 </edit>
</match>
<!-- Anti-alias -->
<match target="font">
 <edit name="embeddedbitmap">
  <bool>false</bool>
 </edit>
</match>
<!-- WenQuanYi Bitmap Song -->
<selectfont>
 <acceptfont>
  <pattern>
   <patelt name="family">
    <string>WenQuanYi Bitmap Song</string>
   </patelt>
  </pattern>
 </acceptfont>
</selectfont>
<match target="pattern">
 <test name="family" qual="any">
  <string>WenQuanYi Bitmap Song</string>
 </test>
 <test compare="less" name="pixelsize" qual="any">
  <double>12</double>
 </test>
 <edit mode="assign" name="family">
  <string>WenQuanYi Micro Hei</string>
 </edit>
</match>
<match target="pattern">
 <test name="family" qual="any">
  <string>WenQuanYi Bitmap Song</string>
 </test>
 <test compare="more" name="pixelsize" qual="any">
  <double>16</double>
 </test>
 <edit mode="assign" name="family">
  <string>AR PL ShanHeiSun</string>
 </edit>
</match>
<!-- Alias -->
<alias>
 <family>SimSun</family>
 <family>宋體</family>
 <accept>
  <family>LiHei Pro</family>
  <family>Evermore Song</family>
  <family>WenQuanYi Bitmap Song</family>
  <family>AR PL ShanHeiSun Uni</family>
 </accept>
 <default>
  <family>serif</family>
 </default>
</alias>
<alias>
 <family>SimHei</family>
 <family>黑體</family>
 <accept>
  <family>LiHei Pro</family>
  <family>WenQuanYi Micro Hei</family>
  <family>WenQuanYi Zen Hei</family>
 </accept>
 <default>
  <family>sans-serif</family>
 </default>
</alias>
<alias>
 <family>微軟雅黑</family>
 <family>Microsoft YaHei</family>
 <accept>
  <family>LiHei Pro</family>
  <family>WenQuanYi Micro Hei</family>
  <family>WenQuanYi Zen Hei</family>
 </accept>
 <default>
  <family>sans-serif</family>
 </default>
</alias>
<!-- -->
<match target="font">
 <edit mode="assign" name="rgba">
  <const>rgb</const>
 </edit>
</match>
<match target="font">
 <edit mode="assign" name="hinting">
  <bool>true</bool>
 </edit>
</match>
<match target="font">
 <edit mode="assign" name="hintstyle">
  <const>hintfull</const>
 </edit>
</match>
<match target="font">
 <edit mode="assign" name="antialias">
  <bool>true</bool>
 </edit>
</match>
</fontconfig>

10. 新增Pandora USBHost Menu

$ vim /usr/share/applications/op_usbhost.desktop
[Desktop Entry]
Version=1.0
Name=Pandora UsbHost
Type=Application
Comment=Enable Pandora UsbHost
Terminal=false
Exec=gksu /usr/pandora/scripts/op_usbhost.sh
Icon=obconf
Categories=ConsoleOnly;System;
GenericName=Pandora UsbHost

11. 新增Pandora Wireless Menu

$ vim /usr/share/applications/op_wifi.desktop
[Desktop Entry]
Version=1.0
Name=Pandora Wireless
Type=Application
Comment=Enable Pandora Wireless
Terminal=false
Exec=gksu /usr/pandora/scripts/op_wifi.sh
Icon=obconf
Categories=ConsoleOnly;System;
GenericName=Pandora Wireless

12. 完成


新增的Menu


返回上一頁