Control + mouse scroll will adjust the font size, but not the overall scale of the display. This is especially annoying when at the default zoom level some of the text falls outside the the e-reader window:
Cumbersome, but at least the text will become readable: CSS to the rescue.
Right click in the reader window
Add a new scaled body style in the text box
Close the ‘Preferences’ menu
The CSS properties added are:
transform-origin: top left;
Why this is not available via the GUI… ?
P.S. The new style is stored in .config/calibre/viewer-webengine.json
Although epub format e-books are simple ZIP archives, care has to be taken in how unzip and zip are used to manipulate them.
mkdir wrk && cd wrk
unzip -O UTF-8 old.epub
zip -rX ../new.epub mimetype META-INF/ OEBPS/
Without using the -O option when unpacking UTF-8 file names are likely to get corrupted. For the repack, use of -X is required and the directory order in the archive has to be as given above, otherwise the epub file will not be recognised by most e-readers.
As an aside, modifications can be easily tested using a web browser. Each page in the e-book is represented as an xhtml document, which can be opened by pointing the browser to file:///home/user/wrk/OEBPS/one_of_the_files.xhtml (for example).
Unpack the downloaded file using an archive manager or type tar -xzvf filename from a terminal window (replacing filename with the file’s name).
In a terminal window, navigate to the newly created directory beginning ‘anyconnect’, then to the VPN directory.
Start the installation by typing sudo ./vpn_install.sh
To start the client either: • Select Cisco AnyConnect Secure Mobility Client from the Applications menu. • Type vpnui at the command line in the installation directory (for Ubuntu this is /opt/cisco/bin).
Provide vpn.ox.ac.uk then Connect.
Provide your Oxford username in the format firstname.lastname@example.org and your Single Sign-On (SSO) password.
Select the VPN icon in the system tray.
The Cisco AnyConnect VPN client requires an SSL tunnel (TCP port 443) and optionally a DTLS tunnel (UDP port 443).
VPN clients contact the VPN servers in the netblock 220.127.116.11/27.
VPN clients will be given an IP address from the private IP ranges of 10.1.32.0/20 or 10.10.64.0/18. These private addresses will be mapped to a public IP in the 18.104.22.168/22 netblock by the use of dynamic PAT.
Ubuntu is providing more and more software, including chrome, as snap packages. As a result I may actually end up moving away from ubuntu / xubuntu after many years as a happy user, but that is an other story. For the time being, here is an alternative way to install the non-snap deb package:
How to Install Latest Firefox as classic Deb in Ubuntu 22.04 | UbuntuHandbook
How to Install Firefox as a .Deb on Ubuntu 22.04 (Not a Snap) - OMG! Ubuntu!
A typical use case is when an editor is setting its window title to the full long path name such that the actual important part, the file name, falls off the edge on the right and becomes invisible. Unfortunately the X11 window title is normally set internally by the application and its format is hard coded. A solution is to monitor the editor window title and modify it if its becomes too long.
I want to use my new USB drive exclusively with Linux, so I decided to wipe the factory default partitions and create a new ext4 filesystem on the drive. The drive uses 4096 byte physical sectors and we have to make sure that the new partition is correctly aligned. For some background information on partition alignment, see this link.
Check that we are wiping the correct drive
sudo parted /dev/sdb unit s print free
Note the details in case you want to restore the original partitioning scheme. Information on the factory default can also be found here.
For the XFCE desktop environment Atril is the default PDF viewer and I also use it to open any PDF files from Firefox. It is a great lightweight document viewer which does what I need most of the time. One exception is when after opening a PDF file from Firefox I decide to keep the file and select File Save As. Atril insists on saving the file in $HOME/Documents, which is practically never the directory I want to use…