[CentOS] Grub boot loader?

2010-02-01 Thread hadi motamedi
 Dear All
On my CentOS server , the '/boot/grub/menu.lst' has the right configuration
but when I reboot my CentOS server I cannot enter to grub edit menu to edit
my boot kernel by pressing the 'e' key . Can you please confirm if I can
activate it through issuing the followings :
#grub-install /dev/hdax
Is it a safe procedure to try with? Please confirm.
Thank you
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Grub boot loader?

2010-02-01 Thread MHR
On Mon, Feb 1, 2010 at 12:04 AM, hadi motamedi  wrote:
> Dear All
> On my CentOS server , the '/boot/grub/menu.lst' has the right configuration
> but when I reboot my CentOS server I cannot enter to grub edit menu to edit
> my boot kernel by pressing the 'e' key . Can you please confirm if I can
> activate it through issuing the followings :
> #grub-install /dev/hdax
> Is it a safe procedure to try with? Please confirm.
> Thank you
>

Are you starting with a  to interrupt the boot?

Have you tried editing it using a normal editor (vi or emacs) as root
while the system is up?

What exactly are you trying to do?

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


Re: [CentOS] Grub boot loader?

2010-02-01 Thread hadi motamedi
On Mon, Feb 1, 2010 at 8:24 AM, MHR  wrote:

>  On Mon, Feb 1, 2010 at 12:04 AM, hadi motamedi 
> wrote:
> > Dear All
> > On my CentOS server , the '/boot/grub/menu.lst' has the right
> configuration
> > but when I reboot my CentOS server I cannot enter to grub edit menu to
> edit
> > my boot kernel by pressing the 'e' key . Can you please confirm if I can
> > activate it through issuing the followings :
> > #grub-install /dev/hdax
> > Is it a safe procedure to try with? Please confirm.
> > Thank you
> >
>
> Are you starting with a  to interrupt the boot?
>
> Have you tried editing it using a normal editor (vi or emacs) as root
> while the system is up?
>
> What exactly are you trying to do?
>
> mhr
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

Thanks for your message . When I reboot my CentOS server I see the the menu
with a timer but I cannot enter to edit my boot kernel by pressing 'e' key .
Then the timer will expire and the boot process will begin . I want to be
able to edit my kernel through grub edit so I asked if I can try for
'grub-install /dev/hdax' w/o any harm on my CentOS server . Do you mean I
can edit my '/boot/grub/menu.lst' by vi the same as I want to do inside my
grub edit ? Are they the same procedures ? Please confirm.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Grub boot loader?

2010-02-01 Thread James Hogarth
On 1 February 2010 08:33, hadi motamedi  wrote:
>
>
> On Mon, Feb 1, 2010 at 8:24 AM, MHR  wrote:
>>
>> On Mon, Feb 1, 2010 at 12:04 AM, hadi motamedi 
>> wrote:
>> > Dear All
>> > On my CentOS server , the '/boot/grub/menu.lst' has the right
>> > configuration
>> > but when I reboot my CentOS server I cannot enter to grub edit menu to
>> > edit
>> > my boot kernel by pressing the 'e' key . Can you please confirm if I can
>> > activate it through issuing the followings :
>> > #grub-install /dev/hdax
>> > Is it a safe procedure to try with? Please confirm.
>> > Thank you
>> >
>>
>> Are you starting with a  to interrupt the boot?
>>
>> Have you tried editing it using a normal editor (vi or emacs) as root
>> while the system is up?
>>
>> What exactly are you trying to do?
>>
>> mhr
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>
>
> Thanks for your message . When I reboot my CentOS server I see the the menu
> with a timer but I cannot enter to edit my boot kernel by pressing 'e' key .
> Then the timer will expire and the boot process will begin . I want to be
> able to edit my kernel through grub edit so I asked if I can try for
> 'grub-install /dev/hdax' w/o any harm on my CentOS server . Do you mean I
> can edit my '/boot/grub/menu.lst' by vi the same as I want to do inside my
> grub edit ? Are they the same procedures ? Please confirm.
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>

When grub runs it will read /boot/grub/menu.lst to determine it's
configuration. There is no need to run grub-install for a change to
configuration as that just installs the stage 1 boot loader code in
the MBR or partition. ALSO SO FAR AS I recakk (migth be wrong) any
edits done to the configuration via 'e' from the grub menu (which
sounds like what you want to do) are non-persistent and it's more for
debugging and//or booting with a broken configuration... If you can
get into the system itself edit /boot/grub/menu.lst 

Phew... thankfully we don't have grub2 in centos yet and issues
surrounding module loading and the /etc/grub.d architecture ;)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Grub boot loader?

2010-02-01 Thread hadi motamedi
On Mon, Feb 1, 2010 at 9:11 AM, James Hogarth wrote:

>  On 1 February 2010 08:33, hadi motamedi  wrote:
> >
> >
> > On Mon, Feb 1, 2010 at 8:24 AM, MHR  wrote:
> >>
> >> On Mon, Feb 1, 2010 at 12:04 AM, hadi motamedi 
> >> wrote:
> >> > Dear All
> >> > On my CentOS server , the '/boot/grub/menu.lst' has the right
> >> > configuration
> >> > but when I reboot my CentOS server I cannot enter to grub edit menu to
> >> > edit
> >> > my boot kernel by pressing the 'e' key . Can you please confirm if I
> can
> >> > activate it through issuing the followings :
> >> > #grub-install /dev/hdax
> >> > Is it a safe procedure to try with? Please confirm.
> >> > Thank you
> >> >
> >>
> >> Are you starting with a  to interrupt the boot?
> >>
> >> Have you tried editing it using a normal editor (vi or emacs) as root
> >> while the system is up?
> >>
> >> What exactly are you trying to do?
> >>
> >> mhr
> >> ___
> >> CentOS mailing list
> >> CentOS@centos.org
> >> http://lists.centos.org/mailman/listinfo/centos
> >
> >
> > Thanks for your message . When I reboot my CentOS server I see the the
> menu
> > with a timer but I cannot enter to edit my boot kernel by pressing 'e'
> key .
> > Then the timer will expire and the boot process will begin . I want to be
> > able to edit my kernel through grub edit so I asked if I can try for
> > 'grub-install /dev/hdax' w/o any harm on my CentOS server . Do you mean I
> > can edit my '/boot/grub/menu.lst' by vi the same as I want to do inside
> my
> > grub edit ? Are they the same procedures ? Please confirm.
> >
> > ___
> > CentOS mailing list
> > CentOS@centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> >
> >
>
> When grub runs it will read /boot/grub/menu.lst to determine it's
> configuration. There is no need to run grub-install for a change to
> configuration as that just installs the stage 1 boot loader code in
> the MBR or partition. ALSO SO FAR AS I recakk (migth be wrong) any
> edits done to the configuration via 'e' from the grub menu (which
> sounds like what you want to do) are non-persistent and it's more for
> debugging and//or booting with a broken configuration... If you can
> get into the system itself edit /boot/grub/menu.lst 
>
> Phew... thankfully we don't have grub2 in centos yet and issues
> surrounding module loading and the /etc/grub.d architecture ;)
>  ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>


With many thanks for your confirmation .
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] monitoring a workstation

2010-02-01 Thread MOKRANI Rachid
Hi,
 
I need to monitor a workstation (Centos 5 x86_64). 
 
I need to obtain informations about :
 
- cpu utilization per user, per a period, how many days per user,
 
Any ideas about a good and simple free tool ?
 
Regards.  
__

Ce message (et toutes ses pièces jointes éventuelles) est confidentiel et 
établi à l'intention exclusive de ses destinataires. Toute utilisation de ce 
message non conforme à sa destination, toute diffusion ou toute publication, 
totale ou partielle, est interdite, sauf autorisation expresse. L'IFP décline 
toute responsabilité au titre de ce message.

This message and any attachments (the message) are confidential and intended 
solely for the addressees. Any unauthorised use or dissemination is prohibited. 
IFP should not be liable for this message.

Visitez notre site Web / Visit our web site : http://www.ifp.fr
__
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] monitoring a workstation

2010-02-01 Thread fabien faye
Hi,

For that you have a lot of solution : 

"top" or "vmstat 1" on the console for a global overview 
But if you need load and cpu utilisation per user you have to use ac.

Exemple :

ac -d -p
ffaye   12.86
Jan  6  total   12.86
fwadmin  0.00
ffaye8.77
Jan  7  total8.77
ffaye0.24
Jan 19  total0.24
ffaye0.79
Today   total0.79


If you want more information follow this link : 
http://generationip.com/documentation/system-documentation/113-howto-on-psacct-for-a-complete-monitoring-of-processus-and-users-activities-on-your-system

After that if you need to do that remotely and generate graph, take a look on 
cacti or nagios.

Best regards

Fabien FAYE
RHCE
www.generationip.com
Free network tools & HOWTO for centos and Redhat

- Original Message -
From: "MOKRANI Rachid" 
To: "CentOS mailing list" 
Sent: Monday, February 1, 2010 11:08:10 AM
Subject: [CentOS] monitoring a workstation



Hi, 

I need to monitor a workstation (Centos 5 x86_64). 

I need to obtain informations about : 

- cpu utilization per user, per a period, how many days per user, 

Any ideas about a good and simple free tool ? 

Regards. __

Ce message (et toutes ses pièces jointes éventuelles) est confidentiel et 
établi à l'intention exclusive de ses destinataires. Toute utilisation de ce 
message non conforme à sa destination, toute diffusion ou toute publication, 
totale ou partielle, est interdite, sauf autorisation expresse. L'IFP décline 
toute responsabilité au titre de ce message.

This message and any attachments (the message) are confidential and intended 
solely for the addressees. Any unauthorised use or dissemination is prohibited. 
IFP should not be liable for this message.

Visitez notre site Web / Visit our web site : http://www.ifp.fr
__ 
___
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


Re: [CentOS] Skype and problem with ALSA mixer driver?

2010-02-01 Thread William L. Maltby
On Sun, 2010-01-31 at 09:47 -0800, Akemi Yagi wrote:
> On Sun, Jan 31, 2010 at 9:20 AM, Frank Cox  wrote:
> >
> > On Sun, 2010-01-31 at 11:44 +, Andrew wrote:
> >> But this is disappointing because I want my PC to be completely
> >> functional and skype is part of that requirement - so I suppose I'm
> >> going to have to look around for an alternative to CentOS (5.3).
> >
> > My wife uses Skype on Centos 5 (currently 5.4) regularly.
> 
> While I don't use Skype regularly, I can confirm that it works on
> CentOS 5.4 by connecting to it's test call service.
> 
> If your desktop is gnome, run gnome-volume-control and go to the
> "capture" tab.  Make sure microphone is ON.  I had to do this before I
> could get the microphone to work.

Also, a right click on the volume control on the panel will allow you to
oben sound controls. You can configure which switches you see. Very
often several of those controls are muted, by default I guess, or have
the volume set to very low levels.

Maybe you'll have some success palying with those settings.

> 
> Akemi
> 

-- 
Bill

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


Re: [CentOS] perl question

2010-02-01 Thread Dave Cross
On 29 January 2010 19:28, Jerry Geis  wrote:
> I am trying to run a perl script that said it needs Net::SMPP
>
> I ran this:
> your_host]# *perl -MCPAN -e shell*
> cpan shell -- CPAN exploration and modules installation (v1.76)
> ReadLine support enabled
> cpan> *install Net::SNMP
>
> seemed to work. no errors reported.
> however when I run perl I still get the same error saying needs
>
>  ./sendmessage.pl
> Can't locate Net/SMPP.pm in @INC (@INC contains:
> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
> /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .)
> at ./sendmessage.pl line 18.
> BEGIN failed--compilation aborted at ./sendmessage.pl line 18.
>
> What else do I need?

It may be too late for you, but I've added Net::SMPP to the list of
CPA modules that I have packaged into RPMs in my repository.

See http://rpm.mag-sol.com/

Cheers,

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


Re: [CentOS] monitoring a workstation

2010-02-01 Thread Max Hetrick
MOKRANI Rachid wrote:

> Any ideas about a good and simple free tool ?

Have a look at Munin.

http://munin.projects.linpro.no/

You can install it from the RPMForge repo.

# yum install munin

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


Re: [CentOS] monitoring a workstation

2010-02-01 Thread Eero Volotinen
2010/2/1 MOKRANI Rachid :
> Hi,
>
> I need to monitor a workstation (Centos 5 x86_64).
>
> I need to obtain informations about :
>
> - cpu utilization per user, per a period, how many days per user,
>
> Any ideas about a good and simple free tool ?
>

Install smpd on workstation and then use any snmp supported tool like nagios ...

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


[CentOS] Apache MPM-ITK

2010-02-01 Thread Andrey Garkin
Hi All!

Wished to ask. I have put: apache+php+mysql
All works perfectly, only there is one question.
The matter is that apache something works from the user apache, and when 
I закачиваю on the site through php the form the owner of the gone file 
to become apache. How it can be corrected?

Esteemed on the Internet there is under Debian the apache with the 
module mpm-itk and how to be in CentOS 5.4?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 5.4 64-bit: Java web browser plugin for 64-bit FireFox?

2010-02-01 Thread Rainer Traut
Am 28.01.2010 17:46, schrieb Robert Heller:
> At Wed, 27 Jan 2010 09:17:02 -0800 CentOS mailing list  
> wrote:
>
>>
>> On Wed, Jan 27, 2010 at 4:34 AM, Robert Heller  wrote:
>>> Does there exist *anywhere* a Java web browser plugin for 64-bit
>>> FireFox?  The SUN 1.6  JDK (jdk-6u18-linux-amd64.rpm) does NOT
>>> include the Java web browser plugin library.
>>
>> It's been available since jdk-u13.
>>
>> Just link the library
>>
>> ./jre/lib/amd64/libnpjp2.so
>>
>> to the firefox's plugin directory under 
>> /usr/lib64/firefox-/plugins.
>>
>> You may have to create the plugins directory.
>
> I did this. The plugin does NOT show up in about:plugins.

I think it's the wrong directory - this is only valid for a certain 
firefox version.

Try this:
# ll /usr/lib64/mozilla/plugins
insgesamt 0
lrwxrwxrwx 1 root root 41 14. Apr 2009  libjavaplugin.so -> 
/etc/alternatives/libjavaplugin.so.x86_64

Here the alternatives stuff comes from the redhat packaged jre plugin 
version, you need to modify to where you installed the plugin.

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


Re: [CentOS] APC Smart-ups "status codes" (slightly OT)

2010-02-01 Thread Todd Denniston
m.r...@5-cent.us wrote, On 01/29/2010 04:53 PM:
> We got replacement battery "kits" for some of our APC UPS' (Smart-UPS,
> rackmount). I put them into one tray (it's for an RBC 43, which takes 8,
> and weighs a ton), and put it in, and let it charge. Idiot "change
> battery" led stays on. So I hit the test button, it discharges very
> rapidly (a good number of servers on this), and the led stays on.
> 
> For some reason, apcupsd's USB test fails, with an HIDDEV i/o error. So I
> got rid of the weird APC usb cable, and put in one of their serial cables,
> and run the "smart" test (the USB does more), and get results showing
> everything's fine.
> 
> But the idiot light's still on.
> 
> So, looking at all the values that the "apcsmart" choice can give me, the
> first thing is UPS status. I've been googling for a while, and can't find
> a single reference to it. Anyone have a link to somewhere that will give
> me the status codes (and their meaning)?
> 

no idea on the status codes... but I interpret from the above and what the 
apcupsd folks have posted
to seem to indicate that you may be down to either soft or manual runtime 
calibration:

http://www.apcupsd.com/manual/manual.html#battery-replacement
http://www.apcupsd.com/manual/manual.html#battery-installation
http://www.apcupsd.com/manual/manual.html#soft-runtime-calibration
http://www.apcupsd.com/manual/manual.html#manual-runtime-calibration

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] CentOS as an internet kiosk : how to create a "fresh" user upon leaving GNOME ?

2010-02-01 Thread Niki Kovacs
Hi,

I'm currently busy setting up a machine for use as an internet kiosk. 
Here's what I aim to do.

- There's only one user on the system, 'invite'. One (very simple) 
password. The machine is to be used publicly and freely.

- To ensure some privacy, there's one detail though. The best thing 
would be that upon disconnection from the GNOME session, the user 
'invite' gets wiped from the system (userdel -r) and then created anew, 
with his password already set. This I can do.

- The tricky part is to do this upon disconnect. There's a function in 
System > Preferences > Session, where I can choose programs to run upon 
GNOME startup... but there's nothing similar for the disconnection.

- Writing a script disconnect.sh and then creating a desktop shortcut 
for it would be to no avail, since 'userdel' and 'useradd' can only be 
called as root.

Any idea how I could do this ? The idea is that every new user begins 
with a clean slate.

Cheers,

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


[CentOS] very large difference between df and du (10 GB, hard to believe)

2010-02-01 Thread Robert Grasso
Hello,

I have a small server running a tool (RT : perl + mysql + apache) for our 
support team. I stripped down everything else. The OS is
CentOS 4.8. I noticed a difference between df and du which is hard to believe :

according to df, I am using 29 GB


[r...@cedrat-rt ~]$ df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/sda1  33G   29G  2.8G  92% /
none  506M 0  506M   0% /dev/shm

(there are no other partitions - ok, I could have partitioned it a bit more)

but according to 

