General TC > General TC Talk

Persistence Question - How is my ethernet still working ?

(1/9) > >>

MTCAT:
Hi everyone,

With a ton of help from Rich and curaga, I was able to get ethernet working and install a driver for an analog-digital-converter on TinyCore3 (2.6.33.3).

I'm now taking "baby-steps" towards automating the module insertion so I don't have to download all the packages every time (pciutlis.tcz, coreutils.tcz, compiletc, linux-headers-2.6.33.3-tinycore.tcz,, perl5, bash, etc., etc.)

I have a question regarding my ethernet though, it works fine every time I boot up, w/o me having to do anything, but, I'm not sure how this is working.....

The first thing Rich instructed me to do after we got the ethernet going was to look for a file in /opt called "bootlocal.sh", and in it there should be a line like "/opt/eth0.sh".

However, my bootlocal.sh file is completely empty, except for two comments.

#!/bin/sh
#put other system startup commands here

And there's no "eth0.sh" file in /opt either.

When Rich and I setup the ethernet, we "copied" the settings from Lubuntu which was 10.0.0.40 for my TinyCore SBC, and my router (Gateway) is 10.0.0.1, and applied these settings in the "Network" app, with "save configuration" marked as "yes", awesome, it worked.

But now, after many on-off cycles, my ethernet still works (great !), but it seems that TinyCOre is using a different IP address every time, it's almost as though dhcp is unknowingly running (even though it's turned off in Network app), for example, right now, ifconfig -a reveals an IP address of 10.0.0.151 for the VortexDX3 SBC ?

Sorry for all the questions, just trying to make sense of how things are retained/lost on boot/re-boot cycles..

Thanks,

David

Rich:
Hi MTCAT
When you shut down, you are supposed to use the  Exit  icon (all the way to the left). When the  Exit  app comes
up,  Backup Options  should be set to  Backup.  That will backup your  /opt  and  /home  directories so changes don't
get lost.

If you haven't already, I highly recommend you read the book found here:
http://tinycorelinux.net/book.html

MTCAT:
Hi Rich,

Thanks, I haven't been using the "Backup" option yet when I shut down, yet somehow/someway, my ethernet is still working !

Maybe I'll set it back to what we had before with the Network App, and then do the backup when I shut down.

Right now I don't have any .filetool.lst in /opt either.

Are you able to comment on this; this sounds really easy but I don't have a "Set" button in my Apps, is that because I'm using an old version of TinyCore ?

"In Appbrowser, simply use the Set button to tell tcl where you want to store your stuff, and automatically all your stuff becomes persistent."

"When you use Appbrowser to download extensions, the target location for downloaded extensions is shown in the Appbrowser's status bar, bottom right. When that location is the /tmp/tce/optional directory, there is also a Set button available, so that you can easily select a persistent location. When you specify a location for a /tce directory on a storage medium, then that directory will be created there (if it doesn't already exist) and all extensions will be stored there permanently, in a subdirectory called /tce/optional, instead of in the volatile /tmp/tce/optional. "

Rich:
Hi MTCAT
I want you to download the  TCscan.sh  script attached here:
http://forum.tinycorelinux.net/index.php/topic,23936.msg150689.html#msg150689

Then:

--- Code: ---chmod 775 TCscan.sh
./TCscan.sh
--- End code ---

When it finishes, it will print  Results written to TCscanDATETIME.txt.  Attach that file to your next post.

MTCAT:
Hi Rich,

I copied the script into the / directory, hopefully that's okay to run it from there ?

I had to go super-user though for the following;

sudo chmod 775 TCscan.sh
sudo ./TCscan.sh

Hopefully that's okay ?, here's the .txt file.

After running chmod (to change permissions ?) I ran just "./TCscan.sh" and I got a bunch of errors, couldn't write out the file I think, so I ran "sudo ./TCscan.sh" and that seemed to work.

Hope that doesn't mess up the test.

Thanks,

David

Navigation

[0] Message Index

[#] Next page

Go to full version