I ran into an annoyance trying to clone some Ubuntu LAMP virtual machines that I was using for website development. Every time I cloned the virtual machine, eth0 would go missing, and ifconfig would show only the loopback device, lo.

It turns out that when you clone a VMware virtual machine, the cloned virtual machine’s network interface gets a new MAC address (which, of course, it must to work on the same LAN). But Ubuntu, and many other Linux distributions, cache the old MAC address in a configuration file.

In Ubuntu, the file is /etc/udev/rule.d/70-persistent-net.rules. After cloning, it will contain a reference to the old network interface as eth0:

The easiest way to fix this problem is to simply delete the file. Ubuntu will regenerate it properly the next time it boots up.

sudo rm /etc/udev/rule.d/70-persistent-net.rules

After deleting the file, you need to reboot. After rebooting, ifconfig should show eth0 and everything should just work.

If you’re feeling less adventurous, you can rename the file to *.old so that you can restore it if something doesn’t work:

sudo mv /etc/udev/rule.d/70-persistent-net.rules /etc/udev/rule.d/70-persistent-net.rules.old

You can also edit the file to remove the old reference to eth0, and rename the new eth1 reference to eth0. But deleting the file and rebooting seems more convenient.

The relevant filename is slightly different in other Linux distributions. For example, in Debian, the filename is /etc/udev/rules.d/z25_persistent-net.rules.

{ 0 comments }

Antivirus Software To Become Mandatory?

by Chris on 1 July 2010

This article was originally published on 24 June 2010 on newmatilda.com.

Earlier this week, the Standing Committee on Communications tabled a report on its yearlong inquiry into cybercrime. The report, headed Hackers, Fraudsters and Botnets: Tackling the Problem of Cyber Crime makes 34 recommendations aimed at improving computer security in Australia. One of them in particular — a proposed industry code requiring Australians to install and maintain antivirus and firewall software to access the internet — has sparked some debate.

To assess the merits of that recommendation, it is necessary to understand how ISPs are presently (mostly not) regulated in the area of cyber security, and what exactly the report proposes to change.

The Internet Industry Association (IIA), a group representing ISPs, is largely responsible for writing the codes that regulate them. In relation to cyber security, the IIA recently released a voluntary code of practice titled icode. Among other things, this code lists a number of steps that ISPs may take when they become aware of malware-infected machines on their networks (such as notifying the user or disconnecting the user from the internet), but it leaves it up to the relevant ISP to decide which course of action is appropriate in the circumstances.

The current code is thus doubly voluntary. First, the code itself is voluntary, so ISPs can choose not to comply with it at all, and, second, ISPs that choose to comply with the code are not required to take any particular steps in relation to malware-infected machines on their network. That is, the current code does not provide for any mandatory steps to be taken in relation to malware-infected machines on ISPs’ networks. And in no way does it require users to install and maintain antivirus and firewall software.

The first thing that the new report proposes to change is to have an industry code that is registered. The Australian Communications and Media Authority (ACMA) presently has a power under the Telecommunications Act 1997 (Cth) to register industry codes that deal with certain things. Where such an industry code is registered, ACMA can direct an ISP to comply with the code. Failure to comply with such a direction exposes the ISP to a civil penalty of up to $250,000 per breach. A registered industry code is thus effectively mandatory.

Continue reading this post…

{ 0 comments }

Google Is Watching

25 May 2010

Google’s collection of information about Wi-Fi networks may not breach any laws, but concerns loom over the company’s attitude to private data.

Read the full post

Add ?NoCleanFeed or &NoCleanFeed to Blacklisted URLs to Bypass Mandatory Australian Internet Censorship

20 December 2009

Depending on the technology, you can bypass the proposed Australian mandatory filter by changing your DNS servers, using an encrypted VPN service, or installing Tor. But these workarounds can take up to 60 seconds to set up, and can slow your access somewhat. Instead, you can bypass the filter by simply adding ?NoCleanFeed or &NoCleanFeed to the end of the blacklisted URL.

Read the full post

How to Get Rid of Temporary Posts Used for Theme Detection Permanently

17 November 2009

Windows Live Writer is an exceptional tool for blogging. But it relies on an inelegant mechanism to detect the theme used by your blog. The result is an Internet littered with Temporary Posts Used For Theme Detection. Thankfully, you can use a WordPress plugin to prevent these posts from ever appearing on your website.

Read the full post

Get to Any Section on AustLII in One Step

6 September 2009

If you’re using a browser that supports search keywords, you can add a keyword for your favourite act. For example, you can add a ‘tpa’ keyword, so that when you type ‘tpa 52’ in the address bar, you’re taken directly to s 52 of the Trade Practices Act 1974 (Cth).

Read the full post

ACMA Blacklists Iran Protest Video & Boing Boing

28 August 2009

Neda Agha-Soltan was shot and killed during the Iranian election protests. Her death was captured on video, and spread virally on the Internet, becoming a rallying cry for the Iranian protests. Now, ACMA has blacklisted the video, and a Boing Boing post commenting on it.

Read the full post

Resolving the Abortion Debate in South Australia

28 August 2009

The Criminal Law Consolidation Act 1935 (SA) s 82A allows medical termination of pregnancy, so long as the termination poses less risk to the life of the woman than the pregnancy does (not only if the pregnancy carries abnormally high risk). And it appears that abortion in the first 16 weeks is safer than live birth.

Read the full post

Googling Sex in Two Countries

24 August 2009

When people flocked to reproduce Abigail Bray’s experiment of searching Google for ‘sex’, what surprised me was that the results varied significantly. So, I tried myself, and I found that the results were very different when searching Google than they were when searching Google Australia.

Read the full post

Simple Countdown Timer for Windows

21 August 2009

I needed a simple timer utility for Windows, but I wasn’t satisfied with any of the programs available. So, I wrote Orzeszek Timer. Just enter the time to count down in just about any format, and hit Enter to start the timer.

Read the full post

How to Sync WMP and iTunes Ratings

17 August 2009

If you use both Windows Media Player and iTunes to manage your music, keeping your ratings synchronised can be a pain. Orzeszek Ratings lets you sync your play counts and ratings between Windows Media Player and iTunes with two clicks.

Read the full post

How to Delete Flash Cookies Conveniently

12 August 2009

A couple of days ago, Wired reported on the questionable use of Flash cookies revealed by a UC Berkley study. Many users are unaware that Adobe’s popular Flash plugin stores its own cookies separately from normal browser cookies. Here’s how to get rid of them.

Read the full post