WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Get APPS with no internet on TC laptop? Load APS on boot from auto-mounted USB?  (Read 42006 times)

Offline grandma

  • Full Member
  • ***
  • Posts: 213
  • Never forget Grandma Loves You & made that candy4U
    • Back when a 10MB HD was $500 bucks
tried changing onboot - seems to work well
« Last Edit: April 29, 2011, 03:16:54 PM by grandma »
~ Luv Grandma
"When children of all nations
play in the sandbox together
all morning-all day-all week, and
one fine sunny day; all year long ...
... then war will become an ancient memory
and Grandma can knit that sweater
you'll hold near to your heart
until long after you're my age.

Offline grandma

  • Full Member
  • ***
  • Posts: 213
  • Never forget Grandma Loves You & made that candy4U
    • Back when a 10MB HD was $500 bucks
got dual boot working with GRUB by modifying menu.lst

I can boot up with Windows, or click TC0, TC1,
TC2, etc. and each one will go try to load Tiny Core from
various partitions.


#######################################
# Tutorial on naming of partitions:
# MENU.LST WINDOWS/DOS     LINUX
# hd0,0       C:\        /dev/hda1
# hd0,1       D:\        /dev/hda2
# hd0,2       E:\        /dev/hda3
#######################################

color blue/green yellow/red white/magenta white/magenta
timeout 30
default /default

title find and load NTLDR of Windows NT/2K/XP
fallback 1
find --set-root --ignore-floppies /ntldr
chainloader /ntldr
savedefault --wait=2

title TC0
root=(hd0,6)
kernel /boot/bzImage tinycore
initrd /boot/tinycore.gz
boot

title TC1
root=(hd0,1)
kernel /boot/bzImage tinycore
initrd /boot/tinycore.gz
boot

title TC2
root=(hd0,2)
kernel /boot/bzImage tinycore
initrd /boot/tinycore.gz
boot

title TC3
root=(hd0,3)
kernel /boot/bzImage tinycore
initrd /boot/tinycore.gz
boot

title TC4
root=(hd0,4)
kernel /boot/bzImage tinycore
initrd /boot/tinycore.gz
boot

title TC5
root=(hd0,5)
kernel /boot/bzImage tinycore
initrd /boot/tinycore.gz
boot

title TC6
root=(hd0,6)
kernel /boot/bzImage tinycore
initrd /boot/tinycore.gz
boot

title TC7
root=(hd0,7)
kernel /boot/bzImage tinycore
initrd /boot/tinycore.gz
boot

title TC8
root=(hd0,8)
kernel /boot/bzImage tinycore
initrd /boot/tinycore.gz
boot

title commandline
commandline

title back to dos
quit

title reboot
reboot

title halt
halt



Save MENU.LST to your hard drive and you are almost done. The
last step is to modify BOOT.INI and add a few characters to the
last line.

BOOT.INI is a hidden file, also in your C:\ root (W2K and XP).
For 95/98 there are other techniques for changing your boot
sequence, and for Vista and Windows 7 its a bit more difficult:
you have to download a utility from Microsoft to edit the boot
sequence (another restrictive MS technique), or find a free
third party software developer offering the utility: a few are
out there.

For W2K and XP users its a lot easier.

1. Go to the command prompt - Start-Run-CMD-Enter

2. Type C:\

3. Type START BOOT.INI

4. Notepad should open with a file that looks something like this:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional" /fastdetect

5. Add this line.

c:\grldr="GRUB Tiny Core"

6. Save the file, exit notepad and type EXIT at the DOS command prompt and reboot.
« Last Edit: April 29, 2011, 03:18:26 PM by grandma »
~ Luv Grandma
"When children of all nations
play in the sandbox together
all morning-all day-all week, and
one fine sunny day; all year long ...
... then war will become an ancient memory
and Grandma can knit that sweater
you'll hold near to your heart
until long after you're my age.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14850
2. Used File Mgr - click SET right side - and saw it pop in left panel

/mnt/sda2
/mnt/sdb1

Note that your usb stick will not necessarily be assigned the same drive name each time you boot, which is why we recommend to use a label or uid to identify your usb stick.

One poor boy way to identify which drive letter corresponds to your usb stick, is to look for the boot file bzImage using a file manager.

Quote
I selected /mnt/sda2 since that is the USB port the drive is in now (earlier I was using sdb1)

Closed that - closed all windows - click SHUTDOWN - BACKUP - checked folder for backup on shutdown screen - got /mnt/sda2/tce

Once you locate the correct drive letter for your usb stick, if you manually create the /tce folder tinycore will find it automatically after that and use it for extension and backups by default.

Quote
goto ?sr0? is that correct?

sr0 is usually for cd drives - does your machine have one?

Offline grandma

  • Full Member
  • ***
  • Posts: 213
  • Never forget Grandma Loves You & made that candy4U
    • Back when a 10MB HD was $500 bucks
Thank you Juanito - that worked.
« Last Edit: April 29, 2011, 03:22:11 PM by grandma »
~ Luv Grandma
"When children of all nations
play in the sandbox together
all morning-all day-all week, and
one fine sunny day; all year long ...
... then war will become an ancient memory
and Grandma can knit that sweater
you'll hold near to your heart
until long after you're my age.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14850
p.s. I am still eager to get Perl working. That will solve so many problems for me.

Just load the perl5 extension I gave the url for a couple of posts ago..

