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

World: r3wp

[Linux] group for linux REBOL users

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 :)
btiffin
13-Apr-2007
[1388x2]
Yeah, I've been hearing that it's taking over.  I almost clicked 
the gmail beta test Icon a while back, but refrained.
Hey, my address is  btiffin from canada.com.  How can you beat that, 
being thee canadian btiffin.  :)  At the time, I actually could have 
been the canadian brian, but that's boring and a little snooty.  
:)
Graham
13-Apr-2007
[1390]
you have a blog ?  Life of Brian ?
btiffin
13-Apr-2007
[1391x2]
I did like that movie...but Holy Grail is the bomb.  :)
I'll have a blog running on peoplecards.ca...and it's blog.r based. 
 I'm just a little confused by 

blog-active: true/false  and the [edit] sequence doesn't seem quite 
right yet. 

This code snippet doesn't seem to redisplay things properly...
	if cgi/save [
		show-blog save-blog cgi/save cgi/date cgi/title cgi/text
	]
Graham
13-Apr-2007
[1393]
is blog-active a test mode thing?
btiffin
13-Apr-2007
[1394x2]
No it determines if you regen the blogs or use post generated  articles. 
 But in the article subdir all the css image names are wrong (relative 
URL hell)...  I'll get there.  A few more reads through the code.
Umm, I think it determines the regen or post article...  :)
Gabriele
14-Apr-2007
[1396]
brian, you can do like me, and just forward your address to gmail 
:) i did so for the spam filtering. and now i'm starting to appreciate 
the rest of gmail.
Graham
14-Apr-2007
[1397x2]
except gmail's spam filters are too aggressive
and there doesn't appear to be a way to whitelist senders
Gabriele
14-Apr-2007
[1399]
the contact list isn't a white list?