Grokbase
Topics Posts Groups | in
x
[ help ]

Craig White (c...@tobyhouse.com)

Profile | Posts (28)Page 1 of 2: 1 2 > >>
1) Craig White Re: [CentOS] yum: removing Java group fails
| +1 vote
rpm -e --justdb some_package rpm --help Craig
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Wed, 2008-03-26 at 01:09 +0100, Kai Schaetzl wrote:
> I did a "yum groupremove Java" and that failed "somehow". Yum listed all
> group members as "erased", but some rpm packages failed because of missing
> config files or so. As a result none of the 50 packages were removed from
> the rpm database, but all of their files seem to have been removed.
> How can I clean them out from the rpm db?
----

rpm -e --justdb some_package

rpm --help

Craig

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
2) Craig White RE: [CentOS] Enterprisable IP Camera recording/monitoring software
| +1 vote
absolutely but you will have to plan it out because capturing data takes up HUGE chunks of disk...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Thu, 2008-03-20 at 10:43 -0600, Joseph L. Casale wrote:
> > The problem with the script is that it currently only works on SGI's. I
> > haven't had a chance to try and find/build/install Linux/Open Source
> > equivalents. On SGI's, there is one command to take a list of JPEG files and
> > dump out a single Quick Time file.
>
> No prob. As recommended, I will stick with Zoneminder.
> I am just primarily concerned with the reliability and uptime of the application. I take it that Zoneminder can run unattended for long periods without issue?
----

absolutely but you will have to plan it out because capturing data takes
up HUGE chunks of disk space.

Zoneminder is brilliant

Craig

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
3) Craig White RE: [CentOS] Enterprisable IP Camera recording/monitoring software
| +1 vote
zoneminder is all perl scripts zoneminder is the answer you need Craig
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Thu, 2008-03-20 at 10:14 -0600, Joseph L. Casale wrote:
> >      Go to:
> >
> > http://www.axis.com/
> >
> > pick out and buy the camera that matches your needs. We've been using one of
> > these cameras for a number of years and they work great. We can set up the
> > camera to automatically send image files to a server on a preset schedule and
> > rate. With some home grown scripts, we convert the images to movie files for
> > viewing.
> > We first tried a D-LINK camera before the AXIS, but it just doesn't work
> > well at all and often goes out to lunch for no apparent reason.
> >      Hope this helps some.
> >
>
> Yea, I was convinced about Axis already. Zoneminder looks neat, but you use a script to convert to movie files? Care to share that?
> Thanks!
----

zoneminder is all perl scripts

zoneminder is the answer you need

Craig

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
4) Craig White Re: [CentOS] Enterprisable IP Camera recording/monitoring software
| +1 vote
zoneminder - incredible - flexible - sophisticated http://www.zoneminder.com/ Craig
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Thu, 2008-03-20 at 09:43 -0600, Joseph L. Casale wrote:
> Anyone have any experiences with this they care to share?
----
zoneminder - incredible - flexible - sophisticated

http://www.zoneminder.com/

Craig

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
5) Craig White Re: [CentOS] centos ldap client authentication
| +1 vote
system-config-authentication does more than edit /etc/ldap.conf and /etc/nsswitch.com, it also...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Sun, 2008-03-09 at 23:24 -0400, Dave wrote:
> Hello,
> I've got a FreeBSD openldap server set up and i'd like to authenticate
> to it with a centos 5.1 client. The server is also acting as a client itself
> and user access works fine from it.
> On the clientside I'm getting an error can not search ldap server,
> server is unavailable. This is with pam_ldap. I'm using tls encryption. On
> the client if i do:
>
> ldapsearch -xZ
>
> i get every entry in my directory. And if i do:
>
> ldapsearch -xZ -L '(uid=user)'
>
> i get a specific user out of it, so i'm concluding the error is in my
> /etc/ldap.conf file. I've added ldap to my nsswitch.conf file clientside to
> the passwd, shadow, and group lines. On the server i'm seeing a tls
> negotiation failure error msg and the client as i said can not search ldap
> server.
----

system-config-authentication

does more than edit /etc/ldap.conf and /etc/nsswitch.com, it also
changes /etc/pam.d/system-auth and that is pretty necessary.

Suggest that you run the tool

Craig

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
6) Craig White Re: [CentOS] rsync
| +1 vote
doesn't work... rsync -ncauv --exclude-from='/root/scripts/qm_manual_filter' \ --include='**/*.pdf'...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Fri, 2008-03-07 at 19:09 +0000, Anne Wilson wrote:
> On Friday 07 March 2008 18:40:03 Craig White wrote:
> > I've gone over and over the man page and I don't get it and it's
> > obviously a simple task
> >
> > I want to rsync a directory but only the pdf files...
> >
> > rsync -ncauv --include=*.pdf $WORKING $WEB_SERVER
> > # sync's everything, I want to exclude stuff
> >
> > rsync -ncauv --filter='+ *.pdf' --filter='+ *.odt *.ott *.eps' \
> > $WORKING $WEB_SERVER
> > # sync's everything...does not seem to exclude anything
> >
> > rsync -ncauv --filter='. /root/scripts/qm_manual_filter' \
> > $WORKING $WEB_SERVER
> > # cat qm_manual_filter
> > - *
> > + *pdf
> >
> > excludes everything
> >
> > I am using -n for dry-run
> > I definitely need recursive but -a option handles that
> >
> I don't know if it would work, but could you
> use --exclude-from=/path/to/skiplist.txt to exclude everything then use your
> filter line to add .pdfs back?
>
> I've not tried adding anything back after excluding. You can certainly use
> wild cards in your skiplist, such as *.odt *.ott *.eps
----

doesn't work...

(from script)
rsync -ncauv --exclude-from='/root/scripts/qm_manual_filter' \
--include='**/*.pdf' $WORKING $WEB_SERVER

# ./sync-qm_manual.scr
building file list ... done

sent 29 bytes  received 20 bytes  98.00 bytes/sec
total size is 0  speedup is 0.00

no files but changing qm_manual_filter to specifics...

# cat qm_manual_filter
#+ **/*pdf
#- *
- *.ods
- *.odt
- *.ott
- *.eps
- Build-PDF/

did work, so I guess the simplest form is to just do this...

# tail -n 1 script...
rsync -ncauv \
--filter='. /root/scripts/qm_manual_filter' \
$WORKING $WEB_SERVER

