for setting up my laptop
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
- Keyboard/Mouse
- Security
- Secure Boot
- Allow Microsoft 3rd Party UEFI CA - On
- Secure Boot
-
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
-
boot up with the USB stick
-
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)
-
reboot
-
Tweak keybind for terminal operations per your prefrence first. For example:
gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']"
-
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
- replace the default mirror URL with a preferred one in
-
install git, make and ansible
sudo apt update && sudo apt install git make ansible
-
clone the repo
git clone https://github.com/nobuto-m/dotfiles.git
-
execute
cd dotfiles/ make setup
-
reboot
-
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
-
full setup
make full-setup
- 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
- Tethering AP
- disable Dropbox LAN sync by
dropbox lansync n
- git
- set git
user.name
anduser.email
withgit 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>'
- set git
- 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 sethttps://meet.google.com/
Use Google Translate
- off
- set
- 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/[email protected]/ ~/.local/share/gnome-shell/extensions/[email protected]/
- install Greasemonkey / Tampermonkey scripts
- https://addons.mozilla.org/firefox/addon/yaru-hybrid-unofficial/
- https://addons.mozilla.org/firefox/addon/tampermonkey/
- https://addons.mozilla.org/firefox/addon/mousedictionary/
- Manage Extension Shortcuts
- "Activate the extension":
Alt+Z
- "Activate the extension":
- Manage Extension Shortcuts
- https://addons.mozilla.org/firefox/addon/most-recent-tab/
- Manage Extension Shortcuts
- "Main: Jump to the previously viewed tab, the most recent tab":
Alt+0
- "Main: Jump to the previously viewed tab, the most recent tab":
- Manage Extension Shortcuts
- https://addons.mozilla.org/firefox/addon/tab-session-manager/
- "Save the session regularly":
false
- "Save the session regularly":
- https://addons.mozilla.org/firefox/addon/ublock-origin/
- userSettings
- contextMenuEnabled:
false
(Uncheck "Make use of context menu where appropriate")
- contextMenuEnabled:
- dynamicFilteringString
- no-cosmetic-filtering:
*
(Check "Disable cosmetic filtering")
- no-cosmetic-filtering:
- with the following filters:
adguard-widgets
("AdGuard – Widgets") to suppress live support chatsadguard-cookies
,ublock-cookies-adguard
("AdGuard/uBO – Cookie Notices") to suppress cookie notices
- userFilters
@@||googletagmanager.com^$script
not to break or slow down page loadings
- Trusted sites
amazon.co.jp google.com youtube.com
- userSettings