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 , , , ,

New project idea – RC car

One day thought that would be nice to make a RC car controlled with arduino.
Unfortunately I don’t know how make such hardware, I needed to to find any car, that has possibility to turn front wheels to both sides.
After few days of searching (all of them were expensive or front wheels were “fixed” they were able only to rotate clock or co-clock wise) found this:
RC car
Continue reading

Tagged , , , , ,

Arduino + servo simple setup

Using servo with arduino is pretty easy.

Here is my setup:
Arduino with servo
Continue reading

Tagged , ,
%d bloggers like this: