[CentOS] Issue with HP Officejet 6500 on CentOS 5.5

2010-09-19 Thread Mark
I just picked one of these up to replace my 4315, which broke (I think
the feeder roller gear broke from an overstuffed feeder), but it's
giving me problems.

I had no trouble configuring it to print, but it doesn't appear in
lsusb and xsane can't find it, so I can't scan with it, which is the
main reason I bought it in the first place.

I've tried restarting the autofs service (automounter), rebooting, and
switching the USB cables with my old HP Scanjet 3300C, but the 3300
shows up on either cable and the 6500 doesn't appear at all.

I checked in Google and saw other issues with the 6500, but this
wasn't one of them.

Any suggestions?

I suppose I could get a switch and hook it up via Ethernet, but that
really isn't a good solution, and it doesn't explain the problem.

Thanks.

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


Re: [CentOS] Issue with HP Officejet 6500 on CentOS 5.5

2010-09-19 Thread JohnS

On Sun, 2010-09-19 at 01:42 -0700, Mark wrote:

> I had no trouble configuring it to print, but it doesn't appear in
> lsusb and xsane can't find it, so I can't scan with it, which is the
> main reason I bought it in the first place.
---
Yeap my Scan Jet was the same way.  It printed but would not scan.  I
got the HP Open Source drivers and installed them and was no problems
after that.

http://hplipopensource.com/hplip-web/install_wizard/index.html

They have 4 listings for the OJ.

John

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


Re: [CentOS] Issue with HP Officejet 6500 on CentOS 5.5

2010-09-19 Thread Scott Robbins
On Sun, Sep 19, 2010 at 05:06:59AM -0400, JohnS wrote:
> 
> On Sun, 2010-09-19 at 01:42 -0700, Mark wrote:
> 
> ---
> Yeap my Scan Jet was the same way.  It printed but would not scan.  I
> got the HP Open Source drivers and installed them and was no problems
> after that.
> 
> http://hplipopensource.com/hplip-web/install_wizard/index.html
> 
> They have 4 listings for the OJ.

I found that their CentOS instructions were a bit off.  I have my own
page on hplip for CentOS.  There's an rpmforge rpm as well, but using
that one, I wasn't able to scan.

http://home.roadrunner.com/~computertaijutsu/hplip.html


-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6


 Cordelia: What's going on? Oh god, is the world ending? I have to
research a paper on Bosnia for tomorrow, but if the world's ending,
I'm not gonna bother.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Issue with HP Officejet 6500 on CentOS 5.5

2010-09-19 Thread Marc-André Lévesque

On Sun, 2010-09-19 at 06:04 -0400, Scott Robbins wrote:

> I found that their CentOS instructions were a bit off.

Well their instructions are off. Their rpm will not install because of
dependencies and file ownership conflict between rpms. To succeed at
installing their hplip rpm, I had to provide the --nodeps argument to
remove hpijs. Otherwise, uninstalling hpijs would remove some packages
required packages by hplip-3.10.6_rhel-5.0 and reinstalling the
requirements would bring back hpijs.

As for setting selinux to permissive, I didn't bother. I'm sticking to
enforcing. I'd rather fix selinux when I'll need a blocked feature than
disabling it. For the record, here's the avc:

avc:  denied  { write } for  pid=23972 comm="hp" name=".index" dev=dm-4
ino=1245300 scontext=system_u:system_r:hplip_t:s0-s0:c0.c1023
tcontext=system_u:object_r:snmpd_var_lib_t:s0 tclass=file

It didn't prevent me from printing but I have not tried scanning.

Hope this helps,

MAL

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


Re: [CentOS] NX and CentOS 5.5?

2010-09-19 Thread Les Mikesell
On 9/18/10 6:08 PM, Raymond Jender wrote:
> I am pulling my hair out here folks..
> I am running CentOS 5.5 in command line only. Reason being I am standing up an
> IDS system on it.
> I have installed the NX client/node and server pkgs. I have installed the NX
> client for windows on a Vista box. When I attemtp to connect from the Vista to
> CentOS, I get this:
> NX> 203 NXSSH running with pid: 22080
> NX> 285 Enabling check on switch command
> NX> 285 Enabling skip of SSH config files
> NX> 285 Setting the preferred NX options
> NX> 200 Connected to address: 192.168.1.70 on port: 22
> NX> 202 Authenticating user: nx
> NX> 208 Using auth method: publickey
> NX> 204 Authentication failed.
> Now I have been googling and re-googling. Plenty of people have had the same
> issue, but I have yet to find a solution that works for me. Funny that most of
> the stuff I'm finding on google is 4-5 years old! I'm sure I am probably 
> missing
> something so simple I will puke!
> I think I read that someone did an install and it worked right out of the 
> box!!


NX authenticates as the nx user via ssh keys to get an encrypted connection to 
pass the real user credentials over.  The commercial NX server always uses the 
same key as the client, but freenx (at least as packaged in epel or 
centos-testing) generates a unique key per install.  So you have to get the 
contents from /etc/nxserver/client.id_dsa.key into the client config for each 
target host.  You can do this by copying the file with winscp and importing it 
with the NX client gui  Click the 'configure', then the 'key' buttons to get to 
the right place.  Or you can use putty, cat the file to get the text on the 
screen and copy/paste it into the dialog box, replacing what is there - keeping 
the ---begin and ---end lines.

> I'd really like to see a CentOS - NX configuration guide but couldn't find 
> one.
> Can someone just tell me how this should be configuredwhat changes do I 
> need to
> make and to what config files?

It should come up working - but you can copy the node.conf.sample to node.conf 
and edit it and/or run /usr/bin/nxsetup again if you want to change any options.

> ssh (putty and WinSCP) works just fine for me in case you need to know.
> If you need any particular information, please let me know.

These connect directly as the user - for NX, you need an nx user that should 
have been installed by the package.

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

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


Re: [CentOS] Issue with HP Officejet 6500 on CentOS 5.5

2010-09-19 Thread Marc-André Lévesque

On Sun, 2010-09-19 at 11:24 -0400, Marc-André Lévesque wrote:

> As for setting selinux to permissive, I didn't bother. I'm sticking to
> enforcing. I'd rather fix selinux when I'll need a blocked feature than
> disabling it. For the record, here's the avc:
> 
> avc:  denied  { write } for  pid=23972 comm="hp" name=".index" dev=dm-4
> ino=1245300 scontext=system_u:system_r:hplip_t:s0-s0:c0.c1023
> tcontext=system_u:object_r:snmpd_var_lib_t:s0 tclass=file
> 
> It didn't prevent me from printing but I have not tried scanning.

Looks like you can get a lot of AVCs. My guess is it depends on how you
installed the printer. The avc above was from a printer installed with
hp-setup. But I get a lot more from an old printer entry that I updated
its make/model and URI.

MAL

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


Re: [CentOS] NX and CentOS 5.5?

2010-09-19 Thread Akemi Yagi
On Sun, Sep 19, 2010 at 8:56 AM, Les Mikesell  wrote:
> On 9/18/10 6:08 PM, Raymond Jender wrote:
>> I am pulling my hair out here folks..
>> I am running CentOS 5.5 in command line only. Reason being I am standing up 
>> an
>> IDS system on it.
>> I have installed the NX client/node and server pkgs. I have installed the NX
>> client for windows on a Vista box. When I attemtp to connect from the Vista 
>> to
>> CentOS, I get this:
>> NX> 203 NXSSH running with pid: 22080
>> NX> 285 Enabling check on switch command
>> NX> 285 Enabling skip of SSH config files
>> NX> 285 Setting the preferred NX options
>> NX> 200 Connected to address: 192.168.1.70 on port: 22
>> NX> 202 Authenticating user: nx
>> NX> 208 Using auth method: publickey
>> NX> 204 Authentication failed.
>> Now I have been googling and re-googling. Plenty of people have had the same
>> issue, but I have yet to find a solution that works for me. Funny that most 
>> of
>> the stuff I'm finding on google is 4-5 years old! I'm sure I am probably 
>> missing
>> something so simple I will puke!
>> I think I read that someone did an install and it worked right out of the 
>> box!!

> NX authenticates as the nx user via ssh keys to get an encrypted connection to
> pass the real user credentials over.  The commercial NX server always uses the
> same key as the client, but freenx (at least as packaged in epel or
> centos-testing) generates a unique key per install.  So you have to get the
> contents from /etc/nxserver/client.id_dsa.key into the client config for each
> target host.  You can do this by copying the file with winscp and importing it
> with the NX client gui  Click the 'configure', then the 'key' buttons to get 
> to
> the right place.  Or you can use putty, cat the file to get the text on the
> screen and copy/paste it into the dialog box, replacing what is there - 
> keeping
> the ---begin and ---end lines.

The OP asked this question on CentOS forums:

http://www.centos.org/modules/newbb/viewtopic.php?topic_id=28137&forum=40

I referred him to the CentOS wiki at:

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

Then it turnes out he is using NX from Nomachine.  There are
differences between the Nomachine version and CentOS' nx/freenx as you
pointed out.

>> I'd really like to see a CentOS - NX configuration guide but couldn't find 
>> one.
>> Can someone just tell me how this should be configuredwhat changes do I 
>> need to
>> make and to what config files?
>
> It should come up working - but you can copy the node.conf.sample to node.conf
> and edit it and/or run /usr/bin/nxsetup again if you want to change any 
> options.

FYI, the latest version of freenx 0.7.3-5.el5.centos installs
node.conf as a result of this bug tracker:

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

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


[CentOS] GRUB woes: GRUB Hard Disk Error

2010-09-19 Thread Rob Del Vecchio
Hello all,
I am attempting to install CentOS 5.5 on a recently donated home server (was
Windows).  I've tried installing twice; first, separating /boot, swap, /,
/var, /usr and /home into different partitions, the second time choosing
default layout.  Both times have resulted in "GRUB Hard Disk Error" upon
boot.

About the hard disk, it is a Seagate SATA drive.  I do not have another
drive to configure RAID.
The BIOS is set to:
Onboard PATA/SATA Adapters = Both
SATA mode = IDE
Onboard PATA/SATA Cofiguration = Enhanced Mode (???)

Upon booting into rescue mode, the file systems mount successfully and I am
able to read data from files.
The current file structure is (default layout):
/boot
/
swap

grub.conf:
#boot=/dev/sda1
default=0
timeout=5
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-194.el5)
   root (hd1,0)
   kernel /vmlinuz-2.6.18-194.el5 ro root=/dev/VolGroup00/LogVol00
   initrd /initrd-2.6.18-194.el5.img
title Other
   rootmoverify (hd0,0)
   chainloader +1

This is brand new from the installation.

My questions are, what am I missing?  Bad configuration?  Should
boot=/dev/sda1 really be commented out?

Some pointers for manually installing and configuring grub would be great,
as I am lacking experience in that area.

Any idea as to what is going on would be great!

Thanks in advance,
Rob
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Issue with HP Officejet 6500 on CentOS 5.5

2010-09-19 Thread Mark
On Sun, Sep 19, 2010 at 3:04 AM, Scott Robbins  wrote:
>
> I found that their CentOS instructions were a bit off.  I have my own
> page on hplip for CentOS.  There's an rpmforge rpm as well, but using
> that one, I wasn't able to scan.
>
> http://home.roadrunner.com/~computertaijutsu/hplip.html
>

That was most helpful . . . but:

I followed your instructions to the letter and got this result after
the build, turning the 6500 on and having it plugged in:

[...@marichter hplip-3.10.6]$ service cups status
cupsd (pid  3723) is running...

[...@marichter hplip-3.10.6]$ lsusb
Bus 001 Device 001: ID :   <<< the 6500 should show up here
Bus 002 Device 004: ID 03f0:0205 Hewlett-Packard ScanJet 3300c  <<< my
old scanner
Bus 002 Device 003: ID 04f9:0033 Brother Industries, Ltd
Bus 002 Device 001: ID :

[...@marichter hplip-3.10.6]$ which hp-setup
/usr/bin/hp-setup

