$ sudo
sync
or use ETCHER for Flash OS images to SD cards & USB drives, safely and easily
Debain 9.3 installation( installation, DNS client, apt source-list, openssh-server, and language)
1. Download iso file:
https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/
[ISO] debian-9.3.0-amd64-netinst.iso 2017-12-09 14:04 290M
[ISO] debian-9.3.0-amd64-xfce-CD-1.iso 2017-12-09 14:04 647M
[ISO] debian-mac-9.3.0-amd64-netinst.iso 2017-12-09 14:04 293M
2. DNS client
jimmy@jimmy:~$ cat /etc/resolv.conf
# Generated by NetworkManager
search advantech.corp
nameserver 172.17.1.1
nameserver 172.20.1.100
3. apt source.list
jimmy@jimmy:~$ cat /etc/apt/sources.list
# deb cdrom:[Debian GNU/Linux 9.3.0 _Stretch_ - Official amd64 xfce-CD Binary-1 20171209-12:11]/ stretch main
# deb cdrom:[Debian GNU/Linux 9.3.0 _Stretch_ - Official amd64 xfce-CD Binary-1 20171209-12:11]/ stretch main
deb http://debian.linux.org.tw/debian/ stretch main
deb-src http://debian.linux.org.tw/debian/ stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main
# stretch-updates, previously known as 'volatile'
deb http://debian.linux.org.tw/debian/ stretch-updates main
deb-src http://debian.linux.org.tw/debian/ stretch-updates main
4. Software and applications :
jimmy@jimmy:~$ sudo apt update
Main software:
jimmy@jimmy:~$ sudo apt install vim net-tools openssh-server aptitude
語系變更 1:
# sudo vi /etc/locale.gen
un-mark en_US.UTF-8 UTF-8
un-mark zh_TW.UTF-8 UTF-8
# locale-gen
-> Debian -> Settings -> Region & Language
REF: https://www.linuxdashen.com/debian-8如何将语言从英文更改为中文
語系變更 2:
發現在shell中文還是亂碼,於是毅然的把語言更改成英語的。打開文件locale
sudo vi /etc/default/locale
顯示
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh"
將其內容更改成
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
然後重啟reboot機器。
雖然之前的能夠將中文改成英文,但是在使用locale命令時時會出現
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Ubuntu wiki Locale 修改上說是因為 en-US.UTF-8 沒有安裝。得知通過
dpkg-reconfigure locales
修改,在選項中選擇en-US.UTF-8 按空格選中。然後簡單的按 ok 鍵就好了。這下才算正確把中文環境的系統更換成英文的環境的系統。
REF : https://www.chenyudong.com/archives/debian-change-locale-language.html
中文 輸入法:(酷音,無蝦米)
鍵盤輸入法系統,常見的就有 fcitx、gcin、iBus、hime 等
注音輸入法又分「注音」、「新酷音」與「詞音」等,下面的例子是以fcitx 為鍵盤輸入法,並使用 酷音 和 無蝦米 為中文輸入法
sudo apt-get update
sudo apt-get install fcitx-chewing
sudo apt-get install fcitx-table-boshiamy
REF : http://mintfans.pixnet.net/blog/post/74323206-fcitx-精簡安裝
REF : https://www.ubuntu-tw.org/modules/newbb/viewtopic.php?viewmode=flat&order=DESC&topic_id=53570&forum=8
More information about Chinese :
Step 1: debian # aptitude install locales
Step 2:
debian # dpkg-reconfigure locales (在出現的 menu 中,選擇你要安裝的語系) 中文的話,選取(按空白鍵)下列兩項 : [*] zh_TW BIG5 [*] zh_TW_UTF-8 UTF-8 預設 (Default locale for the system environment) 隨你高興看是要中文或是英文.
Step 3: 重新造 X window System 設定檔
debian # aptitude install xorg
Step 4: 重新安裝 Window Manager / Desktop Environment Debian
# aptitude install gnome (也可以選擇安裝 icewm, kde, ….)
Step 5: 安裝中文字型 中文點陣字型(文泉驛字型)
debian # aptitude install xfonts-wqy 中文向量字型(文鼎明、楷體)
debian # aptitude install ttf-arphic-bkai00mp ttf-arphic-uming
Step6: 安裝中文輸入法
debian # aptitude install gcin gcin-qt3-immodule im-switch
Step 7: 安裝嘸蝦米輸入法 若你不需要,請跳過此步驟。
安裝方法請自行參考: 行易官網: http://boshiamy.com/member_download.php gcin 官網:http://cle.linux.org.tw/trac/wiki/GcinInstallBoshiamy
Step 8: 安裝 X Terminal Emulator (若有需要中文的 terminal 才裝)
debian # aptitude install mlterm mlterm-tools
debian # update-alternatives –config x-terminal-emulator
Step 9: 大功告成! debian # startx
REF: http://goodjack.blogspot.tw/2013/08/linux-phonetic-setting.html
Intel NCU wifi driver:
Add a "non-free" component to /etc/apt/sources.list, for example:
# Debian 9 "Stretch"
deb http://httpredir.debian.org/debian/ stretch main contrib non-free
# apt-get update && apt-get install firmware-iwlwifi
# sudo /sbin/modprobe -r iwlwifi
# sudo /sbin/modprobe iwlwifi
$ su
# apt-get update
# apt-get install network-manager-gnome
See the NetworkManager page for frequently asked questions, documentation and support references.