Tiny Core Linux

Tiny Core Base => CorePlus => Topic started by: Benny7440 on July 26, 2012, 08:55:01 AM

Title: How to boot CorePlus-4.5.5.iso frugally?
Post by: Benny7440 on July 26, 2012, 08:55:01 AM
After reading many pages (some twice) about TC I still don't understand how I can boot frugally CorePlus. Almost all the references are for TC & it's not clear if all that applies to CorePlus, too.

I've d/l the CorePlus4.5.5 iso file to my VAIO's hdd (a non-mounted partition) but after some trials using a cfcard with usb adapter & grub as I do frugally for some puppies in their respective folders it has failed to boot.

For clarifying an issue: I'm using a VAIO but, after successful frugal installation plan to install in cfcard, its main use is to boot an HPCompaq nx9010 laptop which has no hdd at the moment.

Have tried PXE booting & netbootme in the HP but without any luck.

Some help is needed to do this. The cfcard is just rated 128MB & it's almost full right now with an installation of PL431, it's small but too big for the card.

PS. Does the FF browser includes the jre plugin? If the answer is no, how can I d/l & install it after booting successfully?

Thanks in advance for your kind help on this!

EDIT: My tc folder looks like this:
1) along with the other OSs folders I renamed the TC one to tc;
2) within tc there're 2 other folders: a) boot & b) tce (empty);
3) boot contains: a) an isolinux folder, core.gz & vmlinuz;
4) boot/isolinux contains: 9 files --from boot.cat to menu.c32 with no other folder there.

The relevant part of my grub menu.lst file has:

"# 6) Tiny Core bootable partition config begins
  title Core4 dir tc
  rootnoverify (hd0,1)
  kernel /core4/vmlinuz quiet showapps nozswap pause tce=/core4/tce printk.time=1 lst=core4.lst
  initrd /core4/core.gz
# Tiny Core bootable partition config ends".
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: curaga on July 26, 2012, 10:36:31 AM
It sounds like your bootloader points to the wrong directory. You say you have the kernel at /tc/boot/vmlinuz but your conf points to /core4/vmlinuz.

CorePlus is simply TC + a set of extensions already there, so everything should apply to it.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Benny7440 on July 26, 2012, 09:48:45 PM
Thanks for replying curaga!

Today I studied the menu.lst file calmly & noticed those inconsistencies as you mention. I just copied/paste those from another forum. After reading today a new post in that forum by the same person I still noticed a 'core4' reference which I left there because I don't know its intention for the moment. The edited menu.lst file now looks like this (see text in red):

"# 6) CorePlus partition config begins
  title tinycorelinux dir tc
  root (sdb1,1)
  kernel /tc/vmlinuz quiet showapps nozswap pause
  waitusb=10:UUID tce=/tc/tce printk.time=1 lst=core4.lst
  initrd /tc/core.gz
# CorePlus bootable partition config ends"

I noticed that after copying core.gz & vmlinuz it's only about 9 MB in total (in the other forum that person stated that all the isolinux folder was unnecessary because I was going to boot from a cfcard in an usb adapter & not from a live cd. So, the boot folder in tc is empty. Do you agree?
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: curaga on July 27, 2012, 02:58:37 AM
Quote
So, the boot folder in tc is empty. Do you agree?
Yes, you don't need isolinux files if you use another bootloader. The location of the kernel and initrd doesn't matter.

Quote
The edited menu.lst file now looks like this (see text in red):

You should remove any bootcodes you're not sure you need. The lst option changes what list extensions are loaded from, and your tce= option is wrong.

Try with just "kernel /tc/vmlinuz quiet waitusb=10:UUID=myuuid", where myuuid is replaced by the UUID of your CF card (use blkid to find it out).
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: floppy on July 28, 2012, 05:19:55 AM
lst=core4.lst
The core4.lst is in fact a onboot.lst (or other files from the ISO) which was renamed to core4.lst
This is NOT a menu.lst renamed to core4.lst
This is a text file which contain all TinyCoreLinux applications which must be loaded at boot.
Read the wiki (or the other posts in www.linuxquestions.org).

Here is an example of one of my PCs:

====================== core4.lst ========================
fltk-1.10.tcz
Xlibs.tcz
appbrowser-cli.tcz
wbar.tcz
Xprogs.tcz
flwm_topside.tcz
Xorg-7.5.tcz
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: tinypoodle on July 28, 2012, 06:24:14 AM
Here is an example of one of my PCs:

====================== core4.lst ========================
fltk-1.10.tcz
Xlibs.tcz
appbrowser-cli.tcz
wbar.tcz
Xprogs.tcz
flwm_topside.tcz
Xorg-7.5.tcz

Note that adding dependencies of other extensions is redundant.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Benny7440 on July 28, 2012, 06:44:05 PM
Thanks to all that have contributed to my flaky understanding of this issue!

I've been trying to boot both laptops with TC, the VAIO via the grub I'm already using with a folder in sda2 with the necessary folders/files included there, from the cfcard too & the HP with the card in usb adapter (always the card was used with the adpater for usb). Never have seen a window with anything on it that tells me that TC is trying to do something.

So, I'm going to concentrate in trying to boot the HP with TC in the cfcard only. All editing have to be made in the VAIO, though.

The HP gave me an error message as follows:
 "Try (hdo,0): EXT2: No grldr
  Try (hdo,1): Invalid or null
  Try (hdo,2): Invalid or null
  Try (hdo,3): Invalid or null
BIOS: Drive=0x0, H=2, S=18
There's some more info but I deem it not congruent with this issue"

Have tried some different configurations of menu.lst when tried to boot the VAIO (frugally) but always the default OS booted up, but this last piece isn't important anymore.

Does anybody here is booting TC in a laptop via usb installation? If so, can you post your settings below?

Thanks in advance!

PS. I've been given a variety of configurations for grub's menu.lst but I don't know for sure what boot loader was used for Core Plus (guess was Grub4Dos). Can't I put a "pointer' in my menu.lst file for the boot loader in the sdb1 (cfcard) for making this last one boot TC? If possible it might be even easier than frugally doing so as I do the puppies I already have!

I was reviewing that menu.lst file that I use in the VAIO for frugally booting it up & discovered what I believe is an error: when trying to boot frugally I was referring to the partition of the hdd (sda2) but the UUID of the cfcard was included there anyway. I'm trying now to reboot after inserting there the sda2 corresponding UUID to see if this helps...

I'm posting this now because have to reboot. Tell you after I'm up again with the outcome of it.

Edit: I rebooted about 5 times but my PL528.005 was always the booted OS. I'm going to make a little change in menu.lst & try again.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Rich on July 28, 2012, 08:36:25 PM
Hi Benny7440
It's difficult to follow what you are doing, jumping back and forth between two laptops and such. If I understand you
correctly, you have grub running and able to boot you choice of OSs. I'd like you to post two entries from your
menu.lst file, the TC entry which does not boot, and an entry which successfully boots from the same drive. That
should be enough for someone to fix whatever syntax problem is causing TC not to boot.

Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Benny7440 on July 29, 2012, 03:00:45 PM
Thank you Rich for replying on this issue!

I'll post below the requested segments:

Current OS in everyday use:
"# 1) Linux bootable partition config begins
  title Puppy Linux 528-005 frugal in sda2 dir puppy528-005
  rootnoverify (hd0,1)
  kernel /puppy528-005/vmlinuz pmedia=atahd psubdir=puppy528-005
  initrd /puppy528-005/initrd.gz
# Linux bootable partition config ends
"

Current entry for CorePlus:
"# 6) CorePlus partition config begins
  title tinycorelinux frugal in sda2 dir tc
  rootnoverify (hd0,1)
  kernel /tc/vmlinuz quiet showapps nozswap pause
#  waitusb=10:(sda2) e7d0505e-59c4-4958-87db-cfe1c2528822
  tce=/tce printk.time=1 lst=core4.lst
  initrd /tc/core.gz
# CorePlus bootable partition config ends
".

Hope this help to clarify things, thanks!

Addendum: In the cfcard I've core.gz, vmlinuz & 3 folders at root: boot (empty), isolinux (9 files here) & tce (empty). The boot folder is empty because I moved its contents to root in the hope it would be more readily available in the booting process (probably a mistake by my part).
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: gerald_clark on July 29, 2012, 04:57:41 PM
All boot options belong on the kernel line.
Remove the commented waitusb line, and the tce line.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Rich on July 29, 2012, 06:28:00 PM
Hi Benny7440
Try this:
Code: [Select]
# 6) CorePlus partition config begins
  title tinycorelinux frugal in sda2 dir tc
  rootnoverify (hd0,1)
  kernel /tc/boot/vmlinuz quiet showapps nozswap pause waitusb=10 tce=sda2 printk.time=1
  initrd /tc/boot/core.gz
# CorePlus bootable partition config ends
Move vmlinuz and core.gz back into /tc/boot/
This should allow you to boot. When you see the desktop, open AppBrowser and make sure the field labeled
TCE:  reads  /mnt/sda2/tce/optional
You should now be able to install applications.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Benny7440 on July 29, 2012, 08:53:22 PM
Thank you a lot, Rich; it booted up. My only issue is that I didn't get a desktop but only arrived at the bash console.

How can I get a common desktop, should I include a code at boot time?

PS. All this's in the sda2 partition in the hdd of the VAIO, can I pass some knowledge to the cfcard for booting up the HP?
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Rich on July 29, 2012, 09:05:38 PM
Hi Benny7440
I'm not sure why the desktop would not come up. I see Juanito is on line, maybe he has some ideas.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Juanito on July 29, 2012, 09:09:47 PM
I guess it depends what is in onboot.lst?
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: gerald_clark on July 29, 2012, 09:13:20 PM
tce-load -iw Xvesa Xprogs Xlibs flwm_topside wbar
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Benny7440 on July 29, 2012, 09:29:38 PM
After reading your posts I looked at the tc folder & found that now there's a tce folder besides it as well as inside tc (empty), the former has 2 folders: ondemand & optional both empty & the empty file onboot.lst. Hope that to fix this is something as simple as to know what to put inside this last file...

I don't get it gerald_clark, is this post of you another boot code to be inserted inside menu.lst or a bash command to run once I'm there?

Thank you a lot Rich, Juanito & gerald_clark for your support!
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Rich on July 29, 2012, 09:34:00 PM
Hi Benny7440
Enter that command at the console.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Benny7440 on July 29, 2012, 11:02:49 PM
Sorry but that command didn't work, gave me "X is a wrong tag" or something like that. Now that I'm writing this I recall that I didn't tried it with x (lower case).

Here in PR is late in the morning & I'm quitting for today... Thanks!
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Rich on July 30, 2012, 06:13:26 AM
Hi Benny7440
Linux is case sensitive, the uppercase X is correct.
Quote
gave me "X is a wrong tag" or something like that.
If you get an error, you need to be precise about what it says.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Benny7440 on August 02, 2012, 02:44:32 PM
I tried that command again & this time I received the following:

"bash: tce-load: command not found"

Who knows, I might have got one or two letters wrong the first time (I was too sleepy).

I don't know if I'm running that command as su or not. How can I be super user here? What are the user id & pwd?
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: gerald_clark on August 02, 2012, 03:10:25 PM
You must run tce-load as user tc.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: tinypoodle on August 02, 2012, 04:53:10 PM
Why bash?
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Benny7440 on August 02, 2012, 05:20:12 PM
To tinypoodle: If your question "Why bash?" refers to what I've posted the answer is that bash was included there because the system included that with the message after the said command.

To gerald_clark: if I identify myself as user=tc, what it would be the pwd?

Thanks!
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Rich on August 02, 2012, 05:33:01 PM
Hi Benny7440
Do you have a command prompt? What does  whoami  return?
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Benny7440 on August 02, 2012, 05:53:58 PM
Thank you Rich for replying!

I'm root. The command prompt is: #.

Edit: I already installed FF 14.0.1. I'm going to test it right now.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Rich on August 02, 2012, 06:01:12 PM
Hi Benny7440
Try   login tc
If it asks for a password, just hit enter. Then try the command gerald_clark gave you again.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Rich on August 02, 2012, 06:19:31 PM
Hi Benny7440
Quote
Edit: I already installed FF 14.0.1. I'm going to test it right now.
Until you have X running, I wouldn't expect Firefox to run.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: tinypoodle on August 03, 2012, 12:41:09 AM
What does "ls -l `which sh`" return?
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Benny7440 on August 04, 2012, 08:01:00 PM
I'll ask from all that have helped me in this issue your excuses because, for an urgent issue with a friends computer, had to take out Tiny Core from the CFCard & use it in another way.

The OS still attracts me. Have learned that it should be possible for me to boot it right from the internet at: http://www.netboot.me/help#chainload. Does any of you have tried this before?

I'm thinking that, if I'm booting up frugally some pups at the VAIO, can't I give some instructions to grub for fetching that iso file from the internet and boot it up? Or booting it up frugally right away?

Which way to go (your recommendations)?

PS. Do you recommend me to open another thread instead of pursuing this here?

Thanks!
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: gerald_clark on August 04, 2012, 08:08:07 PM
No, you cannot boot over the internet.
The closest would be a pxe boot over your LAN.
The wiki has some information on network booting.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Benny7440 on August 10, 2012, 09:16:50 AM
The way I'm trying to boot CorePlus is as follows:
1) using a VAIO notebook with 120 GB HDD;
2) the hdd has 3 partitions, I'm using sda2 with ext3 & 6.2 GB;
3) almost sure that my boot loader is grub (legacy);
4) have 2 folders, one for tc & tce (grub's looking for tc).

Today at the terminal I issued that command but it failed many times. I, then, tried to login with tc + Enter & this failed, too. I think I tried TC instead & that worked??? Then the command started OK but failed with:

"Downloading: Xvesa.tcz
Connecting to distro.ibiblio.org (152.19.134.43:80)
wget: short write
mount: mounting /dev/loop0 on /tmp/tcloop/Xvesa failed: invalid argument"

I tried many variants of the command like taking the plural (s) from each entry below (one at a time as well as more up to all of them) & changing the '_" to "-" & leaving a simple space there but all the time it was the same or worst. I'm including the command below for easy reference:

tce-load -iw Xvesa Xprogs Xlibs flwm_topside wbar

There're some intriguing facts now, how to logout/login & what are the corresponding pwds in CorePlus? Can't I download that file from PL528 that I'm using now & place it in its appropriate place for it to be available next time I start CP?

Thank you all for your patience with these issues!
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: tinypoodle on August 10, 2012, 10:12:51 AM
It is very difficult to understand what your situation is and what you are doing...
You still have not replied to my question from Reply #27
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: floppy on August 11, 2012, 05:02:42 AM
The way I'm trying to boot CorePlus is as follows:
1) using a VAIO notebook with 120 GB HDD;
2) the hdd has 3 partitions, I'm using sda2 with ext3 & 6.2 GB;
3) almost sure that my boot loader is grub (legacy);
4) have 2 folders, one for tc & tce (grub's looking for tc).

Today at the terminal I issued that command but it failed many times. I, then, tried to login with tc + Enter & this failed, too. I think I tried TC instead & that worked??? Then the command started OK but failed with:

"Downloading: Xvesa.tcz
Connecting to distro.ibiblio.org (152.19.134.43:80)
wget: short write
mount: mounting /dev/loop0 on /tmp/tcloop/Xvesa failed: invalid argument"

I tried many variants of the command like taking the plural (s) from each entry below (one at a time as well as more up to all of them) & changing the '_" to "-" & leaving a simple space there but all the time it was the same or worst. I'm including the command below for easy reference:

tce-load -iw Xvesa Xprogs Xlibs flwm_topside wbar

There're some intriguing facts now, how to logout/login & what are the corresponding pwds in CorePlus? Can't I download that file from PL528 that I'm using now & place it in its appropriate place for it to be available next time I start CP?

Thank you all for your patience with these issues!

I have the feeling you are jumping back from a USB boot into a CD boot; correct?
So, please stick to the USB boot/install (so far I understood, this was your wish),
- boot again into your USB 
- use the tce-load -wi xxx (see older posts)
- answer the questions the others persons are asking
- and put "startx" as a terminal command in order to start the window manager
(so far I understood, you booted with your USB, but had no X-driver loaded till now)

Sorry Benny, but by jumping around, we will not understand correctly in which new issue you are jumping in.

TinyCoreLinux is not a magic thing which can only be used by witches. Like many software, an install/debugging requires a strong accurate writing/tipping/acting method. Take abreath, and start again with the first procedure where you had sucess.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Benny7440 on August 12, 2012, 09:47:13 AM
Sorry for the confusion folks, so lets start with a round ball again!

I'm going to answer to tinypoodle's #27 post first. When I execute ls -l the output is: total 0. In relation to your quote of 'which sh' I didn't get that one. I've tried that as a command right now from PL528 & it gave me the following:
sh-4.1# which sh
/bin/sh
sh-4.1#

Sorry that it didn't occurred to me doing it while I was at CP, I'll make a note for doing it the next time I boot up CP, promise.

Now  to floppy.  First of all I'm trying to get acquainted with Core Plus in a frugal installation (see my #1 post). After feeling comfortable with it I was (am) thinking of making a usb installation for using it with the Compaq. The last 3 or 4 boots have been using the frugal method in the VAIO & I pretend to keep trying it until I finally get a usable system & just after reaching that point I'm going to start trying the usb thing for the Compaq.

The above means, exactly, that I'm going to try ONLY the frugal installation using grub in the VAIO. The Compaq will have to wait until I manage to do this reliably.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: tinypoodle on August 12, 2012, 10:07:15 AM
Code: [Select]
ls -l `which sh`
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Rich on August 12, 2012, 10:15:26 AM
Hi Benny7440
Those are not single quote marks in tinypoodles command, they are back ticks. On my keyboard they can be
found in the upper left corner as part of  the  ~ (tilde) key. Running the command on Puppy is not useful, he
wants to see what cores response is.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: tinypoodle on August 13, 2012, 03:16:34 PM
Running the command on Puppy is not useful, he
wants to see what cores response is.

Thank you for clearing that up, Rich.
With all the confusing details over so many posts I somehow had assumed that "PL528" (not being any known term to me) was referring to hardware of OP :P
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Benny7440 on August 13, 2012, 07:42:26 PM
The command you supplied, tinypoodle, resulted in the following output:

"lrwxrwxrwx 1 root root 7 Aug 4 2011 /bin/sh -> busybox"

I hope I didn't make any mistake this time. I tried the tce-load... command again but it reported again "invalid argument".
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Rich on August 13, 2012, 09:37:09 PM
Hi Benny7440
Is your network card up? What does  ifconfig  return? If you execute
Code: [Select]
ifconfig > ifconfig.txtyou can then place that text file somewhere accessible from another distro and cut and paste its contents here.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Benny7440 on August 15, 2012, 09:48:11 AM
OK, the command ifconfig returns the following data:

eth0    Link encap:Ethernet HWaddr 00:13:A9:28:57:DC
inet addr: 10.0.0.64 Bcast: 10.0.0.255 Mask: 255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:500 Metric:1
Rx packets:406 errors:0 dropped:1 overruns:0 carrier:0
collisions:0 txqueuelen:1000
Rx bytes: 44652 (43.6 KiB) Tx bytes: 1044 (1.0 KiB)

lo   Link encap:Local Loopback
inet addr: 127.0.0.1 Mask: 255.0.0.0
UP LOOPBACK RUNNING MTU: 16436 Metric:1
Rx packets:0 errors:0 dropped:0 overruns:0 frame:0
Tx packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
Rx bytes:0 (0.0 B) Tx bytes:0 (0.0 B)


Hope this helps. Thanks!

Edit: It was not possible for me to execute ifconfig > ifconfig.txt until I relogin as tc. After I created the file it was not possible to move/copy it to another location. Apparently, either I was never root or other locations (like sda2) were locked. Maybe the newly created file was itself unmovable/protected???
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: tinypoodle on August 16, 2012, 09:23:34 AM
So it seems you were initially able to install bash (incl. recursive dependencies), but now unable to install the most basic GUI extensions.
Logically, either something went wrong with your system, or you are doing something different.

When attempting to load extensions, avoid bash and root user. 
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Benny7440 on August 18, 2012, 01:35:43 PM
If I'm now using a puppy OS (not Core Plus), can I download the required files, put them in the right place for TC to find &, hopefully, execute them?

If the answer is yes then I'll need the corresponding link(s)...

Thanks to all that have helped on this!

PS. To tinypoodle I'm confused around what you stated in your last reply in relation to bash & root user; what it really means to stay away from them?
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: gerald_clark on August 18, 2012, 02:04:22 PM
If you have puppy running, why not just stick with that?
Core is not for everybody.  It is a toolbox more than a user-friendly distro.
If you really want to use core there is a lot of info in the wiki, including installation instructions.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Benny7440 on August 18, 2012, 02:47:59 PM
gerald_clark, I wanted a small distro to put inside a 128 MB CFCard & using this memory device to take with me to boot & use a Compaq-HP laptop that has no HDD. All the puppies that I've come by are larger than Core Plus, with possibly just one esception: Wary Tiny.

Since I learned of the existence of Tiny Core first (several months) I decided to give this one a try in front of all the rest. Also, since some work has already been done I feel that continue to try should be more logical than to start something completely new from the beginning.

I'm replying right now from the VAIO in home but if coreplus would be running ok I might be outside, somewhere else, reading or writing through the HP, instead...
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: tinypoodle on August 18, 2012, 03:02:15 PM
I really try to be as clear as possible, and not sure how that does not come through...

When trying to use tce-load or using "apps" do so as default user tc and stick to the default shell as shipped in base.

That does not mean that there are not other tasks which may require using root, e.g. network configuration; or very specific scripts or apps which might explicitely require bash.

Search in scripting forum for a script which allows to download extensions (including dependencies) from a different system.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: Benny7440 on August 20, 2012, 10:44:18 AM
Sorry tinypoodle for not been clear enough. My main language isn't English. It, sometimes, is a problem when I'm expressing an idea. In other situations, it means that the ideas of others can't be grasped by me as expected.

When you add to these that I'm a nooby with respect to linux in general & to Tiny Core in particular you might expect that I become glared with respect to certain things...

I hope this time I extracted the correct ideas from your last post (read it at least 4 times --to give you an idea of how well/bad I understand English) & I'm not contributing with more smog!

Thanks for your help as well as the rest of your team!

PS. One of the thought uses for this distro was to start experimenting with running it in/with a Virtualbox, this last been started in the VAIO (512 MB of RAM) from Puppy Linux, which I'm conceiving hosting Virtualbox.
Title: Re: How to boot CorePlus-4.5.5.iso frugally?
Post by: grandma on September 18, 2012, 11:57:32 PM
Hi Benny,
I have had wonderful luck with Tiny Core 3x (picked this up about 18 months ago)
and will use my installation with that to give you "A BASIS" - "TEMPLATE"
that works well.

Then we'll look at my problem with 4x - which sounds similar to your problem: folders - where to put them.

Here is what worked for me - with Tiny Core 3x - and still works well for me now.

============= FORMATTING AND PARTITIONS - step 1

1. Get a USB Flash Drive - formatted fat 32 - you can do this in DOS, Windows with

format E: /fs:fat32

or Linux

MKDOSFS and FDISK (Linux)

If you are starting in Linux, use the FDISK /dev/sdb (establishes partitions) - I usually erase them all, then create ONE, use type b, make it active and write it.

Basically, you would type

fdisk /dev/sda
d (deletes partitions)
then
n (new)
p (primary)
t (type - set to b)
a (make it active)
w (write it)

Sometimes it works - sometimes it doesn't - but I have used it (Tiny Core fdisk) to "Fix" partitions on USB Flash Drive that Windows couldn't read.

Then format it with the MKDOSFS utility - works well - I just type

mkdosfs -F 32 -I -n TCEUSB dev/sdb1

and I have also had luck with simply

mkdosfs /dev/sdb1

This should get the USB Flash Drive formatted

============== END OF FORMATTING AND PARTITIONS

=============== SETTING THE BOOT RECORD - step 2

2.  If you used DOS/Windows, use SYSLINUX to create the boot record. So far I have had poor / inconsistent results with grub and grub4dos when starting with a DOS/Windows environment, whereas typing
syslinux -m -a -s E:  (or whatever drive you have) works well in DOS and Windows

And you need this paragraph in a basic syslinux cfg file, which is in the root folder (i.e. e:\syslinux.cfg)

SYSLINUX.CFG VERSION

label TCOLD

menu label ^1) Tiny Core 3x
menu indent 1

kernel /tce/old3x/bzImage

append initrd=/tce/old3x/tinycore.gz quiet norestore bkg=splash.jpg waitusb=5 xvesa=1024x768x32


SO - what that says is the file bzImage and the file tinycore.gz are in a folder

e:\tce\old3x\bzImage
e:\tce\old3x\tinycore.gz

or using Linux drive designations

/mnt/sdb1/tce/old3x/bzImage
/mnt/sdb1/tce/old3x/tinycore.gz

That's it - 2 files...

BUT - here is where it gets a little tricky: you need to put some CONFIGURATION files in the

E:\tce folder ( /mnt/sdb1/tce )

The most important one is called onboot.lst
This is simply a text file - like menu.lst or syslinux.cfg - and it establishes what applications load when the system boots up.

For example - you could have firefox load right away (big fat and slow - better to load it later).

If you are doing this with LINUX, I have had pretty good luck with grub4dos under the TC package (and terrible luck with grub4dos in the DOS/Windows environment - so I use syslinux there).

Here is how you get grub4dos to work with Tiny Core (assuming you have downloaded it)

tce-load -i grub4dos (this loads the ap - or use tce-load -wi grub4dos to fetch it from the internet)

then type

/usr/local/share/grub4dos/bootlace.com --time-out=0 /dev/sda

and you will install a boot record on the usb flash drive.

SO - either syslinux (in DOS) or grub4dos (in Linux - confusing, eh?) will give you a boot record.

With syslinux you made a file syslinux.cfg
If you use grub4dos, you  need E:\menu.lst (aka /mnt/sdb1/menu.lst) - which is something like this:

GRUB MENU.LST version

timeout=10

default=0

title TinyCore3x USB

find --set-root /tce/tinycore.usb

kernel /tce/old3x/bzImage quiet norestore bkg=splash.jpg waitusb=10 xvesa=1024x768x32

initrd /tce/old3x/tinycore.gz


The FIND line will hunt for a file called tinycore.usb - just an empty file I put in /tce folder so grub finds the folder.

In the /tce/old3x folder I have the 2 files - bzImage and tinycore.gz

============== END OF SETTING UP THE BOOT RECORD AND CFG and LST FILES

=============== SETTING THE EXTENSION FOLDER - step 3

3. The most important extension to get working is the WiFi program, since it is used to download files. IN THEORY the Ethernet port works right away, but I haven't seen that to be true: many laptops and desktops come up dead, so I'd focus on the WiFi / USB antenna port. Get that working and you can download everything else easily in Linux.

The extension folder is the place where these programs and drivers are stored - sort of like a combination of the windows folder C:\Program Files and C:\WINDOWS\SYSTEM32 rolled into one, except in TC its called

