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
- Click the clock on the menu bar
- Click ‘Time & Date settings’
- Click near ‘Tokyo’ on the world map
- Ensure ‘Location’ is set to ‘Tokyo’
- Close the window
Language Settings
- Click ‘System settings’ > ‘Language Support’
Note: The gear icon represents ‘System settings’.
- The first time, a ‘Install’ dialog appears
- Click ‘Install’
- Click ‘Install / Remove Languages’
- Select ‘Japanese’ and click ‘Apply’
- Drag & drop ‘Japanese’ to the top
- Click ‘Apply System-Wide’
- Click the ‘Regional Formats’ tab
- Select ‘Japanese’ from the dropdown list
- Click ‘Apply System-Wide’
- Log out to apply settings
- After logging in, choose whether to change ‘Folder names’
- ‘Keep the old names’
Setting up Japanese Input Environment
- Open settings
- Select ‘Text Entry’
- Click ‘+’
- Select ‘Japanese (Mozc)’ from input sources and click ‘Add’
- Remove the default ‘English (US)’
- 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)