Connecting WWAN Modem in Linux

As of this writing Linux support about this type of modem isn’t really good. GUI Network Manager doesn’t know such device. You need to configure it manually (in console). The solution that works for me.

$ echo -e “AT^NDISDUP=1,1,\”your_APN_name\”\r” > /dev/ttyUSB0

This command will connect the stick to LTE network.

– You have installed usb_modeswitch package
– the modem created /dev/ttyUSB0
– your modem has no qmi and no mbim. It just works with AT command.


$ su -c dhclient wwan0

This command will acquire IP address for the wwan0 interface.

Various notes:
– When this device connected to internet, your network manager software will recognized the connection as ‘Wired Connection’.
– if your WWAN modem is QMI device, you probably need to use qmcli to configure your device.
– if your WWAN modem is MBIM device, you probably need to use mmcli to configure your device.

How to enable broadband connection with Huawei E3372h on Ubuntu Server
How To Use LTE modem in QMI mode for WAN connection
What is libqmi?
What is libmbim?

How to enable the Ribbon UI [MS Office style] in LibreOffice

To enable the new Ribbon UI
Tools > Options > LibreOffice > Advanced > Enable experimental features (may be unstable)
LibreOffice will then need to restart. After the restart:
View > Toolbar Layout > Notebookbar

To revert the changes
Click some strange icon in top left corner > Options > Advanced > uncheck “Enable experimental features (may be unstable)”

LibreOffice 5.3 Ships with Experimental Office-Like Ribbon UI
Microsoft Office Ribbon UI Is Coming to LibreOffice

Tweaking Swappiness Setting in Linux

The default value setting for swappiness is 60. Meaning that the swap file will be used fairly often if the memory usage is around half of your RAM. Some suggested that reducing the default value of swappiness will probably improve overall performance for a typical Linux desktop installation. A value of swappiness=10 is recommended. The swap file will then only be used when my RAM usage is around 90 percent. Feel free to experiment.
To change the system swappiness value, open /etc/sysctl.conf as root. Then, change or add this line to the file:

vm.swappiness = 10

Reboot for the change to take effect.

How do I configure swappiness? | Ask Ubuntu
Why most people recommend to reduce swappiness to 10-20? | Ask Ubuntu
Why is swappiness set to 60 by default? | Unix & Linux Stack Exchange

Using dd to Create a Bootable USB Linux System from .iso File

This short tutorial assumes you build the bootable USB from a Linux system (not from Windows or Mac).
– First make an hybrid ISO from your distro .iso file using isohybrid tool. This step isn’t required if your .iso  are already a hybrid.

$ isohybrid your_iso_file.iso

You might see an error when issuing the command

Warning: more than 1024 cylinders (1620).Not all BIOSes  will be able to boot this device

Don’t worry about it.The warning refers to very old BIOSes.

– Then use dd to write that hybrid ISO to your USB drive.

$ dd if=your_iso_file.iso of=/dev/sdX

Replace the your_iso_file with the name of your .iso file.
Replace the /dev/sdX with the path to the USB drive. Note: the path to the USB drive (/dev/sdX) you want to write to must not contain a partition letter.  So it should look like /dev/sdb not /dev/sdb1.
Also, the dd command does not provide indicator for progression while it is running in the console. Just wait for a little while.

Create USB Boot Stick | PCLinuxOS forum
HOWTO: Create a bootable Linux Media using the dd Command |

How to “Pin” a Package in Synaptic

To “pin” a software package in Synaptic from being updated (for whatever reason), you just simply need to “lock the version.”
Find and select the package you wish to hold back.Then go to Package > Lock Version in the menu bar.

How to hold a package back from being upgraded? | AskUbuntu

Location for Kate’s Syntax Highlighting Files

It’s in ~/.kde4/share/apps/katepart/syntax. The exact location may be slightly different in various Linux distros.

Writing a Syntax Highlighting File |

How to Disable Pocket Integration in Firefox

To disable the built-in Pocket stuff in Firefox, do the following:
1.Type about:config in the browser’s address bar and hit the Enter-key. Confirm that ‘you will be careful’ yadda yadda.
2. Search for browser.pocket.enabled. Double-click on the preference to toggle its state from true to false.

How to disable Pocket in Firefox | Ghacks