# Fix vi keymap.
sudo nano /etc/default/locale
# 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 sshfs
sudo efibootmgr
# Install and enable SSH
sudo apt-get install openssh-server sshfs
# Refresh SSH credential in peer hosts
wget https://www.scootersoftware.com/bcompare-4.4.6.27483_amd64.deb
sudo apt update
sudo apt install ./bcompare-4.4.6.27483_amd64.deb
# Setup environment
.bashrc
.ssh
.vimrc
.flexlmrc
# 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
# Install libncurses.so.5
# Unify tab size to 4
$ tabs -4
$ git config --global core.pager 'less -x1,5'
$ grep tabstop ~/.vimrc
set tabstop=4
ssh-keygen -f "~/.ssh/known_hosts" -R <IP>
# Install BeyondCompare
sudo dpkg --add-architecture i386# Install BeyondCompare
wget https://www.scootersoftware.com/bcompare-4.4.6.27483_amd64.deb
sudo apt update
sudo apt install ./bcompare-4.4.6.27483_amd64.deb
# Setup environment
.bashrc
.ssh
.vimrc
.flexlmrc
# 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
# Install libncurses.so.5
# (error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory)
for 32-bit binaries : sudo apt-get install libncurses5:i386
for 64-bit binaries : sudo apt-get install libncurses5
for 32-bit binaries : sudo apt-get install libncurses5:i386
for 64-bit binaries : sudo apt-get install libncurses5
# Unify tab size to 4
$ tabs -4
$ git config --global core.pager 'less -x1,5'
$ grep tabstop ~/.vimrc
set tabstop=4
# Install and setup docker
$ docker container lsGot permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.32/containers/json: dial unix /var/run/docker.sock: connect: permission denied
$ sudo apt install docker.io
$ sudo usermod -aG docker $USER
$ sudo reboot
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
沒有留言:
張貼留言