# cat qm_manual_filter
+ **/*pdf
- *.ods
- *.odt
- *.ott
- *.eps
- Build-PDF/

which ultimately does what I want, I think.

Thanks

Craig


_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
7) Craig White [CentOS] rsync
| +1 vote
I've gone over and over the man page and I don't get it and it's obviously a simple task I want to...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
I've gone over and over the man page and I don't get it and it's
obviously a simple task

I want to rsync a directory but only the pdf files...

rsync -ncauv --include=*.pdf $WORKING $WEB_SERVER
# sync's everything, I want to exclude stuff

rsync -ncauv --filter='+ *.pdf' --filter='+ *.odt *.ott *.eps' \
$WORKING $WEB_SERVER
# sync's everything...does not seem to exclude anything

rsync -ncauv --filter='. /root/scripts/qm_manual_filter' \
$WORKING $WEB_SERVER
# cat qm_manual_filter
- *
+ *pdf

excludes everything

I am using -n for dry-run
I definitely need recursive but -a option handles that

Suggestions?

Craig

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
8) Craig White [CentOS] umask in nfs
| +1 vote
Normal users umask is 022 set in /etc/bashrc Obviously I can change that value to 002 but that...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Normal users umask is 022 set in /etc/bashrc

Obviously I can change that value to 002 but that would affect all files
created by each user.

Is it possible to set a different umask on nfs mounts only so that user
created files have a umask of 002 on files saved onto that mount?

man mount shows this is possible on some filesystems but man nfs doesn't
suggest that this is possible.

Craig

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
9) Craig White Re: [CentOS] Completely lost X (was system-config-display wronglysets up Viewsonic VG730m monitor)
| +1 vote
I was reluctant to state this because I have no authoritative knowledge on these things but if you...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Thu, 2008-02-28 at 20:31 +0000, Anne Wilson wrote:
> On Thursday 28 February 2008 20:00:25 Ross S. W. Walker wrote:
> >
> > Here is a simple Vesa config that should work on most cards and monitors,
> > I use it here at work during kickstart installs.
> >
> > Section "ServerLayout"
> >         Identifier     "Default Layout"
> >         Screen      0  "Screen0" 0 0
> > InputDevice "Keyboard0" "CoreKeyboard"
> > EndSection
> >
> > Section "InputDevice"
> >         Identifier  "Keyboard0"
> >         Driver      "kbd"
> >         Option      "XkbModel" "pc105"
> >         Option      "XkbLayout" "us"
> > EndSection
> >
> > Section "Device"
> >         Identifier  "Videocard0"
> >         Driver      "vesa"
> > EndSection
> >
> > Section "Screen"
> >         Identifier "Screen0"
> >         Device     "Videocard0"
> >         DefaultDepth     24
> >         SubSection "Display"
> >                 Viewport   0 0
> >                 Depth     24
> > Modes "1280x1024" "1024x768" "800x600" "640x480"
> >         EndSubSection
> > EndSection
> >
> Hi, Ross. Thanks for that. It got me in, but at a horrid 800x600, so I ran
> system-config-display, setting it to generic 1280x1024, and leaving the vesa
> driver.  Then I got
>
> "out of range
> H.Frequency: 75KHZ
> V.Frequency: 60HZ"
>
> Back into vi, and set the refresh rates, and eureka! I'm back in business.
> Is it worth trying the nv driver again, or should I leave well alone?
>
> Thanks for the help. That config is going to be printed out for
> my "Emergencies" file. :-)
----

I was reluctant to state this because I have no authoritative knowledge
on these things but if you change video cables, I think that you need to
reboot to get the video chipset to properly recognize the cable/monitor
connected.

Craig

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
10) Craig White Re: [CentOS] Completely lost X (was system-config-display wrongly sets up Viewsonic VG730m monitor)
| +1 vote
init 3 system-config-display --reconfig Craig
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Thu, 2008-02-28 at 19:17 +0000, Anne Wilson wrote:
> On Tuesday 19 February 2008 13:02:31 Johnny Hughes wrote:
> > Anne Wilson wrote:
> >
> > <snip>
> >
> > > ### Comment all HorizSync and VertSync values to use DDC:
> > >         Identifier   "Monitor0"
> > > ModelName "Monitor 1280x1024"
> > > ### Comment all HorizSync and VertSync values to use DDC:
> > >         HorizSync    60.0 - 72.0
> > >         VertRefresh  60.0 - 72.0
> > >         Option      "dpms"
> > > EndSection
> > >
> > > Section "Device"
> > >         Identifier  "Videocard0"
> > >         Driver      "nv"
> > > EndSection
> > >
> > > Section "Screen"
> > >         Identifier "Screen0"
> > >         Device     "Videocard0"
> > >         Monitor    "Monitor0"
> > >         DefaultDepth     16
> > >         SubSection "Display"
> > >                 Viewport   0 0
> > >                 Depth     24
> > >         EndSubSection
> > >         SubSection "Display"
> > >                 Viewport   0 0
> > >                 Depth     16
> > >         EndSubSection
> > > EndSection
> >
> > try this:
> > #
> > ### Comment all HorizSync and VertSync values to use DDC:
> >           Identifier   "Monitor0"
> >           ModelName    "Monitor 1280x1024"
> > ### Comment all HorizSync and VertSync values to use DDC:
> >           HorizSync    30.0 - 82.0
> >           VertRefresh  56.0 - 75.0
> >           Option      "dpms"
> > EndSection
> >
> > Section "Device"
> >           Identifier  "Videocard0"
> >           Driver      "nv"
> > EndSection
> >
> > Section "Screen"
> >           Identifier "Screen0"
> >           Device     "Videocard0"
> >           Monitor    "Monitor0"
> >           DefaultDepth     16
> >      SubSection     "Display"
> >          Viewport    0 0
> >          Depth       24
> > Modes "1280x1024" "1280x960" "1280x800" "1152x864"
> > "1152x768" "1024x768" "800x600" "640x480"
> >      EndSubSection
> >      SubSection     "Display"
> >          Viewport    0 0
> >          Depth       16
> > Modes "1280x1024" "1280x960" "1280x800" "1152x864"
> > "1152x768" "1024x768" "800x600" "640x480"
> >      EndSubSection
> > EndSection
> > #
> >
> > (the "modes" lines will wrap ... but all the resolutions should be all
> > on one line, separated by spaces and inside quotes)
> >
> > Also, if "DefaultDepth 16" does not work, try "DefaultDepth 24"
> >
> > You say that you bought a digital lead ... meaning I guess that you are
> > using a different PORT on your video card and monitor. It is possible
> > that he standard "nv" driver does not support that port on your video
> > card and that you will need to instead download the proprietary drivers
> > from nvidia's website to get that port to function. Regardless of which
> > driver and cable you use, the resolution/freq of the screen is going to
> > be the same ... why not just use the old cable :D
> >
> Johnny, this afternoon I got around to putting the old cable back in, only to
> find that I can't get X correctly configured again. I have no X. I managed
> to get to a text screen and vi xorg.conf, putting in exactly what you
> recommended above (maybe that was for digital, not analogue?). I still can't
> startx.  I see
>
> (==) Using config file: "/etc/X11/xorg.conf"
> (EE) NV(0): No valid initial configuration found
> (EE) Screen(s) found, but none have a usable configuration.
>
> Fatal server error:
> no screens found
> XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0"
> after 0 requests (0 known processed) with 0 events remaining.
>
> Can you recommend a really basic xorg.conf to get me started? Thanks
----

init 3
system-config-display --reconfig

Craig

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
11) Craig White RE: [CentOS] nss_ldap failed to bind to LDAP server 127.0.0.1
| +1 vote
gotcha what is in /etc/nsswitch.conf ? Craig
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Tue, 2008-02-19 at 16:05 -0800, Hugh E Cruickshank wrote:
> From: Craig White Sent: February 19, 2008 15:31
> >
> > On Tue, 2008-02-19 at 14:09 -0800, Hugh E Cruickshank wrote:
> > >
> > > Feb 17 19:46:18 fisds0 named[23187]: nss_ldap: failed to bind to
> > > LDAP server 127.0.0.1: Can't contact LDAP server
> > > Feb 17 19:46:18 fisds0 named[23187]: nss_ldap: reconnecting to
> > >   LDAP server...
> > >
> > > However the errors are still being reported in the messages log
> > > file.
> > > The errors are valid as we do not have and LDAP server (on my list
> > > for a future project). What I am trying to figure out is why it is
> > > looking for one. I have done some additional google searching but I
> > > have not found any definitive answers. From what I have seen I
> > > suspect
> > > that the problem lays with our /etc/nsswitch.conf file and that I
> > > need to change references to "file ldap" to just "files".
> > >
> >  
> > I have to use these in CentOS 5.x
> >
> > tail -n 4 /etc/ldap.conf
> > timelimit 30
> > bind_timelimit 30
> > bind_policy soft
> > nss_initgroups_ignoreusers root,ldap
> >
>
> Thanks for the suggestion but these would appear to control the way
> that LDAP behaves. Since we do not have an LDAP server I would think
> that they would be superfluous. What I really need to do is stop
> things from looking for an LDAP server in the first place.
>
> Thanks again for your suggestion.
>
> Regards, Hugh
----

gotcha

what is in /etc/nsswitch.conf ?

Craig

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
12) Craig White Re: [CentOS] nss_ldap failed to bind to LDAP server 127.0.0.1
| +1 vote
I have to use these in CentOS 5.x tail -n 4 /etc/ldap.conf timelimit 30 bind_timelimit 30...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Tue, 2008-02-19 at 14:09 -0800, Hugh E Cruickshank wrote:
> Hi All:
>
> Over the weekend I install all the outstanding updates for our
> CentOS 4 based server. Since I had been holding off on these until
> I had addressed some disk space issues there were a large number
> (300+). I know my bad! After installing the updates I rebooted the
> system and it took forever to boot and once up there were problems
> connecting to some of our SAMBA shares. I checked the messages log
> file and found a multitude of entries similar to:
>
> Feb 17 19:46:18 fisds0 named[23187]: nss_ldap: failed to bind to
> LDAP server 127.0.0.1: Can't contact LDAP server
> Feb 17 19:46:18 fisds0 named[23187]: nss_ldap: reconnecting to
>   LDAP server...
>
> These were being reported for named, nscd, smbd, statd, rquotad, etc.
>
> I did some google searching and found some references to the change of
> the default value for the "bind_policy" parameter in the "ldap.conf"
> file from "soft" to "hard". I added and explicit "bind_policy soft" to
> the "/etc/ldap.conf" file and that has improved things dramatically.
>
> However the errors are still being reported in the messages log file.
> The errors are valid as we do not have and LDAP server (on my list