Category: linux
-
Booting KVM VM from CD image
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)
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)
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
-
changing mysql to innodb_file_per_table=1 with lvm and replication almost without downtime
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
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
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
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)
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)
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):