Enable hibernation in Xubuntu 16.04
Ubuntu (and its derivatives – Xubuntu, Lubuntu, Kubuntu) normally come with hibernation disabled by default, mostly due to possible hardware compatibility issues.
Re-enabling it is not a simple thing to do, despite logic dictating the opposite. Start by testing out whether or not your system is capable of hibernation…
Automatically restart Webmin/Virtualmin in case of failure
Running out of memory sometimes happens on swap-less VPSes, and it seems Webmin (together with its twin, Virtualmin) are among the first processes to die in out-of-memory cases.
Setting up a little script to check for and restart Webmin if it is no longer running is a pretty simple (workaround) solution – but should never replace the proper procedure of adjusting the settings or upgrading the VPS to avoid running out of memory in the future.
Directory listing failed in FileZilla with ProFTPd on Virtualmin
Everything appears normal in the FTP server’s log:
fr01-srv proftpd[5591]: 192.168.0.1 – USER testuser: Login successful.
However, in Filezilla things are different:
Error: Connection timed out after 20 seconds of inactivity Error: Failed to retrieve directory listing
Configure gammu to use a Huawei 3G modem
This is a very short helping tutorial explaining how to get gammu working with an USB 3G modem (in my case a Huawei K3565) in CentOS to later use in sending out alert messages for critical events.
Obtaining administrator access on Huawei HG8247H
My ISP upgraded my connection from VDSL to fiber and gave me new hardware to go with it – the Huawei HG8247H GPON. However, as I am already using a fully configured DDWRT-ed router for all my networking tasks, I needed to turn the Huawei into a media converter and pass the static IP to my second router – not the easiest task as it appears.
The Huawei my ISP uses comes with manufacturer firmware and blank configuration so the default logins of still work, but as soon as its WAN gets connected it grabs the configuration from the ISP and the administrator login changes.
Handy Linux commands to administer IPs and routes
Using basic network commands comes very hand when one needs to debug a networking issue, to fix a problem or to simply try out a couple of things.
This post is in no way an exhaustive list of Linux network-related commands, but tries to include a couple of the most basic ones and explain what they do.
Adding static DNS records on DD-WRT
Ever needed to manually control host/domain IPs using the hosts file? Well, good thing most computers have a hosts file, but what do you do with other devices that do not support such a feature.
If you’re running a DD-WRT router, by using DNSMasq the DNS change will work for all devices that connect to your router, including mobile devices.