Scaleway C1 ARM bootscript issue

If you want to change kernel on C1 instance

Try to change kernel your host is running by changing bootscript in server settings...

There are newer kernels listed + rescue option.

Server doesn't boot with new kernel (except rescue)...

You want to change bootscript (kernel) back, but there is no ...

more ...

Running Fedora 25 @ Scaleway

How to update to Fedora 25

Install dnf system-upgrade plugin on Fedora 22.

Edit /usr/lib/python2.7/site-packages/dnf-plugins/system_upgrade.py around line 617, add 'pass' and comment 'raise' - disable check if new kernel will be installed.

if not any(p.name.startswith('kernel') for p in downloads):
pass ...
more ...

Using k3765 3G USB modem in Linux

In normal cdrom mode... usb_modeswitch.conf:

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

execute:

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

Disable cdrom mode with:

AT^U2DIAG=0

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

Problem

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

Solution

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

Problem

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

Solution

Install libxml2 and libxslt development packages, and then:

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