Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: MTCAT on February 13, 2021, 03:49:50 PM

Title: [Solved] Need help getting internet going so I can install extra packages
Post by: MTCAT on February 13, 2021, 03:49:50 PM
Hello,

I'm completely new to TinyCore Linux but really like it so far.

I'm running an old version (TinyCore 3, kernel 2.6.33.3) in an attempt to maintain compatibility with ADC driver and data acquisition software.

However, I need to install some more software (gcc - to build the ADC driver, and pciutils.tcz - PCI interface to ADC), but I haven't been able to get my internet working.

I'm using a wired connection, ifconfig -a reveals that eth0 is there, but it's not active I guess.

I'm very sorry, but I can't even edit a text file, I've tried "joe", "nano", "vi", "emacs" and "editor" and nothing works for me.

I assume I need to add some commands to a start up file to bring up eth0 interface ?

I'm hoping to do that in order to execute "tce-load -wi compiletc"  to get gcc, and I'm not sure how to add pciutils.tgz

I apologize as well, I created an account but I still haven't been able to access the Wiki page.

Thanks in advance for the help. Sorry for posting incorrectly to TCB Talk as well, I'm new to forums in general.
Title: Re: Need help getting internet going so I can install extra packages
Post by: Rich on February 13, 2021, 04:03:57 PM
Hi MTCAT
Welcome to the forum.

If you enter this:
Code: [Select]
sudo ifconfig eth0 up
Is eth0 active then?
Title: Re: Need help getting internet going so I can install extra packages
Post by: MTCAT on February 13, 2021, 04:30:27 PM
Hi Rich, thanks for your reply, and welcoming me to the Forum, I will try this shortly...

David
Title: Re: Need help getting internet going so I can install extra packages
Post by: MTCAT on February 13, 2021, 05:36:16 PM
Hi Rich,

I tried out "sudo ifconfig eth0 up" and it seemed to work, didn't get any errors, but I still can't ping "google.com" (I also tried ping 8.8.8.8), if I try to execute "tce-load -wi compiletc" I get a bunch of errors still.

I took some screen shots but couldn't make them small enough for loading here, and still be legible.

So I'm not sure, for some reason we can see eth0 as being "there", but it's not talking to the outside world yet.

Any ideas as to what else I can try ?
Title: Re: Need help getting internet going so I can install extra packages
Post by: MTCAT on February 13, 2021, 05:39:42 PM
Sorry, just had to save as jpeg's, here's the screen-shots, with output of "ifconfig -a" before and after executing "sudo ifconfig eth0 up"

Thanks,
Title: Re: Need help getting internet going so I can install extra packages
Post by: Rich on February 13, 2021, 08:30:56 PM
Hi MTCAT
Click on the  Control Panel  icon at the bottom of the screen. It's the icon with the screwdriver on it. When it comes
up, click on the  Network  button. Fill in the fields and click  Apply  and if necessary,  Exit.  Then try  ping  again.
Title: Re: Need help getting internet going so I can install extra packages
Post by: MTCAT on February 13, 2021, 09:34:37 PM
Hi Rich,

Thanks so much for the help, this did make some progress, seems I can transmit now, but still am not receiving, attached screenshot.

I tried both DHCP (which never seems to work for me) and static, I just made up an IP address for static of 192.168.1.20 ?

Attached a screenshot of behavior with my attempt with static IP address.

Maybe you can see a mistake ?

Thanks

[attachment deleted by admin]
Title: Re: Need help getting internet going so I can install extra packages
Post by: Rich on February 13, 2021, 09:43:19 PM
Hi MTCAT
The  Gateway  address is probably wrong. The  Gateway  is your router. The address is likely  192.168.1.1.
You also want a  Name Server  listed. The  Name Server  is what resolves  google.com  to an IP address.
You can try using  192.168.1.1  for the  Name Server  field for now.
Title: Re: Need help getting internet going so I can install extra packages
Post by: MTCAT on February 13, 2021, 09:54:06 PM
Hi Rich,

I tried 192.168.1.1 for the Gateway address and the nameserver and unfortunately that still didn't work.

I apologize for my ignorance, how can I find out the IP address of my router ? Is it listed on it (Xfinity modem).

Thanks
Title: Re: Need help getting internet going so I can install extra packages
Post by: corezoo on February 13, 2021, 10:02:11 PM
Can you ping 192.168.1.1, enter in a web browser and the modem page will come up. Are you locked out of the modem?
I think 8.8.8.8 is the address of google's DNS.
Title: Re: Need help getting internet going so I can install extra packages
Post by: Rich on February 13, 2021, 10:09:31 PM
Hi MTCAT
If you run:
Code: [Select]
ifconfig -aDoes it show that  eth0  has  192.168.1.20  assigned to it?

Also, we are talking about a wired connection here, right? There is a cable between your machine and router, yes?

See if this produces a response:
Code: [Select]
sudo ping 192.168.1.1
Title: Re: Need help getting internet going so I can install extra packages
Post by: MTCAT on February 13, 2021, 10:13:41 PM
Hi Rich,

