[CentOS-es] no puedo loguearme como root en phpmyadmin

2009-01-24 Thread Constantino Vargas Cornejo
Buenas amigos hace uno días que me pase de centos 5.2  a 4.7 por el tema de
recursos de mi pc que es una PIII, con centos 5.2 trabaja como desktop con
xfce pero en lo sentia lento, con centos 4.7 sin necesidad de xfce me va
bien pero tengo este problema, una vez levantado httpd, mysql e instalado
php finalmente instale mediante yum phpmyadmin cuando quiero loguearme como
usurio root me sale el siguiente error

 #2002 - El servidor no está respondiendo (o el socket del servidor MySQL
local no está configurado correctamente)

desde consola puedo ingresar a mysql como usuario root sin problemas, mi
problema es cuando quiero ingresar a phpmyadmin desde el navegador .

he tratado de buscar la solucion, pero si exito por lo que recurro a ustedes
les agradecere por su ayuda.

esto lo que tengo instaldo en mi pc
kernel kernel-2.6.9-78.0.13.EL
httpd-2.0.63-2.el4s1.centos.2
mysql-5.0.68-1.el4_6
mysql-server-5.0.68-1.el4_6
php-5.1.6-3.el4s1.10
phpmyadmin-2.11.9.3-1.el4.rf

saludos

-- 
Constantino Vargas C.
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Re: [CentOS] Single Session VNC

2009-01-24 Thread Brett Serkez
On Sat, Jan 24, 2009 at 12:19 AM, karl balsmeier karlski2...@gmail.com wrote:
 Currently most machines I connect to use a display, but I want to run
 vncserver such that the display is always 0.

 Is this possible.

Can you be more specific about your question?

If you are asking about the :# suffix, such as target:1, that is the
port number to connect to the appropriate VNC server.   :0 is the
console at port 5900, :1 port 5901, :2 5902 and so on.

Is your question you don't want to type the :0, you want to connect to
the console, or something else?

Brett
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] can't install rrdtool, problems with dependancies

2009-01-24 Thread Kai Schaetzl
Rudi Ahlers wrote on Fri, 23 Jan 2009 22:09:53 +0200:

 Yes, I know I need to install perl-rrdtool but get the same error when
 doing so.

Did you install any CPAN modules? Or try installing all the three on one 
line. Maybe there's just a cross dependency.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] ext4 in 5.3

2009-01-24 Thread Dag Wieers
On Fri, 23 Jan 2009, Florin Andrei wrote:

 Stephen John Smoogen wrote:

 I make it a habit of eating my own words if I screw up. If the results
 seen on Ubuntu by one test hold up, it might have a large increase in
 large writes (but nothing in large reads).

 http://www.phoronix.com/scan.php?page=articleitem=ubuntu_ext4num=1

 Right, so - Ext4 faster than Ext2? Not surprising. The on-disk format
 has changed. There's less fragmentation. There are all sorts of clever
 things included in the new FS. So, yes, it does more work with the disk,
 but in a much more intelligent way.

Fragmentation is good for SSD's. You get better performance on random I/O 
than sequential I/O.

-- 
--   dag wieers,  d...@centos.org,  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] file: /etc/sysconfig/clock

2009-01-24 Thread chloe K
Hi 
   
  I modify this file /etc/sysconfig/clock
   
  How can I restart the service to have update clock?
   
  Thank you

   
-
All new Yahoo! Mail - Get a sneak peak at messages with a handy reading pane.___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] file: /etc/sysconfig/clock

2009-01-24 Thread Robert Nichols
chloe K wrote:
   I modify this file /etc/sysconfig/clock

   How can I restart the service to have update clock?

Just run system-config-date, which can also be invoked from the menu:

System - Administration - Date  Time

If you've already modified /etc/sysconfig/clock manually, just
click on OK.

-- 
Bob Nichols NOSPAM is really part of my email address.
 Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT? File order on CentOS/Samba server -- SOLVED (kind of...)

2009-01-24 Thread Miguel Medalha

 Hi,

 You might want to try to look into the Distiller side of things.
   

