How does the News ticker work?
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
How does the News ticker work?
With the News ticker in 1.0.5 I am just get a logo appearing (after clicking on the various options . . .) What am I doing wrong?
I am sure there must be some news happening - or has the world been stunned into silence at the new Puppy 1.0.5? ( m m m . . . should have thought of that . . .)
I am sure there must be some news happening - or has the world been stunned into silence at the new Puppy 1.0.5? ( m m m . . . should have thought of that . . .)
I think I know the answer:
Run it from /usr/local/apps/Ticker (click the icon) instead of the start menu and it should work.
Reason:
I've put a line "mkdir /root/.ticker" in the AppRun script in /usr/local/apps/Ticker. That creates a folder ".ticker" in /root, which is essential for the program to work.
Currently the line in .jwmrc that runs ticker from the start menu is "exec ticker2" (but not exec /usr/local/apps/Ticker/AppRun), which doesn't create the needed folder. I should have included that folder in the dotpup besides putting the mkdir line in AppRun
I haven't got it work as my modem doesn't like the new puppy... so please report back after testing the solution above
Run it from /usr/local/apps/Ticker (click the icon) instead of the start menu and it should work.
Reason:
I've put a line "mkdir /root/.ticker" in the AppRun script in /usr/local/apps/Ticker. That creates a folder ".ticker" in /root, which is essential for the program to work.
Currently the line in .jwmrc that runs ticker from the start menu is "exec ticker2" (but not exec /usr/local/apps/Ticker/AppRun), which doesn't create the needed folder. I should have included that folder in the dotpup besides putting the mkdir line in AppRun
I haven't got it work as my modem doesn't like the new puppy... so please report back after testing the solution above
Last edited by puppian on Sat 01 Oct 2005, 08:07, edited 1 time in total.
[url=http://puppylinux.org]Puppylinux.org - Community home page of Puppy Linux[/url] hosted by Barry (creator of Puppy), created and maintained by the [url=http://puppylinux.org/user/readarticle.php?article_id=8]Puppy Linux Foundation[/url] since 2005
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
Puppian,
so a little script in /usr/local/bin:
#!/bin/sh
cd /usr/local/apps/ticker
exec ticker2
The Unleashed package is here:
ftp://ibiblio.org/pub/linux/distributio ... packages-1
it is called ticker-0005a.tar.gz
You can open it:
# tar -zxf ticker-005a.tar.gz
make mods, then put it together again:
# tar -c -f ticker-005a.tar ticker-005a/
# gzip ticker-005a.tar
When you have it open, you can also create /root0/.ticker,
so AppRun will not be required.
After fixing it, send it to me.
Regards,
BarryK
bkaulerATgooseeDOTcom
so a little script in /usr/local/bin:
#!/bin/sh
cd /usr/local/apps/ticker
exec ticker2
The Unleashed package is here:
ftp://ibiblio.org/pub/linux/distributio ... packages-1
it is called ticker-0005a.tar.gz
You can open it:
# tar -zxf ticker-005a.tar.gz
make mods, then put it together again:
# tar -c -f ticker-005a.tar ticker-005a/
# gzip ticker-005a.tar
When you have it open, you can also create /root0/.ticker,
so AppRun will not be required.
After fixing it, send it to me.
Regards,
BarryK
bkaulerATgooseeDOTcom
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
GuestToo has created a Service Pack for Puppy 1.0.5.
I have asked him to put the fix for Ticker into it.
See:
http://www.murga.org/~puppy/viewtopic.php?p=15855#15855
I have asked him to put the fix for Ticker into it.
See:
http://www.murga.org/~puppy/viewtopic.php?p=15855#15855
i made a Ticker bugfix dotpup ... i won't put a bigfix in the bugfix package until it seems to be working properly
I'm wrong here, nothing should be (can be) put in /root.puppian wrote:I should have included that folder in the dotpup besides putting the mkdir line in AppRun
And sorry I think I haven't make it clear:
The ONLY change that needs for it to work is change the line that execute ticker (in .jwmrc) to exec /usr/local/apps/Ticker/AppRun
The directory /root/.ticker only needs to be created once (when the user run the program the first time from the start menu). No need for it to be created everytime in fact. So I don't think it's neccessary for the script 'ticker2' and 'ticker' to be able to make the directory. AppRun will do that, and I think most people will start it the first time from the start menu.
But of course, the mkdir /root/.ticker line can be added to 'ticker2' and 'ticker' too, if someone thinks that's better.
PS. G2 your fix looks too complex to me... just running the program from /usr/local/apps/Ticker should be fine. And after that 'ticker2' and 'ticker' should work from the command line too, as /root/.ticker has already been created. Have you tried that and does that work?
i find that on my machine, connected to the internet with an adsl connection, that the ticker does not seem to work properlyAnd sorry I think I haven't make it clear:
The ONLY change that needs for it to work is change the line that execute ticker (in .jwmrc) to exec /usr/local/apps/Ticker/AppRun
it starts and displays the name of the ticker program, and does nothing else ... it does not tick
it does download the file to /root/.ticker ... but the ticker doesn't use it
if i change wget & to wget, it seems to work ok on my machine ... or i can put a sleep 1 command before the exec ticker.app, that also seems to work
but no, the ticker does not seem to work properly on my machine
the way i did it:
1) the roxapp works the way a roxapp should ... if you click it it works ... a roxapp really should not be run by directly accessing the files inside the folder ... usually a roxapp can run where ever you put it ... this one won't work if you move it, which is probably not important
2) ticker and ticker2 (identical files after my bugfix) start the roxapp using rox ... as if you clicked the roxapp in rox ... there are advantages to that, rox automatically runs it as a background process
3) it should not be necessary to change any menus ... whether it is run as ticker or ticker2, it should work
anyway, the bugfix seems to run ok on my machine ... it did not run well before the bugfix
Oh yes, that should work for most people. I didn't know /root0/ before, perhaps I should go for a 'Puppy Class' or 'Linux Class'BarryK wrote:When you have it open, you can also create /root0/.ticker,
so AppRun will not be required.
I see. You mentioned that in your other postGuestToo wrote:i find that on my machine, connected to the internet with an adsl connection, that the ticker does not seem to work properly
So do you mean that you have never got ticker to work in Puppy 1.03 or 1.04 too (with my old dotpup that install into /root/my-application)?
That happened to me before and I added "&" after the line below (in the files bbcuk, timeworld, etc)GuestToo wrote:it starts and displays the name of the ticker program, and does nothing else ... it does not tick
it does download the file to /root/.ticker ... but the ticker doesn't use it
if i change wget & to wget, it seems to work ok on my machine ... or i can put a sleep 1 command before the exec ticker.app, that also seems to work
Code: Select all
sed 's/.*<title>//g' | sed 's/<\/title>.*//g' > $OUTPUT
Code: Select all
sed 's/.*<title>//g' | sed 's/<\/title>.*//g' > $OUTPUT &
That's a good change! Thanks for thatGuestToo wrote:1) the roxapp works the way a roxapp should ... if you click it it works ... a roxapp really should not be run by directly accessing the files inside the folder ... usually a roxapp can run where ever you put it ... this one won't work if you move it, which is probably not important
2) ticker and ticker2 (identical files after my bugfix) start the roxapp using rox ... as if you clicked the roxapp in rox ... there are advantages to that, rox automatically runs it as a background process
I want to do it myself, just don't know how to (and is too lazy to learn).
[url=http://puppylinux.org]Puppylinux.org - Community home page of Puppy Linux[/url] hosted by Barry (creator of Puppy), created and maintained by the [url=http://puppylinux.org/user/readarticle.php?article_id=8]Puppy Linux Foundation[/url] since 2005
Lobster, are you using adsl or dialup?Lobster wrote:Just to confirm - ticker working after G2's Bug fix
[url=http://puppylinux.org]Puppylinux.org - Community home page of Puppy Linux[/url] hosted by Barry (creator of Puppy), created and maintained by the [url=http://puppylinux.org/user/readarticle.php?article_id=8]Puppy Linux Foundation[/url] since 2005
i have not tried your ticker program until todaySo do you mean that you have never got ticker to work in Puppy 1.03 or 1.04 too
that is what does not seem to work on my machine ... usually the ticker shows the name of the ticker app and does not do anything else ... if i remove the &, it works okThat happened to me before and I added "&" after the line
maybe what is happening is that wget is writing to the file at the same time that ticker.app is starting ... with dialup there may be a pause until the file downloads
when you click a roxapp, it runs AppRun ... but the working dir will not be the dir of the roxapp ... in your case the working dir would probably be /usr/local/apps/ (or maybe it's /root, i don't remember) ... that's what the APPDIR variable is for ... and it usually lets you move the roxapp anywhere you like and it will still work
anyway, it did not seem to work well ... when i took out the &'s or added a sleep 1 command, it seemed to work ok ... maybe it would work if ticker.app started first, then wget, maybe with a sleep 1 command ... i have not tried that yet
i just tried this:
ticker.app &
wget
this seems to work ok too
this might be safer:
ticker.app &
sleep 1
wget
maybe the problem occurs if wget is writing the file at the same time ticker.app is reading it
anyway, what happens is, the ticker starts, displays the name of the ticker program, and does not do anything else ... it does not display the file, which is there in /root/.ticker ... it does not always freeze, it sometimes works ok ... but most of the time it just freezes ... with any of the bugfix methods, it seems to work ok
ticker.app &
wget
this seems to work ok too
this might be safer:
ticker.app &
sleep 1
wget
maybe the problem occurs if wget is writing the file at the same time ticker.app is reading it
anyway, what happens is, the ticker starts, displays the name of the ticker program, and does not do anything else ... it does not display the file, which is there in /root/.ticker ... it does not always freeze, it sometimes works ok ... but most of the time it just freezes ... with any of the bugfix methods, it seems to work ok
Sorry I remembered it wrong!!puppian wrote:That happened to me before and I added "&" after the line below (in the files bbcuk, timeworld, etc)the line becomes:Code: Select all
sed 's/.*<title>//g' | sed 's/<\/title>.*//g' > $OUTPUT
And that fix it.Code: Select all
sed 's/.*<title>//g' | sed 's/<\/title>.*//g' > $OUTPUT &
Now I remember... I put the "&" there because if I don't do that, people will see nothing (for a few seconds) after clicking the cat button (I guess this only happens for slow connection).
The bar at top left will only appears after the news download has finished. So I added the "&" to put the download process to background, so that people will still see something (the bar showing the 'logo', though the news are still being downloaded.
this method solves that problem:I put the "&" there because if I don't do that, people will see nothing (for a few seconds) after clicking the cat button
ticker.app &
wget
the ticker starts immediately, the ticker window appears immediately, and wget can take all the time it needs in the background
You are right.
Both
ticker.app &
wget
And
ticker.app &
sleep 1
wget
works!
I tested it on 1.0.3, dialup connection. I haven't test the whole bugfix as I already have some ticker stuff installed (/root/my-application, /usr, every where ). I just edited the file 'bbcuk' and that works.
So I think we need more people (esp. those using dialup) to confirm it.
PS. Thanks for discovering that
(and thanks for testing it Lobster)
Both
ticker.app &
wget
And
ticker.app &
sleep 1
wget
works!
I tested it on 1.0.3, dialup connection. I haven't test the whole bugfix as I already have some ticker stuff installed (/root/my-application, /usr, every where ). I just edited the file 'bbcuk' and that works.
So I think we need more people (esp. those using dialup) to confirm it.
PS. Thanks for discovering that
(and thanks for testing it Lobster)
[url=http://puppylinux.org]Puppylinux.org - Community home page of Puppy Linux[/url] hosted by Barry (creator of Puppy), created and maintained by the [url=http://puppylinux.org/user/readarticle.php?article_id=8]Puppy Linux Foundation[/url] since 2005