Re: [CentOS] gdm doesnt work.

2014-12-08 Thread David Both

Try this:

/etc/systemd/system/display-manager.service -> 
/usr/lib/systemd/system/kdm.service

Only in your case it would be gdm.service.


On 12/08/2014 11:49 AM, dE wrote:

On 12/08/14 22:02, m.r...@5-cent.us wrote:

dE wrote:

Hi!

I just installed GDM on centos 7. I'm starting it by # gdm.

However, all I see is a text cursor (as with the TTYs), nothing else.

X works well. Logs have no errors.

GDM logs are a copy of X logs.

Are you at runlevel 5?

   mark



I tried isolate graphical.target also.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] flash-plugin

2014-12-16 Thread David Both

I get the same symptom when trying to upgrade from the Adobe repo on Fedora 20.

On 12/16/2014 01:40 PM, Bill Maltby (C4B) wrote:

On Tue, 2014-12-16 at 12:33 -0600, kqt4a...@gmail.com wrote:

On Tue, 16 Dec 2014, m.r...@5-cent.us wrote:


kqt4a...@gmail.com wrote:


What am I doing wrong?

# yum update flash-plugin
Setting up Update Process
No Packages marked for Update

# yum install flash-plugin
Setting up Install Process
Package flash-plugin-11.2.202.394-0.1.el6.rf.i686 already installed and latest 
version
Nothing to do

That is picking up from rpmforge (or is it reporforge now?).

You want to go to the Adobe site and get their repo set up. After set up
you'll have

adobe-linux-x86_64.repo

in /etc/yum.repos.d




HTH,
Bill

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] X11 console

2014-12-18 Thread David Both

+1

It can be quite annoying when the X console is changed from one Virtual Console 
to another as happens with almost every release of CentOS and Fedora. I would 
really like it to be always consistent at Console 7. And the "real" system 
console should always be Console 1.


I am OK with change, but this seems to be fairly random change with know 
apparent advantage or benefit.


It is a big deal to keep it consistent. That way I know what to tell customers 
when they call and I have to talk them through a procedure over the phone.


Thanks!


On 12/18/2014 08:10 AM, Andreas Benzler wrote:

Hello Guys…

I need to revert the X11 graphical server to Console 7.
and  enable VT1 as normal text as it was on the old distr..

Sincerely

AndyBe

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Orwell's 1984 from Freedesktop,org?

2015-01-23 Thread David Both



I run a small consulting service and work with both individuals and (very) small 
businesses. The objective of my consulting business is to help average people 
move to Linux when they decide that they have had enough of the M$ money wheel 
and endless malware infections.


Not one individual who belongs to that class of users cares how Uniix/Linux 
works, how it does updates or how to install new stuff. They *DON'T WANT* to 
know all that stuff. They want only one thing; to use the computer as a tool to 
perform needed personal or business tasks.


My wife is my most frequent client and she in every way reflects the attitude of 
every customer - except for two - that I have. "Don't teach me how the computer 
works. I don't care. Just make it work for me," is the common refrain. If there 
is a problem, she calls me; if she wants new software installed, she calls me; 
if updates are required, she does not want to see any pop-up messages, she just 
wants her system to be updated automatically when needed.


In most cases I go onsite to install new software or do updates. HOWEVER!!! 
There are times when I need to talk a customer through doing something that they 
would never, ever do if there were any other choice. They understand when that 
happens and together we can always do it in far less time than it would take for 
me to travel there and back.


But I *NEVER* want them to go mucking about on their own - EVER! They have no 
idea what they are doing and should not be doing any type of admin stuff - and 
that is really how they want it. They should be password protected from 
everything administrative or they will cause me much more work and cost 
themselves a great deal of money as I try to fix the predicament that they have 
gotten themselves into. For example, I cannot tell you how many times I get a 
call from users who have purchased a new printer and tried to install the 
software from the accompanying CD. AARRRGGHHH!! I tell them to just plug it in 
and it should work without installing any software, and for those who have 
purchased Lexmark printers, I tell them to take it back and get something 
supported. I am so glad they cannot try to force that software onto the Linux box.


I disable and remove PackageKit to prevent that kind of stuff.

As for those other two customers, they don't really care much anyway. They have 
the knowledge but not the time to perform the tasks they hire me to do. They 
really don't want me to change much as they have it working the way they want 
and like it. That includes updates - or not doing updates - and everything else.


For those historically ignorant developers, I say that they had *BETTER* care 
how it has always been done! It is that history, that philosophical difference 
from other operating systems that has made Linux as popular as it is today. 
Change is good, but the philosophy of Linux is important to ensure that the 
power, flexibility, security, reliability, and quality of Linux do not suffer.


See my article: https://opensource.com/business/14/12/linux-philosophy and I 
have another article as follow-up that should appear there soon.




So, Scott, that is a very long-winded and rantful way of saying that I agree 
with you. ;-)




On 01/23/2015 06:37 AM, Scott Robbins wrote:

Originally, packagekit, which is a GUI package manager, wanted to allow all 
users to install anything without a password. When a bug report was filed, the 
developer mentioned that they didn't care how Unix had done things in the 
past. This made the front page of slashdot, to almost universal derision, and 
RH changed it. In Fedora, I believe it still allows any user to update an 
installed signed package without asking for authentication. They tried to do 
that in RH as well, but a bug report was filed, and it was changed. In my less 
than humble opinion, this is how it should be. A non-privileged user should 
not be allowed to make changes to the system.

--






--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Very slow disk I/O

2015-01-28 Thread David Both

+1

And remember that I/O is more than just disk. The atop monitor gives you 
information like top and htop, but also provides a lot of I/O information as 
well including network. Perhaps your server is the target of a network-based 
DDOS attack which can cause lots of I/O wait time. Also look at top to see what 
numbers are in the si and hi columns. THese stand for software and hardware 
interrupts. If one of those is high you can also narrow it down.


Hope this helps.

On 01/28/2015 07:51 AM, Nicolas Thierry-Mieg wrote:

On 01/28/2015 01:32 PM, Jatin Davey wrote:

Hi Users

I am using RHEL 6.5 on my server.

 From top command i can see that the processors in my server are
spending a lot of time on wait for I/O.
I can see high percentage in terms of 30-50% on "wa" time.

Here is the df output about the disk space in my system:

**
[root@localhost images]# df
Filesystem  1K-blocks  Used  Available Use% Mounted on
/dev/sda1  1915071844 103227908 1714563936   6% /
tmpfs32931472 0   32931472   0% /dev/shm
**

Could someone point me on how to improve the disk I/O on my server and
reduce the wait time on I/O.


you could use iotop or vmstat to see what processes are causing the IO.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Easy way to strip down CentOS?

2015-02-26 Thread David Both
Perhaps I have not been following closely enough, but why go backwards? Why not 
start with a "minimal" installation and then add only those packages that are 
needed for your situation?







--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Easy way to strip down CentOS?

2015-02-26 Thread David Both
Ok, I understand, now. I just leave multiple desktops in place and switch 
between them as I want. But perhaps you have reasons to do it as you do. That is 
one thing I really appreciate about Linux, the fact that there are many, many 
ways to accomplish almost everything and that what is right and works for me may 
not be what works best for you.


Your scripting style is irrelevant so long as it gets the job done for you. And 
one tenet the Unix/Linux Philosophy is, "automate everything," which is what you 
have done.



On 02/26/2015 09:21 AM, Niki Kovacs wrote:



Le 26/02/2015 15:00, David Both a écrit :

Perhaps I have not been following closely enough, but why go backwards?
Why not start with a "minimal" installation and then add only those
packages that are needed for your situation?


Here's why.

I'm currently experimenting with CentOS on my workstation, trying out 
different desktop environments like GNOME3, KDE, MATE, Xfce. But at the same 
time, I'm also working on that same workstation, for example developing 
websites on a local LAMP stack, using multimedia apps like Audacity to edit 
some audio tracks for my training courses, etc.


When switching from one desktop environment to another for the sake of trying 
it out, there's always tons of cruft on the system, even after a yum 
groupremove "Old Desktop Environment". And I don't want to do a fresh 
reinstallation, because I have all my data and files in place, and this is a 
RAID 1 installation, so it's not exactly trivial to reinstall and put 
everything back in place.


Anyway, I spent a couple hours experimenting, and I found a satisfying 
solution. It's not very elegant, but it works. Here goes.


1. First, make a list of the packages contained in a minimal installation. 
This is easy, since I can do a minimal installation in a virtual guest, and 
then run the following little script:


#!/bin/bash
#
# create_package_list.sh
#
# (c) Niki Kovacs, 2014

TMP=/tmp
RPMLIST=$TMP/rpmlist.txt
PKGLIST=$TMP/pkglist.txt
rm -f $RPMLIST $PKGLIST
rpm -qa | sort > $RPMLIST
sed 's/-[^-]*-[^-]*\.[^.]*\.[^.]*$//' $RPMLIST > $PKGLIST

2. I copy that package list to the 'core' file in my Git repo and run the 
following script on the system I want to prune:


#!/bin/bash
#
# purge_system.sh
#
# (c) Niki Kovacs, 2014

CWD=$(pwd)
TMP=/tmp

RPMLIST=$TMP/rpmlist.txt
PKGLIST=$TMP/pkglist.txt
PKGINFO=$TMP/pkg_database

rpm -qa | sort > $RPMLIST

sed 's/-[^-]*-[^-]*\.[^.]*\.[^.]*$//' $RPMLIST > $PKGLIST

PACKAGES=$(egrep -v '(^\#)|(^\s+$)' $PKGLIST)

rm -rf $RPMLIST $PKGLIST $PKGINFO
mkdir $PKGINFO

# Create core package database
echo
echo "+=="
echo "| Creating core package database..."
echo "+=="
echo
sleep 3
CORE=$(egrep -v '(^\#)|(^\s+$)' $CWD/../pkglists/core)
for PACKAGE in $CORE; do
  printf "."
  touch $PKGINFO/$PACKAGE
done

unset CRUFT

# Check installed packages against core package database
echo
echo
echo "+"
echo "| Checking for packages to be removed from your system..."
echo "+"
echo
sleep 3
for PACKAGE in $PACKAGES; do
  if [ -r $PKGINFO/$PACKAGE ]; then
continue
  else
printf "."
CRUFT="$CRUFT $PACKAGE"
  fi
done

echo
echo

# Remove all non-core packages
yum remove $CRUFT

I've tested this a few times, and it works as expected. I know my scripting 
style is a bit hodge-podge. If you have a more elegant solution, I'm always 
open for suggestions.


Cheers,

Niki



--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Problems with getty and X on runlevel switch [Was: Re: The future of centos]

2015-04-08 Thread David Both
The easy way to restart gdm is when you are on the login screen itself or the 
desktop simply press Ctrl-Alt-Backspace. This works for Upstart in CentOS 6.x 
but will not work for CentOS 7.x which uses Systemd. The service command does 
not work for gdm. However, logging out of the desktop will restart gdm. It works 
for the graphical login exactly like the gettys in a TTY environment.