[...@marichter hplip-3.10.6]$ hp-setup -i
warning: python-dbus not installed.   <<< AFAICT, there is no such package.

HP Linux Imaging and Printing System (ver. 3.10.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

(Note: Defaults for each question are maked with a '*'. Press 
to accept the default.)



| SELECT CONNECTION (I/O) TYPE |


  Num   Connection  Description
Type
    --
--
  0*usb Universal Serial Bus (USB)
  1 net Network/Ethernet/Wireless (direct connection
or JetDirect)

Enter number 0...1 for connection type (q=quit, enter=usb*) ? 0

Using connection type: usb

error: No device selected/specified or that supports this functionality.
[...@marichter hplip-3.10.6]$ yg python-dbus

(alias yg='yum list | grep -i')

I have selinux disabled.

I was able to plug the 6500 into my son's WinXP box and it worked
there, but I'd SO much rather use xsane than the scanner's control
panel - it's god-awfully slow, and windows takes almost as long as the
scan process itself to finish processing the PDF, and I don't get the
individua page images from multipage scans (like xsane provides).

I used the same USB cable for both host connections, and I've switched
connections on my host between the two open USB ports and neither one
works (although they work just fine for all my other
semi-permanently-attached USB devices, mainly my Brother laser printer
and the old HP Scanjet (and the HP Officejet that broke - it still
recognizes that when it's plugged in, but the scanner refuses to
work).

Any other ideas?  What am I missing?

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


Re: [CentOS] Issue with HP Officejet 6500 on CentOS 5.5

2010-09-19 Thread Scott Robbins
On Sun, Sep 19, 2010 at 11:44:41AM -0700, Mark wrote:
> On Sun, Sep 19, 2010 at 3:04 AM, Scott Robbins  wrote:
> >
> > I found that their CentOS instructions were a bit off.  I have my own
> > page on hplip for CentOS.  There's an rpmforge rpm as well, but using
> > that one, I wasn't able to scan.
> >
> > http://home.roadrunner.com/~computertaijutsu/hplip.html
> >
> 
> That was most helpful . . . but:
> 
> I followed your instructions to the letter and got this result after
> the build, turning the 6500 on and having it plugged in:
> 
> [...@marichter hplip-3.10.6]$ service cups status
> cupsd (pid  3723) is running...
> 
> [...@marichter hplip-3.10.6]$ lsusb
> Bus 001 Device 001: ID :   <<< the 6500 should show up here
> Bus 002 Device 004: ID 03f0:0205 Hewlett-Packard ScanJet 3300c  <<< my
> old scanner
> Bus 002 Device 003: ID 04f9:0033 Brother Industries, Ltd
> Bus 002 Device 001: ID :


That's interesting.  Some leftover config files?  (I've only done with
networked, rather than USB printers, so really not sure.)
> 
> [...@marichter hplip-3.10.6]$ which hp-setup
> /usr/bin/hp-setup
> 
> [...@marichter hplip-3.10.6]$ hp-setup -i
> warning: python-dbus not installed.   <<< AFAICT, there is no such package.

There is a dbus-python.  Is that definitely installed?

> 
> Any other ideas?  What am I missing?
> 
See above, but I'm not sure what would be missing--save perhaps for the
python-dbus package. 


-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Xander: All right, where is he? Where's the creep who turned me 
into a spider-eating man-bitch? 
Buffy: He's gone. 
Xander: Dammit. You know what? I'm sick of this. I'm tired of 
being the guy who eats insects and gets the funny syphilis. As 
of this moment, it's over. I'm through being everybody's 
butt-monkey! 
Buffy: Check. No more butt-monkey. 

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


Re: [CentOS] Issue with HP Officejet 6500 on CentOS 5.5

2010-09-19 Thread John Thomas
On 09/19/2010 11:55 AM, Scott Robbins wrote:
>> [...@marichter hplip-3.10.6]$ hp-setup -i
>> >  warning: python-dbus not installed.<<<  AFAICT, there is no such package.
> There is a dbus-python.  Is that definitely installed?

Where do I get dbus-python?

centos55[r...@home2 yum.repos.d]# yum search python-dbus
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
  * atomic: www5.atomicorp.com
  * epel: linux.mirrors.es.net
  * hrb-stable: fs11.vsb.cz
  * rpmforge: apt.sw.be
Excluding Packages from CentOS-5 - Addons
Finished
Excluding Packages from CentOS-5 - Base
Finished
Reducing EPEL to included packages only
Finished
Excluding Packages from CentOS-5 - Extras
Finished
Reducing hrb to included packages only
Finished
Excluding Packages from CentOS-5 - Updates
Finished
895 packages excluded due to repository priority protections
Warning: No matches found for: python-dbus
No Matches found


-- 
Sincerely,
John Thomas
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Issue with HP Officejet 6500 on CentOS 5.5

2010-09-19 Thread John Thomas
On 09/19/2010 12:02 PM, John Thomas wrote:
>> There is a dbus-python.  Is that definitely installed?
> Where do I get dbus-python?

Sorry, noticed after I sent:
Package dbus-python-0.70-9.el5_4.x86_64 already installed and latest version

-- 
Sincerely,
John Thomas
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Issue with HP Officejet 6500 on CentOS 5.5

2010-09-19 Thread Mark
On Sun, Sep 19, 2010 at 11:55 AM, Scott Robbins  wrote:
>
> That's interesting.  Some leftover config files?  (I've only done with
> networked, rather than USB printers, so really not sure.)

Possibly - I couldn't 'locate' anything that looked right for this
(i.e., where do I find these?).

> There is a dbus-python.  Is that definitely installed?
>

$ yg dbus
dbus.i386  1.1.2-14.el5installed
dbus.x86_641.1.2-14.el5installed
dbus-devel.i3861.1.2-14.el5installed
dbus-devel.x86_64  1.1.2-14.el5installed
dbus-glib.i386 0.73-10.el5_5   installed
dbus-glib.x86_64   0.73-10.el5_5   installed
dbus-glib-devel.i386   0.73-10.el5_5   installed
dbus-glib-devel.x86_64 0.73-10.el5_5   installed
dbus-libs.i386 1.1.2-14.el5installed
dbus-libs.x86_64   1.1.2-14.el5installed
dbus-python.x86_64 0.70-9.el5_4
installed  <<< Yes
dbus-x11.x86_641.1.2-14.el5installed
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] GRUB woes: GRUB Hard Disk Error

2010-09-19 Thread Rob Del Vecchio
Update: on a hunch, I tried installing Ubuntu Server.  Interestingly, the
GRUB installation failed during setup, however the LILO installation
completed successfully, the Ubuntu installation boots correctly.

For me, the whole reason to start using CentOS was to move away from Ubuntu.
I could do 3 things:
Try to install grub under Ubuntu and then use this
http://wiki.centos.org/TipsAndTricks/InstallFromGRUB as a guide, or

Something like this:  The above except using LILO, or

Try to install the LILO boot loader after a CentOS installation; in rescue
mode.


Better ideas or suggestions?

TIA

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


Re: [CentOS] GRUB woes: GRUB Hard Disk Error

2010-09-19 Thread Keith Roberts
On Sun, 19 Sep 2010, Rob Del Vecchio wrote:

> To: centos@centos.org
> From: Rob Del Vecchio 
> Subject: Re: [CentOS] GRUB woes: GRUB Hard Disk Error
> 
> Update: on a hunch, I tried installing Ubuntu Server.  Interestingly, the
> GRUB installation failed during setup, however the LILO installation
> completed successfully, the Ubuntu installation boots correctly.
>
> For me, the whole reason to start using CentOS was to move away from Ubuntu.
> I could do 3 things:
> Try to install grub under Ubuntu and then use this
> http://wiki.centos.org/TipsAndTricks/InstallFromGRUB as a guide, or
>
> Something like this:  The above except using LILO, or
>
> Try to install the LILO boot loader after a CentOS installation; in rescue
> mode.
>
>
> Better ideas or suggestions?
>
> TIA
>
> Rob

Well I'd wipe the drive clean using Gparted with a cross 
format. Do a minimal kickstart installation to install GRUB 
on the MBR.

Prior to that make sure the BIOS settings are OK for the 
SATA drive.

That shouldn't take to long.

HTH

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


Re: [CentOS] GRUB woes: GRUB Hard Disk Error

2010-09-19 Thread Eric Viseur
Can't you put the SATA drive on native instead of IDE in your bios ?
It decreases performance and could be problematic.

2010/9/19 Keith Roberts 

> On Sun, 19 Sep 2010, Rob Del Vecchio wrote:
>
> > To: centos@centos.org
> > From: Rob Del Vecchio 
> > Subject: Re: [CentOS] GRUB woes: GRUB Hard Disk Error
> >
> > Update: on a hunch, I tried installing Ubuntu Server.  Interestingly, the
> > GRUB installation failed during setup, however the LILO installation
> > completed successfully, the Ubuntu installation boots correctly.
> >
> > For me, the whole reason to start using CentOS was to move away from
> Ubuntu.
> > I could do 3 things:
> > Try to install grub under Ubuntu and then use this
> > http://wiki.centos.org/TipsAndTricks/InstallFromGRUB as a guide, or
> >
> > Something like this:  The above except using LILO, or
> >
> > Try to install the LILO boot loader after a CentOS installation; in
> rescue
> > mode.
> >
> >
> > Better ideas or suggestions?
> >
> > TIA
> >
> > Rob
>
> Well I'd wipe the drive clean using Gparted with a cross
> format. Do a minimal kickstart installation to install GRUB
> on the MBR.
>
> Prior to that make sure the BIOS settings are OK for the
> SATA drive.
>
> That shouldn't take to long.
>
> HTH
>
> Keith
> ___
> 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


[CentOS] How to simulate minimal ISO install using stage2 image file?

2010-09-19 Thread Chad Woolley
Hello,

I'm working on a project which automates creation of EC2 AMI images.
To do this, you must use a running EC2 instance to mount an image file
in a chroot jail.

My problem is that I want to create an AMI that looks exactly like a
minimal (nothing selected) install from the CentOS ISO image, but the
"stage2" image [1] file is much more "minimal" than that.  e.g., it
doesn't have yum, groups, devices, networking, etc set up as you would
if you had run the ISO minimal install on a real or virtual box.  I
can't mount the ISO directly in the chroot (as far as I know, but I
could be wrong).

My question is, how can I make the mounted stage2.img chroot jail look
just like a minimal ISO install?  I could manually create everything
(which I have started), but this is a lot of work, and I'm likely to
miss something that an ISO build would have (e.g. some group).

Is there some other standard CentOS script I can run after mounting
the stage2.img which will do everything the installer does?  Can I run
the installer manually with some kickstart script?  Pointers to
references and documentation are welcome...

Thanks,
-- Chad

[1] http://mirrors.usc.edu/pub/linux/distributions/centos/5.5/os/x86_64/images/
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] GRUB woes: GRUB Hard Disk Error

2010-09-19 Thread Rob Del Vecchio
> Well I'd wipe the drive clean using Gparted with a cross
> format. Do a minimal kickstart installation to install GRUB
> on the MBR.

I've read a bit on kickstart installations, and now I get to delve deeper
 :)
Thanks for the advice!

> Can't you put the SATA drive on native instead of IDE in your bios ?
> It decreases performance and could be problematic.

Quite right, all of the information that I found on the grub error paired
SATA and RAID.
I chose this because I wanted to remove the variable of a RAID installation.
 In retrospect, that was an unfounded idea.

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


Re: [CentOS] GRUB woes: GRUB Hard Disk Error

2010-09-19 Thread Eric Viseur
Also please note that if that card has SATA 2.0 capacity, native mode is
probably named "AHCI" on the bios.

2010/9/19 Rob Del Vecchio 

> > Well I'd wipe the drive clean using Gparted with a cross
> > format. Do a minimal kickstart installation to install GRUB
> > on the MBR.
>
> I've read a bit on kickstart installations, and now I get to delve deeper
>  :)
> Thanks for the advice!
>
> > Can't you put the SATA drive on native instead of IDE in your bios ?
> > It decreases performance and could be problematic.
>
> Quite right, all of the information that I found on the grub error paired
> SATA and RAID.
> I chose this because I wanted to remove the variable of a RAID
> installation.  In retrospect, that was an unfounded idea.
>
> Thanks,
> Rob
>
> ___
> 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] GRUB woes: GRUB Hard Disk Error

2010-09-19 Thread Rob Del Vecchio
> Also please note that if that card has SATA 2.0 capacity, native mode is
probably named
> "AHCI" on the bios.

Indeed!  There is an AHCI option.  I will set that.

Thanks for the info,
Rob
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] GRUB woes: GRUB Hard Disk Error

2010-09-19 Thread Rob Del Vecchio
Used a kickstart script to install the system, got slightly different
results.
Upon boot, I see:
L 99 99 99 ... 99

and so on.  This could be due to a correctly configured BIOS (set to AHCI).

However, the installation boots when the installation disk finds an
installed copy of CentOS on the hard drive?  For the moment, I am carefully
fiddling with grub.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] GRUB woes: GRUB Hard Disk Error

2010-09-19 Thread Rob Del Vecchio
Sorry, should have googled before mailing; looks like it can be fixed with
grub-install.  Hopefully smooth sailing from here.

Thanks for the help thus far,
Rob
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Went with OpenDNS for now

2010-09-19 Thread Lanny Marcus
On Sat, Sep 18, 2010 at 2:13 PM, Ron Blizzard  wrote:
> A few weeks ago I asked about firewalls and family filters. Lanny
> Marcus, I believe, suggested OpenDNS. Just wanted to thank him (and
> everyone here) for their suggestions.

Ron: My pleasure. Usually, I am the one receiving help from the list.
Glad you found OpenDNS useful.  Lanny
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Using Make in frequent cron job

2010-09-19 Thread Kenneth Porter
Is there a way to get Make to be silent when it does nothing, but have its 
normal verbosity when something is made?

I want to use Make in a frequent cron job (every 1/2 hour, perhaps 10 
minutes) but I don't want to get a bunch of emails telling me nothing was 
done (which will be most of the time). I just want to know when it found 
something to do.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Using Make in frequent cron job

2010-09-19 Thread Chad Woolley
On Sun, Sep 19, 2010 at 6:58 PM, Kenneth Porter  wrote:
> Is there a way to get Make to be silent when it does nothing, but have its
> normal verbosity when something is made?

You can write a wrapper script and run it in a subshell to capture the
output.  Pretend echo is make:

a=$(echo 'made something') # no output
if echo $a | grep 'made something' > /dev/null; then
  echo $a
fi

HTH,
-- Chad
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Using Make in frequent cron job

2010-09-19 Thread John R Pierce
  On 09/19/10 6:58 PM, Kenneth Porter wrote:
> Is there a way to get Make to be silent when it does nothing, but have its
> normal verbosity when something is made?
>
> I want to use Make in a frequent cron job (every 1/2 hour, perhaps 10
> minutes) but I don't want to get a bunch of emails telling me nothing was
> done (which will be most of the time). I just want to know when it found
> something to do.


you could run `make -q`, then if it returns a non-zero status, run `make`


like...

 make -q || make




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


Re: [CentOS] How to simulate minimal ISO install using stage2 image file?

2010-09-19 Thread Chad Woolley
On Sun, Sep 19, 2010 at 2:01 PM, Chad Woolley  wrote:
> I'm working on a project which automates creation of EC2 AMI images.
> To do this, you must use a running EC2 instance to mount an image file
> in a chroot jail.
>
> My problem is that I want to create an AMI that looks exactly like a
> minimal (nothing selected) install from the CentOS ISO image

I did some research - it looks like I might be able to do this with kickstart:

http://www.centos.org/docs/5/html/5.2/Installation_Guide/s1-kickstart2-startinginstall.html

However, I'm unsure exactly which of those options to use.  This seems
like a common task - are there any good tutorials which show the exact
process to create an basic CentOS image in a chroot via kickstart?

Thanks,
-- Chad
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos