Re: Forcing specific IP address with DHCP

2008-04-17 Thread Chris Henry
On Thu, Apr 17, 2008 at 10:31 PM, Celejar <[EMAIL PROTECTED]> wrote:
>  II)  Use dhclient's supersede facility to override gwen's DHCP offer.
>  After struggling with the various DHCP manpages, I can't figure out how
>  to supersede the IP address; all the examples deal with superseding
>  things such as the nameservers.  Am I missing something?
Have you tried disabling the DHCP server altogether and using one of
your linux boxes as DHCP server? Then you can use all facilities of
dhcpd. Additionally, you can make that box your nameserver (using
bind) as well. That would solve both of your problems at the same
time.

Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Uniq is not unique ?

2008-04-12 Thread Chris Henry
Hi,

On Sun, Apr 13, 2008 at 12:57 AM, Bhasker C V <[EMAIL PROTECTED]> wrote:
>   For fairly large file 100K+ lines
>   uniq command does not filter the repetitive lines.
>
>   Am I doing anything wrong on the usage ?
>
>   For eg:-
>
>   I had run this script in my home dir
>
>   find . -name \* -type f -exec basename {} \; | uniq
>   or send the output to a file and then run uniq on the file
>
>   Both cases, the o/p shows repeated lines
I happened to know the source code for uniq and it should filter
repeated lines. By repeated lines, do you mean consecutive repeated
lines or separated by other lines? Uniq only filters consecutive
repeated lines, e.g.

A
A
B
A

will become

A
B
A

If you need it to filter such that only 1 unique line remains, you
will need to sort first then pipe to uniq (not a good solution for
really large files).

Regards,
Chris
>
>
>  --
>  Bhasker C V
>  Registered Linux user: #306349 (counter.li.org)
>  The box said "Requires Windows 95, NT, or better", so I installed Linux.
>
>
>  --
>  To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>  with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
>



-- 
contact: +65 97553292
e-mail: [EMAIL PROTECTED] / [EMAIL PROTECTED] / [EMAIL PROTECTED]
facebook: http://nus.facebook.com/profile.php?id=502687583


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Install Memcache in debian

2008-04-06 Thread Chris Henry
Hi,

On Sun, Apr 6, 2008 at 4:02 PM, Florian Kulzer
<[EMAIL PROTECTED]> wrote:
> On Sun, Apr 06, 2008 at 11:52:29 +1000, hce wrote:
>  > Hi,
>  >
>  > While I am building and installing Memcache in debian, the README says
>  > "If using Linux, you need a kernel with epoll.". Is the debian 4.0
>  > uses kernel with epoll?
It should be. At least it is on mine (2.6.18-6, K7 kernel installed by
Etch). You can do what Florian Kulzer suggested below to double check:

>
>  I have no idea (since I run Sid with a self-compiled kernel), but I can
>  show you how to find it out for your running kernel:
>
>  $ grep EPOLL /boot/config-$(uname -r)
>  CONFIG_EPOLL=y

Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Why debian sucks! [was Re: Distributions]

2008-04-04 Thread Chris Henry
On Fri, Apr 4, 2008 at 11:03 PM, Andrew Sackville-West
<[EMAIL PROTECTED]> wrote:
[snip]
>  Oh, and the other thing I don't like is how darn easy it is. It makes
>  it hard to learn anything past a certain point... hence my occaisional
>  attempts to do things the hard way...
Agree! Agree completely! It's just amazing. I was completely lost in
FC when using yum (well not really, but it is not that easy to go
around with yum). apt-get is really too easy to use. It used to be
that my hardware doesn't work out of the box 2 years back, now it
does; or perhaps it's just my computer getting really old and thus
getting better kernel support.

Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: number of users accessing a wireless network

2008-03-31 Thread Chris Henry
On Tue, Apr 1, 2008 at 9:16 AM, Kamaraju S Kusumanchi
<[EMAIL PROTECTED]> wrote:
> Rich Healey wrote:
>
>  > put them all in the same subnet (ie 192.168.0.128-255) and then nmap -sS
>  > - -PN 192.168.0.128/25 | grep [uU][Pp]
>
>  What does it mean to say 192.168.0.128/25 ?
/25 indicates the subnet (255.255.255.128). In this case, it means
192.168.0.128-255.

Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [OT] Mail address

2008-03-21 Thread Chris Henry
On Sat, Mar 22, 2008 at 11:16 AM, Ron Johnson <[EMAIL PROTECTED]> wrote:
>  On 03/21/08 20:30, Charlie wrote:
[snip]
>  > It didn't show it correctly in Kmail: showed it as unknown, but did show it
>  > correctly when I sent it to the trash folder?
>
>  In Tbird/icedove, the Sender is blank.  But looking in the source, I
>  see:
>  Resent-From: Mirko Parthey <[EMAIL PROTECTED]>
>  Resent-Date: Fri, 21 Mar 2008 16:00:01 +0100
>  Resent-Message-ID:
>  <[EMAIL PROTECTED]>
>
>
>  This seems to be the key, since none of the other emails I checked
>  have Resent-* headers.
Hmm, yeah, I checked the original file again, there's no sender field
but there's resent-* that you mentioned. Seems like gmail is handling
them properly. I think it's an honest mistake with Mirko's e-mail
client or SMTP. I'm still not sure how the other e-mail client can see
this as Daniel's e-mail though.

Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [OT] Mail address (was: disassembling machine code)

2008-03-21 Thread Chris Henry
On Sat, Mar 22, 2008 at 5:37 AM, Sven Joachim <[EMAIL PROTECTED]> wrote:
> On 2008-03-21 19:29 +0100, Daniel Burrows wrote:
>
>  > On Fri, Mar 21, 2008 at 01:39:09PM +0100, [EMAIL PROTECTED] was heard to 
> say:
> ^^
>  Huh?
>
>  >   I did not write this email.  I don't have any problem with it, but I
>  > didn't write it.
>  >
>  >   Whoever did: please refrain from forging other people's email
>  > addresses in your From header.
>
>  Daniel, is there something wrong with your mailer?  Gmane shows
>  [EMAIL PROTECTED] (Unknown) as the author of this message.  Bad
>  enough, but not nearly as evil as using your address.
>
>  Judging by the Message-IDs and other headers, it probably came from
>  Mirko Parthey, who will hopefully continue to use his real name and
>  address in the future.
Huh? In my inbox, the e-mail Daniel referred to shows Mirko Parthey
correctly (I also checked the original message and it still looks
legitimate. Is there anything I miss?? s:

Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: DCHP

2008-03-15 Thread Chris Henry
On Sun, Mar 16, 2008 at 12:38 AM, Dave Sherohman <[EMAIL PROTECTED]> wrote:
> On Fri, Mar 14, 2008 at 10:01:08AM -0800, Ken Irving wrote:
>  > You say there are two DHCP servers; perhaps what you're
>  > seeing is a different IP reply from one or the other server?
>
>  This was my first thought also, though.  The OP may want to verify this
>  detail, as my experience has been that running more than one DHCP server
>  on the same network tends to cause Bad Things to happen.
I'm not sure how the admins implemented that, but from my own
experience, usually only one DHCP server is active at any one time.
The other DHCP server will act as a failover in case the main server
fails. So usually having 2 DHCP servers are not a problem (most of the
time, only the primary server will be answering DHCPREQUEST).

Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Allowing users to mount external drive/thumbdrive

2008-03-15 Thread Chris Henry
On Sat, Mar 15, 2008 at 9:02 PM, Raj Kiran Grandhi <[EMAIL PROTECTED]> wrote:
> Chris Henry wrote:
>  > Hi,
>  > I've just reinstalled a windows computer with debian today. While I
>  > can add an entry to fstab to allow user to be able to mount an
>  > external drive, it won't allow flexible usage of external
>  > drive/thumbdrive.
>
>  If you are using a recent enough version of debian (etch or later),
>  just adding the user to the floppy group should be enough.
>
>  # adduser  floppy
>
>  Next time the user logs in, plugging in an external drive automatically
>  mounts it.
Interestingly, the user is already in floppy group (and plugdev). I
can mount thumbdrive and HFS+ now but NTFS still could not be mounted.
I just installed ntfs-3g, gonna see if that makes any difference.

Thanks for that though.

>
>
>  > I realized that Ubuntu allows users to plug just
>  > about anything and have it automatically mounted.
>
>  Funny that you mention this, since I am finding it difficult to disable
>  that 'feature' in Ubuntu. Apparently it is not as simple as removing the
>  user from the floppy group (or plugdev, in case of ubuntu)
Yeah, I've been following that thread too. ;) Can't help there though,
I've tried Ubuntu three times now (in span of more than a year) and
still couldn't make myself liking it at all.

Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Allowing users to mount external drive/thumbdrive

2008-03-15 Thread Chris Henry
Clarification below:

On Sat, Mar 15, 2008 at 4:01 PM, Chris Henry <[EMAIL PROTECTED]> wrote:
> Hi,
>  I've just reinstalled a windows computer with debian today. While I
>  can add an entry to fstab to allow user to be able to mount an
>  external drive, it won't allow flexible usage of external
>  drive/thumbdrive. I realized that Ubuntu allows users to plug just
>  about anything and have it automatically mounted. Can I do the same in
>  Debian? That means, allowing user to plug a thumbdrive or external
>  drive and let the computer do the rest.
>
>  Btw, one of the external drive was formatted with NTFS and HFS+. While
>  Debian can autodetect NTFS partition, it seems that it fails to
>  autodetect HFS+ partition (manual mount with -t hfsplus works though).
Ok, the problem actually only happens for NTFS and HFS+ partitions. I
just managed to get a thumbdrive and it mounted fine.

Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Allowing users to mount external drive/thumbdrive

2008-03-15 Thread Chris Henry
Hi,
I've just reinstalled a windows computer with debian today. While I
can add an entry to fstab to allow user to be able to mount an
external drive, it won't allow flexible usage of external
drive/thumbdrive. I realized that Ubuntu allows users to plug just
about anything and have it automatically mounted. Can I do the same in
Debian? That means, allowing user to plug a thumbdrive or external
drive and let the computer do the rest.

Btw, one of the external drive was formatted with NTFS and HFS+. While
Debian can autodetect NTFS partition, it seems that it fails to
autodetect HFS+ partition (manual mount with -t hfsplus works though).

Thanks for the help.

Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: DCHP

2008-03-14 Thread Chris Henry
Hi,

On Fri, Mar 14, 2008 at 9:13 PM, Cassiel <[EMAIL PROTECTED]> wrote:
> Every time I restart my Lenny I obtain a new ip addr from one of the 2 dhcp
> servers. We have a 1 month lease on this servers and this should never
> happen within this period.
You can't guarantee what IP address you'll receive with DHCP. If you
wanted to ensure static ip on your host, you should the following
lines to dhcpd.conf on the DHCP servers (if it is a linux/UNIX-based
dhcpd):

host  {
  hardware ethernet ;
  fixed-address ;
}

That will ensure that your host (identified with MAC address) will
receive the same IP.

Does that helps? Or you have other intentions?

Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Where is the pcre-devel package?

2008-03-12 Thread Chris Henry
On Wed, Mar 12, 2008 at 6:58 PM, hce <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  Where is the pcre-devel package, I could not find it:
>
>  Reading package lists... Done
>  Building dependency tree... Done
>  E: Couldn't find package libpcre-devel
I think Debian does not use -devel for development package (I think
it's used in RPM). But anyway, if you're looking for the -dev version
of libpcre, it should be libpcre3-dev. Otherwise, debian package
search should be useful enough to look for the right package:

http://packages.debian.org/search?keywords=libpcre&searchon=names&suite=stable§ion=all

(The above link searches for libpcre keyword in etch.)

Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: ssh to Vmware linux on a MS Window machine

2008-03-12 Thread Chris Henry
On Wed, Mar 12, 2008 at 6:40 PM, hce <[EMAIL PROTECTED]> wrote:
>  Local network have an IP address 192.168.1.105
>  VMnet1 = 192.168.100.1
>  VMnet8 = 192.168.50.128
>   The bridge is connected between local network and the VMnet8, the
>  bridge IP adderess = 192.168.50.129.
>
>  In window console, the ipconfig cannot see the local IP address
>  192.168.1.105, it can only see the bridge ip address and VMnet1 ip
>  address.
>
>  I tried in my debian box to ping 192.168.1.105, 192.168.50.128 and
>  192.168.50.129. None of them works.
I think you also need to add a route to your VM through the physical
IP address of the Windows PC. The problem is VMware usually introduces
NAT for the VM. Your Linux box will not be able to find a route to
this PC. You can try this:

# route add -host  gw 


If you prefer, you can add the whole VMware network, replace `-host
` with `-net  netmask `.

(I can't supply you the exact IP because I'm also confused with your
network topology.)

Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Basic bash question.

2008-03-04 Thread Chris Henry
On Wed, Mar 5, 2008 at 6:16 AM, Andrew Sackville-West
<[EMAIL PROTECTED]> wrote:
> On Mon, Mar 03, 2008 at 08:08:47PM -0800, joseph lockhart wrote:
>  >
>  > Luis Maceira <[EMAIL PROTECTED]> wrote: How can I see all the messages 
> generated by
>  > a bash command (configure make make install,
>  > for example) to standard output(computer screen),
>  > and at the same time make sure that all is
>  > written to a text file for later analysis.
>  > It is a redirection but I don´t know how to make
>  > both things happen at the same time.
>  > Is that possible?With all the bash commands?
>  >
>  > Without GUI(X),all command line environment.
>  >
>  > I would try
>  >
>  > some command && some command > some file
>
>  I believe that will only put the second command into the file, the
>  first will still go to the screen. And that only puts stdin in the
>  file, you'd likely want to redirect stderr as well.
Just to offer suggestion on this one, you can put brackets:
(command1 && command2) > filename

To redirect stderr as well
(command1 && command2) > filename 2>&1

Chris



Re: Basic bash question.

2008-03-03 Thread Chris Henry
Hi,
You can use tee. e.g. ./configure | tee filename

Chris

On Tue, Mar 4, 2008 at 11:33 AM, Luis Maceira <[EMAIL PROTECTED]> wrote:
> How can I see all the messages generated by
>  a bash command (configure make make install,
>  for example) to standard output(computer screen),
>  and at the same time make sure that all is
>  written to a text file for later analysis.
>  It is a redirection but I don´t know how to make
>  both things happen at the same time.
>  Is that possible?With all the bash commands?
>
>  Without GUI(X),all command line environment.
>
>
>   Thank you,in advance.
>
>
>   
> 
>  Never miss a thing.  Make Yahoo your home page.
>  http://www.yahoo.com/r/hs
>
>
>  --
>  To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>  with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
>



-- 
contact: +65 97553292
e-mail: [EMAIL PROTECTED] / [EMAIL PROTECTED] / [EMAIL PROTECTED]
facebook: http://nus.facebook.com/profile.php?id=502687583



Re: su doesn't work "Authentication failure"

2008-01-31 Thread Chris Henry
On Feb 1, 2008 1:10 PM, Dennis G. Wicks <[EMAIL PROTECTED]> wrote:
> What should I be worried about and start looking for?
> BTW, nobody can get access to my system unless they
> break into my house, and that hasn't happened. I even
> did a reinstall of the login package just to make sure
> the above was right!
>
If the md5 actually doesn't match, it could be that the file has been
damaged or somebody has managed to break into your computer and
replace `su` with another file. I think that's what he meant by really
worried. Even if it's your home computer, it doesn't mean that
malicious groups can't hack in and take control over your computer.
(In that case, your computer setup is probably not secure and you'd
want to look into it.)


Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: "The xlogin widget, ..."

2008-01-28 Thread Chris Henry
On Jan 29, 2008 2:39 AM, PETER EASTHOPE <[EMAIL PROTECTED]> wrote:
> Folk,
>
> "which login" tell me immediately that the familiar command line
> authentication is done by /bin/login.
>
> xdm.man refers to "The xlogin widget, which xdm presents ...".
> Good, but what program is it exactly?  There is no name on the GUI.
>
xlogin should be the program that offer the GUI login screen of xdm
(if you installed xdm).

> And where is this "widget" invoked?
>
I think if you install xdm via apt-get with x server installed, it
will be automatically invoked from one of the x server startup script.

Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Memory Stick is sg1?

2008-01-27 Thread Chris Henry
On Jan 27, 2008 10:22 PM, Thomas H. George <[EMAIL PROTECTED]> wrote:
> in /etc/fstab but when I tried to mount /usbdrive the system responded,
> "This is not a block device".  It was after this that I found that as
> root I could mount the memory stick with mount /dev/sda /mnt. - Tom

Hi, then try modifying you /etc/fstab to point to /dev/sda and not
/dev/sda1. Looking from your post, you can mount /dev/sda and not
/dev/sda1, your fstab on the other hand only gives normal permission
to mount /dev/sda and not /dev/sda1.

It's a little bit puzzling why there is no number, it might be because
you meant you mounted /dev/sda1, in which case I'm totally wrong and
you can ignore this post entirely. ):

Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Brief question as to the Linux kernel in use in the Stable version of Etch

2008-01-26 Thread Chris Henry
On Jan 27, 2008 3:41 PM, Sven Joachim <[EMAIL PROTECTED]> wrote:
> On 2008-01-27 08:23 +0100, David Palmer wrote:
> > Then you need to upgrade to the 'lenny' distribution.
> > Or depending on what you are running, even SID.
> > That's my standard desktop now.
>
> Please stop giving such clueless and *totally wrong* advice.  It is
> perfectly possible (and in fact very easy) to just install a new kernel
> and keep the rest of the system at the stable version.
>

I have to agree here. sid can be horribly broken at times and might
not suit you, especially on your first dive to Debian. Lenny is much
more stable but still gave me quite a headache sometime (this was the
first Debian distro I used, back during Woody days). My suggestion is
to use stable (etch) distribution for a start and either recompile
your own kernel or download the 2.6.22 from debian-backports (I think
this was stated previously by somebody).

See here for instruction on debian backports:
http://www.backports.org/dokuwiki/doku.php?id=instructions


Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How to set up simple cgi web

2008-01-26 Thread Chris Henry
On Jan 26, 2008 6:33 PM, hce <[EMAIL PROTECTED]> wrote:
> I thought if I create /www or /etc/www in my debian PC, and add an
> index.htm and cgi file to cgi-bin directory, I should be able to
> access http://my_ip_address/index.html. But, it did not work. how can
> I make that work?
>

Hmm. Shall start from the simplest. Did you install apache web server?
Or is this a just installed Debian (and you have no idea what was
installed). If you didn't, install it first.

$ su
# apt-get install apache2

After that you can follow the others' suggestions. (:

Good luck!
Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: unable to su to root, sudo works

2008-01-20 Thread Chris Henry
On Jan 21, 2008 3:29 AM, Damon L. Chesser <[EMAIL PROTECTED]> wrote:
> Marc Auslander wrote:
> > You might look in the conf files in /etc/security and see if anything
> > is funny.
> >
> >
> >
> That was a good idea, but all files are their defaults (or so I assume,
> all options are commented out)

What about /etc/pam.d/ files. May want to compare sudo, su and login.

Regards,
Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: debian install questions

2008-01-20 Thread Chris Henry
Hi,

> nowhere for example does the section tell exactly how to enter
> the boot parameter (cheart code) which tells the installer where to find the
> preseeding file.

The boot parameter is the first question the installer asks when you
boot from the installer of your choice. To install KDE for example,
you should type:

install tasks="standard, kde-desktop"

It is in the Release Notes of etch under heading of Desktop selection
(http://www.debian.org/releases/stable/i386/release-notes/ch-installing.en.html).
It might be a good idea to read the whole thing. d: The release notes
can be extremely useful.

Regards,
Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]