{"id":6648,"date":"2022-08-30T19:56:31","date_gmt":"2022-08-30T19:56:31","guid":{"rendered":"https:\/\/davelevy.info\/wiki\/?p=6648"},"modified":"2024-03-12T16:47:27","modified_gmt":"2024-03-12T16:47:27","slug":"ubuntu-22","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/ubuntu-22\/","title":{"rendered":"Ubuntu 22"},"content":{"rendered":"<p>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 &#8230;<\/p>\n<p><!--more--><\/p>\n<h3>What I&#8217;ve found<\/h3>\n<h4>On swap<\/h4>\n<p>This is a bit odd.<\/p>\n<ol>\n<li><a href=\"https:\/\/askubuntu.com\/questions\/1408784\/apps-crash-randomly-on-newly-installed-ubuntu-22-04\">https:\/\/askubuntu.com\/questions\/1408784\/apps-crash-randomly-on-newly-installed-ubuntu-22-04<\/a><\/li>\n<li><a href=\"https:\/\/linuxhint.com\/add-swap-space-ubuntu-22-04\/\">https:\/\/linuxhint.com\/add-swap-space-ubuntu-22-04\/<\/a>, I found this, <a title=\"Change swap size in Ubuntu \" href=\"https:\/\/ploi.io\/documentation\/server\/change-swap-size-in-ubuntu\">extending swap on an ubuntu 22 system<\/a>.<\/li>\n<li>And <a href=\"https:\/\/itsfoss.com\/swap-size\/\">this on sizing swap<\/a>! There it seems several rules, varying from 2Gb to same as RAM.<\/li>\n<\/ol>\n<h4>On Snap<\/h4>\n<ol>\n<li><a href=\"https:\/\/web.archive.org\/web\/20231101134628\/https:\/\/snapcraft.io\/docs\/keeping-snaps-up-to-date\">https:\/\/snapcraft.io\/docs\/keeping-snaps-up-to-date<\/a>, 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.<\/li>\n<\/ol>\n<h4>Image Editing<\/h4>\n<ol>\n<li><a href=\"https:\/\/linuxhint.com\/best-image-editors-ubuntu\/\">https:\/\/linuxhint.com\/best-image-editors-ubuntu\/<\/a>\u00a0from Linuxhint, I downloaded GIMP, I thought I knew how to use it, but it seems I don&#8217;t. Perhaps I <a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/workflow-resizing-images-with-imagemagick\">should use imagemagick<\/a>?<\/li>\n<\/ol>\n<h3>On Samba<\/h3>\n<p>The client <a href=\"https:\/\/askubuntu.com\/questions\/1290547\/failed-to-retrieve-share-list-from-server-invalid-argument\">only uses SMB1<\/a>? If so this is a bug in Ubuntu, can I configure my servers to use both versions of the protocol. I have <a href=\"https:\/\/davelevy.info\/wiki\/samba\/\">a Samba page<\/a> on this wiki.<\/p>\n<h3>UFW<\/h3>\n<p>At some time in the early 20&#8217;s ubuntu moved from iptables interface to <em>ufw<strong>, <\/strong><\/em>I found <a href=\"https:\/\/www.safe.security\/assets\/img\/research-paper\/pdf\/A%20Beginners%20Guide%20to%20Linux%20firewall.pdf\">this manual, A Beginners Guide to Linux firewall 2021<\/a>. ufw defaults to running <a href=\"https:\/\/linuxhandbook.com\/ufw-logs\/\">without logs<\/a>, 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.\u00a0<\/p>\n<h3>On VLC<\/h3>\n<p>I forgot to do the things to make VLC work, it&#8217;s not as simple as it should be, I checked <a href=\"https:\/\/davelevy.info\/wiki\/ubuntu-20-video-codecs\/\">my V20 notes<\/a> and\u00a0 referred to<a href=\"https:\/\/www.cyberciti.biz\/faq\/installing-plugins-codecs-libdvdcss-in-debian-ubuntu-linux\/\"> these notes<\/a>, which guided me through the <span style=\"text-decoration: underline;\">reinstall<\/span> and then the configuration. I used steps 1-4 with apt.<\/p>\n<h3>Filezilla<\/h3>\n<p>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 <a href=\"https:\/\/www.ionos.com\/digitalguide\/server\/configuration\/set-up-an-ubuntu-sftp-server\/\">some instructions<\/a> which spend a lot of time on groups. Filezilla&#8217;s <a href=\"https:\/\/filezillapro.com\/docs\/v3\/basic-usage-instructions\/connecting-to-a-server\/\">instructions<\/a> are unhelpful, but I think its the Ubuntu config which is faulty. I have <a href=\"https:\/\/askubuntu.com\/questions\/1498603\/gui-sftps-wont-connect-to-a-u22-virtual-server-from-w11\">asked Ubuntu<\/a>.<\/p>\n<h3>On Sudoers privilidge<\/h3>\n<p>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 <a href=\"https:\/\/www.tecmint.com\/fix-user-is-not-in-the-sudoers-file-the-incident-will-be-reported-ubuntu\/\">this advice from tecmint.com<\/a> and found <a href=\"https:\/\/askubuntu.com\/questions\/1291446\/black-screen-ubuntu-virtualbox\">this<\/a> from askunbuntu, which wasn&#8217;t quite what I needed.<\/p>\n\n\n<h3 class=\"wp-block-heading\">Update-alternatives<\/h3>\n\n\n\n<p>My <a href=\"https:\/\/davelevy.info\/wiki\/planet-planet\/\">mingle <\/a>broke and I think it&#8217;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 &amp; python2 install [using apt] with those names. Here is <a href=\"https:\/\/tecadmin.net\/linux-update-alternatives-command\/\">techadmin net&#8217;s page<\/a>, and also <a href=\"https:\/\/www.baeldung.com\/linux\/update-alternatives-command\">that of Baeldung<\/a>. However, it may not be the answer to the problem I am trying to solve.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Google Drive<\/h3>\n\n\n\n<p>This is now managed via settings -&gt; online accounts. Do the do, and make sure that the file manager is granted permissions. Nautilus will find the drive. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Bad Blocks<\/h3>\n\n\n\n<p>I have one or more bad blocks on my hard disk, to remediate this,,<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First, I need to of make <a title=\"this page shows how to using tar with the --exclude argument\" href=\"https:\/\/help.ubuntu.com\/community\/BackupYourSystem\/TAR\">a file backup of the root file system<\/a>, and thus need a remote disk target; this can be done from the failing system using <a href=\"https:\/\/linux.die.net\/man\/1\/tar\">tar <\/a>and &#8211;exclude. I <a href=\"https:\/\/github.com\/dfl1955\/ubuntu-tools\/blob\/master\/tools\/backmeup\">wrote some code, <code>backmeup<\/code><\/a>. Fixing <a href=\"https:\/\/davelevy.info\/wiki\/losing-sight-of-my-remote-disks\/\">the smb connect <\/a>to my router mounted HDD helped.<\/li>\n\n\n\n<li><em><a href=\"https:\/\/www.man7.org\/linux\/man-pages\/man8\/badblocks.8.html\">badblocks<\/a><\/em> lists bad blocks, it does not repair them, it is <a href=\"https:\/\/distroid.net\/fix-bad-sectors-linux\/\">recommended <\/a>that one uses <em>e2fsck<\/em>, but my file system is w95 FAT, so <a href=\"https:\/\/askubuntu.com\/questions\/147228\/how-to-repair-a-corrupted-fat32-file-system\">fsck.vfat is needed.<\/a> There remain, 3 bad blocks, looks like I&#8217;ll need to reinstall on an ext4 file systems and ensure a <code>format<\/code> command is used.<\/li>\n<\/ul>\n\n\n\n<p>It would also be good to fix the boot manager if this works. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":5833,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[8,3],"tags":[702,869,817,916,438,827,957,1056,911,343,1901],"class_list":["post-6648","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-technology","tag-filezilla","tag-gdrive","tag-google-drive","tag-linux","tag-samba","tag-snap","tag-swap","tag-systemd","tag-technology","tag-ubuntu","tag-vlc"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2021\/06\/ubuntu-pirplecobblestone-w650-cropped.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/6648","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=6648"}],"version-history":[{"count":22,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/6648\/revisions"}],"predecessor-version":[{"id":10677,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/6648\/revisions\/10677"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/5833"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=6648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=6648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=6648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}