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

World: r3wp

[Linux] group for linux REBOL users

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?
Pekr
30-Jun-2010
[3759x4]
Odd ls -l output:


The directory contains following CGI files, marked as executable 
(chmod 775):

*dispatch.cgi
*nav.cgi
*rsp.cgi
*test.cgi

and now ls-l in the directory shows:

total 20                          en 30 07:38 test.cgi.cgi
hmm, it might be the scrolling problem of putty console. I should 
not use CZ server installation next time, the language chars are 
malformed anyway.
When I set putty to windows-1250 code charset, the listing is correct 
now, but CZ chars are even more unreadable ...
OK, case solved - set putty to utf-8 and font script to Eastern .....
Anton
9-Jul-2010
[3763]
During boot of Kubuntu 7.10 linux, I noticed a message that flashed 
by, something like
... corrupt .. not cleanly unmounted(?)... 

I checked all the logfiles listed by syslogd-listfiles -a and didn't 
find "corrupt" or "clean" in any of them.
These are the files I checked:
$ lsa `syslogd-listfiles  -a`
-rw-r----- 1 syslog adm  10197 2010-07-09 17:04 /var/log/auth.log

-rw-r----- 1 syslog adm 190194 2010-07-09 16:02 /var/log/daemon.log
-rw-r----- 1 syslog adm 119543 2010-07-09 15:56 /var/log/debug
-rw-r----- 1 syslog adm 210453 2010-07-09 15:56 /var/log/kern.log
-rw-r----- 1 syslog adm 191106 2010-07-09 17:02 /var/log/messages
-rw-r----- 1 syslog adm   8051 2010-07-09 17:02 /var/log/syslog
-rw-r----- 1 syslog adm   3580 2010-07-09 15:56 /var/log/user.log

I'd like to know the way to capture those boot messages.
Any ideas?
Graham
9-Jul-2010
[3764]
high speed camera??
Anton
9-Jul-2010
[3765]
Yes, I was thinking I'd try filming it with my camera next.  (--> 
Dinner time)
Gabriele
9-Jul-2010
[3766x2]
dmesg
(though it's strange it's not in /var/log/messages. maybe it was 
just a fsck message? for some reason the fs was not unmounted correctly 
last time so fsck told you.)
Graham
9-Jul-2010
[3768x2]
corrupt doesn't sound good though
anyone ever install Jira on linux??
Anton
9-Jul-2010
[3770x3]
dmesg doesn't have anything
$ dmesg | grep -i "corrupt"
Nothing in the /var/log/fsck/  logfiles either.
Thanks for the suggestions, though.

I doubt it, but it's possible I didn't read the message correctly. 
It did flash by pretty quickly.
Gabriele
10-Jul-2010
[3773x2]
when a file system is not unmounted cleanly, fsck says "corrupt or 
not cleanly unmounted", so, the "corrupt" does not necessarily mean 
bad. in particular, if you didn't notice anything weird, you're most 
likely fine.
in general, if fsck finds something really bad, it stops and asks 
you what to do.
Graham
10-Jul-2010
[3775x2]
Took some hours but finally managed to get Jira installed on Linux. 
 It's maxing out my Xeon 2.8 with 1.5 gb of ram. Maybe I should try 
and find another Xeon 2.8 to populate the second cpu slot... I presume 
Java can use multiple CPUs
Something to be said for light weight components like curecode
Anton
10-Jul-2010
[3777x2]
Ah yes, I remember that fsck message now.
(I don't remember the previous shutdown having any problems, though..)
Izkata
10-Jul-2010
[3779]
Ubuntu is set up do automatically do a fsck check every 30 mounts, 
although it would seem odd if that message pops up on a scheduled 
check..
Graham
10-Jul-2010
[3780]
My bad on the Jira .. .I set the bios to OS install mode when I was 
trying to determine why I wasn't able to install Ubuntu ( faulty 
raid array ), and that limits the ram to 256Mb.  Turned it off and 
the OS can now see the full 1.5Gb .. so it's running acceptably faster 
now.