client denied by server configuration: owncloud and directadmin

Filed in linux Leave a comment

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

, , ,

Power OFF and ON USB device in linux (ubuntu)

Filed in linux Leave a comment

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

, , , , ,

Squirrelmail hangs forever (DNS cache problem)

Filed in linux Leave a comment

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

, , , , ,

MX backup server with postfix on debian

Filed in linux Leave a comment

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

, , , , ,

RC car steering solution?

Filed in arduino Leave a comment

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

, , , ,

TOP
%d bloggers like this: