Difference between revisions of "Box"
Jump to navigation
Jump to search
Line 24: | Line 24: | ||
passwd milk | passwd milk | ||
adduser milk sudo | adduser milk sudo | ||
− | + | ||
sudo apt-get remove vim vim-runtime gvim | sudo apt-get remove vim vim-runtime gvim | ||
− | (disable distro vim. not possible with apt on ubuntu [https://bugs.launchpad.net/ubuntu/+source/vim/+bug/998309]) | + | # (disable distro vim. not possible with apt on ubuntu [https://bugs.launchpad.net/ubuntu/+source/vim/+bug/998309]) |
mkdir ~/src && mkdir ~/src/vim | 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 | hg clone https://vim.googlecode.com/hg/ ~/src/vim && cd ~/src/vim && ./configure --enable-pythoninterp=yes && make && sudo make install | ||
cd | cd | ||
+ | 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 | ||
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 | 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 | cd | ||
vim /etc/ssh/sshd_config | vim /etc/ssh/sshd_config | ||
− | disable root, change port, etc. | + | # disable root, change port, etc. |
ssh-keygen -t rsa | ssh-keygen -t rsa | ||
− | (for user and root?) | + | # (for user and root?) |
sudo git clone git@github.com:milkmiruku/zsh.git ~/.zsh && cd ~/.zsh && sudo git submodule init && sudo git submodule update | sudo git clone git@github.com:milkmiruku/zsh.git ~/.zsh && cd ~/.zsh && sudo git submodule init && sudo git submodule update | ||
− | edit zshrc location config | + | # edit zshrc location config |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
To sort: multiuser config. permissions? Or /usr/share/config/ ... | To sort: multiuser config. permissions? Or /usr/share/config/ ... |
Revision as of 07:57, 29 November 2013
Basic setup and dotconfig notes.
See also Stack, *nix#Configuration_2
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/
Personal setup
hostname new.hostname.com sudo apt-get update sudo apt-get install curl 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 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 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
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