error compiling mplayer

2012-07-21 Thread David Banning
getting this error on compile of mplayer;

/usr/local/lib/libgdk-x11-2.0.so: undefined reference to 
`XRRGetScreenResourcesCurrent'
/usr/local/lib/libgdk-x11-2.0.so: undefined reference to `XRRGetOutputPrimary'
collect2: ld returned 1 exit status
gmake: *** [mplayer] Error 1
*** Error code 1

Stop in /usr/ports/multimedia/mplayer.
*** Error code 1

I wonder if anyone could direct me as to how I could collect more information
to resolve this.

FreeBSD version is 8.2 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


mod_rewrite problem with tilde

2012-07-13 Thread David Banning
I am migrating to a new server location which right now
has no domain name, so the ip address is being used.
The ISP gives an address for the apache directory like so;

http://184.154.230.2/~smartst2/

A simple redirect works, such as this one which directs to another
site;

Options +FollowSymLinks
rewriteEngine on
rewriteRule ^test\.html$ http://www.somesite.com/index.php [R=301,L]

but a redirect within the site does not work.  I wonder if it has to 
do with the tilde ~ character that the ISP has configured.

I presently have the following .htaccess;

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule   ^[^/]*\.php$  /
RewriteRule   ^[^/]*\.html$  index.php

Which does not work. If anyone is aware of problems using 
mod_rewrite with the ~ character or could contribute any pointers
as to how I could gain more information on - for instance -where-
mod_rewrite is -attempting- to redirect (considering my above 
.htaccess. 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ppp connection goes down - requires reboot

2012-07-12 Thread David Banning
Lately I have a problem where the ppp connection goes down. 
Watching the log I see the following;

Jul 12 09:54:58 3s1 ppp[30841]: tun0: Phase: deflink: Connected!
Jul 12 09:54:58 3s1 ppp[30841]: tun0: Phase: deflink: opening - dial
Jul 12 09:54:58 3s1 ppp[30841]: tun0: Phase: deflink: dial - carrier
Jul 12 09:55:12 3s1 ppp[31114]: Phase: Using interface: tun0
Jul 12 09:55:12 3s1 ppp[31114]: Phase: deflink: Created in closed state
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: disable ipv6cp
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set dial
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set login
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set ifaddr 
209.161.205.12 206.221.248.4
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set ifaddr 10.0.0.1/0 
10.0.0.2/0
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: add default HISADDR
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: nat enable yes
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set device PPPoE:fxp0
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set mru 1492
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set mtu 1492
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set authname [login was 
here]
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set authkey 
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set log Phase tun 
command
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: disable ipv6cp
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set dial
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set login
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set ifaddr 
209.161.205.12 206.221.248.4
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set ifaddr 10.0.0.1/0 
10.0.0.2/0
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: add default HISADDR
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: nat enable yes
Jul 12 09:55:12 3s1 ppp[31115]: tun0: Phase: PPP Started (ddial mode).
Jul 12 09:55:12 3s1 ppp[31115]: tun0: Phase: bundle: Establish
Jul 12 09:55:12 3s1 ppp[31115]: tun0: Phase: deflink: closed - opening
Jul 12 09:55:13 3s1 ppp[31115]: tun0: Phase: deflink: Connected!
Jul 12 09:55:13 3s1 ppp[31115]: tun0: Phase: deflink: opening - dial
Jul 12 09:55:13 3s1 ppp[31115]: tun0: Phase: deflink: dial - carrier
Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase: deflink: Disconnected!
Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase: deflink: carrier - hangup
Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase: deflink: Connect time: 5 secs: 0 
octets in, 0 octets out
Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase: deflink: 0 packets in, 0 packets 
out
Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase:  total 0 bytes/sec, peak 0 
bytes/sec on Thu Jul 12 09:55:13 2012
Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase: deflink: hangup - opening
Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase: deflink: Enter pause (30) for 
redialing.

I shutdown ppp and restart it with no luck.  I shutoff modem and 
reboot it and wait for connection light to go solid - still no go. 

I called ISP and they say there is no problem.
I try to login to the ISP with a windows box and am successful.

Having no luck connecting with my server, I reboot, and all is fine. 

What could it be about rebooting the server that allows connection
where otherwise it is not possible?

Any ideas where I can look for answers?

my ppp.conf follows;

default: # or name_of_service_provider
  set device PPPoE:fxp0 # replace xl1 with your ethernet device
  set mru 1492
  set mtu 1492
  set authname ***
  set authkey ***
  set log Phase tun command # you can add more detailed logging if you wish
  disable ipv6cp
  set dial
  set login
  set ifaddr 209.161.205.12 206.221.248.4
  set ifaddr 10.0.0.1/0 10.0.0.2/0
  add default HISADDR
  nat enable yes 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: problems with networking and route command

2012-05-18 Thread David Banning
  It is machines that connect and receive via DHCP 192.168.1.2 and above that
  can't connect to the internet though the server.  I don't know a whole
  lot about route - I have been attempting a variation of route commands
  without success.
 
 You need to implement NAT on this box, since 192.168.0.0/16 is an RFC-1918 
 unrouteable private network range.

I previously connected to the internet using ppp with the -nat option
and now my connection has changed - so that makes sense.

So I implemented natd.

Unfortunately natd does not work as yet.  I followed the setup as laid 
out in man natd and also used the layout in;

http://www.freebsddiary.org/ipfw.php

Here is my natd setup

1. Compiled IPFIREWALL  IPDIVERT into my kernel - went fine.

Here is my rc.conf network related entries;

natd_enable=YES
natd_interface=rl0
natd_flags=-f /etc/natd.conf
gateway_enable=YES
ifconfig_rl0=inet 64.40.244.36 netmask 255.255.255.240
defaultrouter=64.40.244.33
ifconfig_vr0=DHCP
ifconfig_vr0=up
ifconfig_vr0=inet 192.168.1.1
network_interfaces=rl0 vr0 lo0
ifconfig_lo0=inet 127.0.0.1
firewall_enable=YES
firewall_script=/etc/firewall.rules
firewall_type=simple
firewall_logging=YES
dhcpd_ifaces=vr0
dhcpd_enable=YES

My firewall rules;

ipfw add 64000 allow ip from any to any
ipfw add divert natd all from any to any via rl0
ipfw add allow tcp from any to 192.168.2.1 139
ipfw add allow tcp from any to 192.168.1.1 139
ipfw add 6000 deny tcp from any to 64.40.244.36 139
ipfw add 6010 deny tcp from any to 64.40.244.36 445
ipfw add deny tcp from any to any 139

My /etc/natd.conf;

interface rl0
use_sockets yes
same_ports yes

My /etc/services includes the line;

natd 8668/divert  # Network Address Translation socket

Output of ifconfig;

# ifconfig
fwe0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
ether 02:11:d8:b3:0e:43
ch 1 dma -1
vr0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet 192.168.1.1 netmask 0xff00 broadcast 192.168.1.255
inet6 fe80::16d6:4dff:fe47:88ae%vr0 prefixlen 64 scopeid 0x2 
ether 14:d6:4d:47:88:ae
media: Ethernet autoselect (100baseTX full-duplex)
status: active
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet 64.40.244.36 netmask 0xfff0 broadcast 64.40.244.47
inet6 fe80::211:95ff:fe66:7162%rl0 prefixlen 64 scopeid 0x3 
ether 00:11:95:66:71:62
media: Ethernet autoselect (100baseTX full-duplex)
status: active
lp0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 ::1 prefixlen 128 
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 
inet 127.0.0.1 netmask 0xff00 
ppp0: flags=8010POINTOPOINT,MULTICAST mtu 1500
sl0: flags=c010POINTOPOINT,LINK2,MULTICAST mtu 552
faith0: flags=8002BROADCAST,MULTICAST mtu 1500

From my initial communication I have swapped the uses of the two network
cards - which explains the reversal of entries for devices vr0 and rl0.
Still I have server connection to the internet on rl0 and server 
connection to the network on vr0 - but the network cannot connect 
to the internet via rl0.

If there are any commands that would help collect information leading
to the answer I would appreciate any feedback.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


problems with networking and route command

2012-05-16 Thread David Banning
I am having a problem getting users who get their dhcp from my
system to be able to connect to the internet.  On one network interface
my server can connect to the internet no problem - that's device vr0.

On another, rl0 - I have a connection to the local network - no problem
connecting to local machines from the server.  The problem is that
the local machines cannot access the internet through the FreeBSD
server. 

Here is the output of ifconfig;

fwe0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
ether 02:11:d8:b3:0e:43
ch 1 dma -1
vr0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet 64.40.244.36 netmask 0xfff0 broadcast 64.40.244.47
inet6 fe80::16d6:4dff:fe47:88ae%vr0 prefixlen 64 scopeid 0x2 
ether 14:d6:4d:47:88:ae
media: Ethernet autoselect (100baseTX full-duplex)
status: active
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet 192.168.1.1 netmask 0xff00 broadcast 192.168.1.255
inet6 fe80::211:95ff:fe66:7162%rl0 prefixlen 64 scopeid 0x3 
ether 00:11:95:66:71:62
media: Ethernet autoselect (100baseTX full-duplex)
status: active
lp0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 ::1 prefixlen 128 
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 
inet 127.0.0.1 netmask 0xff00 
ppp0: flags=8010POINTOPOINT,MULTICAST mtu 1500
sl0: flags=c010POINTOPOINT,LINK2,MULTICAST mtu 552
faith0: flags=8002BROADCAST,MULTICAST mtu 1500


And here is the ipv4 part output of netstat -nr

# netstat -nr
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default64.40.244.33   UGSc8 2365vr0
64.40.244.32/28link#2 UC  10vr0
64.40.244.33   00:0c:42:07:26:35  UHLW90vr0   1187
127.0.0.1  127.0.0.1  UH  761626lo0
192.168.1  link#3 UC  40rl0
192.168.1.16   link#3 UHLW2 2032rl0
192.168.1.40   00:1b:78:e6:c3:cc  UHLW0   31rl0   1189
192.168.1.101  00:07:e9:b9:50:98  UHLW412526rl0   1193
192.168.1.255  ff:ff:ff:ff:ff:ff  UHLWb   3  330rl0

It is machines that connect and receive via DHCP 192.168.1.2 and above that
can't connect to the internet though the server.  I don't know a whole
lot about route - I have been attempting a variation of route commands
without success.

If anyone by looking at my information can suggest a route command, or 
suggest a way to dig for more information on this it would be greatly 
appreciated.


lot about this
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


error: libm.so.4 needed by libspeex may conflict w libm.so.5

2012-05-08 Thread David Banning
while attempting to build and install mplayer under FreeBSD Release 8.2 I get 
the error;

/usr/local/bin/ld: warning: libm.so.4, needed by /usr/local/lib/libspeex.so, 
may conflict with libm.so.5
/usr/local/lib/libgdk-x11-2.0.so: undefined reference to 
`XRRGetScreenResourcesCurrent'
/usr/local/lib/libgdk-x11-2.0.so: undefined reference to `XRRGetOutputPrimary'
collect2: ld returned 1 exit status
gmake: *** [mplayer] Error 1

If it's libspeex / libm.so.4 that is causing the error (thats what it looks 
like to me)
I wonder how to find out what libspeex is being used for - or for that matter 
what 
libm.so.4 is needed for.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


mounting a hard drive via usb

2011-06-18 Thread David Banning
I am attempting to clone a drive by connecting the prospective copy
drive via usb. I've just recently upgraded to FBSD 8.2

Here is what I get when I insert the drive;

Jun 18 14:36:29 3s1 kernel: da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
Jun 18 14:36:29 3s1 kernel: da0:Fixed Direct Access SCSI-2 device
Jun 18 14:36:29 3s1 kernel: da0: 40.000MB/s transfers
Jun 18 14:36:29 3s1 kernel: da0: Attempt to query device size failed: NOT 
READY, Medium not present
Jun 18 14:36:29 3s1 kernel: (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 
0 0 0 0 0 0 0 0 0
Jun 18 14:36:29 3s1 kernel: (da0:umass-sim0:0:0:0): CAM status: SCSI Status 
Error
Jun 18 14:36:29 3s1 kernel: (da0:umass-sim0:0:0:0): SCSI status: Check Condition
Jun 18 14:36:29 3s1 kernel: (da0:umass-sim0:0:0:0): SCSI sense: NOT READY 
asc:3a,0 (Medium not present)
Jun 18 14:36:29 3s1 kernel: (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 
0 0 0 0 0 0 0 0 0
Jun 18 14:36:29 3s1 kernel: (da0:umass-sim0:0:0:0): CAM status: SCSI Status 
Error
Jun 18 14:36:29 3s1 kernel: (da0:umass-sim0:0:0:0): SCSI status: Check Condition
Jun 18 14:36:29 3s1 kernel: (da0:umass-sim0:0:0:0): SCSI sense: NOT READY 
asc:3a,0 (Medium not present)

I notice that the /dev/da0s1.. entries are gone now from my /dev directly
(maybe this is part of the upgrade to 8.2) so all I have in /dev is
/dev/da0

My first thought was using MAKEDEV but that is redundant now I understand.

I also read that mounting drives via usb have to be done with the -a msdosfs
option because they are seen as SCSI drives.

Wondering how I would go about mounting this drive - right now it's an old
FreeBSD drive which I just want to wipe.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mounting a hard drive via usb - solved

2011-06-18 Thread David Banning
As it turns out - my usb adapter was defective.  Once I used an 
operational adapter all the devices appeared and the disk works like a 
charm!


Thanks for your input.

On 6/18/2011 3:48 PM, Bernt Hansson wrote:

2011-06-18 20:53, David Banning skrev:

I am attempting to clone a drive by connecting the prospective copy
drive via usb. I've just recently upgraded to FBSD 8.2

Here is what I get when I insert the drive;

Jun 18 14:36:29 3s1 kernel: da0 at umass-sim0 bus 0 scbus0 target 0 
lun 0

Jun 18 14:36:29 3s1 kernel: da0:   Fixed Direct Access SCSI-2 device
Jun 18 14:36:29 3s1 kernel: da0: 40.000MB/s transfers
Jun 18 14:36:29 3s1 kernel: da0: Attempt to query device size failed: 
NOT READY, Medium not present
Jun 18 14:36:29 3s1 kernel: (da0:umass-sim0:0:0:0): READ 
CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0
Jun 18 14:36:29 3s1 kernel: (da0:umass-sim0:0:0:0): CAM status: SCSI 
Status Error
Jun 18 14:36:29 3s1 kernel: (da0:umass-sim0:0:0:0): SCSI status: 
Check Condition
Jun 18 14:36:29 3s1 kernel: (da0:umass-sim0:0:0:0): SCSI sense: NOT 
READY asc:3a,0 (Medium not present)
Jun 18 14:36:29 3s1 kernel: (da0:umass-sim0:0:0:0): READ 
CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0
Jun 18 14:36:29 3s1 kernel: (da0:umass-sim0:0:0:0): CAM status: SCSI 
Status Error
Jun 18 14:36:29 3s1 kernel: (da0:umass-sim0:0:0:0): SCSI status: 
Check Condition
Jun 18 14:36:29 3s1 kernel: (da0:umass-sim0:0:0:0): SCSI sense: NOT 
READY asc:3a,0 (Medium not present)


I notice that the /dev/da0s1.. entries are gone now from my /dev 
directly

(maybe this is part of the upgrade to 8.2) so all I have in /dev is
/dev/da0

My first thought was using MAKEDEV but that is redundant now I 
understand.


I also read that mounting drives via usb have to be done with the -a 
msdosfs

option because they are seen as SCSI drives.


Not really. I do something like mount -t filesystem /dev/da0 /mnt
Then I'll check /dev/da* and viola there is /dev/da0sX, you get an error
when trying to mount /dev/da0 Device not configured

I'm running FreeBSD 8.2-STABLE #0:

Wondering how I would go about mounting this drive - right now it's 
an old

FreeBSD drive which I just want to wipe.




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


copying hard drives

2011-06-10 Thread David Banning
I am interested in copying hard drives and would like some feedback.

1. I would like a way to take peoples windows -or- unix systems and
store each on portable hard drive as a single file - so that in the
end I have a large, say 2TB drive with a number of peoples operating
system backed up - that can later be restored.  

One concern I have is that the file saved is under a certain generic
standard - I don't want to be in a situation down the road where I
need to restore, but the required software to restore is defunct.
It would be nice to have the operating system on a stick - so I
could boot into the program from a clients computer, connect a large
drive, and backup their entire drive.

2. I'd like a simple way to copy - my FreeBSD system to another
drive - a clone so to speak - which I know dd can do - but I wonder
if there is a way to do this so that clone drive can be smaller that
the original. My thinking here is that I need to experiment with
changes but can't do it on a live system - hence the copy booted
from a separate machine.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ports problem in an old system ver 4.9

2011-05-26 Thread David Banning
I have an old FreeBSD 4.9 installation that I cannot upgrade.

I wanted to install something from the ports, but I am getting
this error on almost every port;

# make
===  Vulnerability check disabled, database not found
===  License check disabled, port has not defined LICENSE
===  Extracting for rsnapshot-1.3.1
/sbin/sha256: not found
*** Error code 127

Stop in /usr/ports/sysutils/rsnapshot.


Wondering if anyone has an idea where to look.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: forwarding ssh

2010-08-08 Thread David Banning
 Thanks for that Steven. Connecting this way is only a deviation from 
the usually connection  we use.  I have several users you have X-win32 
configured on their laptops on the road.  I was hoping to make this 
change invisible to each existing user and their setup since we will be 
going back to the previous direct X-Win32 ssh connection soon.  I'll 
look at the -R option that you mentioned which I was not aware of.


On 8/7/2010 8:27 PM, Steven Susbauer wrote:

On 08/07/10 16:23, David Banning wrote:

I presently am using Putty and X-Win32 and I am connecting to a remote
machine successfully.

I now need to connect using SSH over the internet -through- one machine,
but have my SSH with a second machine on the same site - something like
so;

ssh-site1 --(internet)---  site2-(also 192.168.1.1)--  
loc2-(192.168.1.50)


I need to bridge the connection from 192.168.1.1 to 192.168.1.50
so I've tried in ipnat;



If I hear you right, you're trying to connect to site2 over the 
internet, and also connect to loc2 through the connection on site2.


SSH can create a tunnel itself. You could use something like:
   'ssh -L 2200:loc2:22 u...@site2'

This would connect you to a shell on site2. Then on your machine open 
another terminal and type:
'ssh -p 2200 u...@localhost' which would connect to loc2 port 22 using 
the connection on site2. If you try to close the connection to site2, 
it won't work since you're still connected to loc2.


ssh also supports forwarding a port on the remote server using -R, but 
I'm led to believe you are trying to limit the connections that get 
through the site2 to loc2 and -L requires you (or someone else) to be 
on local system.


In putty this same feature is configured under Connection  SSH  
Tunnels.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


forwarding ssh

2010-08-07 Thread David Banning
I presently am using Putty and X-Win32 and I am connecting to a remote
machine successfully.

I now need to connect using SSH over the internet -through- one machine,
but have my SSH with a second machine on the same site - something like
so;

ssh-site1 --(internet)--- site2-(also 192.168.1.1)-- loc2-(192.168.1.50)

I need to bridge the connection from 192.168.1.1 to 192.168.1.50
so I've tried in ipnat;

rdr tun0 0/0 port 22 - 192.168.1.50 port 22

which does not appear to work, but I am not that familiar with ipnat - I
use it to forward port 80 through squid but otherwise have not used it.

I wonder if anyone could give me some direction.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


speed test in ports?

2010-01-11 Thread David Banning
I wonder if there is something in the ports that tests my DSL speed. 
I am guessing that if I installed firefox3 and then installed flash
or Java then I could go to speedtest.net, but I wonder if there is 
a simpler solution.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: speed test in ports?

2010-01-11 Thread David Banning



You don't need ports for thatJust use fetch(1) and grab an ISO of
a DVD (or even a CD) from somewhere. Eg, a debian DVD image or freebsd
image or whatever. A lot of ISPs boost the first x MB of a transfer to
give the illusion that you can download faster when doing speed tests
(since speed tests only transfer a small amount of data). Comcast's
PowerBoost is a perfect example of this. So if you get something
bigger, you can monitor the speed of the download and get your speed
test that way.

If you really want to be accurate, you can do the test several times
using mirrors in various geographical areas as well to get a better
overall idea of your available bandwidth.
  
This method works for me - what about testing upload?  I am guessing the 
best way might be to login into another server and fetch from my server?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


client control of sendmail

2009-07-08 Thread David Banning
I have several users who are requesting new mail user accounts and
changes to email accounts all the time. I wonder if there is a package
that allows a given virtual domain owner to change their email accounts -
add, delete and change passwords etc - I am presently using sendmail.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


libc.so.6: ELF file OS ABI invalid

2009-04-07 Thread David Banning
I get this error when I attempt to run acroread8;

/compat/linux/bin/sh: error while loading shared libraries: 
/usr/local/lib/libc.so.6: ELF file OS ABI invalid

I get the impression maybe acroread is attempting run a linux binary
using a freebsd library - but I am not sure if this is so, or how to fix
it. Any pointers would be appreciated.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: libc.so.6: ELF file OS ABI invalid

2009-04-07 Thread David Banning

Boris Samorodov wrote:

On Tue, 7 Apr 2009 12:18:30 -0400 David Banning wrote:

  

I get this error when I attempt to run acroread8;



  

/compat/linux/bin/sh: error while loading shared libraries: 
/usr/local/lib/libc.so.6: ELF file OS ABI invalid



  

I get the impression maybe acroread is attempting run a linux binary
using a freebsd library - but I am not sure if this is so, or how to fix
it. Any pointers would be appreciated.



If you install it from ports/packages that definitely shouldn't happen.
Do you have some non-default environment like LD_LIBRARY_PATH?
You may use ktrace/kdump to diagnose the problem.
  
ktrace/kdump appear to show an attempted access of libc.so.6 first from 
/usr/lib and then from /usr/lib/compat as well as some other lib 
directories.


There is not such a file in any of those directories. I have attempted 
to run ldconfig -R to rescan the directory and rebuild the hints file, 
but I am going astray here...


the linux version of libc.so.6 -is- located in /usr/compat/linux/lib 
where is does not appear to look.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: libc.so.6: ELF file OS ABI invalid

2009-04-07 Thread David Banning

Tim Judd wrote:
On Tue, Apr 7, 2009 at 10:18 AM, David Banning 
david+dated+1239553110.eb1...@skytracker.ca 
mailto:david%2bdated%2b1239553110.eb1...@skytracker.ca wrote:


I get this error when I attempt to run acroread8;

/compat/linux/bin/sh: error while loading shared libraries:
/usr/local/lib/libc.so.6: ELF file OS ABI invalid

I get the impression maybe acroread is attempting run a linux binary
using a freebsd library - but I am not sure if this is so, or how
to fix
it. Any pointers would be appreciated.


This looks like a Linux ELF file branding problem.

google://linux+elf+branding


but /usr/local/lib/libc.so.6 is the freebsd library, which it -is- branded;

# /usr/local/lib
# brandelf libc.so.6
File 'libc.so.6' is of brand 'FreeBSD' (9)

Acroread probably needs   /usr/compat/linux/lib/libc.so.6
if it is running as linux  - acroread itself is a shell script. My
thought is now to locate the binary that is executed and see
what it is brandelf'd as, but when I study the acroread script
I cannot appear to find a binary referenced.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: libc.so.6: ELF file OS ABI invalid

2009-04-07 Thread David Banning



You shoudn't see it with native ktrace.

Seems that you rewrote your linux(?) ldconfig database. It's not so hard
to restore. Remove /compat/linux/etc/ld.so.cache and rebuild it by
sudo /compat/linux/sbin/ldconfig -r /compat/linux.


  

That worked. Thanks Boris.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


problem redirecting with ipnat

2009-04-02 Thread David Banning
I am attempting to route local and external traffic to a second machine
on port 85 to apache. 

The redirection works for external traffic coming in but I cannot seem
to redirect local traffic to the secondary machine.

Here are my ipnat rules;

rdr fxp0 0/0 port 85 - 192.168.1.10 port 85
rdr tun0 0/0 port 85 - 192.168.1.10 port 85
rdr dc0 0/0 port 80 - 192.168.1.1 port 8180

where 192.168.1.1 is the local machine and 192.168.1.10 is the 
secondary machine

the third ipnat entry simply redirects all outgoing browser traffic to 
squid/dansguardian

Here is my ifconfig;

[r...@3s1 /etc]# ifconfig
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
inet 209.161.205.12 netmask 0xff00 broadcast 209.161.205.255
ether 00:0d:60:09:fc:6e
media: Ethernet autoselect (10baseT/UTP)
status: active
dc0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
inet 192.168.1.1 netmask 0xff00 broadcast 192.168.1.255
ether 00:20:78:0e:13:d6
media: Ethernet autoselect (10baseT/UTP)
status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
inet6 ::1 prefixlen 128 
inet 127.0.0.1 netmask 0xff00 
tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1492
inet 209.161.205.12 -- 207.136.64.7 netmask 0x 
Opened by PID 356
[r...@3s1 /etc]#

Externally, simply http://3s1.com:85

works but will not work locally - wondering if anyone could provide direction
here.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: problem redirecting with ipnat

2009-04-02 Thread David Banning

Thank Roger - I am not sure what the difference is between those two.
You solutions worked. Thanks -



David Banning skrev:

I am attempting to route local and external traffic to a second machine
on port 85 to apache.
The redirection works for external traffic coming in but I cannot seem
to redirect local traffic to the secondary machine.

Here are my ipnat rules;

rdr fxp0 0/0 port 85 - 192.168.1.10 port 85
rdr tun0 0/0 port 85 - 192.168.1.10 port 85
rdr dc0 0/0 port 80 - 192.168.1.1 port 8180

where 192.168.1.1 is the local machine and 192.168.1.10 is the 
secondary machine


the third ipnat entry simply redirects all outgoing browser traffic 
to squid/dansguardian


Here is my ifconfig;

[r...@3s1 /etc]# ifconfig
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
inet 209.161.205.12 netmask 0xff00 broadcast 209.161.205.255
ether 00:0d:60:09:fc:6e
media: Ethernet autoselect (10baseT/UTP)
status: active
dc0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
inet 192.168.1.1 netmask 0xff00 broadcast 192.168.1.255
ether 00:20:78:0e:13:d6
media: Ethernet autoselect (10baseT/UTP)
status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 
prefixlen 128 inet 127.0.0.1 netmask 0xff00 tun0: 
flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1492
inet 209.161.205.12 -- 207.136.64.7 netmask 0x 
Opened by PID 356

[r...@3s1 /etc]#

Externally, simply http://3s1.com:85

works but will not work locally - wondering if anyone could provide 
direction

here.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
freebsd-questions-unsubscr...@freebsd.org





Hello David,

It looks like you are trying to port forward using a NAT tool(?) May I 
suggest that you use a port forward tool instead? Try portfwd-0.29 
from ports.


/R


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: renaming many Chinese files

2009-03-26 Thread David Banning

that worked fine.  Thanks.

Just a very quick thought (the first that pops into my mind): you could
see which are the western characters that appear in the names, and then
use sed to substitute all non-matching characters with nothing,
something like:

for i in *.jpg; do b=`echo $i | sed 's/[^CHAR_SET]//g'`; mv $i $b; done

(without
forgetting, obviously, to add . to the CHAR_SET, something like:
[^a-zA-Z0-9.]; if you figure out a less clumsy way, please, share!!)
I'm guessing that the initial 'P123' is just an example, or this will
horribly backfire. But I'm really, REALLY, taking a shot in the dark
here... (if you already thought of this, and it just doesn't work,
sorry for the useless pitch)


  

Date: Tue, 24 Mar 2009 15:57:51 -0400
To: questi...@freebsd.org
From: david+dated+1238356671.fa5...@skytracker.ca
CC: 
Subject: renaming many Chinese files


I have hundreds of jpg images where each image is named P123.jpg
where the  are chinese characters. I can't open the file - it
has to be renamed before I can open it. Evening if I could open it
I don't want the Chinese part as the name.

Each file starts with 3 or four western characters and then has 3 or
four chinese characters, before the western .jpg extension.

I want to to test each filename character by character
to see if it is western, and then when the first Chinese Character is 
found, have it simply rename the file to the 3 or four western-character 
name + .jpg


I can write most of the script but I don't know how to test for 
western and/or Chinese characters.
 
I could run a script that would simply rename all the files to 
a number in sequential order but I would rather use the existing

starting name of the file if possible.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



_
Encontrá el auto de tus sueños en MSN 
http://xml.mercadolibre.com.ar/org-img/msn/autos.html___

freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

  

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


renaming many Chinese files

2009-03-24 Thread David Banning
I have hundreds of jpg images where each image is named P123.jpg
where the  are chinese characters. I can't open the file - it
has to be renamed before I can open it. Evening if I could open it
I don't want the Chinese part as the name.

Each file starts with 3 or four western characters and then has 3 or
four chinese characters, before the western .jpg extension.

I want to to test each filename character by character
to see if it is western, and then when the first Chinese Character is 
found, have it simply rename the file to the 3 or four western-character 
name + .jpg

I can write most of the script but I don't know how to test for 
western and/or Chinese characters.
 
I could run a script that would simply rename all the files to 
a number in sequential order but I would rather use the existing
starting name of the file if possible.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


dns woes

2009-03-17 Thread David Banning
I have had my dns server working fine in the past but now it seems
to be down and I can't locate the reason.

Here are some details;

# dig @127.0.0.1 mylocaldomain.com 

works, but 

# dig @ns1.3s1.com mylocaldomain.com

does not.

I have all IP addresses listed in named.conf;

listen-on   {
192.168.1.1;
209.161.205.12;
127.0.0.1;
};


I also note that 

$ telnet ns1.3s1.com 53

show port 53 as closed, while

$ telnet 127.0.0.1 53

shows it as open

The other strange thing is that I get the startup error;

zone 0.0.127.IN-ADDR.ARPA/IN: loading master file master/localhost.rev: file 
not found

when in fact /etc/namedb/master/localhost.rev -does- exist.


any pointers would be helpful
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: dns woes - resolved

2009-03-17 Thread David Banning
As it turns out - following a new installation, named.conf is
in /var/named/etc/namedb with a symlink from /etc/namedb.

To keep all my original DNS records and settings
I had restored a backup to /etc/namedb which destroyed the
symlink - as a result when I altered /etc/namedb/named.conf 
named didn't see the changes because it was reading named.conf
from another directory.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: sed error unescaped newline inside substitute pattern

2009-03-13 Thread David Banning

Nikos Vassiliadis wrote:

David Banning wrote:

Here is the php line that gives the error;

cat start_text | sed s/--maintext--/$test/  endtext

give error;

sed: 1: s/--maintext--/ Comment ...: unescaped newline inside 
substitute pattern


where $test contains customer input from a website form

There is something about the content of the text within the variable 
$test that is causing the error.


Any pointers would be helpful.


You cannot use unescaped newlines in the replacement string:
# sed 's/foo/fooPress enter here
 bar/'
sed: 1: s/foo/foo
bar/: unescaped newline inside substitute pattern

You have to precede each newline character with a backslash:
# sed 's/foo/foo\Press enter here
 bar/'
foo
foo
bar

The examples above are made using the bourne shell. The
above doesn't work in csh.

It's the documented behavior:
 2.   The escape sequence \n matches a newline character embedded in the
 pattern space.  You cannot, however, use a literal newline character
 in an address or in the substitute command.

 ...

 A line can be split by substituting a newline character into it.
 To specify a newline character in the replacement string, precede
 it with a backslash.

I am sure there is some good reason behind this...

OT, you should not pass parameters to shell scripts
using double quotes, since the shell will evaluate
possible variable values:
# echo $OSTYPE
FreeBSD
# echo '$OSTYPE'
$OSTYPE

I really doubt you want the first behavior, that is, variable
evaluation for strings coming from a web server.

HTH, Nikos
The problem that I am having is that the input is from a web form - so I 
have to deal with it - I have to somehow modify it so it can pass sed.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: sed error unescaped newline inside substitute pattern

2009-03-13 Thread David Banning




Don't you have control over this web form??? That's the place
you should filter your input... The sooner you do the filtering
the better.

Anyway, you could also use an intermediate variable that replaces
all newlines with spaces.

# a=This
 is
 the
 input
 from the
 web server
# b=`echo $a`
# sed s/foo/$b/
foo
This is the input from the web server
^D#

I hope you won't go that route though... Nikos

Yes - I have control of that - so I could filter out the problem in php. 
The only problem is that I don't know what I am filtering.
If I know exactly what the erroneous characters are I could filter them 
- I have looked at the file in vi but the problematic characters are 
invisible there.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: acroread error with libgobject-2.0.so.0

2009-03-12 Thread David Banning
 A first one is simple but it may not give any guarantee that
 the situation will not appear in the future: install those
 ports by hand.
 
 I'll advice the second one. Write down all linux applications you use
 (i.e. print/acroread8, net/skype, etc.) -- not infrastructure linux
 ports (they should be installed as dependencies). Then pkg_delete
 those applications and linux*, unmount all linux filesystems, rm -rf
 /compat/linux/*.Then install linux applications and mount linux
 filesystems. HTH

Attempting the first port failed - 

The entire FreeBSD installation was recently done - accomplished
from an older 6.2 ISO - so I decided to do a portupgrade of linux-base.
I was then able to install the missing ports you suggested, and
-presto-, acroread is working fine.

Thanks for your help Boris.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


sed error unescaped newline inside substitute pattern

2009-03-12 Thread David Banning
Here is the php line that gives the error;

cat start_text | sed s/--maintext--/$test/  endtext

give error;

sed: 1: s/--maintext--/ Comment ...: unescaped newline inside substitute 
pattern

where $test contains customer input from a website form

There is something about the content of the text within the variable $test that 
is causing the error.

Any pointers would be helpful.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: sed error unescaped newline inside substitute pattern

2009-03-12 Thread David Banning
 Well, it might be because test is a command line function.

It actually doesn't matter whether I use the word test or any other word as a 
variable
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


acroread error with libgobject-2.0.so.0

2009-03-11 Thread David Banning
I have installed acroread8 with no errors, however on 
execution I get the following error;

/usr/local/Adobe/Reader8/ENU/Adobe/Reader8/Reader/intellinux/bin/acroread: 
error while loading shared libraries: libgobject-2.0.so.0: cannot open shared 
object file: No such file or directory

the file is there;

$ cd /usr/local/lib
$
$ ls -tld libgobject*
-rw-r--r--  1 root  wheel  344082 Feb 27 19:17 libgobject-2.0.a
-rwxr-xr-x  1 root  wheel 984 Feb 27 19:17 libgobject-2.0.la
lrwxr-xr-x  1 root  wheel  19 Feb 27 19:17 libgobject-2.0.so - 
libgobject-2.0.so.0
-rwxr-xr-x  1 root  wheel  235062 Feb 27 19:17 libgobject-2.0.so.0

and ldconfig sees it;

$ ldconfig -r | grep libgobject
219:-lgobject-2.0.0 = /usr/X11R6/lib/libgobject-2.0.so.0
460:-lgobject-2.0.0 = /usr/local/lib/libgobject-2.0.so.0
$

I have followed a few threads with similar error but have found no resolution 
yet.

Any pointers would be helpful.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: acroread error with libgobject-2.0.so.0

2009-03-11 Thread David Banning

Michael Powell wrote:

David Banning wrote:

  

I have installed acroread8 with no errors, however on
execution I get the following error;

/usr/local/Adobe/Reader8/ENU/Adobe/Reader8/Reader/intellinux/bin/acroread:
error while loading shared libraries: libgobject-2.0.so.0: cannot open
shared object file: No such file or directory

the file is there;

$ cd /usr/local/lib
$
$ ls -tld libgobject*
-rw-r--r--  1 root  wheel  344082 Feb 27 19:17 libgobject-2.0.a
-rwxr-xr-x  1 root  wheel 984 Feb 27 19:17 libgobject-2.0.la
lrwxr-xr-x  1 root  wheel  19 Feb 27 19:17 libgobject-2.0.so -
libgobject-2.0.so.0
-rwxr-xr-x  1 root  wheel  235062 Feb 27 19:17 libgobject-2.0.so.0

and ldconfig sees it;

$ ldconfig -r | grep libgobject
219:-lgobject-2.0.0 = /usr/X11R6/lib/libgobject-2.0.so.0
460:-lgobject-2.0.0 = /usr/local/lib/libgobject-2.0.so.0
$

I have followed a few threads with similar error but have found no
resolution yet.

Any pointers would be helpful.



Please forgive if I seem a trifle dense, but how did you go about 
installing? If done using the ports system, as part of the process 
linux_compat and various linux-* ports should have installed as 
dependencies. Perhaps the install succeeded but left out linux_load=YES
from /boot/loader.conf? 
  

I installed from the ports - (FreeBSD 3s1.com 6.2-RELEASE)
but it didn't touch the /boot/loader.conf file.

Is there a way to load this without rebooting?

Possibly it may be one of the few things that need linprocfs_load=YES too, 
but I doubt this because there would be a different error.
  

I'll look at that.
I would expect it to be looking for the library referenced above somewhere 
below the /compat or /usr/compat (the first is a link) which is where the 
linuxolator resides. This library should be being provided by the linux-
gtk2-2.6.10_1 port. Since the acroread8 is a linux blob it should be using 
the linuxolator to run.


  

The acroread8 port did not install linux-gtk2

ports are up-to-date.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: acroread error with libgobject-2.0.so.0

2009-03-11 Thread David Banning

Boris Samorodov wrote:

On Wed, 11 Mar 2009 13:37:07 -0400 David Banning wrote:
  

Michael Powell wrote:


David Banning wrote:

  
  

I have installed acroread8 with no errors, however on
execution I get the following error;

/usr/local/Adobe/Reader8/ENU/Adobe/Reader8/Reader/intellinux/bin/acroread:
error while loading shared libraries: libgobject-2.0.so.0: cannot open
shared object file: No such file or directory



Something is wrong with your system/ports...

  

the file is there;

$ cd /usr/local/lib
$
$ ls -tld libgobject*
-rw-r--r--  1 root  wheel  344082 Feb 27 19:17 libgobject-2.0.a
-rwxr-xr-x  1 root  wheel 984 Feb 27 19:17 libgobject-2.0.la
lrwxr-xr-x  1 root  wheel  19 Feb 27 19:17 libgobject-2.0.so -
libgobject-2.0.so.0
-rwxr-xr-x  1 root  wheel  235062 Feb 27 19:17 libgobject-2.0.so.0



These are native FreeBSD libraries.

  

and ldconfig sees it;



Yes, native FreeBSD ldconfig sees it's native libraies.

  

$ ldconfig -r | grep libgobject
219:-lgobject-2.0.0 = /usr/X11R6/lib/libgobject-2.0.so.0
460:-lgobject-2.0.0 = /usr/local/lib/libgobject-2.0.so.0
$

I have followed a few threads with similar error but have found no
resolution yet.

Any pointers would be helpful.



A linux application (i.e. acroread8) use linux libraries which by
default are installed to /compat/linux.

  

Please forgive if I seem a trifle dense, but how did you go about
installing? If done using the ports system, as part of the process
linux_compat and various linux-* ports should have installed as
dependencies. Perhaps the install succeeded but left out
linux_load=YES
from /boot/loader.conf?   
  

I installed from the ports - (FreeBSD 3s1.com 6.2-RELEASE)



Please, show commands you had given.
  

a simple;
cd /usr/ports/print/acroread8
make install clean
  

but it didn't touch the /boot/loader.conf file.



  

Is there a way to load this without rebooting?



  

Possibly it may be one of the few things that need
linprocfs_load=YES too, but I doubt this because there would be a
different error.
  
  

I'll look at that.


I would expect it to be looking for the library referenced above
somewhere below the /compat or /usr/compat (the first is a link)
which is where the linuxolator resides. This library should be being
provided by the linux-
gtk2-2.6.10_1 port. Since the acroread8 is a linux blob it should be
using the linuxolator to run.

  
  

The acroread8 port did not install linux-gtk2



  

ports are up-to-date.



Please, show an output of commands:
% pkg_info -xI linux
% (cd /usr/ports/print/acroread8  make all-depends-list | grep linux)
  

]# pkg_info -xI linux
linux-atk-1.9.1_1   Accessibility Toolkit, Linux/i386 binary
linux-cairo-1.0.2   Linux cairo binary
linux-expat-1.95.8  Linux/i386 binary port of Expat XML-parsing library
linux-fontconfig-2.2.3_7 Linux/i386 binary of Fontconfig
linux-hicolor-icon-theme-0.5_1 A high-color icon theme shell from the 
FreeDesktop project

linux-jpeg-6b.34RPM of the JPEG lib
linux-nvu-1.0_1 A complete Web Authoring System
linux-png-1.2.8_2   RPM of the PNG lib
linux-scim-libs-fc4-1.4.4_1 Smart Common Input Method platform, library 
part, Linux bin

linux-tiff-3.7.1TIFF library, Linux/i386 binary
linux-xorg-libs-6.8.2_5 Xorg libraries, linux binaries
linux_base-fc-4_9   Base set of packages needed in Linux mode (for 
i386/amd64)

linuxdoc-1.1_1  The Linuxdoc SGML DTD
#
# cd /usr/ports/print/acroread8  make all-depends-list | grep linux
/usr/ports/x11-toolkits/linux-gtk2
/usr/ports/x11-toolkits/linux-pango
/usr/ports/www/linux-nvu
/usr/ports/textproc/linux-scim-gtk
/usr/ports/emulators/linux_base-fc4
/usr/ports/accessibility/linux-atk
/usr/ports/graphics/linux-jpeg
/usr/ports/graphics/linux-png
/usr/ports/graphics/linux-tiff
/usr/ports/x11/linux-xorg-libs
/usr/ports/x11-fonts/linux-fontconfig
/usr/ports/graphics/linux-cairo
/usr/ports/textproc/linux-expat
/usr/ports/x11-themes/linux-hicolor-icon-theme
/usr/ports/textproc/linux-scim-libs
#
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


all mail arriving empty - spamassassin?

2009-02-09 Thread David Banning
After some upgrades, all mail arriving via sendmail-provmail is
empty - when I actually deinstall spamassassin - the mail starts
arriving again.

I haven't seen posts on this topic - I wonder if anyone has a guess as to 
where to look for answers on this.

I am guessing if there is some way of logging what spamassassin is doing...

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


space char shell script problem

2008-08-23 Thread David Banning
I am running into a problem with the space character in filenames.
For instance, If I want to run the script;

for x in `ls`
do
  echo $x
done

then filenames that have a space in them ie: john smith.jpg
are processed by my script as two names, john and smith.jpg.

What is the best way to deal with this type of space problem in the shell?

I know that file names in quotes solves some problems but I can't tranfer
that to my script.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


cvsup executed from crontab

2008-05-20 Thread David Banning
I am using cvsup for backup, so I control both the client and the server.

Works fine everytime stand-alone, but when I execute via crontab it 
appears to stall - then restart. Eventually there is so many copies of
cvsup running at the same time it starts to bog down the client.

I noticed in the man page there is the -d 0 or -1 option. Not sure if
that will fix it - I just can't figure out why it works OK when executed
manually as simply eg. cvsup supfile but stalls and starts anew when 
executed via crontab.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: suggestion on a backup utility

2008-05-07 Thread David Banning
 For backing up purposes, I use a number of tools.

Thanks Frank for your input. I have chosen for now use Chuck's suggestion,
that being cvsup. The only thing I would like to do is omit certain files
that I don't want backed up - large unimportant files - some cache and
log files. I'll look at your suggestions and see if there is a way 
to tweak my backup strategy for the best mix.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


suggestion on a backup utility

2008-05-06 Thread David Banning
I wonder if anyone can recommend a good backup utility for FreeBSD.
If it's in the ports, great. I would like to just specify which 
directories I would like to backup, how often and have it tar or zip 
the files into a directory - if it has off-site ftp, fine, but I can
do that part myself via crontab.

I realize I could just make a script file with some tar commands,
but I'm looking for something that is quicker to maintain and 
allows me to organize what I'm backing up.

I have been using reoback but recently I ran into some problems
with is duplicating files X 10! - I looked into to solving it but
it might be easier to just try something else.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


email pop3 question

2008-03-12 Thread David Banning
I am using dovecot email on my server - Users can connect via IMAP or POP3.

I have a user who is using pop3 but not removing the email from the 
server - so the email stays on the server, -and- it is collecting on their
computer - as the emails build up, will there be a problem with this?

For IMAP it stays on the server, so I assume the server will not be presented
with any problem - but will the user suffer any problem eventually?  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


command df just hangs

2008-02-21 Thread David Banning
I first noticed that I was not able to access a windows box mounted using
mount_smbfs. While checking the drive status with the 'df' command I noticed
that the command just hangs.

I could probably resolve this by simply rebooting, but I don't like to
use that solution if I don't have to. Any ideas to resolve this without
a reboot?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: command df just hangs - answered

2008-02-21 Thread David Banning
As it turns out, my windows box was already mounted. Since my windows
firewall was turned on - df was hanging probably because it was trying
to read info on the windows drive mounted, but couldn't. Disabling the
win firewall fixed the problem - now I have to open up a port in that
firewall before re-enabling it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


question on DSL signal

2008-02-04 Thread David Banning
I run a small FreeBSD server with a standard DSL line. I have it ping
the ISP every five seconds, and when it doesn't ping it logs the
results.

I notice very inconsistent results. Sometimes it's up for a week
without a single drop, while other times it's up for 30 seconds,
down for a minute, up for 2 minutes, down for 1.  That can go on
for 10 hours, and then maybe it's stable again for a day or so.
It's always appears to be the DSL signal itself, as I can see the
modem sync light starts flashing when the signal goes down.

To end any possibility of the phone company pointing their finger
at the wiring in my house, I put the DSL modem right at the phone
connection block where the line enters the house and then called
them. Problem persists.

The phone company say they have replaced lines all over the
neighborhood while trying to fix the problem.  Eventually the
connection becomes stable, the phone company declares that they
found the problem, but when he's gone, the trouble starts again.

Now knowing how common this is,  I installed the same logging system
at another company's server, that is located a few miles away. Guess
what?  Same drop-in drop-out problem.

To any average computer user, these lines might appear normal -
when a page stops loading for a minute they just live with it, and
forget about it.

So here's my question:

1. is there anyone who has a lot of experience monitoring DSL lines
   that can tell me how common this is?

2. Is there any way to avoid it?

3. I have used three different DSL modems, but the are all home
   quality: an Alcatel Speed Touch, a Speedstream 5260,
   and a Westell Wirespeed. Would spending more money on
   another type of modem help? If so, what is recommended?

Any comments would be helpful.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: question on DSL signal

2008-02-04 Thread David Banning

Thanks Wojciech, for your thoughts.
make sure you don't get a timeout because of high load or simply - the 
server you ping doesn't respond.



Check that -
it's not line problem but modem hardware problem or their routing 
problem.

But isn't the sync going down a sign of a bad line connection?
The ISP I used leases the lines from the telephone company, and when 
they hear sync is down

they just call the phone company and tell them to solve it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


looking for online text editor

2007-12-04 Thread David Banning
Often I have to maintain my fbsd box from outside locations. I have
tried using webmin but sometimes outside computers stop me from
running the java filemanager - same goes for attempting to run
mindterm-ssh. Is there some plain text editor program
out there that will allow me to simply login and edit my files in
plain text - (not a gui html editor) ?  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: looking for online text editor

2007-12-04 Thread David Banning
  mindterm-ssh. Is there some plain text editor program
  out there that will allow me to simply login and edit my files in
  plain text - (not a gui html editor) ?
 
 
 ...You can't just SSH into your box and use vim?

Let's say I'm in a library in some remote town. The only SSH I know 
that is web loadable is mindterm-ssh, but that runs on java. If java is
blocked on the local box then I'm SOL. No?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: looking for online text editor

2007-12-04 Thread David Banning
  running the java filemanager - same goes for attempting to run
  mindterm-ssh. Is there some plain text editor program
  out there that will allow me to simply login and edit my files in
  plain text - (not a gui html editor) ?
 
I use putty to ssh to remote servers and use vi to edit files once
logged in to the server.

But putty has be installed on the machine you are working on, right?

I need to have access on, say a library computer, where no local software
can be installed. I can log in to webmin and edit the files via their 
file manager.  The actual edit process does -not- appear to be java,
but the file manager to select the file -is- java so I can't select 
the file to edit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Linux problem? - realplay and acroread die

2007-11-25 Thread David Banning

All of a sudden I have both linux-realplayer -and- acroread7 die.

realplayer ends with a Segmentation fault: 11 (core dumped) and 
acroread just dies without a message.

I have done redone my ports using portsnap, and used portupgrade 
to reinstall both programs. I have also reinstalled linux_base using
portupgrade -f -R linux_base*

I expect that the problem is linux related as both programs appear to be
linux programs.

No solution as yet and I am at my wits end! - Wondering if anyone has
a suggestion -

I am using freebsd 6.2 Release
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Linux problem? - realplay and acroread die

2007-11-25 Thread David Banning
It appears the problem was not Linux but X. I simply ran portupgrade   
on -all- my installed ports and as it turns out once the font ports
were reinstalled all worked fine.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


what is needed for realplayer

2007-11-24 Thread David Banning
I have been using realplayer for years and it has worked fine. All of a 
sudden I get a Segmentation fault: 11 error and core dump. I 
did a portupgrade on both realplayer and linux_base with no
improvement. Presently using 6.2-RELEASE FreeBSD.

I wondered about even just a simple test to see if linux_base is working.

Any pointers would be helpful -
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ip address location database

2007-08-23 Thread David Banning
I am looking towards setting up something which will let me know what part
of the world a specific ip address is from.

Anyone know an easy process for this?
Even if the database or text file was available somewhere I could probably
adapt a search script.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apsfilter setup problem

2007-08-06 Thread David Banning
 You should let apsfilter SETUP program to add the entry in printcap (you
 wrote that you added it yourself). It should be marked with something
 like:
 
   # APS1_BEGIN:printer1
   # - don't delete start label for apsfilter printer1
   # - no other printer defines between BEGIN and END LABEL
   [...]
   # APS1_END - don't delete this

I didn't post the whole thing - but it actually does have the apsfilter
start and end entries.

 Apart from this, your printcap details seem good. However, the problem
 you described could be related to permissions. You run SETUP program as
 root, but you try to print as an ordinary user, I guess. Please check
 permissions/ownership of samba-client configuration file
 under /usr/local/etc/apsfilter/.

# cd /usr/local/etc/apsfilter
# ls -tl 
total 46
-rw-r-  1 root  daemon416 Aug  6 19:47 SETUP.cfg
-rw-r--r--  1 root  wheel   18750 Aug  6 19:45 perf.log
lrwxr-xr-x  1 root  wheel  26 Aug  6 19:42 basedir - /usr/local/share/apsfi
lter
drwxr-xr-x  2 root  wheel 512 Aug  3 17:22 aps1
drwxr-xr-x  2 root  wheel 512 Mar  7  2006 lp
drwxr-xr-x  2 root  wheel 512 Mar  7  2006 brother
drwxr-xr-x  2 root  wheel 512 Jan 24  2006 lp2
drwxr-xr-x  2 root  wheel 512 Jan 24  2006 aps2
drwxr-xr-x  2 root  wheel 512 Aug 22  2003 raw2
drwxr-xr-x  2 root  wheel 512 Aug 22  2003 raw
-r--r--r--  1 root  wheel8794 Aug 22  2003 apsfilterrc


I tried to print as root also, but so luck.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


apsfilter setup problem

2007-08-05 Thread David Banning
I am setting up a new installation of apsfilter to a network printer.
There a re the install options I have set during apsfilter setup.


(D) Available Device Drivers in your gs binary
(R) Read Ghostscript driver documentation(devices.txt)

(1) Printer Driver Selection[ljet4]
(2) Interface Setup [samba]
(3) Paper Format[letter]
(4) Printing Quality[high]
(5) Color Mode  [gray]
(6) Print Resolution in dots per inch [600x600]
(7) Default Printing Method [auto]


I go to print a test page, and it's successful;

Printing Test page using:
gs -q -dBATCH -dNOPAUSE -dPARANOIDSAFER -dSAFER -r600x600 
-sDEVICE=ljet4 -sPAPERSIZE=letter   
-sOutputFile='/tmp/apsfilter88754/test_page.aps' setup/test.ps

Ok to print testpage? [y/n] y


I creates and entry in /etc/printcap;

lp|ljet4;r=600x600;q=high;c=gray;p=letter;m=auto:\
:lp=/dev/null:\
:if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\
:sd=/var/spool/lpd/lp:\
:lf=/var/spool/lpd/lp/log:\
:af=/var/spool/lpd/lp/acct:\
:mx#0:\
:sh:

But it will not print with the command

ls | lp

or   

ls | lpr

or 

lp -dlp


I installed samba without CUPS printing support.

# lpc stat all
lp:
queuing is enabled
printing is enabled
no entries in spool area
printer idle



Any ideas how I can bridge from a working test to a non-working 
print setup?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: what triggers you have mail

2007-08-02 Thread David Banning
On Thu, Aug 02, 2007 at 11:05:47AM +1000, Terry Sposato wrote:
 Hi David,
 
 It is most likely coming to your mailbox setup. You can create an alias for
 it to be delivered appropriately to your maildir.

Do what configuration file is that? The only files I use are ~/.muttrc
and ~/.mailcap
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: what triggers you have mail (OFFLIST)

2007-08-02 Thread David Banning
   Hrm, when you print out your environment variables, what
 is MAIL or mail ? Do either of those variables exist, and if so
 what are they set to? And if set, does a file exist at that
 location?

I don't know how to print out environment variables, but 
echo $MAIL

and 

echo $mail 

both are empty.

I should have mentioned this to begin with, but the actual message
I am getting is;

you have mail in /usr/david

which points to my home directory, which maybe is the result
when $MAIL is empty. However, I don't see what specific file
in /usr/david that would be triggering the message.  I do notice
that I am getting incoming mail in /usr/david/tmp which each 
carry the mutt-??? tag.  Note;

$ cd /usr/david/tmp
$ ls -tl

total 640
-rw---  1 david  wheel2430 Aug  2 11:59 mutt-3s1-90mKAzA6-9
-rw---  1 david  wheel 811 Aug  2 11:59 mutt-3s1-FNIv9bVN-00011
-rw---  1 david  wheel 570 Aug  2 11:59 mutt-3s1-aZ5J9HO3-00010
-rw---  1 david  wheel   20426 Aug  2 11:59 mutt-3s1-lrTCGdNH-2
-rw---  1 david  wheel6642 Aug  2 11:26 mutt-3s1-3W5nolSR-00031
-rw---  1 david  wheel6441 Aug  2 11:26 mutt-3s1-K3kNAS2C-00029
-rw---  1 david  wheel2463 Aug  1 19:17 mutt-3s1-YVeXwBSz-00015
-rw---  1 david  wheel   27678 Aug  1 19:16 mutt-3s1-3EfX7G7s-8
... and so on

the top message is yours
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


what triggers you have mail

2007-08-01 Thread David Banning
I keep getting the you have mail reminder. I am using Maildir
and I have no new mail. I also have looked in /var/mail and
nothing is new. Wondering what is being checked and where it
is set.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


problems with mysql database

2007-07-28 Thread David Banning

I have recently converted from mysql 4.1 to 5.0 and some of my
tables are not recogized. Using the mysql_upgrade utility is
not effective as -it- does not recognize certain tables. 

On closer examination I see that the tables that are -not- recognize
have the following extensions;

-rw-rw  1 mysql  mysql  147787 Jul 23 02:44 company.ISD
-rw-rw  1 mysql  mysql   13312 Jul 23 02:44 company.ISM
-rw-rw  1 mysql  mysql9064 Dec  8  2006 company.frm

while the tables that have no problem have different extensions;

-rw-rw  1 mysql  mysql  3592 Jul 28 23:49 Employees.MYD
-rw-rw  1 mysql  mysql  1024 Jul 28 23:49 Employees.MYI
-rw-rw  1 mysql  mysql  9174 Dec 19  2006 Employees.frm

Any idea whats going on here?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


updating mysql database

2007-07-27 Thread David Banning

I installed mysql 5.1 on a new system and I want to run a 4.1 database. I 
notice that
not all tables work. Is there a conversion to take the database from 4.1 to 5.1?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


php5 won't compile

2007-07-22 Thread David Banning
After a successful running installation, all of a sudden I have 
a problem where apache2 will not start. The error;

Syntax error on line 274 of /usr/local/etc/apache2/httpd.conf:
Cannot load /usr/local/libexec/apache2/libphp5.so into server: 
/usr/local/libexec/apache2/libphp5.so: Undefined symbol __fixunsdfdi


libphp5.so -does- exist. in that location. I thought I would rebuild
php5, but on building php5 I get the error;

/bin/sh /tusr/ports/lang/php5/work/php-5.2.3/libtool --silent 
--preserve-dup-deps --mode=link cc -export-dynamic -O -pipe  -L/usr/local/lib  
-R /usr/local/lib ext/libxml/libxml.lo ext/date/php_date.lo 
ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo 
ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo 
ext/date/lib/unixtime2tm.lo ext/reflection/php_reflection.lo regex/regcomp.lo 
regex/regexec.lo regex/regerror.lo regex/regfree.lo ext/standard/array.lo 
ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo 
ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo 
ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo 
ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo 
ext/standard/filestat.lo ext/standard/flock_compat.lo 
ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo 
ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo 
ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo 
ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo 
ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo 
ext/standard/pageinfo.lo ext/standard/quot_print.lo ext/standard/rand.lo 
ext/standard/reg.lo ext/standard/soundex.lo ext/standard/string.lo 
ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo 
ext/standard/uniqid.lo ext/standard/url.lo ext/standard/url_scanner.lo 
ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo 
ext/standard/strnatcmp.lo ext/standard/levenshtein.lo 
ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo 
ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo 
ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo 
ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/sha1.lo 
ext/standard/user_filters.lo ext/standard/uuencode.lo ext/standard/filters.lo 
ext/standard/proc_open.lo ext/standard/streamsfuncs.lo ext/standard/http.lo 
TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo 
main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo 
main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo 
main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo 
main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo 
main/php_ticks.lo main/network.lo main/php_open_temporary_file.lo 
main/php_logos.lo main/output.lo main/streams/streams.lo main/streams/cast.lo 
main/streams/memory.lo main/streams/filter.lo main/streams/plain_wrapper.lo 
main/streams/userspace.lo main/streams/transports.lo main/streams/xp_socket.lo 
main/streams/mmap.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo 
Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo 
Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo 
Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo 
Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo 
Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo 
Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo 
Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo 
Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo 
Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo 
Zend/zend_exceptions.lo Zend/zend_strtod.lo Zend/zend_objects.lo 
Zend/zend_object_handlers.lo Zend/zend_objects_API.lo 
Zend/zend_default_classes.lo Zend/zend_execute.lo sapi/cli/php_cli.lo 
sapi/cli/php_cli_readline.lo sapi/cli/getopt.lo main/internal_functions_cli.lo 
-lcrypt -lcrypt -lm -lxml2 -lz -liconv -lm -lcrypt -lcrypt  -o sapi/cli/php
ext/standard/.libs/basic_functions.o: In function `zif_getopt':
ext/standard/.libs/basic_functions.o(.text+0x1c26): undefined reference to 
`getopt_long'
*** Error code 1

Stop in /tusr/ports/lang/php5/work/php-5.2.3.
*** Error code 1

Stop in /tusr/ports/lang/php5.
*** Error code 1

Stop in /tusr/ports/lang/php5.


-

Any help would be appreciated. I have not seen many messages on this 
in the list.

My system;
FreeBSD 4.11-STABLE 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


using mouse via xterm window

2007-06-20 Thread David Banning
I presently access FBSD via an xterm window from within Windows using
X-Win32. I would like to be able to run a window manager or file manager,
but this exits with an error because there is no mouse attached to the 
FBSD box. 

Here is the thing - I -can- run xv (a FBSD image viewer from the ports)
from my xterm window and the windows mouse works fine controlling xv
as a gui application.

Is it possible to configure the Xserver to acknowledge the windows mouse
via the xterm session?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


after deleting maillog, sendmail won't log

2007-05-05 Thread David Banning
I deleted my maillog files and for some reason sendmail will not 
log again. I have tried touch maillog to start a new file name
and i have tried all different permissions on the the empty maillog
file. In each case I have restarted sendmail.

Any idea what I need to get logging happening again?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


missing /usr/local in startup.sh files

2007-05-04 Thread David Banning
All of a sudden I notice that whenever I install a package from the
ports, the startup file in /usr/local/etc/rc.d requires that I
put /usr/local in - for instance, the most recent install of 
clamav I had to change

. /etc/rc.subr

to 

. /usr/local/etc/rc.subr

there must be a variable or setting for this that went missing for me.
Could someone be kind enough to direct me here?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: missing /usr/local in startup.sh files

2007-05-04 Thread David Banning
  . /usr/local/etc/rc.subr
  
  there must be a variable or setting for this that went missing for me.
  Could someone be kind enough to direct me here?
 
 There shouldn't be a file /usr/local/etc/rc.subr. Did you by any chance move 
 /etc/rc.subr to /usr/local/etc/?
 

Maybe we are on different versions - I am using FreeBSD 4.9, and the man
page states that where is belongs - note line after SYNOPSIS;

$ man rc.subr

RC.SUBR(8)  FreeBSD System Manager's Manual RC.SUBR(8)

NAME
 rc.subr -- functions used by system shell scripts

SYNOPSIS
 . /usr/local/etc/rc.subr

 backup_file action file current backup
 checkyesno var
 check_pidfile pidfile procname [interpreter]
 check_process procname [interpreter]
 debug message
 err exitval message

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't zip large files 2gb

2007-05-04 Thread David Banning
 What version of gzip are you using? From www.gzip.org:
 
 gzip 1.2.4 may crash when an input file name is too long (over
 1020 characters). 

not in my case.

 The buffer overflow may be exploited if gzip is
 run by a server such as an ftp server. Some ftp servers allow
 compression and decompression on the fly and are thus vulnerable.

I'm not running it via ftp.  

 This http://www.gzip.org/gzip-1.2.4b.patchpatch to gzip 1.2.4
 fixes the problem. The beta version
 http://www.gzip.org/gzip-1.3.3.tar.gz1.3.3 already includes a
 sufficient patch; use this version if you have to handle files
 larger than 2 GB. 

Tried that version, but still I have the same problem.

A new official version of gzip will be released
 soon.Also, check if you have compiled gzip with 64bit I/O.
 Check this gzip FAQ http://www.gzip.org/#faq10 too.HTH  

I used their suggestion for unzip; 

gunzip  file.gz  file
 
which actually completes (siting a crc error), 
but gives a file size 2 bites greater than the original when unzipped.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't zip large files 2gb

2007-05-04 Thread David Banning
 Try the same operation on a known working system, take that output
 file and do a diff with that and the corrupt one after a 'strings', so
 'strings new.gz  new-text', 'strings corrupt.gz  corrupt-text',
 'diff new-text corrupt-text'.  I'm just interested in how it's being
 corrupted and maybe the strings output will tell you something.

I don't have a separate system, but I tried the strings output
of the tar before compression and the strings output of the tar
-after- compression and uncompression - as I mentioned the size output
is only two bites difference. 

The result was that the memory was exhausted on attempting a diff
of the two files, but there was around a 1 meg difference between
the two 1.5G ascii files.


 Sorry if this was specified before, but did this just start happening
 or is this the first time you've tried to gzip large files on this
 system?

first time I have tried files of this size - but I get the same problem
no matter what compression utility I use; tried gzip, bzip2, rzip
and compress.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't zip large files 2gb

2007-05-04 Thread David Banning
 available. At least some of your utilities in /usr/bin are statically
 linked.
 
 In 5.5 the statically linked utilities are in /stand, while dynamically
 linked versions of the same are in their normal places.
OK.

 -r-xr-xr-x  30 root  wheel  2046148 Nov  4  2004 /stand/gzip
 
 I would expect your gzip to be about the same 2M in size.
Yes. It is.

 
 % ldd /stand/gzip /usr/bin/gzip
 ldd: /stand/gzip: not a dynamic executable
 /usr/bin/gzip:
 libc.so.5 = /lib/libc.so.5 (0x2808)

 If you have sources I would try replacing those utilities. If that works
 then we have exonerated your hardware, but now all your software is
 suspect. 

I have upgraded my system to FreeBsd 4.9, the libc.so.5 in your case is
libc.so.4 in my case but it looks like it has been rebuilt in the upgrade.

I have downloaded and compiled the new 1.3.3 beta gzip from the gzip
website, and built it with no difference in my problem resulting.
I have uninstalled and re-installed bzip2 - also with the same eroneous
results.

What seems strange is that the failure is not a massive failure
the gzipped and then gunzipped file is only 2 bites difference
on a 3G file. I am wondering now if something could be amiss in
my BIOS - any thoughts here?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't zip large files 2gb

2007-05-03 Thread David Banning
I have replace my memory. It didn't make any difference.

root# gunzip *ian_mail*
gunzip: 3s1.com-ian_mail-full-20070503-0105AM.1.tgz: 
invalid compressed data--format violated
root# 

and another way;

root# tar tzf *ian_mail*

lists most files in the tgz, then terminates with;

...
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers

gzip: stdin: invalid compressed data--format violated
tar: Child returned status 1
tar: Error exit delayed from previous errors
root#


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't zip large files 2gb

2007-05-03 Thread David Banning
  
  gzip: stdin: invalid compressed data--format violated
  tar: Child returned status 1
  tar: Error exit delayed from previous errors
  root#
 
 Unless you can demonstrate some other systematic effect (e.g. always
 truncated at the same size), it looks like you have some other kind of
 failing hardware that is silently corrupting the data during writing
 or reading from disk.

You are probably right. I am going to upgrade to 6.x and see
if that helps - it may not but I have to upgrade one day anyway.
It will be interesting to see if the problem follows me.

Thanks for your input -
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't zip large files 2gb

2007-05-02 Thread David Banning
 Maybe you have defective RAM in the upper memory area.
 Try running MEMtest86 to see you have some bad memory.

You may have something here. I don't have a floppy on this machine,
and I can't shut down my server to test the memory but I may shut
it down long enough to swap the memory chips so I can test them in
another machine.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't zip large files 2gb

2007-05-02 Thread David Banning
 A lot of the features related to file sizes and other attributes
 of the files stored on a disk depend highly on the type of file
 system used on the disk.
 
 What file system does the destination directory live in?

originally my problem was with a dedicated ide (on ide cable in machine)
secondary mounted drive - 300G

I tried it in /usr with same results.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't zip large files 2gb

2007-05-02 Thread David Banning
  originally my problem was with a dedicated ide (on ide cable in machine)
  secondary mounted drive - 300G
  
  I tried it in /usr with same results.
 
 The disk type isn't really what I asked about.  Is your /usr file system
 mounted from UFS (I haven't kept all the messages of the thread, so I
 don't remember from the df output; please excuse my short memory, if
 I'm repeating a question already answered).

I was actually stabbing at the answer there - yes, both file systems
tried are UFS, each are on separate drives, both have plenty of space
and I have done an error free fsck on one of those drives, the other
is mounted and running so I have not tried fsck. 

Here is a summary;

original 3G tar file; untars fine
gzip; corrupts
bzip2; currupts
compress; corrupts
rzip; corrupts

I realize this looks like it may be memory, but running top I notice
that archivers use very little memory, between 1-10 meg while running,
while they do keep the processor fairly busy working.

There is one thing on my mind - I only have 512Meg in my machine. I
installed another 512M to make it 1G and the machine crashed once
per week; the new memory card is what I concluded was a problem. 

I took out the memory card concluding that is was the the new
memory I installed and then deinstalled that was problematic. Just
so were clear - all of my zip problems have been been running on my
original, problem free 512M memory.

Now I'm thinking of another possiblity - could it be that installing
the -new- memory caused the machine to reorganize how the -old- memory was
used - exposing a problem in the original memory that before the 
machine didn't use that often? 

Hope you followed that -

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't zip large files 2gb

2007-05-02 Thread David Banning
 I haven't been paying 100% attention. Just how does it fail? What do you
 mean by corrupt?
 
 Does the process run to completion?

All programs zip with no errors. On reading;

root# bzip2 -t zippedfile.bz2
bzip2: 3s1.com-smartstage_ftp-full-20070502-0125AM.1b.tar.bz2: 
data integrity (CRC) error in data

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

- gzip also sites a crc error  
- can't remember rzip's error, (it does output an error.)
- uncompress goes without echoing error but tar expanded is
  not able to be untarred.

 Are the output zip files reasonable in size?

The zipped file size seems reasonable in each case.

 Are the expanded files reasonable in size? 

expanding will not complete, except uncompress, which expands the 
file to the original size, plus 6 bites, then the tar file expanded
is unreadable.

If so where does the mismatch
 start?

on expanding, it seems the error happens near or at the end of
the expanding process before halting and exiting with error,
that is if I attempt to read the file with tar -tzf filename.tgz
in gzip's case or tar -tyf filename.bz2 in bzip2's case.

 
 Is the problem always in the same place for the same input file?

Pretty much, but I can't say if it is exactly the same in each case.

I am going to attempt swapping memory and see if the error continues.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't zip large files 2gb

2007-05-02 Thread David Banning
 Can't it be that zip just don't have enough space for temporary storage?

Hi Igor. Thanks for the input. While gzipping and gunziping I
watched those directories and they don't change. The new file
is being created in the target directory - when it completes
it deletes the old file in the same directory.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


can't zip large files 2gb

2007-05-01 Thread David Banning
I am attempting to zip large files that are 2GB - 3GB.

uname -a;

FreeBSD 3s1.com 4.11-STABLE FreeBSD 4.11-STABLE #7

I have tried gzip, bzip2 from the ports and rzip.

All give no errors on zipping, but will not unzip, siting
CRC errors.

Is there a maximum file size for zipping? Is my system too old?
Maybe a file or library that all zip programs depend on that is
corrupt?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't zip large files 2gb

2007-05-01 Thread David Banning
 Maybe a file or library that all zip programs depend on that is
 corrupt?
 
 Your system is not too old, there were plenty of big files around when 
 4.11 was released. Sometimes we had to refill the oil lamps before gzip 
 completed, but we made do.

You are right about the age of the system - I just got the same error 
gzipping 339M file, but not a smaller 149M file. I tried your disk 
idea. I unmounted the volume I was using and did an fsck with no
errors. Then I gzip'ped a new set of files on another drive, and
got the same error. I recompiled gzip from source also. 

 Also you don't say if the files are local, if you are transmitting the 
 files make certain they are not being sent in ascii format, ftp for 
 instance.

I am not transmitting the file via FTP or anything else right now. 
All is local for now.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't zip large files 2gb

2007-05-01 Thread David Banning
Another piece of info - I just complied rzip and it seems I 
have the same problem there! There must be something in common,
that these programs are using...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't zip large files 2gb

2007-05-01 Thread David Banning
On Tue, May 01, 2007 at 11:53:55PM -0400, Kris Kennaway wrote:
 On Tue, May 01, 2007 at 11:22:28PM -0400, David Banning wrote:
  Another piece of info - I just complied rzip and it seems I 
  have the same problem there! There must be something in common,
  that these programs are using...
 
 Is your filesystem full? :)

Not at all;

Filesystem1K-blocks Used Avail Capacity  Mounted on
/dev/ad0s1a  503966   11072835292224%/
/dev/ad0s1f  2579982952820783212%/tmp
/dev/ad0s1g75407576 51862570  1751240075%/usr
/dev/ad0s1e  503966   26056020309056%/var
procfs44 0   100%/proc
linprocfs 44 0   100%
/usr/compat/linux/proc
70.52.121.240:/usr/backup  75331512 15213578  5409141422%/usr/optex
/dev/ad1s1e   307684276 73248808 20982072626%/tusr
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


procmailrc question

2007-04-20 Thread David Banning
It seems that putting anything in my /usr/local/etc/procmailrc file
causes procmail to ignore ~/.procmailrc files. 

Is there a way to get procmail to look at ~/.procmailrc after it
reads /usr/local/etc/procmailrc ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: procmailrc question

2007-04-20 Thread David Banning
On Fri, Apr 20, 2007 at 11:41:04AM -0400, David Banning wrote:
 It seems that putting anything in my /usr/local/etc/procmailrc file
 causes procmail to ignore ~/.procmailrc files. 
 
 Is there a way to get procmail to look at ~/.procmailrc after it
 reads /usr/local/etc/procmailrc ?

It seems that anything that is not processed by the global procmailrc 
file is processed by the local .procmailrc file. What I would like to 
do is flag a few users only and send them to the their users .procmailrc
file. Kind of the reverse of the normal.

If I had to improvise;

:0
* [EMAIL PROTECTED]
What to put here to send to home .procmailrc

:0
* ^To.*anyoneelse
/var/mail/$LOGNAME
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: procmailrc question - solution?

2007-04-20 Thread David Banning
 It seems that anything that is not processed by the global procmailrc 
 file is processed by the local .procmailrc file. What I would like to 
 do is flag a few users only and send them to the their users .procmailrc
 file. Kind of the reverse of the normal.
 
 If I had to improvise;
 
 :0
 * [EMAIL PROTECTED]
 What to put here to send to home .procmailrc
 
 :0
 * ^To.*anyoneelse
 /var/mail/$LOGNAME

I may have found a solution here. It is possible to direct the email
back through procmail again, using the -m  option to use the 
private rc file;

:0
* [EMAIL PROTECTED]
|/usr/local/bin/procmail -m /usr/david/.procmailrc

the man page states;

 -m   Turns procmail into a general purpose mail filter.

seems to work. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: procmailrc question

2007-04-20 Thread David Banning
 You might take a close look at whatever you're putting into your etc/ 
 procmailrc file.
 
 I've got plenty of rules in my global etc/procmailrc and the  
 ~/.procmailrc files are processed as well.

Thanks for that Dan.

After having done some more reading, it seems private procmailrc
files are processed -after- the global procmailrc files.

I want to have all the users mail sent directly from the global 
procmailrc file to their mailboxes - that's no problem. Then I want
to single out, say one user in the global procmailrc file and have
that mail look at the personal .procmailrc file.   

You can send mail to a mailbox for a specific condition,
but you can't send mail to the private .procmailrc for processing
based on a condition - at least that's how it looks from where I sit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


sendmail with dovecot with nologin account

2007-04-17 Thread David Banning
I am using dovecot imap and I am having a problem directing mail to 
go to users in Maildir format when they do not have a login shell.

It seems that the .procmailrc file is ignored and the mail is put 
in mbox format into /var/mail

For mail-only users with-out a shell, what is the best way to direct
mail to them in Maildir format within ~/Maildir - maybe directly from
.forward?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail with dovecot with nologin account

2007-04-17 Thread David Banning
 For mail-only users with-out a shell, what is the best way to direct
 mail to them in Maildir format within ~/Maildir - maybe directly from
 .forward?
 
   
 Not an expert but I am just starting to think about moving from mbox to 
 mdir on my home server, so Id be interested in how you get on.
 man procmail says
   If  no rcfiles and no -p have been specified on the command line, 

Well as to my problem, it turns out that a shell is not needed for 
procmailrc to work. It was the permissions on the users home directory
that caused me grief.

On the use of mdir, I am not yet a veteran user but so far I like
it. It seems fast. I really like having each file separate, since
I am backing up the users mail; with mdir I can backup only the
new email which saves a lot of time on backup. I am sold on imap
P
as a mail delivery process. I was using imap-uw but it was not possible
to create subdirectories with mail clients. 

Two webmail clients, squirrelmail, and round-cube are both excellent
for imap use.  For mbox to mdir conversion, I used mb2md which kept
the original file date in tact - (better than mbox2mdir in the
ports) I used the page

http://batleth.sapienti-sat.org/projects/mb2md/

for reference which provides some good examples to automatically
setup directories and convert mailboxes.

All said, simple to setup and run. Dovecot also includes pop3 if 
you want to run it. If you have any questions you can try me.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


remote printing question

2007-04-04 Thread David Banning
I have a someone who wants to have a remote printer without using a
server at the printing location. Is it possible to do;

DSL Line-Modem - router - printer
 |
  -
  |   |
   laptop   laptop   
 
Their sales oriented operation is mostly take-away laptops, but they
want the printing to come into the office during their absence but 
don't see the need to have a server to service just the printer.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: remote printing question

2007-04-04 Thread David Banning
 Well, if your printer has its own Ethernet card and an IP address
 you can just set things up to go directly to it with no server.
 
 Or, what is that router?   If it is something like a FreeBSD box or
 other more full service system, it can probably handle the task of
 serving the printer as well.

Thanks Jerry.

I don't want to use a server. So the router would have to do NAT.
Is it possible that way for the outside world to address the 
printer directly since it has a network address, and not a 
www IP?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: remote printing question

2007-04-04 Thread David Banning
 I don't want to use a server. So the router would have to do NAT.
 Is it possible that way for the outside world to address the
 printer directly since it has a network address, and not a
 www IP?
 
 You can probably setup the router to forward the ports used by that 
 printer.  The ports you'd need to forward are dependent on the printer 
 driver.

Thanks for that Derek. Any idea what good routers could do the job?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Return-Path missing via sendmail

2007-03-24 Thread David Banning
I am getting error on some of my mail processing because there
is no Return-Path line in received emails. I see that the line
H?P?Return-Path: $g -does- exist in my sendmail.cf.

Since sendmail is recieving email from the outside world
before delivering it to procmail it should be possible to 
get sendmail to put the line in there. I understand that
the Return-Path line will be inserted with the line 
sendmail -f [EMAIL PROTECTED], however I don't know where
sendmail processing is executed to add the -f option - and here I
don't even know if this is the answer - just picking up from others
posts.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


how utilize several IP's on one line

2007-03-23 Thread David Banning
I just spoke with my DSL supplier and they said that they could give
me 5 IP addresses with a DSL line.  

I am used to only one IP address per phone line - how are the other
IP addresses from the same DSL line utlilized and routed to different
servers?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how utilize several IP's on one line

2007-03-23 Thread David Banning
 Connect the DSL modem to a switch or hub, and connect several  
 machines to that, each configured statically to use the /29 subnet  
 which your ISP is making available to you.
 
 This is assuming your DSL modem deals with any PPPoE/PPPoA login  
 stuff itself...if not, you might have to get a broadband router or  
 config a FreeBSD box to do the PPPoE stuff and then route the subnet  
 internally (perhaps using RFC-1918 addresses via natd  the  
 redirect_address directive).

Very helpful. Thanks Chuck. What decides which IP will go to each machine?
The router? If so what kind of router is that called? What is the term
I can search google on this to learn more?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


help on picking an IMAP server

2007-03-22 Thread David Banning
I have been using imap-uw for some time but now I would like to 
have an imap server that can have subfolders. Out with imap-uw..

I tried dovecot but I was unable to get it to create subfolders,
although it seems some say you can, may people are having problems
doing so, and I didn't like the fact that it changes the format of
the folders from the mbox standard.

So I tried cyrus-imap. It did allow me to create subfolders. Cyrus
however seems like it is a system-wide program. Where with imap-uw
and dovecot I could still keep my old non-imap mailboxes in tact
cyrus wants seemingly to control everything, doing away with /var/mail
and setting up it's own email format.

So I guess I'm hoping to get an imap-uw like imap, but one where I
can creat folders.

any suggestions?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: help on picking an IMAP server

2007-03-22 Thread David Banning
 You must have been doing something wrong.  I have Dovecot in multiple
 places and never had any trouble creating folders/subfolders.
 
 I use Maildir format for my mail store, for multiple reasons that you
 can research via Google if you're curious.  Perhaps the Maildir support
 is better than mbox.  If that's the case, you may want to consider
 switching to Maildir -- there is at least one mbox - Maildir conversion
 utility out there.

Hi Bill. 

I have Googled away and found lots of people who complain that they can't
creat subfolders under dovecot. I havn't seen anyone's problem resolved
in the theads. I have converted mbox to Maildir. I attempt to create
a subfolder from within Outlook - no go. How are you creating
the subfolders?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: help on picking an IMAP server

2007-03-22 Thread David Banning
 P.S. Just tried creating a subfolder with Outlook Express 6.00.2800.1807
 and Apple Mail Version 2.1 (752/752.2) and the previously mentioned
 IMAPs server, and it still works for both of them, so its not just in
 Thunderbird that it works.

OK  - I have it working - it seems the problem was slashes / in the 
existing Outlook directory names which imap does not allow.

here is my only problem now;

My incoming mail is still being directed to /var/mail in mbox format
- which is what I want, as most users are not imap.

but opening the imap inbox gives an error, presumably because it is
looking for maildir format and is finding mbox. Can dovecot be 
permitted to read incoming mail from as mbox format?

I have this in my dovecot.conf;

mail_location = maildir:~/Maildir/:INBOX=/var/mail/%u

I am wondering if something like;

mail_location = maildir:~/Maildir/:INBOX=mbox:/var/mail/%u

would work


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


thwarting repeated login attempts

2007-01-26 Thread David Banning
I have installed denyhosts from the ports to stop ssh attacks, but
I have discovered a vulnerability, that is new to me. Denyhosts
does not seem to notice FTP login attempts, so the cracker can
attempt to login via FTP, 1000's of times until he finds a
login/password combination.
   
Once he has a login/password combo, he can simple login via ssh,
(provided that user has a shell account).
   
Is there anyway to block multiple FTP login attempts?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: thwarting repeated login attempts

2007-01-26 Thread David Banning
 I have discovered a vulnerability, that is new to me. Denyhosts
 does not seem to notice FTP login attempts, so the cracker can
 attempt to login via FTP, 1000's of times until he finds a
 login/password combination.
 
 
 Pardon the stupid question, but I'm assuming it's necessary that you run 
 ftpd?  We block ftpd at the firewall to any machines outside the LAN. 
 Anyone who needs FTP access uses a client that's capable of using sftp 
 instead, and logs in with their SSH credentials.

Hmm - interesting - I just -may- be able to disable using ftpd.

But I still pose the same question - what do ftp servers do on this?
Maybe -not- have ssh login? -or- maybe not have ssh login using the
same login/password?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: thwarting repeated login attempts

2007-01-26 Thread David Banning
  I have installed denyhosts from the ports to stop ssh attacks, but
  I have discovered a vulnerability, that is new to me. Denyhosts
  does not seem to notice FTP login attempts, so the cracker can
  attempt to login via FTP, 1000's of times until he finds a
  login/password combination.
 
 We refuse to run ftp because it's nearly impossible to secure.

so that's what I have decided - and went with sftp exclusively.
thanks -
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


sendmail problem

2007-01-18 Thread David Banning
My problem is not with receiving but seems to be only with sending
to certain locations.

I started by getting this error on startup.

STARTTLS: ServerCertFile missing
Jan 18 13:52:53 3s1 sm-mta[30650]: started as: /usr/sbin/sendmail -L sm-mta -bd 
-q30m

I learned that someone's mail was not getting delivered

I then installed from the ports sendmail-sasl, ran into -more- problems,
deinsallled it, then went back to my original install by simply
going to /usr/src/usr.sbin/sendmail and;

make clean; make depend; make install

It seems be running except emails to certain servers are not accepted.

I still get the error;

STARTTLS: ServerCertFile missing

and now the following error messages, which indicate a refused connection
on the target end.

Jan 18 13:30:00 3s1 sendmail[22894]: STARTTLS: ClientCertFile missing
Jan 18 13:30:00 3s1 sendmail[22894]: STARTTLS: ClientKeyFile missing
Jan 18 13:30:00 3s1 sendmail[22894]: STARTTLS: CACertPath missing
Jan 18 13:30:00 3s1 sendmail[22894]: STARTTLS: CACertFile missing
Jan 18 13:30:00 3s1 sendmail[22894]: STARTTLS: CRLFile missing
Jan 18 13:30:00 3s1 sendmail[22894]: STARTTLS=client, init=1
Jan 18 13:30:00 3s1 sendmail[22898]: k3OF0cpa014374: SYSERR(root): readqf: 
./qfk3OF0cpa014374: incomplete queue file read
Jan 18 13:30:00 3s1 sendmail[22898]: k3OF1vpa013996: SYSERR(root): readqf: 
./qfk3OF1vpa013996: incomplete queue file read
Jan 18 13:30:00 3s1 sendmail[22898]: l0IEkjc0043268: makeconnection 
(cluster3.eu.messagelabs.com. [194.106.220.35]) failed: Connection refused by 
cluster3.eu.messagelabs.
com.

Any pointers would be useful.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


question on smtp AUTH

2007-01-13 Thread David Banning
I am still pouring over logs to check how my server has been spamming.

I am wondering about the possibility of someone using a working login and 
password 
to send spam through my server. So here is my question;

I look at my maillog and see the following spam;

maillog.0:Jan 11 02:14:17 3s1 sm-mta[3540]: l0B7EGO6003540: 
from=[EMAIL PROTECTED], size=478, class=0, nrcpts=1, msgid=200701110714.l0B7
[EMAIL PROTECTED], proto=ESMTP, daemon=MTA, relay=3s1.com [209.161.205.12]

[EMAIL PROTECTED] does not exist as a user on my system, but the relay is mine
(3s1.com), and 209.161.205.12 is mine.

How can I find out or log when a user sends mail, what authentication was
used? If they have to login to send through my server, who did they login
as? - how would I find that out?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: question on smtp AUTH

2007-01-13 Thread David Banning
 That would seem to suggest that the spam is being sent using an authorized 
 account, however, is it possible that a host inside your network is 
 sending the spam?

Thanks for that test Paul. I do believe that it could have been a virus
infected windows box. I am not convinced now. I -do- know that I have
had crackers attempting access via SSH and I did not have anything to
stop them from trying every possible configuration. Eventually they
may have gotten a usable login and password. I now have them blocked
after 5 failed attempts but still there could be someone spamming using
the login and password obtained previously. Before getting -everyone-
to change thier password I am wondering if there isn't a way to log
who is sending via what login authentication. I could then just
setup a new password for that user only.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: stopping my server from spamming

2007-01-08 Thread David Banning

This is more of a question geared towards your mail server application than 
FreeBSD. You should check your mail logs. If you want better advise, you may 
want to provide more information on what mail server are you running, and what 
did you do to prevent SMTP relay.


I am using sendmail. It will not allow open relaying. What I would
like to know is
how I can separate legitimate emails in the log from spam. All that
appears is the from:
email and the to:email.

In the past I have seen separate SMTP servers installed by viruses on
windows boxes
which are spamming away -independent- of sendmail. I have blocked port
25 from all
my connected windows boxes, but will that take care of it?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: stopping my server from spamming

2007-01-08 Thread David Banning
I think I located the problem. I discovered through one of the blacklist
hosters when exactly they received the spam and that helped me track
it to a virus infected windows box.

 
 Using nmap / tcpdump / snort to find rogue SMTP hosts is the next step I
 would pursue. Remember though, your hosts may not be causing the spam
 and it could instead be spoofing of some kind. For that, you can't do
 anything except talk to the mail providers that blacklisted your domain
 and get things cleared up.

These utilities where the direction of what I was looking for. Thanks for
that - I will look at the use of each and how I can trace what is going on
for future reference.

 Ultimately, I suggest switching to entirely AUTH based SMTP though to
 prevent this issue from occurring. You can either block port 25 from
 being routed or use net/smtptrapd (see http://smtptrapd.inodes.org/).

done.

Thanks Garret
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


stopping my server from spamming

2007-01-06 Thread David Banning
I have been blacklisted for spamming and I am attempting to ascertain the
source. 

I have a few networked windows boxes which route through a FBSD
server. I also have around ten off-site users who sendmail via port
26 - using smtp password authentication. How do I determine which
email going through the server is spam, and therefore identify the
source?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


  1   2   3   >