Re: [CentOS] [OT] Bash help

2017-10-25 Thread Jason Welsh

hrm.. seems like you were missing a }


sort file | awk '{array[$1] += $2;} END { for (i in array) {print i "\t" 
array[i];}}'



regards,

Jason



On 10/25/2017 01:24 PM, m.r...@5-cent.us wrote:

Warren Young wrote:

On Oct 25, 2017, at 10:02 AM, Mark Haney  wrote:

I have a file with two columns 'email' and 'total' like this:

m...@example.com 20
m...@example.com 40
y...@domain.com 100
y...@domain.com 30

I need to get the total number of messages for each email address.

This screams out for associative arrays.  (Also called hashes,
dictionaries, maps, etc.)

That does limit you to CentOS 7+, or maybe 6+, as I recall.  CentOS 5 is
definitely out, as that ships Bash 3, which lacks this feature.


Associative arrays?

Awk! Awk! (No, I am not a seagull...)

sort file | awk '{ array[$1] += $2;} END { for (i in array) { print i "\t"
array[i];}'

   mark "associative arrays, how do I love thee? Let me tot the arrays..."


___
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


Re: [CentOS] glib update problems

2017-09-20 Thread Jason Welsh
ha! yes we use centos quite a bit. I was assuming (wrongly) that this 
server was one of them..


oops, my bad.


Jason


On 09/20/2017 11:44 AM, John Hodrien wrote:

On Wed, 20 Sep 2017, Jason Welsh wrote:


any idea how to get out of this pickle?


Have you considered using CentOS?

jh
___
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


[CentOS] glib update problems

2017-09-20 Thread Jason Welsh

any idea how to get out of this pickle?

[root@oem /home/jason]$yum update glibc
Loaded plugins: product-id, rhnplugin, search-disabled-repos, security
This system is receiving updates from RHN Classic or Red Hat Satellite.
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package glibc.x86_64 0:2.12-1.209.el6_9.1 will be updated
---> Package glibc.x86_64 0:2.12-1.209.el6_9.2 will be an update
--> Processing Dependency: glibc-common = 2.12-1.209.el6_9.2 for 
package: glibc-2.12-1.209.el6_9.2.x86_64

--> Running transaction check
---> Package glibc-common.x86_64 0:2.12-1.209.el6_9.1 will be updated
--> Processing Dependency: glibc-common = 2.12-1.209.el6_9.1 for 
package: glibc-2.12-1.209.el6_9.1.i686

---> Package glibc-common.x86_64 0:2.12-1.209.el6_9.2 will be an update
--> Finished Dependency Resolution
Error: Package: glibc-2.12-1.209.el6_9.1.i686 (@rhel-6-server-rpms)
   Requires: glibc-common = 2.12-1.209.el6_9.1
   Removing: glibc-common-2.12-1.209.el6_9.1.x86_64 
(@rhel-6-server-rpms)

   glibc-common = 2.12-1.209.el6_9.1
   Updated By: glibc-common-2.12-1.209.el6_9.2.x86_64 (rhel6xbase)
   glibc-common = 2.12-1.209.el6_9.2
   Available: glibc-common-2.12-1.166.el6_7.8.x86_64 
(rhel6xupdates)

   glibc-common = 2.12-1.166.el6_7.8
**
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in 
/etc/yum/pluginconf.d/search-disabled-repos.conf

**

Error: Package: glibc-2.12-1.209.el6_9.1.i686 (@rhel-6-server-rpms)
   Requires: glibc-common = 2.12-1.209.el6_9.1
   Removing: glibc-common-2.12-1.209.el6_9.1.x86_64 
(@rhel-6-server-rpms)

   glibc-common = 2.12-1.209.el6_9.1
   Updated By: glibc-common-2.12-1.209.el6_9.2.x86_64 (rhel6xbase)
   glibc-common = 2.12-1.209.el6_9.2
   Available: glibc-common-2.12-1.166.el6_7.8.x86_64 
(rhel6xupdates)

   glibc-common = 2.12-1.166.el6_7.8
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@oem /home/jason]$

Jason

--

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


Re: [CentOS] bind update flubbed somehow? (resolved)

2017-06-06 Thread Jason Welsh
ugh, the upgrade changed the owner from named to root on /var/named 
where my zone files are and


therefore named could not read the zone files..  How embarrassing.. ;)


Jason



On 06/06/2017 09:58 AM, Kenneth Porter wrote:
--On Tuesday, June 06, 2017 10:53 AM -0400 Jason Welsh 
<jason.we...@mercurygate.com> wrote:



[root@bind1 /var/named]$nslookup -port=5353 servername 10.115.76.87


nslookup is deprecated. What does dig say? It's much more informative 
and shows all the details of the query and reply packets.




---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

___
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


[CentOS] bind update flubbed somehow?

2017-06-06 Thread Jason Welsh

hey folks, we upgraded bind last night to bind-9.8.2-0.62.rc1.el6_9.1.x86_64
and now our server seems to not be able to update. Whenever we add 
records and update the soa and reload,

