General TC > General TC Talk

Get APPS with no internet on TC laptop? Load APS on boot from auto-mounted USB?

<< < (24/28) > >>

Juanito:

--- Quote from: grandma on April 26, 2011, 03:20:59 PM ---and info on making scripts in /OPT/ so I will try that - I assume you mean

/mnt/hda1/opt (the NTFS partition) AND

/mnt/hda2/opt (the FAT32 pure TC use partition) AND NOT

/RAM/opt - since that is transient - right?

--- End quote ---
No, I mean the /opt in ram where they will be backed up/restored automatically once you the tinycore backup working - you will be plagued by permissions problems with scripts forever if you keep them on a windows partitions


--- Quote ---then Firefox needs fire up every time the system boots, since 90% of the time I am online anyway.

--- End quote ---
If tinycore recognises your linux partition /tce folder then you can add firefox to the /tce/onboot.lst file and it will automatically load on boot.


--- Quote ---a) begin developing "good Linux habits" and migrating files to a folder structure that Linux typically uses: I see the USR folder, but not sure how that plays out - am guessing its /USR/Joe and /USR/Jane and /USR/Fred etc.

--- End quote ---
Good guess, but no - it's /home/Joe, /home/tc, etc and everything under /home/tc is backed up automatically once you have the tinycore backup working.


--- Quote ---I can also create any folders required under G:/TCE (or the C:/TCE)

I assume this should be the folder structure of Linux

/usr
/etc
/bin

--- End quote ---
There is no need to do this, tinycore automatically creates all these in ram


--- Quote ---JUANITO: 3. Can you successfully make and restore a tinycore backup on/from a linux partition?

Haven't tried that and if I did, I'd be booting NTFS/W2K and using DOS XCOPY (verysad).

--- End quote ---
Making this work to your linux partition should be the first priority, it will help tremendously with everything else.

MikeLockmoore:

--- Quote ---d) and what else is there besides FILE MANAGER? I can't see 80% of my files in there - the left pane is so small the files are all pressed to the right margin. Busy Box is - for all intents and purposes - perhaps a wonderful tool for embedded software and completely, 110% useless for any sort of office in this century. Absolute nightmare.
--- End quote ---

Hi.  I'm the author of the "Absolute nightmare" file manager Fluff, AKA FileMgr in the default TC desktop.  The default size is quite small and does tend to squish the directory tree and file details list, but it is easily resized by dragging the middle margin between the left and right panes, and you can resize the entire window in the normal FLWM ways.  Assuming you have an installation that will backup your $HOME directory, your custom size info will be remembered the next time you open Fluff/FileMgr.  Besides that, if you have continued issues with it, please post a report in a new thread.

That said, Fluff/FileMgr is intentionally light and plain (some say "ugly"  ::)).  If you want a more full-featured file manager, I often recommend XFE, which is in the Tinycore app repository.  ROX is good too, but rather unorthodox if you are used to Windows Explorer and similar ones.

grandma:
Thank you Mike - for the reviews on file managers. Tried dragging middle bar to resize - didn't wanna play - will try again.

Juanito - I will try booting to G: - pure Linux and see if I can get bootlocal.sh to fly - and set Firefox to fire on boot. Is there a method to make that happen on the VERY FIRST TIME TC RUNS if FF is in /tce/optional folder? - such as an the "APPEND" command in the Grub call?

such as bootlocal.sh calling "gofox.sh" - except bootlocal.sh doesn't exist until AFTER a backup installs it on subsequent boots - gonna be tricky.

thought a command like

tce-load -i firefox.tcz

such as the wifi we used earlier - which you mentioned don't like being called on a boot

perhaps a "SLEEP 5" from bootlocal.sh - that launches a gowifi.sh script



Juanito:

--- Quote from: grandma on April 27, 2011, 01:57:23 AM ---Is there a method to make that happen on the VERY FIRST TIME TC RUNS if FF is in /tce/optional folder? - such as an the "APPEND" command in the Grub call?

--- End quote ---

If you have tce=hda6 in your grub boot line, you can use something like this:
--- Code: ---$ echo 'firefox.tcz' >> /mnt/hda6/tce/onboot.lst
--- End code ---
..or you can use the apps audit gui tool "onboot" button  if you have booted in tinycore.

Note that this assumes firefox.tcz, firefox.tcz.dep and libasound.tcz, curl.tcz and libnotify.tcz and their deps (if any) are present in /mnt/hda6/tce/optional


--- Quote ---such as the wifi we used earlier - which you mentioned don't like being called on a boot

--- End quote ---
I don't think I said wireless_tools.tcz and wireless-2.6.33.3-tinycore.tcz could not be loaded on boot. If you want to load them on boot, ensure wireless_tools.tcz, wireless_tools.tcz.dep and wireless-2.6.33.3-tinycore.tcz are present in /mnt/hda6/tce/optional and add wireless_tools.tcz to /mnt/hda6/tce/onboot.lst

Note: the above assumes tinycore has recognised /mnt/hda6/tce as your /tce folder

See also: http://wiki.tinycorelinux.net/wiki:persistence_for_dummies

grandma:
Juanito - you are a fountain of easy tips to follow. Thank you.

Got 300 lines of "wifiez.pl" done last night - will be testing.

... not quite sure where I would put these. Right now I am using:

\tce\uaps\uscripts

\tce\uaps\bin

and

\tce\uaps\data



p.s. I would add 10 - 20 examples to each of the Dummies pages,:

EXAMPLES:

Example 1. To use the default settings,

Example 2. To save your settings to a USB or hard drive in a special folder on your own media:


Example 3: a simple test to save your desktop image.

Example 4: you want TC to log onto the internet and open a browser everytime you boot.

Example 5: you want a special script to run when you boot

a)
b)
c)

Example 6: Let's make a script that says "Good day" and then waits for you to hit enter before you get your desktop.

Example 7: you want a special script that does something when you shut down.

Example 8: you want to save your browser settings. Each time Firefox loads it "forgets" things like your home page unless you have something like this:

Example 9: you want  a particular mp3 to start playing everytime you boot.

Example 10: setting up what applications are loaded when you boot. Some folks want a browser to load, others want a media player or a software language like Perl. Use the Application Manager to set up which TCZ files load "ON BOOT" or "ON DEMAND".

sort kindergarten - like this:

a) Go to control panel
b) Select Application Manager
c) Select On Boot
d) The tcz files you already loaded will be listed.
e) Click one and it will move to the right panel.
f) Select more than one, but remember this can slow down your boot and you may want to use the ON DEMAND option instead.
g) Exit the ON BOOT option by clicking ON BOOT at the top and your settings will be saved.

Now select On Demand

a) You will see your TCZ files you have loaded.
b) Repeat the click on left, it moves to the right, and creates a list of On Demand applications.
c) Then click On Demand and exit this utility.

Perhaps some utility you want hasn't already been loaded. Here's how to go get those:

a)
b)
c)

Now repeat the On Boot or On Demand steps and these will be automatically loaded according to your preferences.

Example 11: lets say you wanted to get rid of your "Windows Web Server" (rather well known for being a security risk), and install a faster, tighter more robust server and also include Perl.

(suggested examples only - not accurate)

a) Go get these files

b) put this in On Boot with Ap Mgr or you could also just load these lines in onboot.lst with the command

echo 'serverprogram.tcz' >> /mnt/hda1/tce/onboot.lst (assumes hda1 is your hard drive used to boot)
echo 'perl5.tcz' >> /mnt/hda1/tce/onboot.lst

c) now after configuring your web server it should load and begin serving web pages each time your system reboots.

For more information on configuring and using one of several web server ap tcz files, visit the repository or forum links. Here are a few of them to get you going.

a)
b)
c)

More complicated examples:

Example 13: Your boss wants you to have a spreadsheet ready every day by 10. Every day you have to go to a web site and check the current price of gold and silver (or wheat, copper, or great laptop deals at a wholesale site - whatever), and post the top ten best deals as raw data in a file.

You used to use Internet Explorer and Excel, and you have found that Firefo and Gnumeric does everything you need.

You can:

a) continue using your Windows programs and wait and wait for it to boot ... and load ... and sometimes crash, or

b) have Tiny Core ready to go in a little over 10 seconds, and be in your spread sheet program the first thing every morning when you boot up, and playing your favorite music in the background. Here's how:

1. Get the files

a)
b)
c)

2. Set up the Ap Mgr On Boot Command or onboot.lst - here are both methods:

a)
b)
c)

or

a)
b)
c)

3. Notice that to open that particular media (album) you need to tell the media player where the songs are and usually this is best done by putting those songs in a specific folder, such as

/usr/mary/mybands/mymorningband/

and in that folder, put in their MP3's you downloaded from their web site, such as

song1.mp3
song2.mp3
song3.mp3

Now:

1. Run your media player (see above on how to get that)

2. Select File Preferences Play List and then Play from Folder. You should see the folder of your favorite morning group's album. If not, here is how to find it:

a)
b)
c)

3. Save your settings, then test them by running the media player again. If it remembered your folder with the album, the music should start playing right away.

Now let's get that spreadsheet working:

1. Get the tcz file. Firefox has become pretty popular and is very stable.

a) do this

b) do that

c) and do this to make sure your home page and book marks are saved. Perhaps this is your page your boss wants you to visit each day to get your data.

Now let's get that spreadsheet working:

1. Get the tcz file. Many people like Gnumeric. Here's how:

2. Now let's make a script that loads both the media folder and Gnumeric at the same time.

a) Open the editor - here's how to do that:

b) The first line of a .sh script should always be the old she-bang and this and that. It looks like this:

c) The next 3 lines makes sure your drive with your media and programs and spreadsheets has been mounted.

d) The next line runs the media player. If your play list settings were saved, it should start playing your morning album.

e) The next 3 lines automatically logs you onto the Internet and runs Firefox.

Note: You may need to tinker with these lines  to get connected with a wifi or ethernet system. More details on that in example 14 below and at "this link". These lines are just examples and you will probably have to change a few things. Here's one example of all the lines to make your system automatically go live on the internet with ethernet and open Firefox:

Here is an example of making it do that and go live with wifi and Firefox:


f) The next line runs Gnumeric and automatically opens the right spreadsheet. Then you can cut and paste the data from the web page to the spread sheet. Here's how:

Here is what it all looks like together. The good thing about scripts is once you have made them, you only have to type them once and they usually run consistently each time - all automagic.


Poof! You get to make your boss happy and you get to smile while you use a spreadsheet program and media player that won't crash, and only took a few seconds to load.

Try a timed test:

a) Turn off your PC.

b) Look at a watch and note the exact time as soon as the first word - any word - appears on the screen, such as RAM or Press F2 for Bios - anything at all.

c) Reboot and go back to Windows, after it finally boots, open your media player and start your album.

d) Then connect to the internet and open IE and go to the site.

e) Copy the data and then

f) Open your spreadsheet and paste the data there.

Now look at your timer. How long did it take?

Now let's try that with Tiny Core and your new script. Get ready with your stop watch and then reboot and start the timer as soon as you see Press F2 for Bios or anything at all.

1. Follow the same steps and cut and paste the text into your spreadsheet.

2. Stop the clock and compare the time.  Now gently explain the results of your test to your boss.

Example 14: some other tricky persistent tip the gurus know that is often very helpful

etc.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version