DevHeads.net

Postings by Robert Heller

CentOS 6: Logrotate / selinux problem

Ever since a recent power failure I have been getting a Logrotate error. My
machine is on a UPS -- it shutdown cleanly, but I suspect that its BIOS/RTC
battery is dead, since the machine came up thinking it was 1982 :-(. I reset
the clock and everything is fine, *except* I had to delete Logrotate's state
files (which had bad dates).

Ubuntu 14.04 apt-get problem...

Amoungst a number of Ubuntu machines I manage at the local library are a pair
of laptops. Back a few kernel updates ago, there was a "bad" kernel (caused
Java to crash). Since these laptops have the Arduino IDE installed, this was
a problem. I could not figure out how to make them boot the previous kernel
by default (the grub2 config process basically sucks and Ubuntu 14.04
incarnation of it is basically broken in this regard, but that is neither here
nor there), so I just did an apt-get purge of the "bad" kernel.

Failed to get to installer for CentOS 7 VM under CentOS 6...

I just tried to create a CentOS 7 VM on a CentOS 6 host, but it crashes to the
dracut prompt. I am using the PXEBoot installer. I *think* it is unhappy
with the (virtual) graphics controller, but I am not sure.

The rdsosreport.txt file is available here:
<a href="https://www.deepsoft.com/wp-content/uploads/2018/09/rdsosreport.txt" title="https://www.deepsoft.com/wp-content/uploads/2018/09/rdsosreport.txt">https://www.deepsoft.com/wp-content/uploads/2018/09/rdsosreport.txt</a>

"The system detected a problem, do you want to report it?" dialog

I'm getting this "The system detected a problem, do you want to report it?"
dialog. It does not say what the problem is. How do I find out what the
problem is? I am not interested in reporting it. I suspect it is something
stupid that I can fix, but I cannot figure out how to find out what is wrong.
This is with Ubuntu 14.04 LTS. I am used to CentOS and used to a less
pointy-clicky user interface, where one gets real error messages, not these
silly "idiot light" dianostics.

An observation (kernel 3.13.0-155 is broken WRT Java) and a Grub2 / Ubuntu question

OK, I just did updates at the local library, where the machines (except the
server's bare metal) run Ubuntu 14.04 LTS. The kernel update (3.13.0-155)
crashes (sort of) when you try to run a Java program (specificly the Arduino
IDE (1.8.5)).

My question is this: what is the "magic" to change the default kernel to boot?
With the grub2 configuration "magic" it is not a simple matter of changing one
line /boot/grub/grub.conf, but seems to require something far more arcane and
there does not seem to be a simple man page that explains this.

Imap daemons for CentOS 6 (other then cyrus-imapd)

Are there any imap daemons (besides cyrus-imapd). cyrus-imapd is appearently
not compatible with postfix + procmail. I need an imap daemon that will work
with a postfix + procmail system.

Ubuntu stock 14.04 Firefox crashes on machines with NFS mounted file systems

We have 9 workstations, running Ubuntu 14.04, that are booted diskless using
drbl. For the past few versions of Firefox, (since 58 0r 59) Firefox crashes
on startup. It is basically not usable, even with a fresh profile. FF
52.6.0ESR does work however. Oh, Chrome and Chromium don't work either (never
have). We have a pair of laptops that also have Ubuntu 14.04 on them, but
they are setup to use their own internal disks. FF works on them. It
*appears* to be some weirdness with NFS (I think), but I don't know what.

Mailing list config question / minor rant

The <a href="mailto: ... at centos dot org"> ... at centos dot org</a> seems to be *uniquely* configured to hold messages with
a (single) CC to self. ALL of the other mailing lists I am on have no problem
with a CC to self. My mailer software is configured to CC to myself. This is
*only* a problem with the CentOS list. Why is this? Yes, I know it is *normal*
to configure Mailman to hold messages with a *long* CC list, since that is a
common tactic by spammers. But a CC of one? Really? Do spammers bother with
CC's with only one address?

CentOS6: HELP! EFI boot fails after replacing disks...

OK, I wanted to replace the 500G disks in a Dell T20 server with new 2TB
disks. The machine has 4 SATA ports, one used for the optical disk and three
for the hard drives.

Ubuntu 14.04's Debmirror broken?

I have been using debmirror (1:2.16ubuntu1.1) on an Ubuntu 14.04 server to
maintain a local mirror of Ubuntu 14.04, but in the past week it is failing:

Use of uninitialized value $l in chop at /usr/share/perl5/LockFile/Simple.pm line 438.
Use of uninitialized value $l in string eq at /usr/share/perl5/LockFile/Simple.pm line 439.
Use of uninitialized value $stamp in chop at /usr/share/perl5/LockFile/Simple.pm line 570.
Use of uninitialized value $stamp in pattern match (m//) at /usr/share/perl5/LockFile/Simple.pm line 576.
Use of uninitialized value $hostname in string ne at /usr/share/perl5/

How do I get the kernel srpm?

I tried to follow the work flow shown in <a href="https://wiki.centos.org/Sources" title="https://wiki.centos.org/Sources">https://wiki.centos.org/Sources</a>, but
it does not seem to work:

I did this:

mkdir CentOS
pushd CentOS
git clone <a href="https://git.centos.org/git/centos-git-common.git" title="https://git.centos.org/git/centos-git-common.git">https://git.centos.org/git/centos-git-common.git</a>
git clone <a href="https://git.centos.org/git/rpms/kernel.git" title="https://git.centos.org/git/rpms/kernel.git">https://git.centos.org/git/rpms/kernel.git</a>
pushd kernel/
git checkout c6
../centos-git-common/get_sources.sh

And I got the message:

Missing metadata. Please run from inside a sources git repo

What am I missing?

Question about "generic" USB <=> Serial Port kernel drivers...

OK, I am running CentOS 6 on my Laptop and Desktop, presently kernel version
2.6.32-696.20.1.el6.x86_64 (yes, a version or so out of date -- I'll probably
do an update soon -- non-trivial since my Internet connection is via dialup).

I recently bought a couple of Adafruit Arduino compatibles, a Flora and a
Metro 328. Hooking up the Flora and the Metro to a Raspberry Pi running
Raspbian (kernel 4.9.35-v7+), tells me that the Metro 328's USB uses a FTDI
USB serial interface (ftdi_sio.ko) and the Flora uses the cdc_acm (cdc-acm.ko)
USB serial interface.

Posting check

I am wondering if I am able to post to the CentOS list.

Resetting and *locking* the Desktop in Ubuntu 14.04

We have a batch of public workstations and sometimes, somehow (I don't know
how -- I am not a user of pointy-clicky desktop file managers), the desktop
file manager displays ~home/ instead of ~home/Desktop. How do I fix this and
how do I prevent users from randomly changing it? Specificly, what config
files are being messed with and how do I "lock" those files (eg make them
non-writable or something). And no, I don't want a pointy-clicky solution, I
want a solution I can implement from the command line, since I suspect it
might be a matter of running a daily cron job to fix/re-fix.

Mystery printer in firefox under Ubuntu 14.04.5

For some unknown reason a "mystery" printer is showing up in FF's selection of
printers. This printer does NOT show up in 'lpstat -t'. It is not in
/etc/cups/printers.conf. And I know for sure that I uninstalled the (stupid)
deamon that finds new random printers (don't need or want that sort of "user
friendliness"). Is this a Ubuntu issue or a Firefox issue or a Unity/Gnome
issue? I have not seen this on my CentOS machines, ever. It only seems to
happen on the diskless Ubuntu machines I set up using DRBL.

"Massively" slow down the mouse -- Ubuntu 14.04

I have a user who wants to slow the mouse down slower than the slowest setting
in the preferences. Is this possible? Her problem is she is not able to
*precisely* position the mouse when editing text. And no, she does not want
to use the keyboard to position the cursor. Is there something she (or I as
the admistrator) can do?

Installing Ubuntu 14.04 on new laptops.

Has anyone had any experience installing Ubuntu 14.04 on either of these two
laptop models:

Lenovo,T420, I5 2520M, 2.5 GHZ, DDR3, 8GB,
320GB, 14.0W, GB NIC, AGN, DVD/RW, Webcam

HP,Elitebook 8460p, I5 2520M, 2.5 GHZ, DDR3,
8GB, 250GB, 14.0W, GB NIC, AGN, DVD/RW,
Bluetooth & FP Reader

Our local library is looking to buy new laptops and we need to be sure we can
install Ubuntu 14.04 on them. The rest of the library's computers all run
Ubuntu 14.04 as their desktop Operating System (all but one are set up as
"thin" clients, booting with DRBL).

CentOS 6.8, Iptables 1.4.7, and MASQUERADE

I have a server that is also a firewall router at a public library with a
fiber optic Internet connection. It is running kernel
2.6.32-642.4.2.el6.x86_64 (current CentOS 6.8) and Iptables 1.4.7 (current
stock CentOS 6.8). I having trouble with Internet throughput. I am supposed to
be getting 20Mbits down and 20MBits up, but I am not getting that. It has no
problem doing 20MBits down, but for uploads of *large* files (using different
protocols, such as ssh or http), the upload starts at 20MBits, but over time
quickly slows down to about 3MBits.

Where is the correct place to file a packaging bug report?

I need to file a packaging bug report for Ubuntu's packaging of bison++
1.21.11-3.1. At present it conflicts with bison 2:3.0.2.dfsg, but I don't
believe it really should and the conflict is really a packaging error, at
least in my judgement. There is no reason not to be able to have both
packages installed at the same time.

(I plan on snarfing the sources, etc. and fixing it.)

debmirror broken under Trusty?

When I enable downloading the Debian installers (@di_dists="dists";
@di_archs="arches"; ) I get this error:

ubuntumirror@ub140464:~$ debmirror
Errors:
Download of dists/trusty-backports/main/installer-i386/current/images/MD5SUMS
failed: 404 Not Found
Failed to download some Package, Sources or Release files!
WARNING: releasing 1 pending lock...

debmirror works just fine if the di_dists and di_archs lines are commented
out. Is there something wrong with debmirror, my configuration file, or the
distro server?

I am using us.archive.ubuntu.com as the mirror source host.

Verifing: CentOS 5 cannot resize a *live* root filesystem

Just want to verify: CentOS 5's FS utilities are too old to safely resize a
*live* (mounted, etc.) root file system (and the CentOS 5 installer/rescue
system does not include either resize2fs or fsadm utilities).

I am presuming I will need a full-fledged Live CD/DVD to resize the root file
system.

This is for an old 32-bit laptop that presently has CentOS 5.11 on it -- I
want to shrink the root file system (it is LVM) and make a separate /home file
system, then upgrade it to something newer (not C6, since it is not PAE -- I'm
*hoping* Ubuntu's 32-bit installer can deal with a non-PAE 3

NFS mounts not being mounted at boot time.

I am having trouble with a Ubuntu 14.04 system that is not mounting NFS files
systems at boot time. I have installed nfs-common and have entries in
/etc/fstab for the mounts. I noticed that Ubuntu does not have a startup
script to mount NFS disks (the way the RedHat machines I am used to do), since
it is not possible to mount NFS filesystems when one mounts local system
filesystems, since the network is not up yet. On all of the RedHat systems
there is an init script that runs later that mounts NFS file systems (and also
fires up nfslock if needed).

New Laptop Advice

I have been asked by our local librarian to spec out a new laptop for use at
our library. The library currently runs a 100% Linux shop: a CentOS 6.7
server, 10 diskless (64-bit) workstations running Ubuntu 14.04 LTS (7 public
access, 3 for staff), and three *little* (older) laptops/notebooks for patron
use also running Ubuntu 14.04 LTS. Our librarian would like to get one new,
larger laptop and I would like to keep things consistent (same user experience
across all of the machines), so I would want to put Ubuntu 14.04 LTS on it.

USB Serial ports (ttyACMn) CentOS 6.7 (64-bit) vs. CentOS 6.7 (64-bit)

I have two computers: both running CentOS 6.7, 64-bit, with
kernel 2.6.32-573.12.1.el6.x86_64. One is a laptop with an 2 core Intel
processor and the other is a desktop machine with a 4 core AMD processor. Both
with selinux enabled.

I have a USB serial port device (a RR-CirKits LCC-Buffer USB). On the desktop
I am getting this error:

sauron.deepsoft.com% sudo minicom
Device /dev/ttyACM0 access failed: No such file or directory.
sauron.deepsoft.com% dir -lZ /dev/ttyACM0
crw-rw----.

Fwd: Re: New Monitor Weirdnesses or how do I get Xorg to pay attention to my xorg.conf file?

Has anyone built the nouveau drivers for CentOS 5 system running under Xen?

Forwarded Message:

=?iso-8859-1?Q?my_xorg.conf_file=3F?=
Message-ID: <f2d6eb09-0843-402f-bd3c- ... at gmail dot com>

VESA defined modes are
- 320

New monitor weirdnesses (CentOS 5.11)

I just got a new monitor for my desktop system (the old one died after *many*
years of service). The new monitor is a high res 16:9 monitor, but the VESA video
driver insists on using 1024x768 (which was the resolution of the *old*
monitor). It does seem to detect higher, 16:9 resolutions but it is not using
them. I *think* I need to set some low-level video mode thing, but it has
been a long time since I have had to do that that I have totally forgotten how
to do it.

Two identical laptops with Ubuntu 14.04 (i386), but one fails to update...

I manage two identicatial notebooks, both have Ubuntu 14.04 (i386) installed,
but one is not picking up updates. I run 'apt-get update;apt-get
dist-upgrade' on it and it juts updates google-chrome, but nothing else.
There are no errors. The other one does its updates properly. What should I
be looking for? Nothing *seems* to be wrong in /etc/apt as far as I can tell.

Periodotic connections to http://mistletoe.canonical.com...

Why would a Ubuntu 12.04 LTS system (a VM in this case) be making periodotic
connections to <a href="http://mistletoe.canonical.com" title="http://mistletoe.canonical.com">http://mistletoe.canonical.com</a>? I am on a dialup connection
and don't really want my VMs making regular 'phone home' connections. I do
things like updates using a mirror disk kept up-to-date with manual rsync's
from a disk kept up to date with debmirror on a server on a fast network
connection. I don't need or want my VMs trying to be clever and using
bandwidth outside of my control.

CentOS on ARM7 (eg Raspberry Pi)

I saw in the anouncement for the upcoming Boston, MA conference that there
will be demos of CentOS on an ARM7 system. I am wondering: does this mean that
there is somewhere out there a build of some version of CentOS that might run
on a Raspberry Pi (which has an ARM7 processor)?

Missing Java packages for java-1.6.0-openjdk under CentOS 5

When I compile some Java code I am getting this sort of error:

"package org.apache.http.annotation does not exist"

I am presuming that I am missing a Jar file in
/usr/lib/jvm/java-1.6.0-openjdk.x86_64.

Most of the Jar files in /usr/lib/jvm/java-1.6.0-openjdk.x86_64 come from one
or another RPMs, most from the CentOS 5 distro RPMs. But I cannot figure out
which RPM(s) I am missing. I tried doing a web search for
org.apache.http.annotation with el5 and rpm, but got nothing useful. What am
I missing?