Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: jimmyd on April 12, 2010, 05:33:35 PM

Title: Gah! Simple Problem
Post by: jimmyd on April 12, 2010, 05:33:35 PM
I downloaded TC and installed. However, I cannot get the Appbrowser to work. I connect the Ethernet cable and my router assigns an IP via DHCP. I can both ping and run a traceroute to Yahoo.com servers. So the connection is live. But Appbrowser throws a "connection error, check network". ???

Any help?



Title: Re: Gah! Simple Problem
Post by: OldAdamUser2 on April 12, 2010, 05:49:54 PM
Try using the Panel to toggle DHCP or to play with the settings in netcardconfig.
Title: Re: Gah! Simple Problem
Post by: maro on April 12, 2010, 06:10:23 PM
Do you have a HTTP proxy somewhere on the way? I guess a simple wget $(cat /opt/tcemirror) will help you troubleshooting the connection to your currently selected mirror. To change the mirror use "Control Panel" -> "Select Mirror".
Title: Re: Gah! Simple Problem
Post by: jimmyd on April 12, 2010, 06:22:19 PM
Try using the Panel to toggle DHCP or to play with the settings in netcardconfig.

Yes, I did that and I couldn't get a setting to work.

I forgot to mention that that I was able to download a file successfully use wget. So it's not a networking connection problem.

