World: r3wp
[Linux] group for linux REBOL users
older newer | first last |
Gabriele 30-May-2010 [3709x2] | there is no special reason why nobody would not be able to run pdflatex, in principle. there may be security rules in effect though (most distribution come with some kind of security extension to the usual Unix stuff), I wouldn't be surprised if Apache was being restricted to what it can do to avoid default installs being easily vulnerable. |
you should search around on the web - I'm sure someone else in the world did what you're trying to do as well. | |
caelum 30-May-2010 [3711] | Hi, I have just joined. Is there a way to increase the font size on my screen. I can barely read this text? |
Henrik 30-May-2010 [3712] | try clicking the A icon in the icon bar above the text area. |
caelum 30-May-2010 [3713] | Clicking on the A icon? Ahah! Got it. Thanks Henrik. |
Graham 30-May-2010 [3714x7] | I found this at http://www.wikipublisher.org/wiki/Wikipublisher/InstallationExperiences Well - Ive just tracked it down. As you predicted in your comments on 00098 this is nothing to do with the XSLTPROC errors - it is all to do with PDFLATEX. The script was being prevented from doing the necessary by SELINUX, which controls access not just by permissions (which were sufficiently open) but by running process. A command chcon -R -h -t httpd_sys_script_rw_t /usr/share/texmf/* has opened things up enough to sort it out. |
but that doesn't do anything on ubuntu | |
On the twiki site http://twiki.org/cgi-bin/view/Plugins/GenPDFLatexAddOn I found this # Setup the Latex rendering software * Ensure that a latex document preparation system is available to the user name (uid) running the twiki web server. * Install any custom latex style files needed. The best suggestion is to create a local texmf tree accessible by the server. For example, for an apache server running as 'nobody' on a linux system: o create the directory /home/nobody/texmf/tex/latex, with reasonable permissions. o Place the custom .cls and .sty latex files in this directory o as user root or nobody, run texhash /home/nobody/texmf to create the ls-R latex database file for the /home/nobody/texmf/ tree. | |
I documented my installation so can anyone see if I did anything wrong? | |
http://rebol.wik.is/Wikipublisher | |
What is a pity is that this software uses Apache2, php5, and perl scripts to achieve the outcome when potentially it could all be done by Rebol. | |
there might even be some java there too that transforms the wiki markup to xml | |
Graham 31-May-2010 [3721] | Fixed my wikipublisher install ... the default config was for mac and I had to use the linux one |
caelum 3-Jun-2010 [3722] | Does anyone know which linux distros the SDK works on? I had it working on Ubuntu 9.10. After upgrading to 10.04 nothing worked. I have installed the required libraries, which did the trick on 9.10. Did not work on 10.04. I might have to revert to 9.10 just to get my Rebol programmes working again. |
Graham 3-Jun-2010 [3723x2] | 64 bit? |
2.7.6 or 2.7.7 ? | |
caelum 3-Jun-2010 [3725] | 64 bit, Ubuntu 10.04, Kernal 2.6.32-22-generic, Gnome 2.30.0. |
Graham 4-Jun-2010 [3726x3] | presumably the 32bit libraries are loaded ? |
LDD ? | |
this is funny http://cr.yp.to/daemontools/start.html | |
Maxim 4-Jun-2010 [3729] | a perfect example of why I love to hate linux in general. |
BrianH 4-Jun-2010 [3730] | Qi Ben NanoNote http://sharism.cc/Now we have a need for MIPS Linux builds for REBOL :) |
caelum 5-Jun-2010 [3731] | Thanks Graham, the 32-bit libraries were not loaded. This sent me on a 24-hour excursion into Ubuntu Linux land where I discovered all kinds of things about loading 32-bit libraries into a 64-bit operating system that I never thought I needed to know. After much exploration, several trips up and down the Ubuntu Linux technical Amazon, I eventually found in a dark, murky backwater the exact technical information I needed to complete my journey: https://bugs.launchpad.net/ubuntu/+source/ia32-libs/+bug/431091?comments=all On successful completion of the obligatory wget command cd /tmp wget http://security.ubuntu.com/ubuntu/pool/universe/i/ia32-libs/ia32-libs_2.7ubuntu6.1_amd64.deb dpkg-deb -x ia32-libs_2.7ubuntu6.1_amd64.deb ia32-libs sudo cp ia32-libs/usr/lib32/libstdc++.so.5.0.7 /usr/lib32/ cd /usr/lib32 sudo ln -s libstdc++.so.5.0.7 libstdc++.so.5 And the other commands above, I was delighted to find that rebcmdview now works on Ubuntu 10.04 on my laptop. So, once again, thank you Graham for pointing me in the right direction. I would never have figured this out for myself without the 32-bit library information. Much appreciated. |
Graham 5-Jun-2010 [3732] | You're welcome. |
NickA 5-Jun-2010 [3733] | Thanks for posting that caelum! Do you mind if I repost those instructions in the tutorial at http://re-bol.com? |
caelum 5-Jun-2010 [3734x3] | Please do. And thanks for writing that tutorial. One of my great Rebol learning experiences. I use it often. I watched all the videos too. |
I found a second solution and have posted it on my website (so I don't lose it.) http://www.francisayley.org/rebol_on_Ubuntu10.htm | |
No, the second solution above is for the libstdc++5 libs, not the ia32-libs. (I think I need some sleep) | |
Gabriele 6-Jun-2010 [3737] | Of note, I think Linux Mint comes with the 32 bit libs preinstalled. |
Graham 7-Jun-2010 [3738x3] | Does anyone know if you can use Rebol/View on linux server for scripting with X-windows installed? |
if running view in non-gui mode ... does it still need those libraries? Can some dummy library stubs be created? | |
Reason being that core with ssl has not been released as a free product ... ( I do have it though as I have the sdk ) | |
Andreas 7-Jun-2010 [3741x3] | rebol/view on linux is certainly usable without an X server running |
you'll need to have a bunch of X libraries installed, though | |
(and you'll probably need to use Xvfb) | |
Maxim 9-Jun-2010 [3744] | btw, didn't find a way to start REBOL view without my error: ** User Error: Bad face in screen pane! ** Near: size-text self all I can do right now is use rebface, which doesn't do any graphics code on init. even rebcmdview -vs fails with the above error. note that I'm using rebol within a remote ssh with no desktop setup (though I have the Xlibs installed IIRC) |
Gabriele 9-Jun-2010 [3745] | As Andreas said... you probably need to run Xvfb. |
Maxim 10-Jun-2010 [3746] | ok will check that out |
Robert 18-Jun-2010 [3747x3] | Can someone tell me what this means? |
Jun 18 12:50:12 mail kernel: oom-killer: gfp_mask=0x201d2, order=0 Jun 18 12:50:12 mail kernel: [<c0157322>] out_of_memory+0x142/0x170 Jun 18 12:50:12 mail kernel: [<c0158f27>] __alloc_pages+0x2e7/0x300 Jun 18 12:50:12 mail kernel: [<c015a68f>] __do_page_cache_readahead+0x13f/0x2d0 Jun 18 12:50:12 mail kernel: [<c0151f46>] __delayacct_blkio_end+0x46/0x50 Jun 18 12:50:12 mail kernel: [<c02f9eab>] __wait_on_bit_lock+0x5b/0x70 Jun 18 12:50:12 mail kernel: [<c0153640>] sync_page+0x0/0x40 Jun 18 12:50:12 mail kernel: [<c0153636>] __lock_page+0x56/0x60 Jun 18 12:50:12 mail kernel: [<c01567ee>] filemap_nopage+0x2fe/0x3c0 Jun 18 12:50:12 mail kernel: [<c0162c82>] __handle_mm_fault+0x1d2/0x1140 Jun 18 12:50:12 mail kernel: [<c028acea>] sock_aio_read+0x6a/0x70 Jun 18 12:50:12 mail kernel: [<c0117f9a>] do_page_fault+0x7ba/0xd64 Jun 18 12:50:12 mail kernel: [<c01397f0>] autoremove_wake_function+0x0/0x40 Jun 18 12:50:12 mail kernel: [<c01790e1>] sys_read+0x41/0x70 Jun 18 12:50:12 mail kernel: [<c01177e0>] do_page_fault+0x0/0xd64 Jun 18 12:50:12 mail kernel: [<c01058db>] error_code+0x2b/0x30 Jun 18 12:50:12 mail kernel: Mem-info: Jun 18 12:50:12 mail kernel: DMA per-cpu: Jun 18 12:50:12 mail kernel: cpu 0 hot: high 186, batch 31 used:107 Jun 18 12:50:12 mail kernel: cpu 0 cold: high 62, batch 15 used:14 Jun 18 12:50:12 mail kernel: DMA32 per-cpu: empty Jun 18 12:50:12 mail kernel: Normal per-cpu: empty Jun 18 12:50:12 mail kernel: HighMem per-cpu: empty Jun 18 12:50:12 mail kernel: Free pages: 2508kB (0kB HighMem) Jun 18 12:50:12 mail kernel: Active:91716 inactive:257 dirty:0 writeback:0 unstable:0 free:627 slab:2796 mapped:9 pagetables:434 Jun 18 12:50:12 mail kernel: DMA free:2508kB min:2532kB low:3164kB high:3796kB active:366864kB inactive:1028kB present:401408kB pages_scanned:439557 all_unreclaimable? yes Jun 18 12:50:12 mail kernel: lowmem_reserve[]: 0 0 0 0 Jun 18 12:50:12 mail kernel: DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no Jun 18 12:50:12 mail kernel: lowmem_reserve[]: 0 0 0 0 Jun 18 12:50:12 mail kernel: Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no Jun 18 12:50:12 mail kernel: lowmem_reserve[]: 0 0 0 0 Jun 18 12:50:12 mail kernel: HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no Jun 18 12:50:12 mail kernel: lowmem_reserve[]: 0 0 0 0 Jun 18 12:50:12 mail kernel: DMA: 9*4kB 5*8kB 0*16kB 2*32kB 1*64kB 0*128kB 1*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 2508kB Jun 18 12:50:12 mail kernel: DMA32: empty Jun 18 12:50:12 mail kernel: Normal: empty Jun 18 12:50:12 mail kernel: HighMem: empty Jun 18 12:50:12 mail kernel: Swap cache: add 0, delete 0, find 0/0, race 0+0 Jun 18 12:50:12 mail kernel: Free swap = 0kB Jun 18 12:50:12 mail kernel: Total swap = 0kB Jun 18 12:50:12 mail kernel: Free swap: 0kB Jun 18 12:50:12 mail kernel: 100352 pages of RAM Jun 18 12:50:12 mail kernel: 0 pages of HIGHMEM Jun 18 12:50:12 mail kernel: 1992 reserved pages Jun 18 12:50:12 mail kernel: 83 pages shared Jun 18 12:50:12 mail kernel: 0 pages swap cached Jun 18 12:50:12 mail kernel: 0 pages dirty Jun 18 12:50:12 mail kernel: 0 pages writeback Jun 18 12:50:12 mail kernel: 9 pages mapped Jun 18 12:50:12 mail kernel: 2796 pages slab Jun 18 12:50:12 mail kernel: 434 pages pagetables | |
Seems something is crashing but I don't know what. | |
Anton 18-Jun-2010 [3750] | Some process exhausting memory. |
Gabriele 19-Jun-2010 [3751x2] | Robert, the kernel will kill processes that take too much memory to avoid for the whole system to crash |
check out that you have enough swap space for the processes you are running - this will prevent the kernel killing processes, although, if you are swapping a lot the system may get so slow that you get a worse situation than what you have now. much better would be to have enough RAM to fit everything. | |
Robert 19-Jun-2010 [3753] | Thanks. I have cross-checked. This is a system running in a xen VM. I have raised the memory, and updated the app that caused the problem. Not it works. |
Pekr 30-Jun-2010 [3754x2] | Hi, need an advice. I am setting up very simple CGI, and I use ClearOS, and CZ installation. But one of CGI scripts seems to be in UTF-8 or so, and I think error I am getting has nothing in common with Apache or its config. When I press enter on the file in Midnight Commander, I get following error (the text is my english translation, no exact wording): ./test.cgi: line 1: #!/usr/local/rebol-sdk-cmd/bin/rebol: not a file nor a directory It seems like file is containing an unicode BOM marker at the very beginning, so even shebang line can't be interpreted? How can I solve it, apart from converting file into some CZ compatible charset? |
Second question - my server is behaving quite strangely - following script sometimes works, sometimes it does not. Sometimes ls -l is showing me files, sometimes it shows strange output. Is fsck safe tool to check filesystem integrity? | |
PeterWood 30-Jun-2010 [3756] | Have you checked if the file does start wth a BOM? My str-enc-utils.r at rebol.org includes a BOM? function. Apache will process a file with a correct BOM - https://issues.apache.org/bugzilla/show_bug.cgi?id=16687 |
Izkata 30-Jun-2010 [3757x2] | http://sankuru.biz/en/blog/8-joomla-configuration-issues/46-crushing-the-head-of-the-bom-marker-monster.html - has a 'grep' line that checks if a file contains the BOM, and a bash script that can remove it from all files in a directory. Untested, as I've not seen this myself before. |
Can you give an example of the odd 'ls' output? | |
older newer | first last |