On 04/08/2015 06:36 AM, Liam O'Toole wrote:

On 2015-04-04, Bill Maltby (C4B)
  wrote:

On Sat, 2015-04-04 at 11:12 +0100, Nux! wrote:

100% with Digimer here.  
All this energy should be put into contributing towards to the
project, testing, helping out community.

Well, I used to agree. But when a bug report filed in December goes
untouched entering April, which I don't recall happening prior to RH
subsuming the project, it takes away impetus to ever file one again
from lowly end users like me I think.

http://bugs.centos.org/view.php?id=7972

Thanks for drawing my attention to that bug. I encountered it the other
day after switching from runlevel 5 to 3 (and back again) on a CentOS
6.6 machine.

The purpose of the runlevel switch was to restart gdm. Is there a better
way?




--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 7.1 user login screen can't scroll up/down

2015-04-09 Thread David Both
Can you use the page-down and arrow keys to navigate the list? Which Display 
Manager ( [kxg]dm ) are you using? Try a different one if the keyboard 
navigation does not work.


On 04/09/2015 09:17 AM, Ole Holm Nielsen wrote:
After we upgraded our CentOS 7.0 desktops to CentOS 7.1, a critical error in 
the graphical login screen has appeared on all 7.1 machines:


We have 100+ users defined in /etc/passwd, and a list of names is presented on 
the initial login screen.  However, it's impossible to scroll up or down in 
this user list to select the desired user.  The middle mouse button seems to 
be disabled, so scrolling has become impossible!  One can use the left and 
right mouse buttons to select one of the users in view, but no one else.


This seems definitely to be a critical bug in CentOS 7.1.

Workarounds:

1. Log in non-graphically using Ctrl-Alt-F2, then run the command startx.

2. Trim down /etc/passwd to 1 (or a few) relevant users.


--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] IP aliases for services (including dhcpd)?

2015-04-22 Thread David Both
Yes confusion will abound. There should only ever be one and only one DHCP 
server on any network. With two you will sooner of later have multiple DHCP 
client hosts with the same IP addresses.


On 04/22/2015 03:36 PM, Les Mikesell wrote:

I'd like to consolidate the services from several old servers onto 2
CentOS7 VMs that are currently running dhcpd in a balanced/failover
configuration.   It will simplify things to add the IPs from the old
servers as aliases, at least temporarily so everything will continue
to connect without changes.

However, after adding the first one, I see in the logs that DHCPD is
sending its DHCPACKs alternating between ens192 and ens192:0 every
other time, but oddly it is always using the non-alias IP as the
source every time according to tcpdump -n.  Is this configuration
likely to confuse anything?


--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Rsync and differential Backups

2015-11-09 Thread David Both

I beg to differ.

The rsync command is a fantastic backup system. It may not meet your 
needs, but it works really great to make different types of backups for 
me. I have a script I use (automate everything) to perform nightly 
backups with rsync. Using rsync with USB external hard drives works far 
better than any other backup system I have ever tried.


As for your other statements, they may be meaningful to you and that is 
OK, but to me are just so much irrelevant semantics. If one's backup 
system works, terminology and which commands used to achieve it are 
beside the point - it is a true backup system.



On 11/09/2015 12:59 PM, John R Pierce wrote:

On 11/9/2015 9:50 AM, Gordon Messmer wrote:


I don't see the distinction you're making.


a incremental backup copies everything since the last incremental

a differential copies everything since the last full.

rsync is NOT a backup system, its just a incremental file copy


with the full/incremental/differential approach, a restore to a given 
date would need to restore the last full, then the last differential, 
then any incrementals since that differential, for instance, if you do 
monthly full, weekly differential and daily incrementals.If you 
don't use differentials, then you'd have to restore every incremental 
since that last full, which in a monthly full, daily incremental 
scenario could be as many as 30 incrementals.




--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] getting X started...

2015-12-01 Thread David Both
For CentOS 5 or 6, edit /etc/inittab to default runlevel 5. For CentOS 
7, in the */etc/systemd/system *directory, Remove the existing 
default.target link. An error will occur while attempting to create the 
new link if you do not do this.Run the following command to generate a 
new link to the desired run target. *

*

*systemctl enable graphical.target
*

*
*

On 12/01/2015 05:04 PM, Fred Smith wrote:

I've got a new VM installed for me by a sysadmin who apparently did a minmal 
install.

As a result I've installed a bunch of things to try to get X going,  including
yum groupinstall "development and creative workstation", "Desktop platform" "mate 
desktop"
but so far I've not found the incantation to get it to start up X at boot time.

As far as I can tell, it doesn't even try. Once I log in, startx works fine.

Can someone point me to whatever it is I'm missing here?

thanks!

--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Setting up PXE server

2015-12-17 Thread David Both

Ooops. Sent from wrong address.

Have you tried this:

http://www.databook.bz/?page_id=9



On 12/17/2015 06:50 PM, david wrote:

Folks

On a lark, I am trying to set up a PXE server so I can use network
boots to load new computers {some of which are virtual) at home. It's
more of an intellectual exercise than a work necessity.  I've read
several "how to" documents, and even the one on the RedHat site
doesn't help.  (For example, it refers to /etc/xinet.d instead of
/etc/xinetd.d, and the careless references continue elsewhere.)

My goal is to make it possible to load a computer using network boot
with the equivalent of the "net-install" of Centos 7.  My gateway
computer serves as a DHCP and (internal) DNS server for my in-house
machines.  Are there any good references, or working examples I could
look at?

My gateway is running Centos 6, but I'm hoping the model will work
when I convert the gateway to Centos 7.

Thanks

David

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


--

*
"I'd put my money on the sun and solar energy. What a source of power! I 
hope we don't have to wait until oil and coal run out before we tackle 
that."
 - Thomas Edison, in conversation with Henry Ford and Harvey Firestone, 
1931

*
David P. Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not 
consent to the
retrieving or storing of this communication and any related metadata, as 
well as
printing, copying, re-transmitting, disseminating, or otherwise using 
it. If you

believe you have received this communication in error, please delete it
immediately.


--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not 
consent to the
retrieving or storing of this communication and any related metadata, as 
well as
printing, copying, re-transmitting, disseminating, or otherwise using 
it. If you

believe you have received this communication in error, please delete it
immediately.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] (OT) Computer seems to have died

2016-01-04 Thread David Both

Power supply

On 01/04/2016 07:03 PM, tdu...@palmettoshopper.com wrote:

Hello,

I have an old IBM Netvista. Lately, it would seem to go into sleep mode
but I have all that disabled. I would have to power off to wake it up.
Now I think its done. I can't even get to the CMOS/BIOS. The power light
is on but no beeps or anything spinning up.

I have two of these Netvistas and had put on away when I upgraded one of
the machines. I pulled the HD from it and installed it in the other.
Same thng. I'm fairly certain it was working when I updraded. I've
swapped out monitors as well.

Power supply or hard drive, any ideas?

TIA
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos

--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] heads up: /boot space on kernel upgrade

2016-02-13 Thread David Both

+1 Valeri. I agree that things have changed a lot!

However, Devin, the answer to your question is that the /boot partition 
is a necessity in a LVM environment, which everything else is by 
default. The /boot partition cannot be a logical volume; it must be a 
raw disk partition with an EXT[34] file system.


On 02/13/2016 03:19 PM, Valeri Galtsev wrote:

On Sat, February 13, 2016 5:57 am, Timothy Murphy wrote:

Devin Reade wrote:


I have a CentOS 6 machine that was initially installed as CentOS 6.4
in May of 2013.  It's /boot filesystem is 200M which, IIRC, was the
default /boot size at the time.

As a matter of interest, is there any advantage today
in having a /boot partition?
I thought it went back to the days when the boot-loader
had to be near the beginning of the disk?


It is interesting to observe how perceptions are changing over time.
Decade or two ago we were partitioning small then drives (thus loosing
some of the space) just to separate regular users from those places vital
for secure and reliable running of the system. Security. There days I bet
there will be multiple experts who will bag me to death if I will try to
offer any pro partitioning argument. This is just a very interesting (for
me) observation.

Valeri


Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos

--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RasPi 3.x and RH-based Distro (Slightly OT)

2016-02-29 Thread David Both

+1

I just today installed CentOS Userland on a Raspberry Pi 2B and have 
started using it as a firewall. It is fast and really works perfectly 
for this use case. I have an HDMI to VGA adapter and a PS/2 
mouse/keyboard to USB adapter to connect to my 16 port KVM switch. I use 
a Gb Ethernet dongle for the internal network and connect the on-board 
NIC to the external network.


I have a few more tools I want to install, because the CentOS ARM image 
is very minimal. And not everything I would like is available on the 
repo, but enough to make this very workable for me.


https://wiki.centos.org/SpecialInterestGroup/AltArch/Arm32

I hope this helps.


On 02/29/2016 01:26 PM, Karanbir Singh wrote:

On 29/02/16 17:59, Benjamin Smith wrote:

With the release of the Rasberry Pi 3.x, I think we have a platform I could
jump on board with. Performance has just been lacking until now!

But I really don't want to jump the "RH ship" - I'd rather stick with an
environment I am comfortable in.

Can anybody comment here on the best way to run RHEL/Fedora/CentOS on a RasPi,
or if there's even a useful port?

join the arm-dev list ( https://lists.centos.org )  CentOS has a great
story across the entire ARMv7 and v8 platform, with every major vendor
in the ARM 64bit platform working with us. We say the rpi3 release this
morning and are going to work on a bringup to match our rpi2 images.
However, we will also be doing a 64bit image, based on CentOS Linux
7/aarch64 release

regards



--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] meminfo

2016-04-11 Thread David Both
GUI: gkrellm, kinfocenter, ksysguard, and numerous widgets for the KDE 
Plasma desktop.


CLI: top, atop, htop, glances

And there are more for each category.

On 04/11/2016 06:26 AM, Hadi Motamedi wrote:

Dear All
As far as I know , to check for the amount of installed RAM on my
centos server I checked it as:
#more /proc/meminfo
Can you please let me know how can I check for the instantaneous
occupied amount of my RAM the similar way the task manager shows it on
my Win server ?
Thank you in advance
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos

--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 6.4 installation fails with message "No usable disks have been found"

2014-04-06 Thread David Both
Specialized storage devices are NAS or other remote storage array types of 
devices. So that is not a valid option on your stand-alone system. It looks 
like 
your hard drives are visible to the Linux Anaconda installer, but you may want 
to check BIOS configuration and verify that they are configured correctly 
there. 
Unplug the power connectors to the drives and reseat them, and data cables from 
both ends and reseat those as well. Ensure that the jumpers on these parallel 
ATA drives aer set soi one is "Master" and one is "Slave." Other options may 
work, but also may not. The "CS" option is to be avoided. Be certain that the 
Master is the drive you want to be /dev/sda and the Slave will be /dev/sdb.

