[CentOS] CUPS not generating a printcap file

2015-09-09 Thread Vanhorn, Mike
According to all of the documentation I can find, an /etc/printcap file (or whatever filename is specified with the Printcap directive) is generated by cupsd ever time a printer is added or removed. On all of my CentOS 6.7 systems, this is NOT happening. I can restart cups and add or remove printe

Re: [CentOS] Semi-OT: very weird vi behaviour

2016-04-27 Thread Vanhorn, Mike
On 4/27/16, 9:39 AM, "centos-boun...@centos.org on behalf of m.r...@5-cent.us" wrote: > And now, I just >ssh'd in from another windows, same way... and the weirdness isn't there. > >Anyone have any clues as to what's going on with that one session? > > Mark It sounds as if, for some reas

[CentOS] Getting confirmation for power button

2013-04-25 Thread Vanhorn, Mike
Using CentOS 5.8: Currently on my workstations, when I press the power button the computer immediately does a 'shutdown -h now' (per /etc/acpid/events/power.conf). Is there a way to change it so that a confirmation dialog comes up, rather than an immediate shutdown? I assume that I am going to n

Re: [CentOS] Getting confirmation for power button

2013-04-25 Thread Vanhorn, Mike
On 4/25/13 9:46 AM, "Giles Coochey" wrote: >You are talking about something that acpid is doing for you: > >http://linux.die.net/man/8/acpid > > Yes, I know this is handled by acpid; that's where the /etc/acpid/events/power.sh file comes in. I'm asking if anyone knows what changes to make to tha

Re: [CentOS] Getting confirmation for power button

2013-04-25 Thread Vanhorn, Mike
On 4/25/13 10:38 AM, "John Doe" wrote: >On CentOS 5: /etc/acpi/events/power.conf Sorry, I meant "power.conf" in my original post, not "power.sh". >Do you use gnome? >If so, in 'System / Preferences / ... / Power Managment', in the >'General' tab, Yes, and that works fine, *if* the user is logg

[CentOS] Disabling user switching in CentOS 6

2013-07-08 Thread Vanhorn, Mike
Installing CentOS 6 on a lab full of workstations, and I want to disable fast user switching. With CentOS 5, I simply made sure that the "user_switch_enabled" entry in /etc/gconf/schemas/gnome-screensaver.schemas was set to false. However, that doesn't work with CentOS 6. I've found various prop

Re: [CentOS] Disabling user switching in CentOS 6

2013-07-09 Thread Vanhorn, Mike
On 7/8/13 5:57 PM, "James Pearson" wrote: >We've applied the patch available from > to the gnome-session >SRPM - which works for us (with the above gconf settings) > > Interestingly, I have just done the same thing, but the user switching is sti

[CentOS] problem configuring grub for a dual-boot

2013-08-05 Thread Vanhorn, Mike
I have Windows 7 on /dev/sda and CentOS 6.4 on /dev/sdb. Here are the layouts: (parted) select /dev/sda Using /dev/sda (parted) print Model: ATA WDC WD10EZEX-00Z (scsi) Disk /dev/sda: 1000GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Number Start

Re: [CentOS] problem configuring grub for a dual-boot

2013-08-08 Thread Vanhorn, Mike
I tried the suggestion of swapping the disks assignments: >Try telling grub to swap the disks: > >> title Windows 7 >map (hd1) (hd0) >map (hd0) (hd1) >> rootnoverify (hd1,0) >> chainloader +1 But that still just gets me invalid EFI file path Error 1: Filename must be either an absolute pa

Re: [CentOS] Disable login at boot

2014-05-21 Thread Vanhorn, Mike
On 5/20/14 9:59 PM, "Karalyn Capone" wrote: >Not disable the screen. I just want the machine to log in on boot >automatically. I think we're all still confused. If it's going to be headless and remotely administered, why do you want it to login automatically on the console? --- Mike VanHorn Se

[CentOS] weird SELinux denial

2017-06-06 Thread Vanhorn, Mike
I keep seeing this in my audit.logs: type=AVC msg=audit(1496336600.230:6): avc: denied { name_connect } for pid=2411 comm="dbus-daemon" dest=111 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:portmap_port_t:s0 tclass=tcp_socket Was caused by:

Re: [CentOS] weird SELinux denial

2017-06-06 Thread Vanhorn, Mike
It says what it is my original post; that’s the output from audit2allow –w (which is audit2why): Was caused by: The boolean allow_ypbind was set incorrectly. Description: Allow system to run with NIS Allow access by executing: # setsebool -P allow

Re: [CentOS] weird SELinux denial

2017-06-06 Thread Vanhorn, Mike
On 6/6/17, 12:38 PM, "Daniel Walsh" wrote: >I am asking if you run it again, does it change. If the boolean is set >the audit2why should say that the AVC is allowed. Well, if I just run audit2why again, it always tells me the same thing. However, I have now discovered that if I unset allow_y

Re: [CentOS] weird SELinux denial

2017-06-06 Thread Vanhorn, Mike
On 6/6/17, 1:48 PM, "Daniel Walsh" wrote: >Ok, that works then. The way I read your email indicated that setting >the boolean did not allow the access. I take it you are not running >with NIS/Yellow pages and yet you see dbus connecting to port 111? Well, previously, I didn’t have to set it

Re: [CentOS] /boot partition too small

2017-10-10 Thread Vanhorn, Mike
If there are many old kernels in there, you can probably remove the oldest one(s) to make room for newer ones. I've run into problems where the yum update didn't work because there wasn't enough room in /boot; my notes for updating now include removing old kernels first before running updates.

Re: [CentOS] Script to monitor websites and generate RSS feed when they change

2020-02-25 Thread Vanhorn, Mike
I just read an article (part of which is here http://www.linuxpromagazine.com/Issues/2020/230/The-sys-admin-s-daily-grind-urlwatch/(language)/eng-US ) about urlwatch. --- Mike VanHorn Senior Computer Systems Administrator College of Engineering and Computer Science Wright State University 265 Ru

[CentOS] problem with machine "freezing" for short periods

2012-07-25 Thread Vanhorn, Mike
I have two HP dc7800 convertible minitowers that are exhibiting the following issue: every 5-10 minutes, they will "freeze" for about 30 seconds, and then pick right back up again. During the freeze, it seems that nothing at all happens on the system; the clock doesn't even advance (it just picks

Re: [CentOS] problem with machine "freezing" for short periods

2012-07-26 Thread Vanhorn, Mike
On 7/25/12 11:24 AM, "m.r...@5-cent.us" wrote: >When you say "swapped the entire machine", what did you do? I have two of them, and thinking it was the hardware on the one, I moved the hard drive to the second, but the problem existed there, too. That points to something with the software, but,

Re: [CentOS] problem with machine "freezing" for short periods

2012-07-26 Thread Vanhorn, Mike
On 7/25/12 12:04 PM, "Mogens Kjaer" wrote: >I've several HP dc7x00 machines, and I've never seen that problem >with centos 5 or 6. I do, too. Things are fine on our 7900s, and the 8000-series machines we have. I'm only seeing it on these two 7800s. >Do you also see the problem if you boot in ru

Re: [CentOS] problem with machine "freezing" for short periods

2012-07-26 Thread Vanhorn, Mike
On 7/25/12 12:07 PM, "John Doe" wrote: >Do you have the latest BIOS? Yes. >Did you get a CD to run tests (like Insight Diagnostics Offline)? Yes, I used my copy of the UBCD to run memory and hard drive diagnostics, and both passed. --- Mike VanHorn Senior Computer Systems Administrator Colleg

Re: [CentOS] problem with machine "freezing" for short periods

2012-07-26 Thread Vanhorn, Mike
On 7/25/12 12:22 PM, "Keith Roberts" wrote: >Hi Mike. Are you on 32 or 64 bits ? 64. I have thought of trying 32 bit, just to see if it made a difference, but if it does, that won't help me because we need 64 bits for the software we're running, anyway. --- Mike VanHorn Senior Computer Systems

Re: [CentOS] problem with machine "freezing" for short periods

2012-07-27 Thread Vanhorn, Mike
On 7/25/12 10:34 AM, "Vanhorn, Mike" wrote: > >I have two HP dc7800 convertible minitowers that are exhibiting the >following issue: every 5-10 minutes, they will "freeze" for about 30 >seconds, and then pick right back up again. During the freeze, it seems >

[CentOS] [SOLVED] Re: problem with machine "freezing" for short periods

2012-07-27 Thread Vanhorn, Mike
It turned out to be something very simple, but which wasn't obvious to check to begin with. There was another computer (a Windows machine) that was supposed to have been taken out of service a long time ago, but someone has recently put it back on the network. Because it was supposed to have been

[CentOS] setting up auto logout in CentOS 6

2016-06-08 Thread Vanhorn, Mike
I would like to have my lab workstations logout a session after the person has been idle for a certain period of time. After some searching on the web, I got into /etc/gconf/schemas/gnome-session.schemas and set the default value of max_idle_action to “forced-logout”: /schemas

Re: [CentOS] setting up auto logout in CentOS 6

2016-06-09 Thread Vanhorn, Mike
>So, I’ve found that if you want to enforce gconf policies for workstations, >you need to put them in /etc/gconf/gconf.xml.mandatory. I tried using that, and it still doesn’t automatically logout. In face, the value I set in gconf.xml.mandatory doesn’t seem to get noticed at all. I set them

[CentOS] can't create printers after upgrading cups

2017-04-26 Thread Vanhorn, Mike
After upgrading cups on my CentOS 6 systems from version 1.4.2-72.el6 to 1.4.2-77.el6, I am no longer able to create working printers, either with lpadmin from the command line or with system-config-printer. When I try to run lpadmin, I get this simple error: [root@vlsi66 ~]# lpadmin -p newpr

Re: [CentOS] can't create printers after upgrading cups

2017-04-26 Thread Vanhorn, Mike
michael.vanh...@wright.edu On 4/26/17, 9:51 AM, "CentOS on behalf of Vanhorn, Mike" wrote: After upgrading cups on my CentOS 6 systems from version 1.4.2-72.el6 to 1.4.2-77.el6, I am no longer able to create working printers, either with lpadmin from the command line or with system-conf

Re: [CentOS] Best practices for copying lots of files machine-to-machine

2017-05-17 Thread Vanhorn, Mike
On 5/17/17, 12:03 PM, "CentOS on behalf of ken" wrote: >An entire filesystem (~180g) needs to be copied from one local linux >machine to another. Since both systems are on the same local subnet, >there's no need for encryption. > >I've done this sort of thing before a few times in the past in

Re: [CentOS] Best practices for copying lots of files machine-to-machine

2017-05-18 Thread Vanhorn, Mike
On 5/17/17, 5:27 PM, "CentOS on behalf of m.r...@5-cent.us" wrote: >Why? I just rsync'd 159G in less than one workday from one server to >another. Admittedly, we allegedly have a 1G network, but Well, I’ve don’t recall ever having to rsync more than 100G (although I am doing multiple rsyn