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
11-Dec-2006
[1039x2]
Do you know how to print in Linux ?
is it write to %lp ?
Gabriele
11-Dec-2006
[1041x2]
best way is call the lpr command
if you know you are on kde, you can also call kprint (or was it kprinter) 
and it even displays a nice ui for print options.
Graham
11-Dec-2006
[1043x2]
gnome
I just want to send some postscript to the attached postscript printer 
on the parallel port.
Gabriele
11-Dec-2006
[1045x4]
don't know if gnome has a print command. lpr should work almost anywhere 
though.
well, you can in principle write to %/dev/lp0
however, you need permissions to write there and you need to know 
that the printer is actually attached to lp0
using lpr you can print on any attached printer as long as it is 
configured (ghostscript will take care of rendering on non-ps printers)
Graham
11-Dec-2006
[1049]
ahh... sounds good!
Gabriele
11-Dec-2006
[1050x2]
also... since i think all distros are now using CUPS, you might interface 
to it directly.
http://www.cups.org/
Graham
11-Dec-2006
[1052x2]
I'll have a look at all this. Thanks.
I rambo'd my Linux sdk launch problem.
Graham
13-Dec-2006
[1054]
Anyone know how to get my Vmware Fedora Core 6 image to run at 1024x768 
instead of 800x600 ?
Henrik
13-Dec-2006
[1055]
I don't know, but perhaps X thinks your VMWare "monitor" can't handle 
more than 800x600. you probably need to change some settings within 
VMWare or in x.org configuration
Graham
14-Dec-2006
[1056x5]
Downloaded another vmware appliance with Fedora 6, that was set to 
default to 1024x768.  Archive was not corrupted, but vmware can't 
find the image!
Is there support for Type I fonts in Linux and View/AGG ?
On the 23rd March, Cyphre posted an example of using true type fonts. 
 I tried it on Fedora Core 6, substituting other true type fonts 
I had, and correcting the paths as appropriate and get a blank screen 
:(
here it is http://www.compkarori.com/vanilla/display/AGG
I see Rebolinth had the same problem which was not solved except 
by changing to Debian.
Graham
15-Dec-2006
[1061x2]
I guess Debian rocks.  The console history works correctly in Debian, 
and so do the fonts in AGG draw.
How do you get browse to invoke the default browser?
Frank
15-Dec-2006
[1063]
For the browser i use this in my user.r

browse*: :browse
browse: func [
	value [any-string!]
	/only
	] [

   call rejoin[{/usr/local/firefox/firefox "}  to-url (value) {"}]
]
Graham
15-Dec-2006
[1064x3]
I'll give that a go.
Debian, view runs .. but encapped app complains
missing libstdc++-lib6.2-2.so.3
Cyphre
15-Dec-2006
[1067]
Graham, re fonts on Fedora: are you sure you are using the right 
Linux version with FreeType2 support? Do you have the FreeType2 library 
installed on your Linux setup?
Graham
15-Dec-2006
[1068x2]
Yes, freetype 2.2.1 release 16fc6.
I'm not the only person with this problem.  Rebolinth reported the 
same in March.
Cyphre
15-Dec-2006
[1070]
what you get if you type: ldd rebol in the console?
Graham
15-Dec-2006
[1071x6]
linux-gate.so.1 =>  (0x005ec000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0x45e3e000)
	libXext.so.6 => /usr/lib/libXext.so.6 (0x45f42000)
	libXt.so.6 => /usr/lib/libXt.so.6 (0x46566000)
	libXaw.so.7 => /usr/lib/libXaw.so.7 (0x46012000)
	libXmu.so.6 => /usr/lib/libXmu.so.6 (0x465c0000)
	libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x00111000)
	libm.so.6 => /lib/libm.so.6 (0x49ad8000)
	libdl.so.2 => /lib/libdl.so.2 (0x49b01000)
	libc.so.6 => /lib/libc.so.6 (0x49999000)
	libXau.so.6 => /usr/lib/libXau.so.6 (0x49d2d000)
	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x49d25000)
	libSM.so.6 => /usr/lib/libSM.so.6 (0x4a53b000)
	libICE.so.6 => /usr/lib/libICE.so.6 (0x4a51f000)
	libXpm.so.4 => /usr/lib/libXpm.so.4 (0x465d9000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4a546000)
	/lib/ld-linux.so.2 (0x48fca000)
shall I rambo this?
It would be good to have a page which detailed all the issues relating 
to various flavours of Linux - particularly for those new to the 
game.
Maybe the rebolbook might be one place ...
If RT can't manage to document them.
Cyphre, since you mentioned freetype, and freetype is capable of 
using type 1 fonts, does this mean that we will have type 1 fonts 
available at some stage soon?
Graham
16-Dec-2006
[1077x5]
What would it take for RT to port View to the Zaurus 3200 ?  It can 
run a form of Debian.
http://www.carrypad.com/content/view/26/9/1/1/
I can imagine this would be quite useful to login to my medical database 
while on the move....
Talked to Rebolinth again .. he never got AGG fonts working except 
by changing to Debian.
the Linux file requester needs some arrow widgets on the scroller. 
 It's very difficult to navigate a directory with lots of files.
Anton
17-Dec-2006
[1082]
I always thought it would be better to do the requester in rebol 
anyway, then we are all concerned to improve it.
Graham
17-Dec-2006
[1083]
it is in Rebol
Anton
17-Dec-2006
[1084x2]
Oh really :) That's good then.
Post the REQUEST-FILE source then, we can have a look.
Graham
17-Dec-2006
[1086]
request-file: func [

    {Requests a file using a popup list of files and directories.} 
    /title "Change heading on request." 
    title-line "Title line of request" 
    button-text "Button text for selection" 
    /file name "Default file name or block of file names" 
    /filter filt "Filter or block of filters" 
    /keep "Keep previous settings and results" 
    /only "Return only a single file, not a block." 
    /path "Return absolute path followed by relative files." 
    /save "Request file for saving, otherwise loading." 
    /local where data filt-names filt-values
][
    if none? out start-out 
    either file [

        either block? name [picked: copy name] [picked: reduce [to-file name]]
    ] [
        if not keep [picked: copy []]
    ] 
    if none? picked [picked: copy []] 
    if file: picked/1 [where: first split-path file] 
    while [not tail? picked] [
        set [name file] split-path first picked 
        either name <> where [remove picked] [
            change picked file 
            picked: next picked
        ]
    ] 
    picked: head picked 
    if any [not where not exists? where] [where: clean-path %.] 
    if not keep [
        fp/data: head fp/data 
        so/data: head so/data 
        si: 1
    ] 
    either filter [
        filters: either block? filt [filt] [reduce [filt]]
    ] [if any [not keep not block? filters] [pick-filter]] 
    ff/text: form filters 
    tt/text: either title [copy title-line] ["Select a File:"] 
    ob/text: either title [copy button-text] ["Select"] 
    if all [
        error? done: try [
            filt-names: copy head fp/data 
            filt-values: copy filter-list 
            either filter [
                insert head filt-names "Custom" 
                insert/only filt-values filters
            ] [
                filt-names: at filt-names index? fp/data
            ] 
            done: local-request-file data: reduce 

            [tt/text ob/text clean-path where picked filt-names filt-values found? 
            any [only] found? any [save]] 
            if done [
                dir-path: data/3 
                picked: data/4 

                if not filter [fp/data: at head fp/data index? data/5]
            ] 
            done
        ] 
        (get in disarm done 'code) = 328
    ] [
        done: false 
        read-dir/full either where [where] [dir-path] 
        show-pick 
        inform out 
        unfocus
    ] 
    if error? done [done] 
    if all [done picked any [path not empty? picked]] [
        either path [
            done: insert copy picked copy dir-path 
            either only [done/1] [head done]
        ] [
            foreach file picked [insert file dir-path] 
            either only [picked/1] [picked]
        ]
    ]
]
Anton
17-Dec-2006
[1087]
This is the same source as on Windows.

REQUEST-FILE is just a wrapper for LOCAL-REQUEST-FILE, which is native 
on Windows and I suppose might be native on Linux.

You must post source of LOCAL-REQUEST-FILE or rambo the problem if 
it is native.
Volker
17-Dec-2006
[1088]
No, in linux its the old rebol-requester.