Using k3765 3G USB modem in Linux

In normal cdrom mode... usb_modeswitch.conf:

DefaultVendor=  0x12d1
DefaultProduct= 0x1520
MessageContent= "55534243000000000000000000000011060000000000000000000000000000"


usb_modeswitch -c /opt/etc/usb_modeswitch.conf
modprobe usbserial vendor=0x12d1 product=0x1465

Disable cdrom mode with:


Then I need only:

modprobe usbserial vendor=0x12d1 product=0x1001

to use it with smsd.

more ...

CentOS in OpenVZ container update 7.1 -> 7.2 gone bad


Simple yum update canceled at bad time messes up your system...


yum update stuck on systemd-sysv package... pstree -a doesn't show anything useful.

Ctrl+c helps, but breaks the system, as yum stopped in update phase.

yum doesn't work after that, rpm still does.

I've ...

more ...

Install lxml in virtualenv


Installing lxml in virtualenv fails on libxml/xmlversion.h...


Install libxml2 and libxslt development packages, and then:

CFLAGS="-I/usr/include/libxml2" LDFLAGS="-L/usr/lib64/" pip install lxml
more ...

Managing your photo library


It would be nice if photo management software could organize all your photos in predictable and understandable way, without obfuscating anything etc.

Also, it would be nice to pile all photos from same place but different sources into one folder and sort them according to time taken, no?

Solution ...

more ...