Useful Ubuntu Things

Prefer IPv4 over IPv6

sed -i 's/#precedence ::ffff:0:0/96  100/precedence ::ffff:0:0/96  100/' /etc/gai.conf

Install Hyper-V Integration Tools

apt-get update && apt-get -y install linux-tools-virtual linux-cloud-tools-virtual

Install a Trusted Root CA named “CERTNAME”

vi /usr/local/share/ca-certificates/CERTNAME.crt
update-ca-certificates

Always Map an SMB share

apt-get install cifs-utils
mkdir /media/FOLDERNAME
vi ~/.smbcredentials
    username=user
    password=password
chmod 600 ~/.smbcredentials
vi /etc/fstab
    //server/share /media/FOLDERNAME cifs credentials=/home/user/.smbcredentials,iocharset=utf8,sec=ntlm 0 0

mount -a

Install BitTorrent Sync

sudo add-apt-repository ppa:tuxpoldo/btsync
apt-get update
apt-get -y install btsync

Test Read/Write Speeds

dd if=/dev/zero of=/media/my-usb-disk/speed-test-file bs=100K count=1k
dd if=/media/my-usb-disk/speed-test-file of=/dev/null bs=100K count=1k
rm /media/my-usb-disk/speed-test-file

2 thoughts on “Useful Ubuntu Things

  1. Hi. Chase!

    Thanks a lot for share your knowledge.

    I need one help. Please how to enable numlock on boot on Ubuntu Server without gui?

    Thanks a lot?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.