DevHeads.net

Postings by Gary Stainburn

yum update problem - dependancy problem

I'm sure this is a FAQ, and a simple answer is available, but I've not managed
it yet. I've tried all of the RPM database tidy routines. I've tried
uninstalling the libblueray1 library but the ever growning dependency tree
was too big.

For a while I've been updating using the command

yum -y --skip-broken --exclude rpcbind update

which I though t was working, but the list of rpm's not updated is ever
growing so i need to find a solution. Here is the output from the yum update.

Centos 6 Airprint using CUPS/Avahi

I've set up another airprint server, but this time I've had to use Centos 6
because of the age of the kit I'm using - an old 1U rack server.

I've configured CUPS and also Avahi. I've run airprint-generate.py and copied
the .service files to /etc/avahi/services/

Everything looks fine until I try to print from my IPhone. I usually test by
trying to print an email.

Centos 7 specific cure for Spamassassin DNS lookup problem

I have the following error message in my /var/log/spamd

spf: lookup failed: available_nameservers: No DNS servers available!

Having Googled the error message I've found a number of responses which
involve patching Perl or Spamassassin or other cures.

Before I start changing things I was wondering if there was a Centos 7
specific resolution.

old hardware / minimal netinstall -> CPU fan control

I have just installed CentOS 6 i386 onto an old rack server (it's gonna be a
Bacula storeage server and is a 1U 1/2 depth chassis)

I did a minimum netinstall and so far so good. However, I have one problem.
The CPU fan is going at full speed constantly. Not a real problem apart from
(a) it will affect the fan's lifespan and (b) it's noisy.

I've done some Googling and found some help.

Centos 7 Samba - all shares read only

I few weeks back my server started having a problem where all shares are now
readonly. AFAIK nothing has changed except a 'yum update' which was probably
around the same time.

Everyone still has the shares on their Win7 PC's and can see the contents.
However, if they try to open a file it opens read only. If the try to create
a new file (e.g. right click -> New -> Text Document) it says that they don't
have permission.

I am not seeing anything meaningful in the log files.

All Samba shares suddenly becoming read only

I have a Centos 7 server – ZEPPO - which I use for file sharing. The clients
are all Win7 PC's and I use Samba to serve the files. It has been working
fine ever since I put it live late last year. Now, all of a sudden, all files
are read-only.

I recently added a USB WiFi dongle to give the server a presence on the WiFi
VLAN.

rpm conflict on new install

Yesterday I did a clean install of Centos 6 -> Workstation -> Plasma.

I then added some recommended repo's and did a yum update.

I'm now getting the following:

[root@lcomp5 ~]# yum check
Loaded plugins: fastestmirror, langpacks
ipa-client-4.4.0-14.el7.centos.4.x86_64 has installed conflicts
freeipa-client: ipa-client-4.4.0-14.el7.centos.4.x86_64
ipa-client-common-4.4.0-14.el7.centos.4.noarch has installed conflicts
freeipa-client-common: ipa-client-common-4.4.0-14.el7.centos.4.noarch
ipa-common-4.4.0-14.el7.centos.4.noarch has installed conflicts
freeipa-common: ipa-common-4.4.0-14.el7.c

Buttons too big in Firefox for Linux

A while back, after doing a yum update, a new version of Firefox was installed
and since then, the contents of my pages don't fit any more because the
buttons are now much bigger.

I've done some searching and to be honest I've drowned in the results. To
make matters worse, most of the results are OLD, referring to IE version 6
and Firefox version 30.

This problem is only very recent (months). The problem is only in Firefox for
Linux.

Reliable way of having both LAN and WIFI on headless box

Once again I am building a headless Centos 7 box that needs to reliably be on
both the LAN and WIFI network at all times. Amongst other things it's going
to be an AirPrint bridge enabling IPads to print to printers on a different
VLAN.

I have asked about this before and got a solution working using nmtui to set
up both the LAN and WIFI interface, and activate them. However, the WIFI
link is unreliable. Sometimes it doesn't activate, or after a while
de-activates.

