1. 1. Users
    1. 1.1. Adding Root Privileges
  2. 2. Emacs
    1. 2.1. Add repository to PPA
    2. 2.2. Update the packages
    3. 2.3. Install Emacs.
      1. 2.3.1. Text-Only Interface
      2. 2.3.2. GUI Interface
    4. 2.4. Backup files
  3. 3. Java
    1. 3.1. OpenJDK
    2. 3.2. Oracle JDK
      1. 3.2.1. Add PPA Repository
      2. 3.2.2. Install the installer
        1. 3.2.2.1. Sources

Setting Up A New Ubuntu PC

Users

This assumes that you are currently the root user.

Enter the adduser to command to create a new user.

1
adduser <username>

Immediately, you will be prompted for a password. Enter the password and continue the process.

Adding Root Privileges

This is only applicable when granting root priviliges to the newly created user.

Enter the usermod command to add the new user to the sudo (root) group

1
usermod -aG sudo <username>

The user should now have root priviliges.

To test that it worked log in as that user and try to run a command with sudo

1
2
su - <username>
sudo ls -la /root

Emacs

By default, Ubuntu usually comes preloaded or has the default 24.x version of Emacs. I often like to use Emacs along with org-mode and to take full advantage, especially as it pertains to working with source code I have found version 25.x is much better suited for the task. While there are many ways to go about it, installing it via package manager appears to be the easiest.

Add repository to PPA

1
sudo add-apt-repository ppa:kelleyk/emacs

Update the packages

1
sudo apt update

Install Emacs.

Text-Only Interface

1
sudo apt-get install emacs25-nox

GUI Interface

1
sudo apt-get install emacs25

Backup files

Sometimes Emacs keeps a backup file by default. This can cause a lot of clutter in the current directory where work is being performed. There is a way to disable this.

Navigate to ~/.emacs.d/ and edit the init.el file and add the following line.

1
(setq make-backup-files nil)

Java

Make sure that your packages and repositories are up to date

1
sudo apt-get update

OpenJDK

1
sudo apt-get install default-jdk

Oracle JDK

Add PPA Repository

1
2
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update

Install the installer

1
sudo apt-get install oracle-java8-installer

Sources

Users
Emacs
Java