Skip to content

Latest commit

 

History

History
217 lines (181 loc) · 6.29 KB

README.md

File metadata and controls

217 lines (181 loc) · 6.29 KB

dotfiles

for setting up my laptop

BIOS/UEFI setup

An example with ThinkPad.

  • Restart
    • OS Opmimized Defaults - On
    • Load Setup Defaults - Yes
  • Config
    • Keyboard/Mouse
      • Fn and Ctrl Key swap - On
      • F1-F12 as Primary Function - On
    • Display
      • UMA Frame buffer Size - 4G
  • Security
    • Secure Boot
      • Allow Microsoft 3rd Party UEFI CA - On

Install Ubuntu Desktop

  1. get the latest LTS image or the latest daily-live image

  2. create a USB startup disk (Ubuntu, Windows, macOS)

    or

    sudo dd \
        if=/PATH/TO/*-desktop-amd64.iso \
        of=/dev/disk/by-id/usb-PATH-TO-USB-DRIVE-0\:0 \
        bs=4M oflag=direct,sync status=progress
  3. boot up with the USB stick

  4. install Ubuntu Desktop with the options below

    • Extended selection (not to remove LibreOffice, Remmina, Shotwell, Simple Scan, etc.)
    • Advanced features
      • Use LVM and encryption (dm-crypt with LUKS)
  5. reboot

Use this repository

  1. Tweak keybind for terminal operations per your prefrence first. For example:

    gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']"
  2. Optional steps

    • replace the default mirror URL with a preferred one in
      sudo editor /etc/apt/sources.list.d/ubuntu.sources
    • enroll a fingerprint, e.g.
      fprintd-enroll -f right-thumb
    • and update pam configuration for fingerprints with
      sudo pam-auth-update --enable fprintd
  3. install git, make and ansible

    sudo apt update && sudo apt install git make ansible
  4. clone the repo

    git clone https://github.com/nobuto-m/dotfiles.git
  5. execute

    cd dotfiles/
    make setup
  6. reboot

  7. download backup

    Login to the backup server from console with password, then copy temporary ssh public key. Once SSH connection is confirmed, execute duplicity.

    make restore
  8. full setup

    make full-setup

Manual setup

Remaining manual steps

  • login with X session
  • Add another key to LUKS with
    sudo cryptsetup luksAddKey /dev/nvme0n1p3
  • check firmware updates with
    fwupdmgr refresh; fwupdmgr get-updates
  • select color profile from gnome-control-center
  • Firefox
    • login to Firefox Sync
    • pin tabs in Firefox including e-mails, calendar, messengers, task-management, and docs
    • enable notifications from specific tabs
  • setup an OTP device
  • override NetworkManager configuration
    • Tethering AP
      nmcli device wifi connect '<SSID>' password '<password>'
    • Shared connection to other computers
      nmcli connection add type ethernet con-name Wired  # make sure the default wired connection exists
      nmcli connection add type ethernet con-name Shared autoconnect no ipv4.method shared ipv6.method disabled
  • disable Dropbox LAN sync by
    dropbox lansync n
  • git
    • set git user.name and user.email with
      git config --global user.name '<NAME>'
      git config --global user.email '<EMAIL>'
    • create ~/.gitconfig_corporate with [user] email = '<EMAIL>' and include it from ~/.gitconfig by:
      git config --global includeIf.'gitdir:~/src/work/'.path ~/.gitconfig_corporate
      git config --global includeIf.'gitdir:~/src/corporate_private/'.path ~/.gitconfig_corporate
      git config --global includeIf.'gitdir:~/src/openstack/'.path ~/.gitconfig_corporate
    • set launchpad username with
      git config --global gitubuntu.lpuser '<USER>'
    • set gerrit username with
      git config --global --add gitreview.username '<USER>'
  • add export DEBEMAIL='<EMAIL>' into ~/.bashrc
  • configure Chromium with:
    • set https://meet.google.com/ as a start-up page
    • set Show home bottun to true and set https://meet.google.com/
    • Use Google Translate - off
  • install tailscale and activate it with
    sudo tailscale up --shields-up --accept-routes
  • Restore those files manually if necessary:
    • ~/.config/hub
    • ~/.local/share/juju/credentials.yaml
  • install unite-shell extension by hand
    rsync --dry-run -av --delete ~/src/misc/unite-shell/unite@hardpixel.eu/ ~/.local/share/gnome-shell/extensions/unite@hardpixel.eu/
  • install Greasemonkey / Tampermonkey scripts

Firefox add-ons

Disabled