Setting up linode Arch Linux

Mar. 30, 2023

Blindly run these steps once you have a brand new Arch Linux Server in linode.

  1. Connect to your Linode via SSH:

    ssh root@IP
    
  2. Set your timezone and synchronize the hardware clock with the system clock:

    ln -sf /usr/share/zoneinfo/Asia/Calcutta /etc/localtime
    hwclock --systohc
    date
    
  3. Create a new user and set sudo permissions:

    useradd -m pdebashis
    passwd pdebashis
    export EDITOR="vim"
    visudo
    --- add the line "pdebashis ALL=(ALL) ALL"
    
  4. Switch to the newly created user

    su - pdebashis
    vim ~/.bashrc
    --- setup `.bashrc` file as per `my_bashrc`
    https://github.com/pdebashis/my-bashrc
    source .bashrc
    
  5. Update the system and install some basic packages:

    sudo pacman -Syyu
    sudo pacman -S --needed base-devel
    sudo pacman -S git wget
    sudo pacman -S jdk-openjdk
    sudo pacman -S scala
    sudo pacman -S cronie
    
  6. Install yay (AUR Helper):

    git clone https://aur.archlinux.org/yay.git
    cd yay
    makepkg -si
    cd ..
    rm -rf yay
    
  7. Install Ruby:

    --- Go to the RVM website and install RVM only (no --ruby).
    rvm install 3.1.0
    --- Note: Older Ruby versions may be broken by OpenSSL dependency.
    
  8. Install Jupyter Notebook and iruby:

    --- Follow a guide for Jupyter notebook
    --- Install iruby gem for ruby notebook
    gem install iruby
    --- Test it
    iruby notebook