Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: andfree on March 28, 2016, 12:59:52 AM

Title: Install from live usb flash
Post by: andfree on March 28, 2016, 12:59:52 AM
Hi. I booted Tiny-Core from a live usb flash drive. How to install it to the internal hard drive of the laptop? Thanks.
Title: Re: Install from live usb flash
Post by: Misalf on March 28, 2016, 04:21:10 AM
Hi,
have you tried the  tc-install.tcz  extension?
Title: Re: Install from live usb flash
Post by: andfree on April 03, 2016, 04:46:07 AM
Thanks for answer. I run Apps, ask to find the fastest mirror and get the message:

Quote
Couldn't load mirror list. Maybe network issue?
Title: Re: Install from live usb flash
Post by: Juanito on April 03, 2016, 05:13:53 AM
I believe the repo is down

If you already downloaded the mirrors extension, you can choose another site...
Title: Re: Install from live usb flash
Post by: Juanito on April 03, 2016, 05:26:21 AM
or, in the meantime, you can do this:
Code: [Select]
$ echo 'http://distro.ibiblio.org/tinycorelinux/' > /opt/tcemirror
..then things should work.
Title: Re: Install from live usb flash
Post by: andfree on April 03, 2016, 06:43:24 AM
Thanks, it worked. But after the installation, I rebooted to hard drive and there's a black display with this:

Code: [Select]
tc@box:~$
Title: Re: Install from live usb flash
Post by: Juanito on April 03, 2016, 06:54:25 AM
Which probably means you don't have an X server and window manager listed "onboot".

Try this:
Code: [Select]
$ tce-load -i Xvesa Xprogs flwm aterm wbar
Title: Re: Install from live usb flash
Post by: andfree on April 03, 2016, 07:03:33 AM
Code: [Select]
Xvesa.tcz not found!
Title: Re: Install from live usb flash
Post by: Juanito on April 03, 2016, 07:07:34 AM
..so it looks like your extensions were not saved on your hd install or it cannot find them.

You can download and save them again with "tce-load -iw..." as long as you have a network connection.
Title: Re: Install from live usb flash
Post by: andfree on April 03, 2016, 07:22:28 AM
The exact command? It gives me some "Example usage" but I can't find the correct one.
Title: Re: Install from live usb flash
Post by: Rich on April 03, 2016, 07:41:44 AM
Hi andfree
Try:
Code: [Select]
tce-load -iw Xvesa Xprogs flwm aterm wbar
Title: Re: Install from live usb flash
Post by: andfree on April 03, 2016, 08:00:59 AM
Ah, the previous command with "-iw" instead of "-i".Sorry.

Code: [Select]
wget: can't connect to remote host (89.22.99.37): Connection refused
md5sum: Xvesa.tcz.md5.txt: No such file or directory
Error on Xvesa.tcz
Title: Re: Install from live usb flash
Post by: Misalf on April 03, 2016, 08:07:09 AM
See reply #3 and #4.
Title: Re: Install from live usb flash
Post by: andfree on April 03, 2016, 08:15:29 AM
I' ve already followed reply #4, as I said at reply #5.
Title: Re: Install from live usb flash
Post by: Misalf on April 03, 2016, 08:21:58 AM
Quote
[...] I rebooted to hard drive [...]

Code: [Select]
[ "$(cat /opt/tcemirror)" == "http://repo.tinycorelinux.net/" ] && echo 'http://distro.ibiblio.org/tinycorelinux/' > /opt/tcemirror
Title: Re: Install from live usb flash
Post by: andfree on April 03, 2016, 09:00:01 AM
This confused me a little, but I think I did it.

I ran:

Code: [Select]
$(cat /opt/tcemirror)
and:

Code: [Select]
$echo 'http://distro.ibiblio.org/tinycorelinux/' > /opt/tcemirror
Finally I rebooted and everything seems ok. Thanks a lot.

Now I should update the system? How to do it?
Title: Re: Install from live usb flash
Post by: Juanito on April 03, 2016, 09:15:09 AM
First check if you have the latest version by using the command "version" - it should be 7.0
Title: Re: Install from live usb flash
Post by: andfree on April 03, 2016, 09:19:28 AM
Yes, it's 7.0.

I suppose I found it about updates: Apps => Maintenance => Check for Updates. But I don't see anything to install.

Is there any internet browser installed or I should install one?
Title: Re: Install from live usb flash
Post by: Misalf on April 03, 2016, 09:23:15 AM
Then everything is up to date.

I'd recommend  firefox_getLatest.tcz  which contains a script that downloads and packages the latest Firefrox from Mozilla.
Title: Re: Install from live usb flash
Post by: andfree on April 03, 2016, 09:38:57 AM
I suppose I downloaded it (Apps => Cloud => Browse to firefox_getLatest.tcz and click "Go").

But I try to run it without success.
Title: Re: Install from live usb flash
Post by: Misalf on April 03, 2016, 09:46:20 AM
The extension should create an entry in the window managers right-click menu.
Otherwise run
Code: [Select]
firefox_getLatest.sh
Title: Re: Install from live usb flash
Post by: andfree on April 03, 2016, 09:56:53 AM
You 're right about right-click menu. I installed it. But how to open the browser now?
Title: Re: Install from live usb flash
Post by: Misalf on April 03, 2016, 10:11:29 AM
After the script has been run and successfully created the  firefox.tcz  extension, load that (if it didn't automatically) by running
Code: [Select]
tce-load -i firefox
which creates an icon in wbar and another right-click menu entry.
Title: Re: Install from live usb flash
Post by: bmarkus on April 03, 2016, 10:35:10 AM
I believe the repo is down

If you already downloaded the mirrors extension, you can choose another site...

Http server restarted, main repo must work.
Title: Re: Install from live usb flash
Post by: andfree on April 03, 2016, 10:48:08 AM
I installed it, but when I click on firefox at right-click menu, nothing happens.
Title: Re: Install from live usb flash
Post by: Misalf on April 03, 2016, 10:52:01 AM
Run  firefox  in a terminal window to check if you get any error messages.
Title: Re: Install from live usb flash
Post by: andfree on April 03, 2016, 10:56:58 AM
I rebooted and now firefox doesn't seem to be installed.
Title: Re: Install from live usb flash
Post by: Misalf on April 03, 2016, 11:22:46 AM
I thought firefox_getLatest.sh would automatically set firefox.tcz to be loaded OnBoot.
Otherwise you can do so via Apps -> Maintenance -> OnBoot Maintenance.

Or maybe your installation is running in cloud mode where extensions are stored in RAM and lost after reboot.
Is the extension still preset in your tce directory (i.e. /etc/sysconfig/tcedir/optional/firefox.tcz)?
Title: Re: Install from live usb flash
Post by: andfree on April 03, 2016, 11:39:45 AM
I thought firefox_getLatest.sh would automatically set firefox.tcz to be loaded OnBoot.
Otherwise you can do so via Apps -> Maintenance -> OnBoot Maintenance.

It's already at the list there.

Or maybe your installation is running in cloud mode where extensions are stored in RAM and lost after reboot.
Is the extension still preset in your tce directory (i.e. /etc/sysconfig/tcedir/optional/firefox.tcz)?

How to see it? I don't find any filesystem-browser installed.
Title: Re: Install from live usb flash
Post by: Misalf on April 03, 2016, 11:54:33 AM
In a terminal,
to check if the extension exists, run
Code: [Select]
ls /etc/sysconfig/tcedir/optional/firefox.tcz

to check where your extensions are actually stored, run
Code: [Select]
readlink /etc/sysconfig/tcedir
Should not be  /tmp/tce .
Title: Re: Install from live usb flash
Post by: andfree on April 03, 2016, 12:02:06 PM
Code: [Select]
$ ls /etc/sysconfig/tcedir/optional/firefox.tcz
/etc/sysconfig/tcedir/optional/firefox.tcz
$ readlink /etc/sysconfig/tcedir
/mnt/sda1/tce
Title: Re: Install from live usb flash
Post by: Misalf on April 03, 2016, 12:22:13 PM
So, firefox.tcz is listed in  /etc/sysconfig/tcedir/onboot.lst  but won't get loaded?
If so, make sure the last line in  onboot.lst  is an empty line.

Why Firefox won't start I don't know. Need more info.
Try things in a terminal window and check if you get any error messages.
Title: Re: Install from live usb flash
Post by: andfree on April 03, 2016, 12:42:38 PM
So, firefox.tcz is listed in  /etc/sysconfig/tcedir/onboot.lst  but won't get loaded?
If so, make sure the last line in  onboot.lst  is an empty line.

Yes, it is.

Why Firefox won't start I don't know. Need more info.
Try things in a terminal window and check if you get any error messages.

Code: [Select]
$ firefox
sh: firefox: not found
Title: Re: Install from live usb flash
Post by: Misalf on April 03, 2016, 12:59:46 PM
O.o
The extension is really loaded?
Code: [Select]
ls /usr/local/tce.installed/firefox
If so, maybe firefox_getLatest failed at creating the extension properly, which I doubt though.
Anyway, maybe it helps to run firefox_getLatest.sh again and reboot.
Title: Re: Install from live usb flash
Post by: andfree on April 03, 2016, 01:29:19 PM
Code: [Select]
tc@box:~$ ls /usr/local/tce.installed/firefox
ls: cannot access /usr/local/tce.installed/firefox: No such file or directory
Title: Re: Install from live usb flash
Post by: andfree on April 03, 2016, 11:23:39 PM
Today I ran again:

Code: [Select]
firefox_getLatest.sh

tce-load -i firefox

This time, an icon in wbar and a right-click menu entry were created. But when I click the firefox icon or the firefox at menu, nothing happens.
Title: Re: Install from live usb flash
Post by: andfree on April 03, 2016, 11:28:53 PM
I rebooted and both icon & menu entry have gone again.
Title: Re: Install from live usb flash
Post by: andfree on April 04, 2016, 03:19:13 AM
Code: [Select]
tc@box:~$ tce-load -i firefox
/usr/local/tce.installed/firefox: line 3: dbus-uuidgen: not found
firefox.tcz: OK
Title: Re: Install from live usb flash
Post by: Misalf on April 04, 2016, 04:48:09 AM
dbus.tcz  is missing.
Run
Code: [Select]
cat /etc/sysconfig/tcedir/optional/firefox.tcz.dep
It should be
Code: [Select]
gtk2.tcz
libasound.tcz
dbus-glib.tcz
hicolor-icon-theme.tcz
cairo.tcz
gamin.tcz

Otherwise create that file, and/or use  tce-load -w  to download missing dependencies.

I wonder if the fact that the main repo was down caused the script to do something wrong.
Title: Re: Install from live usb flash
Post by: andfree on April 04, 2016, 05:29:44 AM
It should be
Code: [Select]
gtk2.tcz
libasound.tcz
dbus-glib.tcz
hicolor-icon-theme.tcz
cairo.tcz
gamin.tcz


It is.

I wonder if the fact that the main repo was down caused the script to do something wrong.

I also tried to install kmaps.tcz and I had similar problems: I find it at onboot list, a right-click menu entry was created, but it seemed to be dead. After reboot, this entry has gone.

On the other hand, it seems that I have successfully installed opera (a browser was needed), rox-filer, spacefm. They don't disappear after reboot.
Title: Re: Install from live usb flash
Post by: coreplayer2 on April 04, 2016, 12:11:44 PM
You'll need to install via "OnBoot" before selecting "Go" then select item from desktop menu


(https://db.tt/ZqaYpsbt)

It's not that items disappear, you'll need to add firefox to OnBoot List  APPS > Maintenance > "OnBoot Maintenance" (including other applications which don't automatically add items to OnBoot list)  for it load and to show up on reboot
Title: Re: Install from live usb flash
Post by: coreplayer2 on April 04, 2016, 12:34:51 PM
Sometimes folks like to download extensions manually, I am not sure whether because of preference or the lack of APPS familiarity? but the result is often missing deps.     The way to resolve these issues is to open APPS; then select from
Apps > Maintenance > Dependencies and Deletions, then
Dependencies >  "Build Reporting Database"
Dependencies >  "Update .dep files"
Dependencies >  "Fetch Missing Dependencies"
Dependencies >  "Exit Dependency Check"
Apps "Quit"

(Note: helps if you perform the steps in the above order)
Title: Re: Install from live usb flash
Post by: andfree on April 04, 2016, 01:25:27 PM
I thought firefox_getLatest.sh would automatically set firefox.tcz to be loaded OnBoot.
Otherwise you can do so via Apps -> Maintenance -> OnBoot Maintenance.

It's already at the list there.

I was wrong on this. firefox_getLatest.tcz was there. firefox.tcz was not there. Sorry. I added it now via Apps -> Maintenance -> OnBoot Maintenance. Then I did this:

Apps > Maintenance > Dependencies and Deletions, then
Dependencies >  "Build Reporting Database"
Dependencies >  "Update .dep files"
Dependencies >  "Fetch Missing Dependencies"
Dependencies >  "Exit Dependency Check"
Apps "Quit"

This fixed the dbus.tcz issue.

Next this:

Code: [Select]
$ tce-load -i firefox
Finally rebooted and now everything is OK. Thank you all.

But still haven't found how to get kmaps.tcz work.
Title: Re: Install from live usb flash
Post by: coreplayer2 on April 04, 2016, 10:01:31 PM
Great, you got that glitch sorted out, it's possible that you attempted to install applications during the minor repo outage .?  Sorry, Hate that :p
 You'll find tinycore is easy to resolve issues like this, it's just a question of a little patience.

I think a kmaps tutorial is in the FAQ at the top of this web site however I also suggest "The TinyCore Book" which is useful to have nearby when new to tc

Good luck

Sent from my iPad using Tapatalk HD