Network Manager - force activation of multiple connections

For each of my sites I have set up a server to act as AirPrint server. This
requires the LAN connection that the servers have always had, plus a WIFI
connection to give it a presence on the WIFI (The WIFI and LAN are on
separate VLANS)

I have finally dragged myself into the 21st century and used NetworkManager
for the connection, using nmtui to do the work.

The problem I have is that on most of these servers, thw WIFI connection
doesn't always activate on bootup and I have to go into nmtui -> activate ->
WIFI etc.

Server turns off unexpectedly

A few weeks back I built a new Centos 7 server from a 4 year old workstation
PC, and a brand new HDD.

This PC had no prior problems other than it ran Windows 7. Thew new HDD is
because I'm planning to also use it as a Bacula storage device.

For the moment is purely an AirPrint server, using CUPS and Avahi so is ide
99.9% of the time.

My priblem is that twice now it has turned itself off, the last time being at
7:40am today.

Headless Centos 7 "File and Print Server" install - configure WIFI

Google has done it's usual job and returned lots of results but not led me to
a solution.

I've just build a Centos 7 "File and Print Server" config, i.e. no
screen/keyboard/mouse and no GUI installed.

The LAN connection has worked out of the box and I can SSH into the server
without issue.

However, I cannot find out how to configure the WIFI connection which I need
in order to provide Air Print services.

I'm using a USB dongle which the kernel has recognised and provides me with a
device. I can use that device to scan for available WIFI networks.

Airprint to old printer using Centos server

Hi folks,

I've found a number of articles on setting up a Linux / CUPS / Avahi server to
allow airprinting, but they all seem to be quite old.

Two questions:

1) Does anyone have a link for a more recent article, hopefully specifically
for Centos7.

2) I'm on a structured, VLAN network. Will I have to put a WIFI card into my
Centos server to give it a presence on the WIFI before this will work?

Gary

Firefox and Chrome - dicking about with my volume.

I have Centos 7 installed on my laptop which works perfectly fine.

I use a variety of music apps including VLS, mplayer and squeezelite.

HP Envy EFI problem after BIOS update

I had to boot my HP Envy into Win8 for the first time in ages this morning.
When I did that, it installed some updates including a BIOS update.

Once this was all done, once again the GRUB boot menu was gone and it booted
straight into Win8. Using the advanced boot manager options in Win8 I
managed to get the EFI boot menu up and chose Ferdora 21.

It was only after Fedora failed to boot that I realised that this was wrong.

yum update (first in a long time) - EXIM environment variable warning

Me again,

Another problem I've found since doing my yum update is that EXIM is now
showing the following error, on startup, and repeatedly in main.log

[root@ollie2 ~]# exim -bt <a href="mailto: ... at example dot com"> ... at example dot com</a>
2016-05-06 09:27:04 WARNING: purging the environment.
Suggested action: use keep_environment and add_environment.

...............

Googling says that to fix this all I need to do is add

keep_environment

to exim.conf.

yum update (first in a long time) - /var/log/dovecot no longer used

Me again,

Another change to my Centos 7.2 system since my 'yum update' yesterday is
that /var/log/dovecot is no longer written to.

If I do 'systemctl status dovecot' I can see log entries. How can I now do the
equiv or 'tail -f <logfile>'

Also, why has this changed, and where is it documented?

Dovecot on C7.2 - secure internet access

I have a mail server running on Centos 7.2 which has been working for my LAN
for a long time.

I'm at the point where I have to make it accessible to the internet. At the
moment, access can be insecure but as it's on my LAN it isn't an issue.

However, for internet access I wish to force SSL/TLS.

yum update (first in a long time) has broken clamd.exim

I have just run a 'yum update' on a Centos 7.2 server which updated several
hundred RPMs.

The update worked fine with no errors or warnings

I then rebooted the server and now my EXIM is rejecting emails because the
clamd service isn't running.

So I tried:

[root@ollie2 ~]# systemctl restart clamd.exim
Failed to restart clamd.exim.service: Unit clamd.exim.service failed to load:
No such file or directory.
[root@ollie2 ~]# systemctl list-unit-files --type=service|grep -i exim
exim.service enabled
[root@ollie2 ~]# systemctl list-unit-files --type=service|grep

Hylafax without modems - SIP?

I've just had to replace my Hylafax server as the cooling fan in the rack case
has died and could not be replaced.

My box runs three fax modems, one for each of the original 3 fax machines that
got skipped years ago.

This means that I now have 3 lots of:

USB to seral converter (new box doesn't have any COM ports.
9pin->25-pin serial cable
Modem
power supply
phone line
analogue port on our Mitel 3300 controller

I was wondering if there a better way?

I've done lots of Googling and there is a lot of conflicting - and mostly very
old - information out there.

Does anyone have any more up-t

LDAP setup on Centos 7

I am trying to get LDAP working on my mail server for both user authentication
and addressbook purposes.

I have tried the tutorials on both

<a href="http://www.server-world.info/en/note?os=CentOS_7&amp;p=openldap&amp;f=1" title="http://www.server-world.info/en/note?os=CentOS_7&amp;p=openldap&amp;f=1">http://www.server-world.info/en/note?os=CentOS_7&amp;p=openldap&amp;f=1</a>

and

<a href="http://albanianwizard.org/ubuntu-10-0-4-lucid-lynx-ldap-configuration-the-working-how-to.albanianwizard" title="http://albanianwizard.org/ubuntu-10-0-4-lucid-lynx-ldap-configuration-the-working-how-to.albanianwizard">http://albanianwizard.org/ubuntu-10-0-4-lucid-lynx-ldap-configuration-th...</a>

(The second one is for Ubuntu, but claimed to be a complete and working demo)

However, when I try to last part of each of these tutorials I get the
following.

ldapadd -x -D cn=admin,dc=ringways,dc=com -W -f /tmp/dit.ldif
Enter LDAP Password:
ldap_bind: Invalid credentials (49)

Detecting empty office doc containing virus macro

We are receiving LOTS of emails that contain empty XLS or DOC documents with
embedded virus macros.

/run and /var/run as tmpfs - how many RPM's broken?

This is pretty much a retorical question, although I would like to know the
extent of the problem and how quickly it's gonna be sorted.

My problem has already been described in a previous post, i.e.

clamav / EXIM on Centos 7

Me again,

I'm still building my new mail server and I'm struggling getting clamav and
exim to talk to each other.

I've installed:

clamav-server-0.98.7-1.el7.x86_64
clamav-lib-0.98.7-1.el7.x86_64
clamav-0.98.7-1.el7.x86_64
clamav-milter-0.98.7-1.el7.x86_64
clamav-data-0.98.7-1.el7.noarch
clamav-update-0.98.7-1.el7.x86_64
clamav-milter-systemd-0.98.7-1.el7.noarch
clamav-filesystem-0.98.7-1.el7.noarch
exim-mon-4.84-4.el7.x86_64
exim-4.84-4.el7.x86_64
exim-greylist-4.84-4.el7.x86_64
exim-pgsql-4.84-4.el7.x86_64
spamassassin-3.4.0-1.el7.x86_64

I configured EXIM and Spamassassin.

Fedora 9 -> Centos 7 upgrade Dovecot problem

Hi all,

I'm upgrading my old F9 mail server to Centos 7 and all is going well.
However, I've got a problem with recently created users.

I've rsync'd /home and /var/spool/mail after moving /etc/passwd and /etc/group

I used the default locations on the old F9 server, i.e.

perl-Net-SCP on Centos 7

As part of building my new mail server, I'm installing the RPMS to match my
old server.

However, I can't find a perl-Net-SCP RPM for this version. Can someone point
me to where I can get it, preferrably a repo that I can use that has it.

I have found perl-Net-SCP-0.08-1.el6.rf.noarch.rpm. As a last resort I could
localinstall that. Would it have any nasty side effects?

Gary