$ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get dist-upgrade
$ sudo apt-get install ubuntu-restricted-extras -y
sudo apt-get install -y mlterm mlterm-tools emacs emacs-goodies-el vim lv nkf convmv zsh mozc-server mozc-utils-gui ibus-mozc otf-ipafont otf-ipaexfont ttf-vlgothic xfonts-mplus screen -y
$ sudo update-alternatives --config editor alternative editor (/usr/bin/editor を提供) には 5 個の選択肢があります。 選択肢 パス 優先度 状態 ------------------------------------------------------------ * 0 /bin/nano 40 自動モード 1 /bin/ed -100 手動モード 2 /bin/nano 40 手動モード 3 /usr/bin/emacs23 0 手動モード 4 /usr/bin/vim.basic 30 手動モード 5 /usr/bin/vim.tiny 10 手動モード 現在の選択 [*] を保持するには Enter、さもなければ選択肢の番号のキーを押してください: 4 $ sudo update-alternatives --config pager alternative pager (/usr/bin/pager を提供) には 4 個の選択肢があります。 選択肢 パス 優先度 状態 ------------------------------------------------------------ * 0 /usr/bin/lv 80 自動モード 1 /bin/less 77 手動モード 2 /bin/more 50 手動モード 3 /usr/bin/lv 80 手動モード 4 /usr/bin/pg 10 手動モード 現在の選択 [*] を保持するには Enter、さもなければ選択肢の番号のキーを押してください:0
$ sudo apt-get install ibus-mozc mozc-server mozc-utils-gui
$ ibus-setup
$ gedit ~/.xmodmaprc !! file is ~/.xmodmaprc ! コントロールキーとCapsロックキーの入れ替え remove Lock = Caps_Lock remove Control = Control_L keysym Control_L = Caps_Lock keysym Caps_Lock = Control_L add Lock = Caps_Lock add Control = Control_L
$ setxkbmap -model us -layout us
$ xev
KeyRelease event, serial 36, synthetic NO, window 0x4000001,
root 0xad, subw 0x0, time 4200801, (125,164), root:(198,451),
state 0x0, keycode 132 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
keycode 132 = backslash bar backslash bar
keycode 51 = apostrophe quotedbl apostrophe quotedbl
$ gedit ~/.xmodmaprc.us2noteus !! us 配列の変更 keycode 132 = backslash bar backslash bar keycode 51 = apostrophe quotedbl apostrophe quotedbl
$ mkdir ~/bin $ gedit ~/bin/xkbmapNoteUS.sh
#!/bin/sh setxkbmap -model us -layout us xmodmap ~/.xmodmaprc xmodmap ~/.xmodmaprc.us2noteus
chmod 755 ~/bin/xkbmapNoteUS.sh
$ echo "~/bin/xkbmapNoteUS.sh" | tee -a ~/.xprofile $ echo "~/bin/xkbmapNoteUS.sh" | tee -a ~/.profile
$ sudo fc-cache -v -f
$ fc-list
$ cd <ダウンロードしたディレクトリ> $ unzip migmix-1m-*.zip $ unzip migmix-1c-*.zip ~<中略>~
mkdir MigMix mkdir Migu cp -v migmix-*/*.ttf MigMix/ cd -v migu-*/*.ttf Migu sudo cp -rfv MigMix Migu /usr/share/fonts/truetype/ sudo fc-cache -f -v
$ fc-cache | grep Mig
$ sudo apt-get install fontforge ttf-inconsolata wget http://save.sys.t.u-tokyo.ac.jp/~yusa/fonts/ricty/Ricty-3.1.2.tar.gz tar zxvf Ricty-3.1.2.tar.gz cd Ricty sudo cp -rfv /usr/share/fonts/truetype/ttf-inconsolata/Inconsolata.otf . sudo cp -rfv /usr/share/fonts/truetype/Migu/migu-1m-*.ttf . sh ricty_generator.sh Inconsolata.otf migu-1m-regular.ttf migu-1m-bold.ttf mkdir Ricty mkdir RictyDiscord cp -v Ricty-* Ricty cp -v RictyDiscord* RictyDiscord sudo cp -rfv Ricty RictyDiscord /usr/share/fonts/truetype/ sudo fc-cache -v -f
wget http://www.geocities.jp/ipa_mona/opfc-ModuleHP-1.1.1_withIPAMonaFonts-1.0.8.tar.gz tar zcvf opfc-ModuleHP-1.1.1_withIPAMonaFonts-1.0.8.tar.gz cd opfc-ModuleHP-1.1.1_withIPAMonaFonts-1.0.8/fonts/ mkdir ipamonafont cp -v *mona.ttf ipamonafont/ sudo cp -rfv ipamonafont /usr/share/fonts/truetype sudo fc-cache -v -f
$ sudo visudo ## %admin を次のように変更 %admin ALL=(ALL) NOPASSWD:ALL
$ LANG=C xdg-user-dirs-gtk-update
$ sudo cp -v /etc/fonts/conf.avail/69-language-selector-ja-jp.conf ~/.fonts.conf $ id # ここで、ユーザ名、グループ名を確認 一例: uid=1000(hoge) gid=1000(hoge) $ sudo chown hoge:hoge ~/.fonts.conf $ vi ~/.fonts.conf
dot.fonts.conf;
〜略〜
<match target="pattern">
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>IPAex明朝</string>
<string>Takao P明朝</string>
<string>IPA P明朝</string>
<string>IPA モナー P明朝</string>
<string>梅P明朝</string>
<string>さざなみ明朝</string>
<string>東風明朝</string>
</edit>
</match>
~略~
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>MigMix 1P</string>
<string>MigMix 2P</string>
<string>Takao Pゴシック</string>
<string>IPA Pゴシック</string>
<string>IPA モナー Pゴシック</string>
<string>UmePlus P Gothic</string>
<string>梅Pゴシック</string>
<string>VL Pゴシック</string>
<string>さざなみゴシック</string>
<string>東風ゴシック</string>
</edit>
</match>
~略~
<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Ricty</string>
<string>MigMix 1M</string>
<string>Takaoゴシック</string>
<string>IPAゴシック</string>
<string>IPA モナー ゴシック</string>
<string>UmePlus Gothic</string>
<string>梅ゴシック</string>
<string>VL ゴシック</string>
<string>さざなみゴシック</string>
<string>東風ゴシック</string>
</edit>
</match>
~略~
cd /var/lib/locales/supported.d/ echo "ja_JP.EUC-JP EUC-JP" | sudo tee -a ja echo "ja_JP.EUC-JP EUC-JP" | sudo tee -a local echo "ja_JP.SHIFT_JIS SHIFT_JIS" | sudo tee -a ja echo "ja_JP.SHIFT_JIS SHIFT_JIS" | sudo tee -a local sudo locale-gen locale -a | grep ja
ja_JP.eucjp # EUC-JP ja_JP.shiftjis # Shift-jis ja_JP.utf8 # UTF-8
$ sudo apt-get install gnome-session-fallback -y
$ sudo apt-get install gnome-shell -y
sudo add-apt-repository ppa:ricotz/testing sudo apt-get update sudo apt-get install gnome-tweak-tool
2012-04-23
2011-10-23
2011-10-22
2011-10-19
2011-10-18
2011-10-15
2011-08-11