No, I can't ping 192.168.1.1 either, I don't think I'm locked out of the modem, I was able to get a newer version of Lubuntu (16.04, kernel 4.4.6) going on the same hardware this afternoon....could we get some hints from that somethow ?

I'm hoping for TinyCore though !, I really like the minimalist approach.

I don't think I have a web browser installed yet though (in Tiny Core 3) ?

Just saw your new post as well, yes, "ifconfig -a" shows 192.168.1.20 assigned to eth0, so that's good.

Yup, direct wired connection, the "sudo ping 192.168.1.20" unfortunately wasn't successful either.

Thanks,

David

Title: Re: Need help getting internet going so I can install extra packages
Post by: Rich on February 13, 2021, 10:22:48 PM
Hi MTCAT
... I was able to get a newer version of Lubuntu (16.04, kernel 4.4.6) going on the same hardware this afternoon....could we get some hints from that somethow ? ...
Absolutely. Open a terminal under Lubuntu and do this:

Code: [Select]
ifconfig -a 2>&1 > network.txt
Code: [Select]
route 2>&1 >> network.txt
And post the contents of  network.txt.
Title: Re: Need help getting internet going so I can install extra packages
Post by: MTCAT on February 13, 2021, 10:39:09 PM
Hi Rich,

Thanks again for all this help, here's the screenshot of network.txt (from Lubuntu) after doing the commands you instructed !

I guess Lubuntu uses a new style of naming convention for the interface, I like the older style better !
Title: Re: Need help getting internet going so I can install extra packages
Post by: Rich on February 13, 2021, 10:53:23 PM
Hi MTCAT
If Lubuntu is using a wireless connection, which it might be, then the following won't work:
Set IP address to 10.0.0.40
Set Network Mask to 255.255.255.0
Set Broadcast to 10.0.0.255
Set Gateway to 10.0.0.1
Set Name Server to 10.0.0.1
Title: Re: Need help getting internet going so I can install extra packages
Post by: MTCAT on February 13, 2021, 11:06:01 PM
Hi Rich,

SUCCESS !, with one catch, this little computer board I'm playing around with has two ethernet ports (controllers ?), 100 MBit and 1000MBit, in Lubuntu I was using the 1000 MBit.

Using the newly found IP address's I still wasn't able to use the 1000MBit port in TinyCore3, BUT, the 100 MBit does work !, so that's plenty good enough !, awesome !

I can ping 10.0.0.1, 8.8.8.8, so all seems good.

Now, how do I connect to the tinylinux repository to download packages ! :D
Title: Re: Need help getting internet going so I can install extra packages
Post by: Rich on February 13, 2021, 11:11:09 PM
Hi MTCAT
I think the icon that looks like 2 gears will launch the Apps utility.
Title: Re: Need help getting internet going so I can install extra packages
Post by: MTCAT on February 13, 2021, 11:21:20 PM
Hi Rich,

This is great !, I installed pciutils.tgz already, it worked, seems really fast too.

May I bother you with one more question ? How can I make these changes permanent, otherwise I may have to go through this each time I start up I assume ? Maybe you can point me to an article ? I'm currently reading through the "Into the Core" book.

Thanks so much for all your help, I've been struggling for weeks with other distro's and this has actually been fun ! Thanks.
Title: Re: Need help getting internet going so I can install extra packages
Post by: Rich on February 13, 2021, 11:31:46 PM
Hi MTCAT
They should already be permanent. The  Network  utility should have created a startup script in  /opt  called  eth0.sh.
Run this command:
Code: [Select]
cat /opt/bootlocal.sh
Does it include a line that looks like this:
Code: [Select]
/opt/eth0.sh
If not, then run this command:
Code: [Select]
sudo echo "/opt/eth0.sh" >> /opt/bootlocal.sh
Now your network should be operational every time you boot.
Title: Re: Need help getting internet going so I can install extra packages
Post by: MTCAT on February 14, 2021, 02:06:44 PM
Hi Rich,

Thank you very much for your help, I'm looking forward to trying to build my ADC driver in Tiny Core 3, and ultimately (hopefully) get my data acquisition software running as well. Although, for the latter, there are "real-time" elements involved as well, so not sure yet how that may work out, but I'm encouraged to see that there are real-time "patches" for TinyCore too, hopefully it will all work out !

Thanks again for all your help.

Cheers,

David
Title: Re: Need help getting internet going so I can install extra packages
Post by: Rich on February 14, 2021, 02:09:47 PM
Hi MTCAT
I take it that I can mark this thread as solved?
Title: Re: Need help getting internet going so I can install extra packages
Post by: MTCAT on February 16, 2021, 10:21:44 AM
Hi Rich, sorry for the delay in responding, I've been away from my computer for a few days, yes please, you can mark this as SOLVED !.

Thank you very much for all your help.

Now I need to build and install the ADC driver, I have a question regarding that, but I should probably start a new "thread" for that.

Thanks,

David
Title: Re: [Solved] Need help getting internet going so I can install extra packages
Post by: Rich on February 16, 2021, 10:26:32 AM
Hi MTCAT
Yes, please start a new thread for that.  TCE Talk  is probably a good place for that.