Offline grandma

  • Full Member
  • ***
  • Posts: 213
  • Never forget Grandma Loves You & made that candy4U
    • Back when a 10MB HD was $500 bucks
I got perl working - now I want to get it so these .pl and .sh files execute on boot.

a) what folders do they go in? - specific long path

b) I need to study scripts SH files - and understand what sequence the boot does.

Thank you.
« Last Edit: April 29, 2011, 03:23:23 PM by grandma »
~ Luv Grandma
"When children of all nations
play in the sandbox together
all morning-all day-all week, and
one fine sunny day; all year long ...
... then war will become an ancient memory
and Grandma can knit that sweater
you'll hold near to your heart
until long after you're my age.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
If perl5.tcz is sitting in tce/optional does not necessarily mean that it is loaded.
Especially since you side-loaded this extension. Side loading extensions via Web URL means, as I previously posted, you should use AppsAudit and select OnBoot or OnDemand  to determine if the application is loaded and available. Side loading extensions would also dictate that you should use Apps Audit to check/Find missing dependencies.  We have posted videos on how to use all of these features.

You can use Control Panel -> System Stats Installed tab to view currently loaded applications.

10+ Years Contributing to Linux Open Source Projects.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Note that generally under UNIX filenames are case sensitive, and commands in consequence as well.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline grandma

  • Full Member
  • ***
  • Posts: 213
  • Never forget Grandma Loves You & made that candy4U
    • Back when a 10MB HD was $500 bucks
am manually collecting TCZ - haven't got net on TC yet.

would suggest these two features:

a) TCZ area where windows users can get a ZIP with MD5 and DEP included

or

b) zips of packages - like flash and audio and player or browser and wifi and etc.

« Last Edit: April 29, 2011, 03:33:01 PM by grandma »
~ Luv Grandma
"When children of all nations
play in the sandbox together
all morning-all day-all week, and
one fine sunny day; all year long ...
... then war will become an ancient memory
and Grandma can knit that sweater
you'll hold near to your heart
until long after you're my age.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
So - is there an area on the ramdrive where I can examine the PERL MODS (.PM files) that installed?

Technically there is no ramdrive involved, but a tmpfs.
Code: [Select]
sudo find / -iname *.pm
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline grandma

  • Full Member
  • ***
  • Posts: 213
  • Never forget Grandma Loves You & made that candy4U
    • Back when a 10MB HD was $500 bucks
Found this on wifi

http://www.murga-linux.com/puppy/viewtopic.php?p=356367&sid=b793ce8a98469df65ecc00afd8be5c85

Once I get Perl stable and a simple PDF reader (so I know I can install aps that stick) I will start playing with the wifi.

~ Luv Grandma
"When children of all nations
play in the sandbox together
all morning-all day-all week, and
one fine sunny day; all year long ...
... then war will become an ancient memory
and Grandma can knit that sweater
you'll hold near to your heart
until long after you're my age.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14850
1. Is there a "SWITCH" I can add to the APPEND that says "GO FETCH AND LOAD ALL APS IN THE OPTIONAL FOLDER - AND DO IT WITHOUT MOUNTING THE USB STICK?" Its a boot device, so I figured it already saw it - or perhaps an "auto mount" command in the cfg file.
If your extensions are on the usb stick you need to mount it to access them. You can add "mount /dev/sdb1" or similar to /opt/bootlocal.sh to mount the usb stick on boot. If you want all of your extension to load on boot, you can set them to "onboot" using apps audit.

Quote
c) how to execute a perl program or other file - on boot or 10 seconds later
add the command to /opt/bootlocal.sh

Quote
d) and can anyone tell me where those perl files were "extracted" to so I can go check the libraries that came over?
Look in /tmp/tcloop/perl5

Quote
e) Are there any "file association" settings so the command PERL PROGRAM.PL can be reduced to PROGRAM.PL
Maybe changing the shebang to /usr/local/bin/perl might work?

Quote
Thank you all for the assistance. Its Sunday - hope you're all getting a bit of sunshine.
Sunday is the first day of the working week here  ;)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14850
And any TCZ file - or GZ file - or .TAR file? Can I put any of those in /tce/optional also - or only TCZ files?

You can of course put any file anywhere you like, but only tcz files will be loaded by the apps browser or "tce-load" command.

Offline grandma

  • Full Member
  • ***
  • Posts: 213
  • Never forget Grandma Loves You & made that candy4U
    • Back when a 10MB HD was $500 bucks
Hey Juanito - I got the HELLO WORLD to fly - wooo hooo - thanks 2 you!
« Last Edit: April 29, 2011, 03:33:43 PM by grandma »
~ Luv Grandma
"When children of all nations
play in the sandbox together
all morning-all day-all week, and
one fine sunny day; all year long ...
... then war will become an ancient memory
and Grandma can knit that sweater
you'll hold near to your heart
until long after you're my age.

Offline grandma

  • Full Member
  • ***
  • Posts: 213
  • Never forget Grandma Loves You & made that candy4U
    • Back when a 10MB HD was $500 bucks
I don't have a file called /opt/bootlocal.sh

if I create that on the hard drive - would that work and save?

is it c:\tce\opt or

c:\tc\opt

not sure how to configure this in windows.
« Last Edit: April 29, 2011, 03:34:38 PM by grandma »
~ Luv Grandma
"When children of all nations
play in the sandbox together
all morning-all day-all week, and
one fine sunny day; all year long ...
... then war will become an ancient memory
and Grandma can knit that sweater
you'll hold near to your heart
until long after you're my age.