r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Linux] group for linux REBOL users

Maxim
11-Apr-2007
[1338x3]
my take:   GPL protects against the big guys, BSD allows easy industry 
adoption.  What I realise with time is that original copyright owners 
usually get the credit (and the consultation) and forks rarely really 
live on, unless the original is not supported directly.
look at wireshark... a very good example.
in any case, licensing is never perfect, whatever the license !
btiffin
11-Apr-2007
[1341]
Yep.
Graham
13-Apr-2007
[1342x3]
I want cheyenne to run up on start up.
I changed my /etc/rc3.d/S99local to call cheyenne.r but now although 
it starts up cheyenne.r, I now don't get to the Gui login for fedora 
...
do I need to return some value, or run cheyenne with some options 
?
Micha
13-Apr-2007
[1345]
i need help  . how I start   rebol cgi script  http://adam.hosting4clans.net/test.cgi
 - receives error : User Error: REBOL: Cannot connect to X server 
** Near: size-text self
Pekr
13-Apr-2007
[1346]
hmm, you probably don't have x-windows installed/running? You try 
to use View stuff, which links to x-windows libraries ... but I know 
little about it ...
Sunanda
13-Apr-2007
[1347]
If you are trying to run a CGI, best to do it with Core, not View
Looks like your script *has* started, but fails.
Micha
13-Apr-2007
[1348]
Core not load image.png
Pekr
13-Apr-2007
[1349]
Sunanda - yes, but he is evidently trying touse view related functionality
Graham
13-Apr-2007
[1350x3]
you can't use view as cgi unless x-windows is loaded
and it won't be normally ... most servers run at init 3
not at run level 5
Sunanda
13-Apr-2007
[1353x2]
Petr,  that's not always a good idea as View wants to install itself 
more thoroughly than Core
And may need elements that a server lacks.
Graham
13-Apr-2007
[1355]
Sunanda, there are command line options to not install aren't there?
Pekr
13-Apr-2007
[1356]
yes, there are. But IIRC, in cgi-mode, you would be able to use some 
basic face command functionality, but I am not sure now ....
Sunanda
13-Apr-2007
[1357]
Graham, Ah, yes: maybe he lacks the -cs on the shebang
Pekr
13-Apr-2007
[1358]
maybe that should be addressed somehow in the future? The question 
is, if it is easily solvable. OTOH even php has some imaging modules.
Graham
13-Apr-2007
[1359]
just use core to call imagemagick
Gabriele
13-Apr-2007
[1360x2]
view functionality for cgi = Command.
Graham, that sounds a bit strange, however, i would rather add a 
new start/stop script for cheyenne rather than put it in rc.local.
Graham
13-Apr-2007
[1362x2]
I'll give it a go ...
As per btiffin's suggestion, I added "&" at the end of the script 
name in my S99local file to background Cheyenne, and it is now working 
:)
btiffin
13-Apr-2007
[1364]
Graham;  Complete aside...and very dependant on firewall setiings. 
 (I have a firewall/router so the local unix box is not double firewalled...yet) 
but this lets you run Cheyenne from user process.

#!/bin/bash
#

# This script is to be run from root to allow Cheyenne to be run 
as a user
#

# NOTE: dev is eth0, spike and chester are eth1 (eth0 for the firewire)

#       this script defaults to eth1, so no longer functions on dev
#
# redirect external incoming port 80 to 8080

iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth1 -j REDIRECT 
--to-port 8080

# redirect localhost port 80 to 8080

iptables -t nat -A OUTPUT -p tcp -d 127.0.0.1 --dport 80 -j REDIRECT 
--to-port 8080
Graham
13-Apr-2007
[1365]
why does one want to run cheyenne as user and not root ?
btiffin
13-Apr-2007
[1366]
I cheyenne is hacked (or exposes a directory...) hackers own you.
Graham
13-Apr-2007
[1367]
oh ...
btiffin
13-Apr-2007
[1368]
The standard is to run a secure(r) webserver as user  nobody
Graham
13-Apr-2007
[1369]
let me know when you finish it :)
btiffin
13-Apr-2007
[1370]
A little more work, since root webservers never have to worry about 
read/write permissions but user level runs have to be a little more 
particular in permission settings.  Always a good practice anyway.
Graham
13-Apr-2007
[1371]
I've got this other little project to do.
btiffin
13-Apr-2007
[1372]
I will.  I have to prep a doc for my tech support standby.
Graham
13-Apr-2007
[1373]
faxes are coming in and are being sent out to gmail for onward forwarding.
btiffin
13-Apr-2007
[1374]
Keep on keeping on.  :)
Graham
13-Apr-2007
[1375x2]
but I want to do that on the box itself using Cheyenne.
So, I want to ocr the faxes and display the ocr'd text and a link 
to the fax
btiffin
13-Apr-2007
[1377]
Nice.
Graham
13-Apr-2007
[1378x4]
so it can be forwarded onwards correctly
the script rotates the fax in 90 deg increments until it can make 
some sense of the tif file
So, I guess I need a database perhaps ...
or just a .txt file with the same name as the tif
btiffin
13-Apr-2007
[1382]
Graham, before you know it you will be King.  King I say.
Graham
13-Apr-2007
[1383x2]
Lol.
My script already does the ocr, and emails me at gmail... I just 
want to remove the gmail component
btiffin
13-Apr-2007
[1385]
I've restrained from gmail so far.  Can't ignore the trends for too 
long though, or I'd still be running DOS and Coherent.  :)
Graham
13-Apr-2007
[1386x2]
gmail is cheap online archive for all our faxes
2.8Gb gives u quite a few faxes :)