Install Mutt correctly

No Comments
  1. Install mutt or neomutt with your favourite package manager:

apt install neomutt

or install from source

git clone

Here are the sample commands to configure and build NeoMutt:

./configure --gnutls --gpgme --gss --sasl --tokyocabinet

2. create a muttrc using mutt-wizard

git clone
cd mutt-wizard
sudo make install

The mutt-wizard is run with the command mw. It also installs the mailsync command. Once everything is setup, you’ll use neomutt to access your mail.>

  • mw add — add a new email account
  • mw ls — list existing accounts
  • mw pass — revise an account’s password
  • mw delete — deleted an added account
  • mw purge — delete all accounts and settings
  • mw cron — toggle/configure a cronjob to sync mail

3. create mutt mailboxes correctly using maildirmake utility from courier mail server. The individual components can be downloaded here. Most tutorials leave out this part, and so I struggled with a persistent mailbox format error.

mkdir ~/Mail

cd Mail

maildirmake gmail

4. Use pass to initialise and store mailbox passwords

pass pass init <gpgemail>

5. More Information

Mutt Wiki

Categories: Apps CLI Ubuntu

Tags: ,

gtk3 tweaks

No Comments

CSS code in ~/.config/gtk-3.0/gtk.css:

notebook tab {
    /* background-color: #222; */
    padding: 0.4em;
    border: 0;
    border-color: #444;
    border-style: solid;
    border-width: 1px;
notebook tab:checked {
    /* background-color: #000; */
    background-image: none;
    border-color: #76C802;
notebook tab:checked label {
    color: #76C802;
    font-weight: 500;
notebook tab button {
    padding: 0;
    background-color: transparent;
    color: #ccc;
notebook tab button:hover {
  border: 0;
  background-image: none;
  border-color: #444;
  border-style: solid;
  border-width: 1px;

~/.config/gtk-3.0/gtk.css (adjusting the width to your liking) and all will be fine:

.scrollbar.vertical slider, scrollbar.vertical slider {
        min-width: 10px;

button:active {
background-color: #0274d9;

button:hover {
background-color: #3085a9;

*:disabled {
background-color: #320a91;

checkbutton:checked {
background-color: #C71585;

label:focus {
background-color: #b4940f;

checkbutton:indeterminate {
background-color: #20395a;

Categories: Uncategorized

Remove Asian Fonts

No Comments

sudo apt-get remove "fonts-kacst*" "fonts-khmeros*" fonts-lklug-sinhala fonts-guru-extra "fonts-nanum*" fonts-noto-cjk "fonts-takao*" fonts-tibetan-machine fonts-lao fonts-sil-padauk fonts-sil-abyssinica "fonts-tlwg-*" "fonts-lohit-*" fonts-beng-extra fonts-gargi fonts-gubbi fonts-gujr-extra fonts-kalapi "fonts-samyak*" fonts-navilu fonts-nakula fonts-orya-extra fonts-pagul fonts-sarai "fonts-telu*" "fonts-wqy*" "fonts-smc*" fonts-deva-extra fonts-sahadeva

Categories: Uncategorized


Nautilus issues in Ubuntu 18.04

No Comments

There some issues with nautilus file browser in 18.04. For starters no clear way to run scripts, no app-runner for instance.
Here is how to install nautilus-actions in 18.04
Here is a fix for lack of contextual menus in 16.04, it should work after you install the above.
And here is a fix for the lost or broken icons:

Since latest Nautilus 3.26.4, most external thumbnailers are not working anymore under Ubuntu 18.04 or 18.10.
I realized the problem when my LibreOffice and MsOffice thumbnailers stopped to work.
Why ? Because, since few months, some Nautilus external thumbnailers vulnerabilities have come to light (gnome-exe-thumbnailer for example).
As a result, Gnome Shell team has decided to harden thumbnails generation when using external thumbnailers.
First hardening steps have come with Nautilus 3.26.4, where all external thumbnailers are not called directly but thru bwrap, the bubblewrap project sandboxing tool.
Default bwrap options used by Nautilus appear to work fine under Fedora, but fail badly under Ubuntu and Debian based distros.
This short article explains how to reactivate Nautilus external thumbnails generation under Ubuntu Bionic 18.04 and Cosmic 18.10. You should get back thumbnails generation as they were working with previous versions of Nautilus.

Avoid CUPS upgrade hell

No Comments

Okay, its been a long while since I upgraded one of my partitions, running ubuntu 12:04, and so the need to get closer to 18:04 meant, I had to upgrade one step at a time, and you know the problem, nobody figured an easier way to skip past a decade of neglect.
Trouble is, I don’t want to upgrade too far, since its old hardware. And there lies the rub.
After experiencing a cups log inflation story from hell, see here.
I then ran into this problem, no working CUPS panel
sudo apt remove --purge cups
apt autoremove
apt remove cups*
cd /etc/cups & rm *
cd /usr/share/cups & rm *

apt install cups
apt install lsb

service cups restart
check permissions
first check if the log is kicking up a fuss:
tail /var/log/cups/error_log
E [01/Apr/2019:17:07:50 +0200] [CGI] Directory \"/usr/lib/cups/backend\" has insecure permissions (040755/uid=1000/gid=1000)

which gives us an indication, to make certain
ls -al /usr/lib/cups/backend
sudo chmod 755 /usr/lib/cups/backend
sudo chown root:root /usr/lib/cups/backend

and if that fails, try this trick:
sudo cp /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf
sudo service cups restart

Categories: Uncategorized

install the drivers for the Canon PIXMA

1 Comment

Here is a step-by-step solution how to install the drivers for the Canon PIXMA iP3600 printer on Ubuntu 9.10 (should work for all printers as well with their respective drivers, and for later ubuntu releases as well)
The .deb packages from canon need to be modified to replace the dependency on libcupsys2 by libcups2
1) download Canon’s driver in .deb format from here: and save it to your disk. The file will be ip3600_debian_printer.tar
2) Change to this directory, and untar the archive:
tar xvf ip3600_debian_printer.tar
It produces the following files:
3) It is the two .deb files, which need modifications before installation. For both of them do the following (where X.deb stands
for the given .deb file, replace X by the filename)
ar x X.deb
# this produces debian-binary, data.tar.gz and control.tar.gz
# in the current working directory)
mkdir tmp; cd tmp
# create and change to the tmp directory
tar xvzf ../control.tar.gz
# this extracts the following files into tmp/: md5sums, control
# (and postinst and postrm in case of cnijfilter-ip3600series_3.00-1_i386.deb)
sed -i ‘s/libcupsys2/libcups2/g’ control
# this replaces libcupsys2 by libcups2 in the file ‘control’
rm -f ../control.tar.gz
# remove the old archive
tar cvzf ../control.tar.gz *
# this re-creates the control.tar.gz archive with all the files
cd ..; rm -rf tmp
# change one directory up, remove tmp/ directory
ar r X.deb control.tar.gz
# this replaces the control.tar.gz member in the X.deb debian
# package file (which is a standard Unix ‘ar’ archive)
rm -f control.tar.gz debian-binary data.tar.gz
# this cleans up temporary files
4) Ready. Install these two packages:
sudo dpkg -i *.deb
Good luck!

Categories: Uncategorized