NEW SYSTEM
< DRAFT+ >
Setting up a new Thinkpad+GNU+Linux system :)
Revisions:
20200804 stub
20201027 ping
20201102 merged in another page
Also see:
* 🔗laptop - first get a proper laptop
* 🔗workflow-basics - and learn the basics
* 🔗new-firefox - also setup firefox
* 🔗packages - also install the packages
* 🔗hacker-tools - get more software
* XXX🔗DISTRO - try to get DISTRO somehow, ask info@totalism.org
* 🔗workflow
Table of Contents
1 | *** Venga !! |
1.1 | * thinkpad BIOS setup |
1.2 | * ubuntu defaults: |
1.3 | * ufw |
1.4 | * settings: power |
1.5 | * gnome-tweaks |
1.6 | * firefox |
1.7 | * DISTRO |
1.8 | * libre office calc: |
1.9 | * mpdscribble: |
1.10 | * python-pip: |
1.11 | * mysql: |
1.12 | * indicator-multiload: |
1.13 | * nemo-desktop |
1.14 | * DISABLE SWAP |
1.15 | * dev-screenshat |
1.16 | * dev-phistory |
1.17 | * workspaces to 4 |
1.18 | * Accessibility→Disable Animations |
1.19 | * get rid of 'snap' |
2 | *** PAD |
2.1 | (Document plan) |
2.2 | co-administration |
2.2.1 | A) I administer your system: |
2.2.2 | B) You are your own admin: |
2.2.3 | C) We co-admin (but i don't give a shit): |
2.3 | guide: personal laptop VS shared laptop |
2.4 | guide: new server |
2.5 | [!!] MERGE MORE >D |
2.6 | [→] (DISTRO specific) |
2.7 | [!!**] Ubuntu 22.04 seems super slow |
2.8 | [!!**] WORKFLOW/NEWSYSTEM— Upgrade Ubuntu 20.04 → 22.04 |
¶* thinkpad BIOS setup
###
TODO >david : merge existing notes for #x230
DO NOT PERMANENTLY DISABLE intel AMT
see https://www.reddit.com/r/thinkpad/comments/6dvc91/is_there_any_reason_not_to_permanently_disable/
:
* you need some extra menu with "ctrl+P" ?!
* ... more info?:
https://community.intel.com/t5/Intel-Business-Client-Software/How-to-completely-deactivate-Intel-AMT/td-p/1032652
points to https://mattermedia.com/blog/disabling-intel-amt/
points to https://github.com/mjg59/mei-amt-check
* [...]
YES, permanently disable:
* anti-theft / computrace
* intel virtualization technology: disabled by default ???:
~ "VT-X" = "you need this if you're running VirtualBox etc !
* disable all "wake on lan" type stuff
* [...]
DO NOT PERMANENTLY DISABLE intel AMT
see https://www.reddit.com/r/thinkpad/comments/6dvc91/is_there_any_reason_not_to_permanently_disable/
:
* you need some extra menu with "ctrl+P" ?!
* ... more info?:
https://community.intel.com/t5/Intel-Business-Client-Software/How-to-completely-deactivate-Intel-AMT/td-p/1032652
points to https://mattermedia.com/blog/disabling-intel-amt/
points to https://github.com/mjg59/mei-amt-check
* [...]
YES, permanently disable:
* anti-theft / computrace
* intel virtualization technology: disabled by default ???:
~ "VT-X" = "you need this if you're running VirtualBox etc !
* disable all "wake on lan" type stuff
* [...]
¶* ubuntu defaults:
* keyboard & mouse speed:
(in universal access):
almost zero delay
a tiny bit more speed
* no tracking & bullshit:
* remove amazon icons
* ... other bloatware?:
###
_____________________________
(DATES, WAS FOR UNITY)
* https://www.lifewire.com/remove-amazon-application-from-ubuntu-4134329
* do:
$ sudo apt remove python-boto
* see /FOO/amazon_on_ubuntu !!!
* don't send crash reports
* other languages keyboards ?
* [...]
* keyboard & mouse speed:
(in universal access):
almost zero delay
a tiny bit more speed
* no tracking & bullshit:
* remove amazon icons
* ... other bloatware?:
###
* don't send crash reports
* other languages keyboards ?
* [...]
¶* settings: power
* automatic suspend:
on
on battery: 15min
on power: 15min
* power button action: sleep
* blank screen: 1 min
* dim when inactive: on
___________
also ...
$ sudo gedit /etc/systemd/logind.conf
"""
HandleLidSwitch=ignore
"""
$ systemctl restart systemd-logind.service
* automatic suspend:
on
on battery: 15min
on power: 15min
* power button action: sleep
* blank screen: 1 min
* dim when inactive: on
___________
also ...
$ sudo gedit /etc/systemd/logind.conf
"""
HandleLidSwitch=ignore
"""
$ systemctl restart systemd-logind.service
¶* gnome-tweaks
* some @ XXX🔗workflow
* Workspaces → On primary display only!:
(so you can watch TV on the other one, while working!)
* some @ XXX🔗workflow
* Workspaces → On primary display only!:
(so you can watch TV on the other one, while working!)
¶* firefox
### merge
@@🔗new-firefox
* install plugins:
* [...]
* no auto-google search:
"provide search suggestions" = off
* no site notifications:
dom.webnotifications.enabled = false
* bookmarklet bar
* [...]
### merge
@@🔗new-firefox
* install plugins:
* [...]
* no auto-google search:
"provide search suggestions" = off
* no site notifications:
dom.webnotifications.enabled = false
* bookmarklet bar
* [...]
¶* nemo-desktop
merge @@🔗new-desktop ... "just about the OS desktop"
via:
* https://linuxhint.com/installing_nemo_file_manager_linux/
* https://itectec.com/ubuntu/ubuntu-how-to-set-nemo-as-the-default-file-manager-in-ubuntu-18-04/
___________
$ sudo apt install nemo
$ xdg-mime default nemo.desktop inode/directory
$ xdg-mime query default inode/directory # maybe not
$ gsettings set org.gnome.desktop.background show-desktop-icons false
super key → "extensions":
"disabled desktop icons"
https://www.maketecheasier.com/hide-desktop-icons-ubuntu/
config the desktop layout (right click)
make it autostart
merge @@🔗new-desktop ... "just about the OS desktop"
via:
* https://linuxhint.com/installing_nemo_file_manager_linux/
* https://itectec.com/ubuntu/ubuntu-how-to-set-nemo-as-the-default-file-manager-in-ubuntu-18-04/
___________
$ sudo apt install nemo
$ xdg-mime default nemo.desktop inode/directory
$ xdg-mime query default inode/directory # maybe not
$ gsettings set org.gnome.desktop.background show-desktop-icons false
super key → "extensions":
"disabled desktop icons"
https://www.maketecheasier.com/hide-desktop-icons-ubuntu/
config the desktop layout (right click)
make it autostart
¶* workspaces to 4
$ gsettings set org.gnome.desktop.wm.preferences num-workspaces 4
(make it a fixed number, can do in "Settings→Multitasking")
$ gsettings set org.gnome.desktop.wm.preferences num-workspaces 4
(make it a fixed number, can do in "Settings→Multitasking")
¶* get rid of 'snap'
At minimum, do firefox !
(untested)
https://linuxblog.io/remove-snap-ubuntu-22-04-lts/
https://www.debugpoint.com/remove-snap-ubuntu/
<---------------------- (new) PARTS ↑ ↓ UNSORTED/RANDOM PARTS
* eog: enable slideshow shuffle and hide titlebar plugins
* openssh:
configure?
fully disable & enable only per request?
* [...]
* change alt+tilde switching of program instances
* postfix (???)
(i chose "no configuration")
* check "sushi":
via https://www.omgubuntu.co.uk/2020/04/things-to-do-after-installing-ubuntu
* two finger scrolling ?
* https://askubuntu.com/questions/1031633/enable-hibernate-in-ubuntu-18-04-lts
* speaker audio problems on x230t
(@phobos)
* (x230t) prevent on-screen keyboard
At minimum, do firefox !
(untested)
https://linuxblog.io/remove-snap-ubuntu-22-04-lts/
https://www.debugpoint.com/remove-snap-ubuntu/
<---------------------- (new) PARTS ↑ ↓ UNSORTED/RANDOM PARTS
* eog: enable slideshow shuffle and hide titlebar plugins
* openssh:
configure?
fully disable & enable only per request?
* [...]
* change alt+tilde switching of program instances
* postfix (???)
(i chose "no configuration")
* check "sushi":
via https://www.omgubuntu.co.uk/2020/04/things-to-do-after-installing-ubuntu
* two finger scrolling ?
* https://askubuntu.com/questions/1031633/enable-hibernate-in-ubuntu-18-04-lts
* speaker audio problems on x230t
(@phobos)
* (x230t) prevent on-screen keyboard
¶(Document plan)
* collect historic logs:
* link up
* read them. extract the good stuff.
* learn to package stuff better (to be more easily virtualized).
* point to other relevant docs
* [...]
* collect historic logs:
* link up
* read them. extract the good stuff.
* learn to package stuff better (to be more easily virtualized).
* point to other relevant docs
* [...]
¶ A) I administer your system:
i am root, you are not root
i lose time
i lose patience
i talk to you
you tell me what you want
i install and configure
-------------
i share and maintain and (co)develop my scripts
[...]
problem:
how to do updates ?!
i am root, you are not root
i lose time
i lose patience
i talk to you
you tell me what you want
i install and configure
-------------
i share and maintain and (co)develop my scripts
[...]
problem:
how to do updates ?!
¶ C) We co-admin (but i don't give a shit):
(i give you root, i keep root, i do things "for fun")
I don't care if your computer is broken, sorry, not sorry, lol
(i give you root, i keep root, i do things "for fun")
I don't care if your computer is broken, sorry, not sorry, lol
¶[→] (DISTRO specific)
* FOR MIDDLEMACHINE:
* create /middlemachine-mess
* make new batch of aliases: "c" as "cd.."
* SET CONF LOCAL FOR NMAP DEFAULTS:
___________ ARP INTERFACE [example: 'wlan0'], via param 1: >wlp3s0<
____________ SUBNET [example '192.168.0.0/24'], via param2: >192.168.43.0/24<
* FOR MIDDLEMACHINE:
* create /middlemachine-mess
* SET CONF LOCAL FOR NMAP DEFAULTS:
___________ ARP INTERFACE [example: 'wlan0'], via param 1: >wlp3s0<
____________ SUBNET [example '192.168.0.0/24'], via param2: >192.168.43.0/24<
¶[!!**] Ubuntu 22.04 seems super slow
on "sedmoy"
Even though no CPU or memory seems exhausted ...
Following
https://www.ubuntubuzz.com/2023/05/ubuntu-2204-runs-very-slow-and-solutions.html
________ solving
* make sure PERFORMANCE MODE is on
* ###
on "sedmoy"
Even though no CPU or memory seems exhausted ...
Following
https://www.ubuntubuzz.com/2023/05/ubuntu-2204-runs-very-slow-and-solutions.html
________ solving
* make sure PERFORMANCE MODE is on
* ###
¶[!!**] WORKFLOW/NEWSYSTEM— Upgrade Ubuntu 20.04 → 22.04
UPDATE 20240404:
THERE IS STILL STUFF TO FINISH HERE
SOME PARTS/CONFIGS HAVEN'T BEEN FIXED UP
UPDATE 20240416:
Followed OK with Luna server.
______ PREPARE
* make copy of /etc → /etc-YYYYMMDD
* (we are first performing upgrade on the x230, the old "CLONE" original system)
↓
in the future, this CLONE-THEN-UPGRADE system is really nice
you can take your time as well, test it
↓
keep both for a while
YEAH!
* (basic upgrade commands)
via https://www.cyberciti.biz/faq/upgrade-ubuntu-20-04-lts-to-22-04-lts/
↓
if:
"please install all available updates for your release..."
https://askubuntu.com/questions/1085295/error-while-trying-to-upgrade-from-ubuntu-18-04-to-18-10-please-install-all-av
↓
$ sudo apt dist-upgrade
$ sudo reboot
$ sudo do-release upgrade
↓
(lists packages without candidates, nothing special)
↓
ENTER
————— (server specifics)
"""
Note that if you have held any packages via apt-mark hold you'll have to unhold or remove them to avoid this error.
"""
↓
"""
root@luna:/# apt-mark showhold
graphviz
libann0
libcdt5
libcgraph6
libgvc6
libgvpr2
liblab-gamut1
libpathplan4
"""
root@luna:/# sudo apt-mark unhold $(apt-mark showhold)
↓
$ saguu
↓
$ sudo do-release-upgrade
*** DO THE UPGRADE IN SCREEN ***
↓
"""
If you continue, an additional ssh daemon will be started at port
'1022'.
Do you want to continue?
Continue [yN] y
"""
↓
(ssh is terminated)
https://askubuntu.com/questions/222587/how-to-check-apt-get-upgrade-status-after-losing-ssh-connection
↓
no problem, just do-configure-upgrade again.
↓
See XXX🔗admin for 22.04 SERVER UPGRADE SPECIFICS.
———— DURING UPDATE
* (glibc change) → "q"
* "configuring libc6":
..."restart services without asking?"
→ yes
(4min)
* (apt-listchanges) → read → "q"
______
(annoying part starts)
* eh: logind.conf:
→"i"
------
[!!] ADD LATER
"""
#######DAVID
HandleLidSwitch=ignore
"""
* firefox wants to be snap
↓
→ "ok"
let it, deal with this later [!!]
$$$$$$$$$
* eh: sysctl.conf:
→KEEP
* ...pulse/default.pa.d:
→ NEW
---------
[!!] merge manualy:
* noecho
* stereo→mono
* ... mpd:
→ NEW, then MELD later
-------
[!!→]:
did a meld compare
make distro for this!
___________
* yes, download
(quick)
* yes, restart
___________
* had to redo grub in first-option partition
↓
$ update-grub
(!) from the ubuntu 23.04 install login, don't know why only there but ok!
----------
[!!!*] change default grub boot selection index!
———————————— POST
* background changed??
→ OK
[e]: (YES, IT IS WAYLAND)
↑
$ inxi -F
↓
(follow tutorial)
https://linuxconfig.org/how-to-enable-disable-wayland-on-ubuntu-22-04-desktop
↓
$ sudo joe /etc/gdm3/custom.conf #etc
→ OK
[e]: SCREENSHAT DON'T WORK
↓
have to go and re-set it
[!] MEH: I don't like the UX changes for CHANGE WINDOW
you used to see what they were, vertical, now it's horizontal?
* CHECK: gnome-tweaks → STARTUP APPS
(there was "Remmina applet" there, already before too)
* Settings → WORKSPACES (not in tweaks anymore!)
4x
on primary only
include apps from all workspaces (? reconsider!)
include from EACH MONITOR ONLY
* ... → Removable media
Software : ASK or DO NOTHING
————————
* check: ufw
→OK
* check: /HOME symlinks
→ OK
[!!] check: count/compare all "##DAVID"
* (apache didn't work)
(check mima22, hyperphotos, etc)
↓
check status
↓
https://askubuntu.com/questions/1406392/apache2-is-not-starting-after-upgrading-version-2204
$ sudo a2enmod php8.1 #...etc...
→ OK
* (mima don't work)
↓
"""
ModuleNotFoundError: No module named 'termcolor'
"""
→ OK
* etherpad: OK
_____ POST
https://www.linuxquestions.org/questions/linux-software-2/totem-won%27t-start-missing-gtkglsink-glsinkbin-4175722885/
totem didn't work.
had to delete ~/.cache
<--------------------------- ((new))
UPDATE 20240404:
THERE IS STILL STUFF TO FINISH HERE
SOME PARTS/CONFIGS HAVEN'T BEEN FIXED UP
UPDATE 20240416:
Followed OK with Luna server.
______ PREPARE
* make copy of /etc → /etc-YYYYMMDD
* (we are first performing upgrade on the x230, the old "CLONE" original system)
↓
in the future, this CLONE-THEN-UPGRADE system is really nice
you can take your time as well, test it
↓
keep both for a while
YEAH!
* (basic upgrade commands)
via https://www.cyberciti.biz/faq/upgrade-ubuntu-20-04-lts-to-22-04-lts/
↓
if:
"please install all available updates for your release..."
https://askubuntu.com/questions/1085295/error-while-trying-to-upgrade-from-ubuntu-18-04-to-18-10-please-install-all-av
↓
$ sudo apt dist-upgrade
$ sudo reboot
$ sudo do-release upgrade
↓
(lists packages without candidates, nothing special)
↓
ENTER
————— (server specifics)
"""
Note that if you have held any packages via apt-mark hold you'll have to unhold or remove them to avoid this error.
"""
↓
"""
root@luna:/# apt-mark showhold
graphviz
libann0
libcdt5
libcgraph6
libgvc6
libgvpr2
liblab-gamut1
libpathplan4
"""
root@luna:/# sudo apt-mark unhold $(apt-mark showhold)
↓
$ saguu
↓
$ sudo do-release-upgrade
*** DO THE UPGRADE IN SCREEN ***
↓
"""
If you continue, an additional ssh daemon will be started at port
'1022'.
Do you want to continue?
Continue [yN] y
"""
↓
(ssh is terminated)
https://askubuntu.com/questions/222587/how-to-check-apt-get-upgrade-status-after-losing-ssh-connection
↓
no problem, just do-configure-upgrade again.
↓
See XXX🔗admin for 22.04 SERVER UPGRADE SPECIFICS.
———— DURING UPDATE
* (glibc change) → "q"
* "configuring libc6":
..."restart services without asking?"
→ yes
(4min)
* (apt-listchanges) → read → "q"
______
(annoying part starts)
* eh: logind.conf:
→"i"
------
[!!] ADD LATER
"""
#######DAVID
HandleLidSwitch=ignore
"""
* firefox wants to be snap
↓
→ "ok"
let it, deal with this later [!!]
$$$$$$$$$
* eh: sysctl.conf:
→KEEP
* ...pulse/default.pa.d:
→ NEW
---------
[!!] merge manualy:
* noecho
* stereo→mono
* ... mpd:
→ NEW, then MELD later
-------
[!!→]:
did a meld compare
make distro for this!
___________
* yes, download
(quick)
* yes, restart
___________
* had to redo grub in first-option partition
↓
$ update-grub
(!) from the ubuntu 23.04 install login, don't know why only there but ok!
----------
[!!!*] change default grub boot selection index!
———————————— POST
* background changed??
→ OK
[e]: (YES, IT IS WAYLAND)
↑
$ inxi -F
↓
(follow tutorial)
https://linuxconfig.org/how-to-enable-disable-wayland-on-ubuntu-22-04-desktop
↓
$ sudo joe /etc/gdm3/custom.conf #etc
→ OK
[e]: SCREENSHAT DON'T WORK
↓
have to go and re-set it
[!] MEH: I don't like the UX changes for CHANGE WINDOW
you used to see what they were, vertical, now it's horizontal?
* CHECK: gnome-tweaks → STARTUP APPS
(there was "Remmina applet" there, already before too)
* Settings → WORKSPACES (not in tweaks anymore!)
4x
on primary only
include apps from all workspaces (? reconsider!)
include from EACH MONITOR ONLY
* ... → Removable media
Software : ASK or DO NOTHING
————————
* check: ufw
→OK
* check: /HOME symlinks
→ OK
[!!] check: count/compare all "##DAVID"
* (apache didn't work)
(check mima22, hyperphotos, etc)
↓
check status
↓
https://askubuntu.com/questions/1406392/apache2-is-not-starting-after-upgrading-version-2204
$ sudo a2enmod php8.1 #...etc...
→ OK
* (mima don't work)
↓
"""
ModuleNotFoundError: No module named 'termcolor'
"""
→ OK
* etherpad: OK
_____ POST
https://www.linuxquestions.org/questions/linux-software-2/totem-won%27t-start-missing-gtkglsink-glsinkbin-4175722885/
totem didn't work.
had to delete ~/.cache
<--------------------------- ((new))