Box
Revision as of 00:15, 28 September 2013 by Milkmiruku.com (talk | contribs)
Basic setup and dotconfig notes.
See also Stack, *nix#Configuration_2
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 && ./configure --enable-pythoninterp=yes && make && make install (disable distro vim) 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 rm -rf /etc/zsh sudo git clone git@github.com:milkmiruku/zsh.git /etc/zsh cd /etc/zsh sudo git submodule init sudo 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
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
etc
setup.sh
old;
add local machine entry in /etc/hosts for dnsmasq. to do; dhcp.
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:~