Based on my experience the jumpers on the hard drives are the most likely cause 
of this problem.

AFAIK, there are no "special" steps to install CentOS on any particular local 
hard drive. So long as BIOS and jumpers are correct, it should "just install."




On 04/06/2014 09:25 AM, Meikel wrote:
> Hi folks,
>
> I inherited a very old computer (I guess about 8 years old) which I'd
> like to use for some training on CentOS. I downloaded images for CentOS
> 6.4 i386 (DVD 1 and 2) and burned them onto discs. After inserting DVD 1
> into drive and booting, on the "Welcome to CentOS 6.4!" screen I select
> "Install or upgrade an existing system". I then skip the media test and
> start the installation. Then I get a graphical installer where I choose
> english language and U.S. international keyboard layout.
>
> Then I'm questioned about "What type of devices will your installation
> involve"? where I select "Basic Storage Devices" and then proceed. I get
> a dialog "Examining devices" with the message "Examining storage devices".
>
> After a short while a dialog "No disks found" appears displaying the
> message "No usable disks have been found". I then go back and choose
> "Specialized Storage Devices" but I then get the same result (no devices
> are found).
>
> Just to be sure that there are disks available and hardware works I
> installed a current Debian which works fine. From the BIOS and from
> Debian shell command "dmesg | grep -i ata" I see that there are two
> "Maxtor 6Y120L0" installed. Find output of "dmsg" below that email.
>
> Is it possible and what steps are necessary to install CentOS 6.4 on
> that "Maxtor 6Y120L0" hard disks?
>
> Regards,
>
> Meikel
>
> ---
>
>
>
> Output of "dmesg | grep -i ata"
>
> [1.690559] pata_via :00:11.1: version 0.3.4
> [1.690591] pata_via :00:11.1: can't derive routing for PCI INT A
> [1.693019] scsi0 : pata_via
> [1.693396] scsi1 : pata_via
> [1.694434] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xa800
> irq 14
> [1.694442] ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xa808
> irq 15
> [1.864541] ata1.00: ATA-7: Maxtor 6Y120L0, YAR41BW0, max UDMA/133
> [1.864549] ata1.00: 240121728 sectors, multi 16: LBA
> [1.864737] ata1.01: ATA-7: Maxtor 6Y120L0, YAR41BW0, max UDMA/133
> [1.864744] ata1.01: 240121728 sectors, multi 16: LBA
> [1.880389] ata1.00: configured for UDMA/133
> [1.896439] ata1.01: configured for UDMA/133
> [1.896738] scsi 0:0:0:0: Direct-Access ATA  Maxtor 6Y120L0
> YAR4 PQ: 0 ANSI: 5
> [1.897477] scsi 0:0:1:0: Direct-Access ATA  Maxtor 6Y120L0
> YAR4 PQ: 0 ANSI: 5
> [2.068361] ata2.00: ATAPI: HL-DT-ST DVDRAM GSA-4167B, DL11, max UDMA/33
> [2.068375] ata2.01: ATAPI: CD-956E/AKV, A99, max UDMA/33
> [2.084228] ata2.00: configured for UDMA/33
> [2.100283] ata2.01: configured for UDMA/33
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
> -- 
>
>
> *
> David P. Both, RHCE
> Millennium Technology Consulting LLC
> 919-389-8678
>
> db...@millennium-technology.com
>
> www.millennium-technology.com
> www.databook.bz - Home of the DataBook for Linux
> DataBook is a Registered Trademark of David Both
> *
> This communication may be unlawfully collected and stored by the National 
> Security Agency (NSA) in secret. The parties to this email do not consent to 
> the retrieving or storing of this communication and any related metadata, as 
> well as printing, copying, re-transmitting, disseminating, or otherwise using 
> it. If you believe you have received this communication in error, please 
> delete it immediately.
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Re-mount a drive using its label name

2014-05-16 Thread David Both
"Hard" removal? What the heck is that!? ***ALWAYS*** umount a drive before 
removing it. Clearly you are experiencing the side effect of and are a good 
example for the bad things that can happen when one does not umount a drive 
before removing.



On 05/16/2014 02:30 PM, Mauricio Tavares wrote:
> On Fri, May 16, 2014 at 2:03 PM, Raghuv Adhepalli
>  wrote:
>> @mark: I didn't umount the drive before removing. Was performing hard
>> removal.
>> I will try clearing the concerned UUID and see if that mounts the drive
>> back.
>>
>As an alternative, I think you can change the UUID of a device.
>
>> Raghuv.
>>
>>
>> On Fri, May 16, 2014 at 11:59 AM,  wrote:
>>
>>> Raghuv Adhepalli wrote:
>>> 
>>>> @mark: This is my dmesg output,
>>>>
>>>> XFS (sdf): xfs_log_force: error 5 returned.
>>>> sd 0:0:9:0: [sdj] Synchronizing SCSI cache
>>>> sd 0:0:9:0: [sdj] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
>>>> mpt2sas0: removing handle(0x000e), sas_addr(0x443322110500)
>>>> XFS (sdf): xfs_log_force: error 5 returned.
>>> >>>   sdj: unknown partition table
>>>> sd 0:0:10:0: [sdj] Attached SCSI disk
>>>> XFS (sdj): Filesystem has duplicate UUID
>>> 
>>> This concerns me. As I asked, you *did* umount the drive before removing
>>> it? I would expect that to remove the UUID from /dev/disk/by-uuid; for
>>> some reason, it's clearly still there, and I think that's what's confusing
>>> the system.
>>>
>>>  mark
>>>
>>> ___
>>> CentOS mailing list
>>> CentOS@centos.org
>>>
>>> https://urldefense.proofpoint.com/v1/url?u=http://lists.centos.org/mailman/listinfo/centos&k=2a4Akkj3oY%2FOkjwft1MTMw%3D%3D%0A&r=tMZHZRUDG2%2BTRwBxuWe2n5rPULoPCwzzTu%2BUi79RuVM%3D%0A&m=tXDizAMl3RlLtrBcA8DEk%2B6XsJ032GhcgvkpKDNtP1c%3D%0A&s=6ba4bf4e62a08e2c22efa41963aa238bddc0b41b6d00322d8deae79962c86e83
>>>
>> ___
>> 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
>
> -- 
>
>
> *
> David P. Both, RHCE
> Millennium Technology Consulting LLC
> 919-389-8678
>
> db...@millennium-technology.com
>
> www.millennium-technology.com
> www.databook.bz - Home of the DataBook for Linux
> DataBook is a Registered Trademark of David Both
> *
> This communication may be unlawfully collected and stored by the National 
> Security Agency (NSA) in secret. The parties to this email do not consent to 
> the retrieving or storing of this communication and any related metadata, as 
> well as printing, copying, re-transmitting, disseminating, or otherwise using 
> it. If you believe you have received this communication in error, please 
> delete it immediately.
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Analyzing the MBR

2014-06-05 Thread David Both

The dd command shows you **exactly** what is in the MBR and, if you want, the 
following sectors. But the following sectors are not particularly relevant to 
boot. THe MBR contains the boot record and the partition table. There is not 
room for anything else. But your problem is not with the MBR so the solution 
does not lie there.

Although you have already reinstalled, you might have recovered by changing the 
boot order of the hard disks in the BIOS configuration for your computer. Most 
computers have that capability these days. You might also have booted to a 
recovery disk (most install DVDs have recovery mode as a menu option) and noted 
the sequence in which the drives were recognized by BIOS by using the dmesg 
command. Perhaps you plugged the drives back into different locations on the 
bus. Are they PATA or SATA?

As far as what appears to be your original problem, discovering information 
about a hard drive, the smartctl command can give you plenty of information 
about a drive even if it is not in the database. You just need to use the -a or 
-x options. You could also have used fdisk -l /dev/ to display the 
basic capacity information about the drive. And the dmesg command can also give 
you information about your hard drives and the way the kernel sees them before 
you need to use rescue mode.

I hope this helps a bit for future issues.



On 06/05/2014 07:01 AM, Timothy Murphy wrote:
> Is there any tool for analysing the MBR on a computer?
> I know one can just dd it and see roughly what it contains.
> But surely one should be able to work out the exact content
> of the MBR and the neighbouring sectors read at boot time?
>
> I had a difficult day, probably due to my ignorance,
> which would have been solved at once by such a tool.
> I had taken one of three hard disks out of my home server
> (to see exactly what it was, as smartctl said it was not
> in its database) and this had the effect of altering
> the order of the disks in the BIOS, preventing re-booting.
>
> It was only after I had re-installed CentOS in a spare partition
> that I realized what had happened.
> Incidentally, before this I had tried
> what I take to be the standard way of solving this problem,
> by running a CentOS Live USB stick, mounting the root partition
> and trying to chroot to this, but that did not work -
> chroot on the stick would not run,
> and neither would chroot on the disk.
>
> I'm wondering if there was some other method I could have tried?
> For example, I tried running a Fedora netinstall USB stick,
> which has a "Try to repair the system" option in Troubleshooting.
> This saw the system OK, but did not have grub-install on it.
> As far as I could see, none of the CentOS install disks
> has such a tool on it?
>
>
>
>
> -- 
>
>
> *
> David P. Both, RHCE
> Millennium Technology Consulting LLC
> 919-389-8678
>
> db...@millennium-technology.com
>
> www.millennium-technology.com
> www.databook.bz - Home of the DataBook for Linux
> DataBook is a Registered Trademark of David Both
> *
> This communication may be unlawfully collected and stored by the National 
> Security Agency (NSA) in secret. The parties to this email do not consent to 
> the retrieving or storing of this communication and any related metadata, as 
> well as printing, copying, re-transmitting, disseminating, or otherwise using 
> it. If you believe you have received this communication in error, please 
> delete it immediately.
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Where to change login screen options

2014-06-06 Thread David Both
Switch to KDM instead of GDM as the default display manager. This will change 
the login screen and require typing a username which is much more secure. It 
will not change your desktop but you may have to select GNOME or KDE the first 
time you log in if you have both installed.

On 06/06/2014 10:34 AM, Wes James wrote:
> I've looked around in the menus and googled this, but I can't find a way to 
> make the login require a username instead of just showing the available users 
> to select from.  Where do I change this?  I'm using CentOS 6.5.
>
> Thanks,
>
> -wes
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
> -- 
>
>
> *
> David P. Both, RHCE
> Millennium Technology Consulting LLC
> 919-389-8678
>
> db...@millennium-technology.com
>
> www.millennium-technology.com
> www.databook.bz - Home of the DataBook for Linux
> DataBook is a Registered Trademark of David Both
> *
> This communication may be unlawfully collected and stored by the National 
> Security Agency (NSA) in secret. The parties to this email do not consent to 
> the retrieving or storing of this communication and any related metadata, as 
> well as printing, copying, re-transmitting, disseminating, or otherwise using 
> it. If you believe you have received this communication in error, please 
> delete it immediately.
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cemtos 7 : Systemd alternatives ?

