---
title: "Firestarter the device eth0 is not ready"
author: "andyao"
date: "2008-07-06T11:25:35Z"
tags: ["Java", "Ubuntu"]
categories: ["操作系统"]
slug: "firestarter-the-device-eth0-is-not-ready"
draft: false
lastmod: "2008-07-06T11:25:35Z"
id: 212011
url: "https://andyao.iteye.com/blog/212011"
---

**一种解决方法**
该方法的思路是: firestarter使用ifconfig获取IP地址，如果ifconfig的输出时使用了非en_US的locale，那么firstarter就取不到ip的信息（比较傻，匹配的时候不支持中文），所以可以在使用ifconfig之前设置locale

```java

sudo gedit /etc/firestarter/firestarter.sh
找个合适的地方，例如在
# External network interface data
这行注释的上面，添加一行：
LANG=en_US
保存后
sudo firestarter

```

**另外一种解决方法**
设定固定ip, 原理不祥

```java

auto eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.1

```


我在使用中第一种方法不起作用，第二种方法可以。