RE: Scripted method to change TZ from UTC to a specific timezone?

2010-10-15 Thread James Wu

> > I've also tried "echo 'America/New_York' > /etc/timezone" as well 
> > instead of copying.
> 
> You might also want to do this, but /etc/localtime and 
> /etc/timezone provide different information.  /etc/localtime 
> is machine-readable data that allows libc to map UTC times to 
> local times; /etc/timezone is (I guess) the human- readable 
> name of the local time.

Ugh, my apologies, even though I typed /etc/timezone in the email, I was
actually doing piping the output to /etc/localtime.
I noticed that and changed it to /etc/timezone and then did the
dpkg-reconfigure and it worked.

FYI: for future reference

# echo 'America/New_York' > /etc/timezone
# dpkg-reconfigure -f noninteractive tzdata

Works. Thanks for the help everyone!


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/fffa2cacdb4d5c44a24b09301138121801531...@ersbs2.eyereturn.local



Scripted method to change TZ from UTC to a specific timezone?

2010-10-15 Thread James Wu
Hi all,
 
When I run the cmd "date", I get UTC time on a fresh boot of an imaged
machine. I'd like to find a way to set the time to "America/New_York"
for automatically via script. A reboot is ok if absolutely needed but
not preferred.
 
I'm aware that I can run "dpkg-reconfigure tzdata"  but that requires
user input. 
 
I've tried the following methods without success:
"cp /usr/share/zoneinfo/America/New_York /etc/timezone" + changing
"UTC=yes to UTC=no" in /etc/default/rcS 
I even tried rebooting afterwards
I've also tried "echo 'America/New_York' > /etc/timezone" as well
instead of copying.
 
Am I missing something? Is there another way to change the tzdata from
UTC without requiring user input? 
 
Cheers,
James
 


RE: Script to add line to file if it doesn't exist

2010-04-07 Thread James Wu
> I want a script that will read the file and look for the name 
> "fred", and if it's found, leave the file alone, but if it's 
> not found, to add the name "fred" to the bottom of the file.

No need for awk/sed. Something like this should work.

#!/bin/bash
i=`grep fred FILENAME.TXT | wc -l`
if [ $i == "0" ]
then
echo "fred" >> FILENAME.TXT
fi

> 
> Any help appreciated. Thanks!
> 
> -- 
> Kent West<")))><
> http://kentwest.blogspot.com
> 
> 
> 
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact 
> listmas...@lists.debian.org
> Archive: http://lists.debian.org/4bbce69d.3040...@acu.edu
> 
> 


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/fffa2cacdb4d5c44a24b093011381218011d9...@ersbs2.eyereturn.local



RE: Monitoring AutoFS in SNMP

2010-03-23 Thread James Wu

> We are using autofs to mount cdrom and dvd iso images.  There 
> are nearly 100 of them.  Too many to really monitor 
> individually so we wanted to just monitor autofs.  It looks 
> to me like each auto.* file in /etc spawns it's own process 
> and pid.  And the pid changes each time the daemon is 
> restarted or the mount point expires and is then re-mounted.  
> If we could just monitor the pid spawned by auto.master I 
> think that would do it for us.  I asked in another reply in 
> this thread if a daemon could be assigned a pid but don't 
> have a response yet.

If it spawns a new process each time it mounts a new partition, would it
not have a parent process that would at least be constant on the server?
If that's the case, maybe you should just monitor the parent process.
Otherwise, it would make sense to monitor a partition instead of a pid
for a specific spawned process.

James


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/fffa2cacdb4d5c44a24b093011381218011a8...@ersbs2.eyereturn.local



RE: Monitoring AutoFS in SNMP

2010-03-23 Thread James Wu

> I am trying to find a MIB to monitor AutoFS but everything I 
> find is tied to the current pid AutoFS is running under which 
> of course changes each time it is restarted making it useless 
> as a monitoring metric.

I'm not familiar with autofs but if you do a snmpwalk for OID
.1.3.6.1.2.1.25.2.3.1, you will find a listing of all the mounted
partitions, maybe instead of monitoring autofs, monitor the existence of
a specific partition instead? I assume that's why you'd want to monitor
autofs in the first place anyways.

James


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/fffa2cacdb4d5c44a24b093011381218011a8...@ersbs2.eyereturn.local



RE: custom SNMP for custom graph

2010-03-09 Thread James Wu
I think you want to use sh instead of exec. Quoting from the man page:
"The PROG argument for exec directives must be a full path to a real
binary, as it is executed via the exec() system  call.   To  invoke  a
shell script, use the sh directive instead."

Also, I'd double check to make sure the script has the proper
permissions set so that it is executable by the snmpd daemon.

If all fails, I'd grep /var/log for snmpd and see what sort of errors
you get. They're usually quite helpful.

James

 

-Original Message-
From: Mihamina Rakotomandimby [mailto:miham...@gulfsat.mg] 
Sent: March 9, 2010 9:26 AM
To: List Debian User; net-snmp-cod...@lists.sourceforge.net
Subject: custom SNMP for custom graph

Manao ahoana, Hello, Bonjour,

I have an already working MRTG+SNMP+Apache here:
http://srv3.rktmb.org:90/mrtg/

I try to make a custom MRTG graph
First, I need to build SNMP stuff.

Say I want to monitor the access of my web server by counting the number
of lines of my access_log file. Just that simple, to begin.

I have a script:

/usr/local/bin/ocsigen_access containing:

 #!/bin/bash
 echo "ocsigen"
 echo $(wc -l /var/log/ocsigen/access.log | awk '{print $1}')  exit 35

Then in my /etc/snmp/snmpd.conf, I added:

 exec .1.3.6.1.4.1.2021.254 ocsigen /usr/local/bin/ocsigen_access

Then restart SNMPd

 invoke-rc.d snmpd restart

Then on the same host:
 snmpwalk -v 1 -c public localhost .1.3.6.1.4.1.2021.254  (returns
nothing...)

What did I miss?

PS: 

  $ echo $(wc -l /var/log/ocsigen/access.log | awk '{print $1}')
  510502
  $

Misaotra, Thanks, Merci.

-- 
   Architecte Informatique chez Blueline/Gulfsat:
Administration Systeme, Recherche & Developpement
+261 34 29 155 34 / +261 33 11 207 36


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmas...@lists.debian.org
Archive:
http://lists.debian.org/20100309172611.09cc4...@pbmiha.malagasy.com


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/fffa2cacdb4d5c44a24b09301138121801177...@ersbs2.eyereturn.local



RE: how to open a port?

2010-03-03 Thread James Wu
Try running 'netstat -nat | grep 4965' and paste the output.
Also, try running iptables -L and post the output.
Try telnetting from the local machine that runs iptrans. Maybe something
is blocking the outbound traffic on that machine or somehow it's not
getting through.
 
A few other things to keep in mind: 
When you are port scanning or telnetting, are you certain that that
machine doesn't have an outbound firewall?
Are you sure iptrans listens for TCP or UDP? If it's UDP, telnetting the
TCP port would be quite useless.
 
Finally, if all fails, I'd do a packet sniff.
Run something like 'tcpdump port 4965 -w outputfilename'. Grab that
outputfilename and open it in wireshark. See if there's any traffic
going back and forth.
 
James
 


From: Hadi Motamedi [mailto:motamed...@hotmail.com] 
Sent: March 3, 2010 6:21 AM
To: debian-user@lists.debian.org
Subject: RE: how to open a port?



 
> 
> What daemon do you have listening on TCP 4965?
> 
> -- 
> Stan
> 

It is 'iptrans' , as listed by 'netstat -apn |grep 4965' .
 




Hotmail: Powerful Free email with security by Microsoft. Get it now.
  


RE: Scary article in Wall Street Journal today

2010-02-18 Thread James Wu
Just want to reiterate that just because we're running Linux doesn't
mean we're immune to these types of attacks. I remember reading a while
ago how there was a trojan that was discovered on one of the files
hosted at www.gnome-look.org masquerading itself as a screensaver. Users
would download them, switch to root to install and voila, infected
machine.

James 

-Original Message-
From: Paul E Condon [mailto:pecon...@mesanetworks.net] 
Sent: February 18, 2010 4:59 PM
To: debian-user@lists.debian.org
Subject: Re: Scary article in Wall Street Journal today

On 20100218_132513, Mark wrote:
> >
> > >On Thu, 18 Feb 2010 12:25:04 -0700, Paul E Condon wrote:
> >
> > > Today in Wall Street Journal (pg 3 in US edition), there is an 
> > > article about hacker break-ins to computers via the internet. 
> > > Mentioned as the method of break-in are spyware called ZeuS, and 
> > > Firefox browser, but no mention of what OS are aflicted.
> >
> >
> As someone still learning about Debian/Linux, is it a correct 
> statement to say that these spyware/malware/virus .exe type files that

> try to install on a given machine, are virtually useless against 
> Debian systems unless the user logs in as root to allow installation?

> At a minimum, wouldn't synaptic/aptitude request the root password
before proceeding?
> 
> Mark

I'm the OP on this thread, so by no means an authority of Debian
security, but ...

Synaptic/aptitude already run with root privileges in order to be able
to install the executable programs that are downloaded from Debian
repositories.  So root password requirement is not a realistic response
to whatever is being done.

I'm aware of various security measures that *are* realistic defense
against various attacks. These measures involve cryptographics and
certificates and keyrings. I have learned to be somewhat complacent
about web security, but there was something about this article that got
me wondering if I shouldn't revisit the issue of security on Debian.
Now, it looks to me like same-old-same-old. If so, the worry morphs into
a worry about an onslaught of newbies moving to Debian and flooding this
list with silly newbie questions (like mine of not so long ago). But
that really isn't a worry, because, same-old-same-old, Windows users
appear to be invincibly ignorant.

Thanks to all for useful links.
-- 
Paul E Condon   
pecon...@mesanetworks.net


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmas...@lists.debian.org
Archive: http://lists.debian.org/20100218215840.gc2...@big.lan.gnu


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/fffa2cacdb4d5c44a24b0930113812180114b...@ersbs2.eyereturn.local



RE: bridge + ip-forwarding

2010-02-18 Thread James Wu
When posting for help, it would help if you give people enough
information to help you with. It'd help if you posted the output of the
following commands (obviously make sure you have the proper
permissions.):

iptables -t mangle -L
Route
cat /etc/network/interface 

Also, it might help if you explained what you are trying to do.

James


-Original Message-
From: Alex Samad [mailto:a...@samad.com.au] 
Sent: February 18, 2010 4:07 PM
To: Debian Users
Subject: bridge + ip-forwarding

Hi


I am a bit confused, I have a bridged interface with 2 active interfaces
eth0 and eth1. and ip forwarding off 

I have turned off ip forwarding.  I though brctl created a ethernet
bridge - same broadcast domain between the interface. but I noticed a
lot of firewall blocks in my iptables forward chain, in=br0 out=br0.

This normal ?


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/fffa2cacdb4d5c44a24b093011381218010c3...@ersbs2.eyereturn.local



RE: Scary article in Wall Street Journal today

2010-02-18 Thread James Wu
http://online.wsj.com/article/SB1000142405274870439880457507110383415053
6.html

The diagram shows that the attack still required the end user to click
and download a file and execute it. Conceptually, this is no worse than
running downloading hackme.exe and double clicking on it. There is an
inherent risk when running any sort of untrusted software, on linux or
on windows.

-Original Message-
From: Paul E Condon [mailto:pecon...@mesanetworks.net] 
Sent: February 18, 2010 2:25 PM
To: debian-user@lists.debian.org
Subject: Scary article in Wall Street Journal today

Today in Wall Street Journal (pg 3 in US edition), there is an article
about hacker break-ins to computers via the internet. Mentioned as the
method of break-in are spyware called ZeuS, and Firefox browser, but no
mention of what OS are aflicted. 

I assume most of the affected computers are running some version of
Microsoft Windows, but is this also a threat to Linux, and, in
particular, Debian with Iceweasel? Where can I look to read a discussion
in more detail than this issue merits on this list?
e.g. How does ZeuS work? And what does it do?

TIA

-- 
Paul E Condon   
pecon...@mesanetworks.net


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmas...@lists.debian.org
Archive: http://lists.debian.org/20100218192504.gb2...@big.lan.gnu


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/fffa2cacdb4d5c44a24b093011381218010c3...@ersbs2.eyereturn.local



RE: HW Raid

2010-02-16 Thread James Wu
Personally, I'd go with snmp if you are familiar with that. Manufacturer 
software to monitor stuff tends to be little more than an afterthought. It's 
often badly designed and a mess to use. Also, almost any sort of manufacturer 
provided software with a GUI would be windows only. Linux almost always gets 
command-line tools only which means you do have to do some scripting. 

Contrary to Camaleón's experience, the RAID cards I've used have supported 
rebuilding volumes inside the OS but if you want to make changes to the array, 
you would need to do it inside the BIOS. 

Also, I'd double check to make sure that they explicitly say they support your 
debian otherwise, you might get an rpm which might not be usable with Debian. I 
had to switch distros on one of our servers from Debian to CentOS because 
Intel's software just wouldn't work inside Debian.

Cheers,
James

-Original Message-
From: news [mailto:n...@ger.gmane.org] On Behalf Of Camaleón
Sent: February 15, 2010 5:25 AM
To: debian-user@lists.debian.org
Subject: Re: HW Raid

On Mon, 15 Feb 2010 10:15:43 +1100, Alex Samad wrote:

(...)

> What I am looking at is the ability to monitor the array from within 
> linux, sort of like mdadm does, so that if/when a drive goes faulty I 
> will be notified. I would also like to be able to use smartctl on the 
> individual drives so I can gather information from them whilst linux 
> is running.

As per RAID monitoring inside OS, be *very* careful.

I own some Adaptec's 2020SA (zero-channel raid cards) which do not allow such 
thing, all the operations (rebuilding arrays, creating ones...) have to be done 
at BIOS level when using "aacraid" driver included in stock kernel.

Adaptec provides ASM (software to control this under linux) but only works when 
using the manufacturer's RAID card drivers :-/

I recommend a full review of this page:

Serial ATA (SATA) chipsets - Linux support status 
http://linuxmafia.com/faq/Hardware/sata.html

In regards with "smart" monitoring, I also have to warn you :-)

"smartmontools" provides that functionality but only with a few drivers/raid 
controller:

Checking disks behind RAID controllers
http://sourceforge.net/apps/trac/smartmontools/wiki/Supported_RAID-Controllers

> I have been looking at the Highpoint Rocket Raid 3530, this seems to 
> fit the build for me, but thats from reading the doco.
> 
> I was wondering has any one on the list been using these cards ? what 
> is the management software like and the monitoring

If I had to buy another RAID controller again, my money would go for "3ware" :-)

Greetings,

--
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.02.15.10.24...@gmail.com


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/fffa2cacdb4d5c44a24b093011381218010c3...@ersbs2.eyereturn.local



RE: Substitute for KShowMail?

2010-02-11 Thread James Wu
Unfortunately, I think that gnome applets are quite lacking in general (if 
that's what you're looking for). I tried looking around a few years ago for 
something similar and never quite found one that was native to Gnome. Any 
reasons why KshowMail isn't being considered anymore?

James

-Original Message-
From: news [mailto:n...@ger.gmane.org] On Behalf Of Camaleón
Sent: February 11, 2010 9:47 AM
To: debian-user@lists.debian.org
Subject: Re: Substitute for KShowMail?

On Mon, 08 Feb 2010 15:31:26 +, Camaleón wrote:

> I am looking for a good replacement of KShowMail (a pop/imap mail 
> checker with advanced functions -the ability of deleting and reading 
> e-mails is a must).
> 
> Right now I'm using "mail-notification" (in a GNOME environment) but 
> is rather feature-lacking when compared with its KDE counterpart app 
> KShowMail (it just only alerts me when new e-mail arrives but nothing 
> more).
> 
> Any recommendations/suggestions?

(→ re-injecting)

No one here using a pop3/imap e-mail checker? O:-)

Greetings,

--
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



RE: gnome CPU Frequency Scaling Monitor nagging for password

2010-02-04 Thread James Wu
You may also want to look at gksudo, which is a gtk frontend for sudo.

James

-Original Message-
From: José Santos [mailto:jsm...@gmail.com] On Behalf Of josé Santos
Sent: February 4, 2010 4:48 AM
To: debian-user@lists.debian.org
Subject: Re: gnome CPU Frequency Scaling Monitor nagging for password

On Thu, Feb 04, 2010 at 02:04:11AM +, Freeman wrote:
> On Wed, Feb 03, 2010 at 06:55:34PM -0600, John Hasler wrote:
> > Freeman writes:
> > > There have been occasional mentions of sudo here, as if it were no big 
> > > deal. 
> > > In my original learning, it is a big deal.  That is, su, not sudo, 
> > > is "the Debian way,"...
> > 
> > That's news to me.
> > --
> > John Hasler
> > 
> 
> Well, in numerous exchanges over the course of years, the case was 
> made to me and others that sudo can leave apps open to exploitation if 
> not locked down carefully.
> 
> To the extent that NOPASSWD is set and/or that password durations 
> allow continued commands and/or that users are listed more liberally 
> than they should be, the system is potentially open to attackers.  If 
> someone gains your account they can use any app against your root 
> system that sudo will allow.
> 
> The argument was that su is the Debian replacement to sudo 
> specifically for reason, as far as general use goes.  And that sudo is 
> for Ubuntu users :), or special use in Debian.
> 
> NOPASSWD is set for myself in sudo. But the only apps therein are 
> shutdown, if/iwconfig & iwlist, cpufreq-set and iptraf.
> 
> Anyway, that was part of my upbringing in the Debian universe. And I 
> have followed it.  However, I'm not inclined to pretend at authority.  
> I do this to keep from going insane at my real business which has 
> nothing to do with cyberspace.  :)
> 
> --
> Kind Regards,
> Freeman
> 

I'm not a big fan of sudo, but if this can easy my life when working on my 
laptop, than its definitely worth to learn. Freeman, would you be so king to 
email me a copy of your suduoers file, so I can use it as an example?
I thought that this had to do with gnome policykit.
Thank you very much.

-- 

  José Santos  | Debian Squeeze/Sid mixed system 
jsan...@ubi.pt |2.6.32.7-amd64   


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



RE: R: sata hard drive mounting problem

2010-02-04 Thread James Wu
Edit fstab and change the file system to ntfs. 

Regarding the permissions, you need to make the mount point readable and
possibly writable by your users. There's many ways you can do go about
it, I'd do it via groups.

Here's an example:
'groupadd $GROUPNAME'   # create new group
'usermod -G $GROUPNAME $USERNAME' # Adds user to group, run it for
whichever user you want to access the mount
'chown :$GROUPNAME Mountpoint' # modifies mountpoint permission to be of
the group
'chmod g+rw Mountpoint' # gives group read/write permissions

Cheers,
James


-Original Message-
From: David Hammett [mailto:docli...@copper.net] 
Sent: February 3, 2010 5:27 PM
To: m.vasche...@snservice.net
Cc: debian-user@lists.debian.org
Subject: Re: R: sata hard drive mounting problem

Thanks Marco

You stated:>>

You need add a line like this one in /etc/fstab:

/dev/device   /mount/point   file system options dumppass

For use normal user 

/dev/sdb1 /media/HDDext3defaults,user,rw
00


The drive has an nfts windows file system on it with some folder already
on it. I'm trying to get my file's off it on to the new debian install I
got now, then I'm going to take the derive back out of this computer.

So I think I need to put the file system as nfts not ext3 right? 





You stated:>>

If you create the mount point with a root user do you need change the
owner of the folder 

-

If all the folders are crowned with root as owner, How do I change them
to all users? 



Thanks And:
God Bless You!




--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmas...@lists.debian.org


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



RE: Root filesystem full; faubackup problem?

2010-01-27 Thread James Wu
I wouldn't dismiss what Marc was onto. If you do the math, 44G in /documents + 
11G in the rest of / == 55G, seems to be a bit more than coincidence. I know 
you already tried ls -l /documents/ after you umounted but just for curiosity's 
sake, I wonder what happens when you do:

umount /documents
du -sh /documents


-Original Message-
From: Marc Olive [mailto:marc.ol...@grupblau.com] 
Sent: January 27, 2010 6:26 AM
To: debian-user@lists.debian.org
Subject: Re: Root filesystem full; faubackup problem?

El Wednesday 27 January 2010 12:20:28 Tim Beauregard va escriure:
> Marc Olive wrote:
> > Maybe you copied /document files to /documents without being hdb1 
> > monuted? Try to umount /documents and see if there are still all files.
>
> t...@server:~$ umount /documents
> t...@server:~$ ls -l /documents/
> total 0
>
> As expected?

No, there aren't the files, the problem was not the one I was pointing to.
Mount again "documents" and continue searching a solution.

-- 

Marc Olivé
Grup Blau


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



RE: question about sending mail and postfix

2010-01-18 Thread James Wu
I apologize, I just double checked and I think the "mailutils" package
is the more common one. You shouldn't need a database for it. However,
I'd check to make sure you don't already have it the mail command in
your system.

Check your PATH by typing "env | grep PATH" in the command line and
check that /usr/bin is listed. As well, type "ls /usr/bin | grep mail"
and check if you see a mail command. You don't really need postfix for
this anyways, exim which comes on lenny by default is enough for such a
simple task.

James 

-Original Message-
From: Adam Hardy [mailto:adam@cyberspaceroad.com] 
Sent: January 18, 2010 10:37 AM
To: debian-user@lists.debian.org
Cc: debian-user@lists.debian.org
Subject: Re: question about sending mail and postfix

Andrei Popescu on 18/01/10 13:40, wrote:
> On Mon,18.Jan.10, 13:32:20, Adam Hardy wrote:
>  
>> I have a new server online with lenny that I want to configure to 
>> send all its mail for root to my email address, and that's all. I 
>> don't want it to receive any email or relay or anything else.
> 
> 'man aliases' and don't forget to run newaliases after you changed 
> /etc/aliases.

I need a database ...hmmm I can see this job morphing into something a
lot bigger than I had imagined.

Is there no easier package to use for this than postfix with a database?



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmas...@lists.debian.org


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



RE: question about sending mail and postfix

2010-01-18 Thread James Wu
There are probably multiple "mail" commands that are with different
packages. The one I mentioned, bsd-mailx, seems to be the standard one
that I've come across. It might be the "default" in some setups although
I'm not sure about that.

James

-Original Message-
From: Adam Hardy [mailto:adam@cyberspaceroad.com] 
Sent: January 18, 2010 10:01 AM
To: debian-user@lists.debian.org
Cc: debian-user
Subject: Re: question about sending mail and postfix

> -Original Message-
> From: Adam Hardy [mailto:adam@cyberspaceroad.com]
> Sent: January 18, 2010 8:32 AM
> To: debian-user
> Subject: question about sending mail and postfix
> 
> This is possibly an exceptionally easy question to answer because I 
> feel like all the documentation I've read about sending mail and 
> postfix starts at step 2, and step 1 is just common knowledge that I 
> somehow failed to pick up.
> 
> I have a new server online with lenny that I want to configure to send

> all its mail for root to my email address, and that's all. I don't 
> want it to receive any email or relay or anything else.
> 
> I set this up a few years back with postfix and now trying to recreate

> this setup, I am running into the problem that the mail command isn't 
> installed. It obviously doesn't come with postfix and there appears to

> be a huge choice of packages that I could choose from in the debian 
> repositories, but isn't there a default? My guess is that my hosting 
> service installed such a stripped-down version of lenny that I didn't 
> get it.

James Wu on 18/01/10 14:50, wrote:
 > Assuming you can install new packages, the mail command comes in the
> package bsd-mailx. Otherwise, you can try using the Postfix sendmail
> command. You'll probably have to read the man page as the flags are  >
different from mail.

Hi James
thanks. Isn't bsd-mailx just a random choice from all of those listed
when I search the repositories?


Adam


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact
listmas...@lists.debian.org


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



RE: question about sending mail and postfix

2010-01-18 Thread James Wu
Assuming you can install new packages, the mail command comes in the
package bsd-mailx. Otherwise, you can try using the Postfix sendmail
command. You'll probably have to read the man page as the flags are
different from mail.

James 

-Original Message-
From: Adam Hardy [mailto:adam@cyberspaceroad.com] 
Sent: January 18, 2010 8:32 AM
To: debian-user
Subject: question about sending mail and postfix

This is possibly an exceptionally easy question to answer because I feel
like all the documentation I've read about sending mail and postfix
starts at step 2, and step 1 is just common knowledge that I somehow
failed to pick up.

I have a new server online with lenny that I want to configure to send
all its mail for root to my email address, and that's all. I don't want
it to receive any email or relay or anything else.

I set this up a few years back with postfix and now trying to recreate
this setup, I am running into the problem that the mail command isn't
installed. It obviously doesn't come with postfix and there appears to
be a huge choice of packages that I could choose from in the debian
repositories, but isn't there a default? My guess is that my hosting
service installed such a stripped-down version of lenny that I didn't
get it.

Any enlightenment gratefully received,

Adam


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmas...@lists.debian.org


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



RE: domain redirection how?

2010-01-05 Thread James Wu
There's two issues at play here.
 
1. DNS: I don't think you can CNAME a domain like that. For example, you
can't CNAME example.com but you can CNAME somehost.example.com. You have
to assign your domain the same A record as your other domain. Bind
should be spitting out errors if you try to CNAME like that. Check to
make sure that the domain is first resolving properly. I'd do something
like "dig @4.2.2.1 yourdomain.com". I use an outside DNS so that I can
see what results DNS servers are receiving when querying your server,
assuming your server is authoritative.
 
2. Virtual hosts: You need to modify your configuration of apache to add
the virtual host to be the same as the one you have.
 
Without either, it won't work. If you're still stuck and don't mind
giving us your two domains, it'll be easier to determine whether it's a
virtual host issue or a DNS issue.
 
James



From: Tudod Ki [mailto:tudodk...@yahoo.com] 
Sent: January 1, 2010 7:00 AM
To: Debian User
Subject: domain redirection how?


I want to redirect a domain: 

"somedomain.eu"

to:

"tothis.eu"

so I edit the "somedomain.eu.hosts" file with vim [appending this two
line to the end]:

$ORIGIN eu.
somedomain  IN  CNAME   tothis.eu.


then I update the serial, save the file, quit, then:


rndc reload somedomain.eu


but it still doesn't work.
how could I redirect the domain with "$ORIGIN"?

do I have to enable something in apache [e.g.: enable the redirection]?

both domain is mine [on this server]

versions:

apache 1.3.34-4.1 
bind9  9.3.4-2etch3

os: Debian Etch

Thank you! :)

Or any docs/howtos please?



RE: DNS round robin with NFS

2010-01-01 Thread James Wu
I've never tried this but I assume it should be possible to use DNS to do basic 
round-robining. All you need to do is have 3 A records for the same hostname.

James

-Original Message-
From: Mag Gam [mailto:magaw...@gmail.com]
Sent: Fri 1/1/2010 5:32 PM
To: debian-user
Subject: DNS round robin with NFS
 
I have 3 NFS servers which are serving the same exact data - ISO images.

I have close to 50 clients who access this data so I manually mount up
1/3 clients to serverA, 1/3 clients to serverB, and the remainder to
serverC.

I was wondering if I can place the 3 NFS server in a pool and have all
the clients access the pool.

Any thoughts?
TIA


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




RE: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen

2009-12-31 Thread James Wu
Google pointed me to these, I think it's worth a try.

https://bugzilla.redhat.com/show_bug.cgi?id=462425#c80
http://forums.fedoraforum.org/showthread.php?t=213585


James


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



RE: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen

2009-12-31 Thread James Wu
>It sometimes fails, and my keyboard becomes unresponsive. It seems to
be related to 
>something which is the output of my dmesg:
>`exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen'

I'm wondering if it's a hard lock or a keyboard lock. Does the mouse
work when you move it around? Is it only when X is running? What
graphics card/driver to you have? Have you tried plugging in a USB
keyboard and unplugging your ps2 once it locks?

James


-Original Message-
From: robo...@news.nic.it [mailto:robo...@news.nic.it] On Behalf Of
Merciadri Luca
Sent: December 31, 2009 3:50 AM
To: debian-user@lists.debian.org
Subject: Re: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen

Unfortunately, I am using a PS/2 KB. I tried unplugging *all* the USB
stuff (thus using a mere config), and the same problem still happens. I
am not using a very complexe hardware config. I do not understand this
problem.

Thanks.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



RE: Configure Lenny client respond to snmp queries

2009-12-23 Thread James Wu
You probably want snmpd as the package to install for the machine to
query from. Snmp as the package to install to make these queries. 

I suggest you get very familiar with the snmpd.conf. It is quite useful
and extensible. You can pretty much interface any local script with it
to make it query things that normally aren't queryable with snmp. For
instance, I use it to monitor my mail queues, rejections, etc.

A quick google search led me to this article, might be useful to you.
http://www.debianhelp.co.uk/snmp.htm

-Original Message-
From: vr [mailto:debian-u...@iotk.net] 
Sent: December 23, 2009 9:01 AM
To: debian-user@lists.debian.org
Subject: Configure Lenny client respond to snmp queries

Hello list,

I tried to get a lenny based box to respond to snmp queries a few months
ago but failed. This time around I am using a VirtualBox with
netinst-x86 lenny installed as my "client". The system that I will have
poll lenny is using Cacti (but does not have too).

Upon issuing "aptitude search snmp" I get 43 results back. After
Internet searching for a bit I'm finding what appears to be somewhat
dated documentation for setting up snmp. My questions; does anyone have
any pointers to current doc they've used that covers what I'm trying to
do? And which snmp package would you recommend for someone just getting
started with snmp?


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmas...@lists.debian.org


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



RE: Monitor file system free space

2009-12-22 Thread James Wu
I'm not sure what the scope of the discussion is (ie: mail server for
personal use vs. a company mail server) so what I do might be overkill
for you if you run a home server.

Anyways, I run net-snmpd to pull system information which I then use
nagios to check. If disk usage goes above a certain threshold for a
certain partition, Nagios can send me emails and sms's. If anyone needs
more details as to exactly what I do, I can post more details.

Following the discussion below, a simple bash script can email you the
current usage of the disk space (take out the awk portion if you want to
see the whole line). If you want more logic, it shouldn't be hard to
modify what I have below to email you only when disk used > certain
size.

#!/bin/bash
df -h | head -n 2 | tail -n 1 | awk '{print $4}' | mail -s "Mail server"
REMOTE email address


-Original Message-
From: David Baron [mailto:d_ba...@012.net.il] 
Sent: December 22, 2009 11:07 AM
To: debian-user@lists.debian.org
Subject: Re: Monitor file system free space

On Tuesday 22 December 2009 17:25:55 debian-user-digest-
requ...@lists.debian.org wrote:
> > I had a problem with my (small) disk filling up and crashing my mail

> > server.  So, I wrote a simple perl script to take the output of 'df
-h'
> > and look for a % full that is greater than 97% and send me an e-mail

> > if the % is greater than 97.  I run the script daily from crontab.  
> > It works fine.
> >
> > Yesterday I downloaded an iso image (which brought the file system 
> > fill from 93% to 100% so that the mail server could not send me the 
> > e-mail warning.  Is there another way to approach this problem (a 
> > different tool?)so that I can be notified BEFORE the file system is
too full?
> 
> If your mail server is important ( ;-) ), put your mails and/or all of

> /var on a separate partition, maybe with quotas.
> 
> Do the same for /home.
> 

As I have had those mouse syslogs filling up /var which cripples
anything that touches logs, mail, runs, pids, in other words,
everything. So a monitor like this would be very useful. The monitor
would need to check partitions in a conf file and then take action if
any are filled. In the case of /var, messaging, mailing, most anything
will not work unless I set the limit low enough. But that's the whole
point.

Maybe post your perl.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmas...@lists.debian.org


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org