That's what I always did. I am a DTP guy.
 1) I believe you are using Rundirex.txt file to convert all the .ps's
 into one .pdf. This page from Adobe confirms that it will take the
 files in directory order under Windows:

 http://kb.adobe.com/selfservice/viewContent.do?externalId=318674
 -- Acrobat Distiller for Windows will process the files in the order
 in which you put them into the folder and create the PDF pages in the
 order in which it processes the files.
 -- Acrobat Distiller for Mac OS will process the files in alphabetical 
 order.
 (one solution would be getting a mac, hehehe).

 Strange that you never hit the wrong order problem before, since
 according to that page, you should...

   
Regardless of what that paper says, Distiller has ALWAYS processed the 
files in alphabetical order under Windows. I have been doing so since 
2000 and Acrobat Distiller 4. We are now at 9. I refer, of course, to 
the use of rundirx.

 2) That page also talks about Runfilex.ps file, which is basically the
 same, only you have to list each .ps file in the order you want them
 to be included.
   

I already addressed that on my first post. I tried runfilex.ps but then 
Distiller takes 30 to 40 minutes to do the same job that it now does in 
3 to 4 minutes, which really is not an option for a newspaper at closing 
time.

I will do some more experiences, from the Distiller side and the Linux 
side, and I will report here.

Thank you for your answers.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] can't install rrdtool, problems with dependancies

2009-01-24 Thread Kai Schaetzl
Jim Perrin wrote on Sat, 24 Jan 2009 08:47:43 -0500:

 or packaging
 oversite in rpmforge

no, I know it works.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Ping and traceroute...

2009-01-24 Thread Lanny Marcus
On Fri, Jan 23, 2009 at 7:53 PM, Bill Campbell cen...@celestial.com wrote:
 On Fri, Jan 23, 2009, Lanny Marcus wrote:
On Fri, Jan 23, 2009 at 12:16 PM, John Doe jd...@yahoo.com wrote:
 Right now, we are blocking pings and traceroutes to our website.
 But, in order for our members to test the connection when they are 
 experiencing slow browsing, we are thinking about unblocking them...
 Are there still any security issues (flooding, etc...) in enabling them or 
 is that an old problem fixed a long time ago?
snip
 We generally allow ping at the sites we support, but don't rely
 on pings to test for systems being alive.

 We test system status by doing an xmlrpc call to their web server
 which should return some useful information in addition to making
 sure that the system is actually responding to something useful
 (NICs may return pings even if the underlying system is hung).
snip
Bill: For xmlpc to work, what do I need to install on my Desktop? Does
something need to be installed on the web server also? TIA, ,Lanny
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] CentOS-announce Digest, Vol 47, Issue 9

2009-01-24 Thread centos-announce-request
Send CentOS-announce mailing list submissions to
centos-annou...@centos.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.centos.org/mailman/listinfo/centos-announce
or, via email, send a message with subject or body 'help' to
centos-announce-requ...@centos.org

You can reach the person managing the list at
centos-announce-ow...@centos.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of CentOS-announce digest...


Today's Topics:

   1. CESA-2009:0004 Important CentOS 4 i386 opensslsecurity
  update (Karanbir Singh)
   2. CESA-2009:0004 Important CentOS 4 x86_64 openssl  security
  update (Karanbir Singh)
   3. CESA-2009:0057 Important CentOS 5 i386squirrelmail Update
  (Karanbir Singh)
   4. CESA-2009:0057 Important CentOS 5 x86_64  squirrelmail Update
  (Karanbir Singh)
   5. CESA-2009:0057 Important CentOS 4 i386squirrelmail security
  update (Karanbir Singh)
   6. CESA-2009:0057 Important CentOS 4 x86_64  squirrelmail
  security update (Karanbir Singh)


--

Message: 1
Date: Fri, 23 Jan 2009 21:39:53 +
From: Karanbir Singh kbsi...@centos.org
Subject: [CentOS-announce] CESA-2009:0004 Important CentOS 4 i386
openssl security update
To: centos-annou...@centos.org
Message-ID: 20090123213953.ga10...@vkalu.karan.org
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Security Advisory 2009:0004 Important
 https://rhn.redhat.com/errata/RHSA-2009-0004.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: 

i386:
openssl-0.9.7a-43.17.el4_7.2.i386.rpm
openssl-0.9.7a-43.17.el4_7.2.i686.rpm
openssl-devel-0.9.7a-43.17.el4_7.2.i386.rpm
openssl-perl-0.9.7a-43.17.el4_7.2.i386.rpm

src:
openssl-0.9.7a-43.17.el4_7.2.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, #centos @irc.freenode.net



--

Message: 2
Date: Fri, 23 Jan 2009 21:39:54 +
From: Karanbir Singh kbsi...@centos.org
Subject: [CentOS-announce] CESA-2009:0004 Important CentOS 4 x86_64
openssl security update
To: centos-annou...@centos.org
Message-ID: 20090123213954.ga10...@vkalu.karan.org
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Security Advisory 2009:0004 Important
 https://rhn.redhat.com/errata/RHSA-2009-0004.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: 

x86_64:
openssl-0.9.7a-43.17.el4_7.2.i686.rpm
openssl-0.9.7a-43.17.el4_7.2.x86_64.rpm
openssl-devel-0.9.7a-43.17.el4_7.2.i386.rpm
openssl-devel-0.9.7a-43.17.el4_7.2.x86_64.rpm
openssl-perl-0.9.7a-43.17.el4_7.2.x86_64.rpm

src:
openssl-0.9.7a-43.17.el4_7.2.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, #centos @irc.freenode.net



--

Message: 3
Date: Sat, 24 Jan 2009 06:16:17 +
From: Karanbir Singh kbsi...@centos.org
Subject: [CentOS-announce] CESA-2009:0057 Important CentOS 5 i386
squirrelmail Update
To: centos-annou...@centos.org
Message-ID: 20090124061617.ga12...@vkalu.karan.org
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Security Advisory 2009:0057 Important

Upstream details at : https://rhn.redhat.com/errata/RHSA-2009-0057.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( md5sum Filename ) 

i386:
2509185832b13f153462b6aad4eceb40  squirrelmail-1.4.8-5.el5.centos.3.noarch.rpm

Source:
16b0a61a00c16c7a6b8f49123a0a7172  squirrelmail-1.4.8-5.el5.centos.3.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, #cen...@irc.freenode.net



--

Message: 4
Date: Sat, 24 Jan 2009 06:16:18 +
From: Karanbir Singh kbsi...@centos.org
Subject: [CentOS-announce] CESA-2009:0057 Important CentOS 5 x86_64
squirrelmail Update
To: centos-annou...@centos.org
Message-ID: 20090124061618.ga12...@vkalu.karan.org
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Security Advisory 2009:0057 Important

Upstream details at : https://rhn.redhat.com/errata/RHSA-2009-0057.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( md5sum Filename ) 

x86_64:
700a7599bab0d434eeb9ea714b029cf0  squirrelmail-1.4.8-5.el5.centos.3.noarch.rpm

Source:
16b0a61a00c16c7a6b8f49123a0a7172  squirrelmail-1.4.8-5.el5.centos.3.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, #cen...@irc.freenode.net



--

Message: 5
Date: Sat, 24 Jan 2009 06:18:34 +
From: Karanbir Singh kbsi...@centos.org
Subject: [CentOS-announce] CESA-2009:0057 Important CentOS 4 i386
squirrelmail security update
To: centos-annou...@centos.org
Message-ID: 20090124061834.ga12...@vkalu.karan.org
Content-Type: text/plain; charset=us-ascii


Re: [CentOS] can't install rrdtool, problems with dependancies

2009-01-24 Thread Jerry Franz


Kai Schaetzl wrote:
 Jim Perrin wrote on Sat, 24 Jan 2009 08:47:43 -0500:
 
 or packaging
 oversite in rpmforge
 
 no, I know it works.

I just installed it from rpmforge using 'yum install rrdtool' with no 
problems.

-- 
Benjamin Franz
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT? File order on CentOS/Samba server -- SOLVED (kind of...)

2009-01-24 Thread John R Pierce
Miguel Medalha wrote:
 Regardless of what that paper says, Distiller has ALWAYS processed the 
 files in alphabetical order under Windows. I have been doing so since 
 2000 and Acrobat Distiller 4. We are now at 9. I refer, of course, to 
 the use of rundirx.
 

again, Windows NTFS directories are inherently stored in sorted order 
because they are B-Tree indexes on the filename.

if this distiller process is being run from a DOS batch job in 
Windows, you could perhaps use something like...

for /f %%F in ('dir /b /on *.ps') DO @\path\to\distiller  %%F 

to run it on all *.ps files in the current working directory in 
alphabetic order.




___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT? File order on CentOS/Samba server -- SOLVED (kind of...)

2009-01-24 Thread Miguel Medalha

 again, Windows NTFS directories are inherently stored in sorted order 
 because they are B-Tree indexes on the filename.

 if this distiller process is being run from a DOS batch job in 
 Windows, you could perhaps use something like...

 for /f %%F in ('dir /b /on *.ps') DO @\path\to\distiller  %%F 

 to run it on all *.ps files in the current working directory in 
 alphabetic order.
   

Please note that what Distiller is doing is not run on all *.ps files 
in alphabetic order.  If only that were the case, I wouldn't be here 
bothering people...
Instructed by a special PS file, Distiller is running a set of complex 
operations on a group of files in alphabetic order.

I can modify that special PS file to make Distiller process the files in 
any order I want.
The problem is that when the order is not provided by the filesystem 
itself, the process takes forever.
That's why I was looking for a solution at the filesystem level. I was 
trying to understand the inner workings of EXT3 and looking for a 
workaround.

Thank you for your tip, though. Maybe some day I will need it.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Problem detecting HP Tape Drive

2009-01-24 Thread Mehdi Sarmadi
Solved!

The answer is:

echo engage scsi  /proc/drivers/cciss/cciss1

With that thing everything worked fine.
Thanks every one for your help
--
Mehdi Sarmadi


On Sun, Jan 4, 2009 at 5:02 PM, Kay Diederichs 
kay.diederi...@uni-konstanz.de wrote:

 Mehdi Sarmadi wrote:
  Hello
 
   I do have problem using Linux with an external HP tape drive. The
  server platform is also an HP Server; the server is an HP ML350 G4,
  and the Tape drive is a HP Storage Works Ultrium 448 - 1U
  Rack-mountable.
 
   HP Ultrium documentation says two drivers should be automatically
  up, sym53c8xx for LSI SCSI interface st for tape and /proc/scsi/scsi
  should contain information about tape drive, e.g. SCSI ID. However
  none of them happened in my case! (document: UP LTO Ultrium 2-3 -
  Unix Config Guide)
 
   The SCSI adapter is an LSI53C1030. The system has another the same
  adapter which is used for hard disk drives.
 
   The interesting part is, the hard disk are detected and even OS
  boots from them, but I can't make the tape drive work. Moreover, in
  system boot up, LSI SCSI BIOS displays informations saying there is a
  tape drive connected!
 
   Any one has same experience, suggestion, comments or clues?
 
  I've place a zip file here:
  http://msarmadi.googlepages.com/report_files.zip which contains:
 
  - dmesg
  - lshal
  - lsmod
  - lspci -vv
  - cat /proc/scsi/scsi  proc.scsi.scsi
  - cat /proc/modules  proc.modules
  - uname -a  uname
 
  Also, below there are detailed information about devices and OS
  config/log files.
 
  = System info:
  Operating System: Redhat Enterprise Linux AS 5(the same thing happened
  using CentOS 5.2)
  Sever System: HP ML530 G4
  SCSI Adapter: LSI 1030
  Tape Drive: HP Storage Works Ultrium 448 - 1U Rack-mountable
  SCSI Cable: P/N 313375002 Rev R (coming with tape drive)
 
  *Note that, no other SCSI devices are connected to the cable.
 
  = Here is some parts of boot up messages on the screen of HP ML350 G4
 
  System BIOS D17 (14/04/2005)
 
  ...
 
  MPTBIOS-5.05.18
 
  ...
 
  Slot 3 HP Smart Array 6400 Controller (192MB, v.2.26) 1 Logic Drive
 Detected
  1794-Slot 3 Drive Arraye - Array Accelerator Battery Charge low
   Array Accelerator Posted-Write Cache is temporarilty Disabled
   Array Accelerator batteries hace failed to charge and should be replaced
 
 
  Slot 3 HP Smart Array 6400 EM Controller (192MB, v.2.26) 1 Logic Drive
 Detected
 Tape or CD-ROM Drive(s) Detected:
 SCSI Port 2: SCSI ID 1
  1785-Slot 3 Drive Arraye Not Configured
 No Drives Detected
  ...
 
  [Followed by GRUB and Linux boot up]
  =
 
  --
  Mehdi Sarmadi

 Mehdi,

 did you install the mt-st RPM ? This lets you control your tape with
 the mt utilities.

 Knowledgebase articles that seem to be relevant for your case are e.g.
 http://kbase.redhat.com/faq/docs/DOC-1235
 http://kbase.redhat.com/faq/docs/DOC-7084

 HTH,

 Kay

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT? File order on CentOS/Samba server -- SOLVED (kind of...)

2009-01-24 Thread Ross Walker
On Sat, Jan 24, 2009 at 12:43 PM, Miguel Medalha miguelmeda...@sapo.pt wrote:

 again, Windows NTFS directories are inherently stored in sorted order
 because they are B-Tree indexes on the filename.

 if this distiller process is being run from a DOS batch job in
 Windows, you could perhaps use something like...

 for /f %%F in ('dir /b /on *.ps') DO @\path\to\distiller  %%F 

 to run it on all *.ps files in the current working directory in
 alphabetic order.


 Please note that what Distiller is doing is not run on all *.ps files
 in alphabetic order.  If only that were the case, I wouldn't be here
 bothering people...
 Instructed by a special PS file, Distiller is running a set of complex
 operations on a group of files in alphabetic order.

 I can modify that special PS file to make Distiller process the files in
 any order I want.
 The problem is that when the order is not provided by the filesystem
 itself, the process takes forever.
 That's why I was looking for a solution at the filesystem level. I was
 trying to understand the inner workings of EXT3 and looking for a
 workaround.

 Thank you for your tip, though. Maybe some day I will need it.

Have you tried what the different codepages do to sort order in Samba?

Check out these options:

dos charset
unix charset
display charset

-Ross
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT? File order on CentOS/Samba server

2009-01-24 Thread Miguel Medalha

 (...) add the definition of a bubble sort routine before
 that (which I got from Wikipedia), and then modify /RunDir into the
 snippet below. (...)

   
Thank you for caring to look for and post the code.

At first I became very excited about it. But then I tried it...

It does work. The problem is that it suffers from the same illness as 
runfilex does: it takes forever. The process starts very swiftly but 
each new processed page takes longer and longer until it all slows to a 
crawl. Worse yet, Distiller goes on to use enormous ( 90%) amounts of 
CPU time.

I just measured the process as folllows, for the same set of files, 
corresponding to a 32 page publication in A3 format:

rundirex: 3m42s
runfilex: 1h29m54s
Wikipedia code: 1h14m55s

It would be faster with the computers we have at work (runfilex takes 
about 40m) but you can see the relative magnitudes here.
It really is not an option for the stressful environment of a closing 
newspaper...

I suppose I will end up creating a FAT32 partition on the server just 
for this purpose.

Thank you again for pointing me to the PostScript FAQ Wikipedia page. 
It reminded me of the times when I was reading it on BBS'es with the 
help of a 2400 bps modem link... :-)

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT? File order on CentOS/Samba server

2009-01-24 Thread Miguel Medalha

 You don't necessarily have to wait to see what the Distiller would do.
 ls -U shows the files unsorted, in the directory order, that is
 probably the order in which the Distiller is using them.

   
Yes, Distiller uses the directory order. I made an experience at home. I 
copied 10 files by hand, one by one, from Windows to a CentOS machine.

Copy order

F08C.ps
F06C.ps
F03C.ps
F05C.ps
F10C.ps
F02C.ps
F07C.ps
F04C.ps
F01C.ps
F09C.ps

I obtained the following results.

EXT3 inode numbers
(manually sorted here) match the copy order
---
6998658 F08C.ps
6998659 F06C.ps
6998660 F03C.ps
6998661 F05C.ps
6998662 F10C.ps
6998663 F02C.ps
6998664 F07C.ps
6998665 F04C.ps
6998666 F01C.ps
6998667 F09C.ps

EXT3 Directory Order (ls -U1)

F04C.ps
F02C.ps
F03C.ps
F05C.ps
F09C.ps
F08C.ps
F10C.ps
F07C.ps
F01C.ps
F06C.ps

Distiller Order
matches Directory order
-
F04C.ps
F02C.ps
F03C.ps
F05C.ps
F09C.ps
F08C.ps
F10C.ps
F07C.ps
F01C.ps
F06C.ps