/mnt/sdb1/tce/optional

(Linux filename structure)

or

E:\tce\optional
(DOS/Windows file structure)

Here is where you load 101 different applications, like abiword.tcz or firefox.tcz or gimp.tcz - whatever software you want to use.

For example:

/mnt/sdb1/tce/optional/firefox.tcz

Now various Linux packages use different methods to download and install software, for example APGET is one method used in another distro...

In Tiny Core Linux there is an APPLICATION BROWSER and once your system is stable and you have a clean boot and a desktop - its probably the safest way to load stuff.

UNFORTUNATELY - I have never seen a fresh install of Tiny Core boot to a desktop and have instant internet working etc without a bit of fiddling around, unless you have an older, standard ethernet NIC card and cable and all the drivers work, then you might get lucky.

I'd focus on WiFi if possible,  but either ETHERNET or WIFI working is ok.

You might have to do this at a TERMINAL prompt (sorry) - which is what I did.

To get WiFi working you will need to have the package wireless_tools and associated libraries. In this case we will assume you have the Tiny Core 3x version (as in 3.6).
I haven't gotten the 4x tools to load correctly yet, so I'll stick with this for this lesson:

If you only have WINDOWS/DOS, try these URLs in Firefox:

http://distro.ibiblio.org/tinycorelinux/3.x/tcz/wireless-2.6.33.3-tinycore.tcz
http://distro.ibiblio.org/tinycorelinux/3.x/tcz/wireless-2.6.33.3-tinycore.tcz.md5.txt
http://distro.ibiblio.org/tinycorelinux/3.x/tcz/wireless_tools.tcz
http://distro.ibiblio.org/tinycorelinux/3.x/tcz/wireless_tools.tcz.dep
http://distro.ibiblio.org/tinycorelinux/3.x/tcz/wireless_tools.tcz.md5.txt

