Skip to content

Instantly share code, notes, and snippets.

@phuongnm94
Forked from khiemdoan/Ubuntu Setup.md
Created April 24, 2018 04:51
Show Gist options
  • Select an option

  • Save phuongnm94/384024543d3f2728a91df20acfb2e320 to your computer and use it in GitHub Desktop.

Select an option

Save phuongnm94/384024543d3f2728a91df20acfb2e320 to your computer and use it in GitHub Desktop.
This note about software, config in my Ubuntu.

Ubuntu Setup

This note about software, config in my Ubuntu.

Use apt

Install:

sudo apt install <package-name>

Purge:

sudo apt purge <package-name>

Autoremove:

sudo apt autoremove

Update:

sudo apt update -y

sudo apt upgrade -y

sudo apt dist-upgrade -y

dpkg

sudo dpkg -i google-chrome-stable_current_amd64.deb

Network config

Open file /etc/network/interfaces

# DHCP
auto eth0
iface eth0 inet dhcp

# Static address
auto eth1
iface eth1 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8

Plank - dock in desktop

sudo add-apt-repository ppa:ricotz/docky
sudo apt-get update && sudo apt-get install plank

Start: /usr/bin/plank

Set the BIOS clock to local time instead of UTC

sudo timedatectl set-local-rtc 1

Git client

sudo apt install git

TLP - Linux Advanced Power Management

sudo add-apt-repository ppa:linrunner/tlp
sudo apt update
sudo apt install tlp tlp-rdw smartmontools ethtool

Check: sudo tlp-stat

Oracle JDK

sudo add-apt-repository ppa:webupd8team/java
sudo apt update
sudo apt install oracle-java9-installer

Set the Java environment variables

sudo apt install oracle-java8-set-default

KVM - Kernel-based Virtual Machine

KVM

sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils

Logout

VirtManager

sudo apt-get install virt-manager

WebVirtMgr

Install WebVirtMgr

Docker

sudo apt remove docker docker-engine docker.io
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install docker-ce
sudo usermod -a -G docker $USER
Restart computer.

Remmina - Remote Desktop Client

sudo apt-add-repository ppa:remmina-ppa-team/remmina-next
sudo apt updat
sudo apt install remmina remmina-plugin-rdp libfreerdp-plugins-standard

7zip, rar

sudo apt install p7zip-full p7zip-rar

Shotwell

sudo add-apt-repository ppa:yg-jensge/shotwell
sudo apt update
sudo apt install shotwell

VLC media player

sudo sn install vlc

Firefox Developer Edition

sudo apt purge firefox*
sudo add-apt-repository ppa:ubuntu-mozilla-daily/firefox-aurora
sudo apt update
sudo apt install firefox

LibreOffice

sudo add-apt-repository ppa:libreoffice/ppa
sudo apt update
sudo apt install libreoffice

SimpleScreenRecorder

sudo apt update
sudo apt install simplescreenrecorder

SWI-Prolog

sudo add-apt-repository ppa:swi-prolog/stable
sudo apt-get update
sudo apt-get install swi-prolog

GoldenDict - Dictionary

sudo apt install goldendict goldendict-wordnet

Fix Lost Wire Network

Open file /etc/NetworkManager/NetworkManager.conf

And add a line: managed=true

Krita - Open source painting program

sudo add-apt-repository ppa:kritalime/ppa
sudo apt update
sudo apt install kr

Wine

sudo dpkg --add-architecture i386
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
wget -nc https://dl.winehq.org/wine-builds/Release.key && sudo apt-key add Release.key
sudo apt update
sudo apt install winehq-devel

Lastly run winecfg in the terminal to make sure it configures Wine correctly.

Install winetricks

sudo apt install winetricks

Android Studio

Install

Install Android Studio

sudo dpkg --add-architecture i386
sudo apt update
sudo apt install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386

Download Android Studio

Unpack file:

sudo unzip <file-name> -d /opt
cd /opt/android-studio/bin
./studio.sh

Kodi

sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt update
sudo apt install kodi

Disable IPv6 systemwide

Open the /etc/sysctl.conf file and add the following to the bottom of the file:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Then type sudo sysctl -p to activate your changes

Enable promiscuous mode - VM Ware

Step 1: Shut down the VMware guest machine

Step 2: At you host, enable the promiscuous mode

sudo chmod a+rw /dev/vmnet0

or

sudo chmod 666 /dev/vmnet*

Reference: https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=287

Auto mount partition

ls -la /dev/disk/by-uuid/

lấy uuid của ổ đĩa, copy vào file /etc/fstab

vi du:

lrwxrwxrwx 1 root root 10 Th05 20 15:01 01CE66839C56B480 -> ../../sdb7
lrwxrwxrwx 1 root root 10 Th05 20 15:01 01D156D38069CA80 -> ../../sda6
lrwxrwxrwx 1 root root 10 Th05 20 15:01 01D1A8D1FE953E80 -> ../../sdb6
lrwxrwxrwx 1 root root 10 Th05 20 15:01 741A807E1A803EDC -> ../../sdb8
lrwxrwxrwx 1 root root 10 Th05 20 15:01 a71f0696-9d2b-41e6-b391-cb340b8f724d -> ../../sdb5
lrwxrwxrwx 1 root root 10 Th05 20 15:01 E04448E44448BED2 -> ../../sda1
lrwxrwxrwx 1 root root 10 Th05 20 15:01 f4bec8ae-68bf-404c-a6a2-846f08791117 -> ../../sda7

sửa file /etc/fstab

UUID=a71f0696-9d2b-41e6-b391-cb340b8f724d /data ext4 defaults 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment