Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 11 Dec 2018, 23:27
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Suggestions
Seeing Dog Puppy for Blind
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 5 of 51 [763 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, ..., 49, 50, 51 Next
Author Message
mcewanw

Joined: 16 Aug 2007
Posts: 3200

PostPosted: Mon 14 Jan 2008, 09:04    Post subject:  

Trobin wrote:

A couple questions:

1-I need to write a script that will run FreeTTS and then Yasr. The issue is that after I get FreeTTS started I have to use CTRL-C to return to the cursor so the yasr command can be entered. How can that be dome in a script?


I don't have any of these programs you mention, so I'm partly only guessing at what you mean. However, the usual way of starting up a program, from a bash console commandline or from a bash script, such that you don't need to wait on the program finishing before starting another program, is to run it as a "background" process.

To run a program in the background, put a space followed by an ampersand sign at the end of its name on the commandline (or in the startup script):

whatever_the_commandname_is &

For example: freetts &
(or whatever the program name is, and assuming that the program is in your executable search PATH).

Note that the '&' means: run the command in the background.

If you already know the above, you'll need to explain your problem in more detail before I could suggest anything else.

Trobin wrote:

2-What file do I need to edit to get the script running once Speak-Pup boots?


Again, I'm not absolutely sure if this is what you mean, but:

The script /etc/rc.d/rc.local is often used to add commands or programs you want to start up automatically and immediately after your system has booted up.

As for remastering from a commandline Puppy, I'm afraid I have no idea about that, sorry. Perhaps someone else will volunteer an answer.
Back to top
View user's profile Send private message Visit poster's website 
raffy

Joined: 25 May 2005
Posts: 4839
Location: Manila

PostPosted: Mon 14 Jan 2008, 10:24    Post subject: remaster  

The remaster script is in /usr/sbin, and you can edit it to remove xdialog and provide direct answers from within the script.
_________________
Puppy user since Oct 2004. Want FreeOffice? Get the sfs (English only).
Back to top
View user's profile Send private message 
Trobin

Joined: 18 Aug 2005
Posts: 977
Location: BC Canada

PostPosted: Mon 14 Jan 2008, 11:27    Post subject:  

Thank you
Back to top
View user's profile Send private message 
Trobin

Joined: 18 Aug 2005
Posts: 977
Location: BC Canada

PostPosted: Tue 15 Jan 2008, 01:13    Post subject:  

Quote:
I don't have any of these programs you mention, so I'm partly only guessing at what you mean. However, the usual way of starting up a program, from a bash console commandline or from a bash script, such that you don't need to wait on the program finishing before starting another program, is to run it as a "background" process.


What I needed was for the script to run the speech synthesizer in the background and then run yasr.

This works
Quote:
#!/bin/sh
# yasr-freetts - execute yasr (Yet Another Screen Reader) using FreeTTS
# (running as an emacspeak server) as the text to speech synthesizer.
#
#
echo Starting the FreeTTS text to speech synthesizer.
java -jar bin/FreeTTSEmacspeakServer.jar &

sleep 10

echo Starting yasr.
yasr
Back to top
View user's profile Send private message 
Trobin

Joined: 18 Aug 2005
Posts: 977
Location: BC Canada

PostPosted: Tue 15 Jan 2008, 01:25    Post subject:  

Quote:
Again, I'm not absolutely sure if this is what you mean, but:

The script /etc/rc.d/rc.local is often used to add commands or programs you want to start up automatically and immediately after your system has booted up.


When Puppy-OneBone boots it goes into Elinks. I don't want it to run Elinks. I need it to run my script and a menu.
Back to top
View user's profile Send private message 
Trobin

Joined: 18 Aug 2005
Posts: 977
Location: BC Canada

PostPosted: Tue 15 Jan 2008, 03:21    Post subject:  

No dice

I edited /etc/rc.d/rc.local , in Puppy One Bone, to add the following lines
Quote:
#start Freetts and yasr
cd /root/freetts-1.2.1
echo start speech synthsizer
java -jar bin/FreeTTSEmacspeakServer.jar &
#
sleep 10
#
echo start screen reader
yasr


It cannot find the java command even though I've cd'd to the FreeTTS directory. Yet when the system is fully booted, I can run another script, pretty much the same, and everything works. Java is found, FreeTTS works in the backgrouns, and I get to be annoyed by the voice.

I can only conclude that somewhere between when rc.local0 calls rc.local and full boot java comes into play. Also Elinks is still run
Back to top
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2946
Location: Southampton, UK

PostPosted: Tue 15 Jan 2008, 04:14    Post subject:  

try entering the full path to java
_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
Trobin

Joined: 18 Aug 2005
Posts: 977
Location: BC Canada

PostPosted: Tue 15 Jan 2008, 12:52    Post subject:  

Thanks, I'll give it a try later today.

I think I'll be okay with OneBone if I can find out why it's booting to Elinks, find the file that's doing it, and tweak it so that it runs emma.sh instead of elinks.

I've already checked all the files in /etc/rc.d/ and cannot see where the elinks command is executed.
Back to top
View user's profile Send private message 
raffy

Joined: 25 May 2005
Posts: 4839
Location: Manila

PostPosted: Tue 15 Jan 2008, 20:13    Post subject: startup  

Other than /root/.xinitrc, I've read here in the forum that a /root/Startup folder is read at boot time by Puppy.

Have you remembered adding the Java path to PATH in /etc/profile? Below is an example, but if you just added the paths to Java lib and bin, that should be OK.
Code:
export JAVA_HOME=/root/jre1.5.0_06
export PATH=$PATH:$JAVA_HOME

You have to reboot after doing this.

_________________
Puppy user since Oct 2004. Want FreeOffice? Get the sfs (English only).
Back to top
View user's profile Send private message 
Trobin

Joined: 18 Aug 2005
Posts: 977
Location: BC Canada

PostPosted: Tue 15 Jan 2008, 22:59    Post subject:  

Thanks. I'll try a start up folder. I did try changing the path, and ended up changing something so that yasr would no longer connect with FreeTTS. I may have to wipe out the pup_save.3fs file and start over again.

If I have to do that I wonder if it's better to use a more up to date version of Puppy as a base. If I do that, and I want Puppy to boo to the command line, how do I get rid of X. Can I do it by deletiong the .xinitrc file? Or is there a way to have Puppy boot and automatically use the PFIX=NOX option?
Back to top
View user's profile Send private message 
Trobin

Joined: 18 Aug 2005
Posts: 977
Location: BC Canada

PostPosted: Wed 16 Jan 2008, 01:05    Post subject:  

Onebone is now working without booting to elinks. Making a search for boot options in the forum I came accross Bruce B's answer about a similar problem. Without finding that I would never have thought of looking at /etc/profile. Also, having it run emma.sh instead of elinks does work, though I had to copy emma.sh to /usr/local/bin. But Java does work and thus Freetts wprks. Still have to figure out why yasr won't link to it though.
Back to top
View user's profile Send private message 
Trobin

Joined: 18 Aug 2005
Posts: 977
Location: BC Canada

PostPosted: Wed 16 Jan 2008, 03:55    Post subject:  

Okay, the problem with YASR has been fixed and the needed changes to /etc/profile were made. Emma.sh, a simple scriopt running FreeTTS and YASR, was copied to /usr/local/bin, and substituted for elinks in the /etc/profile script. (I might actually be learning something here. Surprised )

Anyway, speak-pup now runs emma.sh at boot up and there's no problems running java. I still have no idea why it wouldn't work when running the command from rc.local. Maybe somday I'll figure it out, or maybe not. Either way, after the computer boots, the speech synthsizer and the screen reader are running. Which is what I want.

Next step is to find out what programs work and what programs do not. On the working list is elnks and MP, the Internet browser and a text editer. Midnight Commander does not appear to playu nice with Yasr, or FreeTTS or both. It works but when I exit MC, there's a message about a segmentation fault. I wonder if the more graphically colourful the program is the more apt it is to stop the screen reader working.

Hope you guys don't mnd my rambling here.
Back to top
View user's profile Send private message 
raffy

Joined: 25 May 2005
Posts: 4839
Location: Manila

PostPosted: Wed 16 Jan 2008, 10:49    Post subject: share  

Rambling is fine, and sharing an ISO is better. Smile You can also tar czf your pup_save.3fs (after copying it to another location, that is) and then share it.

You can upload it here: ftp://puppy:linux@ftp.servage.net

_________________
Puppy user since Oct 2004. Want FreeOffice? Get the sfs (English only).
Back to top
View user's profile Send private message 
Trobin

Joined: 18 Aug 2005
Posts: 977
Location: BC Canada

PostPosted: Wed 16 Jan 2008, 12:32    Post subject: Re: cheers  

raffy wrote:
Just to cheer everyone following this thread, let me say that a group of college students in Manila is currently working on desktop application for the visually impaired (hopefully) using Puppy Linux. I have lectured to them a week ago about Puppy Linux, and informed them about this discussion. Hence, many eyes (and a few no eyes Smile ) from Manila are watching this discussion intently.

Happy New Year!!!


How are they doing?
Back to top
View user's profile Send private message 
raffy

Joined: 25 May 2005
Posts: 4839
Location: Manila

PostPosted: Wed 16 Jan 2008, 14:01    Post subject: approved  

Just recently they emailed me that their project proposal was approved.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 5 of 51 [763 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, ..., 49, 50, 51 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Suggestions
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1129s ][ Queries: 12 (0.0321s) ][ GZIP on ]