Spectrum analyser for Ettus USPR (incl. B200/B210)

February 16, 2017

sudo apt-get install gqrx-sdr libuhd003 uhd-host

download blob firmware, grrrrr!

sudo /usr/lib/uhd/utils/uhd_images_downloader.py

sudo apt-get install libvolk1-bin


sudo usermod -a -G usrp jsk

sudo cp /usr/lib/uhd/utils/uhd-usrp.rules /etc/udev/rules.d/

(relogin/restart desktop manager or use login with DISPLAY parameter)


Fixing MG6350 printer driver for Debian

January 29, 2017

Having issues installing Canons printer driver for MG series on a debian jessie machine? Well, one could go by an brand new or try fixing it. My solution was to simply download the newest versions of libtiff4 and libjpeg8 and install them before installing cnijfilter-mg6300series version 3.80 driver. I downloaded their official driver from their homepage but later realised, that it can be apt-get'ed (checkout apt-cache search cnijfilter).

Changing default applications in iceweasel

January 23, 2017

I currently perfer ranger as my default file browser. For some reason, Iceweasel only show a limit amount of mime types when one tries to change it. You can add/edit them by editing ~/.local/share/applications/mimeinfo.cache

 And create /usr/share/applications/ranger.desktop


Ericsson H5321gw modem to ifup/down

December 14, 2016

My Lenovo T430s laptop has build-in a Ericsson H5321 modem as illustrated underneath

 In order to get it working, I copied as root

 check if your version match the output from lsusb and issue a 'service udev reboot'. Then create /etc/network/scripts/h5321-wakeup.sh. Please mind that the h5321 expect one to read the return thus a simple 'echo -e "AT*ENAP=1,1\r" > /dev/ttyACM1 did not work for me. Using two-way serial communication in sh (dash) was a little tricky for which reason I used python.

 And finally add the script in /etc/network/interfaces

Start it using 'ifup wwan0' command. Suspend/sleep etc. somehow shutdown the wwan0's current connection but debian's netmanager is not informed. Using acpid you can create the a file /etc/acpi/events/lidbtn-wwan0

 and /etc/events/sleepbtn-wwan0

 to issue the ifdown automatic.

 Sadly, wicd (wicd-cursor) does not support wwan cards. If you have a suggestion to an alternative (n)cursor network manager please write to me mail@jskusk.dk

APC Smart-UPS SUA2200RM2 dead and beep fix

Just replaced batteries on your good old APC UPS; it starts but five days later it just turn off and constantly beeps as posted at youtube? Well, it is most suddenly the same issue as I had and it can be fixed!

apc2200Poop the hood and check for short circuit and eventually replace the 1A/100V Schottky diode (and consider replacing the low volt switch mode capacitors at the same time) as illustrated.


Adding CUPS to OpenWRT v15.05.1

November 26, 2016

You will find the cups package in the 'oldpackage' git package. However, I realized that the p910nd is the solution!


[1] https://wiki.openwrt.org/doc/howtobuild/single.package

Issue with Linux/Debian's resume from disk

October 17, 2016

If you are having issues with resuming your laptop e.g. during boot it stalls for a loooong time and finally reporting, that it can not find your resome device - then the solution is quite simple. In my case, I use encrypted swap partition to store the resume disk but initrd was somehow confused and pointed at wrong partition. Simply ensure that /etc/uswsusp.conf points to your swap partion

 Then update initramfs

 If you receive a issue regarding multi resume devices, then ensure that '/etc/initramfs-tools/conf.d/resume' points at sda6_crypt also.

Riverbed SteelHead 250 dmesg

May 19, 2016


Incremental backup of synology users' home folder

February 21, 2016

create group named 'snapshot_homes' using either synology's online tool or commands like:

synogroup --add snapshot_homes

synogroup --descset snapshot_homes [activate snapshots in user's homedir]

create script /opt/sbin/snapsnot-homes.sh with the following script

 Warning: I have used it for a long time but I should still be considered experimental!

Todo: choose a logging method e.g. email.

Add something like this to the roots cron script by running 'crontab -e' as root and add:

Add any user to the group "snapshot_homes" and they should get the _snapshot directory automatically. Use a test users for start due to the experimental script!

 Now I hope it works for you.

Adding secondary battery to i3 status bar

... it so easy! Just edit /etc/i3status and add

test by running i3status in you command promt.