Pandora Pocket

IT系と日常系の備忘録。三日坊主。

たまにUbuntuを再インストールするときに毎度必要なソフトなどが何かわからなくなるので羅列してそのままシェルスクリプトで簡単インストールできるようにした。

#!/bin/sh

######################################################################

#システム時刻をJSTに設定

#http://blog.goo.ne.jp/tabitom2002/e/d3e109e62da68f7f29694174a8a03eeb

ln -sf /usr/share/zoneinfo/Japan /etc/localtime

apt-get install -y aptitude

aptitude install -y build-essential libX11-dev gpaco startupmanager

aptitude install -y chromium-browser filezilla

aptitude install -y gimp thunderbird thunderbird-locale-ja

aptitude install -y otf-ipafont ttf-umefont ttf-konatu ttf-ipamonafont

aptitude install -y ibus-mozc ibus-tegaki mozc-utils-gui

aptitude install -y lha-sjis p7zip-full

aptitude install -y adobereader-jpn adobereader-jpn-ipamonafont

aptitude install -y texmaker eclipse gnuplot gedit-plugins

aptitude install -y nautilus-gksu nautilus-open-terminal

aptitude install -y texlive texlive-math-extra ptex-bin xdvik-ja dvipsk-ja dvipdfmx

aptitude install -y texlive-latex-extra texlive-science texlive-pictures texlive-publishers

aptitude install -y cmap-adobe-japan1 cmap-adobe-japan2 cmap-adobe-cns1 cmap-adobe-gb1

aptitude install -y ptex-jisfonts okumura-clsfiles texlive-fonts-extra gs-cjk-resource nkf

aptitude install -y jmpost jbibtex-base jbibtex-bin mendexk

jisftconfig add

LANG=C xdg-user-dirs-gtk-update

LANG=C xdg-user-dirs-gtk-updateでDon't ask me this againにチェック入れた上でUpdate Names。

これで日本語ディレクトリが英語に戻る。

後私はノートパソコンにUbuntuを入れているがマウスを使うためタッチパッドは必要ない。

ということで以下のスクリプトを利用して無効化してる。

#!/bin/sh
device="SynPS/2 Synaptics TouchPad"
prop="Device Enabled"
current_state=`xinput list-props "$device" | grep "$prop" | awk '{print $4}'`
next_state=`expr 1 - $current_state`
xinput set-int-prop "$device" "$prop" 8 $next_state

ちなみにこのスクリプトはここからお借りした。元記事にあるようにキーボードショートカットに設定しておけばOK。

ググって一発で出てくるって偉大。