Linux

126 posts in Linux

Gentoo & Samba hanging boot and refusing to start

· errors, linux, software

I recently took a server from for maintenance (PSU burned down) and quickly noticed it hung at boot (hangs at Samba starting).

I went into interactive boot mode and skipped Samba.

Thinking it was a networking issue (server has static IP & routing set up) which didn’t match my home network.

Set up dhcp, changed the gateway, and started restarting samba from command line.

It always resulted in something like this:

Munin & Bind9_rndc

· errors, linux, software

2012/06/18-16:30:03 [28214] Error output from bind9_rndc:
2012/06/18-16:30:03 [28214] rndc: error: none:0: open: /etc/bind/rndc.key: permission denied
2012/06/18-16:30:03 [28214] rndc: could not load rndc configuration

However, via command line (and user root) it works:

/etc/munin/plugins # ./bind9_rndc 
query_recursion.value 0
query_success.value 80
query_nxrrset.value 17
query_requests.value 104
query_failure.value 0
query_duplicates.value 0
query_nonauth_answer.value 0
query_nxdomain.value 4
query_auth_answer.value 101
query_responses.value 104

Solution:

add this to /etc/munin/plugin-conf.d/munin-node:

[bind_rndc]
user bind

and be sure the key has the right ownership:

FlatTurtle @ Atlantis

· hardware, linux, software, irail

We’re quite a while later, but this is what it’s starting to look like…

Our 46" Samsung screen with a Genesi’s Efika at our (temporary) o-f-f-f-i-c-e, next to L’Oreal in St. Agatha Berchem.

Still lots and lots to do, but we’re slowly starting to deploy InfoScreens all over Brussels.

Be sure to provide feedback and to connect to the wireless Access Point “FlatTurtle.com” (unless our customer explicitly asked not to provide free WiFi ;)) near every screen.

Yourls + WP plugin

· linux, software, www

I came against a problem that my Yourls WordPress plugin refused to generate a short url (it timed out when publishing a post; and it sent a tweet with no url).

And when someone visited the post it tried to regenerate a new short url (and this often resulted in 4-5 short urls being created) with title “301 moved permanently”.

Overall, tracking 891 links, 93,876 clicks, and counting!

Xen: NAT and Bridging

· linux, networking

Because dom0 was running NAT, and I needed bridging;

Debian network file (/etc/network/interfaces):

iface eth3 inet manual

auto xenbr0
iface xenbr0 inet static
        bridge_ports eth3
        address 10.19.86.1
        broadcast 10.19.86.255
        netmask 255.255.255.0

NAT is running on eth2, bridging on eth3 (/etc/xen/xend-config.sxp):

(network-script 'network-nat netdev=eth2')

Now, for the VM configs:

NAT:

vif         = [ 'ip=172.16.1.12,mac=00:16:3E:5E:0D:1A' ]

Bridge:

vif         = [ 'ip=85.12.6.178,mac=00:16:3E:1D:F5:6C,script=vif-bridge,bridge=xenbr0' ]

It’s magic and it works! ;)

Shell(s) for my Great Firewall Checker

· linux, networking, software, www

As my last shell has been disconnected in China (not because I was probing websites, but because the building the Guruplug was in got closed) I’m looking for shells. Linux or Unix. With Git installed. I’ll barely use any disk space and it will probe the websites at most once/day (at night, when you won’t notice it).

And not just China, but any country where they tend to censor certain websites.

Xoom

· google, hardware, linux

I recently bought a Xoom, WiFi version.

This will be my short review about this Xoom.

First of all, this is a Xoom made solely for Google employees. It has the Google logo on it, and a green back side. As far as I know there is no public way to get the device with these colors,

 

 

Android

I received it the day Android 3.2 got released. First thing I did was upgrade from 3.0.1 to 3.1 and then to 3.2.