2018年1月13日 星期六

Ubuntu 16.04 setup

# Fail to boot from one partition
sudo update-grub
sudo efibootmgr

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

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

# Setup environment
.bashrc
.ssh
.vimrc 
.flexlmrc

# Setup NFS client
sudo apt-get update
sudo apt-get install nfs-common

# Setup Samba server
sudo smbpasswd -a <username>

# Normalize disk labels. (/work /HOUSE /opt/<Platform>
add "172.16.245.9:/LinuxFile/t5r021 /HOUSE nfs rsize=20480,wsize=20480,exec 0 0" in /etc/fstab
sudo mount -a

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

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

# Install screen utility
sudo apt-get install screen

# Install BeyondCompare
sudo dpkg -i /HOUSE/yulin/Installs/bcompare-4.1.3.20814_amd64.deb

# Install gitk
sudo apt-get install gitk

# Install dmverity
sudo apt-get install cryptsetup-bin

# Install links (lite HTTPS client)
sudo apt-get install links

# Install html2text
sudo apt-get install html2text

# Install xmlstartlet
sudo apt-get update
sudo apt-get install xmlstarlet

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

===== Specific for SA515M ================================================

Edit the file to enable the universe and multiverse sources and disable the
Ubuntu installation CD source
sudo vi /etc/apt/sources.list
sudo apt-get update                #Update package list.
sudo apt-get upgrade              #Upgrade package list.

# 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

sudo apt-get install 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  

sudo apt-get install libz-dev
#/opt/gcc-linaro-arm-linux-gnueabihf-4.8-2014.02_linux/bin/arm-linux-gnueabihf-ld: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
sudo apt-get install zlib1g:i386


# 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

sudo apt-get install package-name:i386  

# Download Hexagon LLVM v8.3.10 and install


沒有留言: