Wednesday, April 27, 2022

Photo Slideshow on Screensaver on Ubuntu.

 My friend asked me whether he could run Slideshow of Photos on Screensaver. First I thought about Shotwell Photo Manager App. It has Desktop Slideshow option but it did not work on Lock screen.

Then I searched for good old xscreensaver utility and installed it as follows:

$ sudo apt install xscreensaver xscreensaver-gl-extra xscreensaver-data-extra

$ sudo apt remove gnome-screensaver

I added xscreensaver to Startup Applications

Then I opened Screensaver Preferences and selected GLSlideshow in Display Mode

 
 then selected Pictures Folder in Image Manipulation/Choose Random image

 and it works on reboot.

Tuesday, April 19, 2022

Ubuntu 22.04 Jammy Jellyfish Live persistent on usb.

 In the previous post I could run Ubuntu 22.04 Jammy Jellyfish booting iso from grub. Then I made persistent Live usb of Jammy Jellyfish using mkusb. I could boot and run Firefox on first boot. But on reboot Firefox refused to run due to following error:

$ firefox
snap-confine has elevated permissions and it is not confined but should be. Refusing to continue to avoid permission escalation attacks.

This was a show stopper for persistent Live system of Ubuntu 22.04.

On further research I discovered that AppArmor was failing on Live system preventing firefox but how it was running on first boot is still a mystery to me.

Anyway on googling about AppArmor failure on Live System I discovered this page which provides a workaround.

The workaround is as follows:

In Live Persistent mode:
$ sudo mkdir /lib/systemd/system/apparmor.service.d

to create a directory apparmor.service.d in /lib/systemd/system/

sudo gedit /lib/systemd/system/apparmor.service.d/30_live_mode.conf

to create config file in the new directory

Paste
[Unit]
ConditionPathExists=

Save and reboot.

AND Firefox works!

Show must go on for persistent Live system of Ubuntu 22.04.

 Update on 22nd April 2022

This workaround was incorporated in mkusb version 12.7.4 on 21st April 2022 just in time before release of Ubuntu 22.04 Jammy Jellyfish.

Sunday, April 17, 2022

Running Ubuntu 22.04 Jammy Jellyfish booting from ISO.

 I downloaded Ubuntu 22.04 daily live iso a week ago and tried it by inserting following menu entry in /etc/grub.d/40_custom

menuentry "Jammy Jellyfish Desktop iso" {
set isofile="/home/user/jammy-desktop-amd64.iso"
loopback loop (hd0,X)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd
}
I could not boot and was getting the error:
Unable to find a medium containing a live file system.

I posted on ubuntuforums and was informed that it was a bug.

The bug has been fixed and the updated iso now boots and I am posting this on Jammy Jellyfish.



Air India direct flight to San Fransisco has flown through China today.

 My sister in law left for San Fransisco by AI 173 flight which flows over North Pole. I tracked that flight on flightstats.com till it land...