I see that the directory order does not match the inode order (which is 
the same as the copy order). Would this be due to the current 
asynchronous nature of filesystem operations? Let's try that: I will now 
reboot the server machine with the sync option on filesystem mount.
...
Rebooted with sync on that filesystem. Copied the files again to a newly 
created dir, etc. The results are the same. Why doesn't the directory 
order reflect the inode order?

Time for further study.
Thank you again!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT? File order on CentOS/Samba server -- FINALLY SOLVED!

2009-01-24 Thread Miguel Medalha

 Rebooted with sync on that filesystem. Copied the files again to a newly 
 created dir, etc. The results are the same. Why doesn't the directory 
 order reflect the inode order?

   

Because of dir_index!

I just turned dir_index OFF with tune2fs. Now the directory order is the 
same as the inode order.

This makes the order of files predictable and in fact turns out to solve 
my problem.

With dir_index turned OFF on that filesystem, when a copy is made to 
another directory (even from Windows on a Samba share) the alphanumeric 
order is preserved. I will just ask the workstation operators to copy 
the PS files to a new folder when they are all ready.
Distiller is watching that folder and will process the files in the 
normal way, using the rundirex file.

This solution is even better than the initial situation: since we can 
now predict the order in which the pages will be processed, we can 
manipulate the order at will by doing multi-phased copies to the folder, 
in any order we want, instead of being limited to the alphanumeric one 
provided by NTFS :-)

So dir_index ON (and my ignorance of the inner workings of EXT3) was 
to blame for this confusion, from the beginning!

What a trip this was (sometimes in circles)! Thank you very much to all 
who contributed!
Great community!


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [Samba] OT? File order on CentOS/Samba server -- FINALLY SOLVED

2009-01-24 Thread Miguel Medalha
I just turned dir_index OFF with tune2fs. Now the directory order is the 
same as the inode order.

This makes the order of files predictable and in fact turns out to solve 
my problem.

With dir_index turned OFF on that filesystem, when a copy is made to 
another directory (even from Windows on a Samba share) the alphanumeric 
order is preserved. I will just ask the workstation operators to copy 
the PS files to a new folder when they are all ready.
Distiller is watching that folder and will process the files in the 
normal way, using the rundirex file.

This solution is even better than the initial situation: since we can 
now predict the order in which the pages will be processed, we can 
manipulate the order at will by doing multi-phased copies to the folder, 
in any order we want, instead of being limited to the alphanumeric one 
provided by NTFS :-)

So dir_index ON (and my ignorance of the inner workings of EXT3) was 
to blame for this confusion, from the beginning!

What a trip this was (sometimes in circles)! Thank you very much to all 
who contributed!
Great community!

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT? File order on CentOS/Samba server

2009-01-24 Thread Craig White
On Sat, 2009-01-24 at 20:24 +, Miguel Medalha wrote:
 Thank you again for pointing me to the PostScript FAQ Wikipedia
 page. 
 It reminded me of the times when I was reading it on BBS'es with the 
 help of a 2400 bps modem link... :-)

and you thought that 2400 bps was fast too I bet. Having started at 300
bps, I was shocked at how fast 1200 bps was.

that was a couple of eons ago

Craig

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT? File order on CentOS/Samba server

2009-01-24 Thread Miguel Medalha

 and you thought that 2400 bps was fast too I bet. Having started at 300
 bps, I was shocked at how fast 1200 bps was.

 that was a couple of eons ago
   
That reminded me that I still used a 1200 one for a while, too.
When the first 14,400 modems appeared, I could not believe the speed. 
The cost was almost that of gold. In fact, they were so expensive that I 
had to buy one 50-50 with a friend. A ISA internal one because an 
internal one was a little cheaper. We then shared it: one week for me, 
one week for him. :-)

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT? File order on CentOS/Samba server

2009-01-24 Thread Filipe Brandenburger
Oi Miguel,

On Sat, Jan 24, 2009 at 15:24, Miguel Medalha miguelmeda...@sapo.pt wrote:
 Thank you for caring to look for and post the code.

No problem! Glad to help.

 At first I became very excited about it. But then I tried it...

 It does work. The problem is that it suffers from the same illness as
 runfilex does: it takes forever. The process starts very swiftly but each
 new processed page takes longer and longer until it all slows to a crawl.
 Worse yet, Distiller goes on to use enormous ( 90%) amounts of CPU time.

 I just measured the process as folllows, for the same set of files,
 corresponding to a 32 page publication in A3 format:

 rundirex: 3m42s
 runfilex: 1h29m54s
 Wikipedia code: 1h14m55s

