Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: SimpleMan on June 04, 2010, 03:12:28 AM

Title: Multiple Questions
Post by: SimpleMan on June 04, 2010, 03:12:28 AM
Hello I'm new to Tiny Core Linux and love how simple it is but have a few questions

1. How do I put my applications that i download on my usb so when I reboot I will have them?

2. How do I add boot codes so that I can run GNOME on Tiny Core?

Thanks
Title: Re: Multiple Questions
Post by: Juanito on June 04, 2010, 03:40:36 AM
1. How do I put my applications that i download on my usb so when I reboot I will have them?

If your usb stick is recognised by tc as /mnt/sda1, then you can either:

1. use the boot code tce=sda1
2. create a folder named /mnt/sda1/tce on your usb stick owned by tc:staff

After 1 or 2 above, the applications (extensions in "tc-speak") will be stored in /mnt/sda1/tce/optional
Title: Re: Multiple Questions
Post by: bmarkus on June 04, 2010, 03:50:44 AM
1. How do I put my applications that i download on my usb so when I reboot I will have them?

If your usb stick is recognised by tc as /mnt/sda1, then you can either:

1. use the boot code tce=sda1
2. create a folder named /mnt/sda1/tce on your usb stick owned by tc:staff

After 1 or 2 above, the applications (extensions in "tc-speak") will be stored in /mnt/sda1/tce/optional

Well, most probably - at least in the beginning - USB stick has a FAT partition, which do not support ownership :(
Title: Re: Multiple Questions
Post by: SimpleMan on June 04, 2010, 05:18:42 AM
thanks guys i figured it out but one more thing how do i use download to usb in control panel and i   press z for a dual partion one for os other for apps and then i get down to the file and type /mnt/sda1/boot/ and it says not found press enter then closes.
Title: Re: Multiple Questions
Post by: SimpleMan on June 04, 2010, 07:06:01 AM
also when i use usb install and go through it all i type in /mnt/sbd1/boot/ it says i have no tinycore.gz or bizImage please help i am booting with usb flash drive i have tried everything i could think of i have been working on this for 6 hours please help
Title: Re: Multiple Questions
Post by: Juanito on June 04, 2010, 07:32:01 AM
Can you list the files/folders that you do have on the usb flash drive?

Note that if you are booting from something that is named sda1 and using usb install to something that is named sdb1, when you remove the device in sda1 and use the device that was in sdb1 to boot, it will become sda1 - this means that you might need to edit any boot codes with "sdb1" in them.
Title: Re: Multiple Questions
Post by: SimpleMan on June 04, 2010, 08:14:17 AM
okay the files are boot which breaks down into bizImage, tinycore.gz, and then the file that loads the boot im on tinycore right now and can't remember and have alot of apps downloaded. also on the sda1 and all that it changes because i take out my usb when i need to get back on my main os so it changes sorry about that. what would be very helpful if somone just put there usb files on here so i could download them that would be perfect.
Title: Re: Multiple Questions
Post by: Juanito on June 04, 2010, 08:37:15 AM
what would be very helpful if somone just put there usb files on here so i could download them that would be perfect.

I'm not totally sure what you mean by that - if you mean the bootloader (eg grub, extlinux, syslinux, etc), then you cannot copy it, you need to install it using either "USB install" or the instructions in the wiki.
Title: Re: Multiple Questions
Post by: SimpleMan on June 04, 2010, 08:39:24 AM
copy all your usb files and put them on a downloading sites
Title: Re: Multiple Questions
Post by: Juanito on June 04, 2010, 09:21:44 AM
If you're trying to set your usb flash drive/usb stick up to be able to boot from it, I would suggest:

1. copy all your tc extensions somewhere safe
2. start 'USB install' again from the beginning
3. copy your extensions back to /mnt/sdax/tce/optional
Title: Re: Multiple Questions
Post by: SimpleMan on June 04, 2010, 09:58:50 AM
i can boot from it live i just cant download TCE/install on it so i can save my apps
Title: Re: Multiple Questions
Post by: Juanito on June 04, 2010, 10:08:19 AM
Once you've booted, open a terminal window and enter this:
Code: [Select]
$ sudo fdisk -l..and post the result here
Title: Re: Multiple Questions
Post by: SimpleMan on June 04, 2010, 10:42:06 AM
Disk /dev/sdb: 2062mb, 2062548992 bytes
16 heads, 32 sectors/track, 7868 cylinders
Units = cylinders of 512 * 512 =262144 bytes

     Device   Boot            Start                End                 Block                 Id     System
/dev/sbd1   *                          1                7868         2014192                 b      win95   FAT32
Title: Re: Multiple Questions
Post by: Juanito on June 04, 2010, 11:02:44 AM
Hmm - it's been so long since I used a fat partition that I can't remember if it works for extensions or not.

Does this work:
Code: [Select]
$ sudo mkdir -p /mnt/sdb1/tce/optional
If so, then you can copy all of your extensions to this folder
Title: Re: Multiple Questions
Post by: SimpleMan on June 04, 2010, 11:10:55 AM
it says

Create DIRECTORY

Options:
                -m            Mode
                -p             No error exists; make parent directories as needed
Title: Re: Multiple Questions
Post by: SimpleMan on June 04, 2010, 11:17:44 AM
also how would i copy files thanks for your help
Title: Re: Multiple Questions
Post by: Juanito on June 04, 2010, 11:26:10 AM
Ah - sorry, that should have been:
Code: [Select]
$ sudo mkdir -p /mnt/sbd1/tce/optional
To copy files:
Code: [Select]
$ cp /path-to-file/filename /mnt/sbd1/tce/optional
Title: Re: Multiple Questions
Post by: SimpleMan on June 04, 2010, 11:31:50 AM
it doesn't say anything
what is the best partion to use and how can i do it i just used a program from pendrivelinux.com to do the instalation
Title: Re: Multiple Questions
Post by: SimpleMan on June 04, 2010, 11:33:28 AM
i'm such a noob sorry but also how do i find what the path to the file is thanks once again i'm use to windows and don't know my way around linux well def this complicated
Title: Re: Multiple Questions
Post by: curaga on June 04, 2010, 11:43:47 AM
If you need a simple installer from windows check out http://www.linuxliveusb.com/
Title: Re: Multiple Questions
Post by: Juanito on June 04, 2010, 11:44:38 AM
it doesn't say anything

If it doesn't say anything, then it probably worked.

Does:
Code: [Select]
ls -l /mnt/sbd1/tce/optional..show the file exists?

To find the extensions, you could try:
Code: [Select]
find /mnt/sbd1 -type f | grep tcz
Title: Re: Multiple Questions
Post by: SimpleMan on June 04, 2010, 11:47:31 AM
it said total 0 so prob no
Title: Re: Multiple Questions
Post by: Juanito on June 04, 2010, 12:08:15 PM
Try this:
Code: [Select]
$  cd /mnt/sbd1/tce/optional
$ tce-load -iw emelfm.tcz
Title: Re: Multiple Questions
Post by: Juanito on June 04, 2010, 12:20:44 PM
..and this:
Code: [Select]
$ find / -type f | grep tcz
Title: Re: Multiple Questions
Post by: thane on June 04, 2010, 02:48:40 PM
AFAICR (I'm not at my Tiny Core box), these are the steps I went through to install Tiny Core on a USB stick. I had already determined that I could boot from CD and connect to the Tiny Core repository via the appbrowser on the box I was using:

 1) Downloaded Tiny Core ISO and burned it to CD (did this on a Windows box).
 2) Booted the machine I use for Tiny Core off the CD. USB stick was already be plugged in. Used bootcodes "waitusb=5 base norestore" [no quotes].
 3) Mounted the CD (usually it unmounts after boot) using the mount tool. This gives a source for the files you want to install.
 4) Opened a terminal and typed sudo su (gets root terminal).
 5) Typed "usbinstall" [no quotes].
 6) At this point the installer starts asking what you want to do. I chose the ext2 format and to keep a log.
 7) If you don't have the Tiny Core extensions you need to complete the install, the installer will tell you at this point and exit. Download the extensions it tells you with the appbrowser (use 'install') and run usbinstall again, repeating the above.
 8) Follow the subsequent installer directions. You have to tell the installer where your Tiny Core files are (on the mounted CD, I forget the directory name) and where the USB stick is (I think sda).
 9) The installer should create a boot directory (with Tiny Core files), a directory for logging, and the tce directory (with optional directory underneath) on the USB stick.
10) When the installation is complete, unmount the CD and remove it, and then reboot. Your machine should boot off the USB stick. Note that you have to have your BIOS setup for this (I had to tweek mine a bit).
11) If the boot goes OK, at that point the appbrowser should download any extensions you want to the tce/optional directory on the USB stick, and find them there on subsequent boots.
Title: Re: Multiple Questions
Post by: SimpleMan on June 04, 2010, 11:44:43 PM
those codes didn't work and i tried to install how you said thane i got the farthest i ever got then i got an error
Title: Re: Multiple Questions
Post by: thane on June 05, 2010, 12:10:38 AM
What was the error?
Title: Re: Multiple Questions
Post by: SimpleMan on June 05, 2010, 02:08:37 AM
i finnaly got it i use the 3rd option and it worked 300th time is the charm thanks i have one more question how do i add boot codes so they are entered automaticly? and also if i change a files name will i mess it up ex. ace-of-penguins.tcz to Games.tcz and then can i add it to my toolbar thanks

Thanks for all your time working with me you guys made a linux man out of me thanks once again ;D
Title: Re: Multiple Questions
Post by: Juanito on June 05, 2010, 02:38:36 AM
'Glad to hear you got things working.

To add boot codes you need to modify the bootloader's config file, which depends on the bootloader you used:

grub: menu.lst
syslinux: syslinux.cfg
extlinux: extlinux.conf

Normally, these are found under the /boot folder.

Now that you have things working, you can use one of the text editor extensions to change the file, for example, beaver.

To be able to change the file, you need to use the text editor as "root" (= administrator in windows speak), you can do this using the 'run command' button in the panel and entering "sudo beaver" (assuming you loaded the beaver extension).

I would not suggest changing  the names of extensions until you're are more comfortable with linux/tc
Title: Re: Multiple Questions
Post by: thane on June 05, 2010, 02:45:35 AM
On my USB stick,  /mnt/sda1/boot/extlinux/extlinux.conf has the boot codes, in the APPEND line. Do you know about file permissions and the vi editor? I had to change the permission from 644 to 666 ["sudo chmod 666 extlinux.conf" after I changed directories to extlinux] to edit. Change the permission back to 644 when you're done.

Sorry, don't know about the file name changes. I think it's safest to leave them alone unless it's really critical. There are hidden links and various file name lists in Tiny Core that would all have to be modified too.
Title: Re: Multiple Questions
Post by: SimpleMan on June 05, 2010, 02:50:14 AM
Thanks
How do i modify the boot folder i used syslinux?
Do you know how to add an icon to the taskbar for easier tasking?

Also after thinking about it, it was pretty easy to setup but there is no visual instructions on how to do it.

Sorry but do you know how i could transfer over my bookmarks from firefox on windows xp?
Title: Re: Multiple Questions
Post by: curaga on June 05, 2010, 03:32:47 AM
Sorry but do you know how i could transfer over my bookmarks from firefox on windows xp?

Export them on FF windows, move the file over, import them here :)
Title: Re: Multiple Questions
Post by: SimpleMan on June 05, 2010, 03:38:37 AM
thanks cool signature
Title: Re: Multiple Questions
Post by: Juanito on June 05, 2010, 03:49:40 AM
How do i modify the boot folder i used syslinux?

1. use the appbrowser to install the 'beaver' text editor extension
2. click on the panel 'run command' button and enter "sudo beaver"
3. use 'file open' in beaver to navigate to /mnt/sbd1/boot/syslinux/syslinux.cfg and open it.
4. you should see a line with boot codes like "waitusb=5" "quiet" - add your boot codes to the same line, save the file and exit.

Quote
Do you know how to add an icon to the taskbar for easier tasking?

The extensions create their own icons, if you'd like to do something in addition to this, I believe the wiki explains how to do it.
Title: Re: Multiple Questions
Post by: SimpleMan on June 05, 2010, 04:04:25 AM
okay thanks

what are some good apps to download?
and how do i enable scroll with middle button on mouse?
Title: Re: Multiple Questions
Post by: Juanito on June 05, 2010, 04:19:05 AM
The extension that load at boot are controlled by a file named "onboot.lst", which in your case would be found in /mnt/sbd1/tce.

I don't think it would be a good idea to edit this file in windows, the symbol windows uses for 'new line' might mess up the file.

You can boot tc and use the beaver text editor to remove the gnome extension(s) from onboot.lst - the next time you boot, they will not be loaded and you can delete them.
Title: Re: Multiple Questions
Post by: SimpleMan on June 05, 2010, 04:24:48 AM
i fixed the gnome problem i used beaver and deleated the files
Title: Re: Multiple Questions
Post by: Juanito on June 05, 2010, 04:25:23 AM
what are some good apps to download?

beaver - text editor
emelfm - file manager
gtkfind - find files

Quote
and how do i enable scroll with middle button on mouse?

Try the mouse setup button on the panel
Title: Re: Multiple Questions
Post by: SimpleMan on June 05, 2010, 04:28:05 AM
thanks but the mouse buttom on panel just changes speed
Title: Re: Multiple Questions
Post by: Juanito on June 05, 2010, 04:31:50 AM
I'm on a windows machine at the moment, but you could try clicking on the shutdown icon and choosing "exit to prompt".

At the prompt, enter "xsetup.sh" and select something that matches your mouse. Once  finished, enter "startx" to get back to the gui.
Title: Re: Multiple Questions
Post by: SimpleMan on June 05, 2010, 04:35:30 AM
that worked thanks how can i change themes its looks too old and outdated it frustrates me
Title: Re: Multiple Questions
Post by: Juanito on June 05, 2010, 04:42:49 AM
There are several choices - listed in order of increasing bloat:

1. Use gtk1 apps and gtk1-industrial-engine
2. Use gtk2 apps and gtk_prefs
3. Use one of the desktop "suites of extensions" like gnome, lxde, Xfce4
Title: Re: Multiple Questions
Post by: SimpleMan on June 05, 2010, 04:58:42 AM
on xfce4 and gnome both i have downloaded both have fd up i have no exit button and the mouse cursor is a big x
Title: Re: Multiple Questions
Post by: Juanito on June 05, 2010, 05:26:34 AM
I've never tried either these.

Did you use the appbrowser to download the extensions (so that you get all of the dependent extensions)?

Did you try loading some of the auxiliary extensions like gnome-backgrounds and/or gnome-colors
Title: Re: Multiple Questions
Post by: SimpleMan on June 05, 2010, 05:35:49 AM
i used appbrowser to download all of them and i did also download aux extenstions

what do you recremend i use i have 2gb of ram so i'm good on the bloatedness and i have plenty of space on my flash drive
Title: Re: Multiple Questions
Post by: Juanito on June 05, 2010, 08:58:15 AM
i used appbrowser to download all of them and i did also download aux extenstions

what do you recremend i use i have 2gb of ram so i'm good on the bloatedness and i have plenty of space on my flash drive

I'd suggest to wait until it's daylight in the US, then maybe the gnome/lxde/Xfce4 extension makers can give their suggestions.
Title: Re: Multiple Questions
Post by: SimpleMan on June 05, 2010, 11:35:08 PM
if you use one what do you use?
Title: Re: Multiple Questions
Post by: Juanito on June 06, 2010, 12:40:44 AM
I use microcore and flwm classic when I need a gui
Title: Re: Multiple Questions
Post by: Arslan S. on June 06, 2010, 02:34:34 AM
if you see a big X mouse icon it means the desktop didn't start as expected,  you can check /tmp/wm_errors for errors

speaking for gnome, you probably did not follow installation steps given in info
Title: Re: Multiple Questions
Post by: SimpleMan on June 06, 2010, 11:57:42 AM
well then why did xfce4 do it then?
Title: Re: Multiple Questions
Post by: SimpleMan on June 06, 2010, 05:08:53 PM
okay what am i suppose to do with number of dependencies where am i suppose to put that?

and the boot folder doesn't exsist where you said it was help?