Banana Pi 測試 – Gentoo Linux 更新系統

同步套件資訊
# emerge –sync

檢查需要更新的套件
[ebuild   R    ]:代表已安裝
[ebuild  N     ]:尚未安裝
[ebuild     U  ] :可以升級的套件
# emerge -pv world

These are the packages that would be merged, in order:

Calculating dependencies… done!
[ebuild   R    ] app-arch/xz-utils-5.0.5-r1  USE=”nls threads -static-libs” 1,276 kB
[ebuild   R    ] app-arch/bzip2-1.0.6-r6  USE=”-static -static-libs” 764 kB
[ebuild   R    ] sys-devel/gnuconfig-20140212  44 kB
[ebuild   R    ] sys-apps/which-2.20-r1  133 kB
[ebuild   R    ] sys-apps/baselayout-2.2  USE=”-build” 40 kB
[ebuild   R    ] sys-devel/patch-2.6.1  USE=”-static {-test}” 248 kB
[ebuild   R    ] virtual/os-headers-0  0 kB
[ebuild     U  ] sys-apps/file-5.21 [5.19] USE=”zlib -python -static-libs” PYTHON_TARGETS=”python2_7 python3_3 -python3_4 (-python3_2%)” 715 kB
[ebuild   R    ] sys-apps/net-tools-1.60_p20130513023548  USE=”nls -old-output (-selinux) -static” 196 kB
[ebuild   R    ] sys-apps/coreutils-8.21  USE=”acl nls -caps -gmp (-selinux) -static -vanilla -xattr” 5,281 kB
[ebuild   R    ] virtual/modutils-0  0 kB
[ebuild   R    ] virtual/libc-0  0 kB
[ebuild   R    ] app-shells/bash-4.2_p53  USE=”net nls (readline) (-afs) -bashlogger -examples -mem-scramble -plugins -vanilla” 6,977 kB
[ebuild   R    ] sys-apps/less-458  USE=”pcre unicode” 500 kB
[ebuild   R    ] sys-apps/sed-4.2.1-r1  USE=”acl nls (-selinux) -static” 879 kB
[ebuild   R    ] virtual/man-0-r1  0 kB
[ebuild   R    ] sys-devel/binutils-2.24-r3  USE=”cxx nls zlib (-multislot) -multitarget -static-libs {-test} -vanilla” 22,202 kB
[ebuild     U  ] sys-process/psmisc-22.21 [22.20] USE=”ipv6 nls -X (-selinux)” 442 kB
[ebuild   R    ] sys-apps/gawk-4.0.2  USE=”nls readline” 1,589 kB
[ebuild   R    ] app-arch/tar-1.27.1-r2  USE=”acl nls -minimal (-selinux) -static -xattr” 2,513 kB
[ebuild   R    ] sys-devel/make-4.0-r1  USE=”nls -guile -static” 1,311 kB
[ebuild   R    ] sys-apps/findutils-4.4.2-r1  USE=”nls (-selinux) -static” 2,100 kB
[ebuild   R    ] app-arch/gzip-1.5  USE=”nls -pic -static” 705 kB
[ebuild   R    ] virtual/pager-0  0 kB
[ebuild   R    ] sys-apps/diffutils-3.3  USE=”nls -static” 1,170 kB
[ebuild   R    ] sys-apps/mlocate-0.26-r1  USE=”nls (-selinux)” 0 kB
[ebuild   R    ] sys-devel/gcc-4.8.3:4.8  USE=”cxx fortran nls nptl openmp (-altivec) -awt -doc (-fixed-point) -gcj -go -graphite (-hardened) (-libssp) -mudflap (-multilib) (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test (-sanitize) -vanilla” 84,146 kB
[ebuild   R    ] sys-apps/man-pages-3.72  USE=”nls” LINGUAS=”-da -de -fr -it -ja -nl -pl -ro -ru -zh_CN” 1,251 kB
[ebuild  N     ] dev-libs/libevent-2.0.21-r1  USE=”ssl threads -static-libs {-test}” 831 kB
[ebuild   R    ] sys-apps/busybox-1.21.0  USE=”ipv6 pam static -livecd -make-symlinks -math -mdev -savedconfig (-selinux) -sep-usr -syslog -systemd” 2,150 kB
[ebuild   R    ] sys-apps/kbd-1.15.5-r1  USE=”nls pam” 1,691 kB
[ebuild   R    ] virtual/shadow-0  0 kB
[ebuild     U  ] net-misc/iputils-20121221-r1 [20121221] USE=”filecaps%* ipv6 ssl -SECURITY_HAZARD -caps -doc -gnutls -idn -static” 175 kB
[ebuild   R    ] virtual/ssh-0  USE=”-minimal” 0 kB
[ebuild   R    ] virtual/package-manager-0  0 kB
[ebuild   R    ] app-editors/vim-7.4.273  USE=”acl nls -X -cscope -debug -gpm -lua (-luajit) -minimal -perl -python (-racket) -ruby (-selinux) -tcl -vim-pager” PYTHON_SINGLE_TARGET=”python2_7 -python3_3 -python3_4″ PYTHON_TARGETS=”python2_7 python3_3 -python3_4″ 10,108 kB
[ebuild   R    ] virtual/editor-0  0 kB
[ebuild   R    ] net-dns/bind-tools-9.9.5  USE=”ipv6 readline ssl -doc -gost -gssapi -idn -urandom -xml” 0 kB
[ebuild   R    ] app-admin/sudo-1.8.11_p1  USE=”nls pam sendmail -ldap -offensive (-selinux) -skey” 2,346 kB
[ebuild   R    ] sys-apps/util-linux-2.24.1-r3  USE=”cramfs ncurses nls pam suid unicode -bash-completion -caps -cytune -fdformat -python (-selinux) -slang -static-libs {-test} -tty-helpers -udev” PYTHON_SINGLE_TARGET=”python2_7 -python3_3 -python3_4 (-python3_2%)” PYTHON_TARGETS=”python2_7 python3_3 -python3_4 (-python3_2%)” 3,461 kB
[ebuild   R    ] net-misc/rsync-3.0.9-r3  USE=”acl iconv ipv6 -static -xattr” 775 kB
[ebuild   R    ] sys-apps/grep-2.16  USE=”nls pcre -static” 1,182 kB
[ebuild   R    ] sys-process/procps-3.3.9  USE=”ncurses nls unicode -static-libs {-test}” 548 kB
[ebuild     U  ] net-misc/wget-1.16 [1.14] USE=”ipv6 nls pcre ssl zlib -debug -gnutls -idn -ntlm -static {-test%} -uuid” 1,658 kB
[ebuild     U  ] net-misc/ntp-4.2.8-r1 [4.2.6_p5-r10] USE=”ipv6 ssl -caps -debug -openntpd (-parse-clocks) -samba (-selinux) -snmp -vim-syntax -zeroconf” 6,638 kB
[ebuild   R    ] sys-process/vixie-cron-4.1-r14  USE=”pam -debug (-selinux)” 0 kB
[ebuild   R    ] sys-fs/e2fsprogs-1.42.10  USE=”nls -static-libs” 5,983 kB
[ebuild   R    ] sys-apps/openrc-0.12.4  USE=”ncurses netifrc pam unicode -debug -newnet (-prefix) (-selinux) -static-libs -tools” 129 kB
[ebuild   R    ] virtual/service-manager-0  USE=”(-prefix)” 0 kB
[ebuild   R    ] virtual/dev-manager-0  0 kB

Total: 50 packages (5 upgrades, 1 new, 44 reinstalls), Size of downloads: 172,141 kB[@more@]上面的資訊實在太複雜了,稍微精簡一下
# emerge -pv world | grep ‘[ebuild     U  ]’ | awk ‘{print $4}’
sys-apps/file-5.21
sys-process/psmisc-22.21
net-misc/iputils-20121221-r1
net-misc/wget-1.16
net-misc/ntp-4.2.8-r1

更新個別套件,以 wget 為例
系統安裝版本 1.14,新的版本是 1.16
# emerge -pv wget

These are the packages that would be merged, in order:

Calculating dependencies… done!
[ebuild     U  ] net-misc/wget-1.16 [1.14] USE=”ipv6 nls pcre ssl zlib -debug -gnutls -idn -ntlm -static {-test%} -uuid” 1,658 kB

Total: 1 package (1 upgrade), Size of downloads: 1,658 kB

進行更新
# emerge -u wget

更新整個系統
# emerge -u world

Banana Pi – Gentoo Linux 套件管理

Portage 是 Gentoo Linux 在套件管理的特色,感覺很像 BSD 中的 Ports Tree,透過 Portage 可以讓 Gentoo Linux 使用者可以取得套件名稱。 Portage 是指 ebuilds 的集合,檔案中包含 Portage 維護軟體所需的資訊(安裝,搜尋,查詢,…)。這些 ebuilds 預設存放在 /usr/portage 目錄之中,因此定期更新系統上的 ebuilds 是非常重要的。

emerge 是 Portage 的一個文字介面前端的管理式。
[@more@]
1. 同步套件庫  –sync
# emerge –sync

2. 搜尋套件 –search
# emerge –search bind-tools
# emerge -s bind-tools
Searching…
[ Results for search key : bind-tools ]
[ Applications found : 1 ]

*  net-dns/bind-tools
      Latest version available: 9.9.5
      Latest version installed: [ Not Installed ]
      Size of files: 7,548 kB
      Homepage:      http://www.isc.org/software/bind
      Description:   bind tools: dig, nslookup, host, nsupdate, dnssec-keygen
      License:       ISC BSD BSD-2 HPND JNIC RSA openssl

3. 搜尋描述的內容  –searchdesc
# emerge –searchdesc firefox
# emerge -S firefox
Searching…
[ Results for search key : firefox ]
[ Applications found : 3 ]

*  www-client/firefox
      Latest version available: 24.3.0
      Latest version installed: [ Not Installed ]
      Size of files: 116,599 kB
      Homepage:      http://www.mozilla.com/firefox
      Description:   Firefox Web Browser
      License:       MPL-2.0 GPL-2 LGPL-2.1

*  www-client/firefox-bin [ Masked ]
      Latest version available: 34.0.5
      Latest version installed: [ Not Installed ]
      Size of files: 0 kB
      Homepage:      http://www.mozilla.com/firefox
      Description:   Firefox Web Browser
      License:       MPL-2.0 GPL-2 LGPL-2.1

*  www-client/vimprobable2 [ Masked ]
      Latest version available: 9999
      Latest version installed: [ Not Installed ]
      Size of files: 0 kB
      Homepage:      http://www.vimprobable.org/
      Description:   A minimal web browser that behaves like the Vimperator plugin for Firefox
      License:       MIT

Calculating dependencies… done!

4. 安裝套件
# emerge bind-tools

安裝套件時指定編譯的參數
# USE=’sasl’ emerge postfix

# export USE=’sasl’
# emerge postfix

# emerge -k bind-tools
>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-dns/bind-tools-9.9.5
>>> Downloading ‘http://distfiles.gentoo.org/distfiles/bind-9.9.5.tar.gz’
–2014-12-30 20:46:22–  http://distfiles.gentoo.org/distfiles/bind-9.9.5.tar.gz
Resolving distfiles.gentoo.org… 64.50.233.100, 64.50.236.52, 137.226.34.42, …
Connecting to distfiles.gentoo.org|64.50.233.100|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 7729695 (7.4M) [application/x-gzip]
Saving to: ‘/usr/portage/distfiles/bind-9.9.5.tar.gz’

100%[======================================>] 7,729,695   1.89MB/s   in 3.9s

2014-12-30 20:46:27 (1.89 MB/s) – ‘/usr/portage/distfiles/bind-9.9.5.tar.gz’ saved [7729695/7729695]
中略……..
   usr/bin/dig
   usr/bin/host
   usr/bin/nslookup
   usr/bin/nsupdate
   usr/bin/dnssec-keygen
ecompressdir: bzip2 -9 /usr/share/doc
ecompressdir: bzip2 -9 /usr/share/man

>>> Installing (1 of 1) net-dns/bind-tools-9.9.5

>>> Recording net-dns/bind-tools in “world” favorites file…
>>> Auto-cleaning packages…

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

5. 檢查套件相依性 –pretend
# emerge –pretend vixie-cron
# emerge -p vixie-cron
# emerge -pv vixie-cron

These are the packages that would be merged, in order:

Calculating dependencies… done!
[ebuild  N     ] sys-process/cronbase-0.3.3
[ebuild  N     ] sys-process/vixie-cron-4.1-r14  USE=”pam -debug (-selinux)”

6. 移除套件 –unmerge
# emerge –unmerge wget
# emerge -C wget

7. 檢查系統需要更新的件
# emerge -pv world

8. 更新套件 –update
# emerge –update wget
# emerge -u wget

在部分套件升級完畢,需要執行 etc-update 才能正常使用。執行 etc-update 之後出現的選項:
-1:不使用新的設定檔取代舊的設定檔
-3 :使用新的設定檔取代舊的設定檔(會詢問)
-5 :使用新的設定檔取代舊的設定檔(不會詢問)

10. 更新整個系統
# emerge –update world
# emerge -u world

Banana Pi 測試 – Gentoo Linux 網路設定

Banana Pi 上預設 Gentoo Linux 是採用 DHCP 自動取得 IP
# cat /etc/conf.d/net
#For DHCP
config_eth0=”dhcp”
dns_domain_lo=”lemaker”
nis_domain_lo=”lemaker”

固定 IP 的設定方式
[@more@]參考網頁:
Gentoo Forums :: 觀看文章 – Switching to a static IP (within your network)

1. 先備份原檔
# cp /etc/conf.d/net /etc/conf.d/net.$(date +%F)

2. 修改設定檔 /etc/conf.d/net
# vim /etc/conf.d/net
#For Static IP
config_eth0=( “192.168.1.44 netmask 255.255.255.0” )
routes_eth0=( “default gw 192.168.1.254” )
dns_servers_eth0=( “168.95.1.1 140.111.66.1” )

3. 重新開機或啟動網路
# /etc/init.d/net.eth0 restart

Bananian 15.01 Released

Bananian 15.01 Released 於 2015/1/11 釋出,更新的部分可以參考:
Bananian 15.01 Released – News – Banana Pro | Banana Pi Forum
主要是底下的修正:
– Full hardware support for Banana Pro
– Full hardware support for BPI-R1
– New hardware configuration tool: bananian-hardware
– Packages added in default installation: wireless-tools, wpasupplicant,iw, usbutils
– Included fex tools (bin2fex and fex2bin)
– 8021q VLAN module enabled (but no VLAN configured)
下載網頁:http://www.lemaker.org/resources/9-116/bananian_for_bananapi.html
[@more@]Bananian 14.09 或之後的版本可以利用 bananian-update 來進行升級
# bananian-update
Welcome to bananian-update!

This script upgrades your Bananian installation.

For news and updates check: http://www.bananian.org

Don’t panic, you will be asked to confirm before applying any updates!

——————————————————————————-                                                                                                                                                              —
receiving/updating public key…

gpg: requesting key 24BFF712 from hkp server keys.gnupg.net
gpg: key 24BFF712: “Nico Isenbeck (Bananian Linux) <download@bananian.org>” not                                                                                                                                                               changed
gpg: Total number processed: 1
gpg:              unchanged: 1

——————————————————————————-                                                                                                                                                              —
downloading latest upgrade from dl.bananian.org… (this might take a while)

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 13 19.5M   13 2688k    0     0  67105      0  0:05:05  0:00:41  0:04:24 45529

———————————————————————————
You are using Bananian 14.11 r01
This script will upgrade your installation to Bananian 15.01 r01
———————————————————————————

The following files will be deleted:
————————————-
/script.bin.otg-off
/script.bin.otg-on

The following files will be modified:
————————————-
boot partition:
/uImage
/fex/*

root filesystem:
/lib/modules/*
/lib/firmware/*
/usr/local/bin/bananian-config
/usr/local/bin/bananian-hardware
/usr/local/bin/fexc
/usr/local/bin/bin2fex
/usr/local/bin/fex2bin
/usr/local/bin/swconfig
/etc/modules
/etc/network/if-pre-up.d/swconfig

Packages to be installed:
————————-
wireless-tools wpasupplicant iw usbutils (+ dependencies)

Important changes:
——————–
– 0000047: [Network] some packages for WLAN missing
– 0000044: [Userland] install usbutils by default
– 0000091: [Userland] update Debian packages and clean up before release
– 0000090: [Userland] add 15.01 release to bananian-update
– 0000082: [Network] Wlan Support for Banana Pro
– 0000083: [Hardware] support BPI-R1 hardware
– 0000084: [General] add hardware configuration to bananian-config
– 0000060: [General] Include bin2fex and fex2bin

For a list of all changes see our changelog:
https://dev.bananian.org/changelog_page.php?version_id=11

Do you want to continue (yes/no)?yes

———————————————————————————
upgrading bananian-config…

———————————————————————————
installing bananian-hardware…

———————————————————————————
installing fexc (bin2fex/fex2bin)…

———————————————————————————
installing swconfig…

———————————————————————————
enabling VLAN (8021q) module…

———————————————————————————
setting new version number…

———————————————————————————
done! please reboot your system now! (shutdown -r now)

在 Debian 7 上建置 Slave DNS Server

Master DNS Server – 192.168.1.3
Slave DNS Server – 192.168.1.12

Master DNS Server 的部分已設定完成,這篇文章主要針對 Slave DNS Server 來做設定
參考網頁:
Setup DNS Server On Debian 7 Wheezy | Unixmen
Mind Reference: Debian Slave DNS Server Setup
[@more@]1. 安裝 DNS Server 所須套件
# apt-get install bind9 bind9utils bind9-doc dnsutils

2.修改 Master DNS Server 上的 /etc/bind/named.conf.local 設定檔,加入紅字的部分
# vim /etc/bind/named.conf.local
zone “test.ilc.edu.tw” IN {
        type master;
        file “/etc/bind/db.test.ilc.edu.tw”;
        allow-transfer  { 192.168.1.12; };
        also-notify { 192.168.1.12; };
};

zone “1.168.192.in-addr.arpa” IN {
        type master;
        file “/etc/bind/db.1.168.192”;
        allow-transfer  { 192.168.1.12; };
        also-notify { 192.168.1.12; };
};

3. 修改 Slave DNS Server 的 /etc/bind/named.conf.local
# vim /etc/bind/named.conf.local
zone “test.ilc.edu.tw” IN {
        type slave;
        file “/etc/bind/db.test.ilc.edu.tw”;
       
masters  { 192.168.1.3; };
};

zone “1.168.192.in-addr.arpa” IN {
        type slave;
        file “/etc/bind/db.1.168.192”;
        masters  { 192.168.1.3; };
};

4. 重新啟動 Slave DNS Server
# /etc/init.d/bind9 restart

5. 會自動從 Master DNS Server 抓取設定檔
# ls -l /etc/bind/db.*
-rw-rw-r– 1 bind bind   237 Dec  9 04:21 /etc/bind/db.0
-rw-rw-r– 1 bind bind   271 Dec  9 04:21 /etc/bind/db.127
-rw-rw-r– 1 bind bind   237 Dec  9 04:21 /etc/bind/db.255
-rw-r–r– 1 bind bind 17797 Dec 25 14:16 /etc/bind/db.1.168.192
-rw-rw-r– 1 bind bind   353 Dec  9 04:21 /etc/bind/db.empty
-rw-rw-r– 1 bind bind   270 Dec  9 04:21 /etc/bind/db.local
-rw-rw-r– 1 bind bind  3048 Dec  9 04:21 /etc/bind/db.root
-rw-r–r– 1 bind bind 20142 Dec 25 14:17 /etc/bind/db.test.ilc.edu.tw

6. 進行測試
# host 192.168.1.3 192.168.1.12
Using domain server:
Name: 192.168.1.12
Address: 192.168.1.12#53
Aliases:

3.1.168.192.in-addr.arpa domain name pointer ftp.test.ilc.edu.tw.

# host ftp.test.ilc.edu.tw 192.168.1.12
Using domain server:
Name: 192.168.1.12
Address: 192.168.1.12#53
Aliases:

ftp.test.ilc.edu.tw has address 192.168.1.3

 

在 Banana Pi 測試 – 新增 SSD 資料硬碟

新增一顆 SSD 硬碟來當做網頁資料存取。
1. 連接好 SSD 硬碟

[@more@]2. 分割 SSD 硬碟
# fdisk /dev/sda
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x6de07098.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won’t be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): p

Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6de07098

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): n
Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p): p
Partition number (1-4, default 1):
Using default value 1
First sector (2048-250069679, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-250069679, default 250069679):
Using default value 250069679

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 83

Command (m for help): wq
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

3. 格式化 SSD 硬碟
# mkfs.ext4 /dev/sda1
mke2fs 1.42.5 (29-Jul-2012)
Discarding device blocks: done
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
7815168 inodes, 31258454 blocks
1562922 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
954 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

4. 查看 SSD 硬碟分割區的 UUID
# blkid
/dev/sda1: UUID=”31bcc29f-70a8-46b5-85ad-51b52a30501b” TYPE=”ext4″
/dev/mmcblk0p1: SEC_TYPE=”msdos” UUID=”4D17-5A3B” TYPE=”vfat”
/dev/mmcblk0p2: UUID=”1af97748-34b7-4a6e-a16d-29c409d9c367″ TYPE=”ext4″

5. 建立掛載的目錄
# mkdir /var/www

6. 修改 /etc/fstab
# cp /etc/fstab /etc/fstab.$(date +%F)
# vim /etc/fstab
加入下面一行
UUID=31bcc29f-70a8-46b5-85ad-51b52a30501b /var/www ext4 noatime,nodiratime,discard,defaults 0 1

7. 重新啟動電腦
# sync;sync;sync;reboot

8. 驗收成果
# df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs          7.3G  947M  6.0G  14% /
/dev/root       7.3G  947M  6.0G  14% /
devtmpfs        486M     0  486M   0% /dev
tmpfs            98M  252K   97M   1% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           195M     0  195M   0% /run/shm
/dev/sda1       118G  188M  112G   1% /var/www

Banana Pi – 讓 Debian 的終端機能色彩繽紛

用習慣 CentOS 之後,使用 Debian 有些不太習慣,Debian 預設的終端機是沒有根據不同類型的檔案,加上顏色來區分的。
[@more@]參考網頁:Change default LS colors on Debian [[[Linuxwall.info::Wiki]]]

以 root 身份為例
1. 執行 dircolors 產生相關設定
# dircolors -p > ~/.dircolorsrc

2. 將設定加入到 .bashrc 或是 .profile
# vim ~/.bashrc
加入下面這二行
eval “`dircolors -b ~/.dircolorsrc`”
export LS_OPTIONS=’–color=auto’

3. 登入再重新登入後即可生效

4. 讓新增的帳號生效
# dircolors -p > /etc/skel/.dircolorsrc
# vim /etc/skel/.bashrc
加入下面這二行
eval “`dircolors -b ~/.dircolorsrc`”
export LS_OPTIONS=’–color=auto’

5. 也可以自行修改不同的顏色
# tail .dircolorsrc
.mp3 00;36
.mpc 00;36
.ogg 00;36
.ra 00;36
.wav 00;36
# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
.axa 00;36
.oga 00;36
.spx 00;36
.xspf 00;36

.mp3 等就是 青色

Banana Pi – Gentoo Linux 測試

距離上一次使用 Gentoo Linux 可能已經有 8~9 年的時間了,原本已經再也不會去接觸這一個 Linux 了,託 Banana Pi 的福,讓我有機會再去重溫以前的歲月。
關於 Gentoo Linux,感覺在國內使用的人似乎不多,中文書籍也不多,我手上有一本號稱是第一本 Gentoo Linux 的中文書,也可能是最後一本。

關於 Gentoo Linux 的介紹:
Gentoo Linux Taiwan 
Gentoo Linux – 維基百科,自由的百科全書
[@more@]
遠端登入後畫面 預設登入的帳號密碼
root/bananapi
bananapi/bananapi

Banana Pi – 測試使用 Raspbian v1412 版

之前版本的桌面

現在預設的桌布

[@more@]新增 bpi-config 工具,功能和之前的 raspi-config 功能相同

中文化可以參考:頭城國小資訊組 | Banana Pi 測試 – Raspbian 篇

新安裝 S4A

Arduino 安裝二個版本,功能表中的是 1.0.1 版,桌面上的是 1.5.4 版

不過 Dillo 在中文顯示上有些問題

 NetSurf 在文章目錄上顯示不出來

後來另外安裝了 Iceweasel(Firefox)和 Chromium 瀏覽器來使用!