That is really weird, since it's only sorting a list before starting
the processing, but once the processing is started, it does exactly
the same in both cases (the only difference is that in one case
filenameforall is used and in the other case forall is used over
an array with the sorted list of files).

Do you have a support contract with Adobe? If you do, I think you
should bring up this issue with them and try to figure out where the
huge performance difference is coming from, since it should not.

 I suppose I will end up creating a FAT32 partition on the server just for
 this purpose.

and:

 I just turned dir_index OFF with tune2fs. Now the directory order is the
 same as the inode order. This makes the order of files predictable and
 in fact turns out to solve my problem.

 With dir_index turned OFF on that filesystem, when a copy is made to
 another directory (even from Windows on a Samba share) the
 alphanumeric order is preserved. I will just ask the workstation
 operators to copy the PS files to a new folder when they are all
 ready. Distiller is watching that folder and will process the files in the
 normal way, using the rundirex file.

I don't think turning dir_index off will make the order as predictable
as you want it. It may be a good enough work around for now, but it
might lead to strange problems in the future that you may end up
having to deal with again.

I would really advise you to investigate why when you list the files
in the order you want in the input file it takes so long.

Boa Sorte!
Filipe
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] replacing a line in a file

2009-01-24 Thread Jerry Geis
I have a large file that has a line like:

bindaddr=0.0.0.0 ; some other text

I want to replace the 0.0.0.0 with my address 192.168.1.8 and remove 
everything
else on the line to get:

bindaddr=192.168.1.8

How can I do that?

Thanks,

jerry
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] replacing a line in a file

2009-01-24 Thread Jerry Geis
Jerry Geis wrote:
 I have a large file that has a line like:

 bindaddr=0.0.0.0 ; some other text

 I want to replace the 0.0.0.0 with my address 192.168.1.8 and remove 
 everything
 else on the line to get:

 bindaddr=192.168.1.8

 How can I do that?

 Thanks,

 jerry

I finally found a way to do it with sed.
Which is what I tried first but I did not have the . before the $

sed s/bindaddr=.*/bindaddr=192.168.1.8/

sorry to have taken tracffic.

Jerry
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] replacing a line in a file

2009-01-24 Thread fred smith
On Sat, Jan 24, 2009 at 10:01:56PM -0500, Jerry Geis wrote:
 I have a large file that has a line like:
 
 bindaddr=0.0.0.0 ; some other text
 
 I want to replace the 0.0.0.0 with my address 192.168.1.8 and remove 
 everything
 else on the line to get:
 
 bindaddr=192.168.1.8
 
 How can I do that?

given the power of unix/linux, there's probably a bazillion ways.
If you want to do it from the commandline without having to use an
interactive text editor, you could do it this way (note this is UNTESTED):

sed -e s/^bindaddr=0\.0\.0\.0.*$/bindaddr=192\.168\.1\.8/ filename

Note the backslashes to turn the dots into literal dots, not the
regexp character that it would be without the backslash. also note
the single instance of a dot without a leading backslash, because
that is intended to be a regexp.

OK, now it's tested. given this input file:

bindaddr=1.0.0.0 ; some other text
bindaddr=2.0.0.0 ; some other text
bindaddr=0.0.0.0 ; some other text
bindaddr=3.0.0.0 ; some other text

applying the command above produces:

bindaddr=1.0.0.0 ; some other text
bindaddr=2.0.0.0 ; some other text
bindaddr=192.168.1.8
bindaddr=3.0.0.0 ; some other text

Other people would come up with something in AWK, or Perl or Ruby
or PHP or insert language du jour here. I suppose someone with time on
his hands might even figure out how to do it purely in BASH, without
resorting to any external programs.


May God rest your soul if you conned me into doing your homework for you! :)


-- 
---
Under no circumstances will I ever purchase anything offered to me as
the result of an unsolicited e-mail message. Nor will I forward chain
letters, petitions, mass mailings, or virus warnings to large numbers
of others. This is my contribution to the survival of the online
community.
 --Roger Ebert, December, 1996
- The Boulder Pledge -


pgpAIBhIu4au9.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos