1. INSTALLATION - alexisfrjp/wiki GitHub Wiki

Hardware SBI equipment

  • Herman Miller Classic Aeron Office Chair

  • Dell KB522 keyboard

  • Optiplex 7040

  • Dell U2412M screen

  • ZSH:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
wget https://raw.githubusercontent.com/Moarram/headline/main/headline.zsh-theme -P ~/.oh-my-zsh/themes
sed -i "/ZSH_THEME=/ s|\".*\"|\"headline\"|" ~/.zshrc

Centos 7

sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo

Centos 8

sudo yum config-manager --set-enabled powertools
sudo yum install -y epel-release elrepo-release
sudo yum install -y kernel kernel-devel

THUNAR

sudo dnf install -y thunar

/usr/share/applications/mimeapps.list

[Default Applications]
inode/directory=thunar.desktop

# The file is `thunar.desktop` not `Thunar.desktop`
// For CENTOS and EFI
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
// For Ubuntu and other distri
grub2-mkconfig -o /boot/grub2/grub.cfg
awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2-efi.cfg #Check the indexes`
grub2-editenv list ; sudo grub2-set-default 1
grub2-reboot 0 // To boot a different kernel only for the next boot
package-cleanup --oldkernels --count=1 # clean old kernels
vim /etc/default/grub   // Change the timeout
  • Use the latest Firefox Quantum:
sudo yum remove -y firefox
sudo rm /usr/bin/firefox
sudo rm -rf /usr/local/firefox; wget --content-disposition -O- "https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-US" | sudo tar -xj -C /usr/local
sudo ln -s /usr/local/firefox/firefox /usr/bin/firefox

Add in .desktop with Gnome for password field blinking:

Exec=env GTK_IM_MODULE=xim /usr/bin/firefox %u

FIDO 2fa: wget -O /etc/udev/rules.d/70-u2f.rules https://raw.githubusercontent.com/Yubico/libu2f-host/master/70-u2f.rules

Ubuntu

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 libx11-dev:i386 libxext-dev:i386

Change MAC address

ip link set dev enp0s3 down
ip link set dev enp0s3 address XX:XX:XX:XX:XX:XX
ip link set dev enp0s3 up

GNOME

image image image

  • Dash to panel
[/]
panel-element-positions='{"0":[{"element":"showAppsButton","visible":true,"position":"stackedTL"},{"element":"activitiesButton","visible":false,"position":"stackedTL"},{"element":"leftBox","visible":false,"position":"stackedTL"},{"element":"taskbar","visible":true,"position":"stackedTL"},{"element":"centerBox","visible":true,"position":"stackedBR"},{"element":"rightBox","visible":true,"position":"stackedBR"},{"element":"dateMenu","visible":true,"position":"stackedBR"},{"element":"systemMenu","visible":true,"position":"stackedBR"},{"element":"desktopButton","visible":true,"position":"stackedBR"}],"1":[{"element":"showAppsButton","visible":true,"position":"stackedTL"},{"element":"activitiesButton","visible":false,"position":"stackedTL"},{"element":"leftBox","visible":false,"position":"stackedTL"},{"element":"taskbar","visible":true,"position":"stackedTL"},{"element":"centerBox","visible":true,"position":"stackedBR"},{"element":"rightBox","visible":true,"position":"stackedBR"},{"element":"dateMenu","visible":true,"position":"stackedBR"},{"element":"systemMenu","visible":true,"position":"stackedBR"},{"element":"desktopButton","visible":true,"position":"stackedBR"}]}'
group-apps=false
group-apps-use-launchers=true
animate-window-launch=false
overview-click-to-exit=true
dot-position='BOTTOM'
trans-use-custom-opacity=true
panel-size=36
group-apps-label-max-width=100
animate-app-switch=false
group-apps-label-font-color='#dddddd'
group-apps-label-font-size=14
group-apps-label-font-color-minimized='#dddddd'
panel-anchors='{"0":"MIDDLE","1":"MIDDLE"}'
hotkeys-overlay-combo='TEMPORARILY'
primary-monitor=1
trans-bg-color='#2e3436'
appicon-margin=4
available-monitors=[0]
animate-appicon-hover-animation-extent={'RIPPLE': 4, 'PLANK': 4, 'SIMPLE': 1}
group-apps-use-fixed-width=false
trans-use-custom-bg=true
panel-lengths='{"0":100,"1":100}'
appicon-padding=4
isolate-workspaces=true
trans-panel-opacity=1.0

Clone disk

  • sudo gdisk /dev/sda: verify partitions are correct with p, and use w to write the partition table.
  • sudo e2image -arp /dev/sda4 /dev/nvme0n1p4: clone only used blocks from/to ext4
    • a: Include file data in the image file. Normally e2image only fs metadata, not regular file data. This option will produce an image that is suitable to use to clone the entire FS or for backup purposes.
    • r: Create a raw image file instead of a normal image file.
    • p: Show progress of image-file creation.