[CentOS] CentOS: Install Packages Via yum Command Using DVD / CD as Repo
I'm confused about this. Is this supposed to work without me mounting my CD/DVD? If you are supposed to mount it, what path should you use to make this work? http://www.cyberciti.biz/faq/centos-linux-install-packages-from-dvd-using-yum/ === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] ntfs-3g
I'm looking for ntfs-3g. I'm getting lots of hits through google, but I'm suspicious of some of the sites. The one rpm I downloaded from rpmfind wouldn't install because of some missing library. Where's a good place to get the tarball? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Manual Yum Updates -- No connectivity to Outside Yum Server
I want to update a CentOS 6.x install. But it's located behind a firewall with no connectivity to the external internet. What are my options? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not Quite Minimal CentOS 6.2
You're right. The stack was there. First, I was inaccurate when I said I installed 6.2. I actually installed 6.0, and later updated via yum. Second, yeah I was able to start the network service, so there was a stack. All I'd get would be the loopback or lo interface, but it was there. But going into /etc/sysconfig/network-scripts was a pain because there was no ifcfg-eth0 file I could play with. That's when I gave up and re-installed, but added more stuff beyond base just to be sure. As for not configuring the network during the install process, I was pretty sure I had. For some reason it didn't take. Maybe I didn't click a save box when I should have. I don't know. === Al From: Johnny Hughes joh...@centos.org To: centos@centos.org Sent: Tuesday, April 24, 2012 6:04 PM Subject: Re: [CentOS] Not Quite Minimal CentOS 6.2 On 04/24/2012 08:53 PM, Al Sparks wrote: I recently did a minimal 6.2 install recently, and it was annoying that it didn't include the network stack. What use is an install w/o the network? It has the network stack ... you must configure it during the install. If you do not configure and enable the ethernet card then it does not turn on by default ... but it is in the installer to be able to do: http://wiki.centos.org/FAQ/CentOS6#head-b67e85d98f0e9f1b599358105c551632c6ff7c90 ___ 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] Not Quite Minimal CentOS 6.2
I recently did a minimal 6.2 install recently, and it was annoying that it didn't include the network stack. What use is an install w/o the network? === Al From: Bob Hoffman b...@bobhoffman.com To: CentOS mailing list centos@centos.org Sent: Tuesday, April 24, 2012 5:18 PM Subject: Re: [CentOS] Not Quite Minimal CentOS 6.2 On 4/24/2012 7:22 PM, listmail wrote: I a working on configuring a not-quite minimal installation of CentOS 6.2. I tried doing the minimal installation available with the installer, but it's a bit too minimal to be useful. So I'm cutting down from a less minimal starting place. I'm pretty familiar with 5.x, but what I'm finding in 6.2 is a lot of new stuff, and a lot of odd behavior. For example, cups is starting at boot time, despite being disabled by chkconfig. And I'm finding things like qpidd, matahari, messagebus, and portreserve that really don't belong in a minimal setup. To clarify, I'm shooting for a simple config, like one would use for a dedicated DNS server. Can anyone point me to an up-to-date list of daemon processes that indicates what they do and whether they can be safely disabled? Also, any ideas as to what would be launching cups would be appreciated. I did a 'basic server' for my dns and then did this for cleaning up... yum install yum-cron logwatch bind bind-chroot yum-cron remove packages yum remove samba-winbind-clients qpid-cpp-client matahari* cups the two clients will get rid of a lot. chkconfig atd off chkconfig autofs off chkconfig kdump off chkconfig netfs off chkconfig nfslock off chkconfig rpcidmapd off chkconfig rpcgssd off chkconfig rpcbind off I left the rest on but that pretty much did it for me.. here is my chkconfig list, off and on /root$ chkconfig --list |grep 3:on abrt-ccpp 0:off 1:off 2:off 3:on 4:off 5:on 6:off abrt-oops 0:off 1:off 2:off 3:on 4:off 5:on 6:off abrtd 0:off 1:off 2:off 3:on 4:off 5:on 6:off acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off auditd 0:off 1:off 2:on 3:on 4:on 5:on 6:off cpuspeed 0:off 1:on 2:on 3:on 4:on 5:on 6:off crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off ip6tables 0:off 1:off 2:on 3:on 4:on 5:on 6:off iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off irqbalance 0:off 1:off 2:off 3:on 4:on 5:on 6:off lvm2-monitor 0:off 1:on 2:on 3:on 4:on 5:on 6:off mcelogd 0:off 1:off 2:off 3:on 4:off 5:on 6:off mdmonitor 0:off 1:off 2:on 3:on 4:on 5:on 6:off messagebus 0:off 1:off 2:on 3:on 4:on 5:on 6:off named 0:off 1:off 2:on 3:on 4:on 5:on 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off ntpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off portreserve 0:off 1:off 2:on 3:on 4:on 5:on 6:off postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off sysstat 0:off 1:on 2:on 3:on 4:on 5:on 6:off udev-post 0:off 1:on 2:on 3:on 4:on 5:on 6:off yum-cron 0:off 1:off 2:on 3:on 4:on 5:on 6:off /root$ chkconfig --list |grep 3:off atd 0:off 1:off 2:off 3:off 4:off 5:off 6:off autofs 0:off 1:off 2:off 3:off 4:off 5:off 6:off certmonger 0:off 1:off 2:off 3:off 4:off 5:off 6:off cgconfig 0:off 1:off 2:off 3:off 4:off 5:off 6:off cgred 0:off 1:off 2:off 3:off 4:off 5:off 6:off kdump 0:off 1:off 2:off 3:off 4:off 5:off 6:off netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off netfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off nfslock 0:off 1:off 2:off 3:off 4:off 5:off 6:off ntpdate 0:off 1:off 2:off 3:off 4:off 5:off 6:off oddjobd 0:off 1:off 2:off 3:off 4:off 5:off 6:off psacct 0:off 1:off 2:off 3:off 4:off 5:off 6:off quota_nld 0:off 1:off 2:off 3:off 4:off 5:off 6:off rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off restorecond 0:off 1:off 2:off 3:off
Re: [CentOS] A request from the CentOS Project
From: m.r...@5-cent.us m.r...@5-cent.us To: CentOS mailing list centos@centos.org Cc: Sent: Friday, April 20, 2012 7:49 AM Subject: Re: [CentOS] A request from the CentOS Project Bob Hoffman wrote: On 4/20/2012 11:12 AM, Tilman Schmidt wrote: Am 20.04.2012 16:02, schrieb m.r...@5-cent.us: mark why, yes, I *do* remember Kantor Siegal, and the aftermath to them Don't get me started. Ah, the good old pre-spam days! I was not working for a computer company, but I finally got online in 93 through various things like prodigy, aol, compuserv, etc. I do remember a fateful day when I was in aol, back when it was $4 an hour and there was a chat room called 'spam' I thought it was rather odd that a group of people would be discussing an old monty python skit and jumped in. After a few minutes it was obvious they were not talking about monty python. even then, they were there figuring out how to spam spam spam. not all of us were lucky enough to be working main frames in the 80s for the usenet dang it. M'frame here. PC's in the mid-eighties, then back to m'frames, pc, *finally* got to Unix in '91, which was when I got on the 'Net, late that year. My late wife was on a couple years before, and a friend who was at UP in the mid-eighties talked about it. Usenet is, of course, still alive, though a lot of folks know it as google groups My first usenet browser was rn. I first started posting in the early 90's from a University account. I also had access to BITNET mailing lists, and the name LISTSERV might have come from there. Since BITNET access was limited the discussions there were mostly tamer. === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Using eth0 on desktops with single network interface
From: m.r...@5-cent.us m.r...@5-cent.us To: CentOS mailing list centos@centos.org Sent: Thursday, April 19, 2012 11:24 AM Subject: Re: [CentOS] Using eth0 on desktops with single network interface Scott Robbins wrote: On Thu, Apr 19, 2012 at 01:22:49PM -0400, Alfred von Campe wrote: On Apr 19, 2012, at 11:25, Scott Robbins wrote: http://fedoraproject.org/wiki/Talk:Features/ConsistentNetworkDeviceNaming Removing the biosdevname RPM sounds promising, and I'll test it with a kickstart install this afternoon. However, what's the best way to fix existing systems? If I just remove the biosdevname RPM and reboot, I don't think that eth0 will come up, as there is no ifcfg-eth0 script. Do I have to rename the ifcfg-em1 script and fix the DEVICE name inside the file? Or is there a way to regenerate the ifcfg-eth0 file from the command line? What I do is this for an existing one. I change /etc/sysconfig/network-scripts/ifcfg-whatever to ifcfg-eth0 (or whatever it might be, e.g., eth0 and eth1). Then, in the file itself, I edit the necessary line. (I think it's just one line, I don't have one here to look at, but IIRC, it's just the one line that uses pc1p1 or em1 or whatever, and I change that to, for example, eth0). The other lines in the file should be fine--the ones referring to hardware address, IP, and so on. As mentioned, I rename the file. One then removes the biosdevname package. I've never gotten it working without a reboot--service network restart doesn't work for me--on the other hand, I think I've only run into it with Fedora so far. And with all of that, do *not* forget to edit /etc/udev/rules.d/70-persistent-net.rules mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos This has piqued my curiosity. I haven't seen that behavior before, and I've done some recent installs of CentOS 6.0. I use yum to upgrade them to CentOS 6.2. Maybe that's why But all my interfaces are named eth*. === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] SSD as system drive - partitioning question
Well, /boot by default, is always a primary partition. CentOS (and RedHat) like to create a logical volume manager (LVM) on a separate primary partition, and typically inside the LVM one can create and modify the rest of the various partitions. You do have the flexibility to create TWO LVM's. You can place one LVM on a primary partition on the SSD, and the other on the hard drive. From within both LVM's you can create your partitions to your heart's content. Or for your SSD configuration, don't bother creating an LVM for that. You can use up to 4 primary partition per storage device (and lots of secondary partitions). So, since you only want to place two partitions total on the SSD, simply create those two primary partitions and utilize them. === Al From: Frank Cox thea...@melvilletheatre.com To: centos@centos.org Sent: Tuesday, April 17, 2012 3:40 PM Subject: [CentOS] SSD as system drive - partitioning question I mentioned here the other day that I was planning to set up a Centos 6 system using a SSD for the system drive and a regular hard drive for a data drive. My plan is to have everything that doesn't change (much) on the SSD, such as /boot, /lib, /bin and so on. I want to put /tmp and /var and /home on the regular hard drive. Now that I'm at the stage of actually setting this up I have discovered that I don't understand enough about drive partitioning to make this work the way that I want it to. Perhaps I'm missing something obvious. I could create separate partitions on the SSD for /lib, /bin and everything else that I want to put there, then put / on the hard drive, but I would really prefer to put /boot and one other partition on the SSD, and one partition on the hard drive. How can I tell the system that I want /bin and friends on the SSD and /home and /var on the hard drive, but still have just one partition on each drive (plus /boot on the SSD)? If I create / on the hard drive and /ssd on the SSD, then putting bin on the SSD would make it /ssd/bin and that would obviously not be what I want to see. -- MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com www.creekfm.com - FIFTY THOUSAND WATTS of POW WOW POWER! ___ 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] centos security
Any suggestions on what to run on a centos box to verify that the server isn't compromised or being sniffed? Thanks! ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] centos security
On Feb 18, 2012, at 9:07 PM, Donkey Hottie wrote: 19.2.2012 3:38, Al kirjoitti: Any suggestions on what to run on a centos box to verify that the server isn't compromised or being sniffed? Thanks! rkhunter comes to my mind. Thanks for the suggestion, any others? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] centos security
On Feb 18, 2012, at 9:34 PM, Les Bell wrote: Al mailingl...@theflux.net wrote: Any suggestions on what to run on a centos box to verify that the server isn't compromised or being sniffed? Thanks! For isn't compromised, you need a host integrity verification system like Tripwire or AIDE (which is in the base repo). Expect to have to tweak the config to cover the stuff you've got installed. You can detect sniffing by checking for promiscuous interfaces on the LAN - use proDETECT (http://sourceforge.net/projects/prodetect/) or a similar tool for this purpose. Alternatively, if you have the time and resources, you could run a full-blown network intrusion detection system like Snort (http://www.snort.org). Best, --- Les Bell [http://www.lesbell.com.au] Tel: +61 2 9451 1144 Les, Thanks for the suggestion, I will run through all the methods stated to me... ___ 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] vsftpd Configuration
Is there a way to configure vsftpd to limit where you can chdir to? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba + Openldap
I'm still going to stick to trying to get Samba3 and try and get openldap to work. I've got it going in my test environment with a clean install of samba and openldap. I'm currently making the modifications to a dev. version of the production ldap database to see if I can get it working with Samba3. I'm not worried about Active Directory, openldap works with our environment. Thanks for the suggestions! On Oct 25, 2011, at 11:38 AM, Adam Tauno Williams wrote: On Fri, 2011-10-21 at 12:18 +0200, Giles Coochey wrote: On Fri, October 21, 2011 12:14, Adam Tauno Williams wrote: On Tue, 2011-10-18 at 16:43 -0400, Al wrote: Anyone have an update tutorial/howto for samba to authenticate to ldap? This are lots of docs. But DO NOT DO T. A Samba 3.x DC is very very *obsolete*. The Windows world has moved on to Active Directory. If you want to do that you need Samba 4 - and no OpenLDAP. From the samba Wiki: Samba 4 is currently not yet in a state where it can replace existing production deployments. [1] [1] http://wiki.samba.org/index.php/Samba4#Current_Status That is the official story - but try it - it works *BETTER* than an NT4 Samba 3.x domain. Seriously, really. Recent Samba 4 builds *are* in production at several sites. It works. http://wiki.samba.org/index.php/Samba4/HOWTO Note that Samba 4 is best discussed on the technical list, not yet on the users list. https://lists.samba.org/mailman/listinfo/samba-technical ___ 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] Samba + Openldap
We're a linux mostly enviroment, some of the users have windows. It sounds to me, maybe I should start over instead of trying to implement it in our current openldap enviroment. We're running openldap 2.3.43 and Samba 3.x.. On Oct 21, 2011, at 6:18 AM, Giles Coochey wrote: On Fri, October 21, 2011 12:14, Adam Tauno Williams wrote: On Tue, 2011-10-18 at 16:43 -0400, Al wrote: Anyone have an update tutorial/howto for samba to authenticate to ldap? This are lots of docs. But DO NOT DO IT. A Samba 3.x DC is very very *obsolete*. The Windows world has moved on to Active Directory. If you want to do that you need Samba 4 - and no OpenLDAP. From the samba Wiki: Samba 4 is currently not yet in a state where it can replace existing production deployments. [1] [1] http://wiki.samba.org/index.php/Samba4#Current_Status ___ 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] Samba + Openldap
Openldap, I've been able to get it to work in a staging environment, I'm going to try implementing it on one of our dev servers that has the exact openldap setup as productions. It looks to me, I'll be asking more questions if I run into any road blocks, but the information everyone has been providing me on this thread has helped me a lot. Thank you! On Oct 21, 2011, at 7:29 PM, John R Pierce wrote: On 10/21/11 2:30 PM, Al wrote: We're a linux mostly enviroment, some of the users have windows. It sounds to me, maybe I should start over instead of trying to implement it in our current openldap enviroment. We're running openldap 2.3.43 and Samba 3.x.. what do the windows users authenticate with now?presumably, Samba is to provide file services to these Windows users? -- john r pierceN 37, W 122 santa cruz ca mid-left coast ___ 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] Samba + Openldap
I would just need to add those attributes in openldap? I'm not very experienced, that is why I asked for howto/tutorials... I've been building an openldap and samba environment in a staged virtual system, so I can get a better understanding on how it all works. It seems to me I would have to add additional attributes to all those users and load the samba.schema onto the master server, then go on the samba server and configure it to use ldap? I'm not so sure, I guess it'll take some time for me to figure it all out... On Oct 19, 2011, at 1:31 PM, Craig White wrote: On Oct 19, 2011, at 8:16 AM, Al wrote: This isn't what I was talking about ... Let me be a little more specific ... I've got an openldap system configured, just need to setup Samba to use openldap to allow them to access there shells via Windows Explorer. They usually login via SSH, but want to have the ability to copy things over to the Windows without using SFTP. I can't see how that actually matters because you want them to gain access to the samba server using their accounts and samba requires both a POSIX a SAMBA user and the logical place for a SAMBA user is to have their SAMBA attributes in the same LDAP record. At that point, they could easily mount a SAMBA share on their Windows box using the same account (though Windows passwords use a Windows compatible hashed password). Basically, the user account in LDAP has both POSIX SAMBA attributes including userPassword (POSIX) and sambaNTPassword (SAMBA) and group memberships that may be one or both (though I tend to create groups that are both). The easiest way to demonstrate is to use my own setup... # ldapsearch -x '(uid=craig)' -D uid=craig,ou=people,dc=azapple,dc=com -W Enter LDAP Password: # extended LDIF # # LDAPv3 # base dc=azapple,dc=com (default) with scope subtree # filter: (uid=craig) # requesting: ALL # # craig, people, azapple.com dn: uid=craig,ou=people,dc=azapple,dc=com sambaPwdMustChange: 2147483647 labeledURI: http://linuxserver/horde/kronolith/fb.php?c=craig sambaSID: S-1-5-21-1423820788-2381578139-XX-1000 calFBURL: http://srv2.azapple.com/horde/kronolith/fb.php?c=craig sambaPasswordHistory: displayName: Craig White sambaMungedDial: 1 shadowMax: 9 sambaLogonScript: logon.bat sambaProfilePath: \\SRV2\profiles\craig cn: Craig White uidNumber: 1000 shadowWarning: 7 sambaPrimaryGroupSID: 1423820788-2381578139-XX-513 sambaAcctFlags: [U ] gecos: Craig White shadowLastChange: 15199 sambaPwdLastSet: 1313206319 mail: cr...@azapple.com userPassword:: REMOVED... sambaLMPassword: REMOVED uid: craig sambaPwdCanChange: 1313206319 sambaHomePath: \\SRV2\homes\craig homeDirectory: /home/craig description: Craig is a local user objectClass: posixAccount objectClass: shadowAccount objectClass: person objectClass: inetOrgPerson objectClass: sambaSamAccount objectClass: top objectClass: calEntry gidNumber: 100 sambaDomainName: AZAPPLE givenName: Craig sambaHomeDrive: h: sambaNTPassword: REMOVED sn: White loginShell: /bin/bash # search result search: 2 result: 0 Success # numResponses: 2 # numEntries: 1 ___ 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] Samba + Openldap
Thanks for the information, I'll refer to it ... On Oct 18, 2011, at 5:56 PM, Miguel Medalha wrote: Anyone have an update tutorial/howto for samba to authenticate to ldap? http://www.samba.org/samba/docs/man/Samba-Guide/happy.html ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba + Openldap
This isn't what I was talking about ... Let me be a little more specific ... I've got an openldap system configured, just need to setup Samba to use openldap to allow them to access there shells via Windows Explorer. They usually login via SSH, but want to have the ability to copy things over to the Windows without using SFTP. On Oct 18, 2011, at 6:59 PM, Craig White wrote: On Oct 18, 2011, at 2:56 PM, Miguel Medalha wrote: Anyone have an update tutorial/howto for samba to authenticate to ldap? http://www.samba.org/samba/docs/man/Samba-Guide/happy.html indeed - that is one of the chapters from the 'By Example' to which I referred to earlier Craig ___ 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] Samba + Openldap
Anyone have an update tutorial/howto for samba to authenticate to ldap? Regards, Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Installation of 6.0
Some observations. When I installed 6.0 (base install), the installation interface did not guide me through a network configuration. I do static IP addresses, not DHCP. I ended up manually configuring the various /etc/sysconfig files. I forgot to do the GATEWAY configuration and it took me awhile to figure out why I wasn't able to connect to the server from outside the LAN. I also forgot to do the DNS settings. It's deja-vu all over again, going back to the older Red Hat Linux distros. Anyway, I wasn't able to find a configuration program like netconfig to help me out. Seems like a pretty big omission. Any thoughts? Am I missing something? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Installation of 6.0
I guess it would all depend on what ISO you are using then because I built a new system this weekend using 'CentOS-6.0-x86_64-minimal.iso' and upon reboot I never get anything for first boot. I had to edit my configuration files by hand to get the system online. NetworkManager is a POS and should be dropped. Of course this is my opinion and I stand by it. I wouldn't care. I can go back to the old way of doing things. But I have too many Windows admins that dabble in the Linux space (CentOS really) and I really don't need the whining. === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 6: ethernet ifconfig up failure
Have you tried; cd /etc/sysconfig/network-scripts/ ./ifup ifcfg-eth0 On Sep 11, 2011, at 8:21 PM, Robert Spangler wrote: On Sunday 11 September 2011 14:57, the following was written: So why is ifconfig eth0 up not connecting? Have you tried 'ifup eth0'? -- Regards Robert Linux The adventure of a lifetime. Linux User #296285 Get Counted http://linuxcounter.net/ ___ 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] Patching openssl rpms
Here's the full output in a text file. === Al - Original Message From: Al Sparks data...@yahoo.com To: Centos List centos@centos.org Sent: Thu, September 30, 2010 5:14:51 PM Subject: [CentOS] Patching openssl rpms Running CentOS release 5.5. I'm trying to update or patch an SRPMS file, specifically openssl-0.9.8e-12.el5_4.6.src.rpm. Basically, I'm trying to change one line in the source, in ssl/ssl.h. I create a diff –u file called openssl-ssl-h.patch. I then edit the openssl.spec file, and add 2 lines to that in the appropriate place: Patch88: openssl-ssl-h.patch And %patch88 -p1 I then do rpmbuild -ba openssl.spec and the last lines of output are: Patch #87 (openssl-fips-0.9.8e-cve-2009-3245.patch): + patch -p1 -b --suffix .wexpand -s + echo 'Patch #88 (openssl-ssl-h.patch):' Patch #88 (openssl-ssl-h.patch): + patch -p1 -s 1 out of 1 hunk FAILED -- saving rejects to file ssl/ssl.h.rej error: Bad exit status from /var/tmp/rpm-tmp.52066 (%prep) The ssl.h.rej file has: *** *** 497,503 /* SSL_OP_ALL: various bug workarounds that should be rather harmless. * This used to be 0x000FL before 0.9.7. */ - #define SSL_OP_ALL0x0FFFL /* DTLS options */ #define SSL_OP_NO_QUERY_MTU 0x1000L --- 497,503 /* SSL_OP_ALL: various bug workarounds that should be rather harmless. * This used to be 0x000FL before 0.9.7. */ + #define SSL_OP_ALL (0x0FFFL^SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG) /* DTLS options */ #define SSL_OP_NO_QUERY_MTU 0x1000L How do I go about troubleshooting this? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos patch-output Description: Binary data ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Patching openssl rpms
Running CentOS release 5.5. I'm trying to update or patch an SRPMS file, specifically openssl-0.9.8e-12.el5_4.6.src.rpm. Basically, I'm trying to change one line in the source, in ssl/ssl.h. I create a diff –u file called openssl-ssl-h.patch. I then edit the openssl.spec file, and add 2 lines to that in the appropriate place: Patch88: openssl-ssl-h.patch And %patch88 -p1 I then do rpmbuild -ba openssl.spec and the last lines of output are: Patch #87 (openssl-fips-0.9.8e-cve-2009-3245.patch): + patch -p1 -b --suffix .wexpand -s + echo 'Patch #88 (openssl-ssl-h.patch):' Patch #88 (openssl-ssl-h.patch): + patch -p1 -s 1 out of 1 hunk FAILED -- saving rejects to file ssl/ssl.h.rej error: Bad exit status from /var/tmp/rpm-tmp.52066 (%prep) The ssl.h.rej file has: *** *** 497,503 /* SSL_OP_ALL: various bug workarounds that should be rather harmless. * This used to be 0x000FL before 0.9.7. */ - #define SSL_OP_ALL0x0FFFL /* DTLS options */ #define SSL_OP_NO_QUERY_MTU 0x1000L --- 497,503 /* SSL_OP_ALL: various bug workarounds that should be rather harmless. * This used to be 0x000FL before 0.9.7. */ + #define SSL_OP_ALL (0x0FFFL^SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG) /* DTLS options */ #define SSL_OP_NO_QUERY_MTU 0x1000L How do I go about troubleshooting this? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Recompiling CentOS's stock openssl
I'm running CentOS release 4.8. For security reasons, I have to modify openssl's ssl.h in /usr/include/openssl/. That's easy. But for the new settings to take effect, I have to recompile openssl. I do have openssl-devel installed. How do I recompile? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Installing additional software from CD
I installed CentOS w/o Gnome, or X-Windows. I'd like to install that stuff from the CD. I don't want to try and install individual RPM's. What can I run off the CD that allows me to use the standard package manager (or whatever it's called)? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Installing additional software from CD
Maybe the right direction. So does this assume that the DVD is mounted at /mnt/cdrom? What does c5-media mean? === Al - Original Message From: nate cen...@linuxpowered.net To: centos@centos.org Sent: Sat, March 13, 2010 12:44:50 AM Subject: Re: [CentOS] Installing additional software from CD Al Sparks wrote: I installed CentOS w/o Gnome, or X-Windows. I'd like to install that stuff from the CD. I don't want to try and install individual RPM's. What can I run off the CD that allows me to use the standard package manager (or whatever it's called)? from /etc/yum.repos.d/CentOS-Media.repo # CentOS-Media.repo # # This repo is used to mount the default locations for a CDROM / DVD on # CentOS-5. You can use this repo and yum to install items directly off the # DVD ISO that we release. # # To use this repo, put in your DVD and use it with the other repos too: # yum --enablerepo=c5-media [command] # # or for ONLY the media repo, do this: # # yum --disablerepo=\* --enablerepo=c5-media [command] ___ 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-es] Respaldar uns servidor web con SSH y SCP
hola amigos No esta entre los temas que estan tratando, pero necsito ayuda tengo problemas con mi correo hay correos que me llegan otros no, ya me ha ocasionado varios problemas. Con que lineas de comnados puedo revisa que sucede mi Servidor de correos es Centos 5 att. Elsa Date: Mon, 8 Feb 2010 16:17:00 -0400 From: bortol...@gmail.com To: centos-es@centos.org Subject: Re: [CentOS-es] Respaldar uns servidor web con SSH y SCP tu solución es utilizar rsync con autenticación llave privada/pública. http://es.wikipedia.org/wiki/Rsync http://www.vicente-navarro.com/blog/2008/01/13/backups-con-rsync/ http://www.vicente-navarro.com/blog/2008/01/13/autentificacion-trasparente-por-clave-publicaprivada-con-openssh/ 2010/2/8 Walvis AM walvi...@gmail.com Hola amigos, necesito nuestra ayuda nuevamente Necesito saber que comando debo usar para respaldar un servidor Web usando SSH y SCP? me ayudan con la línea de comandos y una explicación para pode entender. gracias salu2 -- Ing. Walvis Acosta Dpto. Técnico IQ-Tech Telef: (02) 2594943 ___ CentOS-es mailing list CentOS-es@centos.org http://lists.centos.org/mailman/listinfo/centos-es -- Saludos, Carlos Bortolini Acurumo Cel +591 766-69617 Email: bortol...@gmail.com Santa Cruz - Bolivia _ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+worldmkt=en-USform=QBRE___ CentOS-es mailing list CentOS-es@centos.org http://lists.centos.org/mailman/listinfo/centos-es
[CentOS] Tripwire Question
I'm trying to run tripwire on a RHEL 5.4 box. I'm new to it. I'm getting errors: The object: /ora is on a different file system...ignoring. For one thing, it's not a different file system. It's not any different than the root partition, that tripwire will monitor. And I want tripwire to monitor it. I've been googling around, and have seen this error in all sorts of places, but with either no comment or, if a question is specifically asked about this, no answer to the question. Anyone out there know what the work around for this might be? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Tripwire Question
Here's partial output. The command I ran with strace was: strace /usr/loca/bin/tripwire -m i This initializes the tripwire database. I include what I think is the relevant output here: lstat(/ora, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 write(1, The object: \/ora\ is on a diffe..., 61) = 61 lstat(/selinux, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open(/selinux, O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 getdents(4, /* 2 entries */, 32768) = 48 getdents(4, /* 0 entries */, 32768) = 0 close(4)= 0 lstat(/srv, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open(/srv, O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 getdents(4, /* 2 entries */, 32768) = 48 getdents(4, /* 0 entries */, 32768) = 0 close(4)= 0 I looked at the lstat man page, and there is a blurb on how it treats symbolic links as individual files. But /ora isn't a symbolic link. === Al - Original Message From: Corey Chandler li...@sequestered.net To: CentOS mailing list centos@centos.org Sent: Wed, November 4, 2009 10:06:58 AM Subject: Re: [CentOS] Tripwire Question Al Sparks wrote: I'm trying to run tripwire on a RHEL 5.4 box. I'm new to it. RHEL != CentOS. That said, what happens when you strace tripwire? -- Corey / KB1JWQ ___ 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] Tripwire Question
Al Sparks wrote: Here's partial output. The command I ran with strace was: strace /usr/loca/bin/tripwire -m i My apologies if this sounds like I'm doubting you, but can you paste the contents of /etc/mtab for me? -- Corey / KB1JWQ /dev/mapper/VolGroup00-LogVol00 / ext3 rw 0 0 proc /proc proc rw 0 0 sysfs /sys sysfs rw 0 0 devpts /dev/pts devpts rw,gid=5,mode=620 0 0 /dev/mapper/VolGroup00-LogVol02 /usr ext3 rw 0 0 /dev/mapper/VolGroup00-LogVol04 /var ext3 rw 0 0 /dev/mapper/VolGroup00-LogVol06 /ora ext3 rw 0 0 /dev/mapper/VolGroup00-LogVol01 /home ext3 rw 0 0 /dev/mapper/VolGroup00-LogVol03 /tmp ext3 rw 0 0 /dev/mapper/VolGroup00-LogVol05 /opt ext3 rw 0 0 /dev/sda1 /boot ext3 rw 0 0 tmpfs /dev/shm tmpfs rw 0 0 none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0 sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0 === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] What's the configure specs for the generic Apache install of CentOS x86_64 5.3?
I'm trying to install apache 2.2.x from a tarball. And it works. But I'm also trying to install modsecure, and I can't get that to work. It might help to know what CentOS uses to install Apache when doing the ./configure. === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] What's the configure specs for the generic Apache install of CentOS x86_64 5.3?
Option 1 doesn't work on a new CentOS install of the web server. I did have to use http://localhost to get the standard CentOS web page up. I went through the /var/www/html directory, and there was nothing there. So I don't know where they put them. Adding the server-info to the URL gives me 404. Option 2 gives me: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.bluehost.com * updates: mirror.unl.edu * addons: mirror.unl.edu * extras: www.cyberuse.com No source RPM found for httpd-2.2.3-22.el5.centos.x86_64 No source RPM found for httpd-2.2.3-22.el5.centos.1.x86_64 No source RPM found for httpd-2.2.3-22.el5.centos.2.x86_64 Nothing to download === Al - Original Message From: Kwan Lowe kwan.l...@gmail.com To: CentOS mailing list centos@centos.org Sent: Monday, July 27, 2009 1:26:07 PM Subject: Re: [CentOS] What's the configure specs for the generic Apache install of CentOS x86_64 5.3? On Mon, Jul 27, 2009 at 5:09 PM, Al Sparksdata...@yahoo.com wrote: I'm trying to install apache 2.2.x from a tarball. And it works. But I'm also trying to install modsecure, and I can't get that to work. It might help to know what CentOS uses to install Apache when doing the ./configure. There are a couple approaches that may work: 1) Browse to http://your.server.name/server-info If you haven't disabled it, it will show the server configuration. 2) Grab the sources and check it directly: yumdownloader --source httpd rpm -ivh http-.src.rpm cd /YOURRPMBUILDDIR/SPECS look at the httpd.spec file in the configure section ___ 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] What's the configure specs for the generic Apache install of CentOS x86_64 5.3?
Perhaps I can use that to determine what ./configure options to use when compiling, but really, I don't see any differences in the two except some directory paths, and APR version (the CentOS version uses APR 1.3.0 and my version uses APR 1.2.7). I actually did look into specifying --with-apr=PATH prefix for installed APR or the full path to apr-config --with-apr-util=PATHprefix for installed APU or the full path to I'll give it a try. === Al - Original Message From: Kwan Lowe kwan.l...@gmail.com To: CentOS mailing list centos@centos.org Sent: Monday, July 27, 2009 1:28:45 PM Subject: Re: [CentOS] What's the configure specs for the generic Apache install of CentOS x86_64 5.3? On Mon, Jul 27, 2009 at 5:09 PM, Al Sparksdata...@yahoo.com wrote: I'm trying to install apache 2.2.x from a tarball. And it works. But I'm also trying to install modsecure, and I can't get that to work. It might help to know what CentOS uses to install Apache when doing the ./configure. Oh.. and another option: /usr/sbin/httpd -V That will show the compiled options.. :) ___ 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] Local Host Routing
I have, a machine running RHEL ES 4.7 with 2 physical interfaces. eth0 Link encap:Ethernet HWaddr 00:14:22:1C:B4:EA inet addr:10.7.13.61 Bcast:10.7.13.255 Mask:255.255.255.0 inet6 addr: fe80::214:22ff:fe1c:b4ea/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:590936429 errors:0 dropped:0 overruns:0 frame:0 TX packets:590246457 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:361946964 (345.1 MiB) TX bytes:3358327885 (3.1 GiB) eth1 Link encap:Ethernet HWaddr 00:14:22:1C:B4:EB inet addr:10.254.214.16 Bcast:10.254.214.255 Mask:255.255.255.0 inet6 addr: fe80::214:22ff:fe1c:b4eb/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:423509 errors:0 dropped:0 overruns:0 frame:0 TX packets:19440 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:35948215 (34.2 MiB) TX bytes:2850651 (2.7 MiB) loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:115612666 errors:0 dropped:0 overruns:0 frame:0 TX packets:115612666 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:96931918 (92.4 MiB) TX bytes:96931918 (92.4 MiB) By default both interfaces route through the default gateway. $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 10.7.13.0 0.0.0.0 255.255.255.0 U 0 00 eth0 10.254.214.00.0.0.0 255.255.255.0 U 0 00 eth1 0.0.0.0 10.7.13.1 0.0.0.0 UG0 00 eth0 The LAN, 10.254.214.0/24 that eth1 is a part of, is configured to not route at all. (Actually it's a VLAN, if that's germane). However, when I remove the route entry with: # route del -net 10.254.214.0 netmask 255.255.255.0 I lose connectivity with the nodes on the LAN. When I do an $ nmap -sP 10.254.214.0/24 the only thing that shows up is Host 10.254.214.16 appears to be up which is the IP address of eth1. I shouldn't need a routing gateway to reach these devices. In addition, even when the routing entry is there (or not) a ping from eth1 $ ping -I eth1 10.7.13.1 gives me destination unreachable, so the entry is pointless. BTW, $ ping -I eth0 10.7.13.1 works fine as it should. I guess it's not a big deal. If it works don't fix it. But I'm still curious. Any ideas? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] iso creation with dd
Al Sparks wrote: I placed a CD in a drive. I ran sudo dd sudo dd if=/dev/cdrom of=HMI_B_Image_File_4-23-09_disk_1.iso It completed. I then transferred the ISO file to an XP machine, use What happens when you load that file in an emulator like daemon tools, open it with magic iso, or mount it with a loop? Can you mount the cdrom? After I posted this, I mounted the CD-ROM and the file was also missing. I mount the CD on a Windows XP machine, and the file shows up. Sonic to burn the ISO file to another CD, and there was a file missing (the largest) in the burned CD. I am assuming sonic has the ability to show the cdrom's details, how many tracks does it show? I'll take a look. I've never dug that deep into Sonic. Seems like the data got transferred through the dd, but not a file name. What might I be doing wrong? Though it may work, I'd never use dd to make an ISO image, try mkisofs, see if you have better luck with that. Except when I KNOW that there is only one track on the cd, and it is a data track. And if you want a block for block copy I'd use cdrdao (don't think this is included in standard CentOS distribution). nate ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] USB Thumb Drive Confusion
I am running CentOS 4.7. I have a USB flash (thumb) drive that has a bunch of files placed there by Windows. I plugged it into the CentOS machine, and when I listed the files under /media/usb-name, there was nothing there. I created an empty file: touch blah and it showed up when I did list it. I noticed, checking dmesg that it was attached to /dev/sdb. So I did a quick fdisk /dev/sdb I saw that it had a partition of type of W95 FAT16 under /dev/sdb1. How come I'm not able to see files placed on that device by XP/Vista machines when I plug it into the CentOS 4.7 machine, but I'm able to create a file on it, and list it? I did double-check and plugged that drive into my XP workstation and sure enough I was able to see all the files. === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] USB Thumb Drive Confusion
That worked. Thanks. === Al - Original Message From: Ignacio Vazquez-Abrams ivazquez...@gmail.com To: CentOS mailing list centos@centos.org Sent: Tuesday, April 7, 2009 7:28:16 PM Subject: Re: [CentOS] USB Thumb Drive Confusion On Tue, 2009-04-07 at 20:10 -0700, Al Sparks wrote: How come I'm not able to see files placed on that device by XP/Vista machines when I plug it into the CentOS 4.7 machine, but I'm able to create a file on it, and list it? I did double-check and plugged that drive into my XP workstation and sure enough I was able to see all the files. Because you didn't mount it. -- Ignacio Vazquez-Abrams ivazquez...@gmail.com PLEASE don't CC me; I'm already subscribed ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] External ext3 USB Hard drive and selinux
I created a new directory on the root directory of the USB HD and I was able to write on it in both ubuntu and centos. I am curious if it didn't have to do with the fact that one of my sub-directories is called home and selinux flagged this and yet didn't show up in the audit. The full directory name for the one that couldn't be copied( yet deleteable) to in centos was: /media/disk/home/dude The one that worked was : /media/disk/dude In this case everything works normal, sub-directories and all! al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] External ext3 USB Hard drive and selinux
Ok I did as you suggested and my output after a sealert -a /var/log/audit/audit.log /root/mylogfile.txt was found 2 alerts in /var/log/audit/audit.log Summary: SELinux is preventing cp from creating a file with a context of unlabeled_t on a filesystem. Detailed Description: [SELinux is in permissive mode, the operation would have been denied but was permitted due to permissive mode.] SELinux is preventing cp from creating a file with a context of unlabeled_t on a filesystem. Usually this happens when you ask the cp command to maintain the context of a file when copying between file systems, cp -a for example. Not all file contexts should be maintained between the file systems. For example, a read-only file type like iso9660_t should not be placed on a r/w system. cp -P might be a better solution, as this will adopt the default file context for the destination. Allowing Access: Use a command like cp -P to preserve all permissions except SELinux context. Additional Information: Source Contextuser_u:object_r:unlabeled_t Target Contextsystem_u:object_r:fs_t Target Objectstest.txt [ filesystem ] Sourcecp Source Path /bin/cp Port Unknown Host Unknown Source RPM Packages coreutils-5.97-14.el5 Target RPM Packages Policy RPMselinux-policy-2.4.6-137.1.el5 Selinux Enabled True Policy Type targeted MLS Enabled True Enforcing ModePermissive Plugin Name filesystem_associate Host Name the-rat..ca Platform Linux the-rat.x.ca 2.6.18-92.1.13.el5 #1 SMP Wed Sep 24 19:33:52 EDT 2008 i686 i686 Alert Count 5 First SeenThu Oct 16 13:11:30 2008 Last Seen Wed Nov 5 10:59:39 2008 Local ID 70942f5b-18a0xxxc86b Line Numbers 5, 6, 1227, 1228, 1703, 1704, 2766, 2767, 3066, 3067 Raw Audit Messages type=AVC msg=audit(1225900779.959:311): avc: denied { associate } for pid=14890 comm=cp name=test.txt scontext=user_u:object_r:unlabeled_t:s0 tcontext=system_u:object_r:fs_t:s0 tclass=filesystem type=SYSCALL msg=audit(1225900779.959:311): arch=4003 syscall=5 success=yes exit=4 a0=9a720d0 a1=8041 a2=81b4 a3=8041 items=0 ppid=14864 pid=14890 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=pts5 ses=1 comm=cp exe=/bin/cp subj=user_u:system_r:unconfined_t:s0 key=(null) _ But [EMAIL PROTECTED] ~]$ ls -Z test.txt -rw-rw-r-- freund freund user_u:object_r:user_home_t test.txt so I am wondering where the unlabeled_t is coming from. On Saturday 01 November 2008 4:24:27 pm Nifty Cluster Mitch wrote: On Wed, Oct 29, 2008 at 11:23:28AM -0400, Al Freundorfer wrote: I was directed to post this on the mailing list. See the following forum post as a reference. http://www.centos.org/modules/newbb/viewtopic.php?topic_id=16710forum=42 I formatted my external ext3 372GB USB hard drive in ubuntu and now want to use it in Centos. I made sure that my group/user numbers were the same. I was not able to write to the mounted USB hard drive (HD). I suspected selinux and shut it of and I was able to copy the file! I set selinux back to enforce and rebooted. I like the security features of selinux. I tried: 1) chcon -v 2) restorecon -Rv /media/disk 3) cp -P and still am not able to write to the USB HD. The sad part is I can delete files from the USB HD. See forum post for details. I tried it in fedora 9 and it is able to write to the USB HD I tried an 32GB USB memory stick in Centos 5.2 and it worked! I am wondering why it doesn't work for my USB HD? The only difference is the the size. Try rebooting in permissive mode then inspect the avc messages. Double check the permissions of the mount point before and after mounting the device. -- A.P. Freundorfer, P.Eng. Department of Electrical and Computer Engineering Queens University Kingston, Ontario, CANADA K7L 3N6 Phone: (613)533-2943 fax:(613)533-6615 http://www.ece.queensu.ca/directory/laboratories/highspeedcircuits.html ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Installing perl modules using yum?
I'm trying to install swatch using rpmbuild. I'm getting dependency errors saying that I need perl(Date::Calc), perl(Date::Format), and perl(File::Tail). I've been beaten over the head in this group for using CPAN. So methodology do I use to I install those modules? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] install of Pod::Simple through CPAN
--- On Tue, 9/23/08, Josh Donovan [EMAIL PROTECTED] wrote: From: Josh Donovan [EMAIL PROTECTED] Subject: Re: [CentOS] install of Pod::Simple through CPAN To: CentOS mailing list centos@centos.org Date: Tuesday, September 23, 2008, 5:46 AM Al Sparks wrote: I'm running CentOS 4.4. CentOS 4.4? Any reason to be using something so old? I wondered if someone would call me on that. I'm about to migrate off of it tonight. I was using it as a semi-test platform. We're moving to a 5.2 64b. I'm trying to install swatch (a log watcher) using CPAN. There are friendly repositories with swatch. Thanks, Josh. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] install of Pod::Simple through CPAN
I'm running CentOS 4.4. I'm trying to install swatch (a log watcher) using CPAN. It's getting hung up on trying to install a dependency, Pod::Simple So before I get too wrapped up in this, I have the following questions: 1. Is there an alternative way to install swatch? I didn't get a hit when I tried yum. 2. I'm not wedded to swatch. Is there another log checker out there that will work with CentOS? 3. Lastly, here's the error I get when I attempt to install Pod::Simple through CPAN: Test Summary Report --- t/xhtml01 (Wstat: 512 Tests: 26 Failed: 2) Failed tests: 24, 26 Non-zero exit status: 2 Files=53, Tests=1095, 9 wallclock secs ( 1.30 usr 0.10 sys + 7.22 cusr 0.78 csys = 9.40 CPU) Result: FAIL Failed 1/53 test programs. 2/1095 subtests failed. make: *** [test_dynamic] Error 255 ARANDAL/Pod-Simple-3.07.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports ARANDAL/Pod-Simple-3.07.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: ARANDAL/Pod-Simple-3.07.tar.gz : make_test NO ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] install of Pod::Simple through CPAN
logwatch comes with CentOS and is installed by default. Logwatch doesn't seem to do real-time monitoring of logs. It seems to just write up stats over a period of time you can specify. As for using CPAN, the warnings are noted. === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] cron job not working
--- On Wed, 9/17/08, Al Sparks [EMAIL PROTECTED] wrote: From: Al Sparks [EMAIL PROTECTED] Subject: Re: [CentOS] cron job not working To: CentOS mailing list centos@centos.org Date: Wednesday, September 17, 2008, 9:26 AM Probably a permissions problem, as has been noted. What I can't understand is how the problem came to be so complicated. This, run as a root cron job, will produce the desired directory: #!/bin/bash mkdir -p /ora-local/db-test-backups/`date +%Y_%m_%d` ...without the adjustments in the perl script. AAMOF, it's even simpler if you can tolerate hyphen separators rather than underscores. (date +%F) I'll give that a shot. Note that I have not been running this as root (though crond is running as root). Most of the time, if it's a permissions problem, crond will send an email telling me it's a permissions problem. === Al It was a file permission problem. But crond wasn't telling me. Thanks for the help. === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] cron job not working
The crond itself is being run as root. I am running the cron job as another user that has permission to run cron jobs. Note that if I change the program to print output to STOUT and run through cron, I get an email in that account with that output. === Al - Original Message From: bruce [EMAIL PROTECTED] To: CentOS mailing list centos@centos.org Sent: Tuesday, September 16, 2008 4:25:23 PM Subject: RE: [CentOS] cron job not working hey al... what are the privs that the cron is being run as. the cron should be root. what are the acls for the dir that you're writing to?? it's probably a simple priv/acl issue -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Al Sparks Sent: Tuesday, September 16, 2008 5:01 PM To: Centos List Subject: [CentOS] cron job not working Here's a perl script that works when I run it manually. But when I run it via cron, it won't create the directory. But worse than that, an email isn't sent to the account running the job. So I'm not getting an error, but it does work when I run it manually. If I put an obvious error in the script, cron does generate an email giving me the STDERR. What could it be? === Al #!/usr/bin/perl ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); # Above functions, time and localtime, return weird $year and $month # Need to be converted to become human readable $year = $year + 1900; $mon = $mon + 1; # Want $mday and $mon to be 2 digits, with leading zero if necessary $mday = 0 . $mday if $mday 10; $mon = 0 . $mon if $mon 10; # Second parameter is mask in octal chdir /ora-local/db-test-backups; mkdir ${year}_${mon}_${mday}, \00022; End perl script ___ 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 mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] cron job not working
Probably a permissions problem, as has been noted. What I can't understand is how the problem came to be so complicated. This, run as a root cron job, will produce the desired directory: #!/bin/bash mkdir -p /ora-local/db-test-backups/`date +%Y_%m_%d` ...without the adjustments in the perl script. AAMOF, it's even simpler if you can tolerate hyphen separators rather than underscores. (date +%F) I'll give that a shot. Note that I have not been running this as root (though crond is running as root). Most of the time, if it's a permissions problem, crond will send an email telling me it's a permissions problem. === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] cron job not working
Here's a perl script that works when I run it manually. But when I run it via cron, it won't create the directory. But worse than that, an email isn't sent to the account running the job. So I'm not getting an error, but it does work when I run it manually. If I put an obvious error in the script, cron does generate an email giving me the STDERR. What could it be? === Al #!/usr/bin/perl ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); # Above functions, time and localtime, return weird $year and $month # Need to be converted to become human readable $year = $year + 1900; $mon = $mon + 1; # Want $mday and $mon to be 2 digits, with leading zero if necessary $mday = 0 . $mday if $mday 10; $mon = 0 . $mon if $mon 10; # Second parameter is mask in octal chdir /ora-local/db-test-backups; mkdir ${year}_${mon}_${mday}, \00022; End perl script ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] DJB's daemontools package
I was going to recommend roughly the same thing. Don't use RPM's, install his tools manually. When I did, I learned a lot of useful information about the internals of RedHat/CentOS (or any System V LUnix system for that matter). And with all due respect, of course, it brings me back to the days when I was managing a qmail server and hanging around the qmail mailing list. There was a lot of rudeness and snarkyness on that list. They aren't kind to those they consider fools. DJB has his acolytes, much like Linus Torvalds does. I suspect that DJB's personality reflects the overall tone of DJB related online communities, much like Torvalds's personality affects groups like this. I have to say, DJB's software offerings are top rate. Oh and the qmail server? My employer went Exchange. And slowly but surely, the IT there is becoming more Microsoft with Linux becoming more of an outlier. It's probably time for me to find another job. It's hard, because I've been with them a long time. === Al --- On Fri, 9/5/08, RobertH [EMAIL PROTECTED] wrote: From: RobertH [EMAIL PROTECTED] Subject: RE: [CentOS] DJB's daemontools package To: 'CentOS mailing list' centos@centos.org Date: Friday, September 5, 2008, 9:10 PM With all due respect... Do any of you that gave advice on finding DJB software in rpm format use any of the software that you are giving advice on finding in rpm format or otherwise? If you do use it, you can do better. :-) If not, well... then you are talking out yer' rear ends. It is best to go to the source and learn all you can, then make your own rpm or know what you are looking for in an rpm and specifically why. http://cr.yp.to and it wasn't the hard to google for daemontools rpm or the other packages in rpm format. - rh ___ 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] I need help with GRUB
--- On Mon, 9/1/08, Sadaruwan Samaraweera [EMAIL PROTECTED] wrote: From: Sadaruwan Samaraweera [EMAIL PROTECTED] Subject: Re: [CentOS] I need help with GRUB To: CentOS mailing list centos@centos.org Date: Monday, September 1, 2008, 9:36 PM On Tue, Sep 2, 2008 at 4:14 AM, Al Sparks [EMAIL PROTECTED] wrote: --- On Mon, 9/1/08, Lanny Marcus [EMAIL PROTECTED] wrote: From: Lanny Marcus [EMAIL PROTECTED] Subject: Re: [CentOS] I need help with GRUB To: CentOS mailing list centos@centos.org Date: Monday, September 1, 2008, 9:53 AM On Sun, Aug 31, 2008 at 11:31 PM, Sadaruwan Samaraweera [EMAIL PROTECTED] wrote: On Mon, Sep 1, 2008 at 9:55 AM, Ian Forde [EMAIL PROTECTED] wrote: On Mon, 2008-09-01 at 09:47 +0530, Sadaruwan Samaraweera wrote: Hello, And the problem that I'm having is with my two Linux distros. Ive installed CentOS Windows in my SATA HDD and I've used my complete 40GB PATA HDD for Ubuntu. Well all OS's work fine with out any problems but when I want to boot into CentOS I've to select the SATA as my booting HDD from the BIOS if I want to go to Ubuntu the I've to select my PATA as the default HDD from the menu. So what I want to do is I need to add Both distros in to one GRUB boot loader and the other thing is that both grubs that I've on both HDD s only detects the windows Partition not the Linux partion. So I need to to know how to add bothe Linux versions I've into one GRUB. I want to use the SATA HDD as my default HDD. You'll want to merge the grub boot stanzas into one file, apply it to one (or both) of the drives, and keep it in sync when you do kernel updates (because those affect the grub menu)... This way, you won't have to change the BIOS setting. OK, thx for the quick reply but I realy don't know how to do that can any one help on that note. Possibly what you need to do is add another entry in your /etc/grub.conf file, on the HD you boot from. Below is mine. [EMAIL PROTECTED] ~]$ sudo cat /etc/grub.conf Password: # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,2) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img #boot=/dev/hda default=0 timeout=5 splashimage=(hd0,2)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-92.1.10.el5) root (hd0,2) kernel /vmlinuz-2.6.18-92.1.10.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.18-92.1.10.el5.img acpi=off title CentOS (2.6.18-92.1.6.el5) root (hd0,2) kernel /vmlinuz-2.6.18-92.1.6.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.18-92.1.6.el5.img acpi=off title CentOS (2.6.18-92.1.1.el5) root (hd0,2) kernel /vmlinuz-2.6.18-92.1.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.18-92.1.1.el5.img acpi=off title Windows XP rootnoverify (hd0,0) chainloader +1 [EMAIL PROTECTED] ~]$ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos It's handy that someone posted their grub file. The answer to your question/situation might be complicated by the fact that you use you have been changing your boot up disk in your BIOS. But the thing to look for in your grub.conf file is: title CentOS (2.6.18-92.1.1.el5) root (hd0,2) kernel /vmlinuz-2.6.18-92.1.1.el5 ro Note that this example includes an entry for a hard drive: root (hd0,2) That entry points to the first hard drive, third partition. If you have 2 hard drives, and you wanted to boot off the second drive first partition, you might use: root (hd1,0) You basically want to look at the grub configuration for each OS on each hard drive you installed it on, and in consolidating them, cut and paste entries from what you want to be your secondary drive to your primary boot drive. Again, this is only using the above grub.conf as an example. If you have SCSI hard drives instead then probably the grub.conf will show something like: root (sd0,2) So it's important to look at your grub.conf and make modifications. Hope this helps. If you want more specific advice, then post BOTH grub.conf files, and tell us which one will be from what you want to be your secondary drive, and what you want to be your primary drive (in BIOS). === Al
Re: [CentOS] I need help with GRUB
--- On Mon, 9/1/08, Lanny Marcus [EMAIL PROTECTED] wrote: From: Lanny Marcus [EMAIL PROTECTED] Subject: Re: [CentOS] I need help with GRUB To: CentOS mailing list centos@centos.org Date: Monday, September 1, 2008, 9:53 AM On Sun, Aug 31, 2008 at 11:31 PM, Sadaruwan Samaraweera [EMAIL PROTECTED] wrote: On Mon, Sep 1, 2008 at 9:55 AM, Ian Forde [EMAIL PROTECTED] wrote: On Mon, 2008-09-01 at 09:47 +0530, Sadaruwan Samaraweera wrote: Hello, And the problem that I'm having is with my two Linux distros. Ive installed CentOS Windows in my SATA HDD and I've used my complete 40GB PATA HDD for Ubuntu. Well all OS's work fine with out any problems but when I want to boot into CentOS I've to select the SATA as my booting HDD from the BIOS if I want to go to Ubuntu the I've to select my PATA as the default HDD from the menu. So what I want to do is I need to add Both distros in to one GRUB boot loader and the other thing is that both grubs that I've on both HDD s only detects the windows Partition not the Linux partion. So I need to to know how to add bothe Linux versions I've into one GRUB. I want to use the SATA HDD as my default HDD. You'll want to merge the grub boot stanzas into one file, apply it to one (or both) of the drives, and keep it in sync when you do kernel updates (because those affect the grub menu)... This way, you won't have to change the BIOS setting. OK, thx for the quick reply but I realy don't know how to do that can any one help on that note. Possibly what you need to do is add another entry in your /etc/grub.conf file, on the HD you boot from. Below is mine. [EMAIL PROTECTED] ~]$ sudo cat /etc/grub.conf Password: # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,2) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img #boot=/dev/hda default=0 timeout=5 splashimage=(hd0,2)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-92.1.10.el5) root (hd0,2) kernel /vmlinuz-2.6.18-92.1.10.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.18-92.1.10.el5.img acpi=off title CentOS (2.6.18-92.1.6.el5) root (hd0,2) kernel /vmlinuz-2.6.18-92.1.6.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.18-92.1.6.el5.img acpi=off title CentOS (2.6.18-92.1.1.el5) root (hd0,2) kernel /vmlinuz-2.6.18-92.1.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.18-92.1.1.el5.img acpi=off title Windows XP rootnoverify (hd0,0) chainloader +1 [EMAIL PROTECTED] ~]$ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos It's handy that someone posted their grub file. The answer to your question/situation might be complicated by the fact that you use you have been changing your boot up disk in your BIOS. But the thing to look for in your grub.conf file is: title CentOS (2.6.18-92.1.1.el5) root (hd0,2) kernel /vmlinuz-2.6.18-92.1.1.el5 ro Note that this example includes an entry for a hard drive: root (hd0,2) That entry points to the first hard drive, third partition. If you have 2 hard drives, and you wanted to boot off the second drive first partition, you might use: root (hd1,0) You basically want to look at the grub configuration for each OS on each hard drive you installed it on, and in consolidating them, cut and paste entries from what you want to be your secondary drive to your primary boot drive. Again, this is only using the above grub.conf as an example. If you have SCSI hard drives instead then probably the grub.conf will show something like: root (sd0,2) So it's important to look at your grub.conf and make modifications. Hope this helps. If you want more specific advice, then post BOTH grub.conf files, and tell us which one will be from what you want to be your secondary drive, and what you want to be your primary drive (in BIOS). === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] What fires logrotate
I've been taking a look at how RedHat (and CentOS) handles logrotate. According to the man page, logrotate is supposed to be fired by cron. But when I look at root's crontab $ sudo crontab lu root no crontab for root What exactly fires logrotate (and other scheduled events like logwatch, which ends up in root's inbox)? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Dell Perc snmp
Try this: http://linux.dell.com/wiki/index.php/Repository/hardware You can actually use yum to download Dell's rpm repositories. Also, they have their own mailing list that I've found very helpful for these types of issues. It's at [EMAIL PROTECTED] === Al - Original Message From: Joseph L. Casale [EMAIL PROTECTED] To: CentOS mailing list centos@centos.org Sent: Thursday, August 21, 2008 10:07:39 AM Subject: [CentOS] Dell Perc snmp I am trying to help a friend with a 2850 and snmp monitoring of a controller and its arrays. I don't have any dells, do they have a rpm to make easy work of this for the Percs? They have a monitoring solution already. Any hints I could pass on would be appreciated! Thanks, jlc ___ 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] What fires logrotate
--- On Thu, 8/21/08, Stephen Harris [EMAIL PROTECTED] wrote: From: Stephen Harris [EMAIL PROTECTED] Subject: Re: [CentOS] What fires logrotate To: CentOS mailing list centos@centos.org Date: Thursday, August 21, 2008, 10:13 AM On Thu, Aug 21, 2008 at 11:06:19AM -0700, Al Sparks wrote: I've been taking a look at how RedHat (and CentOS) handles logrotate. According to the man page, logrotate is supposed to be fired by cron. But when I look at root's crontab $ sudo crontab lu root no crontab for root See /etc/cron.daily (see also other directories matching /etc/cron.*) Look in /etc/crontab to see how they're called. -- rgds Stephen ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Thanks. Very helpful. === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] ext2online / ext2resize
--- On Thu, 8/7/08, Ignacio Vazquez-Abrams [EMAIL PROTECTED] wrote: From: Ignacio Vazquez-Abrams [EMAIL PROTECTED] Subject: Re: [CentOS] ext2online / ext2resize To: CentOS mailing list centos@centos.org Date: Thursday, August 7, 2008, 5:42 PM On Thu, 2008-08-07 at 18:32 -0700, Al Sparks wrote: I'm running CentOS 5.2 x x86_64. I did an lvextend of a logical volume, and proceeded to run one of the ext2 utilities (e.g. ext2online, ext2resize) and found to my surprise that it wasn't on there. Did you mean resize2fs? Yes, I did. I found the program. Thanks. === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] ext2online / ext2resize
I'm running CentOS 5.2 x x86_64. I did an lvextend of a logical volume, and proceeded to run one of the ext2 utilities (e.g. ext2online, ext2resize) and found to my surprise that it wasn't on there. So I started googling around, and as far as I can see, though I'm not sure, they're supposed to be a part of the e2fsprogs package. Well, it's installed on the system, at least the x86_64 version is. Should I be downloading the i386 version of that package? If I do, will I be stomping on the x86_64 tools? Is there another package I should be looking at? BTW, I tried loading the source, and compiling, ./configure and make fails. === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] X-Windows Login
Alex [EMAIL PROTECTED] said: On Tue, 29 Jul 2008 17:41:57 -0700 (PDT) Al Sparks [EMAIL PROTECTED] took out a #2 pencil and scribbled: I have a server with all the x-windows stuff installed. But it's giving me a text based login prompt on the console. I can log onto the console, and run gnome-session and GNOME comes up fine. How do I turn it on so that I get a X-Window GUI login prompt? === Al What runlevel are you in? If X is installed but you're booting (or running) at runlevel 3 you will not have a graphical login. To see what runlevel you are in try 'runlevel' without quotes. This will tell you what you are currently in. If you wish to see the graphical login run 'telinit 5' without quotes which will start it up for you. You will need to be root (or use sudo) to do this. Be aware that changing runlevels may start services you did not have started in the previous runlevel. It may also stop services that you did have running in the previous runlevel. Be mindful of those services. You can edit the various runlevels and also view what runs in each one by using 'ntsysv --level n' n would be the level in question. For instance, 'ntsysv --level 3' will show you and allow you to edit what starts. You may also use chkconfig to accomplish this. If you want to change the default runlevel for your machine you'll need to edit /etc/inittab and change the line id:3:initdefault: (this entry may differ in the number displayed) to id:5:initdefault: (this runlevel starts X11 on boot). HTH Alex White Thanks. That worked. It was at init 3, and init 5 gave me the behaviour I wanted. === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] X-Windows Login
I have a server with all the x-windows stuff installed. But it's giving me a text based login prompt on the console. I can log onto the console, and run gnome-session and GNOME comes up fine. How do I turn it on so that I get a X-Window GUI login prompt? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] RE: CUPS and system-config-printer question
--- On Sat, 7/12/08, Timothy Murphy [EMAIL PROTECTED] wrote: From: Timothy Murphy [EMAIL PROTECTED] Subject: [CentOS] RE: CUPS and system-config-printer question To: centos@centos.org Date: Saturday, July 12, 2008, 9:32 AM John wrote: Where do I look to make that interface see the CUPS-only printers? As a matter of interest, why do you want to use system-config-printer? I've always found this completely useless, while the CUPS web interface seems quite straightforward. I completely agree. I'm just trying to make a colleague happy. In fact, I am more of a CLI guy, and prefer to use xadmin to add, remove and configure printers. But you're right, the CUPS interface is actually more straightforward than the system-config-printer interface. === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] CUPS and system-config-printer question
I was tasked with migrating a bunch of printer entries from one box to another. What I did is I got a list of printer names along with IP addresses and using the CUPS lpadmin -p printer-name -E -v lpd://IP_ADDR/lp I loaded them onto the new machine running RHEL 4.6. Printer tests show that it works fine. And if I use the CUPS web interface at http://localhost:631 Everything shows up. But if I launch the RH (and presumably CentOS works the same way) system-config-printer interface after adding the printers the CUPS way, nothing shows up in the RH interface. Probably not a big deal, but I have a colleague that will go nuts over this. He's attached to his interfaces, but there was no way I was going to manually enter those printers in that interface. Where do I look to make that interface see the CUPS-only printers? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] resizing partition
I'm going to have to resize a partition (shrink it) to make room for more swap space. This is actually not too big of a deal, since we're not talking about a system partition (/, /var, /usr, etc), but one where an application resides. So I won't even have to go to rescue mode to do this. I can umount this thing live. (and since I'm working on it remotely, that's important). But this system was not configured with LVM. So it occurs to me, that in dealing with a non-LVM partition(s), if the swap space I want to enlarge isn't next to the partition I shrink, my options would be to: 1. Manually move the other partitions, probably very risky 2. Simply make a second swap space that's next to the partition I shrink. Have I got the right idea? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] mount: /dev/sdb1 already mounted or /blah busy
How do I go about troubeshooting this? I'm using RHEL 4 update 6. mount: /dev/sdb1 already mounted or /blah busy It's actually an iSCSI LUN (NetApp filer). I successfully configured (ext3) and mounted it, but when I rebooted, the /dev/sdb1 device/partition is seen by the kernel and it shows up with fdisk -l. Nevertheless I get that error. I've tried umount and am informed that /blah isn't mounted. I've tried lsof and don't find a process that's attached to /blah. I also tried fsck -t ext3 /dev/sdb1 which worked (so it detects the ext3 file system). Any other tools to check out? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Two Instances of Apache; Primary IP / Secondary IP
do you mean making apache use a specific IP when it proxies the request? (you really lost me, so I may be misunderstanding). why do need that at all? whatever IP is used should not matter since the backend will reply over the socket that was opened by the proxy (be it a production proxy or the test proxy). Both IP addresses are actually assigned to the same physical interface (eth1 and eth1:1). The proxy instance is accepting connections from clients using the eth1:1 secondary interface, but the same PHYSICAL interface as eth1. When it turns around and connects to the back-end service, it seems to be using eth1 even though it's listening on eth1:1. Since it's not listening to eth1, the packets are going to the bit-bucket. At least that's my theory. otherwise, the IP is selected by the kernel depending on the destination. so if you use something like ProxyPass / http://10.1.2.3:8080/ in one proxy and ProxyPass / http://10.4.5.6:8080/ each will use the selected IP. Is there something I can do with routing tables that can help? That would require advanced routing. standard routing is based on destination and the source IP is selected by the kernel after the route has been computed (this allows setting the right IP should you have multiple network interfaces...). but you should not need this. In the end, I may just have to either use a separate server or a second physical interface, probably in another VLAN, to make this work. And my idea seemed like such a good one. === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Two Instances of Apache; Primary IP / Secondary IP
Tried the apache group, and no response. Thought I'd try here. I have set up a development environment so that it mimics a production environment. The production environment has a proxy server (apache 2.x) that sends requests onto another back-end apache server, and of course the proxy server serves up pages sent by the back-end. All that works fine. However, in my development environment, I thought that I'd set up a separate instance of apache on the same server, and add a secondary IP address on the same interface. The proxy apache instance listens on the secondary IP, and the back-end instance listens on the primary IP. When I send a client request to the proxy, I get a blank page. When I check the logs, the back-end shows requests coming from the primary IP, and not the secondary IP. My conclusion is that the proxy is sending its outbound traffic on the primary IP address, not the secondary IP address it's listening on. That in turn means that back-end is sending its pages back on the primary IP instead of the secondary, and that means the proxy instance isn't receiving answers to its request. I know that BIND can be configured to send requests on secondary IP addresses. Can Apache? Is there something I can do with routing tables that can help? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Capturing Packets -- Ethereal
This may be off topic, but I think my ethereal question might be simple enough. I am presently compiling ethereal on a CentOS platform to check it out. But the packets I want to monitor are actually on a different CentOS platform, and I'd rather not install Ethereal on it, if for no other reason I don't have X-Windows installed on that platform. My question is, can I monitor/write packets to a file on the more remote machine, and then analyze the packets on another machine using my ethereal SW? Can I sniff the packets on the remote w/o a full install of ethereal? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Capturing Packets -- Ethereal
From: Milton Calnek [EMAIL PROTECTED] To: CentOS mailing list centos@centos.org Sent: Wednesday, January 16, 2008 12:50:47 PM Subject: Re: [CentOS] Capturing Packets -- Ethereal The thing to do is to install wireshark on the system without X. Then from a machine with X: ssh -Xf [EMAIL PROTECTED] wireshark Yours is the coolest answer, though the others were also helpful. Thanks to all. === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Disk De-Fraging in Linux
A couple of questions. Are there any linux tools that can de-frag an ext2/3 partition? Are there any advantages to doing so if you're running hardware RAID5? Are there advantages / disadvantages if you're running LVM? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] ata1 bootup errors
ata1: port is slow to respond, this delay is known to occur on vacant SATA ports ata1: port failed to respond (30 secs) ata1: SRST failed (status 0xFF) ata1: SRST failed (err_mask=0x100) ata1: softreset failed, retrying in 5 secs ata1: SRST failed (status 0xFF) ata1: SRST failed (err_mask=0x100) ata1: softreset failed, retrying in 5 secs ata1: SRST failed (status 0xFF) ata1: SRST failed (err_mask=0x100) ata1: reset failed, giving up Since I don't have SATA drives, I don't need this to be checked. How do I turn this off? Running CentOS 5.0 (just upgraded frm 4.x). === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Disk De-Fraging in Linux
Al Sparks wrote: A couple of questions. Are there any linux tools that can de-frag an ext2/3 partition? Are there any advantages to doing so if you're running hardware RAID5? Are there advantages / disadvantages if you're running LVM? === Al you're in luck cause you don't defrag an ext2/3 partition at all. defrag is for windows file systems. Ext file systems are a different animal all-together. Why? What's different between NTFS and ext2/3 that defragging is needed in one but not the other? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] CPAN Question
Maybe a little off-topic. But using cpan, I tried to install IO::Compress::Base 2.006. I already had 2.005 installed. For the life of me, I couldn't get it to upgrade. It finally occurred to me to download the .tgz file, and install it that way. That worked. But does anyone have any hints on how to force cpan to upgrade? I even tried the upgrade command, and that didn't work. === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Linux File System w/case-insensitivity
I used to mount some files via Samba which resided on a windows machine on a CentOS box. We moved the files to a NetApp filer, and I was unable to mount those files using either Samba or CIFS. Most of my problems with Samba were related to the (Windows?) password encryption scheme that has not been included in the Samba suite. Even if I use the mount t cifs, it didn't work. So on the NetApp filer, we switched the volume to NFS only (having the volume as both NFS and CIFS also didn't work, strangely enough), and I was able to mount the volume. Fine. But now the complaint is that the files are case sensitive, and doing searches for a particular file is problematical. So the question: Is there a file system that linux can access that's case insensitive? I guess making a LUN off the NetApp filer and formatting NTFS would work. But I thought I'd ask if there's other alternatives. Also, I think that it would have to be writable. I haven't checked, but isn't NTFS mountable read-only by linux? === Al ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos