This seems a bit unstable, actually a bit unfair but they have changed how they deal with bursting swap, and firefox at least uses snap and so I may need some more tools. I have added to this page as I learn more about what additional configuration I need. My notes …
What I’ve found
On swap
This is a bit odd.
- https://askubuntu.com/questions/1408784/apps-crash-randomly-on-newly-installed-ubuntu-22-04
- https://linuxhint.com/add-swap-space-ubuntu-22-04/, I found this, extending swap on an ubuntu 22 system.
- And this on sizing swap! There it seems several rules, varying from 2Gb to same as RAM.
On Snap
- https://snapcraft.io/docs/keeping-snaps-up-to-date, claims to do it l the time or at least four times/day, can I configure a refresh to be part of the boot sequence.
Image Editing
- https://linuxhint.com/best-image-editors-ubuntu/ from Linuxhint, I downloaded GIMP, I thought I knew how to use it, but it seems I don’t. Perhaps I should use imagemagick?
On Samba
The client only uses SMB1? If so this is a bug in Ubuntu, can I configure my servers to use both versions of the protocol. I have a Samba page on this wiki.
UFW
At some time in the early 20’s ubuntu moved from iptables interface to ufw, I found this manual, A Beginners Guide to Linux firewall 2021. ufw defaults to running without logs, they must be turned on. I usually need ssh, smb, nmb, http/https, and maybe cups. AFAIK ufw is an interface to iptables. It comes with rules which are on or off, for OpenSSH, apache and Samba. It is enabled/disabled via the ufw cli.
On VLC
I forgot to do the things to make VLC work, it’s not as simple as it should be, I checked my V20 notes and referred to these notes, which guided me through the reinstall and then the configuration. I used steps 1-4 with apt.
Filezilla
I made an image and cannot get sftp or smb to work. Actually, I have sftp working from the command line but not from the GUI. IONOS have some instructions which spend a lot of time on groups. Filezilla’s instructions are unhelpful, but I think its the Ubuntu config which is faulty. I have asked Ubuntu.
On Sudoers privilidge
When running under virtualbox, I corrupted the sudoersfile. This is not simple to fix, well it is, but you need to know how. You need to boot in recovery mode and enter single user shell as root. I used this advice from tecmint.com and found this from askunbuntu, which wasn’t quite what I needed.
Update-alternatives
My mingle broke and I think it’s a python version thing. While looking at how to run an old version and new version I came across update-alternatives, which does exactly what I need given that python3 & python2 install [using apt] with those names. Here is techadmin net’s page, and also that of Baeldung. However, it may not be the answer to the problem I am trying to solve.
Google Drive
This is now managed via settings -> online accounts. Do the do, and make sure that the file manager is granted permissions. Nautilus will find the drive.
Bad Blocks
I have one or more bad blocks on my hard disk, to remediate this,,
- First, I need to of make a file backup of the root file system, and thus need a remote disk target; this can be done from the failing system using tar and –exclude. I wrote some code,
backmeup
. Fixing the smb connect to my router mounted HDD helped. - badblocks lists bad blocks, it does not repair them, it is recommended that one uses e2fsck, but my file system is w95 FAT, so fsck.vfat is needed. There remain, 3 bad blocks, looks like I’ll need to reinstall on an ext4 file systems and ensure a
format
command is used.
It would also be good to fix the boot manager if this works.
Updated today, to document issues with Samba and the work round provided by imagemagick.
Added the comment on UFW and Samba. I also note that my real Ubuntu machine, the one with the bad blocks was sent for recycling, it had lasted a long time.