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

World: r3wp

[Linux] group for linux REBOL users

Anton
16-Oct-2008
[2464x3]
Anyone using Kubuntu 8.04 Hardy ?

I'm not having nice networking experiences since upgrading from Feisty 
to Gutsy.

Lots of timeouts, flaky domain name resolution seems to work only 
half the time...
(AltME is fine - it probably caches the ip address).
Connecting and using certain sites has often been really difficult, 
like ubuntu updates, ubuntuforums, my bank's online banking, and 
rebol.org, to name a few. Rebol.org I've noticed has been really 
slow.
Wait a minute, before the upgrade, I did a *hardware* upgrade, replacing 
the motherboard and 32-bit cpu for a 64-bit one. This is when 'eth0' 
changed to 'eth1' and I had to muck about to fix it.  <--- This is 
probably related to the network problems.
(So much happened since then, I keep forgetting about this.)
My solution is probably to do a fresh 64-bit install.
kcollins
16-Oct-2008
[2467x2]
Anton, Rebol will not run on 64-bit Linux without some hacking.
Also, are you using wireless networking? I have a machine running 
Hardy and ended up needing ndiswrapper to get wireless working well. 
The following instructions worked for me: http://ubuntuforums.org/showthread.php?t=766560
Anton
16-Oct-2008
[2469]
kcollins, ahh... you mean: "Rebol runs on 64-bit Linux, with some 
hacking."  ;)  So what's the hacking ?
kcollins
16-Oct-2008
[2470]
I haven't done it myself, but someone posted about it a while back...let 
me find the thread...
Anton
16-Oct-2008
[2471]
I'm not using wireless on my main machine, but my wireless networking 
experiences in linux have been abysmal ones so far. I didn't devote 
myself to it, though.
kcollins
16-Oct-2008
[2472x2]
http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-topic-detail.r?l=0&topic={308227A880B92F1C4D34586C4B0C4BDEDFF1A8DA}
Yeah, Linux still has work to do on wireless networking.
Anton
16-Oct-2008
[2474x2]
Thanks for the link. I remember seeing the original announcement. 
So it looks like a pretty easy hack.
(Once some hard working individual has already figured it out, of 
course.)
Pekr
29-Oct-2008
[2476]
Is there any description out there, which describes how to add missing 
libraries to Linux, when you want to run Rebview? My friend is running 
some small linux distro, and can't start View, so he asked me to 
help him to get it running ....
Robert
29-Oct-2008
[2477x2]
If it's Debian: apt-get install <libname>
and libname is something you must guess ;-)
Graham
29-Oct-2008
[2479]
I'm sure the Cheyenne website explains which libs are required.
btiffin
29-Oct-2008
[2480x2]
ldd    will list dependencies for any object or binary.
Tracking which package (as Robert mentions can be a pain, but)

after  apt-get install apt-file   and  apt-file update   it gets 
easier.
If he has yum,   yum whatprovides
Dockimbel
30-Oct-2008
[2482]
http://www.cheyenne-server.org/blog.rsp?view=14&cmt=on
Graham
30-Oct-2008
[2483]
Perhaps you could amend that page to include vista users < 1024
Izkata
30-Oct-2008
[2484x2]
kcollins:  I have Rebol 2.7.6 running with zero problems on 64-bit 
Ubuntu Hardy fresh install, with no hackery...
old post..  x_x   I need to visit more often
Robert
30-Oct-2008
[2486]
And you can search with: apt-cache search <lib name fragment> to 
see what the packagename might be. Or use atptitude and press / to 
search and than N for next hit. Than + to install.
Louis
5-Nov-2008
[2487x2]
Anybody see what is wrong with this script? It is supposed to call 
ImageMagick to reduce the size of specific jpeg files in a directory. 
 It processes a few files, then locks up my computer.

rebol []
files: sort read %.
num: length? files
print ["Number of files in directory: " num newline]
count: 0
foreach file files [
	if all [find file ".JPG" not find file "Nain-"][
		newfile:  join "Nain-" file
		call/console reduce ["convert" file "-resize 25%" newfile]
		count: count + 1
		prin [count " "]
	]
]
print "DONE"
Never mind. It work now.
Anton
5-Nov-2008
[2489x2]
What was the problem ?
I was going to suggest putting a short wait after the call.
Henrik
5-Nov-2008
[2491]
I think it will call imagemagick a lot of times without wait, like 
Anton suggests.
Louis
5-Nov-2008
[2492]
Either the /console refinement fixed it (I should have tested one 
more time before posting), or else using trace fixed it by slowing 
it down (kind of a wait substitute).  :>)
Graham
7-Nov-2008
[2493x2]
I've got mail for root ending up in /var/mail/root ... is there any 
way I can get this mail redirected to my gmail account?
I looked at the etc/aliases but you can't seem to alias to outside
Gabriele
7-Nov-2008
[2495x2]
the most simple way is to create a file /root/.forward with your 
email address in it
otherwise, you can use the virtusertable file to control what happens 
on incoming mail. you can send to a local user, forward to another 
address, run a command, and so on. (eg. you could call rebol, filter 
with your spam filter, then SEND to gmail, or whatever)
Graham
7-Nov-2008
[2497]
Thanks .. I'll look at that.
Robert
4-Dec-2008
[2498x2]
Can I keep a Rebol script running by starting it with: 
	script-name.r &

if the script has a shebang line? It seems this makes some problems.
Looks like using: nohup script-name.r & works.
btiffin
4-Dec-2008
[2500]
Robert;  You may want to look at   screen   as well.  Pretty powerful.
Robert
5-Dec-2008
[2501]
What's "screen"? I''m using Linux without any GUI.
Tomc
5-Dec-2008
[2502]
man screen
Robert
5-Dec-2008
[2503]
;-)
Tomc
5-Dec-2008
[2504x2]
although terse I wasn't intending to be flippant
I used screen enough years ago i would have to re read the man page 
to use it now
Robert
5-Dec-2008
[2506]
No, no problem. It's just THAT obvious to try but screen is that 
general...
btiffin
5-Dec-2008
[2507]
screen may not be installed by default.  And I think it may be best 
described as a multiple process enabled session multiplexor disguised 
as a teminal program
kcollins
5-Dec-2008
[2508]
Another option is dtach, which allows you to detach from and reattach 
to a terminal session even if you completely disconnect from the 
machine in the interim.
Graham
5-Dec-2008
[2509]
http://rebol.wik.is/Hylafax/Dtach
Tomc
5-Dec-2008
[2510x2]
dtach looks alot like all I ever used screen for anyway
thanks
Gabriele
5-Dec-2008
[2512]
or just >/dev/null </dev/null 2>/dev/null :-)
Robert
6-Dec-2008
[2513]
Gab, yes of course ;-) that's the "through the desert on your knees" 
approach.