Box

From Things and Stuff Wiki
Revision as of 03:56, 20 November 2013 by Milk (talk | contribs)
Jump to navigation Jump to search


Basic setup and dotconfig notes.

See also Stack, *nix#Configuration_2

Basic setup

hostname new.hostname.com

sudo apt-get update
sudo apt-get install tmux zsh ncdu htop tree git mercurial build-essential gcc libc6-dev ncurses-dev

useradd -m -s /usr/bin/zsh milk
passwd milk
adduser milk sudo

sudo apt-get remove vim vim-runtime gvim
  (disable distro vim. not possible with apt on ubuntu [1])
mkdir ~/src && mkdir ~/src/vim
hg clone https://vim.googlecode.com/hg/ ~/src/vim && cd ~/src/vim && ./configure --enable-pythoninterp=yes && make && sudo make install
cd

wget -O src/atop.tar.gz http://www.atoptool.nl/download/atop-2.0.2.tar.gz && cd ~/src && tar zxvf atop.tar.gz && cd ~/src/atop && ./configure && make && make install
cd

vim /etc/ssh/sshd_config
  disable root, change port, etc.
ssh-keygen -t rsa
  (for user and root?)
sudo git clone git@github.com:milkmiruku/zsh.git ~/.zsh && cd ~/.zsh && sudo git submodule init && sudo git submodule update
  edit zshrc location config
git clone git@github.com:milkmiruku/dotvim.git ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc
mkdir ~/.vim/bundle
git clone git://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim
echo ':NeoBundleInstall' > viminit.txt
echo ':wq' >> viminit.txt
vim -s indent.txt file
rm viminit.txt

To sort: multiuser config. permissions? Or /usr/share/config/ ...

git clone git@github.com:milkmiruku/dottmux.git ~/.tmux
ln -s ~/.tmux/.tmux.conf ~/.tmux.conf
apt-get install php mariadb
apt-get install ruby rubygems
apt-get install python pip