Clear your DNS cache
Are you experiencing a website with a dynamic IP address not loading? First thing to try is clearing your DNS cache:
resolvectl flush-caches
OUCS VPN
Install:
- The AnyConnect VPN Client for Linux is available from the OUCS Software downloads page for Linux; see release notes for details.
- 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
Connect:
- 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 abcd1234@ox.ac.uk and your Single Sign-On (SSO) password.
Disconnect:
- Select the VPN icon in the system tray.
- Select Disconnect.
Advanced settings:
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 192.76.7.64/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 129.67.116.0/22 netblock by the use of dynamic PAT.
Further details are available on the OUCS VPN page.
Turn your tablet into and additional linux screen with touch and stylus input
Normally one would buy a Wacom tablet / stylus combo. But then, Weylus provides a very good free alternative:
Continue reading Turn your tablet into and additional linux screen with touch and stylus inputNo sftp connection to Ubuntu 22.04
After upgrading to Jammy Jellyfish I could no longer connect from my phone using AndFTP (sftp).
Continue reading No sftp connection to Ubuntu 22.04Install non-snap version of Google chrome
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:
Continue reading Install non-snap version of Google chromeDisable snap and switch from snap to deb packages for Firefox in Ubuntu 22.04
Disable snapd
Remove Firefox (and other) snap packages:
snap list
snap remove firefox
Stop snapd service:
systemctl stop snapd.service
systemctl stop snapd.socket
systemctl stop snapd.seeded.service
systemctl disable snapd.service
systemctl disable snapd.socket
systemctl disable snapd.seeded.service
Remove snap related packages and directories:
apt autoremove --purge snapd chromium-browser* chromium-browser-l10n* gnome-software-plugin-snap* liblzo2-2* snapd* squashfs-tools*
rm -rf /var/cache/snapd
rm -rf /root/snap/
rm -rf /snap /var/snap /var/lib/snap
Install non-snap version of Firefox
Disable snap version
nano /etc/apt/preferences.d/mozilla-firefox
Package: firefox*
Pin: release o=Ubuntu*
Pin-Priority: -1
add-apt-repository ppa:mozillateam/ppa
apt update
apt install firefox
How to Install Latest Firefox as classic Deb in Ubuntu 22.04 | UbuntuHandbook
https://ubuntuhandbook.org/index.php/2022/04/install-firefox-deb-ubuntu-22-04/
How to Install Firefox as a .Deb on Ubuntu 22.04 (Not a Snap) - OMG! Ubuntu!
https://www.omgubuntu.co.uk/2022/04/how-to-install-firefox-deb-apt-ubuntu-22-04
Extract open tab links from Android Chrome
There are a few possibilities using various browser extensions or Chrome remote debugging in Developer Tools. See information at the bottom for these.
The quickest and easiest solution, however, is based on using adb:
Continue reading Extract open tab links from Android ChromeChange X11 window title
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.
Continue reading Change X11 window titleVirtualBox: install extension packs
Download and install extension packs to provide:
- The virtual USB 2.0 (EHCI) devices
- The virtual USB 3.0 (xHCI) device
- VirtualBox Remote Desktop Protocol (VRDP) support
- Host webcam passthrough
- Intel PXE boot ROM
- Disk image encryption with AES algorithm
- Cloud integration features
Repartition a new USB drive
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.
Continue reading Repartition a new USB driveConvert two scanned A4 PDF files of an A5 booklet into a single PDF
When scanning an A5 booklet as individual A4 pages, but would still like to have them combined into an A5 PDF, the individual pages all end up in the ‘wrong’ place.
Continue reading Convert two scanned A4 PDF files of an A5 booklet into a single PDFAtril (evince, document viewer) default directory for Save As
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…
Continue reading Atril (evince, document viewer) default directory for Save AsEnable God mode control panel access in Windows 10
Create a new folder on the Desktop with name
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
Arduino IDE Linux installation
Download latest IDE tarball from the Arduino store, unpack the tar file and install bin symlink, desktop files and add menu entries.
Continue reading Arduino IDE Linux installationDisable annoying XFCE automatic maximise window feature
In XFCE when you move a window around and it gets close to the top edge of the screen it suddenly jumps to maximised size – this is never what I want and so I find this feature really annoying.
The setting where this feature can be turned off is hidden in a somewhat counter intuitive location:



Yes, the setting is called ‘Accessibility – Automatically tile …’!
Fix for packet loss and latency problems with Virgin Media cable connections
About ten days ago my network connection with Virgin Media started to play up. I was experiencing significant packet loss, at times in excess of 50%, and increased latency times with peaks at more than 100ms.
Continue reading Fix for packet loss and latency problems with Virgin Media cable connectionsRecovery of scanned PDF corrupted by email transfer
Occasionally when my scanner is emailing me a PDF it gets corrupted along the way. Most of the time the individual scanned images in the PDF are either perfectly valid or at least can viewed, even though the PDF viewer refuses to open the corrupt PDF file.
The bash script below will extract the images and then combine them again into a valid new PDF file.
Continue reading Recovery of scanned PDF corrupted by email transferCertwatch SSL certificate expiry warning
If you have just received an e-mail similar to the one below, read on.
Special character mangling in WordPress and SyntaxHighlighter
The SyntaxHighlighter WordPress plug-in is used to display code ‘as is’; unfortunately WordPress again is too clever for its own good and mangles special characters like & and ” even before the text gets to the SyntaxHighlighter blocks in the Block Editor.
The solution is to add a filter function in your custom functions.php file:
Continue reading Special character mangling in WordPress and SyntaxHighlighter