Archive for the ‘Operating System’ Category

Add Secondary IP Address to CentOS 5.5

on Tuesday 8th March, 2011 Gabe speculated thusly…

Create a new interface file with a colon and a number.
# cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:1
# vim /etc/sysconfig/network-scripts/ifcfg-eth0:1

DEVICE=eth0:1
BOOTPROTO=static
IPADDR=192.168.0.5
ONBOOT=yes

To activate it, just

# ifup eth0:1

Posted in Linux, Operating System, RHEL/CentOS

No Comments »

SSH KeepAlive

on Wednesday 9th February, 2011 Gabe speculated thusly…

add the following to sshd_config

KeepAlive yes
ClientAliveInterval 60

Posted in Linux, Operating System, Server, Ubuntu

No Comments »

apache2: apr_sockaddr_info_get() failed

on Wednesday 24th November, 2010 Gabe speculated thusly…

Starting httpd: httpd: apr_sockaddr_info_get() failed for hostname.domain.com
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName

Fix with these commands :

# hostname HOSTNAME.DOMAIN.COM

Add in to /etc/hosts e.g. # vim /etc/hosts

# echo HOST.DOMAIN.com > /etc/hostname

# /bin/hostname -F /etc/hostname

# apache2ctl graceful

Posted in Information, Linux, Operating System, Server

No Comments »

Easy way to install LAMP (DNS, samba, etc) under Maverick Meerkat Ubuntu 10.10

on Wednesday 24th November, 2010 Gabe speculated thusly…

Either:
$ sudo tasksel

or:
$ sudo tasksel install lamp-server

or:
$ sudo apt-get install php5 mysql-server apache2

Posted in Information, Linux, Operating System, Ubuntu

No Comments »

Ubuntu perl: warning: Setting locale failed

on Wednesday 24th November, 2010 Gabe speculated thusly…

Run as root, or prefix with “sudo”:
# locale-gen en_GB.UTF-8
# dpkg-reconfigure locales

Posted in Information, Linux, Operating System, Ubuntu

No Comments »

Effectively repair MySQL Tables

on Wednesday 27th January, 2010 Gabe speculated thusly…

$ cd /var/lib/mysql

find -type f -name '*.MYI' -exec myisamchk --silent --force --fast --update-state --key_buffer_size=64M --sort_buffer_size=64M --read_buffer_size=1M --write_buffer_size=1M {} \;

Posted in Development, HowTo, Information, Linux, MySQL, Operating System, Programming

No Comments »

Access denied for user ‘debian-sys-maint’@'localhost’ (using password: YES)

on Tuesday 26th January, 2010 Gabe speculated thusly…

Find your debian-sys-maint password in /etc/mysql/debian.cnf.

GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY ' ' WITH GRANT OPTION;

Replace with your debian-sys-maint password.

Posted in Debian, Development, MySQL, Operating System, Ubuntu

No Comments »

Clicking on a GVFS link opens in Firefox

on Thursday 22nd October, 2009 Gabe speculated thusly…

For some reason servers that I connected to using FTP with gnome-vfs would open in Firefox. Odd really.

I fiddled about and eventually developed a filesystem level fix. Just go to the folder:
~/.gconf/desktop/gnome/url-handlers
And delete the ftp folder!

Posted in Debian, Information, Linux, Operating System, Ubuntu

No Comments »

VirtualBox 3 Transparent Background on Ubuntu Jaunty

on Tuesday 30th June, 2009 Gabe speculated thusly…

I upgraded to VirtualBox 3 and then my windows guest went wrong.

First of all, you have make sure the latest version of compiz installed.

Go to CompizConfigs Settings Manager and look for “Windows Rules” under Windows Management category. Enable “Windows Rules” and go to “No ARGB visuals” use Window Class, click Grab and then click in virtualbox window.

Posted in Information, Linux, Operating System, Ubuntu

3 Comments »

Using APG to generate secure, pronuncable passwords.

on Friday 12th June, 2009 Gabe speculated thusly…

The following command will generate several passwords with the following properties:

  • Length of 10 characters
  • Contain a mixture of upper and lowercase characters
  • Contain at least 1 number
  • Completely random most likely not in the dictionary (expect by random luck)
  • Pronounceable

This makes these passwords easier to remember but very difficult to brute force. They are ideal as passwords for logging in to machines, servers, routers, etc.


$ apg -m 10 -x 10 -a 0 -M NCL -t

Posted in Information, Linux, Server

No Comments »