Skip to content

Instantly share code, notes, and snippets.

@emememw
Last active February 12, 2019 14:50
Show Gist options
  • Save emememw/31d8be816438ea6b79a4 to your computer and use it in GitHub Desktop.
Save emememw/31d8be816438ea6b79a4 to your computer and use it in GitHub Desktop.
ubuntu install
#!/bin/bash
#init
sudo apt-get update
# - archives
sudo apt-get install unace unrar zip unzip p7zip-full p7zip-rar sharutils rar uudeview mpack arj cabextract file-roller
# - irssi
sudo apt-get install irssi
# - ack
sudo apt-get install ack-grep
# - curl
sudo apt-get install curl
# - zsh
sudo apt-get install zsh
curl -L http://install.ohmyz.sh | sh
sh -s /bin/zsh
# - vim
sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \
ruby-dev mercurial
sudo apt-get remove vim vim-runtime gvim
sudo apt-get remove vim-tiny vim-common vim-gui-common
cd ~
hg clone https://code.google.com/p/vim/
cd vim
./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp \
--enable-pythoninterp \
--with-python-config-dir=/usr/lib/python2.7/config \
--enable-perlinterp \
--enable-luainterp \
--enable-gui=gtk2 --enable-cscope --prefix=/usr
make VIMRUNTIMEDIR=/usr/share/vim/vim74
sudo make install
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1
sudo update-alternatives --set editor /usr/bin/vim
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1
sudo update-alternatives --set vi /usr/bin/vim
cd ~
git clone https://github.com/markus-wi/dotfiles_vim.git
cp ~/dotfiles_vim/.vimrc ~/.vimrc
cp -R ~/dotfiles_vim/.vim ~/.vim
# - git
sudo apt-get install git
# - mocp
sudo apt-get install moc
# - htop
sudo apt-get install htop
# - nodejs npm
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get update
sudo apt-get install nodejs
# - java
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
# - gimp
sudo add-apt-repository ppa:otto-kesselgulasch/gimp
sudo apt-get update
sudo apt-get install gimp
# - nginx
sudo apt-get install nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment