Difference between revisions of "Box"

From Things and Stuff Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
See also [[Stack]], [[*nix#Configuration_2]]
 
See also [[Stack]], [[*nix#Configuration_2]]
  
== Basic setup ==
+
== Install ==
 +
* https://wiki.debian.org/DebianInstaller/Preseed
 +
* http://fai-project.org/
 +
* http://www.50ply.com/blog/2012/07/16/automating-debian-installs-with-preseed-and-puppet/
  
 +
* https://github.com/vitamins/archinstaller
 +
 +
== Personal setup ==
 
* http://plusbryan.com/my-first-5-minutes-on-a-server-or-essential-security-for-linux-servers
 
* http://plusbryan.com/my-first-5-minutes-on-a-server-or-essential-security-for-linux-servers
 
** http://news.ycombinator.com/item?id=5316093
 
** http://news.ycombinator.com/item?id=5316093

Revision as of 04:20, 25 November 2013

Basic setup and dotconfig notes.

See also Stack, *nix#Configuration_2

Install

Personal 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