du -kshxc /*

my largest directory is /var (because of mysql) and the grand total is

19 GB

I have a 10 GB difference between both outputs.

I verified with

tune2fs -l /dev/sda1
(...)
Block count:  8703205
Reserved block count: 435160

that is, the ordinary 5%

the journal size :

debugfs -R "stat <8>" /dev/sda1

yields 

Size: 33554432 with a block size of 4096, this gives 128 MB

I rebooted on the CentOS v4.8 CD #1, started "linux rescue" :

mounting /dev/sda1, I get the same 29 GB used

e2fsck reports a clean filesystem

e2fsck -f does not reports further errors.

Does anybody have a suggestion ?

Best regards
---
Robert GRASSO - System engineer


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


Re: [CentOS] CentOS as an internet kiosk : how to create a "fresh" user upon leaving GNOME ?

2010-02-01 Thread Brian Mathis
On Mon, Feb 1, 2010 at 10:24 AM, Niki Kovacs  wrote:
> Hi,
>
> I'm currently busy setting up a machine for use as an internet kiosk.
> Here's what I aim to do.
>
> - There's only one user on the system, 'invite'. One (very simple)
> password. The machine is to be used publicly and freely.
>
> - To ensure some privacy, there's one detail though. The best thing
> would be that upon disconnection from the GNOME session, the user
> 'invite' gets wiped from the system (userdel -r) and then created anew,
> with his password already set. This I can do.
>
> - The tricky part is to do this upon disconnect. There's a function in
> System > Preferences > Session, where I can choose programs to run upon
> GNOME startup... but there's nothing similar for the disconnection.
>
> - Writing a script disconnect.sh and then creating a desktop shortcut
> for it would be to no avail, since 'userdel' and 'useradd' can only be
> called as root.
>
> Any idea how I could do this ? The idea is that every new user begins
> with a clean slate.
>
> Cheers,
> Niki

You don't need to delete and re-add the user every time.  That would
be silly and as you see requires root privs.

Since you already have the login script ability, change that script to
delete the sensitive data you are talking about (just don't delete the
login script).  The last part of the script could be to un-tar a file
with the clean profile information already in it.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] monitoring a workstation

2010-02-01 Thread Brian Mathis
On Mon, Feb 1, 2010 at 5:08 AM, MOKRANI Rachid  wrote:
> Hi,
>
> I need to monitor a workstation (Centos 5 x86_64).
>
> I need to obtain informations about :
>
> - cpu utilization per user, per a period, how many days per user,
>
> Any ideas about a good and simple free tool ?
>
> Regards.

In addition to the other suggestions (although those are typically
used for system-level monitoring), you should look into the "psacct"
package.  There is an introduction to it here:
http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] very large difference between df and du (10 GB, hard to believe)

2010-02-01 Thread Matt Iavarone
On Mon, Feb 1, 2010 at 8:29 AM, Robert Grasso
 wrote:
> Hello,
>
> I have a small server running a tool (RT : perl + mysql + apache) for our 
> support team. I stripped down everything else. The OS is
> CentOS 4.8. I noticed a difference between df and du which is hard to believe 
> :
>
> according to df, I am using 29 GB
>
>
> [r...@cedrat-rt ~]$ df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/sda1              33G   29G  2.8G  92% /
> none                  506M     0  506M   0% /dev/shm
>
> (there are no other partitions - ok, I could have partitioned it a bit more)
>
> but according to
>
> du -kshxc /*
>
> my largest directory is /var (because of mysql) and the grand total is
>
> 19 GB
>
> I have a 10 GB difference between both outputs.
>
> I verified with
>
> tune2fs -l /dev/sda1
> (...)
> Block count:              8703205
> Reserved block count:     435160
>
> that is, the ordinary 5%
>
> the journal size :
>
> debugfs -R "stat <8>" /dev/sda1
>
> yields
>
> Size: 33554432 with a block size of 4096, this gives 128 MB
>
> I rebooted on the CentOS v4.8 CD #1, started "linux rescue" :
>
> mounting /dev/sda1, I get the same 29 GB used
>
> e2fsck reports a clean filesystem
>
> e2fsck -f does not reports further errors.
>
> Does anybody have a suggestion ?
>
> Best regards
> ---
> Robert GRASSO - System engineer
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

This is typical.  There were probably files deleted from the file
system that are still in use by a process.  Restarting the process
will release the files and df and du will jive.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] very large difference between df and du (10 GB, hard to believe)

2010-02-01 Thread Brian Mathis
On Mon, Feb 1, 2010 at 10:36 AM, Matt Iavarone  wrote:
>
> This is typical.  There were probably files deleted from the file
> system that are still in use by a process.  Restarting the process
> will release the files and df and du will jive.
>

That argument only holds until you reach the point in the email where
he said this:
> I rebooted on the CentOS v4.8 CD #1, started "linux rescue" :

After the reboot that would be taken care of, so that's not the issue here.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] DynDNs.org compatible server scripts

2010-02-01 Thread Mike A. Harris
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rajagopal Swaminathan wrote:
> Greetings,
> 
> I know this mail is slightly OT. But my DNS server and and all other
> compute nodes (currently around 80) run Centos.
> 
> Has anybody come across some package script which can be used to listen
> to request from DynDNS.org clients which can be found commonly in the
> devices?
> 
> I have a scenario wherein many devices having Dynamic IP scattered
> across a geographical region. most have an embedded Dyndns.com client
> which can be enabled.
> 
> I configure a Private Dynamic DNS server at a central location.
> 
> Now I need something which will listen to the request thrown out by the
> devices and update Dynamic DNS Server.

ddclient is in the rpmforge repository

- --
Mike A. Harris   Website: http://mharris.ca
Google Wave: mike.andrew.harris - at - googlewave.com
https://identi.ca/mharris | https://twitter.com/mikeaharris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFLZvbZ4RNf2rTIeUARAgbKAJ9CLQ6a8R2lPDEvPuV2ar8QJLYOAwCePAYD
ZAj3LDAvUy97upJUn2mGBNk=
=3GW2
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] very large difference between df and du (10 GB, hard to believe)

2010-02-01 Thread Drew
>    > I rebooted on the CentOS v4.8 CD #1, started "linux rescue" :
>
> After the reboot that would be taken care of, so that's not the issue here.

My understanding of the difference between df and du was that du
reports the actual size of the file while df reports the space
allocated by the filesystem.

So if a filesystem allocates 64KB per block and a file is only 2KB, du
will report 2KB and df will report 64KB.


-- 
Drew

"Nothing in life is to be feared. It is only to be understood."
--Marie Curie
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] very large difference between df and du (10 GB, hard to believe)

2010-02-01 Thread Robert Heller
At Mon, 1 Feb 2010 08:36:29 -0700 CentOS mailing list  wrote:

> 
> On Mon, Feb 1, 2010 at 8:29 AM, Robert Grasso
>  wrote:
> > Hello,
> >
> > I have a small server running a tool (RT : perl + mysql + apache) for our 
> > support team. I stripped down everything else. The OS is
> > CentOS 4.8. I noticed a difference between df and du which is hard to 
> > believe :
> >
> > according to df, I am using 29 GB
> >
> >
> > [r...@cedrat-rt ~]$ df -h
> > Filesystem            Size  Used Avail Use% Mounted on
> > /dev/sda1              33G   29G  2.8G  92% /
> > none                  506M     0  506M   0% /dev/shm
> >
> > (there are no other partitions - ok, I could have partitioned it a bit more)
> >
> > but according to
> >
> > du -kshxc /*

This might be wrong -- are there any files starting with '.' under /? 
What does 'du -kshxc /' display?

Are df and du *still* off after the reboot?

When you boot with the live CD is df and du *still* off?  With the live
CD, what does a 'du -sh /mnt//{sys,proc,dev}' show (where
 is the mount point for you hard drive partition)?  In other
words, do you have stuff under the various tmpfs/kernel mount points?

> >
> > my largest directory is /var (because of mysql) and the grand total is
> >
> > 19 GB
> >
> > I have a 10 GB difference between both outputs.
> >
> > I verified with
> >
> > tune2fs -l /dev/sda1
> > (...)
> > Block count:              8703205
> > Reserved block count:     435160
> >
> > that is, the ordinary 5%
> >
> > the journal size :
> >
> > debugfs -R "stat <8>" /dev/sda1
> >
> > yields
> >
> > Size: 33554432 with a block size of 4096, this gives 128 MB
> >
> > I rebooted on the CentOS v4.8 CD #1, started "linux rescue" :
> >
> > mounting /dev/sda1, I get the same 29 GB used
> >
> > e2fsck reports a clean filesystem
> >
> > e2fsck -f does not reports further errors.
> >
> > Does anybody have a suggestion ?
> >
> > Best regards
> > ---
> > Robert GRASSO - System engineer
> >
> >
> > ___
> > CentOS mailing list
> > CentOS@centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> >
> 
> This is typical.  There were probably files deleted from the file
> system that are still in use by a process.  Restarting the process
> will release the files and df and du will jive.

The OP rebooted with a live CD, which should have dealt with any
lingering processes :-)

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

-- 
Robert Heller -- 978-544-6933
Deepwoods Software-- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
hel...@deepsoft.com   -- http://www.deepsoft.com/ModelRailroadSystem/

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


Re: [CentOS] very large difference between df and du (10 GB, hard to believe)

2010-02-01 Thread Matt Iavarone
On Mon, Feb 1, 2010 at 8:43 AM, Brian Mathis  wrote:
> On Mon, Feb 1, 2010 at 10:36 AM, Matt Iavarone  
> wrote:
>>
>> This is typical.  There were probably files deleted from the file
>> system that are still in use by a process.  Restarting the process
>> will release the files and df and du will jive.
>>
>
> That argument only holds until you reach the point in the email where
> he said this:
>    > I rebooted on the CentOS v4.8 CD #1, started "linux rescue" :
>
> After the reboot that would be taken care of, so that's not the issue here.
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

I guess I glossed over that part.  It could be related to mysql (the
storage engine, metadata).  du may not be able to parse that
information(?).
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] very large difference between df and du (10 GB, hard to believe)

2010-02-01 Thread Todd Denniston
Robert Grasso wrote, On 02/01/2010 10:29 AM:
> Hello,

> CentOS 4.8. I noticed a difference between df and du which is hard to believe 
> :
> 
> according to df, I am using 29 GB
> [r...@cedrat-rt ~]$ df -h
> FilesystemSize  Used Avail Use% Mounted on
> /dev/sda1  33G   29G  2.8G  92% /
> none  506M 0  506M   0% /dev/shm
> 
> (there are no other partitions - ok, I could have partitioned it a bit more)
> but according to 
> 
> du -kshxc /*
> my largest directory is /var (because of mysql) and the grand total is
> 19 GB
> 
> I have a 10 GB difference between both outputs.

> e2fsck reports a clean filesystem

> Does anybody have a suggestion ?


-k is 1k block size
-h is print human readable (with appropriate extensions)
which ever of them is last wins for display... I suggest only using one though, 
to reduce possible
confusion.
for large measurements I usually use -m,
of course it could be fun to use --block-size=1024M instead, i.e., 1G.


I too would expect them to come close to matching, unless you have a lot of 
3.5k (or less) files in
a 4k inode file system.

du -shxc --count-links /*
du -shxc --apparent-size /*
du -shxc --count-links --apparent-size /*

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] very large difference between df and du (10 GB, hard to believe )

2010-02-01 Thread Peter Kjellstrom
On Monday 01 February 2010, Brian Mathis wrote:
> On Mon, Feb 1, 2010 at 10:36 AM, Matt Iavarone  
wrote:
> > This is typical.  There were probably files deleted from the file
> > system that are still in use by a process.  Restarting the process
> > will release the files and df and du will jive.
>
> That argument only holds until you reach the point in the email where
>
> he said this:
> > I rebooted on the CentOS v4.8 CD #1, started "linux rescue" :

Indeed. At this point I'd start looking at things hiding under mount points. 
But as the OP seems to have only one filesystem, /, then this will be limited 
to mount-points for special filesystems (like sys, proc and /dev/shm).

What I'm getting at is that you could have, for example, a 10G file /proc/foo 
on the actaul /-filesystem. As soon as proc is mounted on /proc this would be 
invisible.

/Peter

> After the reboot that would be taken care of, so that's not the issue here.


signature.asc
Description: This is a digitally signed message part.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] very large difference between df and du (10 GB, hard to believe)

2010-02-01 Thread m . roth
>>> I rebooted on the CentOS v4.8 CD #1, started "linux rescue" :
>>
>> After the reboot that would be taken care of, so that's not the issue
>> here.
>
> My understanding of the difference between df and du was that du
> reports the actual size of the file while df reports the space
> allocated by the filesystem.
>
> So if a filesystem allocates 64KB per block and a file is only 2KB, du
> will report 2KB and df will report 64KB.

There's also the possibility of a lot of hard links.

   mark

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


Re: [CentOS] Trying to rebuild srpm from fedora....

2010-02-01 Thread Tom Diehl
On Sun, 31 Jan 2010, Tom Bishop wrote:

> So I am trying to rebuild this source rpm from fedora
> 10, shutter-0.85.1-1.fc10.src.rpm -its a screen capture application (
> http://shutter-project.org/ )  that I have been unable to find in any repos,
> although it is in the fedora repos. Thought I would give it a go and try to
> rebuild the rpm, so here is the error that I am getting:
>
>
> + desktop-file-install --delete-original --dir
> /var/tmp/shutter-0.85.1-1-root-itsupport//usr/share/applications
> /var/tmp/shutter-0.85.1-1-root-itsupport//usr/share/applications/shutter.desktop
> Must specify the vendor namespace for these files with --vendor
> error: Bad exit status from /var/tmp/rpm-tmp.38313 (%install)
>
>
>
> Anyone have any tips or 2x4 :) to point me in the right direction I would
> appreciate it, thanks.  Oh yeah, running centos 5.4 i386 arch, thanks again.

As someone else said, at the very least you need to edit the spec to define
a vendor. IMO the better way is to setup mock and use it to (re)build all
of your rpms. That way you can for the most part, use the fedora specs out of
the box.

I have numerous rpms that are not found in CentOS that are in fedora. Most of
them rebuild without modification in mock on CentOS.

Hope this helps.

Regards,

-- 
Tom Diehl   tdi...@rogueind.com  Spamtrap address mtd...@rogueind.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] kickstart installation from usb key

2010-02-01 Thread Georghy
I'm trying to set up a custom installation of CentOS using kickstart
i tried many thing from how to's and tutorial web pages but nothing 
worked ;(

Here is my USB key tree :
|-- CentOS
| |-- all my rpms
| `-- last rpm
|-- TRANS.TBL
|-- boot.cat
|-- boot.msg
|-- custom.iso
|-- general.msg
|-- images
| |-- README
| |-- TRANS.TBL
| |-- boot.iso
| |-- diskboot.img
| |-- minstg2.img
| |-- pxeboot
| | |-- README
| | |-- TRANS.TBL
| | |-- initrd.img
| | `-- vmlinuz
| |-- stage2.img
| `-- xen
| |-- TRANS.TBL
| |-- initrd.img
| `-- vmlinuz
|-- initrd.img
|-- ks
| |-- TRANS.TBL
| `-- ks.cfg
|-- ldlinux.sys
|-- memtest
|-- options.msg
|-- package-ipbx
| `-- packages for postinstall
|-- param.msg
|-- repodata
| |-- TRANS.TBL
| |-- comps.xml
| |-- filelists.xml.gz
| |-- other.xml.gz
| |-- primary.xml.gz
| `-- repomd.xml
|-- rescue.msg
|-- splash.lss
|-- syslinux.cfg
|-- syslinux.cfg~
`-- vmlinuz

I install syslinux on the USB key and also use the following command :

dd if=/dev/sdb of=/tmp/mbr_sdb.bin bs=512 count=1



I tried to install CentOS from my USB key but it says :

Title : "Missing ISO 9660"
Content : "The installer has tried to mount image #1,but cannot find it 
on the hard drive ... " 

-- 
Greetings,
Georghy FUSCO

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


Re: [CentOS] very large difference between df and du (10 GB, hard to believe)

2010-02-01 Thread Ryan Pugatch
Robert Grasso wrote:
> Hello,
> 
> I have a small server running a tool (RT : perl + mysql + apache) for our 
> support team. I stripped down everything else. The OS is
> CentOS 4.8. I noticed a difference between df and du which is hard to believe 
> :
> 


Did you mount something such as an NFS share over a directory that has 
stuff in it?

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


Re: [CentOS] Trying to rebuild srpm from fedora....

2010-02-01 Thread Tom Bishop
Thanks for the suggestions I will give mock a go and see what
happenswill need to go read up and understand what mock is doing
though

On Mon, Feb 1, 2010 at 10:32 AM, Tom Diehl  wrote:

> On Sun, 31 Jan 2010, Tom Bishop wrote:
>
> > So I am trying to rebuild this source rpm from fedora
> > 10, shutter-0.85.1-1.fc10.src.rpm -its a screen capture application (
> > http://shutter-project.org/ )  that I have been unable to find in any
> repos,
> > although it is in the fedora repos. Thought I would give it a go and try
> to
> > rebuild the rpm, so here is the error that I am getting:
> >
> >
> > + desktop-file-install --delete-original --dir
> > /var/tmp/shutter-0.85.1-1-root-itsupport//usr/share/applications
> >
> /var/tmp/shutter-0.85.1-1-root-itsupport//usr/share/applications/shutter.desktop
> > Must specify the vendor namespace for these files with --vendor
> > error: Bad exit status from /var/tmp/rpm-tmp.38313 (%install)
> >
> >
> >
> > Anyone have any tips or 2x4 :) to point me in the right direction I would
> > appreciate it, thanks.  Oh yeah, running centos 5.4 i386 arch, thanks
> again.
>
> As someone else said, at the very least you need to edit the spec to define
> a vendor. IMO the better way is to setup mock and use it to (re)build all
> of your rpms. That way you can for the most part, use the fedora specs out
> of
> the box.
>
> I have numerous rpms that are not found in CentOS that are in fedora. Most
> of
> them rebuild without modification in mock on CentOS.
>
> Hope this helps.
>
> Regards,
>
> --
> Tom Diehl   tdi...@rogueind.com  Spamtrap address
> mtd...@rogueind.com
> ___
> 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


Re: [CentOS] Trying to rebuild srpm from fedora....

2010-02-01 Thread Ryan Wagoner
On Mon, Feb 1, 2010 at 12:01 PM, Tom Bishop  wrote:
> Thanks for the suggestions I will give mock a go and see what
> happenswill need to go read up and understand what mock is doing
> though
>
> On Mon, Feb 1, 2010 at 10:32 AM, Tom Diehl  wrote:
>>
>> On Sun, 31 Jan 2010, Tom Bishop wrote:
>>
>> > So I am trying to rebuild this source rpm from fedora
>> > 10, shutter-0.85.1-1.fc10.src.rpm -its a screen capture application (
>> > http://shutter-project.org/ )  that I have been unable to find in any
>> > repos,
>> > although it is in the fedora repos. Thought I would give it a go and try
>> > to
>> > rebuild the rpm, so here is the error that I am getting:
>> >
>> >
>> > + desktop-file-install --delete-original --dir
>> > /var/tmp/shutter-0.85.1-1-root-itsupport//usr/share/applications
>> >
>> > /var/tmp/shutter-0.85.1-1-root-itsupport//usr/share/applications/shutter.desktop
>> > Must specify the vendor namespace for these files with --vendor
>> > error: Bad exit status from /var/tmp/rpm-tmp.38313 (%install)
>> >
>> >
>> >
>> > Anyone have any tips or 2x4 :) to point me in the right direction I
>> > would
>> > appreciate it, thanks.  Oh yeah, running centos 5.4 i386 arch, thanks
>> > again.
>>
>> As someone else said, at the very least you need to edit the spec to
>> define
>> a vendor. IMO the better way is to setup mock and use it to (re)build all
>> of your rpms. That way you can for the most part, use the fedora specs out
>> of
>> the box.
>>
>> I have numerous rpms that are not found in CentOS that are in fedora. Most
>> of
>> them rebuild without modification in mock on CentOS.
>>
>> Hope this helps.
>>
>> Regards,
>>
>> --
>> Tom Diehl       tdi...@rogueind.com      Spamtrap address
>> mtd...@rogueind.com
>> ___
>> 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
>
>

Mock creates a chroot environment, downloads all the required
packages, and builds the SRPM. It is a way to ensure that you get a
clean consistent build and to verify that your SRPM build dependencies
are correct. You configure /etc/mock/your-arch and run mock name.srpm.
Fairly simple to use.

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


[CentOS] glibc updates and rebooting

2010-02-01 Thread R-Elists

i forgot...

is it necessary to reboot after glibc* yum updates on 4.x and 5.x or any
centos for that matter...

tia

 - rh

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


Re: [CentOS] glibc updates and rebooting

2010-02-01 Thread nate
R-Elists wrote:
>
> i forgot...
>
> is it necessary to reboot after glibc* yum updates on 4.x and 5.x or any
> centos for that matter...

Should not be, but as with all library updates applications that
are running when the update is applied won't get the update until
they are restarted. Often times the updates are so minor that
restarts are not critical.

Often times rebooting is the easiest method for the update to
fully take effect or you can manually restart stuff.

I'm not sure if RPM automatically restarts services when system
libraries change(I haven't seen it do this myself). In Debian by
contrast for example when you update glibc, it will scan for
running services that use it and will prompt you to restart them
as part of the upgrade process.

nate


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


[CentOS] VNC Questions

2010-02-01 Thread Warren Michelsen
Fresh install of CentOS 5.4 (and my first experience with CentOS). 
Following install, the first thing I did was enable desktop sharing 
so that I can control this new 1U box from my Mac workstation.

The VNC client sees this as "Warren's remote desktop" but I'd like it 
to be more meaningful, as I have other remote desktops. Where in the 
user settings/prefs do I change the way this VNC server identifies 
itself? I'd like it to show the host name.

Since this installation will eventually go on line as a LAMP 
Internet server, I'd like my VNC sessions to be encrypted. I saw no 
place in the account settings for remote desktop to specify this.

Finally, I'd like VNC to be functional at boot, before I have logged 
in, so that I can log in to my user account via VNC. Once configured, 
this server will be located remotely. Can the VNC server be made to 
run at loot, rather than at log-in of my account?

Can these things be done with the existing standard VNC server or do 
I have to install something else via yum or some such?





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


Re: [CentOS] Browser related question

2010-02-01 Thread Arturas Skauronas
On Fri, Jan 29, 2010 at 10:12 AM, Rajagopal Swaminathan
 wrote:
> Greetings,
>
> How does one monitor if a site is being accessed using browser?
>
> IOW, I just want to know if a user has launched a session thru Firefox.
>
> I basically want to know if a user has tried to access the webserver
> and unable to reach it and log such instances.
>
> I am using cron and curl to seperately monitor the link.
>
> Any clues?
>
> Centos 5.2/Gnome/Firefox 3.0.16
>
> Regards
>
> Rajagopal

why not to try do this with iptables with combination with inotify
from man iptables
--uid-owner userid
  Matches if the packet was created by a process with the
given effective user id.

 --gid-owner groupid
  Matches if the packet was created by a process with the
given effective group id.
--cmd-owner name
  Matches  if  the packet was created by a process with
the given command name.  (this option is present only if iptables was
compiled under a kernel supporting this feature)

then adding in iptables rule -j LOG --log-level 4 --log-prefix "some_prefix "

secondly you can watch connection states with commands:
-m state --state NEW
SYN packet was sent
-m state --state ESTABLISHED,RELATED
you are getting response


and then in syslog.conf
kern.warning /var/log/iptables.log

you then can watch with inotify /var/log/iptables.log file and do
whatever you should

Also i would watch not only trafiic to external tcp 80 port, but also
and tcp/udp 53 port.

browser can even don't try to load page if it doesn'i resolve dns
name, or entered domain does not exist.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Grub boot loader?

2010-02-01 Thread MHR
On Mon, Feb 1, 2010 at 12:33 AM, hadi motamedi  wrote:
>
> Thanks for your message . When I reboot my CentOS server I see the the menu
> with a timer but I cannot enter to edit my boot kernel by pressing 'e' key .

Perhaps I wasn't clear the first time.  To interrupt the timer, you
press the  bar.  You can't edit anything until after that
point.

> Then the timer will expire and the boot process will begin . I want to be
> able to edit my kernel through grub edit so I asked if I can try for
> 'grub-install /dev/hdax' w/o any harm on my CentOS server . Do you mean I
> can edit my '/boot/grub/menu.lst' by vi the same as I want to do inside my
> grub edit ? Are they the same procedures ? Please confirm.
>

Yes, you can just edit the menu.lst with any text editor.
/boot/grub/menu.lst is a symlink to /boot/grub/grub.conf, same as
/etc/grub.conf.  You have to be root to edit it (them).

grub-install won't do what you want.

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


Re: [CentOS] glibc updates and rebooting

2010-02-01 Thread Robert Heller
At Mon, 1 Feb 2010 09:49:24 -0800 (PST) CentOS mailing list  
wrote:

> 
> R-Elists wrote:
> >
> > i forgot...
> >
> > is it necessary to reboot after glibc* yum updates on 4.x and 5.x or any
> > centos for that matter...
> 
> Should not be, but as with all library updates applications that
> are running when the update is applied won't get the update until
> they are restarted. Often times the updates are so minor that
> restarts are not critical.
> 
> Often times rebooting is the easiest method for the update to
> fully take effect or you can manually restart stuff.
> 
> I'm not sure if RPM automatically restarts services when system
> libraries change(I haven't seen it do this myself). In Debian by
> contrast for example when you update glibc, it will scan for
> running services that use it and will prompt you to restart them
> as part of the upgrade process.

Updating glibc always seems to restart sshd (one gets a message about
this during the update phase).

The only thing that *requires* a reboot is a kernel update.  Everything
else would just need a process restart.

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

-- 
Robert Heller -- 978-544-6933
Deepwoods Software-- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
hel...@deepsoft.com   -- http://www.deepsoft.com/ModelRailroadSystem/
   
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC Questions

2010-02-01 Thread Frank Cox

On Mon, 2010-02-01 at 11:58 -0700, Warren Michelsen wrote:
> user settings/prefs do I change the way this VNC server identifies 
> itself? I'd like it to show the host name.

> I'd like my VNC sessions to be encrypted.
> Finally, I'd like VNC to be functional at boot,?
> 
> Can these things be done with the existing standard VNC server or do 
> I have to install something else via yum or some such?

You can accomplish all of these things by following the instructions
here:

http://wiki.centos.org/HowTos/VNC-Server

-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com

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


Re: [CentOS] VNC Questions

2010-02-01 Thread Bart Schaefer
On Mon, Feb 1, 2010 at 11:27 AM, Frank Cox  wrote:
>
> You can accomplish all of these things by following the instructions
> here:
>
> http://wiki.centos.org/HowTos/VNC-Server

One thing that has bitten me when configuring the VNC server as
describe there, is that "service vncserver restart" invokes each
user's shell to start the server, in such a way that the shell
believes it is a login shell.  Depending on the shell and the user's
configuration, this may cause interactive commands to be executed
which will hang or otherwise interfere with the restart.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VNC Questions

2010-02-01 Thread Les Mikesell
On 2/1/2010 1:27 PM, Frank Cox wrote:
>
> On Mon, 2010-02-01 at 11:58 -0700, Warren Michelsen wrote:
>> user settings/prefs do I change the way this VNC server identifies
>> itself? I'd like it to show the host name.
>
>> I'd like my VNC sessions to be encrypted.
>> Finally, I'd like VNC to be functional at boot,?
>>
>> Can these things be done with the existing standard VNC server or do
>> I have to install something else via yum or some such?
>
> You can accomplish all of these things by following the instructions
> here:
>
> http://wiki.centos.org/HowTos/VNC-Server


You might also like to try freenx with the NX client(s) from 
www.nomachine.com.  It is better in a lot of ways, especially if you run 
a separate session instead of trying to control the console session.

-- 
   Les Mikesell
lesmikes...@gmail.com

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


Re: [CentOS] VNC Questions

2010-02-01 Thread Warren Michelsen
At 1:27 PM -0600 2/1/10, Frank Cox sent email regarding Re: [CentOS] 
VNC Questions:
>On Mon, 2010-02-01 at 11:58 -0700, Warren Michelsen wrote:
>>  user settings/prefs do I change the way this VNC server identifies
>>  itself? I'd like it to show the host name.
>
>>  I'd like my VNC sessions to be encrypted.
>>  Finally, I'd like VNC to be functional at boot,?
>>
>>  Can these things be done with the existing standard VNC server or do
>>  I have to install something else via yum or some such?
>
>You can accomplish all of these things by following the instructions
>here:
>
>http://wiki.centos.org/HowTos/VNC-Server

I tried these instruction last week and each time I tried:

service vncserver start

I got the error that the command 'service' was not found.

I can try again, but I suspect this fresh re-install will act the same.

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


Re: [CentOS] VNC Questions

2010-02-01 Thread m . roth
> At 1:27 PM -0600 2/1/10, Frank Cox sent email regarding Re: [CentOS]
> VNC Questions:
>>On Mon, 2010-02-01 at 11:58 -0700, Warren Michelsen wrote:
>>>  user settings/prefs do I change the way this VNC server identifies
>>>  itself? I'd like it to show the host name.
>>
>>>  I'd like my VNC sessions to be encrypted.
>>>  Finally, I'd like VNC to be functional at boot,?
>>>
>>>  Can these things be done with the existing standard VNC server or do
>>>  I have to install something else via yum or some such?
>>
>>You can accomplish all of these things by following the instructions
>>here:
>>
>>http://wiki.centos.org/HowTos/VNC-Server
>
> I tried these instruction last week and each time I tried:
>
> service vncserver start
>
> I got the error that the command 'service' was not found.
>
> I can try again, but I suspect this fresh re-install will act the same.

You *did* do it as root, yes? If sudo, you might have to do /sbin/service...

mark

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


Re: [CentOS] VNC Questions

2010-02-01 Thread Frank Cox

On Mon, 2010-02-01 at 12:41 -0700, Warren Michelsen wrote:
> 
> I got the error that the command 'service' was not found.

The /sbin directory is not on the standard path for normal users.

Use this command:

/sbin/service vncserver start

Or use "su -" instead of "su" when switching to the root user and you
will get root's environment, which includes /sbin on the path.

-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com

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


Re: [CentOS] VNC Questions

2010-02-01 Thread Warren Michelsen
At 2:48 PM -0500 2/1/10, m.r...@5-cent.us sent email regarding Re: 
[CentOS] VNC Questions:
>  >>http://wiki.centos.org/HowTos/VNC-Server
>>
>>  I tried these instruction last week and each time I tried:
>>
>>  service vncserver start
>>
>>  I got the error that the command 'service' was not found.
>>
>>  I can try again, but I suspect this fresh re-install will act the same.
>
>You *did* do it as root, yes? If sudo, you might have to do /sbin/service...

Yes. In fact, I just tried again (after su'ing to root). I tried to 
create a new user using the 'useradd' command and was told the 
command was not found. I was logged in via ssh at the time, does that 
make a difference? It'd be strange if it did...

Last login: Mon Feb  1 12:42:53 2010 from 10.0.1.225
[war...@supermicro ~]$ su
Password:
[r...@supermicro warren]# useradd mickey
bash: useradd: command not found
[r...@supermicro warren]#


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


Re: [CentOS] VNC Questions

2010-02-01 Thread Warren Michelsen
At 1:53 PM -0600 2/1/10, Frank Cox sent email regarding Re: [CentOS] 
VNC Questions:
>On Mon, 2010-02-01 at 12:41 -0700, Warren Michelsen wrote:
>>
>>  I got the error that the command 'service' was not found.
>
>The /sbin directory is not on the standard path for normal users.
>
>Use this command:
>
>/sbin/service vncserver start
>
>Or use "su -" instead of "su" when switching to the root user and you
>will get root's environment, which includes /sbin on the path.

Ah! This is something I've not run across before. Using "su -" did the trick.

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


Re: [CentOS] VNC Questions

2010-02-01 Thread Akemi Yagi
On Mon, Feb 1, 2010 at 12:05 PM, Warren Michelsen  wrote:

>>Or use "su -" instead of "su" when switching to the root user and you
>>will get root's environment, which includes /sbin on the path.
>
> Ah! This is something I've not run across before. Using "su -" did the trick.

CentOS Wiki is (almost) always your good friend :-)

http://wiki.centos.org/TipsAndTricks/BecomingRoot

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


Re: [CentOS] Trying to rebuild srpm from fedora....

2010-02-01 Thread Tom Bishop
Thanks for the tips so I have gotten mock installed but for the life of me I
can't figure out how to install the srpm, edit the spec file and then
re-build.  I have seen an example that installs and then I can edit via mock
shell, but when I do a rpmbuild -ba or -bb it says its misssing the .tar
filesany help or pointing in the right direction would be appreciated.
 I know what I need to do to the spec file just not sure how to achieve
it...thanks.

On Mon, Feb 1, 2010 at 11:12 AM, Ryan Wagoner  wrote:

> On Mon, Feb 1, 2010 at 12:01 PM, Tom Bishop  wrote:
> > Thanks for the suggestions I will give mock a go and see what
> > happenswill need to go read up and understand what mock is doing
> > though
> >
> > On Mon, Feb 1, 2010 at 10:32 AM, Tom Diehl  wrote:
> >>
> >> On Sun, 31 Jan 2010, Tom Bishop wrote:
> >>
> >> > So I am trying to rebuild this source rpm from fedora
> >> > 10, shutter-0.85.1-1.fc10.src.rpm -its a screen capture application (
> >> > http://shutter-project.org/ )  that I have been unable to find in any
> >> > repos,
> >> > although it is in the fedora repos. Thought I would give it a go and
> try
> >> > to
> >> > rebuild the rpm, so here is the error that I am getting:
> >> >
> >> >
> >> > + desktop-file-install --delete-original --dir
> >> > /var/tmp/shutter-0.85.1-1-root-itsupport//usr/share/applications
> >> >
> >> >
> /var/tmp/shutter-0.85.1-1-root-itsupport//usr/share/applications/shutter.desktop
> >> > Must specify the vendor namespace for these files with --vendor
> >> > error: Bad exit status from /var/tmp/rpm-tmp.38313 (%install)
> >> >
> >> >
> >> >
> >> > Anyone have any tips or 2x4 :) to point me in the right direction I
> >> > would
> >> > appreciate it, thanks.  Oh yeah, running centos 5.4 i386 arch, thanks
> >> > again.
> >>
> >> As someone else said, at the very least you need to edit the spec to
> >> define
> >> a vendor. IMO the better way is to setup mock and use it to (re)build
> all
> >> of your rpms. That way you can for the most part, use the fedora specs
> out
> >> of
> >> the box.
> >>
> >> I have numerous rpms that are not found in CentOS that are in fedora.
> Most
> >> of
> >> them rebuild without modification in mock on CentOS.
> >>
> >> Hope this helps.
> >>
> >> Regards,
> >>
> >> --
> >> Tom Diehl   tdi...@rogueind.com  Spamtrap address
> >> mtd...@rogueind.com
> >> ___
> >> 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
> >
> >
>
> Mock creates a chroot environment, downloads all the required
> packages, and builds the SRPM. It is a way to ensure that you get a
> clean consistent build and to verify that your SRPM build dependencies
> are correct. You configure /etc/mock/your-arch and run mock name.srpm.
> Fairly simple to use.
>
> Ryan
> ___
> 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


Re: [CentOS] Trying to rebuild srpm from fedora....

2010-02-01 Thread Akemi Yagi
On Mon, Feb 1, 2010 at 2:13 PM, Tom Bishop  wrote:
> Thanks for the tips so I have gotten mock installed but for the life of me I
> can't figure out how to install the srpm, edit the spec file and then
> re-build.  I have seen an example that installs and then I can edit via mock
> shell, but when I do a rpmbuild -ba or -bb it says its misssing the .tar
> filesany help or pointing in the right direction would be appreciated.
>  I know what I need to do to the spec file just not sure how to achieve
> it...thanks.

This CentOS wiki will help you:

http://wiki.centos.org/HowTos/RebuildSRPM

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


Re: [CentOS] Trying to rebuild srpm from fedora....

2010-02-01 Thread Tom Bishop
Thanks, that is very usefull and I have followed although I am still coming
up with an error when I do a rpmbuild -ba xxx.spec

error: Installed (but unpackaged) file(s) found:
   /usr/share/applications/centos5-shutter.desktop


RPM build errors:
File not found:
/var/tmp/shutter-0.85.1-1-root-itsupport/usr/share/applications/shutter.desktop
Installed (but unpackaged) file(s) found:
   /usr/share/applications/centos5-shutter.desktop


On Mon, Feb 1, 2010 at 4:20 PM, Akemi Yagi  wrote:

> On Mon, Feb 1, 2010 at 2:13 PM, Tom Bishop  wrote:
> > Thanks for the tips so I have gotten mock installed but for the life of
> me I
> > can't figure out how to install the srpm, edit the spec file and then
> > re-build.  I have seen an example that installs and then I can edit via
> mock
> > shell, but when I do a rpmbuild -ba or -bb it says its misssing the .tar
> > filesany help or pointing in the right direction would be
> appreciated.
> >  I know what I need to do to the spec file just not sure how to achieve
> > it...thanks.
>
> This CentOS wiki will help you:
>
> http://wiki.centos.org/HowTos/RebuildSRPM
>
> Akemi
> ___
> 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


Re: [CentOS] Trying to rebuild srpm from fedora....

2010-02-01 Thread Clint Dilks
Tom Bishop wrote:
> Thanks, that is very usefull and I have followed although I am still 
> coming up with an error when I do a rpmbuild -ba xxx.spec
>
> error: Installed (but unpackaged) file(s) found:
>/usr/share/applications/centos5-shutter.desktop
>
>
> RPM build errors:
> File not found: 
> /var/tmp/shutter-0.85.1-1-root-itsupport/usr/share/applications/shutter.desktop
> Installed (but unpackaged) file(s) found:
>/usr/share/applications/centos5-shutter.desktop
>
>
> On Mon, Feb 1, 2010 at 4:20 PM, Akemi Yagi  > wrote:
>
> On Mon, Feb 1, 2010 at 2:13 PM, Tom Bishop  > wrote:
> > Thanks for the tips so I have gotten mock installed but for the
> life of me I
> > can't figure out how to install the srpm, edit the spec file and
> then
> > re-build.  I have seen an example that installs and then I can
> edit via mock
> > shell, but when I do a rpmbuild -ba or -bb it says its misssing
> the .tar
> > filesany help or pointing in the right direction would be
> appreciated.
> >  I know what I need to do to the spec file just not sure how to
> achieve
> > it...thanks.
>
> This CentOS wiki will help you:
>
> http://wiki.centos.org/HowTos/RebuildSRPM
>
> Akemi
> ___
> 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
>   
Hi

This means that the build process has found a file that is not covered 
by the files section of you spec file.  If you are sure this is a 
legitimate file then simply add 
/usr/share/applications/centos5-shutter.desktop under the files section.

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


Re: [CentOS] Trying to rebuild srpm from fedora....

2010-02-01 Thread Tom Bishop
Here is the section of the spec file:

%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_mandir}/man1/%{name}*
%{_datadir}/pixmaps/
%{_datadir}/icons/hicolor/*/apps/%{name}.*


it appears to be coverd...

On Mon, Feb 1, 2010 at 4:29 PM, Clint Dilks wrote:

> Tom Bishop wrote:
> > Thanks, that is very usefull and I have followed although I am still
> > coming up with an error when I do a rpmbuild -ba xxx.spec
> >
> > error: Installed (but unpackaged) file(s) found:
> >/usr/share/applications/centos5-shutter.desktop
> >
> >
> > RPM build errors:
> > File not found:
> >
> /var/tmp/shutter-0.85.1-1-root-itsupport/usr/share/applications/shutter.desktop
> > Installed (but unpackaged) file(s) found:
> >/usr/share/applications/centos5-shutter.desktop
> >
> >
> > On Mon, Feb 1, 2010 at 4:20 PM, Akemi Yagi  > > wrote:
> >
> > On Mon, Feb 1, 2010 at 2:13 PM, Tom Bishop  > > wrote:
> > > Thanks for the tips so I have gotten mock installed but for the
> > life of me I
> > > can't figure out how to install the srpm, edit the spec file and
> > then
> > > re-build.  I have seen an example that installs and then I can
> > edit via mock
> > > shell, but when I do a rpmbuild -ba or -bb it says its misssing
> > the .tar
> > > filesany help or pointing in the right direction would be
> > appreciated.
> > >  I know what I need to do to the spec file just not sure how to
> > achieve
> > > it...thanks.
> >
> > This CentOS wiki will help you:
> >
> > http://wiki.centos.org/HowTos/RebuildSRPM
> >
> > Akemi
> > ___
> > 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
> >
> Hi
>
> This means that the build process has found a file that is not covered
> by the files section of you spec file.  If you are sure this is a
> legitimate file then simply add
> /usr/share/applications/centos5-shutter.desktop under the files section.
>
> ___
> 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


Re: [CentOS] Trying to rebuild srpm from fedora....

2010-02-01 Thread Clint Dilks
Tom Bishop wrote:
> Here is the section of the spec file:
>
> %{_bindir}/%{name}
> %{_datadir}/applications/%{name}.desktop
> %{_datadir}/%{name}
> %{_mandir}/man1/%{name}*
> %{_datadir}/pixmaps/
> %{_datadir}/icons/hicolor/*/apps/%{name}.*
>
>
> it appears to be coverd...
>
> On Mon, Feb 1, 2010 at 4:29 PM, Clint Dilks  > wrote:
>
> Tom Bishop wrote:
> > Thanks, that is very usefull and I have followed although I am still
> > coming up with an error when I do a rpmbuild -ba xxx.spec
> >
> > error: Installed (but unpackaged) file(s) found:
> >/usr/share/applications/centos5-shutter.desktop
> >
> >
> > RPM build errors:
> > File not found:
> >
> 
> /var/tmp/shutter-0.85.1-1-root-itsupport/usr/share/applications/shutter.desktop
> > Installed (but unpackaged) file(s) found:
> >/usr/share/applications/centos5-shutter.desktop
> >
> >
> > On Mon, Feb 1, 2010 at 4:20 PM, Akemi Yagi  
> > >> wrote:
> >
> > On Mon, Feb 1, 2010 at 2:13 PM, Tom Bishop
> mailto:bisho...@gmail.com>
> > >> wrote:
> > > Thanks for the tips so I have gotten mock installed but
> for the
> > life of me I
> > > can't figure out how to install the srpm, edit the spec
> file and
> > then
> > > re-build.  I have seen an example that installs and then I can
> > edit via mock
> > > shell, but when I do a rpmbuild -ba or -bb it says its
> misssing
> > the .tar
> > > filesany help or pointing in the right direction would be
> > appreciated.
> > >  I know what I need to do to the spec file just not sure
> how to
> > achieve
> > > it...thanks.
> >
> > This CentOS wiki will help you:
> >
> > http://wiki.centos.org/HowTos/RebuildSRPM
> >
> > Akemi
> > ___
> > 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
> >
> Hi
>
> This means that the build process has found a file that is not covered
> by the files section of you spec file.  If you are sure this is a
> legitimate file then simply add
> /usr/share/applications/centos5-shutter.desktop under the files
> section.
>
> ___
> 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
>   
Then I would suggest adding some echos  to spec file that show the values of
%{_datadir} and %{name} to make sure the values they return match
/usr/share/applications/centos5-shutter.desktop
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Trying to rebuild srpm from fedora....

2010-02-01 Thread Ross Walker

On Feb 1, 2010, at 5:33 PM, Tom Bishop  wrote:


Here is the section of the spec file:

%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_mandir}/man1/%{name}*
%{_datadir}/pixmaps/
%{_datadir}/icons/hicolor/*/apps/%{name}.*


it appears to be coverd...


Ah, not really, rpmbuild is complainig about:

/usr/share/applications/centos5-shutter.desktop

It's possible the spec file originally mv'd the file to remove the  
fedoraX, but since the distro changed the file name changed. You'll  
need to edit the spec fix.


-Ross

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


Re: [CentOS] Trying to rebuild srpm from fedora....

2010-02-01 Thread Tom Bishop
Im just not seeing it, prolly staring me right in the face...attached is the
.spec file

On Mon, Feb 1, 2010 at 5:49 PM, Ross Walker  wrote:

> On Feb 1, 2010, at 5:33 PM, Tom Bishop  wrote:
>
> Here is the section of the spec file:
>
>
> %{_bindir}/%{name}
>
> %{_datadir}/applications/%{name}.desktop
>
> %{_datadir}/%{name}
>
> %{_mandir}/man1/%{name}*
>
> %{_datadir}/pixmaps/
>
> %{_datadir}/icons/hicolor/*/apps/%{name}.*
>
>
>
> it appears to be coverd...
>
>
> Ah, not really, rpmbuild is complainig about:
>
> /usr/share/applications/centos5-shutter.desktop
>
> It's possible the spec file originally mv'd the file to remove the fedoraX,
> but since the distro changed the file name changed. You'll need to edit the
> spec fix.
>
> -Ross
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>


shutter.spec
Description: Binary data
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] VNC Questions

2010-02-01 Thread R P Herrold
On Mon, 1 Feb 2010, Warren Michelsen wrote:

>> You can accomplish all of these things by following the instructions
>> here:
>>
>> http://wiki.centos.org/HowTos/VNC-Server
>
> I tried these instruction last week and each time I tried:
>
> service vncserver start
>
> I got the error that the command 'service' was not found.

Please try again.

I have amended the writeup, to address the fact that you may 
not have used a method that ensures 'root''s PATH is properly 
set

You may wish to read 'man su'  and pay close attention to the 
'-' option

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


[CentOS] Trying to rebuild srpm from fedora....

2010-02-01 Thread R P Herrold
On Mon, 1 Feb 2010, Akemi Yagi wrote:

> This CentOS wiki will help you:
>
> http://wiki.centos.org/HowTos/RebuildSRPM
>
> Akemi

I corresponded privately with the OP on the target earlier 
today -- there are a metric F tonne of dependencies as well 
lying in wait

 gnome-web-photo is needed by shutter-0.85.1-1orc.noarch
 gtklp is needed by shutter-0.85.1-1orc.noarch
 perl(File::HomeDir) is needed by shutter-0.85.1-1orc.noarch
 perl(File::HomeDir::Unix) is needed by shutter-0.85.1-1orc.noarch
 perl(File::MimeInfo::Applications) is needed by 
shutter-0.85.1-1orc.noarch
 perl(File::Which) is needed by shutter-0.85.1-1orc.noarch
 perl(Glib) is needed by shutter-0.85.1-1orc.noarch
 perl(Gnome2) is needed by shutter-0.85.1-1orc.noarch
 perl(Gnome2::Canvas) is needed by shutter-0.85.1-1orc.noarch
 perl(Gnome2::GConf) is needed by shutter-0.85.1-1orc.noarch
 perl(Gnome2::VFS) is needed by shutter-0.85.1-1orc.noarch
 perl(Gnome2::Wnck) is needed by shutter-0.85.1-1orc.noarch
 perl(Goo::Canvas) is needed by shutter-0.85.1-1orc.noarch
 perl(Gtk2) is needed by shutter-0.85.1-1orc.noarch
 perl(Gtk2::Gdk::Keysyms) is needed by shutter-0.85.1-1orc.noarch
 perl(Gtk2::ImageView) is needed by shutter-0.85.1-1orc.noarch
 perl(Gtk2::Pango) is needed by shutter-0.85.1-1orc.noarch

I've been poking at it piece-wise today (I was solving 
zoneminder and all deps), but it is not a beginner's task.

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


Re: [CentOS] Trying to rebuild srpm from fedora....

2010-02-01 Thread Tom Bishop
Thanks Russ, I saw all the deps on their page, I guess I'll stop beating my
head against the wall...lol ;)

On Mon, Feb 1, 2010 at 6:14 PM, R P Herrold  wrote:

> On Mon, 1 Feb 2010, Akemi Yagi wrote:
>
> > This CentOS wiki will help you:
> >
> > http://wiki.centos.org/HowTos/RebuildSRPM
> >
> > Akemi
>
> I corresponded privately with the OP on the target earlier
> today -- there are a metric F tonne of dependencies as well
> lying in wait
>
> gnome-web-photo is needed by shutter-0.85.1-1orc.noarch
> gtklp is needed by shutter-0.85.1-1orc.noarch
> perl(File::HomeDir) is needed by shutter-0.85.1-1orc.noarch
> perl(File::HomeDir::Unix) is needed by shutter-0.85.1-1orc.noarch
> perl(File::MimeInfo::Applications) is needed by
> shutter-0.85.1-1orc.noarch
> perl(File::Which) is needed by shutter-0.85.1-1orc.noarch
> perl(Glib) is needed by shutter-0.85.1-1orc.noarch
> perl(Gnome2) is needed by shutter-0.85.1-1orc.noarch
> perl(Gnome2::Canvas) is needed by shutter-0.85.1-1orc.noarch
> perl(Gnome2::GConf) is needed by shutter-0.85.1-1orc.noarch
> perl(Gnome2::VFS) is needed by shutter-0.85.1-1orc.noarch
> perl(Gnome2::Wnck) is needed by shutter-0.85.1-1orc.noarch
> perl(Goo::Canvas) is needed by shutter-0.85.1-1orc.noarch
> perl(Gtk2) is needed by shutter-0.85.1-1orc.noarch
> perl(Gtk2::Gdk::Keysyms) is needed by shutter-0.85.1-1orc.noarch
> perl(Gtk2::ImageView) is needed by shutter-0.85.1-1orc.noarch
> perl(Gtk2::Pango) is needed by shutter-0.85.1-1orc.noarch
>
> I've been poking at it piece-wise today (I was solving
> zoneminder and all deps), but it is not a beginner's task.
>
> -- Russ herrold
> ___
> 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


Re: [CentOS] VNC Questions

2010-02-01 Thread Warren Michelsen


RE: 2.6.1 Testing with a java enabled browser
My java enabled browser (Safari) cannot connect.


RE: 2.6.2. Testing with a vnc client
I have vnc client 'Chicken of the VNC' which can connect but only to 
display 0 and then the response back from the CentOS box is glacial. 
 From My Mac workstation, I can see my CentOS GUI desktop and note 
that the on-screen pointer follows the Mac mouse quickly, albeit 
jerkily, but the view in my remote desktop viewer on my workstation 
takes 30-40 seconds to catch up with what happens on the CentOS box 
screen. I'm guessing it's a configuration issue.

Meanwhile, Mac OS's built-in Remote Desktop client connects just fine 
and the response is good.

RE: 3. VNC encrypted through an ssh tunnel
I have added the -localhost option to the VNCSERVERARGS in 
/etc/sysconfig/vncservers.

I cannot test the vncviewer as stated because it requires a viewer to 
use "vncviewer -via n...@[ip_address] localhost:1" and neither viewer 
that I have has anywhere to enter "-via" or "localhost:1".

When I connect using Apple's built-in screen sharing, I am warned: 
The computer "Warren's Remote Desktop" is running a VNC server that 
does not support Screen Sharing keystroke encryption. Do you want to 
continue connecting anyway?

This sounds like encryption is not in fact being used. Aside from 
adding the -localhost option to the VNCSERVERARGS in 
/etc/sysconfig/vncservers and restarting the vnc server, is anything 
else required to get ssh tunneling working?



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


[CentOS] Passwordless ssh

2010-02-01 Thread Warren Michelsen
On Mac OS, in order to allow ssh using dsa keys, I would copy 
~/.ssh/id_dsa.pub from my machine into ~/.ssh/authorized_keys of the 
target machine. I've created .ssh directories in my account home as 
well as in /root and copied the respective keys to authorized_keys 
files in each.

Strangely, I can now ssh as root with no password but my own user 
account still prompts for a password. What might be wrong?


Interestingly, passwordless root ssh log-in worked while 
'PermitRootLogin' in /etc/ssh/sshd_config was just 'yes' and before I 
changed it to 'without-password'.

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


Re: [CentOS] Passwordless ssh

2010-02-01 Thread Larry Brower

Warren Michelsen wrote:
On Mac OS, in order to allow ssh using dsa keys, I would copy 
~/.ssh/id_dsa.pub from my machine into ~/.ssh/authorized_keys of the 
target machine. I've created .ssh directories in my account home as 
well as in /root and copied the respective keys to authorized_keys 
files in each.


Strangely, I can now ssh as root with no password but my own user 
account still prompts for a password. What might be wrong?




have you checked /var/log/secure ?  If permissions or ownership are not 
correct on the authorized_keys file, .ssh or the home directory then 
s/key auth will not work.



Interestingly, passwordless root ssh log-in worked while 
'PermitRootLogin' in /etc/ssh/sshd_config was just 'yes' and before I 
changed it to 'without-password'.




This is correct behavior. The yes just says it will accept password and 
s/key for root.




smime.p7s
Description: S/MIME Cryptographic Signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Passwordless ssh

2010-02-01 Thread Gregory P. Ennis
On Mon, 2010-02-01 at 19:49 -0700, Warren Michelsen wrote:
> On Mac OS, in order to allow ssh using dsa keys, I would copy 
> ~/.ssh/id_dsa.pub from my machine into ~/.ssh/authorized_keys of the 
> target machine. I've created .ssh directories in my account home as 
> well as in /root and copied the respective keys to authorized_keys 
> files in each.
> 
> Strangely, I can now ssh as root with no password but my own user 
> account still prompts for a password. What might be wrong?
> 
> 
> Interestingly, passwordless root ssh log-in worked while 
> 'PermitRootLogin' in /etc/ssh/sshd_config was just 'yes' and before I 
> changed it to 'without-password'.
> 
> ___

Warren,

You should be able to achieve what you are wanting to do.  Some
principles that need to be followed are :

#1. If you change anything in sshd_config you must restart sshd before
your changes will become active.  You can do this in the root account
easily by entering :

service sshd restart

#2. If you are connecting from one account to another account in
different machines you must have id_dsa.pub
in /home/user/.ssh/authorized_keys file of the account you are
connecting with.

ie if you are logged on as root in one machine and you connect to
another machine to the root account then id_dsa.pub of the original
account has to be in /root/.ssh/authorized_keys of the machine you are
connecting to.  

#3. if you are are connecting to an account of a remote machine to an
account different than the one you are on you must have the id_dsa.pub
of your logged on account in the authorized_keys of the remote account.

ie if you are on the root account of one machine and you want to log
onto the warren account of a remote machine you must
have /root/.ssh/id_dsa.pub in /home/warren/.ssh/authorized_keys

The command for this connection would be

"ssh war...@remote.com"  or "ssh -l warren remote.com" 

Make sure these things are in place, and if it does not work after
checking these things let me know.

Greg Ennis


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


Re: [CentOS] Passwordless ssh

2010-02-01 Thread Agile Aspect
On Mon, Feb 1, 2010 at 6:49 PM, Warren Michelsen  wrote:
> On Mac OS, in order to allow ssh using dsa keys, I would copy
> ~/.ssh/id_dsa.pub from my machine into ~/.ssh/authorized_keys of the
> target machine. I've created .ssh directories in my account home as
> well as in /root and copied the respective keys to authorized_keys
> files in each.
>
> Strangely, I can now ssh as root with no password but my own user
> account still prompts for a password. What might be wrong?
>
>
> Interestingly, passwordless root ssh log-in worked while
> 'PermitRootLogin' in /etc/ssh/sshd_config was just 'yes' and before I
> changed it to 'without-password'.

Check the permission all your top level directories and the .ssh
directories and it's files.

Basically,  group and other writes are forbidden since it would allow
other people to change your keys.

If you're allowing the use of passwords and keys, then it's just
falling back to passwords because the permissions are incorrect.

And I presuming the secret key is not encrypted, i.e., you never set a
passphrase - hence the root login works without a password since the
permissions are correct for key exchange.

Also, on Redhat/Centos/Solaris machines, it's

PermitRootLogin no

or

PermitRootLogin yes

and not

 PermitRootLogin without-password

There should be separate entry for passwords

 PermitEmptyPasswords no

You have to be barking mad to allow root connections - or any
connection - with an empty passwords.

Note, this isn't Mac mailing list so your mileage will vary. Without a
sshd_config file it's hard to help you.


-- 
  Enjoy global warming while it lasts.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Passwordless ssh

2010-02-01 Thread Brian Mathis
On Mon, Feb 1, 2010 at 9:49 PM, Warren Michelsen  wrote:
> On Mac OS, in order to allow ssh using dsa keys, I would copy
> ~/.ssh/id_dsa.pub from my machine into ~/.ssh/authorized_keys of the
> target machine. I've created .ssh directories in my account home as
> well as in /root and copied the respective keys to authorized_keys
> files in each.
>
> Strangely, I can now ssh as root with no password but my own user
> account still prompts for a password. What might be wrong?
>
>
> Interestingly, passwordless root ssh log-in worked while
> 'PermitRootLogin' in /etc/ssh/sshd_config was just 'yes' and before I
> changed it to 'without-password'.
>

chmod 700 ~/.ssh
chmod 600 ~/.authorized_keys
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos