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

World: r3wp

[Linux] group for linux REBOL users

amacleod
2-Feb-2010
[3498x3]
There is no console for linux...must use linux console.
if you want to see viewtop start rebol from console and type desktop
Once in viewtop try changing the settings back to "open vietwtop 
on startup"
Rebolek
2-Feb-2010
[3501]
I just wonder why clicking on the icon does not open rebol in linux 
console. but i have no problem running it directly from console
Henrik
2-Feb-2010
[3502]
it's probably simply piping to whatever console it was started from. 
since the linux desktop has no console, you won't see one.
Rebolek
2-Feb-2010
[3503]
Hm, when I select "Install now" option, I get "segmentation fault"
Henrik
2-Feb-2010
[3504]
RAMBO it
Rebolek
2-Feb-2010
[3505]
Done, #4751.
amacleod
2-Feb-2010
[3506x2]
2.7.7?
I installed 2.76 on ubuntu no prob
Rebolek
2-Feb-2010
[3508x2]
yes, 2.7.7
Maybe it's fine on Ubuntu, I'm using Xubuntu as the computer is really 
really old.
amacleod
2-Feb-2010
[3510]
might be missing a library file...check the list of required libs...find 
it somewhere on rebol site???
Rebolek
2-Feb-2010
[3511]
It's just the installation, everything else seems to work fine
Pekr
2-Feb-2010
[3512]
ldd lists dependencies in console, no?
Rebolek
2-Feb-2010
[3513]
Well, first I need to get Cheyenne running, so I'll check the dependecies 
later :)
amacleod
2-Feb-2010
[3514]
I also installed it on a server version of ubuntu with xfce loaded 
on top...iirc had to add some libs
Pekr
2-Feb-2010
[3515]
You mentioned older computer. Is Xubuntu less resource hungry than 
Ubuntu?
Rebolek
2-Feb-2010
[3516]
Yes, the XFCE desktop should take less memory and CPU than Gnome.
Pekr
2-Feb-2010
[3517]
And what about Kubuntu? (KDE)
amacleod
2-Feb-2010
[3518x2]
big and hungry
like gnome
Rebolek
2-Feb-2010
[3520]
heh, it's running in 856x600, I see such resolution for the first 
time
amacleod
2-Feb-2010
[3521]
What is running?
Rebolek
2-Feb-2010
[3522]
sorry, the linux desktop
Pekr
2-Feb-2010
[3523]
linuxians try to be always different, hence such a resolution :-)
Rebolek
2-Feb-2010
[3524]
I see :)
Dockimbel
2-Feb-2010
[3525]
amacleod : I installed 2.76 on ubuntu no prob
 Which Ubuntu version?
amacleod
2-Feb-2010
[3526]
it was a while ago...not using that box anymore.
Barik
2-Feb-2010
[3527]
Hello. How can I create a REBOL service in Linux (i.e, something 
that can be run as a background process much like httpd via init.d)?
Henrik
2-Feb-2010
[3528x2]
I suppose you first try to create a script that is launchable via 
shell, and from then on, it should be the same as for any other service, 
depending on the distribution.
launchable = shebang line and all that stuff.
Barik
2-Feb-2010
[3530]
I have the #!/usr/local/bin/rebol line and such in there. The problem 
is that I'm not sure how to make the script then go into the background 
again like a daemon would do. It stays at the foreground when I call 
it from something like init.d.
Henrik
2-Feb-2010
[3531]
do you have the quiet option enabled?
Graham
2-Feb-2010
[3532x2]
you can use screen or dtach
http://rebol.wik.is/index.php?title=Hylafax/Dtach&highlight=dtach
Barik
2-Feb-2010
[3534x2]
Okay, that may do what I need it to. REBOL does some interesting 
things which I haven't quite figured out when I do something like 
CTRL + Z, bg, etc.
Let me take a look at dtach.
Graham
2-Feb-2010
[3536]
I also use

./cheyenne &

in a shell script
Barik
2-Feb-2010
[3537x2]
Might be an implementation issue for me then. Would the & trick work 
with a non-compiled REBOL script in the same way?
dtach seems to be working well for me. I might stick with it.
Gabriele
3-Feb-2010
[3539x2]
Barik: you may just need to redirect stdin and stdout, eg.  ./script.r 
>/dev/null </dev/null &
Bolek: REBOL is not going to start a terminal program for you. However, 
if you have a icon, you can usually open the icon properties and 
tell the "desktop" (XFCE in your case) to start the program inside 
a terminal (ie. it will start a terminal and then the program inside 
it).
Barik
3-Feb-2010
[3541]
If I run a simple REBOL script (with just a forever loop), I notice 
that "ps -a" gives me two REBOL processes in the process list. Why 
is this?
Henrik
3-Feb-2010
[3542]
one is for DNS lookups.
Barik
3-Feb-2010
[3543x2]
Is this documented somewhere? If so, I haven't seen information on 
it.
Ah, I found it's been asked before in the AltMe archives though. 
:-)
Henrik
3-Feb-2010
[3545]
The question has been asked a few times recently. I had not noticed 
this before until Carl talked about how R3 doesn't need an extra 
process for DNS.
Kaj
12-Feb-2010
[3546]
Doc, do you have your binary running on your new server yet? Did 
you try installing the Ubuntu libstdc++5 package?
Dockimbel
13-Feb-2010
[3547]
I've tried that but it doesn't work, it requires to downgrade several 
other key packages like gcc-base, messing up the whole system. Anyway, 
it's no more an issue to me now, I've droppped View completely in 
all my webapps replacing with third-parties libs or services (like 
ReCaptcha).