2014-07-07 Thread David Both


On 07/07/2014 08:46 PM, Robert Moskowitz wrote:
> On 07/07/2014 07:47 PM, Always Learning wrote:
>> Reading about systemd, it seems it is not well liked and reminiscent of
>> Microsoft's "put everything into the Windows Registry" (Win 95 onwards).
>>
>> Is there a practical alternative to omnipresent, or invasive, systemd ?
>>
> So you are following the thread on the Fedora list?  I have been
> ignoring it.
>
> Best I can tell is learn it and use it.  And if you have any services,
> fix them so that they work with systemd.  I work with one that does not
> and it is very slow to complete its startup.
>
As far as I know there is no going back to SystemV at this point and I am fine 
with that.

systemd is just fine. It has been around on Fedora for a few releases now. It 
is 
quite compatible with old SystemV start scripts and systemd simply uses the 
SystemV start scripts as configuration files to start those services.

What you are probably seeing is the result of a side effect of the new systemd 
strategy. systemd only starts services when they are actually needed. systemd 
does this by simply creating a socket on which it listens for requests for that 
service. The service is only started when a request is made to that socket. Of 
course some services are up and running from the beginning, but those not 
needed 
are left to load and start when a request is made on the socket for that 
service. So the delay in starting your SystemV service means that your service 
is waiting for a reply from a service on which it depends and which has not yet 
been started. systemd receives the request from your service on the socket 
intended for the service yours is requesting. systemd then starts that service 
and returns the result - after a bit of a delay - to your SystemV service. 
After 
the first request to the systemd managed service, there should be no further 
delays. Unless the service is seldom used and systemd determines it can remove 
the service from memory with minimal impact.

I like systemd a lot. I still like SystemV a lot, too.

I have a page on one of my web sites that does not explain systemd, but rather 
provides a number of very good links that do explain it - in morbid detail. 
These links also discuss the philosophy behind the change. Good reading!

http://www.databook.bz/?page_id=2578

The latest Fedora documentation has good information about using systemd to 
manage services and managing and configuring systemd itself.

> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
> -- 
>
>
> *
> David P. Both, RHCE
> Millennium Technology Consulting LLC
> 919-389-8678
>
> db...@millennium-technology.com
>
> www.millennium-technology.com
> www.databook.bz - Home of the DataBook for Linux
> DataBook is a Registered Trademark of David Both
> *
> This communication may be unlawfully collected and stored by the National 
> Security Agency (NSA) in secret. The parties to this email do not consent to 
> the retrieving or storing of this communication and any related metadata, as 
> well as printing, copying, re-transmitting, disseminating, or otherwise using 
> it. If you believe you have received this communication in error, please 
> delete it immediately.
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cemtos 7 : Systemd alternatives ?

2014-07-08 Thread David Both
I still prefer IPTables, so in Fedora I simply disabled firewalld and enabled 
IPTables. No need to uninstall. I have read that IPTables will continue to be 
available alongside firewalld for the unspecified future.

Note that IPTables rule syntax and structure have evolved so your ruleset may 
need to be updated. I did find that the current version of IPTables will 
actually convert old rulesets on the fly, at least as far as the syntax of the 
individual rules is concerned. From there you can simply use iptables-save to 
save the converted ruleset.

One of the items on my tudo list is to learn firewalld. The switch from 
ipchains 
took a bit of learning and I expect this switch will as well.

One of the stated reasons for firewalld is that dynamic rule changes do not 
clear the old rules before loading the new ones, to paraphrase, "where IPTables 
does." If true, that would leave a very small amount of time in which the host 
would be vulnerable. I have no desire to peruse the source code to determine 
the 
veracity of that statement, so if there is someone here who could verify that 
changing the rules in IPTables, whether using the iptables command or the 
iptables-restore command, I would be very appreciative. No need to go to any 
trouble to locate that answer as I am merely curious.

Thanks!


On 07/08/2014 08:00 AM, Dennis Jacobfeuerborn wrote:
> On 08.07.2014 09:12, Ljubomir Ljubojevic wrote:
>> On 07/08/2014 03:41 AM, Always Learning wrote:
>>> On Mon, 2014-07-07 at 21:34 -0400, Scott Robbins wrote:
>>>
>>>> No systemd in FreeBSD.  It isn't Linux, and like any O/S, has its own
>>>> oddities.
>>>>
>>>> It would take more adjustment, IMHO, to go from CentOS 6.x to FreeBSD than
>>>> to go to 7.x.  (I'm saying this as someone who uses both FreeBSD and
>>>> Fedora which has given a hint of what we'll see in CentOS 7.)
>>> Thanks. I've deployed C 5.10 and C 6.5. Thought I'll play with C 7.
>>>
>>> I notice, from http://wiki.centos.org/Manuals/ReleaseNotes/CentOS7, the
>>> apparent replacement of IPtables by firewalld
>>>
>>> https://fedoraproject.org/wiki/FirewallD
>>>
>>>
>> Check "Static_Firewall" Chapter:
>> https://fedoraproject.org/wiki/FirewallD#Static_Firewall_.28system-config-firewall.2Flokkit.29
>>
>> and one below it. You can have iptables rules and also rules from
>> system-config-firewall
>>
> If you want to avoid firewalld for now you can uninstall it and instead
> install the iptables-services package. This replaces the old init
> scripts and provides an "iptables" systemd unit file that starts and
> stops iptables and if you require the old "service iptables save"
> command you can reach that using "/usr/libexec/iptables/iptables.init".
>
> Also if you want to keep NetworkManager on a Server you can install the
> NetworkManager-config-server package. This only contains a config chunk
> with two settings:
> no-auto-default=*
> ignore-carrier=*
>
> With this package installed you get a more traditional handling of the
> network. Interfaces don't get shutdown when the cable is pulled, no
> automatic configuration of unconfigured interfaces and no automatic
> reload of configuration files (the last one doesn't require the package
> and is now the NetworkManager default behaviour).
>
> Regards,
>Dennis
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
> -- 
>
>
> *
> David P. Both, RHCE
> Millennium Technology Consulting LLC
> 919-389-8678
>
> db...@millennium-technology.com
>
> www.millennium-technology.com
> www.databook.bz - Home of the DataBook for Linux
> DataBook is a Registered Trademark of David Both
> *
> This communication may be unlawfully collected and stored by the National 
> Security Agency (NSA) in secret. The parties to this email do not consent to 
> the retrieving or storing of this communication and any related metadata, as 
> well as printing, copying, re-transmitting, disseminating, or otherwise using 
> it. If you believe you have received this communication in error, please 
> delete it immediately.
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] 1stboot stuff?

2014-07-11 Thread David Both
Nothing breaks. Nothing stops working. I do this all the time. I almost never 
login to a local console after the initial reboot of a newly installed system, 
either Fedora or CentOS.

In fact I have a post-install script that turns off the firstboot service and 
terminates it if it is already running - that in addition to many other 
customization tasks that I perform on every Linux box I install. You could then 
uninstall the firstboot RPM if you choose.


On 07/11/2014 01:35 PM, Les Mikesell wrote:
> Will anything break if you never log into the console after the
> initial reboot?  I just installed my first copy in a VM, and connected
> over ssh as I normally would for all access after the install.   But I
> just happened to leave the console window open and later noticed that
> it was prompting for license acceptance which I didn't see in the ssh
> login.On a more typical install, no one will ever log in at the
> console after the network is up.   Will that matter, and is there a
> way to keep it from confusing operators that might need to log in with
> a crash cart much later?
>
>
> -- 
>
>
> *
> David P. Both, RHCE
> Millennium Technology Consulting LLC
> 919-389-8678
>
> db...@millennium-technology.com
>
> www.millennium-technology.com
> www.databook.bz - Home of the DataBook for Linux
> DataBook is a Registered Trademark of David Both
> *
> This communication may be unlawfully collected and stored by the National 
> Security Agency (NSA) in secret. The parties to this email do not consent to 
> the retrieving or storing of this communication and any related metadata, as 
> well as printing, copying, re-transmitting, disseminating, or otherwise using 
> it. If you believe you have received this communication in error, please 
> delete it immediately.
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Install php-imap using yum or any on CentOS 7

2014-07-30 Thread David Both
And, of course, this brings up the question of when EPEL Beta (7) and RPMFusion 
will be ready for CentOS 7. Can anyone make a comment on that? I am waiting for 
EPEL and RPMFusion before upgrading some of my hosts.


On 07/30/2014 07:50 AM, Thomas Göttgens wrote:
> Don't use EPEL6 with CentOS 7.
>   
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
> -- 
>
>
> *
> David P. Both, RHCE
> Millennium Technology Consulting LLC
> 919-389-8678
>
> db...@millennium-technology.com
>
> www.millennium-technology.com
> www.databook.bz - Home of the DataBook for Linux
> DataBook is a Registered Trademark of David Both
> *
> This communication may be unlawfully collected and stored by the National 
> Security Agency (NSA) in secret. The parties to this email do not consent to 
> the retrieving or storing of this communication and any related metadata, as 
> well as printing, copying, re-transmitting, disseminating, or otherwise using 
> it. If you believe you have received this communication in error, please 
> delete it immediately.
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Centos 7 as gateway - UDP performance is busted/awful?

2014-08-15 Thread David Both
Nope. The kernel is not busted.

You just need to add a few rules to your firewall in order to tell it to 
forward 
the packets appropriately. While you do need "net.ipv4.ip_forward = 1" line in 
/etc/sysctl.conf, and you also need to set /proc/sys/net/ipv4/ip_forward to 1 
if 
you have not rebooted after setting the line in sysctl.conf, firewall rules are 
required to make it work.

Unfortunately the specific firewall rules you require will depend upon the 
release level of the distribution you use. IPTables has changed a bit over the 
years and so the specific rules and their syntax has changed as well. Here is 
what I use now with CentOS 6.5+ on my own network.


# Generated by iptables-save v1.4.7 on Fri Aug 15 09:11:28 2014
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [825:47118]
:fail2ban-SSH - [0:0]
-A INPUT -p tcp -m tcp --dport 22 -j fail2ban-SSH
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i eth+ -j ACCEPT
-A INPUT -p tcp -m conntrack --ctstate NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -p icmp -j ACCEPT
-A FORWARD -i lo -j ACCEPT
-A FORWARD -i eth0 -j ACCEPT
-A FORWARD -i eth1 -j ACCEPT
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
-A fail2ban-SSH -j RETURN
COMMIT
# Completed on Fri Aug 15 09:11:28 2014
# Generated by iptables-save v1.4.7 on Fri Aug 15 09:11:28 2014
*nat
:PREROUTING ACCEPT [80965:6238336]
:POSTROUTING ACCEPT [37811:2251658]
:OUTPUT ACCEPT [838:63592]
-A PREROUTING -d 24.199.159.56/29 -p tcp -m tcp --dport 80 -j DNAT 
--to-destination 192.168.0.53:80
-A PREROUTING -d 24.199.159.56/29 -p tcp -m tcp --dport 25 -j DNAT 
--to-destination 192.168.0.53:25
-A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
COMMIT
# Completed on Fri Aug 15 09:11:28 2014

The FORWARD rules in the filter table allow forwarding from your internal 
networks on eth0 and eth1 to the outside world. The Destination NATing 
PREROUTING rules allow incoming packets for SMTP and HTTP to be routed to the 
appropriate server on my inside network.

I hope this helps.



On 08/15/2014 07:50 AM, Tom Horsley wrote:
> I think I have my answer: The kernel is busted (or something
> isn't loaded that I need, but don't know about :-).
>
> I copied my Fedora 20 desktop 3.15.8-200.fc20.x86_64 kernel
> and /lib/module files to the centos7 KVM host, rebuilt
> grub.cfg, and rebooted into the 3.15.8-200 kernel, and
> with no other changes the UDP packet forwarding is now working
> perfectly.
>
> I guess it is time to make yet another bugzilla account
> and submit a bug...
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos

-- 

*
"I'd put my money on the sun and solar energy. What a source of power! I hope 
we 
don't have to wait until oil and coal run out before we tackle that."
  - Thomas Edison, in conversation with Henry Ford and Harvey Firestone, 1931
*
David P. Both
*
This communication may be unlawfully collected and stored by the National 
Security Agency (NSA) in secret. The parties to this email do not consent to 
the 
retrieving or storing of this communication and any related metadata, as well 
as 
printing, copying, re-transmitting, disseminating, or otherwise using it. If 
you 
believe you have received this communication in error, please delete it 
immediately.


-- 


*
David P. Both, RHCE
Millennium Technology Consulting LLC
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National 
Security Agency (NSA) in secret. The parties to this email do not consent to 
the 
retrieving or storing of this communication and any related metadata, as well 
as 
printing, copying, re-transmitting, disseminating, or otherwise using it. If 
you 
believe you have received this communication in error, please delete it 
immediately.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 5 takes one second holding each keyboard key until it shows.

2014-08-28 Thread David Both
This has happened to me in the past. It is not an OS problem, it was for me a 
hardware issue. One or both of two things may be causing this problem.

Some USB keyboards require more power than others. My USB keyboard would 
exhibit 
these same symptoms when plugged into a hub that was powered only by the 
computer itself or another hub. So my particular USB keyboard must be plugged 
into a hub that has its own power supply.

Also, I have found that some USB keyboards are especially likely to exhibit 
these same symptoms when plugged into an unpowered USB 3 port.

Login remotely via SSH never exhibited any of these keyboard symptoms.

Perhaps this is the cause of your problem as well.


On 08/28/2014 04:30 AM, Reinhard Dunkel wrote:
> On 08/27/2014 06:07 PM, SilverTip257 wrote:
>> On Tue, Aug 26, 2014 at 10:54 PM, Reinhard Dunkel 
>> wrote:
>>
>>> I used CentOS 5 for years. Suddenly, it takes one second holding a
>>> keyboard key until it shows on the screen:
>>>
>>>
>> Is this system accessible via SSH?
>> Does the behavior only happen when using the physical keyboard?
>>
>> Might it be out of physical memory (RAM) and swapping violently?
>> Disk thrashing of this sort can cause rather irritating delays.
>>
>> Or maybe a failing or failed drive?  (Assuming you could have a hardware or
>> software RAID setup)
> Does CentOS now only support user request tracking by email? I cannot
> find this thread on the CentOS web site...
>
> My computer has 4 GB Patriot memory - the maximum amount the motherboard
> allows. Using  command "top" shows less than one percent of CPU and
> memory are in use. The computer is idle. I am using a 1 TB WD disk for
> CentOS 5 and a 2 TB Seagate disk for CentOS 7. No RAID.
>
> On CentOS 5, I use command "su" to show a root shell. On CentOS 7, su no
> longer works and I use "ssh root@localhost" instead. (I have not tried
> SSH to access my CentOS systems remotely yet.)
>
> Concerning a previous comment: I did not modify the hardware likely
> causing this problem. I only have to switch between both disks -
> described above - to boot CentOS 5 or CentOS 7. My suspicion is "yum
> update" using numerous official and unofficial "repos" installed
> something causing this challenge. The login screen of CentOS 5 for user
> name and password still works fine. By the way, we develop software
> (NMRanalyst) and I try to keep a CentOS 5 system alive so we can test on
> it to claim our software is supported on it. When I don't get further
> suggestions, I likely re-install another disk with CentOS 5 - this time
> using only official repos.
>
> ThanX for all suggestions!
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
> -- 
>
>
> *****
> David P. Both, RHCE
> Millennium Technology Consulting LLC
> 919-389-8678
>
> db...@millennium-technology.com
>
> www.millennium-technology.com
> www.databook.bz - Home of the DataBook for Linux
> DataBook is a Registered Trademark of David Both
> *
> This communication may be unlawfully collected and stored by the National 
> Security Agency (NSA) in secret. The parties to this email do not consent to 
> the retrieving or storing of this communication and any related metadata, as 
> well as printing, copying, re-transmitting, disseminating, or otherwise using 
> it. If you believe you have received this communication in error, please 
> delete it immediately.
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mairadb doesn't prompt for user/pass

2014-08-31 Thread David Both
MariaDB is just a fork of MySQL so the code is the same. Over time it will 
diverge but under control of the community rather than Oracle.


On 08/31/2014 12:43 AM, Tim Dunphy wrote:
>> my.cnf doesn't have the passwords.  When you first set up mysql, you use
>> the mysqladmin command to set the root password.
>> MariaDB doesn't handle the initial set up any differently than MySQL.
>> man mysqladmin
>> C7 does do some stuff differently with the config as the "real" config
>> files are in /etc/my.cnf.d  /etc/my.cnf includes those files to build a
>> config.
>
> Cool thanks. That worked! I was going in with the initial login with no
> password prompt and setting up the root user with the 'create user'
>   command which didn't work. The traditional mysql approach did. Thanks
> again!
>
>
> On Sat, Aug 30, 2014 at 11:44 PM, Steven Stern <
> subscribed-li...@sterndata.com> wrote:
>
>> On 08/30/2014 10:12 PM, Tim Dunphy wrote:
>>> Hello,
>>>
>>>   I discovered today that CentOS 7 has replaced MySQL with MariaDB. Which
>> is
>>> fine, it's seems really similar. And I was already aware that it was
>>> written by the original team that wrote mysql.
>>>
>>> It's cool that the mysql command still gets you in!
>>>
>>> This is the version I have:
>>>
>>> [root@web1:~] #mysql --version
>>> mysql  Ver 15.1 Distrib 5.5.37-MariaDB, for Linux (x86_64) using readline
>>> 5.1
>>>
>>> But for some reason all I have to do is type the word 'mysql' to get me
>>> into the database.
>>>
>>> That's ok for initial setup I guess. But once I was in a did away with
>> all
>>> the accounts that either had blank set for the username, and updated all
>>> the accounts to use passwords.
>>>
>>> MariaDB [mysql]> select User,'@',Host,Password from user;
>>> +---+---+---+---+
>>>
>>> | User  | @ | Host  | Password  |
>>>
>>> +---+---+---+---+
>>>
>>> | root  | @ | localhost | *8328225AE4A663FAKEFAKEFAKEFAKEFAKE93D61 |
>>>
>>> | root  | @ | web1  | *8328225AE4A663FAKEFAKEFAKEFAKEFAKE93D61 |
>>>
>>> | root  | @ | 127.0.0.1 | *8328225AE4A663FAKEFAKEFAKEFAKEFAKE93D61 |
>>>
>>> | admin | @ | localhost | *8328225AE4A663FAKEFAKEFAKEFAKEFAKE93D61 |
>>>
>>> +---+---+---+---+
>>>
>>> 4 rows in set (0.00 sec)
>>>
>>> I also did a search from root to find any my.cnf files and didn't find
>> any
>>> that has user accounts in them.
>>>
>>> Also I find that for the root accounts I can't seem to login even if I
>> set
>>> the password in the database without encryption and copy/paste the
>> password
>>> into the prompt.
>>>
>>> However the non-root account (admin) does let you in with the password.
>>>
>>> So I'm wondering how to secure mariadb so that it doesnt' let you in
>>> without typing in a username and password and also why it doesn't let you
>>> log in as 'root'? Is the root account disallowed from logging in by
>> default?
>>> Thanks
>>> Tim
>>>
>>
>> my.cnf doesn't have the passwords.  When you first set up mysql, you use
>> the mysqladmin command to set the root password.
>>
>> MariaDB doesn't handle the initial set up any differently than MySQL.
>>
>> man mysqladmin
>>
>> C7 does do some stuff differently with the config as the "real" config
>> files are in /etc/my.cnf.d  /etc/my.cnf includes those files to build a
>> config.
>>
>>
>>
>> --
>> -- Steve
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>>
>
>
>
> -- 
>
>
> *
> David P. Both, RHCE
> Millennium Technology Consulting LLC
> 919-389-8678
>
> db...@millennium-technology.com
>
> www.millennium-technology.com
> www.databook.bz - Home of the DataBook for Linux
> DataBook is a Registered Trademark of David Both
> *
> This communication may be unlawfully collected and stored by the National 
> Security Agency (NSA) in secret. The parties to this email do not consent to 
> the retrieving or storing of this communication and any related metadata, as 
> well as printing, copying, re-transmitting, disseminating, or otherwise using 
> it. If you believe you have received this communication in error, please 
> delete it immediately.
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Systemd sessions

2014-09-06 Thread David Both

Sessions of what? Posting log entries here would help.


On 09/06/2014 08:01 AM, Timothy Murphy wrote:

As a matter of interest, why does systemd start sessions
every couple of minutes?
And if it is completely standard, is it necessary
to inform me of this in /var/log/messages?




--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National 
Security Agency (NSA) in secret. The parties to this email do not consent to the 
retrieving or storing of this communication and any related metadata, as well as 
printing, copying, re-transmitting, disseminating, or otherwise using it. If you 
believe you have received this communication in error, please delete it immediately.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] daemon for nfs client

2014-09-25 Thread David Both


Try this:

http://www.databook.bz/?page_id=246

On 09/25/2014 05:13 PM, Dan Hyatt wrote:


In days of old, in Solaris there was a daemon for NFS Client, and NFS server 
(actually several including portmap...).

I am unable to find reference to the daemon that runs NFS client
But the RedHat Documentation does not explain the NFS client daemon. Is this a 
service or something else.


on centos6.5
I previously posted about a really weird root filesystem. It started on 
another non critical server. so I found out when I unmounted the NFS 
filesystem the problem went away. BUT the NFS filesystem will not remount.
On the non critical server, an old windows trick "reboot fixes everything"  
brought NFS and the mount up clean no problems

But I want to try and fix this on the critical server without a reboot.

Is there a way to stop and start the NFS client like I can restart the NFS 
server?

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National 
Security Agency (NSA) in secret. The parties to this email do not consent to 
the retrieving or storing of this communication and any related metadata, as 
well as printing, copying, re-transmitting, disseminating, or otherwise using 
it. If you believe you have received this communication in error, please delete 
it immediately.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Need to Understand booting process of CENTOS-7

2014-10-01 Thread David Both
n't know how long you have been on this list, but it's a really
friendly place. Has been, still is. To get a response like the one in this
thread you have to "earn" it. In this case it's obvious that the OP is of
that "please do my homework for me" type and didn't do any research of his
own other than finding out there is something different. This is not
friendly to the list and it's not good enough for a "senior" consultant.
Ned's response was appropriate and actually quite friendly.

Kai


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National 
Security Agency (NSA) in secret. The parties to this email do not consent to 
the retrieving or storing of this communication and any related metadata, as 
well as printing, copying, re-transmitting, disseminating, or otherwise using 
it. If you believe you have received this communication in error, please delete 
it immediately.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Centos laptop support

2014-10-02 Thread David Both
Many years ago I purchased a Dell Inspiron direct from Dell and had very similar 
issues, so it is not just WinBloze 8, it is that the systems are intentionally 
set up to make it difficult. Took me about 3 hours just to get to the BIOS 
because the window of time was less than 1 second to hit the right key combo.


The last time I purchased a laptop was from Emperor Linux in Atlanta, GA.

http://www.emperorlinux.com/

I purchased a Lenovo W500 from them a few years ago with my favorite flavor of 
Linux already installed. They have very good support and the owners are very 
helpful. They also have a very large selection of models and you can choose your 
own hardware configuration.


I have long since installed more recent versions of Linux, including Fedora 20. 
The best thing about purchasing from them is that they have tested and 
configured each computer before they ship them.


It is a few hundred $$ more expensive than purchasing from a local big box 
store. I imagine I would have spent many hours researching and testing before I 
purchased, and then some additional time getting Linux installed and running on 
anything I purchased. As a business owner of a Linux consulting and training 
company, I consider my time worth at least $100 per hour which is my basic 
hourly charge when consulting. So figure that purchasing from Emperor saved me 
way more than the additional cost I paid to them. Plus I did not have to pay the 
M$ tax.


I have also helped customers with recent Acers that seem to work well with 
Linux.

I hope this helps.


On 10/02/2014 12:57 AM, Frank Cox wrote:

Today I found myself in need of a laptop to run Centos on.  And that simple 
statement led to an all-day odyssey.

My original plan was to purchase a laptop and install Centos 6 on it.  I went 
to Staples and tried booting it on every model of laptop that they had in the 
store.  They all come with Windows 8 installed, and for the edification of 
anyone who doesn't know this (I didn't until today) you have to conduct a real 
song and dance to get to the bios settings on one of those things:

boot windows
move mouse pointer to the top right corner of the screen
move down to setting menu (gear) that shows up
click on power off icon
Hold shift key and left-click on "restart"
it goes to the troubleshooting screen
click on advanced troubleshooting
click on "change uefi settings"
now we get to the bios
set secure boot off
set legacy boot priority

And then you can boot from a USB flash drive.  *whew*  (It's easy to put it 
back afterward, just go into the bios and tell it set to defaults, save and 
exit.)

Anyway, I tried booting a Centos 6 Live CD image on a usb flash drive on every 
single model of laptop they had in stock and no joy on any of them -- they 
either hung altogether, started booting and hung at some point along the way, 
started a continuous cycle of start booting, reset, start booting again, or 
kernel panicked.  Every last one.

I then tried a Centos 7 Live CD image on another usb flash drive and then the 
third machine that I tried it on (Lenovo Ideapad S400 Touch) worked.  So I 
bought that one and have now wiped Windows off of its hard drive and installed 
Centos 7 so it now looks and acts like a real computer.

I never would have thought that it would take all bloody day to purchase one 
laptop.  (And I'm going to be having nightmares about that Windows Boot Manager 
thing.)

Since it has now become amazingly difficult to get a laptop if you're not 
planning to use Windows, at least around here, I'm wondering what the rest of 
you fine folks do when it comes to purchasing a laptop?  Next time this comes 
up, I'd rather not have to spend all day on something that used to take fifteen 
minutes.


--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National 
Security Agency (NSA) in secret. The parties to this email do not consent to 
the retrieving or storing of this communication and any related metadata, as 
well as printing, copying, re-transmitting, disseminating, or otherwise using 
it. If you believe you have received this communication in error, please delete 
it immediately.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] slammed

2014-10-02 Thread David Both
I use Fail2Ban which is available from the EPEL repo to ban these addresses. 
Works well for SSH attacks by skriptkiddies as well. I usually block an address 
for 8 hours.





On 10/02/2014 10:29 AM, Mike Burger wrote:

On 2014-10-02 10:23 am, Jerry Geis wrote:

I just got SLAMMED with accessed to httpd from
91.230.121.156

I added the address to my firewall to drop it.
FYI

host 91.230.121.156
156.121.230.91.in-addr.arpa domain name pointer
no-rdns.offshorededicated.net.


Are you running Wordpress?

My company's Wordpress installation was getting hammered by an IP in the same 
netblock, yesterday...look in your httpd logs for repeated POST operations to 
xmlrpc.php.



--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National 
Security Agency (NSA) in secret. The parties to this email do not consent to 
the retrieving or storing of this communication and any related metadata, as 
well as printing, copying, re-transmitting, disseminating, or otherwise using 
it. If you believe you have received this communication in error, please delete 
it immediately.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] ssh & ksh question

2016-08-09 Thread David Both

Try:

ssh system2 "`cat test.script`"

That works for me.

On 08/09/2016 01:35 PM, m.r...@5-cent.us wrote:

I need to run a report, source file on system 1, on system 2. I'd like to
do this in one script, not have a second script to run it.

Now
cat script | ssh system2
works fine. But no matter what I've tried, it gags on
ssh system2 <https://lists.centos.org/mailman/listinfo/centos


--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Stupid vim question

2016-10-29 Thread David Both
I have never run into this directly in vim for my uses, but it appears 
to me to be a syntactical coding plugin to condense related code blocks 
such as functions like GVim does. I think this is called code folding. 
Try the following link.


http://stackoverflow.com/questions/170/collapse-comments-and-all-functions-in-vim-gvim


On 10/29/2016 05:39 PM, Alice Wonder wrote:

on very large files, vim will condense display - e.g.

+--  8 lines: static inline void php_openssl_rand_add_timeval() 
--


#endif

+-- 29 lines: static int php_openssl_load_rand_file(const char * file, 
int *egdsocket, int *seeded) 
---


+-- 22 lines: static int php_openssl_write_rand_file(const char * 
file, int egdsocket, int seeded) 



+-- 45 lines: static EVP_MD * 
php_openssl_get_evp_md_from_algo(zend_long algo) { 
--


+-- 42 lines: static const EVP_CIPHER * 
php_openssl_get_evp_cipher_from_algo(zend_long algo) { 





How do I get it to stop doing that? It didn't use to do that as far as 
I remember, seems to be new to me in CentOS 7 - either that or I 
previously had something in me .vimrc that prevented it and I just 
forgot.


I have tried searching but I just can't seem to get the proper search 
term to produce relevant results.


using it in a terminal shell, the only way I ever use it.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] tool for a comprehensive list of the storage structure

2016-11-02 Thread David Both

Try *lsblk -f*

*[root@david ~]# lsblk -f
NAME   FSTYPE  LABEL 
UUID   MOUNTPOINT

sda
└─sda1 LVM2_member DWnNT0-aHQK-4zxn-cWIL-4iAQ-fboe-QaeyOK
  └─vg_Backups-Backups ext4Backups 
97baf04c-5dbb-43bd-9e56-b1c23e623ae4   /media/Backups

sdb
├─sdb1 ext4boot 
7186c3bc-ef06-4d34-9caf-3813ec004fbb   /boot

└─sdb2 LVM2_member FU8VMi-xM65-2xvC-tK3R-gO91-QGkY-O4y7WN
  ├─david1-usr ext4usr 
589c4eee-b3f7-4b68-9a20-f2d40b850798   /usr

  ├─david1-swapswap 9058afe6-43f3-4bcd-ba27-4a9f890cb295   [SWAP]
  ├─david1-rootext4root 
e2791469-362d-4c72-9172-c34b297886a0   /
  ├─david1-tmp ext4tmp 
0c140bc8-0785-4ec1-bc96-3839d9a66da5   /tmp
  └─david1-var ext4var 
c9e9d413-66bd-498a-9ddd-e21de4858f60   /var

sdcLVM2_member xVreaf-wkQ2-2rcS-2J8R-tj04-k2fW-D519iu
├─vg_david2-home   ext4home 
f4ba78b4-e735-43ca-8e73-047d25e15220   /home
├─vg_david2-stuff  ext4stuff 
b209b4ca-a016-4119-9941-fb4ef4102e06   /stuff
├─vg_david2-Virtualext4Virtual 
e74b2716-33a1-4339-95e7-6c63d64985aa   /Virtual
└─vg_david2-Pictures   ext4Pictures 
3c9f5705-2d6b-4c1f-9088-017c1f5c5891   /home/dboth/Pictures

sdd
└─sdd1 ext44T-Backup 
2e5ab1a4-686b-4f16-b3fb-99df1e9eb76f
sdeext3WD-500-USB 
06237914-457a-4a4e-9312-597c8d06c0f1
└─sde1 ext4WD-500GB-USB 
04fd97fe-d99b-4508-a968-e46b63c218b5 /run/media/dboth/WD-500GB-USB

sdh
└─sdh1 ext4USBbackup 
65d7d09e-e5ea-499f-b694-15ea2dcb60c4

sr0
sr1udf WD SmartWare 4AFDFB0F
*

**


On 11/02/2016 11:54 AM, Leon Fauster wrote:

I would like to have a smart cli tool, that shows a
comprehensive list about the local storage structure:

An output like:
  
  /srv

/dev/mapper/luks-f85b7a2c-...: UUID="ca924fad-..." TYPE="ext4"
  /dev/mapper/vg_internal_e-lv_internal_srv: UUID="f85b7a2c-..." 
TYPE="crypto_LUKS"
vg_internal_e
  /dev/md3: UUID="1Fi2Ex-..." TYPE="LVM2_member"
/dev/sda4: UUID="00029bd4-..." UUID_SUB="d0024074-..." LABEL="e.ld:3" 
TYPE="linux_raid_member"
/dev/sdb4: UUID="00029bd4-..." UUID_SUB="bf98fc79-..." LABEL="e.ld:3" 
TYPE="linux_raid_member"

beside blkid any other tool available?

--
Thanks,
LF
   
___

CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Server turns off unexpectedly

2016-12-12 Thread David Both
The lm_sensors package is required for the sensors module of glances to 
work. After installing lm_sensors, run sensors-detect. The sensors 
command will show the sensors detected and their current values. glances 
should then display the sensor readings.



On 12/12/2016 06:37 AM, Gary Stainburn wrote:

On Monday 12 December 2016 11:01:52 Nicolas Kovacs wrote:
(first thing I'm going to do it buy a new keyboard, or employ a proof reader.
Sorry for all the errors folks)


First thing I would do is check the temperature. In my experience,
excessive heat is the main reason for unexpected shutdown operations.

I have had this in the past where either the CPU or PSU fan had died.  I'll
check both of these next time I'm on site, but I believe the PSU is fairly
new anyway.


I'm using the nifty Glances utility (available in EPEL) to do basic
monitoring. If your server overheats, you'll gradually see your
temperature indicator turn from green to purple and then to red. I know
there are other utilities, but this is good for checking this sort of
stuff in real-time.

I installed Glance and had a look, but the sensors didn't show, even when I
pressed 'S' as per the help page.

Also, as this is a headless server, can anyone suggest a non-GUI monitor app?


Cheers,

Niki

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Server turns off unexpectedly

2016-12-12 Thread David Both



On 12/12/2016 07:29 AM, Gary Stainburn wrote:

On Monday 12 December 2016 12:15:10 David Both wrote:

The lm_sensors package is required for the sensors module of glances to
work. After installing lm_sensors, run sensors-detect. The sensors
command will show the sensors detected and their current values. glances
should then display the sensor readings.

Somewhere tucked in the back of my mind a memory is screaming no. Wasn't there
a problem with lm_sensors where we were all told to remove / not install it
because of serious problems with the package possibly even breaking things.

Presumably that's no longer the case
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


If there was such a problem it is very far in the past or it only shows 
up on hardware I don't have. I have never had any problems with the 
lm_sensors package breaking things and I have been using it for years.


--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] chronyd configuration as a local ntp server

2016-12-27 Thread David Both
AFAIK the only thing needed to make your host an NTP server using chrony 
is to set the allow line to the network address in CIDR format of the 
network you want to be served, and uncomment it. The restart chronyd. 
You also need to ensure that port 123 (NTP) is open to your internal 
network on your filrewall.


I have a CentOS 6 box that is an NTP server for my network. CentOS 7 
works the same way.



On 12/27/2016 08:25 AM, Fred Smith wrote:

On Mon, Dec 26, 2016 at 11:04:22PM -0500, Robert Moskowitz wrote:

This is for centos 7 that has chronyd 2.1.1

I am looking into how to use chronyd as my local ntp server.

On my old servers with ntpd I had local access control lines like:

restrict 192.168.128.0 mask 255.255.255.0 nomodify notrap


But in looking for documentation on chronyd I did not find anything
on this at:

https://chrony.tuxfamily.org/doc/2.1/manual.html

In the actual /etc/chronyd.conf there is the sample line:

# Allow NTP client access from local network.
#allow 192.168/16

Does this allow only allow queries?  Does chronyd support the
'restrict' option?

Robert:

Years back I used to use Chrony for that  purpose (when I was running
Smoothwall on an old PC instead of a commercial router, as I am now)
and it did the job remarkably well.

One of the designgoals of Chrony was to support networks or computers
that are NOT connected full-time, so that time stayed somewhere near
correct even if offline for hours or days.

But that having been so long ago, now, I don't remember the details.

I also don't remember what the "restrict" directive for ntpd does.

(to give you an idea of how long ago that was it was when I had a Red Hat
7.2 or 7.3 workstation as my home PC--pre-RHEL. I could compile things on
that RH box, tar up the necessary results and take that file to the
smoothwall box and untar them and with small configuration: voila!)

there used to be a chrony mailing list where one could ask such questions,
but I haven't seen traffic on it in years, so it may no longer exist.

Fred


--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] chronyd configuration as a local ntp server

2016-12-27 Thread David Both

Here are the commands for that. Apparently restrict is replaced with deny.


deny [] Deny access to subnet as a default
deny all [] Deny access to subnet and all children


On 12/27/2016 09:07 AM, Robert Moskowitz wrote:

'Modern' NTP allows for all sorts of updates to NTP servers, with all
sorts of attacks.  So to prevent even local hosts from making changes
to your NTP server, there is the restrict instead of allow command.
Its intent is to limit what the server will accept from a host in the
address range instead of allowing any command from within that range.
I use this on my Centos6 servers.

I guess I will have to register to the chronyd list and ask there.

thanks



On 12/27/2016 08:49 AM, David Both wrote:

AFAIK the only thing needed to make your host an NTP server using
chrony is to set the allow line to the network address in CIDR format
of the network you want to be served, and uncomment it. The restart
chronyd. You also need to ensure that port 123 (NTP) is open to your
internal network on your filrewall.

I have a CentOS 6 box that is an NTP server for my network. CentOS 7
works the same way.


On 12/27/2016 08:25 AM, Fred Smith wrote:

On Mon, Dec 26, 2016 at 11:04:22PM -0500, Robert Moskowitz wrote:

This is for centos 7 that has chronyd 2.1.1

I am looking into how to use chronyd as my local ntp server.

On my old servers with ntpd I had local access control lines like:

restrict 192.168.128.0 mask 255.255.255.0 nomodify notrap


But in looking for documentation on chronyd I did not find anything
on this at:

https://chrony.tuxfamily.org/doc/2.1/manual.html

In the actual /etc/chronyd.conf there is the sample line:

# Allow NTP client access from local network.
#allow 192.168/16

Does this allow only allow queries?  Does chronyd support the
'restrict' option?

Robert:

Years back I used to use Chrony for that  purpose (when I was running
Smoothwall on an old PC instead of a commercial router, as I am now)
and it did the job remarkably well.

One of the designgoals of Chrony was to support networks or computers
that are NOT connected full-time, so that time stayed somewhere near
correct even if offline for hours or days.

But that having been so long ago, now, I don't remember the details.

I also don't remember what the "restrict" directive for ntpd does.

(to give you an idea of how long ago that was it was when I had a
Red Hat
7.2 or 7.3 workstation as my home PC--pre-RHEL. I could compile
things on
that RH box, tar up the necessary results and take that file to the
smoothwall box and untar them and with small configuration: voila!)

there used to be a chrony mailing list where one could ask such
questions,
but I haven't seen traffic on it in years, so it may no longer exist.

Fred




___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


--

*
David P. Both
*
"I'd put my money on the sun and solar energy. What a
source of power! I hope we don't have to wait until oil
and coal run out before we tackle that."
 - Thomas Edison, in conversation with Henry Ford and
   Harvey Firestone, 1931
*


--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not 
consent to the
retrieving or storing of this communication and any related metadata, as 
well as
printing, copying, re-transmitting, disseminating, or otherwise using 
it. If you

believe you have received this communication in error, please delete it
immediately.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 7 httpd cgi script file not able to write to /tmp

2017-01-20 Thread David Both
The behavior you describe should be normal for any web server, as it is 
for Apache, which is what I use. It is a security feature that prevents 
malicious attacks on a web server from writing malware anywhere else in 
the filesystem and possibly gaining elevated privileges.



On 01/20/2017 10:19 AM, Jerry Geis wrote:

Fun fact... If I echo my data to the same directory as the script is
located in it works. But it does not allow writing to /tmp

I'm good with that.

Thanks,

Jerry

On Fri, Jan 20, 2017 at 9:54 AM, Jerry Geis  wrote:


Hi - Thanks for the reply.

I actually have selinux disabled on this box.

Jerry



___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Script not running correctly as cronjob

2017-02-01 Thread David Both
Do not forget that cron does not use the root environment, such as 
$PATH. You need to set up the exect environment you need in the 
beginning of the crontab file. It would be helpful to see your crontab 
file to know what environment it has set up.


Also the /var/log/cron log file should contain error information that 
might be helpful.



On 02/01/2017 05:04 AM, Tony Mountifield wrote:

In article <86827d81f1944333ae213f2d3f198...@2sic.com>,
Daniel Reich  wrote:

Hi

I have a script to resign all DNS zones every two weeks. When i run the script 
from bash, it works like it should. But
when it is executed in cron not. Its starting normal as cronjob:
Feb  1 03:00:01 xxx CROND[20116]: (root) CMD (sh 
/opt/dnssec/resign_dnssec_zones.sh)

But after i get a mail that everything is finsihed, but it isn't.
03:04:28 DNSSEC-Signierung abgeschlossen

The script deletes the old signed zones, but don't resign it. The mail is also 
sent.
Below the script.

Anybody an idea why it doesn't work in cron?^
I cannot find any error in any log.

After the first line, add a line saying: set -x

Then set cron to run it and examine the output that gets mailed to you.

The -x tells it to echo each command it is about to execute. That will help
you to see how far it is getting.

Further comments below.

Cheers
Tony


Best regards
Daniel


#!/bin/bash
KSKDIR="/etc/named/KSK"
ZSKDIR="/etc/named/ZSK"
ZONEDIR="/var/named/chroot/var/named"
LOG="/var/named/chroot/var/log/dnssec_resign.log"
MAILREC="monitor@xx"

