338 lines
16 KiB
Markdown
338 lines
16 KiB
Markdown
# linux arch
|
|
|
|
## step one :: usb drive preparation
|
|
|
|
- download iso
|
|
- https://archlinux.org/download/
|
|
- download signature from main page:
|
|
- (https://archlinux.org/iso/2024.04.01/archlinux-2024.04.01-x86_64.iso.sig)
|
|
- this is also found on the mirror, but i prefer to use the signature from the main site.
|
|
- (https://archmirror1.octyl.net/iso/2024.04.01/archlinux-2024.04.01-x86_64.iso.sig)
|
|
- download iso from a mirror close by
|
|
- (https://archmirror1.octyl.net/iso/2024.04.01/)
|
|
- (https://archmirror1.octyl.net/iso/2024.04.01/archlinux-2024.04.01-x86_64.iso)
|
|
- verify iso
|
|
```
|
|
$ gpg --keyserver-options auto-key-retrieve --verify archlinux-2024.04.01-x86_64.iso.sig
|
|
gpg: assuming signed data in 'archlinux-2024.04.01-x86_64.iso'
|
|
gpg: Signature made 2024-04-01T13:00:16 EST
|
|
gpg: using EDDSA key 3E80CA1A8B89F69CBA57D98A76A5EF9054449A5C
|
|
gpg: issuer "pierre@archlinux.org"
|
|
gpg: key 76A5EF9054449A5C: public key "Pierre Schmitz <pierre@archlinux.org>" imported
|
|
gpg: Total number processed: 1
|
|
gpg: imported: 1
|
|
gpg: Good signature from "Pierre Schmitz <pierre@archlinux.org>" [unknown]
|
|
gpg: aka "Pierre Schmitz <pierre@archlinux.de>" [unknown]
|
|
gpg: WARNING: The key's User ID is not certified with a trusted signature!
|
|
gpg: There is no indication that the signature belongs to the owner.
|
|
Primary key fingerprint: 3E80 CA1A 8B89 F69C BA57 D98A 76A5 EF90 5444 9A5C
|
|
```
|
|
- install to usb
|
|
- insert usb
|
|
- `lsblk` (alt: `df`)
|
|
- ➔ usb = sda
|
|
- `sudo dd bs=4M if=archlinux-2024.04.01-x86_64.iso of=/dev/sda status=progress oflag=sync`
|
|
- troubleshooting
|
|
- error: `dd: failed to open '/dev/sda': Device or resource busy`
|
|
- solution: using `gparted`, you can reformat the drive (from fat32) to ext4, then try again
|
|
|
|
## step two :: boot the iso
|
|
|
|
- boot the target system using the arch iso, and prepare for a [guided install](https://archinstall.archlinux.page/installing/guided.html)
|
|
- tuxwarrior: `F2` for BIOS
|
|
- thinkpad: `F12` for boot options (`F1` for BIOS)
|
|
- select `ArchLinux install medium (x86_64, x64 UEFI)`
|
|
- troubleshooting
|
|
- grub error
|
|
- `error: you need to load the kernel first`
|
|
- `error start_image() returned 0x800000000000001`
|
|
- solution
|
|
- reinstall iso on usb
|
|
- arch iso error
|
|
- `squashfs error unable to read`
|
|
- solution
|
|
- re-install the ISO on another USB device
|
|
|
|
## step three :: generate config for new hosts
|
|
|
|
- on **new host**:
|
|
- `archinstall --dry-run`
|
|
- install language: `english` (default)
|
|
- mirrors: `colombia`, `united states`, `worldwide`
|
|
- locales: keyboard `us`, loc lang `en_AU.UTF-8`, loc enc `UTF-8`
|
|
- disk config: use a best-effort default partition layout ➔ pick main hd ➔ `btrfs` ➔ default structure `yes` ➔ compression or disable Cow `ESC` (do not)
|
|
- disk encryption: `no` (default)
|
|
- bootloader: `systemd-boot` (default)
|
|
- unified kernel image: `False` (default)
|
|
- swap: `True` (default)
|
|
- hostname: `tuxwarrior`
|
|
- root password: leave blank (default)
|
|
- user account: leave empty (default)
|
|
- profile: type ➔ `minimal`
|
|
- audio: `pipewire`
|
|
- kernels: `linux` (default)
|
|
- additional packages: `git nano tree wget`
|
|
- network configuration: `Use NetworkManager`
|
|
- timezone: `America/Panama`
|
|
- Automatic time sync: `True` (default)
|
|
- Optional repositories: leave blank (default)
|
|
- > Save configuration
|
|
- > Save user configuration (inc disk layout)
|
|
- Save directory: `/tmp` ➔ `yes`
|
|
- `curl -F'file=@user_configuration.json' https://0x0.st`
|
|
- on **existing host**:
|
|
- for this repo, inside `dots/archinstall` create folder for new host (use hostname as folder name)
|
|
- open page given above, like `https://0x0.st/Xbov.json`
|
|
- save raw content as `user_configuration.json`
|
|
- (change `gfx_driver` value from `null` to `Nvidia (proprietary)`) - not needed, i think
|
|
- save file
|
|
- from a pre-existing host directory, copy over and modify (if needed) `options.sh`, `packages.txt` and `services.txt`. this should be copied to new host directory
|
|
- example: copied from `dots/archinstall/t470p` to `dots/archinstall/tuxwarrior`
|
|
- commit changes to this repo, adding the new host files
|
|
|
|
## step four :: arch install :: the basics
|
|
|
|
- `ip link`
|
|
- `lo` (loopback - special device)
|
|
- `enp0s31f6` (ethernet)
|
|
- `wlan0` (wifi)
|
|
- `iwctl`
|
|
- `station wlan0 scan`
|
|
- `station wlan0 get-networks`
|
|
- `station wlan0 connect -_-`
|
|
- `exit`
|
|
- `cd /tmp`
|
|
- `curl -L -O https://git.mz.fo/fro/lnx-arch/raw/branch/master/scripts/archinstall_config_download.sh`
|
|
- (`-L` to follow redirects, `-O` to save to disk)
|
|
- `chmod 755 archinstall_config_download.sh`
|
|
- `cat archinstall_config_download.sh`
|
|
- `./archinstall_config_download.sh`
|
|
- hostname: `tuxwarrior`
|
|
- password: [poq.L2]
|
|
- make sure both user .json files have been downloaded and updated
|
|
- two files should be listed: `user_configuration.json` and `user_credentials.json`
|
|
- check datestamp shown at the end when running the script
|
|
- `archinstall --config user_configuration.json --creds user_credentials.json`
|
|
- Install
|
|
- > Would you like to chroot into ... perform post-installation config?
|
|
- `no`
|
|
- `reboot`
|
|
|
|
## step five :: arch install :: software & dot files (dots)
|
|
|
|
- log in as `poq`
|
|
- `nmtui` (activate internet connection)
|
|
- set up curae (system tool)
|
|
- `cd /tmp`
|
|
- `wget https://git.mz.fo/fro/lnx-arch/raw/branch/master/scripts/curae_setup.sh`
|
|
- `cat curae_setup.sh` ➔ verify the file content
|
|
- `chmod 755 curae_setup.sh`
|
|
- `sudo ./curae_setup.sh`
|
|
- `sudo curae yay` (install yay, which is used to install aur packages)
|
|
- `sudo curae uf` (full update, install packages)
|
|
- same as running the two commands:
|
|
- `sudo curae sw`
|
|
- `sudo curae dots`
|
|
- `sudo curae dots+` (download wallpapers, fonts++)
|
|
- `sudo ufw enable` (enable firewall)
|
|
- `reboot` & re-login
|
|
- `startx` (start window manager)
|
|
- several windows will start, and in the background there will be a window where you are asked to set password for the gnome keyring
|
|
- the gnome keyring window will always be in focus, and there is no way to close the other windows while this is happening
|
|
- press `escape` to close the gnome window
|
|
- close the pCloudDrive, Nextcloud and ProtonVPN windows
|
|
- open and close firefox to have firefox's profile directory being created
|
|
- start firefox (`SUP + D` ➔ `firefox`)
|
|
- close firefox
|
|
- open the terminal (`SUP + Enter`)
|
|
- create local sync folder for nextcloud
|
|
- local folder must match `$SYNCDIR_HOSTNAME` in `dots/environment/environment`
|
|
- t470p: `mkdir /home/poq/nextcloud`
|
|
- tuxwarrior: `mkdir /home/poq/nextcloud`
|
|
- `curae sw` (install sw that were not installed first time around - not sure why not all sw is installed the first time around)
|
|
- `curae dots` (the re-run of dots will deploy firefox settings)
|
|
- `curae services` (enable services)
|
|
- `reboot` & re-login
|
|
- once again, press esc to close the gnome keyring window
|
|
- leave the other windows open
|
|
- open firefox and log into bitwarden.com
|
|
- here you will find the needed usernames, passwords and one time codes for logging into the below mentioned applications
|
|
- set up pCloud
|
|
- log in
|
|
- the first time login process takes quite a while
|
|
- set up protonvpn
|
|
- log in (but wait with enabling vpn until nextcloud has completed syncing)
|
|
- set up nextcloud
|
|
- log in
|
|
- server address: `https://nx.mz.fo`
|
|
- at this point the gnome keyring manager will pop up again, and ask for a password
|
|
- leave both (password and confirm) fields blank, and press continue, and chose to store passwords unencrypted
|
|
- _"To use automatic unlocking with automatic login, you can set a blank password for the default keyring. Note that the contents of the keyring are stored unencrypted in this case."_
|
|
- https://wiki.archlinux.org/title/GNOME/Keyring
|
|
- pick local folder (created above, like `/home/poq/nextcloud`), and
|
|
- choose `Synchronize everything from server`
|
|
- and disable the two options `Ask before syncing folders larger than xxx` and `Ask before syncing external storages`
|
|
- click `Connect`
|
|
- wait for nextcloud to complete syncronisation
|
|
- this will likely take a few days, depending on the internet speed and the amount of data stored with nextcloud
|
|
|
|
## step six :: post syncronisation tasks
|
|
|
|
- `syncDirSetup.sh` (will set up `~/syncDir`)
|
|
- `mountDownloadsDir.sh` (will mount `~/Downloads` to syncDir's download dir)
|
|
- `deploySshKeys.sh` (deployment of ssh keys)
|
|
- `importGnupgKeys.sh` (deployment of gnupgp keys)
|
|
- `reboot` and re-login
|
|
|
|
## step seven :: nvidia
|
|
|
|
if the system runs nvidia, follow the steps in [nvidia.md](nvidia.md) to set up the nvidia driver.
|
|
|
|
## step eight :: post installation tasks
|
|
|
|
- vscodium
|
|
- **open workspace :: open all active projects**
|
|
- file > open workspace from file > `/home/poq/syncDir/gitRepos/git.mz.fo/fiodb/db/workspaces/vscodium/one.code-workspace`
|
|
- several .sh files might be flagged as modified (in gitkraken they will show up as `file mode changes from 14001 to 217`, which means from chmod 755 to 644), then you can fix this running the command `chmodAllSh.sh`.
|
|
- **settings sync :: download syncronised setting++**
|
|
- file > preferences > extension > search for and install `settings sync`
|
|
- login with github
|
|
- chose vs codium target git
|
|
- gist id `33f3bf3e8eb7d7af2c4fd24a57114f3e`
|
|
- https://gist.github.com/introspectionism/33f3bf3e8eb7d7af2c4fd24a57114f3e
|
|
- go to `sync settings` and click `edit configuration`
|
|
- `ctrl` + `shift` + `p` to open command palette
|
|
- search for `sync` and select `sync: download settings`
|
|
- gitkraken
|
|
- preferences > integrations > connect to gitlab
|
|
- preferences > ssh > uncheck `use local ssh agent`
|
|
- preferences > ui customization > theme: `gitkraken dark - high contrast`
|
|
- register fingerprint for ssh key(s)
|
|
- if the ssh key for a git repo has never been used, the ssh connection will fail as the key is not yet registered.
|
|
- `$ ssh git@git.mz.fo -p 2002`
|
|
- `Are you sure you want to continue connecting (yes/no/[fingerprint])? yes`
|
|
- firefox
|
|
- settings > select the option to set firefox as default browser
|
|
- extensions icon > manage extensions > themes > enable theme `activist - bold`
|
|
- install dictionaries for
|
|
- [en-AU](https://addons.mozilla.org/en-US/firefox/addon/english-australian-dictionary/) and
|
|
- [no-NB](https://addons.mozilla.org/en-US/firefox/addon/norsk-bokm%C3%A5l-ordliste/)
|
|
- update singlefile name format (extension icon > manage extensions > extensions > singlefile > preferences > file format):
|
|
- old: `%if-empty<{page-title}|No title> ({date-locale} {time-locale}).{filename-extension}`
|
|
- new: `{year-locale}{month-locale}{day-locale}_{url-href-flat}_.{filename-extension}`
|
|
|
|
|
|
|
|
### WIP BELOW THIS LINE
|
|
|
|
- reaper
|
|
- options >
|
|
- audio > device > audio system: pulseaudio
|
|
- sample rate: `48000`
|
|
- appearance > track meters > [ ] reset peak indicators on play/seek
|
|
- appearance > [x] don't animate any toolbar button
|
|
- general > paths >
|
|
- default path to save new projects: `/home/poq/syncDir/antijantepodden/`
|
|
- default render path: `/home/poq/syncDir/0_downloads/`
|
|
- media > import > [ ] copy imported media to project media directory
|
|
- actions > show action list > new action > new custom action >
|
|
- `options: cycle ripple editing mode`
|
|
- assign shortcut: "\`"
|
|
- actions >
|
|
- search for
|
|
- "Unselect (clear selection of) all tracks/items/envelope points"
|
|
- assign shortcut: "Alt + Shift + Up"
|
|
- https://bertomaudio.com/denoiser-pro.html
|
|
- `/mnt/nas/cb/software/licences/bertom-denoiser-pro-license.lic`
|
|
- `/mnt/nas/cb/software/denoiserPro_bertonAudio`
|
|
- [download](https://app.lemonsqueezy.com/my-orders/38cd233c-cd39-4b21-b2fa-6c2a38b702d4?signature=ca7157d7b412ef40f58354d6d6233089e8d0facfdec28246d7fe7b1e4450563f)
|
|
- `mkdir ~/.vst3` (verify in Reaper > `preferences > plug-ins > vst`)
|
|
- unpack and copy the dir `Bertom_DenoiserPro.vst3` found in `Bertom_DenoiserPro_3.0.6_GNU-LINUX/.avx2/` to this folder
|
|
- restart reaper, open the fx tool and the plugin, and load the licence file
|
|
- reaper
|
|
- https://gitlab.com/pqq/pIssues.2/-/issues/254#note_1897590421
|
|
|
|
|
|
- pcmanfm
|
|
- edit > preferences >
|
|
- general > [ ] erase files on removable media instead of "trash can" creation
|
|
- general > view mode: `detailed list view`
|
|
- layout > show in places > desktop, trash can, filesystem root
|
|
- volume management > when removable media unmounted: `change folder to home`
|
|
- advanced > path for home folder: `/home/poq/syncDir/`
|
|
|
|
- printer
|
|
- useful https://kb.adamsdesk.com/operating_system/arch_linux_install_network_printer/
|
|
- remove services cups.socket and cups.path
|
|
- $ sudo systemctl disable cups.path
|
|
- $ sudo systemctl disable cups.socket
|
|
- setting up the printer using system-config-printer was easy, and worked!
|
|
- (https://gitlab.com/pqq/pIssues.2/-/issues/254#note_1921407733)
|
|
|
|
|
|
# error solving
|
|
|
|
- lemur display/login manager does not log you in
|
|
- press `Alt-F1` (for tty1) to buypass the login screen, or (`Alt-F2` / tty2) to view display manager (if installed)
|
|
- login and run `startx`
|
|
- `startx : fatal server error : no screens found`
|
|
- `rm /etc/X11/xorg.conf`
|
|
- `rm -r /etc/X11/xorg.conf.d`
|
|
- https://bbs.archlinux.org/viewtopic.php?id=149368
|
|
- `mount point /boot … is world accessible …` and `random seed file … is world accessible …`
|
|
- solution:
|
|
- `sudo umount /boot`
|
|
- `sudo chmod 700 /boot`
|
|
- `reboot`
|
|
- https://bbs.archlinux.org/viewtopic.php?id=287790
|
|
- pacman
|
|
- error when building new packages: "somefile exists in both ..."
|
|
- solution: disable debug option
|
|
- `dots/pacman/.makepkg.conf`
|
|
- https://forum.endeavouros.com/t/debug-package-conflict-on-system-update/50905
|
|
- https://wiki.archlinux.org/title/makepkg
|
|
- `sudo journalctl -b` shows error:
|
|
- `ACPI Error AE_NOT_FOUND` and `could not resolve symbol _SB.PCI0.XDCI`
|
|
- solution:
|
|
- `sudo nano /boot/loader/entries/2024-06-06_13-01-32_linux.conf`
|
|
- add `libata.noacpi=1` to `options`
|
|
- `sudo journalctl -b` shows error:
|
|
- `mmio stale data cpu bug present`
|
|
- solution:
|
|
- should be safe to ignore this
|
|
- https://www.reddit.com/r/pop_os/comments/16esxxn/cpu_memory_leak/
|
|
- `pnp 00:03: disabling [io 0x3322-0x3323] because it overlaps 0000:00:01.0 BAR 13 [io 0x3000-0x3fff]`
|
|
- solution:
|
|
- unknown
|
|
- `nvme nvme0 missing or invalid SUBNQN field`
|
|
- should be safe to ignore this
|
|
- https://forums.gentoo.org/viewtopic-t-1106388-start-0.html
|
|
- `usci_ccg 0-0008: i2c_transfer failed -6` and `usci_ccg 0-0008: ucsi_ccg_init failed -6`
|
|
- should be safe to ignore
|
|
- https://bbs.archlinux.org/viewtopic.php?id=262194
|
|
- `mxm: guid detected in bios`
|
|
- safe to ignore
|
|
- https://ubuntuforums.org/showthread.php?t=2491276
|
|
- `acpi warning: … ._DSM: Argument #4 type mismatch - Found [Buffer] …`
|
|
- safe to ingore
|
|
- https://askubuntu.com/questions/842134/acpi-warning-argument-4-type-mismatch
|
|
- `bluetooth: hci0: hci le coded phy feature bit set, but its usage is not supported`
|
|
- solution:
|
|
- unknown
|
|
- `agetty failed to open credentials directory`
|
|
- solution:
|
|
- unknown
|
|
- `nouveau 0000:01L00.0: DRM: … kmsOutp [BL_GET level:0] (ret:-22)`
|
|
- solution:
|
|
- install propiretary nvidia drivers
|
|
- `dbus-broker-launch activation request for org.freedesktop.home1 failed … service could not be found`
|
|
- safe to ignore
|
|
- https://forum.manjaro.org/t/dbus-org-freedesktop-home1-service-not-found-i-set-noextract-usr-lib-security-pam-systemd-home-so-in-pacman-conf/77365
|
|
- `dbus-broker-launch … dunst.service is not named after the d-bus name … notifications`
|
|
- solution:
|
|
- unknown
|
|
|
|
# more info
|
|
|
|
- original issue: https://gitlab.com/pqq/pIssues.2/-/issues/254
|