Problem with setting up a networking interface

2008-06-02 Thread Pete Kay
Hi,

I am trying to setup a new linux box for xen. Here is my setup

Lan ( 192.168.1.1) connecting to 5 computers.  The one I am setting up the
new linux has Lan IP (192.168.1.105).
I want to set it up so that this 192.168.1.105 computer can run Xen with 2
domU.   I try to set it up so that dom0 has ip 192.168.0.100 and the rest of
domUs have 192.168.0.101 and 192.168.0.102

After modifying the interfaces file, as shown below, I am able to restart
networking ( /etc/init.d/networking restart).  console does say
"reconfiguring network interfaces...don."
However, I am still not able to ping a public IP address.

Could someone tell me what have I done wrong?


# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian
installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1


Thank you very much for all your help.

Pete


Re: problem occurs after upgrading to lenny

2008-05-16 Thread Pete Kay
Hi,

Thank you for all your your help.

I followed the step-by-step instruction and my Lenny is working!

Thanks,
Pete


Re: problem occurs after upgrading to lenny

2008-05-16 Thread Pete Kay
Hi,

I am having problem apt-get install even after attempting to install
exim4-base.
Here is the error:

ser:/home/anne# apt-get install exim4-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
exim4-base is already the newest version.
The following packages were automatically installed and are no longer
required:
  libpci2 libgail17 libgcj7-0 type-handling libsoup2.2-8 libwnck18
  libpoppler0c2 libdirectfb-0.9-25 libeel2-2.14 libiw28 libgucharmap4
  libmyspell3c2 libsnmp9 mkisofs libavahi-core4
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 49 not upgraded.
5 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up exim4-daemon-light (4.69-2+b1) ...
Starting MTA:exim: incompatible command-line options or arguments
invoke-rc.d: initscript exim4, action "start" failed.
dpkg: error processing exim4-daemon-light (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of at:
 at depends on mail-transport-agent; however:
  Package mail-transport-agent is not installed.
  Package exim4-daemon-light which provides mail-transport-agent is not
configured yet.
dpkg: error processing at (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of exim4:
 exim4 depends on exim4-daemon-light | exim4-daemon-heavy |
exim4-daemon-custom; however:
  Package exim4-daemon-light is not configured yet.
  Package exim4-daemon-heavy is not installed.
  Package exim4-daemon-custom is not installed.
dpkg: error processing exim4 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bsd-mailx:
 bsd-mailx depends on exim4 | mail-transport-agent; however:
  Package exim4 is not configured yet.
  Package mail-transport-agent is not installed.
  Package exim4-daemon-light which provides mail-transport-agent is not
configured yet.
dpkg: error processing bsd-mailx (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mailx:
 mailx depends on bsd-mailx; however:
  Package bsd-mailx is not configured yet.
dpkg: error processing mailx (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 exim4-daemon-light
 at
 exim4
 bsd-mailx
 mailx
E: Sub-process /usr/bin/dpkg returned an error code (1)
ser:/home/anne#

Is the new Lenny ready?  If so, how do I update my os?

Thanks,
Pete


On Tue, May 13, 2008 at 1:51 AM, Florian Kulzer <
[EMAIL PROTECTED] <[EMAIL PROTECTED]>> wrote:

> On Mon, May 12, 2008 at 08:55:49 +0800, Pete Kay wrote:
> > Hi,
> >
> > I tried to upgrade to Lenny because Lenny has the latest Lua 5.3 version,
> > but after I did the upgrade, not only Lua 5.3 is not installed, but
> apt-get
> > starting to pop up errors every time I use it:
>
> [...]
>
> > Setting up exim4-daemon-light (4.69-2+b1) ...
> > Starting MTA:exim: incompatible command-line options or arguments
> > invoke-rc.d: initscript exim4, action "start" failed.
> > dpkg: error processing exim4-daemon-light (--configure):
> >  subprocess post-installation script returned error exit status 1
>
> [...]
>
> This is a known problem with Lenny right now:
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476987
> http://lists.debian.org/debian-user/2008/05/msg00473.html
>
> It is fixed in Sid, but the corrected package cannot propagate to Lenny
> at the moment. (This is related to perl, on which exim4-daemon-heavy
> depends.)
>
> http://packages.qa.debian.org/e/exim4.html
> http://release.debian.org/migration/testing.pl?package=exim4
>
> I think that installing the Sid version of exim4-base is the quickest
> and easiest fix for Lenny users in the present situation.
>
> --
> Regards,| http://users.icfo.es/Florian.Kulzer
>  Florian   |
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
>
>


problem occurs after upgrading to lenny

2008-05-11 Thread Pete Kay
Hi,

I tried to upgrade to Lenny because Lenny has the latest Lua 5.3 version,
but after I did the upgrade, not only Lua 5.3 is not installed, but apt-get
starting to pop up errors every time I use it:

ser:/home/anne# apt-get install lua50
Reading package lists... Done
Building dependency tree
Reading state information... Done
lua50 is already the newest version.
The following packages were automatically installed and are no longer
required:
  libpci2 libgail17 libgcj7-0 type-handling libsoup2.2-8 libwnck18
  libpoppler0c2 libdirectfb-0.9-25 libeel2-2.14 libiw28 libgucharmap4
  libmyspell3c2 libsnmp9 mkisofs libavahi-core4
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up exim4-daemon-light (4.69-2+b1) ...
Starting MTA:exim: incompatible command-line options or arguments
invoke-rc.d: initscript exim4, action "start" failed.
dpkg: error processing exim4-daemon-light (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of at:
 at depends on mail-transport-agent; however:
  Package mail-transport-agent is not installed.
  Package exim4-daemon-light which provides mail-transport-agent is not
configured yet.
dpkg: error processing at (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of exim4:
 exim4 depends on exim4-daemon-light | exim4-daemon-heavy |
exim4-daemon-custom; however:
  Package exim4-daemon-light is not configured yet.
  Package exim4-daemon-heavy is not installed.
  Package exim4-daemon-custom is not installed.
dpkg: error processing exim4 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bsd-mailx:
 bsd-mailx depends on exim4 | mail-transport-agent; however:
  Package exim4 is not configured yet.
  Package mail-transport-agent is not installed.
  Package exim4-daemon-light which provides mail-transport-agent is not
configured yet.
dpkg: error processing bsd-mailx (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mailx:
 mailx depends on bsd-mailx; however:
  Package bsd-mailx is not configured yet.
dpkg: error processing mailx (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 exim4-daemon-light
 at
 exim4
 bsd-mailx
 mailx
E: Sub-process /usr/bin/dpkg returned an error code (1)
ser:/home/anne#


What is wrong?  How can I fix this?

Thanks
Pete


hostname question

2008-05-11 Thread Pete Kay
Hi,

I am currently having 3 servers in the lan which is using dynamic IP
addresses.  Each time the router is rebooted, I have to reconfigure all the
db ips and server ips.

Therefore, I want to assign host name to each machine such as "db" , "ser"
etc, so that I don't use 192.168.x.x in my configure anymore.

Is this something that can be done?  Could someone please give me some
pointer on how to do it?

Thanks,
Pete


Re: Question on setting up NFS

2008-04-21 Thread Pete Kay
Hi Owen:

Here is the output of running the 4 commands:

ser:# showmount -e 192.168.1.101
Export list for 192.168.1.101:
/var/fs 127.0.0.1,192.168.1.104
ser:# mount -v 192.168.1.101:/var/fs /mnt/nfs
mount: no type was given - I'll assume nfs because of the colon
mount: wrong fs type, bad option, bad superblock on 192.168.1.101:/var/fs,
   missing codepage or helper program, or other error
   (for several filesystems (e.g. nfs, cifs) you might
   need a /sbin/mount. helper program)
   In some cases useful info is found in syslog - try
   dmesg | tail  or so

ser:# mount -vt nfs -o nolock 192.168.1.101:/var/fs /mnt/nfs
mount: wrong fs type, bad option, bad superblock on 192.168.1.101:/var/fs,
   missing codepage or helper program, or other error
   (for several filesystems (e.g. nfs, cifs) you might
   need a /sbin/mount. helper program)
   In some cases useful info is found in syslog - try
   dmesg | tail  or so

ser:# mount -vt nfs4 192.168.1.101:/var/fs /mnt/nfs
mount: wrong fs type, bad option, bad superblock on 192.168.1.101:/var/fs,
   missing codepage or helper program, or other error
   (for several filesystems (e.g. nfs, cifs) you might
   need a /sbin/mount. helper program)
   In some cases useful info is found in syslog - try
   dmesg | tail  or so

ser:#


Re: Question on setting up NFS

2008-04-21 Thread Pete Kay
Hi Owen,

Thank you so much for your guidance.  Based on your instruction, I found out
the following:

1. /sbin/mount.nfs does not exist in the client machine and server machine
2. I can mount locally on the server machine with no problem.

What could have gone wrong?

Thanks,
Pete

On Mon, Apr 21, 2008 at 8:41 PM, Owen Townend <[EMAIL PROTECTED]>
wrote:

>
>
> On 21/04/2008, Pete Kay <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > Here is the result for the two commands:
> >
> > ser:# dmesg |tail
> > EXT3 FS on hda1, internal journal
> > loop: loaded (max 8 devices)
> > device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised:
> > [EMAIL PROTECTED]
> > NET: Registered protocol family 10
> > lo: Disabled Privacy Extensions
> > IPv6 over IPv4 tunneling driver
> > ACPI: Power Button (FF) [PWRF]
> > ACPI: Power Button (CM) [PWRB]
> > lp0: using parport0 (interrupt-driven).
> > ppdev: user-space parallel port driver
> >
> > ser:# apt-get install nfs-common
> > Reading package lists... Done
> > Building dependency tree
> > Reading state information... Done
> > nfs-common is already the newest version.
> > 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
> >
> > I think the nfs-common is already installed...
> >
> >
> >
> > Pete
> >
>
> Hey,
>   Looks ok so far, more things to check:
>   Does /sbin/mount.nfs exist?
>   if you add/change the server line to
> /var/fs 127.0.0.1(rw,sync)
>   and re-export can you mount this locally on the server?
> debian:# mount localhost:/var/fs /mnt
>
>   Also, in your initial email, either the output of `exportfs`
> was truncated or the export isn't working as it should be
> listed in the output. Try reloading and/or restarting the
> nfs-server:
> debian:# invoke-rc.d nfs-kernel-server reload
> (or nfs-user-server)
>
> cheers,
> Owen.
>
>


Re: Question on setting up NFS

2008-04-21 Thread Pete Kay
Hi,

Here is the result for the two commands:

ser:# dmesg |tail
EXT3 FS on hda1, internal journal
loop: loaded (max 8 devices)
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised:
[EMAIL PROTECTED]
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
ACPI: Power Button (FF) [PWRF]
ACPI: Power Button (CM) [PWRB]
lp0: using parport0 (interrupt-driven).
ppdev: user-space parallel port driver

ser:# apt-get install nfs-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
nfs-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

I think the nfs-common is already installed...



Pete


On Mon, Apr 21, 2008 at 8:06 PM, Owen Townend <[EMAIL PROTECTED]>
wrote:

>
>
> On 21/04/2008, Pete Kay <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > If I execute the command, I still get error:
> >
> > ser:# mount -t nfs 192.168.1.101:/var/fs /mnt/nfs/fs
> > mount: wrong fs type, bad option, bad superblock on 192.168.1.101:
> > /var/fs,
> >missing codepage or helper program, or other error
> >(for several filesystems (e.g. nfs, cifs) you might
> >need a /sbin/mount. helper program)
> >In some cases useful info is found in syslog - try
> >dmesg | tail  or so
> >
> >
> > I can't figure out where.
> >
> > Thank you in advance for all your help.
> >
> > Regards,
> > Pete
>
>
> Hey,
>   Does dmesg|tail have anything relevant?
>   Do you have the nfs-common package installed?
>
> cheers,
> Owen.
>
>


Re: Question on setting up NFS

2008-04-21 Thread Pete Kay
Hi,

If I execute the command, I still get error:

ser:# mount -t nfs 192.168.1.101:/var/fs /mnt/nfs/fs
mount: wrong fs type, bad option, bad superblock on 192.168.1.101:/var/fs,
   missing codepage or helper program, or other error
   (for several filesystems (e.g. nfs, cifs) you might
   need a /sbin/mount. helper program)
   In some cases useful info is found in syslog - try
   dmesg | tail  or so


I can't figure out where.

Thank you in advance for all your help.

Regards,
Pete


On Mon, Apr 21, 2008 at 3:14 PM, Owen Townend <[EMAIL PROTECTED]>
wrote:

>
> [snip
> On 21/04/2008, Pete Kay <[EMAIL PROTECTED]> wrote:
>
> > ser:# mount 192.168.1.101:/var/fs /mnt/nfs
> > mount: wrong fs type, bad option, bad superblock on 192.168.1.101:
> > /var/fs,
> >missing codepage or helper program, or other error
> >(for several filesystems (e.g. nfs, cifs) you might
> >need a /sbin/mount. helper program)
> >In some cases useful info is found in syslog - try
> >dmesg | tail  or so
> >
> > [snip]
> > Any inputs will be greatly appreciated.
> >
> >
> > Regards,
> > Pete
> >
> >
> Hey,
>   Does it still give the error if you explicitly give the type?:
> ser:# mount -t nfs 192.168.1.101:/var/fs /mnt/nfs
>
> cheers,
> Owen.
>


Question on setting up NFS

2008-04-21 Thread Pete Kay
Hi,

I am trying to map the directory /var/fs at remote server ( 192.168.1.101)
to local directory /mnt/nfs/fs

It is giving me the following error.  How come?  I am following the
procedure at http://www.debianhelp.co.uk/nfs.htm


ser:# mount 192.168.1.101:/var/fs /mnt/nfs
mount: wrong fs type, bad option, bad superblock on 192.168.1.101:/var/fs,
   missing codepage or helper program, or other error
   (for several filesystems (e.g. nfs, cifs) you might
   need a /sbin/mount. helper program)
   In some cases useful info is found in syslog - try
   dmesg | tail  or so




In NFS server, I have /etc/exports:

/var/fs 192.168.1.104(rw,sync)


When running exportfs, I am getting

debian:/home/anne# exportfs -a
exportfs: /etc/exports [2]: Neither 'subtree_check' or 'no_subtree_check'
speci$
  Assuming default behaviour ('subtree_check').
  NOTE: this default will change with nfs-utils version 1.1.0
debian:/home/anne#


Any inputs will be greatly appreciated.


Regards,
Pete


Re: having problem with install unixodbc on debian

2008-04-19 Thread Pete Kay
Hi Andrei,

Thanks alot.  I apt-get purge the libmyodbc and then install it again and it
is working now.

Thanks alot for your help.

Regards,
Pete

On Sat, Apr 19, 2008 at 5:20 PM, Andrei Popescu <[EMAIL PROTECTED]>
wrote:

> On Sat, Apr 19, 2008 at 04:49:58PM +0800, Pete Kay wrote:
> > Dear all,
> >
> > I am trying to get unixodbc installed on debian without success.
> >
> > I followed the instruction exactly from
> > http://www.debian-administration.org/articles/496
>
> Did you also read the comments? There is a mention of a similar error.
>
> > When I try to connect, it keeps giving me error:
> > ser:/usr/local/freeswitch/scripts# isql -v fsdb
> > [01000][unixODBC][Driver Manager]Can't open lib '/usr/lib/odbc/
> > libmyodbc3_r-3.51.11.so' : /usr/lib/odbc/libmyodbc3_r-3.51.11.so: cannot
> > open shared object file: No such file or directory
> > [ISQL]ERROR: Could not SQLConnect
> >
> > It says the driver is missing even after I do "apt-get install
> libmyodbc".
> > I tried apt-get remove and apt-get install a few times, no luck as well.
> >
> > when I do "locate libmyodbc", no result returns.  So, I think the driver
> is
> > not there, but I don't know how to install the driver.
>
> locate uses a database which is recreated usually once per night. Either
> you run 'updatedb' as root or use 'find' for new stuff. If you know the
> exact location 'ls' is much easier. Try this:
>
> ls /usr/lib/odbc/libmyodbc*
>
> 'dpkg -l libmyodbc' will also show you if dpkg *thinks* the package is
> installed correctly (dpkg should also be correct about it unless you
> messed with the package behind its back).
>
> HTH,
> Andrei
> --
> If you can't explain it simply, you don't understand it well enough.
> (Albert Einstein)
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFICblvqJyztHCFm9kRAuwzAJ9EGPP0J3YzuD+upxVO96BL0ZVOZwCglgyT
> 2vUymrKsx2R1AjjxG+Yuqbs=
> =YuVa
> -END PGP SIGNATURE-
>
>


having problem with install unixodbc on debian

2008-04-19 Thread Pete Kay
Dear all,

I am trying to get unixodbc installed on debian without success.

I followed the instruction exactly from
http://www.debian-administration.org/articles/496


When I try to connect, it keeps giving me error:
ser:/usr/local/freeswitch/scripts# isql -v fsdb
[01000][unixODBC][Driver Manager]Can't open lib '/usr/lib/odbc/
libmyodbc3_r-3.51.11.so' : /usr/lib/odbc/libmyodbc3_r-3.51.11.so: cannot
open shared object file: No such file or directory
[ISQL]ERROR: Could not SQLConnect

It says the driver is missing even after I do "apt-get install libmyodbc".
I tried apt-get remove and apt-get install a few times, no luck as well.

when I do "locate libmyodbc", no result returns.  So, I think the driver is
not there, but I don't know how to install the driver.

Please kindly give me some ideas as to what I did wrong?

Thanks alot in advance for your inputs.

Regards,
Pete


looking for a light-weight pin-yin input in any

2008-04-18 Thread Pete Kay
Hi,

I just need to create a few text file in Chinese using pinyin as the input
method.  I tried scim but it almost destroyed me Debian and I think it is
too heavy for me to just create a few text files in Chinese.

Does anyone have a better suggestion for a simple pin-yin input tool?

Thanks alot for your input.

Regards,
Pete


urgently need help with Debian can't started

2008-04-18 Thread Pete Kay
Hi,

After I installed scim-pinyin, I rebooted the server and I can't bring up
Debian X-window anymore.  It does request for the username and password, but
then it just hangs there in the screen, and does not go to the main window.


I can reboot to get to command prompt.  Can anyone tell me if there is a way
I can restore my X-window using some apt-get install "package"?
How to do that?  There are many information in the machine that I don't want
to lose.

Thanks for your help.

Regards,
Pete


Question about debian vserver

2008-04-10 Thread Pete Kay
Hi all,

I have a question for Debian vserver.  Let's say I have web server on one
Debian guest system and db on another Debian guest system.  How do I have
the different applications to listen on the different ports?  How would
someone from the Internet be able to access the web server via the internal
IP address?  How does the applications within two guest systems communicate
with each other ( via internal IP or ?)?

Thank you very much for your input.

Thanks,
Pete


Re: Need to reboot Debian frequently

2008-04-04 Thread Pete Kay
Hi,

Here is my w,free, top results when my linux server's network become too
slow again ( it just happened).

w output:
 19:41:19 up 1 day, 20:07,  6 users,  load average: 1.46, 1.85, 1.86
USER TTY  FROM  LOGIN@   IDLE   JCPU   PCPU WHAT
anne :0   -Thu23   ?xdm?  26:59   0.87s
x-session-manag
root pts/2:0.0 Thu23   19:28  56.31s 56.29s asterisk
-v
root pts/3:0.0 Fri20   10:18   0.42s  0.42s bash
root pts/4:0.0 Fri210.00s  0.80s  0.00s w
root pts/5:0.0 Fri01   24:43   0.00s  0.00s bash
root pts/6:0.0 Fri01   20:02   0.04s  0.04s bash

free output:
 total   used   free sharedbuffers cached
Mem:   10284921009284  19208  0   4700 649756
-/+ buffers/cache: 354828 673664
Swap:  2650684 1235322527152

top output:
top - 19:41:37 up 1 day, 20:08,  6 users,  load average: 1.33, 1.80, 1.84
Tasks: 140 total,   3 running, 134 sleeping,   3 stopped,   0 zombie
Cpu(s): 32.2%us, 29.0%sy,  0.0%ni, 37.1%id,  1.7%wa,  0.0%hi,  0.0%si,
0.0%st
Mem:   1028492k total,  1011888k used,16604k free, 4724k buffers
Swap:  2650684k total,   123532k used,  2527152k free,   652132k cached

  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
 4292 root  25   0 15808 1004  856 R   98  0.1   1441:12 notify.php
 6623 anne  15   0  337m 145m  26m S   24 14.5 169:28.67 firefox-bin
 5574 anne  15   0 67260  17m  11m S0  1.8   0:08.40 nautilus
 5550 root  15   0  2228 1168  856 R0  0.1   0:00.07 top
1 root  15   0  1944  504  476 S0  0.0   0:01.27 init
2 root  RT   0 000 S0  0.0   0:00.01 migration/0
3 root  34  19 000 S0  0.0   0:00.00 ksoftirqd/0
4 root  RT   0 000 S0  0.0   0:00.00 migration/1
5 root  34  19 000 S0  0.0   0:00.00 ksoftirqd/1
6 root  10  -5 000 S0  0.0   0:00.68 events/0
7 root  10  -5 000 S0  0.0   0:00.01 events/1
8 root  10  -5 000 S0  0.0   0:00.00 khelper
9 root  10  -5 000 S0  0.0   0:00.00 kthread
   13 root  10  -5 000 S0  0.0   0:00.04 kblockd/0
   14 root  19  -5 000 S0  0.0   0:00.00 kblockd/1
   15 root  15  -5 000 S0  0.0   0:00.00 kacpid
  111 root  10  -5 000 S0  0.0   0:00.00 kseriod


For the tcpdump, I have to apt-get install it first and then wait under the
server's network becomes too slow again the next
 time.
By the way, when the network becomes slow, the linux server can still run
fine without any slowness.  This Linux box is behind a router which has two
computers ( one linux and one vista ) under its network.

How could I solve this problem?  What worries me is that I am consistently
having to reboot 2 - 3 days which means my server is still not ready for
production.

Please help me.

Thanks,
Pete


Question about Email-to-Fax setup

2008-04-04 Thread Pete Kay
Dear all,
I am trying to following the procedure from postfix faq but I have problem
understanding how to do a few things specified:
1. How do advertise my fax.domain.com in the DNS?
2. I don't have /etc/postfix/transport file, do I just create it and add the
entry there?
3. I don't have main.cf in my Debian install, do I just simply create one
and add these two lines there?
4. How do I specifiy dbm or hash file?

Here is the faq answer, but I don't quite understand how to do it on
Debian.

/etc/postfix/master.cf:
fax   unix  -   n   n   -   1   pipe
flags= user=fax argv=/usr/bin/faxmail -d -n ${user}

/etc/postfix/transport:
fax.your.domain   fax:localhost

/etc/postfix/main.cf:
transport_maps = hash:/etc/postfix/transport
fax_destination_recipient_limit = 1

Specify *dbm* instead of *hash* if your system uses *dbm* files instead of *
db* files. To find out what map types Postfix supports, use the
command *postconf
-m*.

Note: be sure to not advertise *fax.your.domain* in the DNS

Thank you very much for your inputAny help will be greatly appreciated.

Thanks,

Pete


Need to reboot Debian frequently

2008-04-04 Thread Pete Kay
Hi
I am running debian on PC with 1G of memory.  Mostly it is running as
Asterisk server.
The problem is everyone once in a while ( after 2 -3 days ) , the Linux
server's network become so slow
that I need to reboot it.  After reboot, the network becomes normal again.

Can someone tell me what problem is it?  This is my test environment, but I
don't want the same thing to happen in our production server.  Therefore, I
am thinking whether Debian is suitable for production use.  The version of
Debian is 2.6.18

Please help me.

Thanks,
Pete


Question about cron job

2008-04-04 Thread Pete Kay
Hi,

Is there any utility that can help me to check the cron jobs that are
currently running under Linux?
If there is one, would you please kindly let me know?

Thanks,
Pete


Question about sendmail

2008-04-04 Thread Pete Kay
Dear all,

I am looking for a solution to perform specific tasks based on email
received.  So, when emails of specific Send-to address arrives to my mail
server, I would like to kick off certain scripts.  Can anyone tell me how to
do that?

Thanks alot in advance for all your suggestion.

Regards,
Pete


Having problem with recording voice

2008-03-17 Thread Pete Kay
Hi

I am able to get my debian running, but not to record audio.  I have tried
many different solutions without success.

The error I am getting is :

debian:/tmp# rec hello.wav
Send break (control-c) to end recording
sox: Can't open input file '/dev/dsp': Device or resource busy
debian:/tmp#

My amixer out is like this:

debian:/tmp# amixer
Simple mixer control 'Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 58 [91%]
  Front Right: Playback 58 [91%]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%]
  Front Right: Playback 255 [100%]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 31 [100%] [on]
  Front Right: Capture 31 [100%] [on]


Can anyone share with me how this problem can be resolved?

Thanks,
Pete