Category: linux

  • Booting KVM VM from CD image

    by

    in

    You may list Your all KVM VM with command: [root@kvm3 qemu]# virsh list –all Id Name State —————————————————- – vm1.server.tld shut off Edit the config file: [root@kvm3 qemu]# virsh edit vm1.server.tld Add the following lines to the ‘devices’ part: <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/tmp/CentOS-7.0-1406-x86_64-Minimal.iso'/> <target dev='hdb' bus='ide'/> <readonly/> <address type='drive' controller='0' bus='1'…

  • Script: populating the domainips file for the exim automatically (DirectAdmin)

    by

    in

    Script for populating /etc/virtual/domainips records for the exim. Exim configuration change is described here It takes IP that is assigned to that domain in Directadmin and adds it to the domainsip file. Here is the script (Please note: it always overwrites the domainips file!!!): #!/bin/sh LIST=`/bin/cat /etc/virtual/domainowners | tr -d ' '` echo -n ''…

  • How-to: Sending emails using IP address per domain in exim (Directadmin)

    by

    in

    To be able to send mails via different IP per domain, You need to do the following changes in the /etc/exim.conf file: Find the “remote_smtp:” part, and add line

  • php5-fpm socket permission denied.

    by

    in

    After updating the system, one error occured, despite that everything worked before. 2014/10/19 23:01:34 [crit] 27407#0: *11 connect() to unix:/tmp/php.sock failed (13: Permission denied) while connecting to upstream, client: 78.58.224.49, server: domain.tld, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/tmp/php.sock:”, host: “domain.tld” The reason of it is that despite the defined user: user = www-data group =…

  • changing mysql to innodb_file_per_table=1 with lvm and replication almost without downtime

    by

    in

    This conversion was made with mysql 5.5, but it should work with older versions, as replications on mysql were introduced since mysql 3.23.15. Don’t forget the Disclaimer !!! It requires more than the basic knowledge in linux, lvm and mysql. I do NOT take ANY responsibility for Your data loss!!! Long story short: enable mysql…

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

    by

    in

    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…

  • How-to start two skype instances on linux

    by

    in

    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…

  • client denied by server configuration: owncloud and directadmin

    by

    in

    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.

  • Power OFF and ON USB device in linux (ubuntu)

    Power OFF and ON USB device in linux (ubuntu)

    by

    in

    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 USB device, no mather what it is USB flash drive, Yubikey, USB disk drive: > lsusb Bus 001 Device 002: ID 8087:0024…

  • Squirrelmail hangs forever (DNS cache problem)

    by

    in

    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):