#delete old signed files
rm -rf $ZONEDIR/*.signed

#delete the old log
rm -rf $LOG

#read the zonefiles
ZONEFILES=$(ls -p $ZONEDIR | grep -v '/$' | grep -v 'dsset*')

for FILES in $ZONEFILES; do
#remove the .zone at the end
 ZONE=$(echo "${FILES%.*}")

Why not just: ZONE=${FILES%.*}


#remove the old signed zone
 rm -rf $ZONEDIR/$ZONE.signed

You deleted them all further up.


#Sign the zone
 cd $ZONEDIR

Why not do this before the loop? Then you also don't need $ZONEDIR/ everywhere.


 dnssec-signzone -o $ZONE -k $KSKDIR/K$ZONE.*.key -e +3024000 -f 
$ZONE.signed $ZONEDIR/$ZONE.zone
$ZSKDIR/K$ZONE.*.key >> $LOG

#Set the correct permissions
 chown named.named $ZONEDIR/*.signed
 chmod 755 $ZONEDIR/*.signed
 sleep 5
done
rm -rf $ZONEDIR/named.zone

echo $(date +"%T")"DNSSEC-Signierung abgeschlossen - Neustart des Servers" >> 
$LOG
echo "$(cat $LOG)" | mail -s "DNSSEC-Signierung abgeschlossen auf xxx" $MAILREC


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos





--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] From Networkmanager to self managed configuration files

2017-03-08 Thread David Both



On 03/08/2017 05:43 AM, Giles Coochey wrote:



On 08/03/17 10:38, John Hodrien wrote:

On Wed, 8 Mar 2017, Giles Coochey wrote:


ifconfig enp0s25 192.168.0.1 netmask 255.255.255.0
route add default gw 192.168.0.254 enp0s25
echo nameserver 8.8.8.8 > /etc/resolv.conf
echo nameserver 8.8.4.4 >> /etc/resolv.conf


Oh okay, you really do want to back away from Redhat entirely. That's
entirely your choice.

What you end up with if you take this approach widely is effectively
your own
linux distribution.

Not really, Redhat/Centos has a lot to offer, but for me, networking 
is a one-time configuration, and the best way to configure it is using 
something that falls within this principle:


https://en.wikipedia.org/wiki/KISS_principle

I'm not flaming NetworkManager, I'm just stating that for many 
(perhaps most), it is over-engineered for a server orientated 
distribution. I can run with the script above on 30 server instances, 
and it doesn't, as yet, break any of the other features of Centos that 
I enjoy.


I do not agree with your conclusions about NetworkManager.  First, I use 
it on several servers and firewalls that - theoretically at least - 
should never change. Some of the most tiresome problems I have had to 
fix were what happened due to renaming of NICs after replacing a bad 
one, or a 100Mb with a Gb NIC, or adding a new NIC to connect with a new 
network. NetworkManager keeps NIC naming consistent with no surprises. I 
am getting ready to install two new NICs in a firewall/router that 
already has two NICs and I am not dreading that change as I would have 
with the old network service.


I have had excellent results with NetworkManager and am very happy with 
it. I see it as a significant improvement over the old network service. 
If you are concerned about performance issues - don't worry - you won't 
have any. It works fine on my RaspberryPI forewall/router using CentOS 7 
for ARM and on my ancient EeePC that runs a full installation of Fedora 25.


Don't try to fix something that isn't broken.

--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Up to date guide/information Sendmail SMTP Auth

2017-03-08 Thread David Both

Try this article, "Outbound authentication for Sendmail."

http://www.databook.bz/?page_id=3097

I wrote this after setting it up on my own CentOS server.


On 03/08/2017 10:41 AM, Mark Weaver wrote:

Hello all,

I've been googling my brains out since yesterday looking for
up-to-date information on this matter, and have found information that
is anywhere from 15 to 5 years old. I'd really like some information
that much more up to date on the subject. Specifically configuring
Sendmail SMTP authentication (_no smart host stuff_).

I've got Sendmail 8.14 installed on a CentOS 7.3 server. Also installed:

- Cyrus-sasl
- Dovecot
- Openssl

Essentially everything I need except the working knowledge for the
process. If someone knows where I might locate this information it
would be greatly appreciated.

thanks

Mark

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


--

*
David P. Both
*
"I'd put my money on the sun and solar energy. What a
source of power! I hope we don't have to wait until oil
and coal run out before we tackle that."
 - Thomas Edison, in conversation with Henry Ford and
   Harvey Firestone, 1931
*


--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not 
consent to the
retrieving or storing of this communication and any related metadata, as 
well as
printing, copying, re-transmitting, disseminating, or otherwise using 
it. If you

believe you have received this communication in error, please delete it
immediately.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kernel memory accounting

2017-03-10 Thread David Both
First - why in the world would you want to disable kernel memory 
accounting? I don't think that is even possible (despite not being a 
kernel programmer myself) because the kernel must needs account for 
every bit of real and virtual memory in the system in order to do its job.


Second - the first note in the doc to which you refer says that it is 
hopelessly out of date and further down it indicates it refers to 2.6 
kernels and we are now at 4.9.


So now my question boils down to - what is it that you are trying to do 
that makes you think you have to disable kernel memory accounting?



On 03/10/2017 02:25 PM, Wensheng Deng wrote:

Hi CentOS experts,

I am using CentOS 7. Trying to disable kernel memory accounting:
according to https://www.kernel.org/doc/Documentation/cgroup-v1/memory.txt,
  passing cgroup.memory=nokmem to the kernel at boot time, should be able to
archive that.

However it is not the case in my exercise.  These are what I have now
$ grep CONFIG_MEMCG_KMEM /boot/config-3.10.0-327.36.3.el7.x86_64

CONFIG_MEMCG_KMEM=y

$ cat /proc/cmdline

BOOT_IMAGE=/vmlinuz-3.10.0-327.36.3.el7.x86_64
root=UUID=56568066-5719-46d9-981d-278c7559689b ro quiet cgroup.memory=nokmem
systemd.log_level=debug

But kernel memory is still accounted in user's applications. Any suggestion
on how to chase the issue is greatly appreciated!  Thank you!


Best Regards,
Wensheng
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kernel memory accounting

2017-03-10 Thread David Both
Well, that is exactly what it is supposed to do. The easy way to fix 
this is add more memory. A wildly impractical attempt to turn off memory 
accounting will result in a really borked system that will suck up all 
your time trying to recompile the kernel to make it work. Don't even go 
down that road.


Memory is very cheap these days. Your time is one of the most valuable 
commodities on the planet.


And oh, by the way - are you sure it is RAM you ran out of and not hard 
drive space?


So my questions now become -

How much RAM do you have?

How much swap space?

What error message did you get?

Are you using something like top, htop, iotop, or glances to monitor 
your system and discover the root cause of this problem.


Do you have SAR installed and enabled? You would also need to set the 
granularity for 1 minute instead of the default 10.


What does SAR tell you?

From where (what device or medium) are you copying the data from and to?

But no matter how many questions you answer, my response will probably 
still be the same - get more RAM. Or at least more of the limiting 
resource -and that does sound like RAM right now.



On 03/10/2017 03:51 PM, Wensheng Deng wrote:

I have 3.10 kernel. I am running some data processing job, need to first
copy big (>5 GB) input files. The jobs were killed, because the system
thought I used 5 GB memory from the file copying.


On Fri, Mar 10, 2017 at 3:04 PM, David Both 
wrote:
First - why in the world would you want to disable kernel memory
accounting? I don't think that is even possible (despite not being a kernel
programmer myself) because the kernel must needs account for every bit of
real and virtual memory in the system in order to do its job.

Second - the first note in the doc to which you refer says that it is
hopelessly out of date and further down it indicates it refers to 2.6
kernels and we are now at 4.9.

So now my question boils down to - what is it that you are trying to do
that makes you think you have to disable kernel memory accounting?



On 03/10/2017 02:25 PM, Wensheng Deng wrote:


Hi CentOS experts,

I am using CentOS 7. Trying to disable kernel memory accounting:
according to https://www.kernel.org/doc/Documentation/cgroup-v1/memory.
txt,
   passing cgroup.memory=nokmem to the kernel at boot time, should be able
to
archive that.

However it is not the case in my exercise.  These are what I have now
$ grep CONFIG_MEMCG_KMEM /boot/config-3.10.0-327.36.3.el7.x86_64

CONFIG_MEMCG_KMEM=y

$ cat /proc/cmdline

BOOT_IMAGE=/vmlinuz-3.10.0-327.36.3.el7.x86_64
root=UUID=56568066-5719-46d9-981d-278c7559689b ro quiet
cgroup.memory=nokmem
systemd.log_level=debug

But kernel memory is still accounted in user's applications. Any
suggestion
on how to chase the issue is greatly appreciated!  Thank you!


Best Regards,
Wensheng
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent
to the
retrieving or storing of this communication and any related metadata, as
well as
printing, copying, re-transmitting, disseminating, or otherwise using it.
If you
believe you have received this communication in error, please delete it
immediately.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


--

*
David P. Both
*
"I'd put my money on the sun and solar energy. What a
source of power! I hope we don't have to wait until oil
and coal run out before we tackle that."
 - Thomas Edison, in conversation with Henry Ford and
   Harvey Firestone, 1931
*


--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not 
consen

Re: [CentOS] laptop editing

2017-03-17 Thread David Both
I have a DVD R/W drive that plugs into a USB port, but I always copy the 
ISO image to a USB memory stick and it works just fine. You may have to 
fiddle with BIOS to boot to an external USB device, but I have never had 
a problem.


I have Fedora 24 and 25, as well as CentOS 6.X and 7.X on USB sticks so 
I can test hardware in a store and do installs.



On 03/16/2017 11:20 PM, ken wrote:

On 03/16/2017 10:20 PM, Michael Hennebry wrote:

How does one put centos on a laptop?
My understanding that laptops no longer come with optical drives.
Booting from an install disk would be difficult.
From https://wiki.centos.org/HowTos/Laptops :
Preparation tasks
Repartition your harddisk
Backup your Master Boot Record (MBR)
Modifying your bootloader

My understanding is that most laptops have at most one harddisk.
Can it really be unmounted for partitioning?

Not true.  Last year I got an HP Envy 17 (and it's still being sold) 
and it has a DVD r+w.  This can't be the only laptop being sold with 
an optical drive.


Also, a couple months ago I put a "Live USB" (Fedora) Linux distro on 
a USB stick, booted it, and it came up and worked fine.



___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.databook.bz - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not consent to the
retrieving or storing of this communication and any related metadata, as well as
printing, copying, re-transmitting, disseminating, or otherwise using it. If you
believe you have received this communication in error, please delete it
immediately.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Primary DNS server with BIND on a public machine running CentOS 7

2017-04-11 Thread David Both

Here are two articles on DNS that I wrote for Opensource.com.

Introduction to the Domain Name System (DNS) 
https://opensource.com/article/17/4/introduction-domain-name-system-dns


Build your own DNS name server on Linux 
https://opensource.com/article/17/4/build-your-own-name-server


I hope this helps.

On 04/11/2017 01:34 PM, Gordon Messmer wrote:

On 04/11/2017 10:05 AM, Nicolas Kovacs wrote:

Is there a*reliable*  more or less quick & dirty tutorial on how to get
BIND up and running as a primary public nameserver, with the default
configuration as a starting point?



1: Change the "listen-on" settings to bind to network interfaces:

-   listen-on port 53 { 127.0.0.1; };
-   listen-on-v6 port 53 { ::1; };
+   listen-on port 53 { any; };
+   listen-on-v6 port 53 { any; };

2: Allow external queries by removing the allow-query setting entirely:

-   allow-query { localhost; };

3: Disallow recursion by removing recursion setting:

-   recursion yes;

4: Add your zones.

DNSSEC is slightly more involved, but basic setup should be basically 
the same as what you've been doing.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


--


*
David P. Both, RHCE
Millennium Technology Consulting LLC
Raleigh, NC, USA
919-389-8678

db...@millennium-technology.com

www.millennium-technology.com
www.Linux-Databook.info - Home of the DataBook for Linux
DataBook is a Registered Trademark of David Both
*

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos