On Thu, Nov 20, 2003 at 11:55:09AM -0500, Brian Pavane wrote:
> I am currently working with ethereal-0.9.15 and libpcap-0.6.2 on a Sun
> E250 running Debian Linux. The machine has two ethernet interfaces, hme0
> and hme1.
Wow. SPARC Linux doesn't call all Ethernet interfaces "eth{N}"?
> When tethereal is started without the "-i" tag, it defaults to
> hme0. I would like to change it, to default to hme1, and compile it as
> such, so I do not need to specify the "-i" tag upon each run of tethereal.
At least in 0.9.18 (I forget what version it was installed in), you can
set the default simply by
1) starting Ethereal, selecting "Edit->Preferences", selecting
"Capture" in that dialog box, putting the interface you want
in as "Default interface:", clicking "Save", and clicking
"OK"
or
2) editing "~/.ethereal/preferences if it exists, or creating it
if it doesn't (also creating "~/.ethereal" if it doesn't
exist) and:
if there's a line with "capture.device" on it, putting
the interface you want as the default as the interface
on that line;
if there isn't such a line, adding one of the form
capture.device: {interface}
where "{interface}" is the name of the interface you
want.
This affects Ethereal *and* Tethereal.
1) is easier. 2) works if you don't have GTK+ and thus don't have
Ethereal.