Ubuntu touch as PC?
-
@Yumi
installed UT 2 days ago on 1+ Nord N10 (BE2026). [Note VoLTE worked, but NOT WiFi calling].
UT mentions 'Desktop Convergence', so I tried to see if my phone could reproduce my Linux Mint LibreOffice 'desktop experience'.
Easy to connect to WIRELESS external display (limited to 1080P), as long as that display runs Miracast (my LG TV's do).
Then I connected Acasis multiport USB-C hub, with PD charging, a wired keyboard, wired mouse, Gigabit ethernet adapter and USB-A Flash drive.
I installed LibreOffice via snap. (direct, no libertine required).
I opened a spreadsheet that had been created on main PC.
not as quick as main PC, but workable.
Image on TV was a bit 'wavy', moving top to bottom, as it refreshed, or something. (maybe 2.4Ghz WiFi interference also)
A phone model with WIRED external display capability probably fixes the 'wavy'.
I did NOT exhaustively test this (meaning the usability for lengthy spreadsheet changes).
It was just to see if it would work.
If you have a specific thing to try, let me know. I might be able to give a quick test. -
@oldbutndy and anyone:
- Email, such as Thunderbird, with GPG-encryption, anyone tried that?
- Firefox with addons? Anyone tried it?
- Brave browser?
- Linphone?
-
@mango
I did find & install snap for Thunderbird a couple days ago. Installs, but not open (actually, a 'fuzzy box with a text bar at top appears, but nothing in fuzzy box). Then tried series of questions on Google AI 'reasoning model' via browser. It had a series of troubleshooting commands to type in to terminal. I did not follow through yet due to sharing the same display between UT phone and main PC doing the AI thread. Summary was AI estimate of required spending approximately 10 hours on configuration, IF using UT on a phone that had WIRED external monitor, USB Keyboard, mouse, etc. AI thought MANY more hours required if using a wireless external display.
I gave up on Thunderbird at that point.Searched for snap for Linphone. found none.
Found snap for Signal. Installed. No account so it shows "failed to connect to server". So, it might work.
Firefox snap install process gave error: bad plugs or slots: kerberos-tickets (unknown interface "kerberos-tickets"). No icon installed on main screen.
Just installed Brave browser via snap. Installed with no errors, opens on wireless external display, and performs a web search, & display correctly. (5 second test. NOT comprehensive. but it opened & looked OK)
-
@oldbutndy said in Ubuntu touch as PC?:
I did find & install snap for Thunderbird a couple days ago. Installs, but not open (actually, a 'fuzzy box with a text bar at top appears, but nothing in fuzzy box). Then tried series of questions on Google AI 'reasoning model' via browser. It had a series of troubleshooting commands to type in to terminal. I did not follow through yet due to sharing the same display between UT phone and main PC doing the AI thread. Summary was AI estimate of required spending approximately 10 hours on configuration, IF using UT on a phone that had WIRED external monitor, USB Keyboard, mouse, etc. AI thought MANY more hours required if using a wireless external display.
I gave up on Thunderbird at that point.Please don't ask any AI how to get software to work on UT. Their training data does not contain the required info, and the correct steps cannot be extrapolated from whatever they were trained on, since sometimes the correct steps are either unknown, unfeasible for an end user, or simply don't exist yet.
Regarding the snaps from Mozilla (Firefox and Thunderbird, both) they are known not to work on UT as they are trying to use Wayland. They could be forced to use XWayland, but by then one might as well just install the click or the deb.
-
Out of curiosity, I tried to get Thunderbird to behave properly on a Fairphone 4. Maybe it would be an idea to make a one-click-install that does all this for a newbie. openSUSE software catalogue has a one-click yaml installer script which sets everything up. Just an idea to make it user friendlier to get common software working out of the box so to say for a newbie to make it easier to adopt Ubuntu Touch.
Step 1: Installing Thunderbird inside a Libertine container
For those of you newbies wondering how to get Thunderbird Mail client working in desktop mode on Ubuntu Touch, this is one way that seems to work well. Thunderbird has so far not crashed a single time. However the Ubuntu Terminal app and
nanocrashed several times during this test. This markup was written innanoand copied to this forum spot to test the interoperability between different windows in desktop mode. Copy-paste functionality between windows seems to be a bit glitchy at the time of writing.I messed around with settings until I got something that would work in desktop mode for Fairphone 4 running channel
24.04/daily.Installing Thunderbird as DEB
Install Libertine Tweak Tool from Openstore.
Activate
lirshcommand with Libertine Tweak Tool.Open a terminal window and type:
lirsh fakerootWe need command
add-apt-repositorycommand from packagesoftware-properties-common.apt-get update apt-get upgrade apt-get install software-properties-commonOn my Fairphone 4 I was also obliged to install package
apt-utilsthat for some reason did not install correctly by itself.apt-get install apt-utilsAt this point it was possible to issue terminal command:
add-apt-repository ppa:mozillateam/ppa cat <<EOF | tee /etc/apt/preferences.d/thunderbird-ppa Package: thunderbird Pin: release o=LP-PPA-mozillateam Pin-Priority: 1001 Package: thunderbird Pin: release o=Ubuntu Pin-Priority: -1 EOF apt-get update apt-cache policy thunderbird # apt install thunderbird DEBIAN_FRONTEND="noninteractive" apt install thunderbird exit # jump out of fakeroot thunderbird --versionNow you can test if terminal command
thunderbirdlaunches something.On my Fairphone 4, I saw a shaddow window but nothing more. I remembered reading that you have to force Xwayland in some way.
# lirsh GDK_BACKEND=x11 thunderbirdOn my Fairphone 4, the zoom factor is quite big. Let's try to lower the zoom.
One way to lower the zoom is to edit Libertine container
noblefile~/.Xdefaultsand adjustXft.dpi: 120from default valueXft.dpi: 197.Exiting
lirshand re-enteringlirshshould activate the new DPI setting.Then re-launch
thunderbirdfrom command line and see if the zoom factor is better.# lirsh GDK_BACKEND=x11 thunderbirdNow the window looks a bit better with not such a large zoom factor in desktop mode.
The other way is to use a scaling factor directly before launching
thunderbird.Try this and see if the zoom factor is lower with standard setting
Xft.dpi: 197.# lirsh GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 thunderbirdOnce the scaling is okay for your eyes you can create a
thunderbird-launcher.# lirsh mkdir -p ~/.local/bin echo "GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 thunderbird" > ~/.local/bin/thunderbird-launcher chmod +x ~/.local/bin/thunderbird-launcherOn my Fairphone 4, Libertine container
noblefolder~/.local/bin
was not in my Libertine container variable$PATH:# lirsh echo $PATHEditing Libertine container
noblefile.bashrcshould do the trick.Added the following lines at the end of
.bashrc:if [ -d ~/.local/bin ]; then export PATH="$HOME/.local/bin:$PATH" fi if [ -d ~/bin ]; then export PATH="$HOME/bin:$PATH" fiExiting
lirshand re-enteringlirshshould activate the new setting.exit # jump out of lirsh lirsh echo $PATH thunderbird-launcherThis command should open
thunderbirdinsidelirshwith desired zoom.Step 2: Making a Thunderbird Mail main menu item shortcut
Poking around with the settings, you may discover that there are actually two ways to launch Thunderbird Mail once it is installed.
- Launching Thunderbird Mail from outside the Libertine container. This would require a separate launcher put in
~/.local/share/applications/thunderbird.desktop. User settings will be stored outside the Libertine container. - Launching from inside the Libertine container. This would require to edit the Libertine container's
thunderbird.desktopfile, which will sooner or later appear in Ubuntu Touch main menu. User settings will be stored inside the Libertine container.
For the purpose of illustration, I will do both approaches.
2a: Making a
thunderbird.desktopoutside Libertine containerIt is not entierly clear to me what you have to do in order to trigger a main menu update after you have installed something in a Libertine container. Debian has a command
update-menuswhich Ubuntu Touch does not have. Ususally, a reboot is the easiest way to update Ubuntu Touch main menu items. However, there should in theory be another way to refresh the main menu that is at this time unknown to me.Now that this is working, let's try to create an Ubuntu Touch shortcut in the main menu. This can be done manually of course. In this example, I will piggy-back on what is already available.
Open another terminal tab (without
lirshenvironment).mkdir -p ~/.local/share/applications mkdir -p ~/.local/share/icons/hicolor/scalable/apps wget -O ~/.local/share/icons/hicolor/scalable/apps/thunderbird.svg https://upload.wikimedia.org/wikipedia/commons/2/2f/Thunderbird_2023_icon.svg wget -O ~/.local/share/icons/hicolor/index.theme https://raw.githubusercontent.com/spk121/hicolor-icon-theme/refs/heads/master/index.theme sed -i "s|^Comment=.*$|Comment=Ubuntu Touch Icon Theme|g" ~/.local/share/icons/hicolor/index.theme echo "Update icon caches (maybe obsolete)" touch ~/.local/share/icons/hicolor update-icon-caches ~/.local/share/icons/hicolor # or touch ~/.local/share/icons/hicolor gtk-update-icon-cache ~/.local/share/icons/hicolor echo echo "We can re-use the thunderbird.desktop file that is in the Libertine container" cp -v /userdata/user-data/phablet/.cache/libertine-container/noble/rootfs/usr/share/applications/thunderbird.desktop ~/.local/share/applications/thunderbird.desktop echo echo "Using scaling factor GDK_DPI_SCALE=1.2" echo "to achieve similar scaling as with" echo "Libertine container 'noble' GDK_DPI_SCALE=0.6" sed -i "s|^Exec=.*$|Exec=bash -c \'GDK_DPI_SCALE=1.2 GDK_BACKEND=x11 /userdata/user-data/phablet/.cache/libertine-container/noble/rootfs/usr/bin/thunderbird\' %u|g" ~/.local/share/applications/thunderbird.desktop echo echo "Ubuntu Touch does not seem to find the thunderbird icon" echo "by itself." echo " Icon=thunderbird" echo "Icon has to be specified exactly with path to show in main menu." echo " Icon=/path/to/scalable/svg" sed -i "s|^Icon=.*$|Icon=/home/phablet/.local/share/icons/hicolor/scalable/apps/thunderbird.svg|g" ~/.local/share/applications/thunderbird.desktop echo echo "Trigger main menu update" mv ~/.local/share/applications/thunderbird.desktop ~/.local/share/applications/tmp.desktop mv ~/.local/share/applications/tmp.desktop ~/.local/share/applications/thunderbird.desktop echo echo "You should now see Thunderbird Mail" echo "in Ubuntu Touch main menu." echo echo "Done."Now there should be a visible "Thunderbird Mail" launcher in Ubuntu Touch main menu.
Try hitting the "Super-key" (sometimes this key has four windows left of the space bar, sometimes it can have an apple design or command key) on your external wired PS-2 keyboard (or wireless keyboard)
and type thund which should be enough to make Thunderbird Mail laucher visible.2b: Adjusting
thunderbird.desktopinside Libertine containerAdjusting Libertine container
thunderbird.desktoplocated at
~/.cache/libertine-container/noble/rootfs/usr/share/applications/thunderbird.desktop
could be done manually with terminal command:
nano ~/.cache/libertine-container/noble/rootfs/usr/share/applications/thunderbird.desktopYou may also install
mousepadin the Libertine container to get a graphical editor. However, copy-paste does not seem to work between windows.There are three lines starting with
Exec=which needs to be adjusted to something like:# Exec=thunderbird %u (original) Exec=bash -c "GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 thunderbird %u" # Exec=thunderbird -compose (original) Exec=bash -c 'GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 thunderbird -compose' # Exec=thunderbird -addressbook (original) Exec=bash -c 'GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 thunderbird -addressbook'This could be accomplished with using terminal command
sed:sed -i "s|^Exec=thunderbird %u$|Exec=bash -c \"GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 thunderbird %u\"|g" /home/phablet/.cache/libertine-container/noble/rootfs/usr/share/applications/thunderbird.desktop sed -i "s|^Exec=thunderbird -compose$|Exec=bash -c 'GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 thunderbird -compose'|g" /home/phablet/.cache/libertine-container/noble/rootfs/usr/share/applications/thunderbird.desktop sed -i "s|^Exec=thunderbird -addressbook$|Exec=bash -c 'GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 thunderbird -addressbook'|g" /home/phablet/.cache/libertine-container/noble/rootfs/usr/share/applications/thunderbird.desktopChange the scaling factor
GDK_DPI_SCALEto suit your eyes. Note that on my Fairphone 4 on channel24.04/dailyit seems to require a scaling factor less than 1.0 inside the Libertine container to scale things down. From outside the container, a scaling factor
larger than 1.0 had to be used to scale things up.I am not sure about how to write the first launcher which has
%uat the end. The %u in a .desktop file is a placeholder that allows the launcher to accept a single URL as an argument. A mailto link example is: <a href="mailto:someone@example.com">Send Email</a>. Ideally, such a link should be able to configure to open in Thunderbird Mail. Unfortunately I have not been able to discover how to configure it in Ubuntu Touch. There should be amailtochild in:gsettings list-children org.gnome.desktop.default-applicationsbut it does not exist. If it would exist, maybe a command like:
gsettings set org.gnome.desktop.default-applications.mailto exec 'GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 thunderbird -compose'would make it possible to open e-mail links in Thunderbird Mail.
Concluding thoughts
If all went well, you should now be able to set up any mail account and optionally create an OpenPGP encryption key to be used when sending encrypted email to somebody else whatever email provider they use, given that the recipient has a mail reader that can use your public OpenPGP key to decrypt the email message you sent them. If they also use Thunderbird Mail client, OpenPGP encryption will work in the same way on their system. Several other mail clients, such as Evolution Mail client support OpenPGP encryption in a similar way but it might require more to configure it than in Thunderbird, which is more user friendly in this particular aspect. Of course, the email meta data will most probably not be encrypted. If you wish to avoid email metadata you might want to use tuta-mail or proton-mail or any other mail that never leaves the email provider. If somebody knows how to get a mail reader for tuta-mail or proton-mail to Ubuntu Touch, I am sure some users would appreciate that.
Having Morph browser open with several tabs and Thunderbird Mail open at the same time uses 3.1-5.9Gi RAM memory, reports terminal command
free -h. - Launching Thunderbird Mail from outside the Libertine container. This would require a separate launcher put in
-
@mango
Wow !
Thank you for that effort !
I like your one-click-install idea ...
Now, to access Proton mail via Thunderbird, just need to install Proton Mail Bridge on host Linux PC, and configure phone to access that ?
or
compile Proton Mail Bridge for ARM ? -
Out of curiosity, since I managed to get Thunderbird to behave properly on a Fairphone 4... maybe it would be an idea to make a similar guide for Firefox web browser.
Step 1: Installing Firefox inside a Libertine container
For those of you newbies wondering how to get Firefox web browser working in desktop mode on Ubuntu Touch, this is one way that seems to work well. Firefox has so far crashed one time only.
This markup was written in
nanoandmousepad. Copy-paste functionality between windows seems to be non-existent between Firefox and other windows at the time of writing. The only way to copy this markup was tocat markdown-text.mdin a terminal and manually copy the lines from terminal with right-click copy, and paste it in this forum.I messed around with settings until I got something that would work in desktop mode for Fairphone 4 running channel
24.04/daily.Installing Firefox as DEB
Install Libertine Tweak Tool from Openstore.
Activate
lirshcommand with Libertine Tweak Tool.Open a terminal window and type:
lirsh fakerootAt this point it is possible to issue terminal commands:
install -d -m 0755 /etc/apt/keyrings wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null echo ' Package: * Pin: origin packages.mozilla.org Pin-Priority: 1000 ' | tee /etc/apt/preferences.d/mozilla apt-get update # If you want to update the whole Libertine container apt-get upgrade --fix-missing apt-cache policy firefox apt-get install firefox exit # jump out of fakeroot firefox --version # To install a different language pack, execute: # lirsh apt-cache search firefox-l10n # to get the list of all available language packages. # # Install the language pack of your choice like: fakeroot apt-get install firefox-l10n-es-es # Spanish # or apt-get install firefox-l10n-de # German # or apt-get install firefox-l10n-fr # French exit # jump out of fakerootYou may now see Firefox in Ubuntu Touch main menu, or not. One way to trigger a main menu update is to create an update or a
.desktopfile in one of the catalogues that Ubuntu Touch is monitoring. Try these lines one at a time, to see if the launcher appears, in a fresh terminal tab:if [ -d /home/phablet/.local/share/icons/hicolor ]; then touch /home/phablet/.local/share/icons/hicolor else mkdir -p /home/phablet/.local/share/icons/hicolor/scalable/apps wget -O /home/phablet/.local/share/icons/hicolor/index.theme https://github.com/matthewbauer/appstream-generator/raw/refs/heads/master/data/hicolor-theme-index.theme fiA minimal
index.themecan also be made like this:cat <<EOF > /home/phablet/.local/share/icons/hicolor/index.theme [Icon Theme] Name=Hicolor Comment=Ubuntu Touch fallback icon theme Hidden=true Directories=scalable/apps [scalable/apps] MinSize=1 Size=128 MaxSize=256 Context=Applications Type=Scalable EOFIf Firefox still does not show up in Ubuntu Touch main menu, you can try to make a change in folder
/home/phablet/.local/share/applications:cp -v /home/phablet/.cache/libertine-container/noble/rootfs/usr/share/applications/firefox.desktop /home/phablet/.local/share/applications/. sleep 3 rm -v /home/phablet/.local/share/applications/firefox.desktopTry hitting the "Super-key" (sometimes this key has four windows left of the space bar) and type firef which should be enough to make Firefox launcher visible.
Now you can test if terminal command launches something.
# lirsh GDK_BACKEND=x11 firefoxOn my Fairphone 4, the zoom factor is quite big. Let's try to lower the zoom.
One way to lower the zoom is to edit Libertine container
noblefile~/.Xdefaultsand adjustXft.dpi: 120from default valueXft.dpi: 197.Exiting
lirshand re-enteringlirshshould activate the new DPI setting.Then re-launch
firefoxfrom command line and see if the zoom factor is better.# lirsh GDK_BACKEND=x11 firefoxNow the window looks a bit better with not such a large zoom factor in desktop mode.
The other way is to use a scaling factor directly before launching
firefox.Try this and see if the zoom factor is lower with standard setting
Xft.dpi: 197.# lirsh GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 firefoxOnce the scaling is okay for your eyes you can create a
firefox-launcher.# lirsh mkdir -p ~/.local/bin echo "GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 firefox" > ~/.local/bin/firefox-launcher chmod +x ~/.local/bin/firefox-launcherOn my Fairphone 4, Libertine container
noblefolder~/.local/bin
was not in my Libertine container variable$PATH:# lirsh echo $PATHEditing Libertine container
noblefile~/.bashrcshould do the trick. The full path is:/home/phablet/.cache/libertine-container/noble/rootfs/home/phablet/.bashrcYou can edit this file both from outside the Libertine container
nobleas well as from inside the Libertine container.Added the following lines at the end of the Libertine container
~/.bashrc:if [ -d ~/.local/bin ]; then export PATH="$HOME/.local/bin:$PATH" fi if [ -d ~/bin ]; then export PATH="$HOME/bin:$PATH" fiExiting
lirshand re-enteringlirshshould activate the new setting.exit # jump out of lirsh lirsh echo $PATH firefox-launcherThis command should open
firefoxinsidelirshwith desired zoom.Step 2: Making a Firefox main menu item shortcut
Poking around with the settings, you may discover that there are actually two ways to launch Firefox once it is installed.
- Launching Firefox from outside the Libertine container. This would require a separate launcher put in
~/.local/share/applications/firefox.desktop. User settings will be stored outside the Libertine container. - Launching from inside the Libertine container. This would require to edit the Libertine container's
firefox.desktopfile, which will sooner or later appear in Ubuntu Touch main menu. User settings will be stored inside the Libertine container.
For the purpose of illustration, I will do both approaches.
2a: Making a
firefox.desktopoutside Libertine containerIt is not entierly clear to me what you have to do in order to trigger a main menu update after you have installed something in a Libertine container. Debian has a command
update-menuswhich Ubuntu Touch does not have. Ususally, a reboot is the easiest way to update Ubuntu Touch main menu items. However, there should in theory be another way to refresh the main menu that is at this time unknown to me.Now that this is working, let's try to create an Ubuntu Touch shortcut in the main menu. This can be done manually of course. In this example, I will piggy-back on what is already available.
Open another terminal tab (without
lirshenvironment).mkdir -p ~/.local/share/applications mkdir -p ~/.local/share/icons/hicolor/scalable/apps wget -O ~/.local/share/icons/hicolor/scalable/apps/firefox.svg https://upload.wikimedia.org/wikipedia/commons/a/a0/Firefox_logo%2C_2019.svg wget -O ~/.local/share/icons/hicolor/index.theme https://raw.githubusercontent.com/spk121/hicolor-icon-theme/refs/heads/master/index.theme sed -i "s|^Comment=.*$|Comment=Ubuntu Touch Icon Theme|g" ~/.local/share/icons/hicolor/index.theme echo "Update icon caches (maybe obsolete)" touch ~/.local/share/icons/hicolor update-icon-caches ~/.local/share/icons/hicolor # or touch ~/.local/share/icons/hicolor gtk-update-icon-cache ~/.local/share/icons/hicolor echo echo "We can re-use the firefox.desktop file that is in the Libertine container" cp -v /userdata/user-data/phablet/.cache/libertine-container/noble/rootfs/usr/share/applications/firefox.desktop ~/.local/share/applications/firefox.desktop echo echo "Using scaling factor GDK_DPI_SCALE=1.2" echo "to achieve similar scaling as with" echo "Libertine container 'noble' GDK_DPI_SCALE=0.6" sed -i "s|^Exec=.*$|Exec=bash -c \'GDK_DPI_SCALE=1.2 GDK_BACKEND=x11 /userdata/user-data/phablet/.cache/libertine-container/noble/rootfs/usr/bin/firefox\' %u|g" ~/.local/share/applications/firefox.desktop echo echo "Ubuntu Touch does not seem to find the firefox icon" echo "by itself." echo " Icon=firefox" echo "Icon has to be specified exactly with path to show in main menu." echo " Icon=/path/to/scalable/svg" sed -i "s|^Icon=.*$|Icon=/home/phablet/.local/share/icons/hicolor/scalable/apps/firefox.svg|g" ~/.local/share/applications/firefox.desktop echo echo "Trigger main menu update" mv ~/.local/share/applications/firefox.desktop ~/.local/share/applications/tmp.desktop mv ~/.local/share/applications/tmp.desktop ~/.local/share/applications/firefox.desktop echo echo "You should now see Firefox" echo "in Ubuntu Touch main menu." echo echo "Done."Now there should be a visible "Firefox" launcher in Ubuntu Touch main menu.
Try hitting the "Super-key" (sometimes this key has four windows left of the space bar, sometimes it can have an apple design or command key) on your external wired PS-2 keyboard (or wireless keyboard) and type firef which should be enough to make Firefox launcher visible.
2b: Adjusting
firefox.desktopinside Libertine containerAdjusting Libertine container
firefox.desktoplocated at
/home/phablet/.cache/libertine-container/noble/rootfs/usr/share/applications/firefox.desktop
could be done manually with terminal command:
nano ~/.cache/libertine-container/noble/rootfs/usr/share/applications/firefox.desktopYou may also install
mousepadin the Libertine container to get a graphical editor. However, copy-paste does not seem to work between windows.There are four lines starting with
Exec=:Exec=firefox %u Exec=firefox --new-window %u Exec=firefox --private-window %u Exec=firefox --ProfileManagerThese four lines starting with
Exec=need to be adjusted to something like:Exec=bash -c "GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 firefox %u" Exec=bash -c "GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 firefox --new-window %u" Exec=bash -c "GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 firefox --private-window %u" Exec=bash -c 'GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 firefox --ProfileManager'This could be accomplished with using terminal command
sed:sed -i "s|^Exec=firefox %u$|Exec=bash -c \"GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 firefox %u\"|g" /home/phablet/.cache/libertine-container/noble/rootfs/usr/share/applications/firefox.desktop sed -i "s|^Exec=firefox --new-window %u$|Exec=bash -c \"GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 firefox --new-window %u\"|g" /home/phablet/.cache/libertine-container/noble/rootfs/usr/share/applications/firefox.desktop sed -i "s|^Exec=firefox --private-window %u$|Exec=bash -c \"GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 firefox --private-window %u\"|g" /home/phablet/.cache/libertine-container/noble/rootfs/usr/share/applications/firefox.desktop sed -i "s|^Exec=firefox --ProfileManager$|Exec=bash -c 'GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 firefox --ProfileManager'|g" /home/phablet/.cache/libertine-container/noble/rootfs/usr/share/applications/firefox.desktopChange the scaling factor
GDK_DPI_SCALEto suit your eyes. Note that on my Fairphone 4 on channel24.04/dailyit seems to require a scaling factor less than 1.0 inside the Libertine container to scale things down. From outside the container, a scaling factor larger than 1.0 had to be used to scale things up.Testing
If all went well, you should now be able to set up Firefox with any extensions you prefer.
Sample of extensions that seem to do what they are supposed to do to a great extent:
- uBlock Origin
- NoScript
- Privacy Badger
- Cookie Autodelete
- I still don't care about cookies
- Video DownloadHelper (not possible to select other video format than default). Remark: When opening a downloaded media clip with Thunar file manager, Lomiri crashed and closed all open apps.
Observations
- The mouse pointer becomes huge when hovering Firefox. There should be a way to make the mouse pointer smaller.
- Copy-paste does not work well. Not possible to copy and paste from Firefox to
mousepadnor intonano. Clipboard looks full at the beginning and clicking on paste greys out clipboard while nothing is pasted. https://duck.aiworks (does not seem to work properly in Morph browser). However, you cannot copy-paste the answers.
Having Firefox browser open with several tabs at the same time uses 3.7Gi RAM memory, reports terminal command
free -h. - Launching Firefox from outside the Libertine container. This would require a separate launcher put in
-
Out of curiosity, I tried to get Brave web browser to function properly in desktop mode on my Fairphone 4 channel
24.04/daily.Brave browser (stable version) exists as snap as well as DEB and can be installed both ways. For comparison I installed both types to compare which one worked better on my Fairphone 4.
From my testing I concluded that there is no difference in functionality. Both versions do not show the hamburger menu when clicked at the top right corner. The easiest installation was via snap, which took quite some time to complete. The DEB install was quicker and required tinkering with scaling.
Brave installation via snap
Open a terminal and type:
sudo snap install braveUpdate all snaps with:
sudo snap refreshWhen installation has finished, open Brave browser through Ubuntu Touch main menu or command line:
braveTo access the settings when hamburger menu is not working, type this in the address field:
brave://settingsSearch for the setting
exitand modify a keyboard shortcut (example: Ctrl + Q) to be able to quit the application the same way as you would be able to do using the hamburger menu if it was functional.Brave browser installation in Libertine
Install Libertine Tweak Tool from Openstore.
Activate
lirshcommand with Libertine Tweak Tool.On my Fairphone 4, the default container (look at the top of the tweak tool) is set to container name
focal. I had to manually changefocaltonoble. Maybe the Libertine Tweak Tool could do this automatically as an improvement.Open a terminal window and type:
lirsh fakeroot curl -fsS https://dl.brave.com/install.sh | sh exit # jump out of fakerootThe
brave-browser.desktopdid not automatically show up in Ubuntu Touch main menu. After touching folder~/.local/share/icons/hicoloroutside of the Libertine container, it appeared in the Ubuntu Touch main menu.Brave browser in Libertine only seem to honor the
Xft.dpisetting in Libertine container~/.Xdefaults. A one-line-command which sets the scaling would look like (here I use the value 120, you may want another value):# lirsh xrdb -merge <<< "Xft.dpi: 120"; GDK_BACKEND=x11 brave-browserTesting
- Chrome web store extension Dark Reader works as intended.
- Cookie popup windows do not show.
- Unwanted ads are blocked.
duck.aiworking.- Copy-paste (actually: Ctrl+C, Ctrl+V) seem to work from Brave browser to
emacs(Libertine),firefox(Libertine), but not tomousepad(Libertine), not toMorph browser (qt6). Right-click copy option does not seem to exist.
Observations
- Copy-paste between different windows is glitchy. Some apps work to paste into, some don't. It seems the clipboard functionality needs an improvement to be solid.
- Hamburger menu in top right corner does not open.
- The
Quitbrowser function has to be accessed via a custom new keyboard shortcut (I created shortcut: Ctrl + Q). This can be tied to a privacy cleanup to delete browser data brave://settings on Brave exit. Killing the app with clicking the windows handlerxmaybe does not trigger the cleanup functionality by Quit at all times. - Having all sorts of windows open with several tabs at the same time uses 3.9Gi RAM memory, reports terminal command
free -h.
-
Out of curiosity, I tried to get Linphone-Desktop to function properly in desktop mode on my Fairphone 4 channel
24.04/daily.Linphone-Desktop exists in many versions:
- AppImage(s) 4.x.y to 6.x.y, alphas, betas, nightly
- qt5 version(s) 5.x.y
- DEB version(s) 5.x.y
- qt6 version(s) 6.x.y
- DEB version(s) 6.x.y
The ugliest install is probably the qt6 version straight from the
mainbranch available on gitlab or github. I went for the main branch version in the trial to see if it would work.Compiling Linphone-Desktop is probably worth an essay by itself, but it is pretty straight forward to set CMAKE options where neccessary. Packaging Linphone-Desktop into an installable DEB is probably worth another essay. It is also possible to unpack the AppImage version into a Libertine container somewhere like
/opt/linphoneand adjustLD_LIBRARY_PATHvariable to give the executable a chance to find all libraries inside/opt.When launching from command line, there was a complaint about a missing qt6 module named
Suru, but I kept re-launching the same command 3-5 times until Linphone-Desktop launched anyway without Suru module. The successfull Libertine containernoblelaunch command was entered five times like this:QT_USE_PHYSICAL_DPI=1 QT_SCALE_FACTOR=0.8 GDK_BACKEND=x11 LD_LIBRARY_PATH="/opt/Qt6.10.2/lib:/opt/linphone/lib:$LD_LIBRARY_PATH" /opt/linphone/bin/linphone -VRemark: Sometimes Linphone-Desktop launches at first or third attempt. Linphone-Desktop should compile with any qt bigger or equal to version 6.10.0 (I used qt6.10.2). The initial launch showed such a tiny text in desktop mode that it was not readable at all. Some tinkering with variables in command line launch made the text bigger and the app more useful.
Testing
- Linphone-Desktop offers encryption of different types, such as
PostQuantum ZRTP, which worked. - Several different sound card options appeared in the settings, of which the
Droidsoundcard worked. - Tested encrypted chat message delivery which worked.
- Tested encrypted voice call (SIPS-protocol) with opus codec which worked.
- Video camera did not work. Only static picture could be selected in the settings, which worked and was shown.
Observations
- Earlier versions of Ubuntu Touch has a native Linphone, which I think would be nice to have in
nobleas well. It may not offer the advanced encryption available in version 6, but still good enough performance compatible with other SIP-softphones. - Ubuntu Touch noble (24.04) does not have a native Linphone or any other SIP-softphone as far as I am aware.
- On devices that do not meet operator's VoLTE requirements, SIP-softphones is an alternative for calls. Signal-Desktop is another voice calling option.
- I was not expecting Linphone-Desktop version 6 to work on Ubuntu Touch noble as well as it performed. Sound quality was good and chats were delivered as expected. Some icons were a bit too large, but visible.
- Wired external display functionality (USB3 display out) seems to be a more than neccessary feature of a device that for the moment requires desktop mode to show windows which are too large for a mobile screen dimension.
- It should in theory be possible to port the Android version of Linphone to Ubuntu Touch, given that Linphone-Desktop works out of the box more or less. Maybe the developers of Linphone would be interested in helping out with that.
- Since apps scale differently in Ubuntu Touch and Libertine, it is probably necessary to start off by selecting a
Xft.dpisetting that suits most apps that do not honour any other gtk scaling variables. Linphone-Desktop and Brave are two such apps that are difficult to scale properly and should indicate proper value ofXft.dpi. I have come to an understanding that for Fairphone 4,Xft.dpi: 120could be a good starting point for experimentation. The defaultXft.dpi: 197is probably too high scaling for Fairphone 4 in most of the test cases available on this page. If this has to do with the resolution and size of the screen itself, I do not know at this stage. - Having all kinds of windows open together with Linphone-Desktop uses 4.2 GiB RAM memory reports
free -h.
-
Emacs
Emacs: an editor for text and code with infinite adaptation possibilities
I have been using Emacs extensively on Ubuntu Touch as the text editor and code editor.
I only got Emacs to work inside a Libertine container, since Emacs cannot find its libraries otherwise.
Emacs can be adapted in the same way as Firefox inside Libertine container to scale well.
The only issues I have seen with Emacs so far is that the menus do not show one out of three times.
Keyboard shortcuts, Ctrl, Meta (usually the Alt key left from space bar) and Lisp functions cover all the needs of reformating text. MELPA is a repository with lots of add-ons to deal with things like beautifying html and css code, viewing EPUBs and playing games. When using linux, Emacs is probably one of the tools which is good to know about and use. Of course there are other tools which are equally good. I invite readers to share their view on which tools that are best to use as editors in Ubuntu Touch.
Install emacs in Libertine
lirsh fakeroot apt-get update apt-get install emacsAdjust the
emacs.desktopline that starts withExec=to suit your eyes. I currently use these lines with defaultXft.dpi: 197setting:# TryExec=/usr/bin/emacs TryExec=bash -c 'GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 /usr/bin/emacs' # Exec=/usr/bin/emacs %F Exec=bash -c "GDK_DPI_SCALE=0.6 GDK_BACKEND=x11 /usr/bin/emacs %F"
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register Login