Tiny Core Linux
Tiny Core Extensions => TCE Talk => Extension requests => Topic started by: meo on April 03, 2013, 07:04:05 AM
-
Hi!
I would appreciate very much if someone could make an update of Firefox ESR. Firefox 17.0.5 is now the latest in the extended support release. Please!
Kind regards,
meo
-
meo,
Maybe we should learn how to update it ourselves then upload it to the server, instead of waiting for them. What do you think? It couldn't be that hard, plus we would be helping in a way.....
-
I am involved in some other stuff at this time, Firefox's are on the back burner at the moment. Thanks for understanding.
-
I might offer to help but firstly ESR causes me a concern. I am not a great coder but not having much luck with my printer PPD so might as well shift focus to have a mental holiday.
meo and others are you aware of this?
Who is it for?
Firefox ESR is intended for groups who deploy and maintain the desktop environment in large organizations such as universities and other schools, county or city governments and businesses.
Who is it not for?
Individual users who always want the latest features, performance enhancements and technologies in their browser without waiting for them to become available in ESR several development cycles later.
I could update firefox v 19 to v 20 which is the latest? (when I ask for permission, not sure if that is correct direction until I see your reply)
2) Last time I used firefox on a scattermode distro, you can unpack it into your home folder and do your own updates.
Does that excite you at all?
-
Yes, i'm aware that ESR is different then the standard Firefox. I'm actually all for Firefox version 20.0 which i have posted about recently. I'm not sure what "scattermode distro" is, but it would be nice to learn how to update this Firefox from version 19.0 to 20.0 on my own. Thanks
- This thread is the one i have been updating regarding the standard Firefox
http://forum.tinycorelinux.net/index.php/topic,2536.30.html
-
ok then sorry if I am telling you how to suck eggs, send a pm to Jason W asking for permission to update firefox (v 19)
I am replying here on the ESR thread so I don't despoil the other thread.
Assuming Jason reads this reply, I have already sent a pm, which he can ignore if he wishes.
-
No, i meant it would be nice if someone here could possibly teach me how to update Firefox, so i can do it next time on my own. Besides, i don't even like eggs and not to mention that the yellow in the middle is not even good for you. Sound good?
-
well I will have a go at building the ESR as meo has yet to reply.
Then show my simple build script and you just adapt it to do v 20 but I can't promise to get it out fast.
I may be wrong, but maybe meo actually wants ESR. Others may also want to reply?
-
Just as well I think you are not egging me on. Let me see if you like using a shell? (lxterminal)
ok here we go
1) I am a simple coder but as Jason W is not, we can assume his tce.installed script is correct and his desktop entry and most of his depends
b) I found one extra dep but I am using 4.7.6 and he may have tested on some earlier edition
c) I have dbus loading and running on my full system but a test on flwm_topside suggests we don't need to mention it in the info file.
2) First I run my build script with root powers, and try to obey the wki. This one is easier tho as we don't actually compile, just re-arrange and add only minor stuff.
script removed, it had a bad permission in it see later posts
The last line is to run submitqc4 and will bork unless you have created an info file and depending on package a dep. If there are dev and doc and libs then they have their own info files etc so here is mine......but not submitted see below
quote box destroys the TAB settings
Title: firefox17.tcz
Description: Firefox web browser
Version: 17.0.5.ESR
Author: The Mozilla Community
Original-site: http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/17.0.5esr/linux-i686/en-GB/
Copying-policy: Mozilla Public License 2.0
Size: 24M
Extension_by: aus9
Tags: Web browser mozilla firefox esr
Comments: This is the extended service release build of Firefox
License conditions see web link
about:license#mpl
Change-log: 2013/02/28 First version 17.0.3 (Jason W)
Current: 2013/04/10 updated to 17.0.5 (aus9)
and the dep file
libasound.tcz
curl.tcz
libnotify.tcz
libxcb.tcz
hicolor-icon-theme.tcz
The only dep I added was hicolor.....and who ever becomes the downstream maintainer is expected to boot up into (I suggest) flwm_topside or basic TC and then run the executable in a terminal until all dependencies are discovered.
Being lazy, I have made no effort to mod Jason's tce.installed script.....so I cheated and used the existing one.
Before we get too carried away
---I do NOT have permission to upgrade
nor do I want to now.
What I hope is maybe if you like my build you adapt it to see if you can build the firefox v 20 and maybe Meo or someone who actually uses ESR offers Jason they will take over if he agrees.
ok?
If you like code, you may wish to adapt Jason's scmbuild script which is here for testing tcz dependencies while mine does no do any test.
http://www.tinycorelinux.net/4.x/x86/scm/src/buildscm
obligatory screenshot
(http://ompldr.org/vaTFzZg/fox.jpg)
There are plenty of people here to help you .....the more who share the load the better eh? any how good luck
-
Hi guys!
Sorry that I've missed to comment on this thread. ;) I can blame sickness in the family that has been quite alarming. I use the esr mainly because of the "illusion" that it might be safer than the latest. I've been thinking about it and a script to update to the new versions as they come would be good if it's possible. That would perhaps be to prefer not to burden Jason with it. I guess he has quite a lot to do anyway. I am using the latest cut of TC and will check out the script mentioned by aus9 but have a hard time to focus as a very dear friend of mine just passed away and the funeral is on Friday. Thanks to all for your interest! I really appreciate it!
Kind regards,
meo
-
Hi again!
Tried the script several times but with no success. Too much buzzing around in my head to think right now. Would love to be able to update the firefox i use myself but it'll have to wait a while till I get thinks straightened out and can concentrate.
Regards,
meo
-
So how do you run this script and what are you obeying on wki? What is the wki? You mean Wiki? What page on the Wiki? I have never done this before, so you'd have to go step by step on this one for me. Maybe put in some commands or did i get this whole thing wrong already and it is even simpler than i expected?
-
meo
sorry to hear about that, my dad is 87 and is close to heaven so I can almost guess what you are going through a little.
LinuxUser01
Lets start with the wiki
http://wiki.tinycorelinux.net/wiki:creating_extensions
It has a cousin
http://wiki.tinycorelinux.net/wiki:iconmenuinfo
Maybe you can save those links as bookmarks
2) We are not compiling so most of the wiki is irrelevant to us. You dowload the source, unpack it, move it to appropriate folders and some ownership and permissions ---- as per wiki----for the shared objects (= *.so files)
--create a desktop entry as most people like that kind of thing
3) How do you run it?
download the script and save it ....lets keep the name build.sh
make it executable
chmod +x build.sh
(and run it)
sudo sh build.sh
Be aware it will download a big file, 24 megs and the last line will bork or crash as you may not have put the info file and the dep file under /tmp
4) As its an existing package......and we know its written by Jason W.....one of the gurus......we can trust his original build was good so open apps and look at the file structure
you will notice he has the desktop entry and the tce.installed script which is EXTRA to the firefox unpack......got it?
so I cheat
I download the old package and load it, I then navigate to /tmp/tcloop/firefox17/usr/local/tce.installed
and save the text file called firefox17........I paste that into the build script but surround it with a small bit of junk
echo ' (pasted line) ' > $T ------this creates the file, all other lines obey the formula
echo ' (pasted line) ' >> $T
I do the same thing for his desktop entry, but give it a new variable name $D
I made those names up, but define them before I have the script action them, see the top of the script
Now the wiki also says you need to do things to get that tce.installed script correct so you will see I add
sudo chown -R root:staff $F/usr/local/tce.installed
sudo chmod -R 775 $F/usr/local/tce.installed
and I have mentioned so files as per wiki
good luck
PS, you will need to download all tczs I mention at the top of the script before running the script as I make no attempt to check if YOU personally have them already downloaded.
sidenote, my fav TCZ checker gutmensch may want me to do that check but he has never asked me to, but in my prev reply I mentioned there is way of doing it, but I guess your coding skills are as weak as mine. So just run
tce-load -w compiletc submitqc4 wget
if you know you don't have those packages yet
-
I decided to try and be smarter with all that echo stuff
so will show just the new way of doing the desktop entry
# create desktop entry
mkdir -p $F/usr/local/share/applications
cat <<EOF >> $F/usr/local/share/applications/firefox17.desktop
[Desktop Entry]
Name=Firefox17
Exec=/usr/local/firefox17/firefox
Terminal=False
Comment=Firefox17 Web Browser
StartupNotify=True
Type=Application
Categories=Application;Network;
Icon=firefox17
X-FullPathIcon=/usr/local/share/pixmaps/firefox17.png
EOF
have a go at doing the same for tce.installed start up script
I will upload an improved version later
reference
http://stackoverflow.com/questions/4990172/how-to-append-several-lines-of-text-in-a-file-using-a-shell-script
hmmm might need a smarter way for things that look like commands tce.installed is borking atm
-
Hi aus9
cat <<EOF >> $F/usr/local/share/applications/firefox17.desktop
[Desktop Entry]
Name=Firefox17
......
X-FullPathIcon=/usr/local/share/pixmaps/firefox17.png
EOFIf you run this more than once, the >> will cause the commands to be appended to the existing file, you probably
want just a single >.
-
Rich
my way and your way work fine for desktop entry but I am getting a bork trying to do the same for tce.installed
I have removed the $ variable so you can duplicate my error if you have time?
cd /tmp
mkdir -p firefox17/usr/local/tce.installed
(now I try)
cat <<EOF > firefox17/usr/local/tce.installed/firefox17
#!/bin/sh
[ -e /usr/local/bin/firefox ] || ln -s /usr/local/firefox17/firefox /usr/local/bin/firefox
if [ -f /tmp/tcloop/firefox17/usr/local/firefox17/firefox ]; then
rm /usr/local/firefox17/firefox
busybox cp -p /tmp/tcloop/firefox17/usr/local/firefox17/firefox /usr/local/firefox17/firefox
fi
if [ -f /tmp/tcloop/firefox17/usr/local/firefox17/firefox-bin ]; then
rm /usr/local/firefox17/firefox-bin
busybox cp -p /tmp/tcloop/firefox17/usr/local/firefox17/firefox-bin /usr/local/firefox17/firefox-bin
fi
[ -d /var/lib/dbus ] || mkdir -p /var/lib/dbus
[ -f /var/lib/dbus/machine-id ] || dbus-uuidgen --ensure=/var/lib/dbus/machine-id
EOF
(result is)
cat <<EOF > firefox17/usr/local/tce.installed/firefox17
> #!/bin/sh
>
> [ -e /usr/local/bin/firefox ] || ln -s /usr/local/firefox17/firefox /usr/local/bin/firefox
>
> if [ -f /tmp/tcloop/firefox17/usr/local/firefox17/firefox ]; then
> rm /usr/local/firefox17/firefox
> busybox cp -p /tmp/tcloop/firefox17/usr/local/firefox17/firefox /usr/local/firefox17/firefox
> fi
>
> if [ -f /tmp/tcloop/firefox17/usr/local/firefox17/firefox-bin ]; then
> rm /usr/local/firefox17/firefox-bin
> busybox cp -p /tmp/tcloop/firefox17/usr/local/firefox17/firefox-bin /usr/local/firefox17/firefox-bin
> fi
>
> [ -d /var/lib/dbus ] || mkdir -p /var/lib/dbus
> [ -f /var/lib/dbus/machine-id ] || dbus-uuidgen --ensure=/var/lib/dbus/machine-id
> EOF
>
that last > is causing me a concern
I am thinking.....as the local village idiot that the echo is trying to process the internal contents?
With the desktop echo, the command completes and takes you back to the prompt
thanks for reading
-
solved it with another google search
mkdir -p firefox17/usr/local/tce.installed
echo '#!/bin/sh
[ -e /usr/local/bin/firefox ] || ln -s /usr/local/firefox17/firefox /usr/local/bin/firefox
if [ -f /tmp/tcloop/firefox17/usr/local/firefox17/firefox ]; then
rm /usr/local/firefox17/firefox
busybox cp -p /tmp/tcloop/firefox17/usr/local/firefox17/firefox /usr/local/firefox17/firefox
fi
if [ -f /tmp/tcloop/firefox17/usr/local/firefox17/firefox-bin ]; then
rm /usr/local/firefox17/firefox-bin
busybox cp -p /tmp/tcloop/firefox17/usr/local/firefox17/firefox-bin /usr/local/firefox17/firefox-bin
fi
[ -d /var/lib/dbus ] || mkdir -p /var/lib/dbus
[ -f /var/lib/dbus/machine-id ] || dbus-uuidgen --ensure=/var/lib/dbus/machine-id
' > firefox17/usr/local/tce.installed/firefox17
gives you
cat /tmp/firefox17/usr/local/tce.installed/firefox17
#!/bin/sh
[ -e /usr/local/bin/firefox ] || ln -s /usr/local/firefox17/firefox /usr/local/bin/firefox
if [ -f /tmp/tcloop/firefox17/usr/local/firefox17/firefox ]; then
rm /usr/local/firefox17/firefox
busybox cp -p /tmp/tcloop/firefox17/usr/local/firefox17/firefox /usr/local/firefox17/firefox
fi
if [ -f /tmp/tcloop/firefox17/usr/local/firefox17/firefox-bin ]; then
rm /usr/local/firefox17/firefox-bin
busybox cp -p /tmp/tcloop/firefox17/usr/local/firefox17/firefox-bin /usr/local/firefox17/firefox-bin
fi
[ -d /var/lib/dbus ] || mkdir -p /var/lib/dbus
[ -f /var/lib/dbus/machine-id ] || dbus-uuidgen --ensure=/var/lib/dbus/machine-id
nice and simple eh
solution google result was http://www.linuxquestions.org/questions/linux-software-2/echo-multiple-lines-of-text-312048/#post1585203
-
new and slightly improved build script now reads
script removed being rebuilt will show below
so for each desktop entry or init.d or tce.installed script (if needed for builds) we now can use
echo 'first line
second line
last line
' > pathway/filename
EDIT have redone script and added info and dep and tce-load -wi
good luck
firefox17 users
#########
If you use this package, remember to go to /tmp afterwards to find the files
Make backups of your current tcz files and then copy
firefox17.tcz its dep and its md5 into your tce/optional
---the other files are only for those following the wiki who after getting permission from current maintainer wish to submit some stuff
EDIT 2
forgot to mention, in case you don't know, when you run apps ---> updates you will now get hits for firefox17
you now ignore them, click on it to see who the maintainer is and when the date is later than yours
you will know the current maintainer, or new maintainer has had their updates accepted.
I am sure I can express that better, but will wait to see if you understand my waffle.
-
Will this script work with earlier versions of Tinycore..ie tc3 or even tc2?
-
I have never used them. I am not sure why you would still be on them unless your hardware was excluded by more recent editions
Try running it with sudo and see if it builds and once in tce/optional will work?
good luck
-
EEK
I have introduced a bad setuid gremlin. I think I know what the issue is, its the tce.installed permissions but I have not yet resolved it.
Until further notice, you can not load my build of firefox17 if you built it. If you have then ------Please go to apps -> maintenance -> check for updates and process firefox17 (takes you back to rep version)
(Just as well I don't have permission to upgrade eh)
-
Issue is resolved , was not a firefox17 issue but something else so here is script again, improved a wee bit more
http://ompldr.org/vaTNyMw/build.sh
-
Hi aus9!
Thanks for the script! Works perfect and I'm now posting this from the Firefox 17.0.5. Thanks again!
Kind regards,
meo
-
glad it worked
-
Hi aus9!
Can't download the build.sh script to make a tcz of Firefox-17.0.5! I updated my system and something went wrong and now I'm trying to rebuild my TC system again. Would appreciate if you could post the script here in this forum. Thanks beforehand!
Always have a backup! Learn from me who thought I had it :(
meo
-
well that file hosting site seems to have an issue for me as well.
Why don't you pm the other responder to that script and see if he kept a copy?
and I did not keep the script as I thought it worked. Try waiting a day or so maybe the server is down for maintenance at omp*.....if it comes back let me know and I will upload it to a new site at dropbox I have created for other such situations.
I am kind of busy with other stuff at the moment so just download it and unpack it into your home folder
---persistence could be an issue......you may like to advise if you have a persistent home or not
you can create a desktop entry but its easy to just open a terminal and run something like
/unpack-name/firefox17/firefox-bin
good luck
-
the site is down for me atm but it has been up....looks like it might be a timing issue.....I chose the wrong time
http://websitedownornot.com/ompldr.org.html
status UP 05/16/201317:28:32 2.92 ms. 1 day ago