Skip to content

Instantly share code, notes, and snippets.

@hdemon
Created September 6, 2011 09:34
Show Gist options
  • Save hdemon/1197122 to your computer and use it in GitHub Desktop.
Save hdemon/1197122 to your computer and use it in GitHub Desktop.
Ubuntu initialize
# install with English
# Language Setting
# VMwareToolsは/tmpを作業ディレクトリにしない。再起動時に消えるので、上手くインストールが完了していない気がする。
### basic package
sudo apt-get update
sudo apt-get install --yes aptitude
sudo aptitude -y install \
zsh \
aptitude \
paco \
git \
subversion \
curl \
sysv-rc-conf
sudo apt-get install etckeeper
sudo etckeeper init
# 時刻合わせ
sudo aptitude -y install ntp
sudo perl -i -nle 'if(/server ntp.ubuntu.com/){for(1..3){print"server ntp.nict.jp"}}else{print;}' /etc/ntp.conf
# 不要なサービスを切る。
sudo sysv-rc-conf \
bluetooth off \
dns-clean off \
pppd-dns off \
speech-dispatcher off \
usplash off \
saned off
### GNOMEの設定変更
# ディスプレイのスリープをオフにする。
# $HOME/.gconf/apps/gnome-power-maneger/timeout/%gconf.xml の <entry name="sleep_display_ac" mtime="1315356689" type="int" value="0"/> 中の'value="?"'を0にする。
### zsh
# rootと作業用ユーザの両方にzshをセットする。
sudo git clone git://gist.github.com/1176191.git gist-1176191
sudo cp ./gist-1176191/.zshrc /root
sudo cp ./gist-1176191/.zshrc /home/hdemon
sudo chown root:root /root/.zshrc
sudo chown hdemon:hdemon /home/hdemon/.zshrc
sudo chsh -s /bin/zsh
chsh -s /bin/zsh
sudo rm -rf gist-1176191
sudo reboot
### Emacs
sudo aptitude -y install emacs23
# .emacs.d/以下の導入
cd ~
git clone git@github.com:hdemon/my-emacs.git
### Ruby
sudo git clone git://gist.github.com/1197384.git gist-1197384
sudo mv ./gist-1197384/ruby-install.sh
sudo rm -rf gist-1197384
### MySQL
sudo git clone git://gist.github.com/1197378.git gist-1197378
sudo bash ./gist-1197378/mysql-install.sh
sudo rm -rf ./gist-1197378
### EasyStroke マウスジェスチャソフト
sudo aptitude -y install \
g++ \
libboost-serialization-dev \
libgtkmm-2.4-dev \
libxtst-dev \
libdbus-glib-1-dev \
intltool \
xserver-xorg-dev
sudo git clone git://github.com/thjaeger/easystroke.git
cd easystroke
make
sudo paco -D make install
git clone git://gist.github.com/1199606.git gist-1199606
cp ./gist-1199606/easystroke.desktop /usr/share/applications
sudo rm -rf ./gist-*
sudo apt-get install sikuli-ide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment