Saturday, February 18, 2023

Endless OS 5.0.0 Gnome 41.3 on Wayland

 I have switched to Endless OS for last six months. Today I updated to latest version Endless OS 5.0.0


There are new features:

Multiple Workspaces

Swipe left/right with three fingers to switch between workspaces

Two finger scrolling.

 

Tuesday, May 10, 2022

Remove snap packages including Firefox on Ubuntu 22.04, install gnome-software, add Flatpak repo and install Firefox Flatpak version.

Ubuntu 22.04 comes with Ubuntu-Software which is snap store and Firefox comes as a snap package. If you don't like this set up you can remove all installed snap packages including Firefox and install gnome-software with flatpak plugin, add flatpak repo and install Firefox Flatpak version.

$ sudo snap remove --purge firefox
$ sudo snap remove --purge snap-store
$ sudo snap remove --purge gnome-3-38-2004
$ sudo snap remove --purge gtk-common-themes
$ sudo snap remove --purge snapd-desktop-integration
$ sudo snap remove --purge bare
$ sudo snap remove --purge core20
$ sudo snap remove --purge snapd
$ sudo gedit /etc/apt/preferences.d/nosnap.pref
Paste the following:

    # To prevent repository packages from triggering the installation of snap,
    # this file forbids snapd from being installed by APT.

    Package: snapd
    Pin: release a=*
    Pin-Priority: -10

Save and refresh package cache

$ sudo apt update

$ sudo apt install gnome-software
$ sudo apt remove --purge gnome-software-plugin-snap
$ sudo apt install gnome-software-plugin-flatpak
$ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Restart

Open gnome-software and install Firefox

Monday, May 09, 2022

Remove Firefox snap package on Ubuntu 22.04 and install non snap Firefox also remove snap completely.

 On Ubuntu 22.04 Firefox is a snap package which is slow to open. Here is how to install Firefox and remove the snap package.

Download Firefox from Mozilla.

$ cd Downloads

$ tar xjf firefox-100.0.tar.bz2

$ sudo mkdir /opt

$ sudo mv firefox /opt/firefox100

$ sudo mv /usr/bin/firefox /usr/bin/firefox-snap

$ sudo ln -s /opt/firefox100/firefox /usr/bin/firefox

Now the Launcher on the Desktop will open the Firefox in /opt and not the snap package. Notice the difference in time of opening.

Firefox snap package is still present and we have renamed it as firefox-snap which can be run by typing

$ firefox-snap

You can remove firefox snap package

$ sudo snap remove --purge firefox

But this will remove the Firefox Launcher from the Desktop. To create a new Launcher

Open the File Manager and go to /usr/share/applications

Right Click on firefox.desktop and select Copy

Right Click on Desktop and click paste.

Right click on the Launcher click on Properties/Permissions

Put check mark on Allow executing file as a program.

Again right click on the Launcher and select Allow Launching.

If you want to remove snap completely remove the other installed snap packages one by one

$ sudo snap remove --purge snap-store
$ sudo snap remove --purge gnome-3-38-2004

$ sudo snap remove --purge gtk-common-themes
$ sudo snap remove --purge snapd-desktop-integration
$ sudo snap remove --purge bare

$ sudo snap remove --purge core20

Now only snapd remains to confirm

$ snap list

Finally remove snapd

$ sudo snap remove --purge snapd

To prevent installation of snapd and other snap packages

create a config file

$ sudo gedit /etc/apt/preferences.d/nosnap.pref

Paste the following:

# To prevent repository packages from triggering the installation of snap,
# this file forbids snapd from being installed by APT.

Package: snapd
Pin: release a=*
Pin-Priority: -10

Save and refresh package cache

$ sudo apt update

 


 

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.



Monday, November 15, 2021

POCO C3 Android Phone Factory Reset difficulties.

 I had done Factory reset of my previous Android Phones Coolpad Mega 2.5D and Samsung Galaxy on7 pro without any difficulty. Installation of apps used to take some time (may be an hour or two) but my current phone POCO C3 took several hours even updating preinstalled Google Apps and I could not install essential apps like Paytm, Phonepe, Bigbasket etc.

The main hurdle was updating Google Play Store version 23.10 which I could not do manually. This Play Store version prevented updating preinstalled Google Apps as well as installing other apps.

Actually I should have allowed the phone to update but became restless and tried some tricks like deleting cache and data in Google Play Store and restarting the phone but no result.

Finally all apps updated and I could install other apps and found that Google Play Store was updated to version 27.8.14-21.

Wednesday, October 27, 2021

I made my Fridge Smart.

 Our old frost free fridge was giving problems and we bought a new conventional fridge which requires defrosting atleast twice a week exchanging the old one.

I used to push the defrost button before going to bed twice a week on Sunday and Wednesday.

Recently I bought a smart plug socket which has built in Wifi. As per instructions I installed Smart Life app on the mobile and could connect the Smart Plug to Wifi Network and set it up to stop at midnight and start at 3 AM every day. I could have set it up to work only on Sunday and Wednesday also as being done by manually pushing the defrost button.

I am switching off my Wifi Network before going to sleep in the night and even then the smart plug works because it has built in clock.

Wonderful Gadget!

Monday, September 06, 2021

Running frugal install of Fossapup64 Puppy Linux 9.5 with Gnucash 4.6 on flatpak and Libreoffice 7.2.

I copied the following files from Fossapup64 iso to Fossapup folder on one partition of Hard Disk:

adrv_fossapup64_9.5.sfs, fdrv_fossapup64_9.5.sfs, puppy_fossapup64_9.5.sfs, zdrv_fossapup64_9.5.sfs, vmlinuz, initrd.gz

Then I created following boot entry in /etc/gub.d/40_custom:

menuentry 'Fossapup64 9.5' {

search --no-floppy --fs-uuid --set 1e364a7e-9e6d-468a-99a2-404936a14d59

linux /Fossapup/vmlinuz pfix=nocopy pmedia=atahd psubdir=Fossapup 

initrd /Fossapup/initrd.gz 

and updated Grub: 

sudo update-grub 

I could boot into Fossapup64 Puppy Linux 9.5 Desktop. 

I installed flatpak with all its dependencies from Puppy Package Manager

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo 

and installed Gnucash: 

flatpak install flathub org.gnucash.GnuCash

and run it: 

flatpak run org.gnucash.GnuCash 

For Libreoffice there was Menu/Document/Get_Libreoffice_download_and_install_Libreoffice available on the Desktop.

Thursday, September 02, 2021

Running Puppy Linux 9.5 fossapup64 from USB on my acer laptop.

I downloaded fossapup64-9.5.iso checked md5sum, copied it to USB and tried booting but it was not bootable on UEFI machine. Then I copied only following files from the iso at the root of USB: vmlinuz, initrd.gz, puppy_fossapup64_9.5.sfs, zdrv_fossapup64_9.5.sfs, adrv_fossapup64_9.5.sfs and fdrv_fossapup64_9.5.sfs I created EFI/boot folder at the root of USB. Downloaded bootx64.efi and grub.cfg files. Copied bootx64.efi in EFI/boot folder and grub.cfg at the root of USB. I could boot into Puppy Linux 9.5 Desktop from the USB:

Saturday, May 22, 2021

error: file ‘/boot/vmlinuz-5.12-X86-64’ not found on Manjaro grub after failed update.

 I am running Manjaro Linux since Sep 2020. There was a big update (larger than 1 GB) on 20th May 2021 and I left the Laptop after the update began.

After 30 minutes I found blank screen and could not even open a terminal by pressing Ctrl+Alt+F2. I pressed the power button to shutdown.

After restart I got the error: file ‘/boot/vmlinuz-5.12-X86-64’ not found you need to load the kernel first and could not proceed.

I logged in Ubuntu 20.04 and posted on Manjaro Forum and was asked to boot from Manjaro Live USB open the terminal and type:

[manjaro@manjaro ~]$ sudo su - [manjaro ~]# manjaro-chroot -a grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map. grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map. ==> Detected systems: --> 0) Ubuntu --> 1) ManjaroLinux ==> Select system to mount [0-1] : 1 ==> Mounting (ManjaroLinux) [/dev/sda7] --> mount: [/mnt] --> mount: [/mnt/boot/efi] [manjaro /]# rm -f /var/lib/pacman/db.lck [manjaro /]# pacman -Syu :: Synchronizing package databases... core is up to date extra 1910.3 KiB 498 KiB/s 00:04 [######################] 100% community is up to date multilib is up to date :: Starting full system upgrade... there is nothing to do

[manjaro /]#

It did not work.
Then I was asked to do:
# mkinitcpio -P
error no presets found
Then I was advised to list the installed kernels:
# mhwd-kernel -li 
and install at least one kernel
# mhwd-kernel -i linux510
I could not install linux510 but could install linux512
# mhwd-kernel -i linux512
After that I could login to installed Manjaro system using linux 5.12
I could reinstall linux510 through the same command on installed system.
 
 

Thursday, May 13, 2021

Running i3 Window Manager on Ubuntu 20.04 and enjoying it.

 I came to know about i3 Window Manager and decided to try it on Ubuntu 20.04. Installed it through the command:

sudo apt install i3

Logged out of gnome, selected i3 and logged in.

It asked me to configure or accept default, not knowing about configuration I selected default then there was blank screen and I did not know what to do.

I used my Mobile to know how to open Terminal on i3 and got the answer to press  Alt+Enter. On terminal I typed firefox and pressed enter and could open the browser.

Then I googled for how to get menu on i3 and was told to press Alt+d and menu opened on top bar.

I typed sol on menu bar and pressed enter and Aiselriot opened.

Then I googled for i3 User Guide and got the link

i3 User Guide

I learned to maximise a window by pressing Alt+f

In the next session I allowed Ubuntu to configure the i3 Window Manager it changed the Alt key to Win key.

I am learning to use the i3 Window Manager and enjoying it.

I could not open gnome-screenshot utility on i3, therefore I installed scrot

sudo apt install scrot

When I typed scrot and enter on the menu it took the following screenshot:


Which is the screen on Ubuntu configured i3 Window Manager

I added following lines to my i3 config file:

# Added by me to add Indian Keyboard Layout and adjust screen brightness on start up.
exec "setxkbmap -layout us,in"
exec "setxkbmap -option 'grp:alt_shift_toggle'"

exec "xrandr --output eDP --brightness 0.5"

Friday, April 30, 2021

Created Fedora 34 Gnome 40 bootable persistent Live USB and running it.

I wanted to try Gnome 40 and found that newest version of Fedora 32 Workstation has Gnome 40.

I downloaded the iso.

Checked sha256sum found ok.

In order to make persistent Live USB I downloaded

livecd-iso-to-disk script

made the script executable and kept it in the same folder as the iso

sudo ./livecd-iso-to-disk --overlay-size-mb 2048 Fedora-Workstation-Live-x86_64-34-1.2.iso /dev/sdb1

to make Live USB with 2 GB for persistence.

It took lot of time:

Copying LiveOS image to target device...
squashfs.img
  1,896,591,360 100%    1.43MB/s    0:21:03 (xfr#1, to-chk=0/1)

Syncing filesystem writes to disc.
    Please wait, this may take a while...
Setting up /EFI/BOOT
Copying /images directory to the target device.
efiboot.img
     10,430,464 100%   70.83MB/s    0:00:00 (xfr#1, to-chk=0/1)
macboot.img
     21,938,176 100%   77.37MB/s    0:00:00 (xfr#1, to-chk=0/1)
initrd.img
     56,824,284 100%   11.06MB/s    0:00:04 (xfr#1, to-chk=0/1)
vmlinuz
     10,580,240 100%   30.12MB/s    0:00:00 (xfr#1, to-chk=0/1)
Updating boot config files.
Initializing persistent overlay...
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB, 2.0 GiB) copied, 2250.09 s, 954 kB/s
Installing boot loader...

        ATTENTION:
        Failed to find /usr/share/syslinux/ldlinux.c32.
        The installed device may not boot.
                Press Enter to continue, or Ctrl C to abort.


        ATTENTION:
        Failed to find /usr/share/syslinux/libcom32.c32.
        The installed device may not boot.
                Press Enter to continue, or Ctrl C to abort.


        ATTENTION:
        Failed to find /usr/share/syslinux/libutil.c32.
        The installed device may not boot.
                Press Enter to continue, or Ctrl C to abort.

Target device is now set up with a Live image!

I changed BIOS Boot to Boot from USB and here is Gnome 40 Desktop:


 



Thursday, April 15, 2021

Filing India Income Tax Return for AY 2021-22 on Linux.

Prior to AY 2013-14 it was necessary to have Windows on your PC to use offline utility (Excel File with Macros) to prepare the Income Tax Return and I was using Windows just to file the return.

In AY 2013-14 a Java Utility was introduced and I wrote about it on the blog post:

Income Tax efiling utility and DSC working on Ubuntu Linux.

For AY 2021-22 the department has switched to JSON but providing only Windows exe file so far. I have already raised a Help Desk request to provide Linux Utility which has been replied as:

Currently the team is analyzing the request; we will get back to you shortly. 
I installed the Utility in Wine(Version 5.0) on Ubuntu 20.04 but it did not work.

On Manjaro I had Wine Version 6.5 on which the Utility worked but it was not accepting Keyboard input. So there was hope.

Then on Ubuntu 20.04 I added Winehq repo and installed
wine-6.6 (Staging).

The Utility is working.

The procedure to install this wine version as follows:

download and add repository key:

wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
After importing the key, proceed to add repository.
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'

To install Staging Version:

sudo apt update 

sudo apt install --install-recommends winehq-staging

After installing confirm Wine Version:

wine --version

 should be 6.6

You can now install the exe file of JSON utility and run it by clicking the shortcut on Desktop.

NB: I could fill up the Income Tax Return completely, verify it but at last stage when the output JSON file is supposed to be downloaded it does not work. It says "Download Failed".

 

Monday, February 15, 2021

Watching free IPTV Live channels on Ubuntu 20.04

 I came to know that Linux Mint has developed IPTV app called Hypnotix. I downloaded the .deb file from github and installed it on Ubuntu 20.04.2.

There are many news channels like Zee News Aaj Tak India TV, DD News on this app.


 


Friday, January 15, 2021

Signal messaging app on Mobile and Desktop/Laptop.

 As WhatsAppp is updating its Privacy Policy the downloads of other apps like Telegram, Signal etc have increased and people are trying these apps.

I had downloaded Signal app on Mobile and found that many of my contacts are doing the same. I had nice video calls with couple of them.

Today I installed Signal Desktop app on Laptop and imported the Contacts from the Mobile.

If I send a message through the Desktop app unlike WhatsApp there is no need to keep the Mobile app working which is a great feature. 


Thursday, January 14, 2021

Enjoying Xubuntu Live persistent on Dell Inspiron N4010 P11G

I came to Hyderabad to spend winter. I borrowed Dell Inspiron N4010 3 GB model with Windows 7 Professional for personal use. Before leaving home I had uploaded required Gnucash Files and Libreoffice files to Drive.

I downloaded Xubuntu 20.04 64 bit ISO while working on Windows 7 and installed Rufus to make Live USB with persistence. Making Live USB on Rufus was smooth.

I changed the Boot sequence in BIOS to bring USB drive on top and and booted to Try Ubuntu Install Ubuntu Desktop and choose Try Ubuntu. To remove the Try Ubiuntu/Install Ubuntu option I removed Ubiquity.

After shutdown the system asked for removal of USB. I wanted to remove this irritant and posted on Ubuntuforums. I got the following solution

xubuntu@xubuntu:~$ sudo mousepad /etc/systemd/system/casper-no-prompt.service

I wrote the file and saved it

# see /sbin/casper-stop
[Unit]
Description=Casper no-prompt

[Service]
Type=oneshot
ExecStart=touch /run/casper-no-prompt

[Install]
WantedBy=multi-user.target

xubuntu@xubuntu:~$ sudo systemctl daemon-reload
xubuntu@xubuntu:~$ sudo systemctl enable casper-no-prompt
Created symlink /etc/systemd/system/multi-user.target.wants/casper-no-prompt.service → /etc/systemd/system/casper-no-prompt.service.
xubuntu@xubuntu:~$ sudo systemctl start casper-no-prompt
xubuntu@xubuntu:~$ sudo systemctl status casper-no-prompt
● casper-no-prompt.service - Casper no-prompt
     Loaded: loaded (/etc/systemd/system/casper-no-prompt.service; enabled; ven>
     Active: inactive (dead) since Sun 2021-01-17 15:04:41 IST; 20s ago
    Process: 23020 ExecStart=/usr/bin/touch /run/casper-no-prompt (code=exited,>
   Main PID: 23020 (code=exited, status=0/SUCCESS)

Jan 17 15:04:41 xubuntu systemd[1]: Starting Casper no-prompt...
Jan 17 15:04:41 xubuntu systemd[1]: casper-no-prompt.service: Succeeded.
Jan 17 15:04:41 xubuntu systemd[1]: Finished Casper no-prompt.
xubuntu@xubuntu:~$ ls -l /run/casper-no-prompt
-rw-r--r-- 1 root root 0 Jan 17 15:04 /run/casper-no-prompt

Now I can shutdown safely without removing USB.

I installed Gnucash and Libreoffice was already present.

Live Xubuntu 20.04 is very fast on this 3 GB machine.

Enjoying it.


Wednesday, November 18, 2020

I bought Smart TV and enjoying it.

 I had bought Philips LCD TV in 2012 which had 3 HDMI ports. Later on I bought Google Chromecast in May 2015 soon after it was launched in India and my TV became Smart even before "Smart TV" became available.

I was streaming youtube, ZEE, Hotstart, voot, Sonyliv using Chrome Browser on Laptop or Mobile through Chromecast.

HDMI ports on Philips LCD TV were not very good and use to give flicker for a couple of minutes after switching on the TV. The flickering problem increased with time and ultimately the HDMI ports were unusable.

I got the Motherboard of the TV replaced through local Delhi Technician and HDMI Ports were working.

Later on the volume was going up and down without any command.

I bought Cloudwalker TV on amazon exchanging the Philips TV and it was delivered on 4th Nov 2020.


 This TV is AOSP based on Android 8.0 Oreo and has Aptoide App Store pre-installed.

I enjoyed Zee5, youtube, Sonyliv, Amazon Prime Video directly using the apps on TV.

Since I have Tikona Broadband which has max speed of 40 mbps (generally I get 20 mbps) the voot app on TV did not work properly.

I connected the good old Chromecast in the second HDMI port and used the voot on the mobile and it works perfectly as before.

The Hotstar app on the TV had no free option and I can still use the mobile or Laptop Browser version through the Chromecast as before.

Today I was talking to my friend who was looking for an app to show the Google Photos on the TV and I found an app called Fotoo which can connect to your Google Photos account.

Because it is not Google certified Android TV (it is AOSP) I don't have access to Google Play Store but Aptoide App Store has thousands of apps and there is no need for google play store.

I can login in youtube with Google Account and can use Google Photos and yes Aptoide has Google Drive app too. This is sufficient.

Monday, October 12, 2020

Built My Stock Tracker on Libreoffice Calc.

 The other day I built mutual fund tracker on LibreOffice Calc. Today I built my Stock Tracker using LibreOffice Calc.

Suppose the Stock is HDFC Life whose symbol is HDFCLIFE.NS on Yahoo Finance.

Open a new Spreadsheet. Click on Sheet/Link_to_External_Data and enter the URL as https://query1.finance.yahoo.com/v7/finance/download/HDFCLIFE.NS and press Enter.

After a few minutes (may be seconds) the Data will come click Ok and Ok to CSV.all

The Data will come in two rows for the day.

You can select the third row and link another URL say for SBI as https://query1.finance.yahoo.com/v7/finance/download/SBIN.NS and press Enter.

The Data can be updated every day by selecting Edit/Links_to_External_Files and clicking on Update Button.

Saturday, October 03, 2020

How to convert a password protected pdf to unprotected pdf.

 Suppose you send your password protected Bank Statement in pdf to some entity to show your financial capacity the other party can't read it without password.

You can convert the password protected pdf to unprotected pdf using pdftk.

pdftk /home/user/Documents/BankStatement.pdf input_pw password output /home/user/Documents/BankStatementcopy.pdf

Replace password with actual password.

The BankStatementcopy.pdf will be an unprotected pdf and could be opened by anyone and you can send it.

Filed ITR2 with Zero income tax on Capital Gain taking help of Claude AI.

  I file income tax return on my own (without any help from anyone) every year. But this year I decided to take the help of Claude AI primar...