insmod: error inserting ‘/lib/xenblk.ko’: -1 Operation not permitted () when booting XEN VM

When getting error

Loading xenblk.ko module
ksign: module signed with unknown public key
- signature keyid: 99a6f9685d38f58d ver=3
insmod: error inserting '/lib/xenblk.ko': -1 Operation not permitted
Loading ehci-hcd.ko module
ksign: module signed with unknown public key
- signature keyid: 99a6f9685d38f58d ver=3
insmod: error inserting '/lib/ehci-hcd.ko': -1 Operation not permitted
Loading ohci-hcd.ko module
ksign: module signed with unknown public key
- signature keyid: 99a6f9685d38f58d ver=3
insmod: error inserting '/lib/ohci-hcd.ko': -1 Operation not permitted
Loading uhci-hcd.ko module
ksign: module signed with unknown public key
- signature keyid: 99a6f9685d38f58d ver=3
insmod: error inserting '/lib/uhci-hcd.ko': -1 Operation not permitted
Loading jbd.ko module
ksign: module signed with unknown public key
- signature keyid: 99a6f9685d38f58d ver=3
insmod: error inserting '/lib/jbd.ko': -1 Operation not permitted
Loading ext3.ko module
ksign: module signed with unknown public key
- signature keyid: 99a6f9685d38f58d ver=3
insmod: error inserting '/lib/ext3.ko': -1 Operation not permitted
Loading dm-mem-cache.ko module
ksign: module signed with unknown public key
- signature keyid: 99a6f9685d38f58d ver=3
insmod: error inserting '/lib/dm-mem-cache.ko': -1 Operation not permitted
Loading dm-mod.ko module
ksign: module signed with unknown public key
- signature keyid: 99a6f9685d38f58d ver=3
insmod: error inserting '/lib/dm-mod.ko': -1 Operation not permitted
Loading dm-log.ko module
ksign: module signed with unknown public key
- signature keyid: 99a6f9685d38f58d ver=3
insmod: error inserting '/lib/dm-log.ko': -1 Operation not permitted
Loading dm-region_hash.ko module
ksign: module signed with unknown public key
- signature keyid: 99a6f9685d38f58d ver=3
insmod: error inserting '/lib/dm-region_hash.ko': -1 Operation not permitted
Loading dm-message.ko module
ksign: module signed with unknown public key
- signature keyid: 99a6f9685d38f58d ver=3
insmod: error inserting '/lib/dm-message.ko': -1 Operation not permitted
Loading dm-raid45.ko module
ksign: module signed with unknown public key
- signature keyid: 99a6f9685d38f58d ver=3
insmod: error inserting '/lib/dm-raid45.ko': -1 Operation not permitted
Loading xennet.ko module
ksign: module signed with unknown public key
- signature keyid: 99a6f9685d38f58d ver=3
insmod: error inserting '/lib/xennet.ko': -1 Operation not permitted
Scanning and configuring dmraid supported devices
Creating root device.
Mounting root filesystem.
mount: could not find filesystem '/dev/root'
Setting up other filesystems.



Try to rebuild initrd for VM (it also forces resymlinking of kernel in use):

php /usr/local/solusvm/includes/xenkernel.php


Tagged , ,

How-to start two skype instances on linux

Basically, for starting the second skype process, You need to have a separate skype data path.

So it can be started like that:

skype --dbpath=~/.Skype2



If You need all the history or settings of an existing skype, You may just copy that dir:

cp -pr ~/.Skype ~/.Skype2

p.s. You may start even more instances in the same way.

Tagged ,

client denied by server configuration: owncloud and directadmin

If got error with owncloud when using owncloud application (custombuild managed structure):

[Mon Mar 24 19:42:39.379283 2014] [access_compat:error] [pid 525512] [client 86.100.237.21:55665] AH01797: client denied by server configuration: /home/admin/domains/domain.tld/
private_html/owncloud/remote.php

Solution is to enable PUT requests.
Continue reading

Tagged , , ,

Power OFF and ON USB device in linux (ubuntu)

There are two methods of doing this. So first method is for kernels after 2.6.32, and second for older ones.

To view kernel version, simply enter:

> uname -r 
3.8.0-29-generic

find Your device:

> lsusb 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 005: ID 12d1:14db Huawei Technologies Co., Ltd. 
Bus 002 Device 006: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
 
> lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/6p, 480M
        |__ Port 1: Dev 5, If 0, Class=comm., Driver=cdc_ether, 480M
        |__ Port 1: Dev 5, If 1, Class=data, Driver=cdc_ether, 480M
        |__ Port 5: Dev 6, If 0, Class=hub, Driver=hub/4p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/6p, 480M

Continue reading

Tagged , , , , ,

Squirrelmail hangs forever (DNS cache problem)

Noticed that one squirrelmail sometime hangs.
It contained default directadmin installation configs.

Straced proccess, and found that it queries DNS servers for a quite long time (only snippet):
Continue reading

Tagged , , , , ,

MX backup server with postfix on debian

Not to lose mails when main mail server is down, best solution is – mx backup server.

This is configuration to have backup mx server set up and running.

myhostname = mx2.loginroot.com
mynetworks = 127.0.0.0/8
maximal_queue_lifetime = 120d
smtpd_banner = $myhostname ESMTP
 
relay_domains = hash:/etc/postfix/relaydomains
transport_maps = hash:/etc/postfix/transportmaps
 
smtpd_recipient_restrictions =
 permit_mynetworks,
 reject_unauth_destination

Continue reading

Tagged , , , , ,

RC car steering solution?

One solution came in mind for RC car steering.
Control servo (planned or RC car steering) with potentiometer.

Testing setup is very simple.
Servo setup: +, – and control pin. Same as here:
Simple servo setup

Potentiometer will work as voltage divider.
Here is more info about it: Voltage divider.
Continue reading

Tagged , , , ,
%d bloggers like this: