Ubuntu

Upgrading mysql on Ubuntu Lucid Lynx (10.04) hangs

Already the third time this happens to me: An update is available for the mysql server and I just "apt-get upgrade". The upgrade process gets totally stuck at the following task:
Preparing to replace mysql-server-5.1 5.1.66-0ubuntu0.10.04.1 (using .../mysql-server-5.1_5.1.66-0ubuntu0.10.04.2_i386.deb) ...
mysql stop/waiting

The process that got again stuck in some eternal loop (or whatever) is an egrep replacement of some textfile:
egrep -qi -r ^[^#]*ndb.connectstring|^[:space:]*\[[:space:]*ndb_mgmd /etc/mysql/

A permanent static route in Ubuntu Karmic Koala (9.10), Precise Pangolin (12.04) & Trusty Tahr (14.04)

Karmic Koala
To add a permanent static route to a Karmic Koala system with one NIC, you need to edit the
/etc/network/interfaces file. The following section needs to be replaced:

# The primary network interface
auto eth0
#iface eth0 inet dhcp

Modify as follows:
# The primary network interface
auto eth0
iface eth0 inet dhcp
up route add -net 10.8.0.0 netmask 255.255.255.0 gw 192.168.0.3
down route del -net 10.8.0.0 netmask 255.255.255.0 gw 192.168.0.3

Changing the MAC (Media Access Control) address of NICs (Network Interface Cards)

In some networks, e.g. the one of Helsinki University, computer's have to be registered in order to get connected. Upon registration the computer receives a name and an IP address. Every time it connects to the network, the DHCP server assigns it the same name and IP address. The DHCP server identifies computers based on the MAC address which is unique for every NIC. However, if you know the MAC address of a registered coputer, you can use it to connect to the network faking the MAC address. This is especially easy with Linux computers:
ifconfig eth0 down

Pages