2018年1月15日 星期一

Ubuntu 14.04 setup


# Fail to boot from one partition
(ref: http://www.netadmin.com.tw/article_content.aspx?sn=1501070001&jump=3)

sudo update-grub
sudo apt-get install efibootmgr
sudo efibootmgr

# Install and enable SSH
sudo apt-get install openssh-server

# Setup environment
.bashrc
.ssh
.vimrc
.flexlmrc

# Install BeyondCompare
sudo dpkg -i bcompare-4.1.3.20814_amd64.deb

# Fix PuTTY can't show all 'ls -l' output.
# Fix vi keymap.
sudo nano /etc/default/locale


# Normalize disk labels.
ls -l /dev/disk/by-uuid
sudo gtk-launch /etc/fstab &
sudo mkdir /HOUSE
sudo mkdir /work

sudo mount -a
sudo rmdir /opt
sudo ln -s /HOUSE/opt /opt


# Enable Samba server.
sudo apt-get install samba samba-common python-glade2 system-config-samba
sudo bcompare /HOUSE/etc/samba/smb.conf /etc/samba/smb.conf &
sudo service smbd restart
sudo smbpasswd -a

# Install screen utility
sudo apt-get install screen

# Use BASH
sudo ln -sf /bin/bash /bin/sh

# Update toolchain
sudo apt-get install build-essential chrpath coreutils desktop-file-utils diffstat docbook-utils fakeroot g++ gawk gcc git git-core help2man libgmp3-dev libmpfr-dev libreadline6-dev libtool libxml2-dev make python-pip python-pysqlite2 quilt sed subversion texi2html texinfo unzip wget

# Support 32-bits tools. Fix files are there and executable but not when invoked.
sudo echo "foreign-architecture i386" > /etc/dpkg/dpkg.cfg.d/multiarch
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

# Install dmverity
sudo apt-get install cryptsetup-bin

# Install xmlstartlet
sudo apt-get install xmlstartlet

# Unify tab size to 4
$ tabs -4
$ git config --global core.pager 'less -x1,5'
$ grep tabstop ~/.vimrc
set tabstop=4

沒有留言: