Box

From Things and Stuff Wiki
Revision as of 07:22, 30 December 2015 by Milk (talk | contribs)
Jump to navigation Jump to search


Quick setup snippets for my personal dotconfigs, etc.

See also Stack, *nix#Configuration_2

Current

Arch Linux, bspwm, sxhkd, dmenu + xboom, xfce4-panel, urxvt, zsh, vim

# arch linux install from usb

loadkeys /usr/share/kbd/keymaps/i386/uk.map.gz

# check services like network

systemctl --failed

timedatectl set-ntp true 


# partitioning

cfdisk


# formatting

lsblk

mkfs.ext4 /dev/partition


# install pacman and bootstrap

pacstrap /mnt base

genfstab -p /mnt >> /mnt/etc/fstab

arch-chroot /mnt

echo computer_name > /etc/hostname

ln -s /usr/share/zoneinfo/Europe/London /etc/localtime

vi /etc/locale.gen

# uncomment en_GB*

mkinitcpio -p linux

passwd

pacman -Syu

lspci | grep -e VGA -e 3D

pacman -Ss xf86-video | grep ##something##

# https://www.digitalocean.com/community/tutorials/how-to-use-yaourt-to-easily-download-arch-linux-community-packages


echo "[archlinuxfr]" >> /etc/pacman.conf
echo "SigLevel = Never" >> /etc/pacman.conf
echo "Server = http://repo.archlinux.fr/$arch" >> /etc/pacman.conf

pacman -Syu yaourt binutils fakeroute

# now remove last three pacman.conf lines

yaourt -S binutils fakeroute
zsh vim xorg-server bspwm-git sxhkd dmenu  xfce4-panel urxvtcd


Ubuntu setup

hostname new.host.name

sudo apt-get update
sudo apt-get install tmux git
git clone git@github.com:milkmiruku/dottmux.git ~/.tmux
ln -s ~/.tmux/.tmux.conf ~/.tmux.conf
tmux

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

sudo git clone git@github.com:milkmiruku/zsh.git ~/.zsh && cd ~/.zsh && sudo git submodule init && sudo git submodule update
  # edit zshrc location config 
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 ':q' >> ~/viminit.vim
vim -s ~/viminit.vim
rm ~/viminit.vim

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?)


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

apt-get install php mariadb
apt-get install ruby rubygems
apt-get install python pip

Install

Backup

See also Backup

Attick

Release date.

List of installed programs, dependencies.

Paths

/home/* /etc /var /boot etc..