Re: [CentOS-docs] HowTos/JavaOnCentOS Wiki page revision?
Am 14.01.11 19:16, schrieb Milos Blazevic: Hi all, in respect of the recent CentOS forum thread, (found here https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flattopic_id=28126forum=38) I wrote a Sun/Oracle Java Installation Manual for CentOS 5 - posted on my Wiki Profile page, http://wiki.centos.org/MilosBlazevic?action=show and would like update the Java Wiki page with this content. To me the article looks good, if you can incorporate it into the current wiki article (and not just replace that). Of course, for this to happen only after a thorough revision of the manual by the community. All critics and suggestions are most welcome. Okay, I haven't thouroughly reviewed it, but didn't find obvious issues while reading it :) Regards, Ralph ___ CentOS-docs mailing list CentOS-docs@centos.org http://lists.centos.org/mailman/listinfo/centos-docs
Re: [CentOS-docs] How to create a new initrd
Am 15.01.11 17:00, schrieb Phil Schaffner: http://wiki.centos.org/TipsAndTricks/CreateNewInitrd Comments and constructive criticism are solicited. Does doing it that way incorporate all needed modules into the initrd? Maybe a word on adding non loaded modules would be fine at this point :) Cheers, Ralph ___ CentOS-docs mailing list CentOS-docs@centos.org http://lists.centos.org/mailman/listinfo/centos-docs
Re: [CentOS-docs] How to create a new initrd
Ralph Angenendt wrote on 01/15/2011 03:40 PM: ... Maybe a word on adding non loaded modules would be fine at this point :) Please do feel free to provide that. I neglected to add my usual invitation for others to edit the page, but consider it, in the traditional Wiki spirit, as a blanket permission for anything I have originated on the Wiki. Phil ___ CentOS-docs mailing list CentOS-docs@centos.org http://lists.centos.org/mailman/listinfo/centos-docs
Re: [CentOS-docs] How to create a new initrd
On 01/15/2011 06:00 PM, Phil Schaffner wrote: http://wiki.centos.org/TipsAndTricks/CreateNewInitrd Comments and constructive criticism are solicited. Phil I took advantage of you invitation to complete/correct the page and fixed a minor typo + added a reference to the xenblk module Wolfy ___ CentOS-docs mailing list CentOS-docs@centos.org http://lists.centos.org/mailman/listinfo/centos-docs
Re: [CentOS] Centos, Samba , WIN7
On Saturday 15 January 2011 04:41:01 Rob Kampen wrote: Ryan Wagoner wrote: On Fri, Jan 14, 2011 at 8:52 AM, Timothy Kesten centos-...@gmx.de wrote: Am Freitag, 14. Januar 2011, 11:27:22 schrieb John Doe: Google for samba windows.7 and click on first answer... I knew, that samba 3.3 is necessary. I was more interessted in where can I get a suitable version from a centos-repo. yum install samba3x Samba 3.3.8 was included with CentOS 5.5. ?? I just checked on my servers fully updated 5.5 and have only 3.0.33 - Am I missing something? There are two sets of samba packages included with Centos 5.5; Look in the source repo. samba-3.0.33-3.28.el5.src.rpm ( the default ) and samba3x-3.3.8-0.51.el5.src.rpm You have to remove the samba packages to install the samba3x packages which are required to work with windoze 7 clients. Tony Ryan ___ 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
[CentOS] Grub4Dos Load Window 7 and Linux
There are two system in my disk, windows 7 and fedora core 13 How to use the grub4dos load the window 7 and linux. I donot know how to config the menu list. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] RHEL 5.6 is out
On Fri, Jan 14, 2011 at 3:00 AM, mahmoud mansy jecko...@gmail.com wrote: no i get an account but it only offer me the beta`s iso`s? I guess Redhat support would be proper forum to ask since you have a valid RHN account. Redhat support should be able to point you to correct location for the images. -- Arun Khan ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Grub4Dos Load Window 7 and Linux
On Sat, 2011-01-15 at 17:13 +0800, Ganu wrote: How to use the grub4dos load the window 7 and linux. I donot know how to config the menu list. http://tldp.org/HOWTO/Multiboot-with-GRUB-2.html -- mount -t life -o ro /dev/dna /genetic/research ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] RHEL 5.6 is out
On 14/01/11 16:47, Gilbert Sebenste wrote: On Fri, 14 Jan 2011, Eero Volotinen wrote: 2011/1/14 Brunner, Brian T.bbrun...@gai-tronics.com: Is this how other CentOS users feel when they hear a RHEL announcement? No, I think: These men and women are so awesome, giving up their time to make us a great operating system at no charge. Whether it be a week, a month, or a year after RHEL release, I am so grateful for all of them and the huge amounts of time and effort they *donate* to do all of this!! And I'll be blunt here: that should be our mindset for ALL of us on this list, and it would accelerate the timetable of new CentOS releases by: 1. Not having Karanbir and others stop and waste their time on snarky comments, endless when will it be out, I want it NOW! tirades, and other garbage Seriously, this could be improved by having some better clues on when it would be ready or not. F.ex. they could state on the mailing list will be ready during March. And towards the end they could say Early or late March or in worst case We need to extend the test period to late April. That gives some ideas when and can really calm a community down. Not knowing anything is the worst which ever happens. If they don't know, come with some guestimates and correct them during the process. A more transparent process on what is happening and what the plan is, that is what is really needed in community projects. snip/ Sorry, but I'm not in a good mood right now, but I'm tired of people complaining about the slow releases. As for me, I'm very grateful and thankful for what all the *volunteers* do for CentOS. Imperfectly? Sure. That's what patience and grace are for. Patience is truly gold. But without having at least some vague ideas when, these complains or questions will *never* stop. kind regards, David Sommerseth ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] how to convert 7 cd iso images into one dvd image?
how to convert 7 cd iso images into one dvd image? Cat the CD ISOs together (order doesn't matter) into a single big file with the same name as the corresponding DVD (same version and arch), then run rsync on it to convert into the actual DVD (using a mirror that has both rsync and the desired DVD). The same trick works in reverse: for each CD, make a copy of the DVD with the same name as the CD, then run rsync on it to convert it into the actual CD. In either direction, the download necessary shouldn't be more than a few percent of full size. signature.asc Description: OpenPGP digital signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] input/output error while copy
I always mount the hard disk in read write by the command ntfs-3g /dev/sda1 /media/harddisk umask=0. cut, copy, paste works fine when I perform these operations by mouse. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Installation question
Hi, I am new in the world of CentOS and Linux. I am not a computer professional but want to do work in Linux, for which I am trying to learn the Linux basics. Having a PC at home and somebody told me CentOS is a great Linux distro for stability. I am having some basic queries which are as follows: 1. I am having the PC and already installed is Fedora Core 11 as well as Windows XP (dual boot). Fedora has unstability because of its EOL. If I want to install the Cent OS for home PC (personal), should the installation CD (after getting it burned) would prompt me to replace the existing Linux (i.e. Fedora) or would it try to install into the whole of the memory? My requirement is to only replace the existing Fedora Core 11 but to make the Windows remain intact. 2. Though I am new in Linux, and even Fedora commands I don't know much but majority of the commands in Cent OS and Fedora are same? 3. What Cent OS should I download and install? I mean for a single PC at home, can I install the server CentOS or simple CentOS? I hope that Cent OS would be good to use at home. -- Regards, Parshwa Murdia ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] how to convert 7 cd iso images into one dvd image?
So, is there a technique or an open source tool that will create a dvd iso given the cd iso images? I've seen the DVD ISO files on select mirrors. it can be difficult to reliably transfer a 4GB file over http/ftp I've only had one DVD iso dowload corrupted over http. I use a fast mirror and d/l overnight with a wget bash script, run by cron. #! /bin/bash # the command to download the iso shows in qps as 'wget' #--# # SITE_URL is the url of the site to download # WAIT_TIME is the time to wait in seconds between downloading files # DOWNLOAD_DIR is the destination for the downloaded files #--# OS_VERSION=5.5 SITE_URL=http://www.mirrorservice.org/sites/mirror.centos.org/$OS_VERSION/isos/i386; DOWNLOAD_DIR=/downloads/linux/centos/$OS_VERSION/DVD #--# # get the CentOS 5.5 DVD md5sum.txt file. wget \ -a $DOWNLOAD_DIR/wget.log \ --directory-prefix=$DOWNLOAD_DIR \ $SITE_URL/md5sum.txt # get the CentOS 5.5 DVD iso file. wget \ -a $DOWNLOAD_DIR/wget.log \ --directory-prefix=$DOWNLOAD_DIR \ $SITE_URL/CentOS-$OS_VERSION-i386-bin-DVD.iso #--# exit 0 Always md5sum check the iso is downloaded OK, and if you burn to a DVD+RW disk, you can then reuse that many times. HTH Keith Roberts - Websites: http://www.karsites.net http://www.php-debuggers.net http://www.raised-from-the-dead.org.uk All email addresses are challenge-response protected with TMDA [http://tmda.net] - ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Installation question
On Sat, Jan 15, 2011 at 01:19:25PM +0100, Parshwa Murdia wrote: Hi, I am having some basic queries which are as follows: 1. I am having the PC and already installed is Fedora Core 11 as well as Windows XP (dual boot). Fedora has unstability because of its EOL. If I want to install the Cent OS for home PC (personal), should the installation CD (after getting it burned) would prompt me to replace the existing Linux (i.e. Fedora) or would it try to install into the whole of the memory? My requirement is to only replace the existing Fedora Core 11 but to make the Windows remain intact. It should give the same option that you see in Fedora, remove existing Linux distribution. There is also an option for custom partitioning. The default, if I remember correctly, is to remove existing Linux and replace it. 2. Though I am new in Linux, and even Fedora commands I don't know much but majority of the commands in Cent OS and Fedora are same? Yes. As far as command line goes, aside from package management, (RedHat based distributions, including Fedora and CentOS, use yum, Debian and Ubuntu based distributions use apt, ArchLinux uses pacman, and so on) the rest of the commands are going to be the same. (Or at least extremely similar--sometimes, a distribution has version x of a program and another distribution has version y--and version y might have a few different options.) If you are using the default Gnome desktop, sometimes the layout is slightly different so using the menu may have some slight differences---for example, RedHat and Fedora put the terminal under system tools, whereas Ubuntu (and oddly enough, Oracle Linux) put it under accessories. 3. What Cent OS should I download and install? I mean for a single PC at home, can I install the server CentOS or simple CentOS? There is no server/workstation version. It's all one version and you can customize during installation, which is the same as Fedora. I hope that Cent OS would be good to use at home. The only issues you may run into are that, as the price of stability, there are often older versions of packages--this can sometimes mean that a later version of a program isn't available, because it requires newer glibc versions, and, at times, hardware support from later kernels isn't available. However, due to many 3rd party efforts, such as elrepo, one can find the support for some newer piece of hardware. It sometimes requires more research than would be necessary for one of the more desktop oriented distributions, such as Fedora. -- Scott Robbins PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6 Buffy: You know, I just woke up and I looked in the mirror and thought, 'Hey, what's with all the sin.' I need to change. I'm dirty, I'm bad with the sex, and the envy, and the loud music us kids listen to nowadays. Oh, I just suck at undercover. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] how to convert 7 cd iso images into one dvd image?
Hi, On Sat, 2011-01-15 at 12:37 +, Keith Roberts wrote: So, is there a technique or an open source tool that will create a dvd iso given the cd iso images? I've seen the DVD ISO files on select mirrors. it can be difficult to reliably transfer a 4GB file over http/ftp I've only had one DVD iso dowload corrupted over http. I use a fast mirror and d/l overnight with a wget bash script, run by cron. I have downloaded hundreds of DVD iso images with wget and curl during the past years. I had maybe one or two that were corrupted in one way or another, mostly because of improperly configured (windows) webservers. 4Gb with HTTP is no problem nowadays, FTP isn't either. If you have doubts about HTTP/FTP you can always use the Bittorrent way to download (also with commandline tools like btdownloadcurses or similar). It doesn't really matter when you download them although in some cases it can make a difference in speed to download overnight but with most tools you can also specify a maximum bandwith to use. To be sure an image is ok you can always check the image with the md5/sha1 checksum which is normally found in the same directory as the image on the HTTP/FTP server. kind regards, Michel ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Kernel Errors Present
On Sat, 15 Jan 2011, Leonard den Ottolander wrote: To: CentOS mailing list centos@centos.org From: Leonard den Ottolander leon...@den.ottolander.nl Subject: Re: [CentOS] Kernel Errors Present Hi Keith, On Thu, 2011-01-13 at 19:03 +, Keith Roberts wrote: Well it seems likely it's because the drive is on a 40-wire cable. But the kernel wants to do UDMA at 100 MB/s. See hdparm's -X switch to override the (U)DMA mode used for the drive. Hi Leonard. Yes, I've added the following into /etc/rc.d/rc.local: #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local # turn off DMA for hde WD drive # -d0 = off # -d1 = on # hdparm -d0 /dev/hde # hdparm -d1 -Xudma2 /dev/hde # # /dev/hde: # setting using_dma to 1 (on) # setting xfermode to 66 (UltraDMA mode2) # using_dma= 1 (on) # # set WD drive to use UDMA2 - 33 MB/s hdparm -d1 -Xudma2 /dev/hde # set sector count for multiple sector I/O # WD drives like a low setting # to prevent I/O data errors. hdparm -m2 /dev/hde # enable 32-bit data transfers with a special sync sequence # required by many chipsets # /dev/hde: # setting 32-bit IO_support flag to 3 # IO_support = 3 (32-bit w/sync) hdparm -c3 /dev/hde sleep 10 # end of rc.local At reset/power on time the IT8212 controller spotted the WD drive was on a 40 wire cable, and set the UDMA transfer rate to UDMA 2 (33 MB/s). However for some reason the kernel decided to set the transfer rate for the drive to UDMA 5 (100 MB/s). There were thousands of CRC errors in the SMART data for this drive, which would indicate crosstalk problems on the 40 wire cable being run at too high a speed. Now I'm using hdparm to reset the drive to UDMA2 (33 MB/s) there are no more dma_intr errors occuring, or being reported by logwatch. Thanks for all the feedback on this. The drive is now working as desired. I hope to be be getting some custom made 80 wire UDMA IDE cables sorted ASAP. That should squeeze extra speed from all the drives on the machine. The 40 wire IDE cables will be packed away safely! Kind Regards, Keith Roberts - Websites: http://www.karsites.net http://www.php-debuggers.net http://www.raised-from-the-dead.org.uk All email addresses are challenge-response protected with TMDA [http://tmda.net] - ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Kernel Errors Present
On Sat, Jan 15, 2011 at 7:57 AM, Keith Roberts ke...@karsites.net wrote: I hope to be be getting some custom made 80 wire UDMA IDE cables sorted ASAP. That should squeeze extra speed from all the drives on the machine. You shouldn't need custom cables. IDE 80 pin cables can be sourced all over the Internet for around $5 a cable. Prices have gone up since they are now not common. You might even post a wanted ad on craigslist and see if you can get a handful for a few bucks. Ryan ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] keychain problem
hello centos.. I am having a very annoying problem on my network right now. it looks like every time I try to add my ssh key to keychain I have to issue a command just to get my ssh subsystem communicating with the ssh-agent: I have this line in my .bashrc file $(keychain --eval --quick --quiet private_key1 private_key2 private_key3) If I try to perform ssh-add I get the message: [bluethundr@VIRTCENT01:~]#ssh-add Could not open a connection to your authentication agent. So then I try to execute ssh-agent: bluethundr@amanda:~]#exec ssh-agent bash * Warning: can't find private_key1; skipping * Warning: can't find private_key2; skipping * Warning: can't find private_key3; skipping bash: SSH_AUTH_SOCK=/tmp/ssh-cdJlgq6077/agent.6077;: No such file or directory Then I can add it. [bluethundr@amanda:~]#ssh-add Enter passphrase for /home/bluethundr/.ssh/id_rsa: Identity added: /home/bluethundr/.ssh/id_rsa (/home/bluethundr/.ssh/id_rsa) But if I ssh away from this box and then ssh back INTO it.. and then sometime later have to ssh away again it asks me for my ssh key's passphrase. See what I mean by 'annoying problem'? Thanks in advance for your help! -- GPG me!! gpg --keyserver pgp.mit.edu --recv-keys F186197B ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] keychain problem(with config file)
Sorry meant to attach my sshd_config file.. here it is! -- Forwarded message -- From: bluethundr bluethu...@gmail.com Date: Sat, Jan 15, 2011 at 11:22 AM Subject: keychain problem To: CentOS mailing list centos@centos.org hello centos.. I am having a very annoying problem on my network right now. it looks like every time I try to add my ssh key to keychain I have to issue a command just to get my ssh subsystem communicating with the ssh-agent: I have this line in my .bashrc file $(keychain --eval --quick --quiet private_key1 private_key2 private_key3) If I try to perform ssh-add I get the message: [bluethundr@VIRTCENT01:~]#ssh-add Could not open a connection to your authentication agent. So then I try to execute ssh-agent: bluethundr@amanda:~]#exec ssh-agent bash * Warning: can't find private_key1; skipping * Warning: can't find private_key2; skipping * Warning: can't find private_key3; skipping bash: SSH_AUTH_SOCK=/tmp/ssh-cdJlgq6077/agent.6077;: No such file or directory Then I can add it. [bluethundr@amanda:~]#ssh-add Enter passphrase for /home/bluethundr/.ssh/id_rsa: Identity added: /home/bluethundr/.ssh/id_rsa (/home/bluethundr/.ssh/id_rsa) But if I ssh away from this box and then ssh back INTO it.. and then sometime later have to ssh away again it asks me for my ssh key's passphrase. See what I mean by 'annoying problem'? Thanks in advance for your help! -- GPG me!! gpg --keyserver pgp.mit.edu --recv-keys F186197B -- GPG me!! gpg --keyserver pgp.mit.edu --recv-keys F186197B sshd_config Description: Binary data ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] how to convert 7 cd iso images into one dvd image?
Or how does one generate the dvd iso given a list of rpm files? (Assuming I had a list of all of the needed rpm files). It would be nice if one had something like make centos_5.2_dvd_iso :-) Check out this link .. it provides all the information on how to do this. I've not tried this with anything more recent than RHEL 3 .. and the example is with RHEL 4 .. so it may or may not work, but it is headed in the right direction. http://www.brandonhutchinson.com/Creating_a_RHEL_bootable_DVD_ISO.html Barry ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] how to convert 7 cd iso images into one dvd image?
On 1/15/11 6:06 AM, Andre Robatino wrote: how to convert 7 cd iso images into one dvd image? Cat the CD ISOs together (order doesn't matter) into a single big file with the same name as the corresponding DVD (same version and arch), then run rsync on it to convert into the actual DVD (using a mirror that has both rsync and the desired DVD). The same trick works in reverse: for each CD, make a copy of the DVD with the same name as the CD, then run rsync on it to convert it into the actual CD. In either direction, the download necessary shouldn't be more than a few percent of full size. If the remote will run rsync, just use that in the first place to get the dvd and use the -P option so it will restart if you don't complete on the first attempt. Or, if you get the CD isos, just drop them in an NFS-shared directory, burn only the first one and do an NFS install, pointing the installer at the directory containing the iso images. I haven't done that for a while but I assume it still works and it's probably the easiest approach. With VMware or other virtual frameworks that can map an iso file as a boot device you don't even have to burn the first image - just connect it as a virtual CD. -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] how to convert 7 cd iso images into one dvd image?
Les Mikesell lesmikesell@... writes: If the remote will run rsync, just use that in the first place to get the dvd and use the -P option so it will restart if you don't complete on the first attempt. I can't find a mirror that has the 5.2 DVDs, so testing with the i386 5.5 DVD, using rsync -avzP mirror.clarkson.edu::centos/5.5/isos/i386/ISO name . to generate each image. Going from the CD set to the DVD: cat CentOS-5.5-i386-bin-?of7.iso CentOS-5.5-i386-bin-DVD.iso rsync -avzP \ mirror.clarkson.edu::centos/5.5/isos/i386/CentOS-5.5-i386-bin-DVD.iso . sent 517767 bytes received 84526757 bytes 185080.57 bytes/sec total size is 4185118720 speedup is 49.21 which is about 2% of full transfer size. Going from the DVD to the CD set: cp CentOS-5.5-i386-bin-DVD.iso CentOS-5.5-i386-bin-1of7.iso rsync -avzP \ mirror.clarkson.edu::centos/5.5/isos/i386/CentOS-5.5-i386-bin-1of7.iso . (repeat commands for discs 2 to 7) total size is 653910016 speedup is 21.96 total size is 651780096 speedup is 55.61 total size is 661088256 speedup is 33.97 total size is 649381888 speedup is 46.08 total size is 660133888 speedup is 94.81 total size is 668108800 speedup is 273.26 total size is 242888704 speedup is 58.27 Adding up the sizes divided by the speedups, the total transfer is also about 2% of total size. Going from the DVD to the CDs is a little tedious since you have to copy a DVD-sized image 7 times; going from the CDs to the DVD it only happens once. I was also able to save about half the bandwidth using rsync to go from the 5.4 DVD to the 5.5 DVD (since many of the packages are exactly the same), so it should help going from 5.5 to 5.6. It probably won't help going from 5.X to 6, since almost all the packages will have changed. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] keychain problem
On 16/01/2011, at 5:22 AM, bluethundr wrote: hello centos.. I am having a very annoying problem on my network right now. it looks like every time I try to add my ssh key to keychain I have to issue a command just to get my ssh subsystem communicating with the ssh-agent: I have this line in my .bashrc file $(keychain --eval --quick --quiet private_key1 private_key2 private_key3) Should not this go into your ~/.bash_profile? (disclaimer: I've not used the 'keychain' program before) If I try to perform ssh-add I get the message: [bluethundr@VIRTCENT01:~]#ssh-add Could not open a connection to your authentication agent. So then I try to execute ssh-agent: bluethundr@amanda:~]#exec ssh-agent bash * Warning: can't find private_key1; skipping * Warning: can't find private_key2; skipping * Warning: can't find private_key3; skipping bash: SSH_AUTH_SOCK=/tmp/ssh-cdJlgq6077/agent.6077;: No such file or directory if SSH_AUTH_SOCK is not present, or ssh-agent is not running, then you would need to figure out where it should be started. (In your case, if it is not running, try removing the --quiet option to keychain or adding verbosity to see if it is or isn't starting the agent for you.) Typically, you only want this enabled on your workstation, and use SSH Agent Forwarding to access other machines recursively. The agent should typically be started for you on your workstation (you don't say if you're using a graphical environment on your workstation: most would start ssh-agent for you when you log in.) (Note that you shouldn't start ssh-agent in your ~/.bashrc or similar, you can easily get infinitely recursive behaviour) Then I can add it. [bluethundr@amanda:~]#ssh-add Enter passphrase for /home/bluethundr/.ssh/id_rsa: Identity added: /home/bluethundr/.ssh/id_rsa (/home/bluethundr/.ssh/id_rsa) But if I ssh away from this box and then ssh back INTO it.. and then sometime later have to ssh away again it asks me for my ssh key's passphrase. See what I mean by 'annoying problem'? You want to use the SSH Agent Forwarding feature (ssh -A ...). If you don't, then you would have to 'exec ssh-agent bash' followed by 'ssh-add ...' prior to starting a recursive session. Note that Agent Forwarding effectively means that you only need a keypair on your workstation, as if you log in from Workstation - Server1 - Server2, then Server2 will end up querying the key not from Server1, but from Workstation. For this to work, Agent Forwarding needs to be enabled on Server1 (which is, I think, the default behaviour, but I'm fairly new to Centos so you may like to check that). Thanks in advance for your help! -- GPG me!! gpg --keyserver pgp.mit.edu --recv-keys F186197B ___ 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] keychain problem
On 16/01/2011, at 11:56 AM, Cameron Kerr wrote: On 16/01/2011, at 5:22 AM, bluethundr wrote: I have this line in my .bashrc file $(keychain --eval --quick --quiet private_key1 private_key2 private_key3) Should not this go into your ~/.bash_profile? (disclaimer: I've not used the 'keychain' program before) According to the docs for keychain, it should look something more like the following: eval `keychain --eval --agents ssh id_dsa` The 'eval' at the start is probably more important than you think... I noted myself that the following are quite different in a bash script I was working on: $@ eval $@ (only the latter works, the former ended up not doing anything in a #!/bin/bash script) https://github.com/funtoo/keychain and http://www.funtoo.org/en/security/keychain/intro/ for more information regarding keychain. You might also like adding|| exit 1 or similar to the 'eval' call, for debugging, as shown in the docs. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] keychain problem
Hello and thanks for your reply! Well I took your advice and removed that keychain scriptlet from .bashrc and put it into .bash_profile. Not sure what the functional difference between the two would be. Perhaps you would care to elaborate? I know that rc stands for resource configuration but other than that I don't know why this statement would be more appropriate in the .bash_profile. However you do seem well versed in this and I hope you don't mind answering this question. So this is what I put into my .bash_profile $(keychain --eval --agents ssh id_rsa) and here is an ssh session from after when I did this: [bluethundr@LCENT01:~]#bash [bluethundr@LCENT01:~]#ssh-agent SSH_AUTH_SOCK=/tmp/ssh-cBwwRR5466/agent.5466; export SSH_AUTH_SOCK; SSH_AGENT_PID=5467; export SSH_AGENT_PID; echo Agent pid 5467; [bluethundr@LCENT01:~]#ssh-add Could not open a connection to your authentication agent. [bluethundr@LCENT01:~]#exec ssh-agent bash [bluethundr@LCENT01:~]#ssh-add Enter passphrase for /home/bluethundr/.ssh/id_rsa: Identity added: /home/bluethundr/.ssh/id_rsa (/home/bluethundr/.ssh/id_rsa) So this behavior did not change. I still have to enter my passphrase again after I put this into my .bash_profile [bluethundr@LCENT01:~]#ssh virt1 Last login: Sat Jan 15 11:51:08 2011 from 192.168.1.42 # # SUMMITNJHOME.COM# # TITLE: LB1 BOX# # HOST:VIRTCENT01 # # LOCATION:SUMMIT BASEMENT# # * keychain 2.7.0 ~ http://www.funtoo.org * Found existing ssh-agent: 27556 * Adding 1 ssh key(s): /home/bluethundr/.ssh/id_rsa Enter passphrase for /home/bluethundr/.ssh/id_rsa: Bad passphrase, try again for /home/bluethundr/.ssh/id_rsa: * ssh-add: Identities added: /home/bluethundr/.ssh/id_rsa This is new.. now I get prompted for the passphrase AGAIN once I reach the server I am ssh'ing in to. I should point out that I am operating from a shared NFS mounted home directory. -bash: SSH_AUTH_SOCK=/tmp/ssh-Tqzln27555/agent.27555;: No such file or directory [bluethundr@VIRTCENT01:~]#ssh virt2 ssh: connect to host virt2 port 22: No route to host [bluethundr@VIRTCENT01:~]#ssh sum2 Enter passphrase for key '/home/bluethundr/.ssh/id_rsa': Enter passphrase for key '/home/bluethundr/.ssh/id_rsa': Last login: Sat Jan 15 10:54:51 2011 from 192.168.1.50 # # SUMMITNJHOME.COM# # TITLE: SUM2 BOX # # HOST:LCENT02# # LOCATION:SUMMIT BASEMENT# # * keychain 2.7.0 ~ http://www.funtoo.org * Starting ssh-agent... * Adding 1 ssh key(s): /home/bluethundr/.ssh/id_rsa Enter passphrase for /home/bluethundr/.ssh/id_rsa: * ssh-add: Identities added: /home/bluethundr/.ssh/id_rsa -bash: SSH_AUTH_SOCK=/tmp/ssh-JGlcJj6111/agent.6111;: No such file or directory Well it seems that I am still trying to figure this situation out. If you have any further insight into what may be going on here I would certainly appreciate your input. On Sat, Jan 15, 2011 at 6:15 PM, Cameron Kerr came...@humbledown.org wrote: On 16/01/2011, at 11:56 AM, Cameron Kerr wrote: On 16/01/2011, at 5:22 AM, bluethundr wrote: I have this line in my .bashrc file $(keychain --eval --quick --quiet private_key1 private_key2 private_key3) Should not this go into your ~/.bash_profile? (disclaimer: I've not used the 'keychain' program before) According to the docs for keychain, it should look something more like the following: eval `keychain --eval --agents ssh id_dsa` The 'eval' at the start is probably more important than you think... I noted myself that the following are quite different in a bash script I was working on: $@ eval $@ (only the latter works, the former ended up not doing anything in a #!/bin/bash script) https://github.com/funtoo/keychain and http://www.funtoo.org/en/security/keychain/intro/ for more information regarding keychain. You might also like adding || exit 1 or similar to the 'eval' call, for debugging, as shown in the docs. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos -- GPG me!! gpg --keyserver pgp.mit.edu --recv-keys F186197B ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] parsing an e-mail with perl
On Wed, 2011-01-12 at 21:36 -0500, Nicolas Ross wrote: I need to be able to pull off attachments from e-mails on the fly and then demime them and print them. I have been studying MIME::Tools but was hoping someone could point me to a script example of something I could use. Here's a little sniplet from a perl script I have to filter some attachement from mail : use MIME::Tools; use MIME::Parser; use MIME::Decoder::QuotedPrint; use MIME::Decoder::Base64; use MIME::Decoder::Binary; use MIME::Decoder::Gzip64; use MIME::Decoder::NBit; use MIME::Decoder::UU; use MIME::Words qw(:all); my $parser = new MIME::Parser; $parser-output_to_core(0); $parser-extract_nested_messages(0); $parser-tmp_to_core(1); $parser-tmp_recycling(1); $parser-use_inner_files(0); $parser-filer-ignore_filename(1); my @message = STDIN; my $entity = $parser-parse_data(\@message); foreach my $part ($_[0]-parts) { print $part-mime_type(); } Thaere are other functins to the part object, my script simply pushes the part into a new array depending of the mime_type.. Nicolas, Thanks for your help. I tried using it in the form of cat mailfile.txt | /usr/local/bin/s.mime.002.pr and received the below error message. Can't locate object method tmp_recycling via package MIME::Parser at /usr/local/bin/s.mime.002.prl line 17. I have perl-MIME-tools-5.420-2.el5.rf.noarch installed. Any ideas? Greg ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Network bandwidth tools.
Hi All, I am wondering what tools are available in CentOS 5.5 that would allow me to measure incoming and outgoing network speeds? My new website seems to be getting a lot more traffic that I had anticipated off the bat and I would like to measure resource usage to ensure it is keeping up. I know that top only measures CPU Best, -Jason ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] keychain problem
On 16/01/2011, at 2:12 PM, bluethundr wrote: Hello and thanks for your reply! Well I took your advice and removed that keychain scriptlet from .bashrc and put it into .bash_profile. Not sure what the functional difference between the two would be. Perhaps you would care to elaborate? I know that rc stands for resource configuration but other than that I don't know why this statement would be more appropriate in the .bash_profile. However you do seem well versed in this and I hope you don't mind answering this question. .bash_profile is executed for login shells (followed by .bashrc). .bashrc is executed for non-login shells as well. .bash_profile should therefore be used for session setup tasks. So this is what I put into my .bash_profile $(keychain --eval --agents ssh id_rsa) and here is an ssh session from after when I did this: [bluethundr@LCENT01:~]#bash [bluethundr@LCENT01:~]#ssh-agent SSH_AUTH_SOCK=/tmp/ssh-cBwwRR5466/agent.5466; export SSH_AUTH_SOCK; SSH_AGENT_PID=5467; export SSH_AGENT_PID; Here you are not actually starting the ssh-agent in the background (which explains why it is outputting environment variables). You should give it a second parameter to tell it which program to launch. ssh-agent bash However, this will cause the parent shell to become redundant, so you want to instead replace it with the shell that ssh-agent starts (that shell has the environment variables set appropriately). exec ssh-agent bash Now when you use ssh-add, it should be able to see the agent. echo Agent pid 5467; [bluethundr@LCENT01:~]#ssh-add Could not open a connection to your authentication agent. [bluethundr@LCENT01:~]#exec ssh-agent bash [bluethundr@LCENT01:~]#ssh-add Enter passphrase for /home/bluethundr/.ssh/id_rsa: Identity added: /home/bluethundr/.ssh/id_rsa (/home/bluethundr/.ssh/id_rsa) So this behavior did not change. I still have to enter my passphrase again after I put this into my .bash_profile Of course. The passphrase is important because it encrypts the private key. This, presumably, is why you are using the 'keychain' program, which is typically used to have a key unlocked manually by a system administrator (eg. after boot), so that cron jobs, etc, can access it. [bluethundr@LCENT01:~]#ssh virt1 Last login: Sat Jan 15 11:51:08 2011 from 192.168.1.42 # # SUMMITNJHOME.COM# # TITLE: LB1 BOX# # HOST:VIRTCENT01 # # LOCATION:SUMMIT BASEMENT# # * keychain 2.7.0 ~ http://www.funtoo.org * Found existing ssh-agent: 27556 * Adding 1 ssh key(s): /home/bluethundr/.ssh/id_rsa Enter passphrase for /home/bluethundr/.ssh/id_rsa: Bad passphrase, try again for /home/bluethundr/.ssh/id_rsa: * ssh-add: Identities added: /home/bluethundr/.ssh/id_rsa This is new.. now I get prompted for the passphrase AGAIN once I reach the server I am ssh'ing in to. This is why ssh-add (and presumably also 'keychain'), should NOT be included in your ~/.bash_profile or ~/.bashrc (or similar). SSH Agent Forwarding is the correct way to approach this problem: it generally increases system security (keys become easier to manage) and reduces user support requirements. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] keychain problem
That's a great clarification for which I cannot thank you enough. I will look up SSH Agent Forwarding and start getting the hang of it. The centos list is a tremendous help for situations like these! :) On Sun, Jan 16, 2011 at 12:22 AM, Cameron Kerr came...@humbledown.org wrote: On 16/01/2011, at 2:12 PM, bluethundr wrote: Hello and thanks for your reply! Well I took your advice and removed that keychain scriptlet from .bashrc and put it into .bash_profile. Not sure what the functional difference between the two would be. Perhaps you would care to elaborate? I know that rc stands for resource configuration but other than that I don't know why this statement would be more appropriate in the .bash_profile. However you do seem well versed in this and I hope you don't mind answering this question. .bash_profile is executed for login shells (followed by .bashrc). .bashrc is executed for non-login shells as well. .bash_profile should therefore be used for session setup tasks. So this is what I put into my .bash_profile $(keychain --eval --agents ssh id_rsa) and here is an ssh session from after when I did this: [bluethundr@LCENT01:~]#bash [bluethundr@LCENT01:~]#ssh-agent SSH_AUTH_SOCK=/tmp/ssh-cBwwRR5466/agent.5466; export SSH_AUTH_SOCK; SSH_AGENT_PID=5467; export SSH_AGENT_PID; Here you are not actually starting the ssh-agent in the background (which explains why it is outputting environment variables). You should give it a second parameter to tell it which program to launch. ssh-agent bash However, this will cause the parent shell to become redundant, so you want to instead replace it with the shell that ssh-agent starts (that shell has the environment variables set appropriately). exec ssh-agent bash Now when you use ssh-add, it should be able to see the agent. echo Agent pid 5467; [bluethundr@LCENT01:~]#ssh-add Could not open a connection to your authentication agent. [bluethundr@LCENT01:~]#exec ssh-agent bash [bluethundr@LCENT01:~]#ssh-add Enter passphrase for /home/bluethundr/.ssh/id_rsa: Identity added: /home/bluethundr/.ssh/id_rsa (/home/bluethundr/.ssh/id_rsa) So this behavior did not change. I still have to enter my passphrase again after I put this into my .bash_profile Of course. The passphrase is important because it encrypts the private key. This, presumably, is why you are using the 'keychain' program, which is typically used to have a key unlocked manually by a system administrator (eg. after boot), so that cron jobs, etc, can access it. [bluethundr@LCENT01:~]#ssh virt1 Last login: Sat Jan 15 11:51:08 2011 from 192.168.1.42 # # SUMMITNJHOME.COM # # TITLE: LB1 BOX # # HOST: VIRTCENT01 # # LOCATION: SUMMIT BASEMENT # # * keychain 2.7.0 ~ http://www.funtoo.org * Found existing ssh-agent: 27556 * Adding 1 ssh key(s): /home/bluethundr/.ssh/id_rsa Enter passphrase for /home/bluethundr/.ssh/id_rsa: Bad passphrase, try again for /home/bluethundr/.ssh/id_rsa: * ssh-add: Identities added: /home/bluethundr/.ssh/id_rsa This is new.. now I get prompted for the passphrase AGAIN once I reach the server I am ssh'ing in to. This is why ssh-add (and presumably also 'keychain'), should NOT be included in your ~/.bash_profile or ~/.bashrc (or similar). SSH Agent Forwarding is the correct way to approach this problem: it generally increases system security (keys become easier to manage) and reduces user support requirements. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos -- GPG me!! gpg --keyserver pgp.mit.edu --recv-keys F186197B ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Network bandwidth tools.
It all depends on your requirements: - what sort of questions would you like your solution to be able to answer? (can you give us a few?) - what monitoring infrastructure do you already have? (SNMP, for example, could be rather useful here) - how much level of ad-hoc reporting do you require? - you mentioned incoming and outgoing network speeds, which doesn't necessarily refer to any web-specific analysis; is this what you meant? Plenty of tools out there: ntop may be a good starting point. http://www.cyberciti.biz/faq/howto-install-ntop-on-rhel-centos-fedora-linux/ Netflow and SNMP would be my first points of call if I wanted something more infrastructural. For ad-hoc use of TCP sessions, with a top-like experience, I would just break out tcptrack (there are RPMs available, but doesn't appear to be a Centos package) On 16/01/2011, at 6:08 PM, Jason S-M wrote: Hi All, I am wondering what tools are available in CentOS 5.5 that would allow me to measure incoming and outgoing network speeds? My new website seems to be getting a lot more traffic that I had anticipated off the bat and I would like to measure resource usage to ensure it is keeping up. I know that top only measures CPU Best, -Jason ___ 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