Last active
December 13, 2015 22:08
-
-
Save nobonobo/4982542 to your computer and use it in GitHub Desktop.
Dev-Environment Memo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| sudo apt-get install --yes git git-flow etckeeper | |
| sudo nano /etc/etckeeper/etckeeper.conf # VCS="git" | |
| sudo etckeeper init | |
| sudo etckeeper commit -m "first" | |
| LANG=C; xdg-user-dirs-gtk-update | |
| sudo apt-get install --yes fcitx-mozc # 再ログイン必要 | |
| # - 言語サポートのインストール(設定ダイアログ開くと更新) | |
| # ibus系アプグレード for mint | |
| wget -q http://linuxmint-jp.net/linuxmint-ja-archive-keyring.gpg -O- | sudo apt-key add - | |
| sudo wget http://linuxmint-jp.net/sources.list.d/linuxmint-ja.list -O /etc/apt/sources.list.d/linuxmint-ja.list | |
| sudo apt-get update | |
| sudo apt-get dist-upgrade | |
| sudo apt-get install mint-gnome-ja --install-recommends | |
| # Sublime Text 2 & fcitx | |
| sudo apt-get install --yes build-essential libgtk2.0-dev | |
| git clone https://github.com/pavelhurt/sublime2-fcitx-fix.git | |
| cd sublime2-fcitx-fix | |
| gcc -shared -o libsublime-imfix.so sublime-imfix.c `pkg-config --libs --cflags gtk+-2.0` -fPIC | |
| sudo mv libsublime-imfix.so /usr/lib/ | |
| # for office & document | |
| sudo apt-get install --yes libreoffice | |
| sudo apt-get install --yes texlive-lang-cjk xdvik-ja | |
| # for development | |
| sudo apt-get install --yes build-essential autoconf | |
| sudo apt-get install --yes python-setuptools python-pip python-dev | |
| sudo pip install virtualenvwrapper | |
| nano ~/.bashrc # added ". /usr/local/bin/virtualenvwrapper.sh" | |
| git config --global user.name "nobonobo" | |
| git config --global user.email "nobonobo@python.matrix.jp" | |
| git config --global color.ui "auto" | |
| # フォント設定 | |
| fc-match sans:lang=ja; fc-match serif:lang=ja; fc-match monospace:lang=ja | |
| # Takao ####が出ることを確認して出ない場合は以下の処理を。 | |
| mkdir ~/.config/fontconfig | |
| cp /etc/fonts/conf.d/69-language-selector-ja-jp.conf ~/.config/fontconfig/fonts.conf | |
| # for Flash | |
| sudo apt-get install --yes fonts-arphic-uming | |
| cd /usr/share/fonts/truetype | |
| sudo cp fonts-japanese-mincho.ttf arphic/uming.ttc | |
| # avahi | |
| sudo apt-get install --yes avahi-daemon | |
| # for kvm | |
| sudo apt-get install --yes virt-manager kvm ubuntu-vm-builder # 再ログイン必要 | |
| sudo adduser nobonobo libvirtd | |
| # for cairo-dock | |
| sudo apt-get install --yes cairo-dock xcompmgr | |
| # ==== .bashrc start ==== | |
| export LS_OPTIONS='--color=auto' | |
| eval "`dircolors`" | |
| alias ls='ls $LS_OPTIONS' | |
| alias ll='ls $LS_OPTIONS -l' | |
| alias l='ls $LS_OPTIONS -lA' | |
| . /usr/local/bin/virtualenvwrapper.sh | |
| # ==== .bashrc end ==== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| SUBLIMETEXT=$HOME/bin/SublimeText2/sublime_text | |
| PRELIB=/usr/lib/libsublime-imfix.so | |
| LD_PRELOAD=$PRELIB $SUBLIMETEXT --class=sublime-text-2 "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment