I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / I-Opener Areas / I-Opener Technical Stuff
Midori network settings
Midori network settings

New MessageMidori network settings (modified 0 times) JeffJ
Profile | Email
I debated whether to post here or to the Midori area...I decided to start here.

I just installed Midori Linux (m4i-2.1-pre5 obtained from http://vischeck.homeip.net/m4i/ ) on my I-Opener's flash disk. I'm using a Linksys USB100TX usb network adapter. Dmesg shows me that the adapter is detected properly, and I can successfully ping computers on my lan and on the internet through my gateway using their IP address but not their hostname. Sounds like a simple DNS misconfiguration to me, right?

Well, I put the correct dns server in the dns field of the network setup, even did a save configuration, even rebooted just in case, but still the same. I looked at the contents of /etc/resolv.conf & it was empty...and I even saw resolv.conf in the list of written files when I did the configuration save, but it seems that it didn't write it. After issuing "echo dns.server.ip.addy > /etc/resolv.conf" then it did contain the ip address of the dns server & could be verified by doing a "cat /etc/resolv.conf". Still no hostname lookups were being done though, and Opera could not view any webpages using their hostname. I can tell that a hostname--->IP lookup isn't even being attempted because when I try to load a webpage using the hostname (ie. www.cnn.com) the TX/RX light on the adapter does not flash, indicating there is no network activity at all. To make it even stranger, the dns server ip address in /etc/resolv.conf gets erased evey time I reboot. Can anyone tell me why this is happening and why dns lookups are not being performed?

I don't think this is a routing issue as I can ping ip addresses within my lan and on the internet (including the dns server itself), just no hostnames. I'm also sure it's not a hardware issue for the same reason. Is there something silly I'm overlooking or forgetting?

Any help would be appreciated...

P.S. Excellent job to those involved in putting this together!

Thanks,
Jeff

12-28-2002 11:54:47

New MessageRE:Midori network settings (modified 0 times) JeffJ
Profile | Email
Ok, here's an update. After making the last post I fiddled around with it a little longer & remembered the format for resolv.conf. Just the ip of the dns server isn't enough (duh), it has to have "nameserver" on the line in front of it. Luckily Midori has vi included so I was able to do it appropriately. /etc/resolv.conf is actually a symlink to /tmp/config/resolv.conf, so I edited that file.

The problem is, it's still not resolving. Did I screw something up by doing all this? should I go back & reinstall the Midori image & start from scratch? And I don't understand WHY it's not resolving.

Jeff

12-28-2002 13:53:22

New MessageRE:Midori network settings (modified 0 times) JeffJ
Profile | Email
Another update on the issue.....

I went ahead & installed the image fresh. Went through the network configuration & still the same symptom, able to reach internet hosts with their ip address, but not their hostname. Hostnames are not resolving to ip address for some reason. The DNS server I supplied is the same one my other systems use. I tried a different DNS server just to be sure.

The next thing I tried had an interesting outcome...

Since the website does say that version 2 is "experimental" I decided to downgrade to version 1.1.2. After installing 1.1.2 I went through the network configuration exactly the same as I did with 2.1pre5 and it worked perfectly. DNS lookups were working as they should be. That tells me that something regarding DNS has changed between 1.1.2 and 2.1pre5. Anyone have a clue?

The other odd thing is that while streaming mp3's with xmms (off of mp3.com) it was skipping & popping horribly. I've done Buttonpuncher's audio out mod (very cool!) and I use my io pretty much solely as a streaming mp3 player with pre-amp out to my tuner/amp. It works like a champ & sounds great. It's been running Win98se on a 6gig IBM laptop hd, but I'd like to remove the hd & lasagna cooler & go totally fanless (silent). I can stream mp3's all day long with no skipping or popping in windows, unless I'm doing other stuff that puts a load on the system. Under Midori linux, the sound would act up constantly, no matter what I was doing. I would think that the opposite would be the case...usually thing work better & tax the system less under linux it seems. Does anyone have any ideas on that one?

BTW, my io is a V3 (gooped bios chip, painstakingly removed & replaced) with the C6 Winchip 200mhz & Yamaha audio chipset, 128meg sodimm, very early badflash bios, I-MOD2 kit, TennMax Lasagna cooler.

Thanks again,
Jeff

12-28-2002 21:03:55

New MessageRE:Midori network settings (modified 0 times) bob94025
Profile
That's really strange. As far as i can tell, nothing related to DNS lookups changed between m4i-1.2 and m4i-2.1. The only difference is that /etc is a softlink to /tmp/etc_real in 2.1 (necessary to make samba work).

resolve.conf should be overwritten by the ifup script (/sbin/ifup), based on the $DNS var that is set in /tmp/config/net/eth0. Maybe that file wasn't being created properly by the http network configuration form?

Anyway, setting /etc/resolve.conf works for me, so I'm not sure I can debug this one.

As for the xmms issue- you can check if your cpu is struggling by looking at your load (cat /proc/loadavg). The first number is your current load- if it is above 1.0 while xmms is playing, then your cpu is falling behind. If you think it is a cpu load issue, You might also try using mpg123 from the command line to listen. It is less resource-intensive than xmms.

12-31-2002 22:41:29

New MessageRE:Midori network settings (modified 0 times) JeffJ
Profile | Email
Happy New Year!!!

I messed around with it a little more the other day & I think I figured out what's going on. I reflashed 2.1-pre5 to experiment (Netscape is too much of a pig). After doing the network configuration through the web interface my dns lookups wre not working. Since /etc/resolv.conf is a symlink to /tmp/config/resolv.conf, and that file contained nothing, I manually edited it and included my dns server. Now dns lookups were working properly (yoohoo...finally!). Opera is kind of odd though in that it has to be exited & restarted before it would resolve hostnames. Anyway, after a reboot the contents of /tmp/config/resolv.conf were gone, so dns lookups were failing again & I had to edit the file again to get it working. That would be quite a kludge to have to manually edit a file each time you boot in order to get dns working. I found out though that after executing "freeze" from the command line the contents of /tmp/config/resolv.conf were consistent across reboots, so problem solved. It would seem though that the web interface was, for some reason, not creating resolv.conf properly.

One other question that concerns Opera & cookies. I sometimes stream mp3's from mp3.com. The first time you stream from there you have to fill out a form & give them your name, email, location, etc. and it leaves a cookie on your system. On subsequent streams, as long as the cookie is there it goes right to streaming, otherwise you have to fill out the form again. Cookies are turned on, but it obviously does not save the cookies across reboots, even with a freeze command. I haven't gotten very familiar with the filesystem arrangement under M4I. Where does Opera store it's cookies while the io is running, and is there anywhere I can copy it to so that it will still be there after a reboot? ...also on the same note...is there an explanation anywhere on how the M4I filesystem is setup? What is where, what's actually on the flashdisk, what's read into the ramdisk (I assume it creates a ramdisk). I would just like to understand what's going on, and how I can make changes permanently if I wanted to.

Oh, and about the xmms cpu utilization issue, I found that if I turn all visualizations off (I had been running the default spectrum analyzer), it almost totally clears it up. The only time it seems to act up now is when Opera is loading a large page with a table it has to format(the audio actually slows down and starts to sound really crappy), otherwise it's perfect.

Thanks for all the help,
Jeff

01-01-2003 07:36:06

New MessageRE:Midori network settings (modified 0 times) bob94025
Profile
I found the resolve.conf problem. It is actually set in /sbin/ifup, which was writing the DNS entries to /tmp/resolv.conf. However, the link in /etc points to /tmp/config/resolv.conf. I've fixed this for the new release.

Also, I've added some notes about the M4I filesystem structure to my site (http://m4i.homeip.net/#techNotes ). Note that the next release will simplify things by making everything in /etc/ configurable and saveable. /etc will be a softlink to /tmp/config/etc, so all your /etc stuff will be saved to /config when you freeze your configuration.

cheers,
bob

PS. the new image should be posted on my site any day now.

01-07-2003 11:14:17

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3