Box

From Things and Stuff Wiki
Revision as of 15:54, 7 March 2013 by Milk (talk | contribs)
Jump to navigation Jump to search


Basic setup and dotconfig.

See also Stack

hostname new.hostname.com
apt-get install tmux zsh
useradd -m -s /usr/bin/zsh milk
passwd milk
adduser milk sudo
apt-get install ncdu htop git mercurial

hg clone https://vim.googlecode.com/hg/ src/vim && cd src/vim && make && make install
  (disable distro vim)
cd ~

wget http://www.atoptool.nl/download/atop-2.0.2.tar.gz && tar zxvf atop-2.0.2.tar.gz && cd atop-2.0.2 && make && make install
apt-get install php mariadb
apt-get install ruby rubygems
apt-get install python pip
vim /etc/ssh/sshd_config
  disable root, change port, etc.
ssh-keygen -t rsa
rm -rf /etc/zsh
git clone git@github.com:milkmiruku/zsh.git /etc/zsh
cd /etc/zsh
git submodule init
git submodule update
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

in Vim

:NeoBundleInstall

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


setup.sh

add local machine entry in /etc/hosts for dnsmasq. to do; dhcp.

[1]

sudo ifconfig eth1 192.168.56.101 netmask 255.255.255.0 up
sudo echo "" >> /etc/network/interfaces
sudo echo "auto eth1" >> /etc/network/interfaces
sudo echo "iface eth1 inet static" >> /etc/network/interfaces
sudo echo "address 192.168.56.101" >> /etc/network/interfaces
sudo echo "netmask 255.255.255.0" >> /etc/network/interfaces
sudo echo "network 192.168.56.0" >> /etc/network/interfaces
sudo echo "broadcast 192.168.56.255" >> /etc/network/interfaces

sudo apt-get install zsh tmux git-core

ssh-keygen -t rsa -C "milk@vm.local"
cat .ssh/id_rsa.pub 
  cp to github 

sudo ssh-keygen -t rsa -C "root@vm.local"
sudo cat /root/.ssh/id_rsa.pub
  cp to github 

git clone git@github.com:milkmiruku/dottmux.git .tmux
ln -s ~/.tmux/.tmux.conf ~/.tmux.conf

git clone git@github.com:milkmiruku/dotvim.git .vim
ln -s ~/.vim/vimrc ~/.vimrc
sudo ln -s ~/.vim/vimrc /root/.vimrc

sudo rm -rf /etc/zsh
sudo git clone git@github.com:milkmiruku/zsh.git /etc/zsh
sudo git submodule update /etc/zsh/git-prompt (?)
sudo su -
wget http://drupalcode.org/project/barracuda.git/blob_plain/refs/heads/master:/BARRACUDA.sh.txt
sed -i 's/notify@omega8.cc/milkmiruku@gmail.com/' BARRACUDA.sh.txt
sed -i 's/CHV CSF/CHV CGP CSF WMN/' BARRACUDA.sh.txt
sed -i 's/_AUTOPILOT=NO/_AUTOPILOT=YES/' BARRACUDA.sh.txt
sed -i 's/_DEBUG_MODE=NO/_DEBUG_MODE=YES/' BARRACUDA.sh.txt
sed -i 's/_SSH_PORT=22/_SSH_PORT=321/' BARRACUDA.sh.txt
sed -i 's/_LOCAL_DEBIAN_MIRROR=\"\"/_LOCAL_DEBIAN_MIRROR=\"ftp.uk.debian.org\"/' BARRACUDA.sh.txt
sed -i 's/_LOCAL_UBUNTU_MIRROR=""/_LOCAL_UBUNTU_MIRROR="uk.archive.ubuntu.com"/' BARRACUDA.sh.txt
sed -i 's/_MY_OWNIP=""/_MY_OWNIP="192.168.56.101"/' BARRACUDA.sh.txt
sed -i 's/_MY_HOSTN=""/_MY_HOSTN="pink.local"/' BARRACUDA.sh.txt
sed -i 's/_MY_FRONT=""/_MY_FRONT="pink.local"/' BARRACUDA.sh.txt
sed -i 's/_SMTP_RELAY_HOST=""/_SMTP_RELAY_HOST="smtp.gmail.com"/' BARRACUDA.sh.txt
bash BARRACUDA.sh.txt
  db pass, etc.
service nginx restart
ssh-keygen -t rsa -C "aegir@vm.local"
cat .ssh/id_rsa.pub 
  cp to github
scp ~/.tmux.conf ~/.tmux user@domain.org:~
scp ~/.vimrc ~/.vim user@domain.org:~