Save all these files to the folder E:\tce\optional

WARNING: (ooops) when you try to boot with Linux and go to a terminal prompt and type

tce-load -i wireless_tools

you may get an error - some file or library not found. You can simply edit the file

wireless_tools.tcz.dep

and remove the offending line (missing file) - for some reason it still works - dunno what that bug is - was never fixed - sorry - and the missing file isn't available...sorry.

But it does get you the tools you need to continue:

WHEN you get this far - THEN you may be a lucky cat and have WiFi working.

Test your WiFi - Try this:

tce-load -i wireless_tools
sudo ifconfig -a
sudo ifconfig wlan0 up
sudo iwlist wlan0 scanning
sudo iwconfig wlan0 essid "MyHotSpot"
sudo udhcpc -b -i wlan0

These are the basic commands used at a terminal prompt to connect to the internet. The last one - udhcpc - will get you an IP ADDRESS and if you see LEASE OBTAINED - you have internet.

HOWEVER - if you use the sudo ifconfig wlan0 up command and it says DEVICE NOT FOUND - there is a problem with the driver, antenna etc. - and you may be stuck trying to get ethernet working. Ethernet is supposed to be "automatic" but I have seen it work about 30% - 40% of the time and the rest - noop - so I would stick with trying to get WiFi working.

============== END OF SETTING UP WIFI AND ETHERNET

=============== GETTING MORE EXTENSIONS (APPLICATIONS) - step 4

4. IF you have internet working THEN you can get more applications. Until you have Internet working you have a dead system. Simple.

They did a lot of work with Tiny Core 4x (the latest stuff) so that there are MORE drivers for various laptop wifi antennas etc. - and an installer and other tools. Their hearts went out to users to try to make it easier for them to get up and running. Unfortunately, I haven't seen it make it any easier ... yet ... so I'd stick with Tiny Core 3x for now and when you get that basic system working, you might get lucky and get 4x to install easily.

WHEN you have a Desktop - the basic wbar menu at the bottom - THEN you can use the Application browser - the little "gears" at the bottom: you click the gears and CONNECT (after using the WIFI COMMANDS above at a terminal prompt) and poof - you can go get a word processor, firefox - and more.

This seems like a tough way to go - all this TERMINAL PROMPT work - but it really isn't that hard and there are ways to automate some of it - like loading the wireless tools on boot.

For now - if you can do it at a terminal - you can learn to use the package - and if you can create the basic folder structure - in theory - it will help you create the folders to get the Tiny Core 4x system working.