Re: [CentOS] Grep: show me this line and the next N lines?
On 05/30/2011 11:08 PM, Dotan Cohen wrote: > Can grep show the matching lines and the next N lines after a match? > For instance, I have a config file wit hthe following text: > [Tag h1] > foreground=#2e5a03 > underline=double > indent=0 > weight=PANGO_WEIGHT_BOLD > scale=2.25 > > I would ideally grep on "[Tag h1]" and have grep display the match and > the next 5 lines so that I see all the content of the h1 section. > > Can this be done? > > Thanks! > man grep hint: A t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] recursively find duplicate filenames
On 01/05/2011 12:15 PM, S Mathias wrote: > find duplicate filenames in a folder > find | perl -ne 's!([^/]+)$!lc $1!e; print if 1 == $seen{$_}++' > > find duplicate filenames in a folder recursively > ? how? eg: /foo/bar.txt /foo2/bar.txt /foo3/bar.txt t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] adobe flash
On 12/13/2010 06:30 PM, Ritika Garg wrote: > I have CentOS5.5 installed in the system. After updating the version of > firefox, the videos are playing on the internet. Earlier the message > "flash player download required" used to come. so what? is that a problem? you want your message back? t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] how to do repetetive command in shell
> USER1="roland" > USER2="dany" > USER3="kevin" > > > cp -r /opt/$USER1/test /backup/$USER1 > cp -r /opt/$USER2/test /backup/$USER2 $ for user in one two three four; do echo $user; done one two three four t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] need Centos5.4 url download
Anas Alnaffar wrote: > From where can I download Centos5.4 > > Thanks http://www.centos.org/modules/tinycontent/index.php?id=30 t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] PHP Add-on
Ricky Tompu Breaky írta: > Dear my friends... > > I want to install Magento but the installer asks me several PHP Add-on: > PHP Extension "pdo_mysql" must be loaded > PHP Extension "mcrypt" must be loaded > PHP Extension "curl" must be loaded > PHP Extension "gd" must be loaded > > Anybody would be so nice to tell me the way to install the PHP add-on-s? > > Thank you very much. try yum first afaik all the above has a separate php rpm t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] yum hangs, rpm hangs
> Hmm. Now I find that *any* rpm or yum command I type in will hang. This > is not good. tried removing temp files from /var/lib/rpm (afaik __db.*) t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] how to clean YUM download?
mcclnx mcc wrote: > We have CENTOS 5.2 on DELL server. While I run "yum update" and yum start > download files. in middle of download there have power surge and computer > reboot. > > Does there has way to clean yum download? > > Thanks man yum => yum clean => headers, packages, metadata, dbcache, plugins, expire-cache, all t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] mysql error
> You're getting that because "-ucountry" isn't a valid flag for > mysqladmin. Did you mean to log into the MySQL server as user > "country"? If so put a space after the "-u" mind the difference between mysqladmin and mysql itself. t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Install 32 or 64 bits
mcclnx mcc wrote: > Not all 32 bits applications can run on 64 bits O.S. > > ORACLE is one of that. ORACLE web site say very clearly 32 bits ORACLE can > NOT install on 64 bits LINUX O.S. I personal tried to do that several times, > but failed. This include 32 bits ORACLE 10Gr2, ORACLE EBS R12 and ORACLE OEM > 10GR2. > maybe it cant install out of the box on a 64 bit box, but it must be able to get installed with some 32 bit rpm packages installed. (libriries, maybe glibc, etc) t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 5.3 - php mycrypt
Tom Brown wrote: > I need PHP with mycrypt support see > > http://www.php.net/manual/en/ref.mcrypt.php > > i wonder - is this available in the PHP that comes with CentOS 5.3 ? ever thought of yum search php-mcrypt? t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] how to build php5-cgi from source
Tim Ke írta: > Does anyone has experience on how to build php5-cgi from source? ./configure. make make install t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] script question
Jerry Geis wrote: > I have this line: > ALSA=`aplay --version` > > in a script. when I execute the script I get the message > line 187: --version: command not found > $ echo $(aplay --version) aplay: version 1.0.18 by Jaroslav Kysela t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] installation needs libpng but rpm is there
> configure: error: png library not found. please install libpng > > but I check rpm is installed > > libpng-1.2.10-7.1.el5_0.1 > > How can I do? what do you install? libpng-devel? t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] real SATA RAID
> Last week I had a lengthy thread in which someone indicated the my SIL > card is a FRAID (don't know if F stands for the F word or Fake, though > it doesn't really matter). I want to replace the controller with a > controller that Linux will see the RAID1 group as a single HD and not > multiple HDs as it happens with the SIL controller. Recommendations anyone? 3ware, areca, adaptec t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] More than 2TB RAID...
mcclnx mcc wrote: > how to stop "fsck" on boot? 1. vi /etc/fstab 2. grub.conf => fastboot 3. touch /fastboot t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] How to add network driver for network installation
> CentOS 5.2 x86_64 (kernel > 2.6.9-92) that cant be true t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Help with find
Matt wrote: > This finds all files modified 5 minutes ago. > > find /home/*/ -cmin 5 -type f -mindepth 1 -maxdepth 1 > > I want to find all files modified 5 or less minutes ago. How do I do > that? "find -mtime -1" only works in 24 hour increments. -cmin -5 t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] yum update fails: CentOS 5.2
> It doesn't ask if its ok. But > if I type y it reports: >Is this ok [y/N]: Downloading Packages: > > Then it does nothing. I can't kill it > with CRTL-C, but I killed the yum process > with kill -9 from another window. > I retried it several times; same result. tried deleting /var/lib/rpm/__* after killing all yum processes? t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Problems compiling PostgreSQL package from FC8 on CentOS 5
http://yum.pgsqlrpms.org/reporpms/repoview/pgdg-centos.html t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] script to find last accessed time?
Tom Brown wrote: > Can anyone help me with the syntax to find last accessed time on a bunch > of dir's - something like show me the files that were last accessed 6 > months or more ago? man find? t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Location of 5.2 .iso without XEN
Sam Drinkard írta: Subject pretty much says it all. I want the 5.2 without the xen kernel. I've grabbed bits from 2 different mirrors and they all appear to have xen on them. It would be very nice if someone could throw some text into the mirrors file to differentiate the two "versions".. Oh yeah, I need the x86_64 .iso. Thanks you just dont install xen, thats all no magic! t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS/RHEL, PHP and zip archives
[Sun Nov 16 22:05:38 2008] [error] [client 192.168.0.192] PHP Fatal error: Class 'ZipArchive' not found in /var/www/fraud/html/davesBlog/sites/all/modules/photos/photos.module on line 1375, referer: http://davenjudy.org/davesBlog/node/39/photos The PHP code at line 1375 in photos.module is an unremarkable instantiation of the zip archive handling object. Some Google searches indicate that zip archive handling is a compile time option of PHP and lack of it would cause this error. Running php -i tells me that the CentOS/RHEL PHP was not built with the --enable-zip configuration option. Does anyone know of a way to get PHP to correctly handle zip archives short of rebuilding my PHP installation from the source RPM with --enable-zip as a configuration option? http://pecl.php.net/package/zip t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] replace
You also have to give an extension to the command to get a backup. For this one it would basically be: perl -pi.old -e 's/foo/bar/' *.html... in addition to the no recursion thing if you dont, the target changes are applied to the source files. t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] replace
Phil Schaffner írta: Mad Unix wrote: i need your feedback about this command, it should find a string in multiple html files in a directory and replace it with a different string... find /dir -name "*.html" -exec sed -i 's/"old"/"new"/g' {} \; Mad Unix, find /dir -name "*.html" -exec sed -i -e 's/old/new/g' {} \; or find /dir -name "*.html" -exec sed -i".bck" -e 's/old/new/g' {} \; to keep a backup. perl -pi -e "s/foo/bar/" *.html t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] script question
I am trying to create a script that takes an entire file, drops the first 19 characters from each line and creates a new file. I am missing something easy but I am not seeing it. Jerry --- I tried the script below but did not work. rm output.txt cat test.txt | \ while read LINE do newline=`echo $LINE | cut -f 19-` echo $newline >> output.txt done test.txt is below 10-Oct-08 08:14 am 10 why not simply cut -b10- foo > bar t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] problem with dns
david fritz wrote: i want to configure dns but i don't find the file like named.conf dns server you mean? you need the "bind" rpm installed. if you need dns "client", edit /etc/resolv.conf t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] problem with roundcubemail
david fritz wrote: I use the webmail roundcubemail to edit my mail server. after finishing to configure it and mysql server and I try to connect to the mail server but i had this message : unable to connect to the database. help me please pretty informative error msg. can you read and understand it at all? double-check mysql host/user/pass/db t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] find
[EMAIL PROTECTED] írta: I am looking for something similar to the windows SEARCH FILES comman with the option "files containing ..." (that is where I can specify a string and it will find all files containing that string -- not just having the string as part of the name but actually containing it in the text). Is there some way to do this? exec + *grep ? t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] link speed
Craig White írta: Is there a command line way to tell me whether a ethernet connection is 100 BaseT or Gigabit Ethernet? mii-tool t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Installing & activating mysql in CentOS 5
Andrew Allen wrote: I want to set up a local mysql server + client (preferably graphical, ie mysqlgui) so have yum installed both perl-DBI and mysql.i386, both apparently successfully. However, I can't see what to do next to get mysqld running, as it doesn't appear in the list of services (in /etc/init.d/). Help appreciated please - is there any good specific documentation on this anywhere? Also, what's the current opinion/advice on a graphical user interface for mysql please? how about trying mysql-server? t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] yum erase fails
Robert Moskowitz wrote: I am trying to erase an rpm with yum erase. It fails: service hipfw does not support chkconfig Removed: hipl-firewall.i386 0:1.0.4.1 Complete! And it is not removed If I try with rpm -e, I get the same error message. So how do I remove this rpm? --noscripts ? t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] small window manager
Paul Bijnens wrote: What is an alternative X window manager, supported by CentOS, that has very small memory footprint? I want to avoid twm, because it defaults to interactive placement when not giving geometry options. No other requirements. dwm, fwm, xfce, fluxbox? ps: your signature is very nice, but... ehh rings a bell? t ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos