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

World: r3wp

[Linux] group for linux REBOL users

Pekr
30-Jun-2010
[3755]
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
[3780x2]
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.
The Jira tracker is very nice and configurable via the web interface. 
 Pity it's so expensive ...
Anton
10-Jul-2010
[3782]
Oh, maybe the unclean unmount occurred many shutdowns ago, but was 
not noticed until the scheduled fsck.
Gabriele
11-Jul-2010
[3783x3]
Izkata: no, the message in that case is different.
Anton: no, if the fs was not cleanly unmounted it will be checked 
at the next boot. (otherwise the kernel refuses to mount it.)
most likely, something failed during the shutdown, but you didn't 
notice as the computer did shut down at the end.
Anton
11-Jul-2010
[3786]
That makes sense.
Carl
20-Jul-2010
[3787x2]
A question for Linux users: I decided to try to build REBOL on an 
Ubuntu Live boot. I could build Core but not View... because the 
X11 includes are missing... or so it seems.  Tried to run Synaptic, 
but won't load. Any ideas?
PS: This is the most recent from the ubuntu website.
Graham
20-Jul-2010
[3789]
32 bit Ubuntu ..
Carl
21-Jul-2010
[3790]
yes
Graham
21-Jul-2010
[3791]
sudo apt-get install libx11-dev  ?
Carl
21-Jul-2010
[3792x2]
crashed and burned
the 'gets worked, the 'dpkgs all failed
Graham
21-Jul-2010
[3794x3]
use aptitude instead??
have you updated?

sudo apt-get update && sudo apt-get upgrade
oops -- just noticed the questions were for linux users
BrianH
21-Jul-2010
[3797]
You were doing pretty well if you aren't a Linux user :)
Graham
21-Jul-2010
[3798x3]
win32 forever!
well, until I get win64
A live boot cd is probably out of date ...
Gabriele
21-Jul-2010
[3801x2]
the live cd is missing stuff (in order to make it fit), it also is 
doing everything in memory (including the things you download and 
try to install), and afaik the "ram disk" is fixed size (so it may 
not be big enough to hold what you're trying to install).
you may be able to create your own live cd that does what you need 
but... i think that's more work than installing, or using a virtual 
machine.
Izkata
21-Jul-2010
[3803]
Ubuntu Live CDs don't have all the repositories enabled, either
MaxV
26-Aug-2010
[3804]
Hello everybody, I have a problem with Linux:  DRAW   choose a font 
that give problem displaying:

example: ['text "Hello word!"]
view layout [ box 100x100 effect [draw example ]]

on linux it gives a blank window.
I added:

example: ['text "Hello word!"]
if (pick system/version 4) = 4 [
	fnt1: make face/font [ 
		name: "/usr/share/fonts/truetype/freefont/FreeSans.ttf"
		size: 12
		]
	os: "linux"
	]
if os = "linux" [ insert example reduce ['font fnt1]	]
view layout [ box 100x100 effect [draw example ]]

This solution is good, but using REBGUI  it doesn't work anymore.
What can I do?