it still shows the old data..
so for example, we have

[root@bind1 /var/named]$grep servername domainname.net.zone
[root@bind1 /var/named]$nslookup -port=5353 servername 10.115.76.87
Server: 10.10.76.87
Address:10.10.76.87#5353

Name:   servername.domainname.net
Address: 10.66.35.106


but when I grep the file from the zone file, it is not there..


grep servername domainname.net.zone


ive tried restarting the named a few times.. Im not seeing much that 
looks like its related in the logs..

any ideas? there is no selinux enabled here.

Jason


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


Re: [CentOS] question about shared samba directory file permissions..

2017-05-25 Thread jason welsh
so you were able to see files created on that share with usernames other 
than the one that was used to mount the share?


I tried this config and it didnt seem to make a difference.

regards,

jason



On 05/23/2017 06:26 AM, Leon Fauster wrote:

Am 22.05.2017 um 21:57 schrieb Jason Welsh <jason.we...@mercurygate.com>:

im trying to set up a shared samba directory for users to use on centos 7, but 
whenever I create a file from the samba client to the samba server,
the owner of the file ends up being the user the share is mounted up as..
on the server (server1),

this

 force user = nobody
 force group = nobody
valid users = @support
 read only = No
 create mask = 0660
 directory mask = 0770

works here without any problems.

--
LF

  



___
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


[CentOS] question about shared samba directory file permissions..

2017-05-22 Thread Jason Welsh
im trying to set up a shared samba directory for users to use on centos 
7, but whenever I create a file from the samba client to the samba server,

the owner of the file ends up being the user the share is mounted up as..
on the server (server1),

[samba]
comment = samba share
path = /samba/
read only = No
valid users = @samba
write list = @samba
force group = +samba
create mask = 0770
browseable = yes

[root@server1 ~]# grep samba /etc/group
samba:x::user2,user3
[root@server1 ~]# id user2
uid=2010(user2) gid=2010(user2) groups=2010(user2),(samba)



on the client (server2),

[root@server2 ~]# grep samba /etc/group
samba:x::user2,user3

[user2@server2 samba]$ pwd
/mnt/samba
[user2@server2 samba]$ df -h ./
Filesystem  Size  Used Avail Use% Mounted on
//rhce1/samba11G  4.5G  5.8G  44% /mnt/samba
[user2@server2 samba]$ touch file
[user2@server2 samba]$ ls -al file
-rw-rw. 1 *user3* samba 0 May 22 15:52 file
[user2@server2 samba]$ id
uid=2010(user2) gid=2010(user2) groups=2010(user2),(samba) 
context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

[user2@server2 samba]$

any ideas?

regards,
Jason


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


[CentOS] running tomcat as non-root user.. (/var/run pidfile issue)

2017-05-04 Thread Jason Welsh
hey folks, we are migrating our tomcat setup over to centos 7. Im 
converting init-scripts over to systemd services and whatnot.. One thing 
that Ive noticed is that my systemd startup script cant seem to write to 
/var/run as a non-root user to drop a pidfile.. If I create a directory 
in /var/run owned by my user, it gets wiped out on reboot.


Ive searched and found this

https://blog.hqcodeshop.fi/archives/93-Handling-varrun-with-systemd.html

which says to use ExecStartPre to fudge creating directories in /var/run 
so what non-root users can write there..


Is that the suggested way to do this? It seems awful kludgey.


Jason



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


Re: [CentOS] OT: hardware, IBM 3650 M2 won't power on

2017-02-22 Thread Jason Welsh

http://www.ebay.com/bhp/ibm-x3650

;)


Jason



On 02/22/2017 04:08 PM, m.r...@5-cent.us wrote:

I've never seen anything like this. We moved it from the data center
yesterday, and this morning I plug it in, and it won't power up. I find a
manual for it online, and it says that on plugging it in, wait 3 minutes.
The power button will flash 4x/sec, then slow down to once a sec, and at
that time you can power it up.

Well, it never stops flashing at 4x/sec. I've connected a network cable,
wondering if it's in wake-on-lan; I've tried connecting to it via its
management port, and *zip*.

I'm not going to do, as several folks' posts that I googled (been at that
for hours), cut the cable and solder in an on/off switch. I have taken the
lid uff, reseated the PSUs, and the cable connecting to the front panel,
and nada.

Anyone got any ideas?

mark

___
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


Re: [CentOS] question about directory size in linux..

2017-02-22 Thread Jason Welsh

So its normal behavior.. thanks!

Jason



On 02/22/2017 01:40 PM, Gordon Messmer wrote:

On 02/22/2017 06:34 AM, Jason Welsh wrote:
How does the directory *itself* have a size of 2.8 megs? 



If you write a large number of directory entries in a directory, the 
directory will grow in order to provide storage for those directory 
entries.  You can imagine a directory as a text file containing all of 
the file names in the directory, with references to the location of 
those files, if that helps you understand why the directory itself 
will grow.


___
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


[CentOS] question about directory size in linux..

2017-02-22 Thread Jason Welsh

on a CentOS release 6.8 (Final)
I was looking around and noticed the following in a directory.

[jason@server /app-vol/applications/]$ls -ld temp
drwxr-xr-x 4 jason  users 2899968 Feb 18 06:31 temp/
[jason@server /app-vol/applications/]$

How does the directory *itself* have a size of 2.8 megs?
yes the contents in that temp directory add up to 2.8 megs, but.. umm. huh?

when I run a stat on the temp directory, i get
  File: `temp'
  Size: 2899968   Blocks: 5672   IO Block: 4096   directory
Device: fd02h/64770dInode: 1836137 Links: 4
Access: (0755/drwxr-xr-x)  Uid: ( 1022/ jason)   Gid: (  501/ users)
Access: 2017-02-22 06:31:51.414190071 -0500
Modify: 2017-02-18 06:31:56.135448424 -0500
Change: 2017-02-18 06:31:56.135448424 -0500

on other "normal" directories, I see something like
  Size: 4096  Blocks: 8  IO Block: 4096   directory


Jason


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


[CentOS] pacmd command to switch outputs for an application?

2016-12-18 Thread jason welsh
just wondering if anyone has figured out how to make  pacmd switch the 
output of a certain application


(lets say chrome browser) from one output (speakers) to another (usb 
headset).


I can easily do this with the pavucontrol program, but I cant figure out 
how to make pacmd do it.. any ideas?



Jason


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


Re: [CentOS] how to install postgresql ip4r

2016-11-03 Thread Jason Welsh

thanks, ill give that a shot.




On 11/03/2016 02:37 PM, John R Pierce wrote:

On 11/3/2016 7:58 AM, Jason Welsh wrote:
ok, so I removed the default postgresql install and installed it from 
the software collections..


following the instructions at

https://www.softwarecollections.org/en/scls/rhscl/rh-postgresql95/


the best way to install postgresqol, imho, is from the 
yum.postgresql.com respoitory run by the postgresql development 
group.  you get your choice of any of the active versions (9.2, 9.3, 
9.4, 9,5, and now 9.6), it has almost all of the add-ons available at 
your fingertips via yum, and its well integrated and well supported.  
It does require a few packages from the EPEL repository for some of 
the addon packages. 


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


Re: [CentOS] how to install postgresql ip4r

2016-11-03 Thread Jason Welsh
ok, so I removed the default postgresql install and installed it from 
the software collections..


following the instructions at

https://www.softwarecollections.org/en/scls/rhscl/rh-postgresql95/


and I get this

[root@home1p /home/jason]$scl enable rh-postgresql95 bash
[root@HOME1P jason]#  postgresql-setup --initdb
 * Initializing database in '/var/opt/rh/rh-postgresql95/lib/pgsql/data'
 * Initialized, logs are in 
/var/lib/pgsql/initdb_rh-postgresql95-postgresql.log

[root@HOME1P jason]#  service rh-postgresql95-postgresql start
Starting rh-postgresql95-postgresql service:   [  OK ]
[root@HOME1P jason]# psql
psql: FATAL:  role "root" does not exist
[root@HOME1P jason]#

any ideas?


Jason





On 11/02/2016 05:04 PM, John R Pierce wrote:

On 11/2/2016 1:49 PM, Jason Welsh wrote:

on the old postgresql that comes with centos 6?
Ive asked google over and over and he wont tell me. :(
(im trying to install it as a requirement for NIPAP) 


I don't think Postgres 8.4 has the infrastructure that ip4r extension 
requires.


but the ip4r release notes suggest...

make NO_EXTENSION=1
make NO_EXTENSION=1 install

then

psql -f /path/to/ip4r.sql dbname

to activate it in that dbname database.   they also mention there's 
quite a bit of stuff in ip4r that won't work on pre-9.1 Postgres due 
to lack of indexing support.






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


[CentOS] how to install postgresql ip4r

2016-11-02 Thread Jason Welsh

on the old postgresql that comes with centos 6?
Ive asked google over and over and he wont tell me. :(
(im trying to install it as a requirement for NIPAP)

Jason

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


[CentOS] migrate openldap to centos 7 server..

2016-08-21 Thread Jason Welsh
I hope this isnt terribly off-topic, but Im trying to migrate openldap from an 
old 32bit install 
of gentoo linux to 64bit centos 7. Ive searched and found all kinds of info on 
migrating, but 
none if it seems to work completely for me. 
It seems that the newer centos 7 opendlap config doesnt use the slapd.conf file 
any more.
So It appears I need two ldif files. one for the config and one for the actual 
database?
on the old server if I do (as root) 
slapcat -n 0, i get the error
slapcat: could not open database.
but I was able to get a dump of the (non-config) database with 
 slapcat -n 1, but I cant import that ldif on the new centos 7 server without 
the config part... 
anyone know what the right procedure for this would be ?

regards,
Jason

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


Re: [CentOS] php55w-fpm on CentOS 7: settings location

2016-08-03 Thread Jason Welsh
What I do is create a  php.php file on the root of my fileserver with 
the following





then when I browse to that file  http://servername/php.php


I get all the php information I can stand, including  the line "Loaded 
Configuration File"


which is where the running php server loaded php.ini from.


Jason


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


Re: [CentOS] compiling with lsocks support on centos 6?

2016-06-10 Thread Jason Welsh

ok thanks.

Jason

On 06/10/2016 03:29 PM, Alexander Dalloz wrote:

Am 10.06.2016 um 21:22 schrieb Alexander Dalloz:

Am 10.06.2016 um 19:46 schrieb Jason Welsh:

im trying to compile lftp with socks support and im getting the
following..

...
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for main in -lsocks5... no
configure: error: cannot find -lsocks5 library
[jason@nibbler lftp-4.7.2]$

ive looked and cant seem to figure out where to download the libsocks
stuff? I found 1 post on the innernets that said that its integrated in
the kernel?
How can I get this compiled with socks(5) support?


You may want to get the dante-devel rpm from the ghettoforge plus repo:

]# rpm2cpio dante-devel-1.4.1-176.9.x86_64.rpm | cpio -t
./usr/include/socks.h
./usr/lib64/libsocks.so
10 blocks


Sorry, did overlook that you are on CentOS 6 while the ghettoforge 
plus repo only provides dante packages for CentO 7. So you would have 
to get the source rpm


http://mirror.symnds.com/distributions/gf/el/7/plus/SRPMS/dante-1.4.1-176.9.src.rpm 



and compile a fitting dante-devel package yourself.


Jason


regards

Alexander



___
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


[CentOS] compiling with lsocks support on centos 6?

2016-06-10 Thread Jason Welsh

im trying to compile lftp with socks support and im getting the following..

...
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for main in -lsocks5... no
configure: error: cannot find -lsocks5 library
[jason@nibbler lftp-4.7.2]$

ive looked and cant seem to figure out where to download the libsocks 
stuff? I found 1 post on the innernets that said that its integrated in 
the kernel?

How can I get this compiled with socks(5) support?

Jason

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


Re: [CentOS] Badlock bad luck again

2016-05-23 Thread Jason Welsh
I just had an issue with  automounter not being about to mount windows 
shares after upgrading all the rpms on some of  my centos 6.x servers..

I haven't seen the fix  here yet so I thought I'd throw it out there..

as a workaround edit the  smb.conf file like so:

[global]
client use spnego = no

Jason


On 04/13/2016 06:05 PM, Bob Smith wrote:

I had exactly the same problem. Your workaround fixed me too.

With the new samba packages my samba\logs are full of errors.

If I temporarily disconnected the PC client NIC cable, and
logged into the domain using cached credentials, then I could
get past the problem. But, you helped me greatly with this
posting. I wasted hours checking Windows updates - useless.

We still need the new configuration settings for our conf file
to workaround this problem.

Bob Smith

bobsmith at dbata dot com



* Am 13.04.2016 um 07:51 schrieb Mogens Kjaer https://lists.centos.org/mailman/listinfo/centos>>:

*> >* Hello,
*> >* I run a CentOS 6 machine with samba, serving approx. 150 Windows
users with samba running as an NT-like PDC.
*> >* After today's samba update (samba-3.6.23-30.el6_7.x86_64 etc.),
nobody can log in.
*> >* They all get the "Trust relationship failed" error message.
*> >* If I downgrade:
*> >* yum downgrade samba-common samba-winbind samba-winbind-clients
samba-client samba samba-doc samba-domainjoin-gui libsmbclient
*> >* - the problem goes away.
*> >* What am I missing?
*> >* Mogens
*> >* --
*>* Mogens Kjaer, mk at lemo.dk

*>* http://www.lemo.dk 
*>* ___
*>* CentOS mailing list
*>* CentOS at centos.org 
*>* https://lists.centos.org/mailman/listinfo/centos

*
___
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


Re: [CentOS] trying to get amavid to work on centos 7 [solved]

2016-03-06 Thread Jason Welsh
On Sun, Mar 06, 2016 at 06:39:32PM +0100, Alexander Dalloz wrote:
> 
> Error reading config file "/etc/amavisd/amavisd.conf"
> 
> Validate the permissions of the configuration file.
> 
> >Jason
> 
> Alexander

ugh, I saw that message before and thought I fixed it. I set it to be 755 and 
now it works.. thanks.


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


[CentOS] trying to get amavid to work on centos 7

2016-03-06 Thread Jason Welsh
hey folks, trying to migrate my faithful old centos6 server over to centos 7 
and as part of my email server,
I have amavisd, clamd, postfix, etc..
The amavisd seems to be failing with some funky (systemd) error.. 

Mar  6 11:39:03 monster-new systemd: amavisd.service failed.
Mar  6 11:39:03 monster-new systemd: amavisd.service holdoff time over, 
scheduling restart.
Mar  6 11:39:03 monster-new systemd: Cannot add dependency job for unit 
firewalld.service, ignoring: Unit firewalld.service is masked.
Mar  6 11:39:03 monster-new systemd: Starting Amavisd-new is an interface 
between MTA and content checkers
Mar  6 11:39:03 monster-new amavisd: Error reading config file 
"/etc/amavisd/amavisd.conf": Permission denied at /usr/sbin/amavisd line 2163.
Mar  6 11:39:03 monster-new systemd: amavisd.service: control process exited, 
code=exited status=13
Mar  6 11:39:03 monster-new systemd: Failed to start Amavisd-new is an 
interface between MTA and content checkers..
Mar  6 11:39:03 monster-new systemd: Unit amavisd.service entered failed state.

yes, I did shut off the new-fangled firewalld so that I can use iptables the 
way I'm to.. 
sooo what should I do to make amavisd behave? 

Jason

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


Re: [CentOS] where did SCL go?

2016-02-20 Thread Jason Welsh
I believe it's because I'm using the 32 bit flavor of centos. Of course I
found a doc stating that right after I sent the email.

Thanks,
Jason
On Feb 20, 2016 2:18 PM, "Lamar Owen" <lo...@pari.edu> wrote:

> On 02/19/2016 08:55 PM, jason welsh wrote:
>
>> No package centos-release-SCL available.
>> Error: Nothing to do
>> monsterjam.org:/etc/letsencrypt/archive/monsterjam # cat
>> /etc/centos-release
>> CentOS release 6.7 (Final)
>> monsterjam:/etc/letsencrypt/archive/monsterjam #
>>
>> any ideas?
>>
>> Try centos-release-scl instead.
>
> ___
> 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


[CentOS] where did SCL go?

2016-02-19 Thread jason welsh
monsterjam:/etc/letsencrypt/archive/monsterjam # yum --enablerepo=extras
install centos-release-SCL
Loaded plugins: fastestmirror, remove-with-leaves
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.dattobackup.com
 * epel: mirror.us.leaseweb.net
 * extras: distro.ibiblio.org
 * updates: mirror.netdepot.com
No package centos-release-SCL available.
Error: Nothing to do
monsterjam.org:/etc/letsencrypt/archive/monsterjam # cat
/etc/centos-release
CentOS release 6.7 (Final)
monsterjam:/etc/letsencrypt/archive/monsterjam #

any ideas?


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


[CentOS] system refuses to install monit.

2016-01-26 Thread Jason Welsh

_**_So I have epel enabled on this centos 6 server, but
yum -y install monit will not install monit.
yum search monit does not show monit as available to be installed.


[root@lb1 ~]# yum install monit
Loaded plugins: fastestmirror, presto
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror-centos.hostingswift.com
 * epel: reflector.westga.edu
 * extras: mirrors.usinternet.com
 * updates: mirrors.usinternet.com
No package monit available.
Error: Nothing to do

If I download the rpm manually and try to localinstall it, it will not 
install..


[root@mb1 ~]# cat /etc/centos-release
CentOS release 6.7 (Final)
[root@lb1 ~]# rpm -qa | grep monit
[root@lb1 ~]# uname -m
x86_64
[root@lb1 ~]# ls -al monit-5.14-1.el6.x86_64.rpm
-rw-r--r-- 1 root root 267556 Sep 13 13:45 monit-5.14-1.el6.x86_64.rpm
[root@lb1 ~]# yum -v  localinstall monit-5.14-1.el6.x86_64.rpm
Loading "fastestmirror" plugin
Loading "presto" plugin
Config time: 0.036
Yum Version: 3.2.29
Setting up Local Package Process
rpmdb time: 0.000
Examining monit-5.14-1.el6.x86_64.rpm: monit-5.14-1.el6.x86_64
Excluding monit-5.14-1.el6.x86_64
Nothing to do
[root@lb1 ~]#

???!?!?

I did a rpm -i of the file and that seems to install the file.. but why 
will it not install with  yum?


Jason


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


Re: [CentOS] system refuses to install monit.

2016-01-26 Thread Jason Welsh

guilty as charged... ugh.. thanks! ;)

Jason


Check /etc/yum.conf.  You probably have that listed on an exclude line.



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


Re: [CentOS] cant reattach to screen session since upgrade of screen rpm?

2015-10-15 Thread Jason Welsh

I finished installing all of the rpms
monsterjam:~ $ cat /etc/redhat-release
CentOS release 6.7 (Final)

but I still have the issue where screen freezes when i try to reattach.

Jason



On 10/15/2015 02:59 PM, Leon Fauster wrote:

Am 15.10.2015 um 20:36 schrieb Jason Welsh <jason.we...@mercurygate.com>:

hey folks, running CentOS release 6.6 (Final) and I was upgrading some rpms and 
now since screen (and probably some others) were upgraded, I can no longer 
reattach to my screen session I had running.

maybe that are packages of 6.7, therefore I suggest
to upgrade completely to 6.7 and see if the problem
can be reproduced ...

--
LF

  
___

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


[CentOS] cant reattach to screen session since upgrade of screen rpm?

2015-10-15 Thread Jason Welsh
hey folks, running CentOS release 6.6 (Final) and I was upgrading some 
rpms and now since screen (and probably some others) were upgraded,

I can no longer reattach to my screen session I had running.

monsterjam:~ $ rpm -qi screen
Name: screen   Relocations: (not relocatable)
Version : 4.0.3 Vendor: CentOS
Release : 18.el6Build Date: Thu 23 Jul 2015 
01:41:46 PM EDT
Install Date: Thu 15 Oct 2015 01:15:28 PM EDT  Build Host: 
c6b8.bsys.dev.centos.org
Group   : Applications/System   Source RPM: 
screen-4.0.3-18.el6.src.rpm



monsterjam:~ $ screen -ls
There is a screen on:
13262.stuff(Detached)
1 Socket in /var/run/screen/S-jason.

when I try to reattach, it just hangs..

monsterjam:~ $ screen -dr 13262.stuff

ive found the following and tried them all..
Try detaching it first with screen -d. If that doesn't work, you can 
try, in increasing order of emphasis,


   -d|-D [pid.tty.host]
does  not  start screen, but detaches the elsewhere running 
screen session. It has the
same effect as typing "C-a d" from screen's controlling 
terminal. -D is the equivalent
to  the  power  detach key.  If no session can be detached, 
this option is ignored. In
combination with the -r/-R option more powerful effects can be 
achieved:


   -d -r   Reattach a session and if necessary detach it first.

   -d -R   Reattach a session and if necessary detach or even create it 
first.


   -d -RR  Reattach a session and if necessary detach or create it. Use 
the first  session  if

   more than one session is available.

   -D -r   Reattach a session. If necessary detach and logout remotely 
first.


   -D -R   Attach  here and now. In detail this means: If a session is 
running, then reattach.
   If necessary detach and logout remotely first.  If it was 
not running create it and

   notify the user. This is the author's favorite.

   -D -RR  Attach here and now. Whatever that means, just do it.

but none of them seem to work.. any ideas?

Jason



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


[CentOS] tcp wrappers Question..

2015-10-14 Thread Jason Welsh

hey folks, I keep seeing this on the internet

"The user name lookup feature of TCP Wrappers uses identd to identify 
the username of the remote host. By default, this feature is disabled, 
as identd may appear hung when there are a large number of TCP connections."


but I cant seem to find out how/where to enable said feature.

Jason


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


Re: [CentOS] tcp wrappers Question..

2015-10-14 Thread Jason Welsh

understood.  this is just on a local network.. thanks for the info

On 10/14/2015 03:20 PM, Gordon Messmer wrote:

On 10/14/2015 11:39 AM, Jason Welsh wrote:
but I cant seem to find out how/where to enable said feature. 


See the man pages for hosts_options and hosts_access.  It is rare for 
systems to support RFC 931 and common for firewalls to drop requests 
(creating long delays in connections), so user name lookup is probably 
only useful within a private network of systems that you control, on 
which you have enabled identd on each client system.

___
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


Re: [CentOS] android sdk on centos7 64-bit.

2015-09-21 Thread Jason Welsh

yeah, that still doesnt work..

[jason@centos7 platform-tools]$ yum whatprovides /lib/ld-linux.so.2
Loaded plugins: fastestmirror, langpacks, product-id, subscription-manager
Determining fastest mirrors
 * epel: archive.linux.duke.edu
No matches found
[jason@centos7 platform-tools]$ yum whatprovides ld-linux.so.2
Loaded plugins: fastestmirror, langpacks, product-id, subscription-manager
Loading mirror speeds from cached hostfile
 * epel: archive.linux.duke.edu
No matches found
[jason@centos7 platform-tools]$ yum whatprovides */ld-linux.so.2
Loaded plugins: fastestmirror, langpacks, product-id, subscription-manager
Loading mirror speeds from cached hostfile
 * epel: archive.linux.duke.edu
No matches found
[jason@centos7 platform-tools]$ yum whatprovides '*/ld-linux.so.2'
Loaded plugins: fastestmirror, langpacks, product-id, subscription-manager
Loading mirror speeds from cached hostfile
 * epel: archive.linux.duke.edu
No matches found
[jason@centos7 platform-tools]$
[jason@centos7 platform-tools]$ sudo yum provides */ld-linux.so.2
Loaded plugins: fastestmirror, langpacks, product-id, subscription-manager
This system is not registered with Subscription Management. You can use 
subscription-manager to register.

Loading mirror speeds from cached hostfile
 * epel: ftp.cse.buffalo.edu
No matches found
[jason@centos7 platform-tools]$

seems like im missing the 32bit libs repo?

Jason



On 09/21/2015 12:56 PM, Richard wrote:

you need to use yum's "whatprovides" facility to find the package
that has the ld-linux.so.2 library.



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


Re: [CentOS] android sdk on centos7 64-bit. [Solved]

2015-09-21 Thread Jason Welsh

aha! this is why..

[root@centos7 yum.repos.d]# rpm -qf /etc/centos-release
file /etc/centos-release is not owned by any package

not sure how it got that way, but after a reinstall of 
centos-release-7-1.1503.el7.centos.2.8.x86_64.rpm

my system is happy again.

thanks/regards,
Jason


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


Re: [CentOS] android sdk on centos7 64-bit.

2015-09-21 Thread Jason Welsh

you are correct sir.. something is screwed up!

I remember running into a problem with the base repo enabled and swept 
it under the rug by disabling it for the moment and then
forgot all about disabling it.. So when I enable the base repo, and run 
yum with debug flag, I see the following:



Setting up Package Sacks
http://mirror.centos.org/centos/%24releasever/os/x86_64/repodata/repomd.xml: 
[Errno 14] HTTP Error 404 - Not Found

Trying other mirror.

now where does centos get this variable from that's getting messed up?

thanks/regards,
Jason


On 09/21/2015 01:22 PM, Frank Cox wrote:
You either aren't using Centos, or you have something really screwed 
up with your yum repos. 


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


Re: [CentOS] android sdk on centos7 64-bit.

2015-09-21 Thread Jason Welsh

[root@centos7 Packages]#  yum install /lib/ld-linux.so.2
Loaded plugins: fastestmirror, langpacks, product-id, subscription-manager
This system is not registered with Subscription Management. You can use 
subscription-manager to register.

epel/x86_64/metalink |  12 kB  00:00:00
ftp_repo | 3.6 kB  00:00:00
Loading mirror speeds from cached hostfile
 * epel: ftp.cse.buffalo.edu
No package /lib/ld-linux.so.2 available.
Error: Nothing to do



On 09/21/2015 12:44 PM, Gordon Messmer wrote:
yum install /lib/ld-linux.so.2 


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


[CentOS] android sdk on centos7 64-bit.

2015-09-21 Thread Jason Welsh
trying to use the android sdk on centos 7 and cant seem to find the 
32bit libs..


[jason@centos7 platform-tools]$ ./adb devices
-bash: ./adb: /lib/ld-linux.so.2: bad ELF interpreter: No such file or 
directory

[jason@centos7 platform-tools]$

whats the right way to isntall the needed 32bit libs? I cant seem to 
find them with yum provides..

Ive tried multilib_policy=best in my yum.conf as well.

Jason

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


Re: [CentOS] automounter with users home directories on centos 7.

2015-09-11 Thread Jason Welsh

AHA!!  now I think we are getting somewhere! ;)

Mount point: /home

source(s):

  instance type(s): program
  map: /etc/auto.home

  no keys found in map  <- bing bing bing!!  I believe this 
means it doesnt like whats in my /etc/auto.home?



s whats wrong with:

[root@server2 etc]# cat /etc/auto.home
*-rw,soft,intr192.168.0.110:/home/&
[root@server2 etc]#

ive tried it with tabs and with spaces with the host name,  with the ip 
address..


in the logs, I see
 Sep 11 09:41:00 server2 automount[3609]: expire_proc: exp_proc = 
140717501646592 path /home

Sep 11 09:41:00 server2 automount[3609]: st_expire: state 1 path /-
Sep 11 09:41:00 server2 automount[3609]: expire_proc: exp_proc = 
140717424346880 path /-
Sep 11 09:41:00 server2 automount[3609]: expire_cleanup: got thid 
140717501646592 path /home stat 0
Sep 11 09:41:00 server2 automount[3609]: expire_cleanup: sigchld: exp 
140717501646592 finished, switching from 2 to 1
Sep 11 09:41:00 server2 automount[3609]: st_ready: st_ready(): state = 2 
path /home
Sep 11 09:41:00 server2 automount[3609]: expire_cleanup: got thid 
140717424346880 path /- stat 0
Sep 11 09:41:00 server2 automount[3609]: expire_cleanup: sigchld: exp 
140717424346880 finished, switching from 2 to 1
Sep 11 09:41:00 server2 automount[3609]: st_ready: st_ready(): state = 2 
path /-

Sep 11 09:41:01 server2 automount[3609]: handle_packet: type = 3
Sep 11 09:41:01 server2 automount[3609]: handle_packet_missing_indirect: 
token 76, name jason, request pid 3752
Sep 11 09:41:01 server2 automount[3609]: attempting to mount entry 
/home/jason
Sep 11 09:41:01 server2 automount[3609]: lookup_mount: lookup(program): 
looking up jason
Sep 11 09:41:01 server2 automount[3609]: lookup(program): lookup for 
jason failed



regards,
Jason





On 09/11/2015 09:20 AM, John Hodrien wrote:

automount -m



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


Re: [CentOS] automounter with users home directories on centos 7. [resolved]

2015-09-11 Thread Jason Welsh

sunnuva scruffy-looking nerf herder!!

/etc/auto.home   was executable..   so it failed..
I did chmod -x /etc/auto.home   and restarted autofs
and now it works..

thanks for the help!

Jason

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


Re: [CentOS] automounter with users home directories on centos 7.

2015-09-11 Thread Jason Welsh

ok, I have moved home out of the way and restarted automounter..
and now I see the /home directory appear when autofs is started, but 
there is still nothing there..


[root@server2 home]# cd /home
[root@server2 home]# ls
[root@server2 home]# cd jason
-bash: cd: jason: No such file or directory
[root@server2 home]# df -h ./
Filesystem  Size  Used Avail Use% Mounted on
/etc/auto.home 0 0 0- /home
[root@server2 home]#

I still dont see any errors  in the logs on either server.

btw, my uid on both servers is the same.
[root@server2 ~]# id jason
uid=1000(jason) gid=1000(jason) groups=1000(jason),10(wheel)

[root@server1 log]# id jason
uid=1000(jason) gid=1000(jason) groups=1000(jason),10(wheel)

Jason


On 09/10/2015 07:32 PM, James A. Peltier wrote:


- Original Message -
|
| [root@server2 home]# mount server1:/home/jason /home/jason
| [root@server2 home]#
| [root@server2 home]# ls /home/jason/
| Desktop  Documents  Downloads  Music  mylogfile.txt  Pictures Public
| Templates  Videos
| [root@server2 home]# df -h /home/jason/
| Filesystem   Size  Used Avail Use% Mounted on
| server1:/home/jason  297M   19M  278M   7% /home/jason
| [root@server2 home]#
|
| so it works manually, just not with the automounter.
|
| Jason

Of course, because a manual mount expects a directory to already exist to mount 
on. Automounter creates virtual mount points on demand and so if there are 
existing directories already in place it will fail.

Stop autofs.  Move the /home out of the way.  Start automounter and than do an ls /home.  
It should "just work"



--
*/Jason Welsh/*
*MercuryGate International, Inc.*
Sr. System Administrator
O: 919-469-7670
C: 919-410-7883
_jason.we...@mercurygate.com <mailto:jason.we...@mercurygate.com>_

*SMARTER, STRONGER, FASTER, BETTER*
www.mercurygate.com <http://www.mercurygate.com>
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] automounter with users home directories on centos 7.

2015-09-10 Thread Jason Welsh


[root@server2 home]# mount server1:/home/jason /home/jason
[root@server2 home]#
[root@server2 home]# ls /home/jason/
Desktop  Documents  Downloads  Music  mylogfile.txt  Pictures Public  
Templates  Videos

[root@server2 home]# df -h /home/jason/
Filesystem   Size  Used Avail Use% Mounted on
server1:/home/jason  297M   19M  278M   7% /home/jason
[root@server2 home]#

so it works manually, just not with the automounter.

Jason



On 09/09/2015 05:35 PM, James A. Peltier wrote:

- Original Message -
| Not tried automount with Centos 7 nor with selinux.
|
| With that said autofs relies on nfs mounting to work, so have you
| started there by attempting to manually mount /home?
|
| Another place to look is at the hostname.  I've had problems where auto
| mount doesn't like the short name and insists on using a FQDN, to get
| around that you could try using the IP address rather than the hostname.
|
| On 09/09/15 16:31, Jason Welsh wrote:
| > showmount -e
|
| --
| If money can fix it, it's not a problem.
|   -- Click and Clack the Tappet brothers

/home is a directory by default on all GNU/Linux hosts.  If you plan to use it 
as a mount point then you need to remove the directory and then start autofs 
otherwise there will be a conflict.


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


[CentOS] automounter with users home directories on centos 7.

2015-09-09 Thread Jason Welsh
Has anyone gotten this to work? Im studing for my rhce and was trying to 
get this to work and its just not working like it shows in the book im 
going by.
So basically I have two centos 7 servers running under kvm.. One is the 
nfs server, one is the nfs client.. I have been mounting up other NFS 
shares on the client and they work fine.. The automounter also seems to 
mount direct mounts fine as well.. But when I try to do home 
directories, it just doesnt work..

on my server (named server1), Im exporting /home as
/homeserver2(rw,sync,no_root_squash)

on my client, ive got
[root@server2 ~]# grep home /etc/auto.master
/home/etc/auto.home --timeout=120
and
[root@server2 ~]# cat /etc/auto.home
*-rw,soft,intrserver1:/home/&
[root@server2 ~]#

and on server1, ive got the selinux enabled, but have the following 
booleans set.

[root@server1 ~]# getsebool -a | grep nfs_
nfs_export_all_ro --> on
nfs_export_all_rw --> on
use_nfs_home_dirs --> on
[root@server1 ~]#

so when I try to switch to my user on server2 (client), I get
[root@server2 ~]# su - user1
Last login: Wed Sep  9 16:25:27 EDT 2015 on pts/0
su: warning: cannot change directory to /home/user1: No such file or 
directory

-bash-4.2$

and theres nothing in the logs that I can find as to why the automount  
isnt working..

[root@server2 ~]# showmount -e server1
Export list for server1:
/home server2

I generated a log (on both server) with sealert, but it shows
found 0 alerts in /var/log/audit/audit.log

any ideas?


--
Jason

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