Setting Ubuntu

Contains information related to the Ubuntu

Ubuntu Setup Documentation

Command to Check Ubuntu Version

cat /etc/lsb-release

Changing Fonts

  • Clone the following repository
git clone https://github.com/edihbrandon/RictyDiminished.git
  • Execute the following commands and select RictyDiminished in ‘Fonts’
sudo apt-get update
sudo apt-get install unity-tweak-tool
unity-tweak-tool

Checking for Updates

sudo aptitude update
sudo aptitude upgrade

Firewall Settings

sudo apt-get install ufw
Checking Status
sudo ufw status
Allow Only SSH and HTTP
sudo ufw allow 22
sudo ufw allow 80
Default Deny for All
sudo ufw default deny
Enabling Firewall
sudo ufw enable

Setting Date and Time

  1. Click the clock on the menu bar
  2. Click ‘Time & Date settings’
  3. Click near ‘Tokyo’ on the world map
  4. Ensure ‘Location’ is set to ‘Tokyo’
  5. Close the window

Language Settings

  1. Click ‘System settings’ > ‘Language Support’

Note: The gear icon represents ‘System settings’.

  1. The first time, a ‘Install’ dialog appears
  • Click ‘Install’
  1. Click ‘Install / Remove Languages’
  2. Select ‘Japanese’ and click ‘Apply’
  3. Drag & drop ‘Japanese’ to the top
  4. Click ‘Apply System-Wide’
  5. Click the ‘Regional Formats’ tab
  6. Select ‘Japanese’ from the dropdown list
  7. Click ‘Apply System-Wide’
  8. Log out to apply settings
  9. After logging in, choose whether to change ‘Folder names’
  • ‘Keep the old names’

Setting up Japanese Input Environment

  1. Open settings
  2. Select ‘Text Entry’
  3. Click ‘+’
  4. Select ‘Japanese (Mozc)’ from input sources and click ‘Add’
  5. Remove the default ‘English (US)’
  6. Select the added ‘Japanese (Mozc)’ and move it to the top

Keyboard

ibus Setup Command
ibus-setup
Changing Keyboard Layout
sudo dpkg-reconfigure keyboard-configuration
  • After executing the above command
  • ‘Apple Aluminum Keyboard(JIS)’ > ‘Japanese’ > ‘Japanese’ > ‘The Default for the keyboard layout’ > ‘No compose key’ > ‘No’ or ‘Yes’
sudo vi /usr/share/ibus/component/mozc.xml
  • Continue with the above command and change ‘default’ to ‘jp’

Note: Perhaps, the language settings need to be in Japanese on Mac to work?

Reference URL

Installing git

sudo aptitude install git

If Already Installed and Want to Update to the Latest Version

sudo add-apt-repository ppa:git-core/ppa

sudo aptitude update

sudo aptitude upgrade

Git Initial Setup

  • Registering Username
git config --global user.name "User Name"
  • Registering Email Address
git config --global user.email "hoge@hoge.com"
  • Preventing Garbled Japanese Filenames
git config --global core.quotepath false

Installing Java

sudo add-apt-repository ppa:webupd8team/java

sudo aptitude update

sudo aptitude install oracle-java8-installer

A confirmation screen appears, install with OK or Yes

Check Version After Installation

java -version

javac -version

Includes Package to Set java8 as Default in Environment Variables

sudo apt-get install oracle-java8-set-default

After Restarting, Check with the Following

echo $JAVA_HOME

Others

Removing Amazon from the System

sudo aptitude remove unity-webapps-common

Terminal Shortcut Keys

  • Copy & Paste
  • Ctrl+u:Cut left of the cursor
  • Ctrl+k:Cut right of the cursor
  • Ctrl+y:Paste
  • Terminal Operations
  • Ctrl+Shift+n:Create a new terminal
  • Tab Operations
  • Ctrl+Shift+t:Add a tab
  • Ctrl+Shift+w:Close the current tab
  • Ctrl+Page_down,Ctrl+Page_up:Switch tabs (Add ‘fn’ for Mac)

See also