edit: wget $(cat /opt/tcemirror that command throws an error "bad addess: 'distro.ibiblio.org'
Title: Re: Gah! Simple Problem
Post by: maro on April 12, 2010, 06:38:02 PM
Providing I can read the source code (http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/release/src/fltk_projects/appbrowser/appbrowser.fl) correctly, this error message should only appear when /usr/bin/tce-fetch.sh info.lst.gz is failing.

You could try this from the command line and (providing it downloads the file correctly) give 'appbrowser' another chance.
Title: Re: Gah! Simple Problem
Post by: jimmyd on April 12, 2010, 06:49:43 PM
/usr/bin/tce-fetch.sh info.lst.gz .

That command simply returns "not found".
Title: Re: Gah! Simple Problem
Post by: maro on April 12, 2010, 07:13:09 PM
What is the content of your '/opt/tcemirror' file? To "see" what's happening you could also try: sh -vx /usr/bin/tce-fetch.sh info.lst.gz

All this indicates to me that you've made a change somewhere from what I'd consider a "typical" TC system.
Title: Re: Gah! Simple Problem
Post by: jimmyd on April 12, 2010, 07:23:51 PM
What is the content of your '/opt/tcemirror' file? To "see" what's happening you could also try: sh -vx /usr/bin/tce-fetch.sh info.lst.gz

All this indicates to me that you've made a change somewhere from what I'd consider a "typical" TC system.

Not me! I just downloaded the distro, installed, booted. Didn't change a thing.

The results of the command you gave

read MIRROR < /opt/tcemirror
+read MIRROR
[ -f "$1" ] && rm -f "$1"
+[ -f info.lst.gz ]
busybox wget -cq "$MIRROR"/2.x/tcz/"$1"
+busybox wget -cq http://distro.ibiblio.org/pub/linux/distrabutions/tinycorelinux//2.x/tcz/info.lst.gz
wget: bad address: 'distro.ibiblio.org'



Title: Re: Gah! Simple Problem
Post by: maro on April 12, 2010, 08:06:14 PM
With this result it's hard to believe that you could "download a file successfully use wget".

Is DNS working? What do you get with cat /etc/resolv.conf? BTW, 'distro.ibiblio.org' appears to be 152.46.7.109, so you could try to replace 'distro.ibiblio.org' with '152.46.7.109' in '/opt/tce/mirror'.

Title: Re: Gah! Simple Problem
Post by: jimmyd on April 12, 2010, 08:21:27 PM
With this result it's hard to believe that you could "download a file successfully use wget".

Is DNS working? What do you get with cat /etc/resolv.conf? BTW, 'distro.ibiblio.org' appears to be 152.46.7.109, so you could try to replace 'distro.ibiblio.org' with '152.46.7.109' in '/opt/tce/mirror'.



just to be clear I did not download a file successfully from that address with wget, I downloaded a file from another website; I was just testing my internet connection.

I can successfully ping the IP you listed.

The result of the command cat /etc/resolv.conf returns the IP of my internet gateway.

BTW, thank you for taking the time to help.

UPDATE: Your suggestion of replacing the words with the IP worked successfully.  I now get a listing from Appbrowser.
Title: Re: Gah! Simple Problem
Post by: maro on April 12, 2010, 09:12:13 PM
OK, so it's a DNS issue.

If you can 'ping' an IP address you obviously have (some) network connectivity, but I wonder what happens when you ping distro.ibiblio.org or maybe even more interesting nslookup distro.ibiblio.org
Title: Re: Gah! Simple Problem
Post by: jimmyd on April 12, 2010, 10:08:25 PM
OK, so it's a DNS issue.

If you can 'ping' an IP address you obviously have (some) network connectivity, but I wonder what happens when you ping distro.ibiblio.org or maybe even more interesting nslookup distro.ibiblio.org

If I ping the first it just throws the same bad address. If I ping the nslookup it actually resolves the address (tells me it's 63.146.68.202) and sends packets but then it just hangs. If ping 63.146.68.202 directly it too hangs.

edit: I see I misunderstood the second command. If I type nslookup distro.ibiblio.org it returns the IP of my gateway.




Title: Re: Gah! Simple Problem
Post by: roberts on April 12, 2010, 11:01:43 PM
For DNS issues, might be helpful to read this:
http://forum.tinycorelinux.net/index.php?topic=753.msg12310#msg12310

Might want to change your /etc/resolv.conf to directly use your ISP DNS numbers or perhaps even a public DSN server such as:

nameserver 8.8.8.8
nameserver 8.8.4.4
Title: Re: Gah! Simple Problem
Post by: jimmyd on April 13, 2010, 07:40:59 AM
I don't understand why this is a problem though for just that name space. All I did was change the default mirror from "distro.ibiblio.org/pub" to "IP/pub". I then got a listing from Appbrowser. I then downloaded Firefox and was suffering the web just as normal as can be. In other words, it seems to resolve every other DNS correctly, just not that one.

I did notice last night that in the network card set up there are two lines for nameservers. When I boot the Live CD it defaults to the first nameserver to my Internet Gateway IP and leaves the second one blank. If I change that entry and apply and then type nslookup distro.ibiblio.org it will report whatever IP is in the first name server field. But it doesn't change my ability to connect to the internet: I can still surf the web even when I blank that field out and hit apply.
 
Title: Re: Gah! Simple Problem
Post by: tothz on May 18, 2010, 06:08:41 AM
Hy everybody,

I have same problem.. I got error message when I try connect to APPS server..
I can ping distro.ibiblio.org...
I run "sh -vx  /usr/bin/tce-fetch.sh info.lst.gz" and the file downloded to opt directory...
But Appbrowser said  "Conection error, check network or ibiblio
any idea?

thanks
zoltan
Title: Re: Gah! Simple Problem
Post by: tothz on May 19, 2010, 01:50:15 AM
Hy

ok its proxy problem..
if i use proxyless network its work..
how can i say to apps browser that use proxy settings?
in terminal work well the export settings..
thanks
Title: Re: Gah! Simple Problem
Post by: maro on May 19, 2010, 04:58:31 PM
I assume you have found that setting http_proxy in a shell before starting 'appbrowser' will allow that application to connect to the repository.

If you want to ensure that the export http_proxy='proxy.domain: port' setting gets applied to all shells I'd suggest to create a file in '/etc/profile.d' (e.g. '/etc/profile.d/proxy.sh') that contains this setting. Please note:

Alternatively you could add this setting just to the '~/.profile' file of your current user (which should be included in the default set of files to be backed-up). This would limit the setting just to the current user and not apply system wide.

Edit: Correction of a meaningless command example.
Title: Re: Gah! Simple Problem
Post by: curaga on May 20, 2010, 01:19:52 AM
Should sh -c above be echo? I'd think the current command would create an empty file.
Title: Re: Gah! Simple Problem
Post by: maro on May 20, 2010, 06:52:23 PM
Thanks curaga for reading so carefully and bringing this to my attention. Indeed this whole command did not make sense, since the 'sudo' and the 'echo' somehow "got lost" and the double-quotes were not around the entire command.

[A bit OT] Maybe there is a better way, but this sort of command is what I use to directly write from a "user shell" to a file owned by 'root'. Surely one could simply change the shell to be a "super-user shell", but when quoting commands in posts here I assume that the user is "non-root".

Never mind it should now be correct.