Re: usage of /usr/bin

2010-04-08 Thread Polytropon
Allow me an addition:

On Wed, 7 Apr 2010 10:13:10 -0700, Charlie Kester corky1...@comcast.net wrote:
 On Wed 07 Apr 2010 at 00:24:51 PDT Fbsd1 wrote:
 Why are there RELEASE base files in /usr/bin. I thought /usr was to
 only contain binaries installed from ports or packages.
 
 In many configurations, /bin and /usr/bin are not in the same slice.  In
 some cases, they're not even on the same drive.  

I think you wanted to say that they often aren't on the
same partition (not slice), but it is possible to have
them on different slices, as well as disks, as you
mentioned.

Example:
/dev/ad0s1a /   - /bin, /sbin, /etc reside here
/dev/ad0s1f /usr- /usr/bin, as well as /usr/local

In this example, both are on the same disk and within
the same slice, but on different partitions. In case of
mount trouble, / would usually be available read-only,
to provide a kind of reduced maintenance mode, and /usr
wouldn't be mounted at all.



 Think about scenarios where /usr fails to mount for some reason.  Then
 look at what's in /bin compared to what's in /usr/bin, and perhaps
 you'll understand the logic of it.

The manpage man hier explains it very well.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: usage of /usr/bin

2010-04-08 Thread Polytropon
On Wed, 07 Apr 2010 20:21:57 -0400, Lowell Gilbert 
freebsd-questions-lo...@be-well.ilk.org wrote:
 Fbsd1 fb...@a1poweruser.com writes:
  Your wrong. I installed the package of postfix and it installed it
  self into /usr/bin with out any help from me.
 
 Believe it or not, I checked before responding, so I'm *not* wrong.  I
 said that the port populates into /usr/local like it should, and having
 it on several machines for nearly a decade now, I knew that to be the
 case.  You then changed that to refer to a package rather than a port; I
 don't know where you got your packages from, but I checked the packages
 for 8-STABLE and for 8.0-RELEASE, and saw that they install into
 /usr/local as well.  So it sounds like your packages didn't come from
 the FreeBSD project, if they are really installing anything into
 /usr/bin.  
 
 Just as a sanity check:  what, specifically, is installed into /usr/bin
 on your system?  Most of the postfix executables go into sbin rather
 than bin anyway, so it's possible that something in the mailwrapper
 system is confusing you.  If you don't have a /usr/local/sbin/postfix,
 but have a /usr/sbin/postfix instead, then this is not the case.

A comfortable, maybe overcomplicated way to check what a package
will install - without actually installing it - is to use the
option -n for pkg_add (which obviously operates on packages,
not on ports).

So you could do:

pkg_add -fKnrv postfix  /tmp/postfix_add.txt

This even works if postfix is already installed. The options,
for a short reference, are: -f = force, -K = keep, -n = no
install, -r = remote and -v = verbose. You can then search
for lines that address specific locations in /usr/bin rather
than /usr/local/bin.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: How customized can an mfsroot be?

2010-04-08 Thread perryh
Peter Steele pste...@maxiscale.com wrote:
 In my read-only CD-ROM boot case, /var is created as a MFS device
 automatically and populated, but a basic directory layout only is
 used. Nothing from the CD-ROM /var is copied into the MFS /var
 that is created.

 I cannot figure out how BSD can do this automagically, so I'll
 have to have a duplicate copy of /var on the CD and populate it
 from that. What I've tried that works well is when I'm about to
 run mkisofs to create the .iso from, I rename my /var to /var2 and
 create an empty /var. When the iso is booted, a default MFS based
 /var is created with a specific collection of directories. I have
 a startup script that copies my /var2 contents into /var and that
 does the trick.

You might be able to reduce the iso size some by making a tarball
of /var (using tar -y or tar -z) instead of keeping /var2 as a tree.
Granted you would then need to have tar(1) in the iso, which may
cancel out much of the savings if you would not otherwise have
needed it.
___
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: usage of /usr/bin

2010-04-08 Thread Ross Cameron
On Thu, Apr 8, 2010 at 1:06 AM, Fbsd1 fb...@a1poweruser.com wrote:
 Lowell Gilbert wrote:

 Fbsd1 fb...@a1poweruser.com writes:

 But that is not true. The postfix port populates /usr/bin.

 By default, it does not.  You have to enable the Install into /usr and
 /etc/postfix configuration option for it to do so.  I don't recommend
 that anyone do it without a *really* good reason.  Turn that option back
 off and you'll be fine.


 Your wrong. I installed the package of postfix and it installed it self into
 /usr/bin with out any help from me.

You're argument then is with the person who build that package as it
was obviously build incorrectly.

The supported manner to install postfix (at least from my
understanding) is from ports and that by default installs withing the
/usr/local subtree.





-- 
Opportunity is most often missed by people because it is dressed in
overalls and looks like work.
Thomas Alva Edison
Inventor of 1093 patents, including:
The light bulb, phonogram and motion pictures.
___
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 8 New USB Stack Issues

2010-04-08 Thread Marcel Grandemange
Good Day.

I am really hopying someone can assist me here.

I have a E620 Huawei PCMCIA 3G card in a PCMCIA-TO-PCI Converter in a
Freebsd server for a sms server i run.

Now it used to run without issues, however since the change over from 7.2 to
8.0REL it no longer works and there are no entries under /dev/cuaux and so
forth.

It would be MUCH appreciated if i could be rescued here!

 

All Info In regards to this issue is available on the
http://forums.freebsd.org/showthread.php?t=12988 forum.

 

 

 

It seems many devices under new freebsd simply detach themselves..

 

Eg..

 

ugen0.2: HTC at usbus0

uipaq0: HTC Generic RNDIS, class 239/1, rev 2.00/0.00, addr 2 on usbus0

device_attach: uipaq0 attach returned 6

uipaq0: HTC Generic RNDIS, class 239/1, rev 2.00/0.00, addr 2 on usbus0

device_attach: uipaq0 attach returned 6

 

And

 

ohci1: NEC uPD 9210 USB controller mem 0xde7ad000-0xde7adfff irq 18 at
device 0.1 on cardbus0
ohci1: [ITHREAD]
usbus8: reset timeout
ohci1: USB init failed
device_attach: ohci1 attach returned 6

 

 

Regards

 

Marcel Grandemange

___
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: FreeBSD 8 New USB Stack Issues

2010-04-08 Thread Aiza

Marcel Grandemange wrote:

Good Day.

I am really hopeing someone can assist me here.

I have a E620 Huawei PCMCIA 3G card in a PCMCIA-TO-PCI Converter in a
Freebsd server for a sms server i run.

Now it used to run without issues, however since the change over from 7.2 to
8.0REL it no longer works and there are no entries under /dev/cuaux and so
forth.

Regards
Marcel Grandemange




From the 8.0 release notes is the following
http://www.freebsd.org/releases/8.0R/relnotes-detailed.html

[amd64, i386] The uart(4) is now the default driver for serial port 
devices in

favor of the sio(4) driver. Note that the device nodes have been renamed
with /dev/cuauN and /dev/ttyuN.


___
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: FreeBSD 8 New USB Stack Issues

2010-04-08 Thread Marcel Grandemange
Marcel Grandemange wrote:
 Good Day.
 
 I am really hopeing someone can assist me here.
 
 I have a E620 Huawei PCMCIA 3G card in a PCMCIA-TO-PCI Converter in a
 Freebsd server for a sms server i run.
 
 Now it used to run without issues, however since the change over from 7.2
to
 8.0REL it no longer works and there are no entries under /dev/cuaux and so
 forth.
 
 Regards
 Marcel Grandemange
 


 From the 8.0 release notes is the following
http://www.freebsd.org/releases/8.0R/relnotes-detailed.html

[amd64, i386] The uart(4) is now the default driver for serial port 
devices in
favor of the sio(4) driver. Note that the device nodes have been renamed
with /dev/cuauN and /dev/ttyuN.

Yes but the devices don't actually attach 

Eg..

 

ugen0.2: HTC at usbus0

uipaq0: HTC Generic RNDIS, class 239/1, rev 2.00/0.00, addr 2 on usbus0

device_attach: uipaq0 attach returned 6

uipaq0: HTC Generic RNDIS, class 239/1, rev 2.00/0.00, addr 2 on usbus0

device_attach: uipaq0 attach returned 6


As can be seen by the attach returned 6 

And

 

ohci1: NEC uPD 9210 USB controller mem 0xde7ad000-0xde7adfff irq 18 at
device 0.1 on cardbus0
ohci1: [ITHREAD]
usbus8: reset timeout
ohci1: USB init failed
device_attach: ohci1 attach returned 6

And Here again. Many devices Suffer Of 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

___
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: Kernel Config for NAT

2010-04-08 Thread Robert Huff

Adam Vande More writes:

  If compiled into the kernel, there's a set of optional settings
   (VERBOSE, LOG_LINIT, DEFAULT_TO_ACCEPT, etc) that can be set there.
  If using the module, how does one set these?
  
  Logging is compiled into the modules and there are a few sysctl's.  AFAIK,
  everything else is the same.
  
  http://www.freebsd.org/doc/handbook/firewalls-ipfw.html

It would be nice if this were made explicit in that handvook.
And the other two secotions harmonized as well.


Robert Huff


___
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: Kernel Config for NAT

2010-04-08 Thread Robert Huff
Adam Vande More writes:

  If compiled into the kernel, there's a set of optional settings
   (VERBOSE, LOG_LINIT, DEFAULT_TO_ACCEPT, etc) that can be set there.
  If using the module, how does one set these?
  
  Logging is compiled into the modules and there are a few sysctl's.  AFAIK,
  everything else is the same.
  
  http://www.freebsd.org/doc/handbook/firewalls-ipfw.html

So ... double-checking I'm doing this right:

1) in /boot/loader.conf:

ipfw_load=YES
ipdivert_load=YES

2) in the kernel config:

#options  IPFIREWALL  #firewall
#options  IPFIREWALL_VERBOSE  #enable logging to syslogd(8)
#options  IPFIREWALL_VERBOSE_LIMIT=100#limit verbosity
#options  IPFIREWALL_DEFAULT_TO_ACCEPT#allow everything by default
#options  IPDIVERT
#options  IPFIREWALL_NAT  #ipfw kernel nat support
options  LIBALIAS   # required for NAT

3) in /etc/sysctl.conf:

net.inet.ip.fw.default_to_accept=1
net.inet.ip.fw.verbose=1
net.inet.ip.fw.verbose_limit=100


That cover it?


Robert Huff

___
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: [ HEADS UP ] Ports unstable for the next 10 days

2010-04-08 Thread Antonio Olivares
On Wed, Apr 7, 2010 at 7:36 AM, Ion-Mihai Tetcu ite...@freebsd.org wrote:
 On Wed, 7 Apr 2010 07:20:47 -0500
 Antonio Olivares olivares14...@gmail.com wrote:

  [ .. ]

 === Port directory: /usr/ports/sysutils/fusefs-kmod
         === This port is marked IGNORE
         === requires the userland sources to be installed. Set
 SRC_BASE if it is not in /usr/src

         === If you are sure you can build it, remove the
                IGNORE line in the Makefile and try again.

 === Update for sysutils/fusefs-kmod failed
 === Aborting update

  [ .. ]
 What should I do in this case?

 First, please don't top post.

 Second, you don't seem to have the base sources installed and that
 port, being a kernel module, needs them.
 See:
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html

 --
 IOnut - Un^d^dregistered ;) FreeBSD user
  Intellectual Property is   nowhere near as valuable   as Intellect
 FreeBSD committer - ite...@freebsd.org, PGP Key ID 057E9F8B493A297B


Dear Ion-Mihai,

I have installed cvsup, but I don't really understand the page that I
was refered to

=== SECURITY REPORT:
  This port has installed the following files which may act as network
  servers and may therefore pose a remote security risk to the system.
/usr/local/sbin/cvsupd
/usr/local/bin/cvsup
/usr/local/bin/cvpasswd

  If there are vulnerabilities in these programs there may be a security
  risk to the system. FreeBSD makes no guarantee about the security of
  ports included in the Ports Collection. Please type 'make deinstall'
  to deinstall the port if this is a concern.

  For more information, and contact details about the security
  status of this software, see the following webpage:
http://www.cvsup.org/
===  Cleaning for ezm3-1.1_2
===  Cleaning for cvsup-without-gui-16.1h_4

I have installed it using ports system, but still get same error as
above.  I try to use cvsup the file, I get nothing, I try to go to the
port that refuses to update and make install clean and it says source
not available or refused?

I have used ports before and had no problems, I don't know what to do.

Thank you and others who have provided help.

*Sorry for top posting


Regards,

Antonio
___
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: [ HEADS UP ] Ports unstable for the next 10 days

2010-04-08 Thread Jeremy Chadwick
On Thu, Apr 08, 2010 at 07:42:06AM -0500, Antonio Olivares wrote:
 On Wed, Apr 7, 2010 at 7:36 AM, Ion-Mihai Tetcu ite...@freebsd.org wrote:
  On Wed, 7 Apr 2010 07:20:47 -0500
  Antonio Olivares olivares14...@gmail.com wrote:
 
   [ .. ]
 
  === Port directory: /usr/ports/sysutils/fusefs-kmod
          === This port is marked IGNORE
          === requires the userland sources to be installed. Set
  SRC_BASE if it is not in /usr/src
 
          === If you are sure you can build it, remove the
                 IGNORE line in the Makefile and try again.
 
  === Update for sysutils/fusefs-kmod failed
  === Aborting update
 
   [ .. ]
  What should I do in this case?
 
  First, please don't top post.
 
  Second, you don't seem to have the base sources installed and that
  port, being a kernel module, needs them.
  See:
  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html
 
  --
  IOnut - Un^d^dregistered ;) FreeBSD user
   Intellectual Property is   nowhere near as valuable   as Intellect
  FreeBSD committer - ite...@freebsd.org, PGP Key ID 057E9F8B493A297B
 
 
 Dear Ion-Mihai,
 
 I have installed cvsup, but I don't really understand the page that I
 was refered to
 
 === SECURITY REPORT:
   This port has installed the following files which may act as network
   servers and may therefore pose a remote security risk to the system.
 /usr/local/sbin/cvsupd
 /usr/local/bin/cvsup
 /usr/local/bin/cvpasswd
 
   If there are vulnerabilities in these programs there may be a security
   risk to the system. FreeBSD makes no guarantee about the security of
   ports included in the Ports Collection. Please type 'make deinstall'
   to deinstall the port if this is a concern.
 
   For more information, and contact details about the security
   status of this software, see the following webpage:
 http://www.cvsup.org/
 ===  Cleaning for ezm3-1.1_2
 ===  Cleaning for cvsup-without-gui-16.1h_4
 
 I have installed it using ports system, but still get same error as
 above.  I try to use cvsup the file, I get nothing, I try to go to the
 port that refuses to update and make install clean and it says source
 not available or refused?
 
 I have used ports before and had no problems, I don't know what to do.
 
 Thank you and others who have provided help.
 
 *Sorry for top posting

You didn't need to install cvsup from ports.  csup in the base system
will work just fine; it's the official replacement for cvsup.  itetcu@
was pointing you to the documentation describing the procedure for using
cvsup/csup.

Based on the thread so far, my understanding is that you need to
download the FreeBSD source repository (kernel, base system, etc.),
because the port you're trying to build (which is a kernel module)
requires it.

There are two cvsup files associated with the source repo:

/usr/share/examples/cvsup/standard-supfile
/usr/share/examples/cvsup/stable-supfile

Which you should use depends on if you're running -RELEASE or -STABLE.
The most important part in those files is the *default release=cvs
tag=XXX.  Specifically the tag=XXX part.

8.0-RELEASE's tag is RELENG_8_0, while 8.0-STABLE's tag is RELENG_8.
So which tag you use should be based on what version you wish to run.

So at this point, you should:

1) pkg_delete ezm3-1.1_2
2) pkg_delete cvsup-without-gui-16.1h_4
3) csup -h some cvsup server -L 2 /usr/share/example/cvsup/stable-supfile
   or
   csup -h some cvsup server -L 2 /usr/share/example/cvsup/standard-supfile

This will populate /usr/src on your system.  From there, you should be
able to build ports/sysutils/fusefs-kmod as normal without any problem.

Does this help explain things better?

-- 
| Jeremy Chadwick   j...@parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
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 8: Postfix policyd-weight not working!!!

2010-04-08 Thread perikillo
 Hi people.

 I'm working in my first spam gateway, using Postfix + policyd-weight.

 I have 2 jails for this, the jail-A is the mail server, where the mailboxes
exist, they are on each user home directory:

 /home/user-1
 /home/user-2
 /home/user-3
...
 /home/user-N

 This jail-A have samba+ldap=PDC, nss_ldap+pam_ldap working +
dovecot+postfix working to.

 id test
uid=10003(test) gid=513(Domain Users) groups=513(Domain Users)
id root
uid=0(root) gid=0(wheel) groups=0(wheel),5(operator),512(Domain Admins)

 I can add users without a issue using smbldap-tools.

 I have test dovecot+postfix and I can send emails with that jail.

Now I want to setup my spam gateway, is another jail called jail-B, I have
setup nss_ldap+pam_ldap to contact my PDC(jail-A) and is working:

id user1
uid=10002(user1) gid=513(Domain Users) groups=513(Domain Users)
id test
uid=10003(test) gid=513(Domain Users) groups=513(Domain Users)

Now, the part is the one is not working is postfix+ policyd-weight.

Went I test with other machine in the network using telnet, for some reason
once postfix accept the mail wants to send the email to the outside not
internally. I have setup transport to send the email jail-A but I don't see
any task doing this, check:

Apr  8 07:02:01 filtro postfix/qmgr[6723]: 97002BB47C2: from=t...@x.org,
size=409, nrcpt=1 (queue active)
Apr  8 07:02:04 filtro postfix/smtpd[6727]: connect from filtro.X.org
[192.168.49.7]
Apr  8 07:02:31 filtro postfix/smtp[6725]: connect to X.org[X.Y.Z.W]:25:
Operation timed out
Apr  8 07:02:31 filtro postfix/smtp[6725]: 97002BB47C2: to=us...@x.org,
relay=none, delay=869, delays=839/0.03/30/0, dsn=4.4.1, status=deferred
(connect to X.org[X.Y.Z.W]:25: Operation timed out)
Apr  8 07:02:45 filtro postfix/smtpd[6727]: 11699BB537C: client=X.dyndns.org
[192.168.49.7]
Apr  8 07:02:50 filtro postfix/cleanup[6731]: 11699BB537C:
message-id=20100408070245.11699bb5...@x.org
Apr  8 07:02:50 filtro postfix/qmgr[6723]: 11699BB537C: from=us...@x.org,
size=399, nrcpt=1 (queue active)
Apr  8 07:02:51 filtro postfix/smtpd[6727]: disconnect from filtro.X.org
[192.168.49.7]
Apr  8 07:03:20 filtro postfix/smtp[6725]: connect to X.org[X.Y.Z.W]:25:
Operation timed out
Apr  8 07:03:20 filtro postfix/smtp[6725]: 11699BB537C: to=us...@x.org,
relay=none, delay=45, delays=15/0/30/0, dsn=4.4.1, status=deferred (connect
to X.org[X.Y.Z.W]:25: Operation timed out)
Apr  8 07:10:00 filtro postfix/sendmail[6763]: fatal: root(0): No recipient
addresses found in message header

X.Y.Z.W -- Public address.

My postfix settings are this:

alias_maps = hash:/etc/aliases
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = /usr/local/share/doc/postfix
inet_interfaces = all
local_destination_concurrency_limit = 2
mail_owner = postfix
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
mydomain = X.org
myhostname = filtro.X.org
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix
relay_domains = $transport_maps
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks,
reject_unauth_destination,  reject_non_fqdn_recipient,
reject_invalid_helo_hostname,   check_policy_service
inet:[192.168.49.7]:12525
soft_bounce = no
transport_maps = hash:/usr/local/etc/postfix/transport
unknown_local_recipient_reject_code = 550

Now, my transport file is:

nis.X.orgsmtp:[192.168.49.6]  -jail-A

Is created:  transport.db

Another think, in the log I don't see went is touching policyd-weight:
12525 or this is just for the outside connections?

Is my first spam server, if u see something wrong please let me know, I will
appreciated, thanks all for your time!!!
___
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


gdm background picture missing

2010-04-08 Thread Jian Jun Wang
hi all,

I am not familiar with Freebsd, I installed 8.0-release, it had been working
well.  I read one post that USB webcam could be used in Freebsd 8.0
so I tried to install multimedia/webcamd, multimedia/cuse4bsd-kmod from the
port. It also upgraded jpeg from 7.0 to 8.0 and a lot of dependency ports.
when I rebooted my pc, gdm background picture was missing, the background
was in GREEN, and gimageview could not show pictures. I deinstalled jpeg8
and reinstalled jpeg7, then the gdm background picture/gimageview were good.

then I tried to install multimedia/pwcview , it compiled from ports, but
failed when tried to install gtk2.20 (I remember), it has upgraded some
lib/ports which I had no idea of. I can not tell which ports have been
upgraded while I tried to install pwcview.

then reboot machine, gdm background picture was missing, all background was
in GREEN. when I log in, gimageview works well, and other softwares such as
firefox/putty, all were good except rox-filer, (I was using fvwm-crystal)
when I opened rox-filer, all files/directories were displayed as red
exclamation mark, all files/directories. when I click on it, it still
worked, if I clicked on avi files, it will be open in gmplayer, that was
good.

1. files/directories in rox-filer are all red exclamation mark.
2. gdm login background picture missing, all in green (the orginal picture
was a green leaf)
3. in gdm login window, it also shows red-cross mark where it should be a
host picture.

So I think it might be that I upgraded some dependency ports/libraries or
whatever by accident, but I can not tell which one. Any suggestion on steps
to solve the problem?

Thank you very much.

Jerry.

-- 
TNT - Today, Not Tomorrow
___
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: Kernel Config for NAT

2010-04-08 Thread Adam Vande More
On Thu, Apr 8, 2010 at 7:10 AM, Robert Huff roberth...@rcn.com wrote:


 1) in /boot/loader.conf:

 ipfw_load=YES
 ipdivert_load=YES

 2) in the kernel config:

 #options  IPFIREWALL  #firewall
 #options  IPFIREWALL_VERBOSE  #enable logging to syslogd(8)
 #options  IPFIREWALL_VERBOSE_LIMIT=100#limit verbosity
 #options  IPFIREWALL_DEFAULT_TO_ACCEPT#allow everything by default
 #options  IPDIVERT
 #options  IPFIREWALL_NAT  #ipfw kernel nat support
 options  LIBALIAS   # required for NAT

 3) in /etc/sysctl.conf:

 net.inet.ip.fw.default_to_accept=1
 net.inet.ip.fw.verbose=1
 net.inet.ip.fw.verbose_limit=100


That's actually a good question considering the lack of documentation.  If
that works then great, but one wonders what the ipfw_nat modules is for?
...
looks like it's tied into libalias apparently a replacement for natd.

http://wiki.freebsd.org/Libalias

That seems to be a major problem with those GsoC projects, even if they get
something good working there is frequently no documentation with it.  Then
it sits there mostly unused waiting for bitrot to set in.  I don't know the
structure of GsoC, but if it's possible for the mentor to *strongly*
encourage documentation checkpoints(manpages, not wiki) I think these
projects would be better utilized.

-- 
Adam Vande More
___
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


AFS on FreeBSD 8?

2010-04-08 Thread Jan Henrik Sylvester

I tried to get an AFS client on my 8.0-RELEASE (or 8-STABLE) system.

What is the status of AFS on FreeBSD?

Neither OpenAFS nor Arla seem to be in ports.

I found the freebsd-afs mailing list with many posting from 2008/Dec but 
nothing from 2009 or 2010. The port-freebsd list on openafs.org has 
nothing newer, either.


http://wiki.freebsd.org/afs has instructions for Arla, but the build 
fails on 8.0-RELEASE.


http://wiki.freebsd.org/afs-server seems to be even older.

http://wiki.freebsd.org/AFS_using_OpenAFS_%2B_Arla gives me: You are 
not allowed to view this page.


Is there anything more current that I missed?

Thanks,
Jan Henrik
___
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: random FreeBSD panics

2010-04-08 Thread Anoop Kumar Narayanan
On Sat, Apr 3, 2010 at 6:21 PM, Masoom Shaikh masoom.sha...@gmail.com wrote:
 On Sun, Mar 28, 2010 at 5:38 PM, Ivan Voras ivo...@freebsd.org wrote:
 On 28 March 2010 16:42, Masoom Shaikh masoom.sha...@gmail.com wrote:

 lets assume if this is h/w problem, then how can other OSes overcome
 this ? is there a way to make FreeBSD ignore this as well, let it
 result in reasonable performance penalty.

 Very probably, if only we could detect where the problem is.
 Try adding options     PRINTF_BUFR_SIZE=128 to the kernel
 configuration file if you can, to see if you can get a less mangled
 log outout.


 ok, after few days of silence I am back with more questions
 this time system feels little better, it is able to sustain for more
 time that what 7.3-RELEASE could

 FreeBSD raptor 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Thu Apr  1
 01:20:45 UTC 2010     root@:/usr/obj/usr/src/sys/INSPIRON  amd64

 I am using KDE4, and when OS freezes, well it freezes, means I cannot
 change to tty0 and see the panic text, if any it might possibly have
 spit. the stuck frozen GUI keeps staring there. So the question is how
 to I capture that panic text ? unfortunately I am not getting core
 files too, so there is nothing I can pick up hints

 is there some option (KDB, DDB), so that on panic system drop to debugger ?

 Masoom Shaikh

I am having the very same problem, with my AMD64 running i386 (both
7.3-REL and 8.0-REL) keeps crashing, The best part is, if I disable
ACPI it crashes before it even boots up so is the case with safe-mode
and single-user-mode. With ACPI it boots up but crashes after a while.
I have the vmcore files on the system. Who do I contact on this regard
?

 ___
 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


RE: How customized can an mfsroot be?

2010-04-08 Thread Peter Steele
You might be able to reduce the iso size some by making a tarball of /var 
(using tar -y or tar -z) instead of keeping /var2 as a tree.
Granted you would then need to have tar(1) in the iso, which may cancel out 
much of the savings if you would not otherwise have needed it.

Actually, /var is tiny compared to everything else we have in the image so 
converting it to a tarball wouldn't really have any impact...


___
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: gdm background picture missing

2010-04-08 Thread Adam Vande More
On Thu, Apr 8, 2010 at 10:38 AM, Jian Jun Wang wangjian...@gmail.comwrote:

 Any suggestion on stepsto solve the problem?


Follow the steps in /usr/ports/UPDATING when you are updating ports.

Another option would be to pkg_delete * and install everything again from
ports.  There are good instructions for this in the portmaster man page.

-- 
Adam Vande More
___
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: random FreeBSD panics

2010-04-08 Thread Masoom Shaikh
On Thu, Apr 8, 2010 at 4:45 PM, Anoop Kumar Narayanan
anoop...@gmail.com wrote:
 On Sat, Apr 3, 2010 at 6:21 PM, Masoom Shaikh masoom.sha...@gmail.com wrote:
 On Sun, Mar 28, 2010 at 5:38 PM, Ivan Voras ivo...@freebsd.org wrote:
 On 28 March 2010 16:42, Masoom Shaikh masoom.sha...@gmail.com wrote:

 lets assume if this is h/w problem, then how can other OSes overcome
 this ? is there a way to make FreeBSD ignore this as well, let it
 result in reasonable performance penalty.

 Very probably, if only we could detect where the problem is.
 Try adding options     PRINTF_BUFR_SIZE=128 to the kernel
 configuration file if you can, to see if you can get a less mangled
 log outout.


 ok, after few days of silence I am back with more questions
 this time system feels little better, it is able to sustain for more
 time that what 7.3-RELEASE could

 FreeBSD raptor 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Thu Apr  1
 01:20:45 UTC 2010     root@:/usr/obj/usr/src/sys/INSPIRON  amd64

 I am using KDE4, and when OS freezes, well it freezes, means I cannot
 change to tty0 and see the panic text, if any it might possibly have
 spit. the stuck frozen GUI keeps staring there. So the question is how
 to I capture that panic text ? unfortunately I am not getting core
 files too, so there is nothing I can pick up hints

 is there some option (KDB, DDB), so that on panic system drop to debugger ?

 Masoom Shaikh

 I am having the very same problem, with my AMD64 running i386 (both
 7.3-REL and 8.0-REL) keeps crashing, The best part is, if I disable
 ACPI it crashes before it even boots up so is the case with safe-mode
 and single-user-mode. With ACPI it boots up but crashes after a while.
 I have the vmcore files on the system. Who do I contact on this regard
 ?

 ___
 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



can u load that file in kgdb in get backtrace ?
___
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


Unicode support in Free bsd.

2010-04-08 Thread Kotecha, Grishma
Can we name files in freebsd with unicode characters?
Also are unicode characters supported in file i/o system calls like open, 
dllopen, fopen? i.e. can we open a file with unicode pathname?
for e.g in windows CreatefileW is used for opening files with unicode pathnames 
(wide characters).

If so how to activate it. Is there any kind of environment variable that we 
need to set for it?

Regards,
Grishma
___
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: Unicode support in Free bsd.

2010-04-08 Thread Chuck Swiger
On Apr 8, 2010, at 12:11 PM, Kotecha, Grishma wrote:
 Can we name files in freebsd with unicode characters?

UFS/UFS2 supports 8-bit chars (except NULL), so UTF8 representation for Unicode 
filenames ought to work OK.

 Also are unicode characters supported in file i/o system calls like open, 
 dllopen, fopen? i.e. can we open a file with unicode pathname?

Yes.

 for e.g in windows CreatefileW is used for opening files with unicode 
 pathnames (wide characters).

You can't use USC-2 / UTF-16 widechars.

Regards,
-- 
-Chuck

___
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: Unicode support in Free bsd.

2010-04-08 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/04/2010 20:11:15, Kotecha, Grishma wrote:
 Can we name files in freebsd with unicode characters?
 Also are unicode characters supported in file i/o system calls like open, 
 dllopen, fopen? i.e. can we open a file with unicode pathname?
 for e.g in windows CreatefileW is used for opening files with unicode 
 pathnames (wide characters).
 
 If so how to activate it. Is there any kind of environment variable that we 
 need to set for it?

In Unix you can create file names containing any arbitrary sequence of
characters except for NULL (marks the end of a string in C) or '/' (the
directory separator)  All of the variants on open(2) and similar
functions will accept any sequence of bytes conforming to that as a
filename.

The tricky bit is getting the user-interface to interpret those names as
Unicode (or whatever) and show you the appropriate sequence of glyphs in
whatever character set you prefer.  In general you need to set various
locale related environment variables plus you may need to run
specialized terminal emulator software to enable means for entering
non-roman characters via your keyboard.

See: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/l10n.html

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku+OxUACgkQ8Mjk52CukIwN0wCeO9QlEcsHkjpyaTPEeXRj+luT
F18An0n1tqLRE6nD2Mrw/XKOGoWfYoxh
=1s6j
-END PGP SIGNATURE-
___
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: gdm background picture missing

2010-04-08 Thread Chris Whitehouse

Adam Vande More wrote:

On Thu, Apr 8, 2010 at 10:38 AM, Jian Jun Wang wangjian...@gmail.comwrote:


Any suggestion on stepsto solve the problem?



Follow the steps in /usr/ports/UPDATING when you are updating ports.

Another option would be to pkg_delete * and install everything again from
ports.  There are good instructions for this in the portmaster man page.



I've always had good success with ports-mgmt/portmanager

#cd /usr/ports/ports-mgmt/portmanager
#make install clean
#rehash
#cd

then portmanager -s to tell you what needs upgrading, eg
#portmanager -s  portmanager.status
#portmanager -l -u
to actually do it. See the man page for more options.

I extract a list of ports that are not CURRENT from portmanager.status 
then cycle through them doing 'make config' in each ports directory so 
that portmanager can be left to run unattended, eg (assuming csh)

#foreach i ( `cat ports_to_upgrade`)
foreach? cd /usr/ports/$i
foreach? make config
foreach? cd
foreach? end
#

where ports_to_upgrade contains something like
converters/libiconv
devel/gettext
databases/mysql51-client
databases/mysql51-server
devel/m4
misc/help2man
sysutils/tmux
databases/p5-DBD-mysql51
audio/mpg123
x11/dri2proto
...

Note upgrading ports can take a long time, even days if you have lots of 
ports and a slow machine. You can quite happily interrupt portmanager 
though and start it again later (but see the man page for a caveat).


I haven't tested on the bump from jpeg7 to jpeg8 but mostly portmanager 
just works.


Chris
___
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: Unicode support in Free bsd.

2010-04-08 Thread Alejandro Imass
On Thu, Apr 8, 2010 at 4:22 PM, Matthew Seaman
m.sea...@infracaninophile.co.uk wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 08/04/2010 20:11:15, Kotecha, Grishma wrote:
 Can we name files in freebsd with unicode characters?
 Also are unicode characters supported in file i/o system calls like open, 
 dllopen, fopen? i.e. can we open a file with unicode pathname?
 for e.g in windows CreatefileW is used for opening files with unicode 
 pathnames (wide characters).
[...]
 The tricky bit is getting the user-interface to interpret those names as
 Unicode (or whatever) and show you the appropriate sequence of glyphs in
 whatever character set you prefer.  In general you need to set various
 locale related environment variables plus you may need to run
 specialized terminal emulator software to enable means for entering
 non-roman characters via your keyboard.


I find this thread interesting because I had similar problems in FBSD
with UTF-8. The virtual terminals will not support multi-byte
characters nor several other things. Nevertheless, if you have Gnome
(and I guess KDE as well) you can configure _that_ environment quite
easily to support UTF-8.

Just add:

gdm_lang=en_US.UTF-8

or whatever other locale you want in your rc.conf and that's it. You
can also customize this on a per-user basis. I haven't got the
languages list to work yet in GDM, but all I needed was UTF-8 anyway.
If anyone knows how to get multi-locales to work with GDM it would be
awesome. I searched several threads but noone seemed to have an aswer.

Anyway, hope this helps.

Alejandro Imass




 See: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/l10n.html

        Cheers,

        Matthew

 - --
 Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAku+OxUACgkQ8Mjk52CukIwN0wCeO9QlEcsHkjpyaTPEeXRj+luT
 F18An0n1tqLRE6nD2Mrw/XKOGoWfYoxh
 =1s6j
 -END PGP SIGNATURE-
 ___
 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


Re: AFS on FreeBSD 8?

2010-04-08 Thread Ivan Voras

Jan Henrik Sylvester wrote:

I tried to get an AFS client on my 8.0-RELEASE (or 8-STABLE) system.

What is the status of AFS on FreeBSD?

Neither OpenAFS nor Arla seem to be in ports.

I found the freebsd-afs mailing list with many posting from 2008/Dec but 
nothing from 2009 or 2010. The port-freebsd list on openafs.org has 
nothing newer, either.


http://wiki.freebsd.org/afs has instructions for Arla, but the build 
fails on 8.0-RELEASE.


http://wiki.freebsd.org/afs-server seems to be even older.

http://wiki.freebsd.org/AFS_using_OpenAFS_%2B_Arla gives me: You are 
not allowed to view this page.


Is there anything more current that I missed?


Try asking on freebsd-fs@ or freebsd-current@ lists.

___
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: Kernel Config for NAT

2010-04-08 Thread Gary Dunn
On Thu, 8 Apr 2010 08:10:34 -0400 Robert Huff roberth...@rcn.com wrote:

   So ... double-checking I'm doing this right:

 1) in /boot/loader.conf:

 ipfw_load=YES
 ipdivert_load=YES
yes; see NAT HB 31.9.3

 2) in the kernel config:

IMHO, and according to Adam Vandr More, kernel options are no longer required.

 3) in /etc/sysctl.conf:

 net.inet.ip.fw.default_to_accept=1
see NAT HB 31.9.3

 net.inet.ip.fw.verbose=1
 net.inet.ip.fw.verbose_limit=100
see IPFW HB 30.6.1

I would use a smaller limit such as 5.


   That cover
 it?

Still need entries in /etc/rc.conf. See  HB 30.9.5, 30.6.3, 30.6.5.7

I also have DHCP serving the downstream (private) network. Upstream gets 
configured by dhclient.
--
Gary Dunn, Honolulu
o...@aloha.com
http://openslate.net/
http://e9erust.blogspot.com/
Sent from a Newton 2100 via Mail V
___
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


Does NAT require DNS (named)?

2010-04-08 Thread Gary Dunn
Continuing the saga of building a wireless access point, what is the best way 
to provide DNS service to the dowstream network? Seems like all I need is a 
simple pass-through. For that named seems like overkill. Anyone have an 
/etc/named/named.conf that does that?


--
Gary Dunn, Honolulu
o...@aloha.com
http://openslate.net/
http://e9erust.blogspot.com/
Sent from a Newton 2100 via Mail V
___
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: Does NAT require DNS (named)?

2010-04-08 Thread Chuck Swiger
On Apr 8, 2010, at 1:57 PM, Gary Dunn wrote:
 Continuing the saga of building a wireless access point, what is the best way 
 to provide DNS service to the dowstream network?

Run a nameserver?

 Seems like all I need is a simple pass-through. For that named seems like 
 overkill. Anyone have an /etc/named/named.conf that does that?

named is fine, although I was happier with it's security history in the prior 
millennium than I am recently.  But, if you don't want to run your own 
nameserver, point them toward nameservers run by your upstream network 
provider...

Regards,
-- 
-Chuck

___
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: Does NAT require DNS (named)?

2010-04-08 Thread mikel king


On Apr 8, 2010, at 4:57 PM, Gary Dunn wrote:

Continuing the saga of building a wireless access point, what is the  
best way to provide DNS service to the dowstream network? Seems like  
all I need is a simple pass-through. For that named seems like  
overkill. Anyone have an /etc/named/named.conf that does that?



--
Gary Dunn, Honolulu
o...@aloha.com
http://openslate.net/
http://e9erust.blogspot.com/
Sent from a Newton 2100 via Mail V


Depends on how your internal LAN is configured. Generally if there are  
no internal servers then you can forgo deploying a DNS server. Simply  
setup your firewall IPFW or pf or whatever you are using to allow  
clients to go out to the net and look names up. You will likely need a  
dhcp server though so that your wireless clients can auto-discover the  
appropriate network settings, but you can elect to do that manually as  
well if it's your desire.



Regards,
Mikel King
CEO, Olivent Technologies
Senior Editor, BSD News Network
Columnist, BSD Magazine
skype:mikel.king
http://olivent.com
http://www.linkedin.com/in/mikelking
http://twitter.com/mikelking

___
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: Kernel Config for NAT

2010-04-08 Thread Robert Huff


  IMHO, and according to Adam Vandr More, kernel options are no
  longer required. 

The original reason I asked was:

30.6.2 Kernel Options

It is not a mandatory requirement to enable IPFW by
compiling the following options into the FreeBSD kernel,
unless NAT functionality is required. 


I do want NAT, and there is no unambiguous path in the
Handbook.


  Still need entries in /etc/rc.conf. See  HB 30.9.5, 30.6.3,
  30.6.5.7

Once ipfw is running, I should have the rulesets covered.



Robert Huff



___
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: Does NAT require DNS (named)?

2010-04-08 Thread Darek M

Gary Dunn wrote:

Continuing the saga of building a wireless access point, what is the best way 
to provide DNS service to the dowstream network? Seems like all I need is a 
simple pass-through. For that named seems like overkill. Anyone have an 
/etc/named/named.conf that does that?


I normally run a copy of djbdns on the private IP, having private 
clients use that for DNS.  Alternately, the private clients could just 
use your ISP's caching servers, which should work without any other 
configuration (possibly an allowance on the firewall).


- Darek
___
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: FreeBSD 8: Postfix policyd-weight not working!!!

2010-04-08 Thread Noel Jones
On Thu, Apr 8, 2010 at 9:29 AM, perikillo periki...@gmail.com wrote:
  Hi people.

  I'm working in my first spam gateway, using Postfix + policyd-weight.

  I have 2 jails for this, the jail-A is the mail server, where the mailboxes
 exist, they are on each user home directory:

  /home/user-1
  /home/user-2
  /home/user-3
 ...
  /home/user-N

  This jail-A have samba+ldap=PDC, nss_ldap+pam_ldap working +
 dovecot+postfix working to.

  id test
 uid=10003(test) gid=513(Domain Users) groups=513(Domain Users)
 id root
 uid=0(root) gid=0(wheel) groups=0(wheel),5(operator),512(Domain Admins)

  I can add users without a issue using smbldap-tools.

  I have test dovecot+postfix and I can send emails with that jail.

 Now I want to setup my spam gateway, is another jail called jail-B, I have
 setup nss_ldap+pam_ldap to contact my PDC(jail-A) and is working:

 id user1
 uid=10002(user1) gid=513(Domain Users) groups=513(Domain Users)
 id test
 uid=10003(test) gid=513(Domain Users) groups=513(Domain Users)

 Now, the part is the one is not working is postfix+ policyd-weight.

 Went I test with other machine in the network using telnet, for some reason
 once postfix accept the mail wants to send the email to the outside not
 internally. I have setup transport to send the email jail-A but I don't see
 any task doing this, check:

 Apr  8 07:02:01 filtro postfix/qmgr[6723]: 97002BB47C2: from=t...@x.org,
 size=409, nrcpt=1 (queue active)
 Apr  8 07:02:04 filtro postfix/smtpd[6727]: connect from filtro.X.org
 [192.168.49.7]
 Apr  8 07:02:31 filtro postfix/smtp[6725]: connect to X.org[X.Y.Z.W]:25:
 Operation timed out
 Apr  8 07:02:31 filtro postfix/smtp[6725]: 97002BB47C2: to=us...@x.org,
 relay=none, delay=869, delays=839/0.03/30/0, dsn=4.4.1, status=deferred
 (connect to X.org[X.Y.Z.W]:25: Operation timed out)

You say that X.org should be delivered locally.  Postfix doesn't think
X.org is a local domain.

 Apr  8 07:10:00 filtro postfix/sendmail[6763]: fatal: root(0): No recipient
 addresses found in message header

This appears that you've used sendmail -t to inject some mail, and
there was no To: header.
Don't rely on headers for mail routing.



 X.Y.Z.W -- Public address.

 My postfix settings are this:

 alias_maps = hash:/etc/aliases
 command_directory = /usr/local/sbin
 config_directory = /usr/local/etc/postfix
 daemon_directory = /usr/local/libexec/postfix
 data_directory = /var/db/postfix
 debug_peer_level = 2
 home_mailbox = Maildir/
 html_directory = /usr/local/share/doc/postfix
 inet_interfaces = all
 local_destination_concurrency_limit = 2
 mail_owner = postfix
 mailq_path = /usr/local/bin/mailq
 manpage_directory = /usr/local/man
 mydomain = X.org
 myhostname = filtro.X.org

You might want to add
mydestination = $mydomain $myhostname localhost


 myorigin = $mydomain
 newaliases_path = /usr/local/bin/newaliases
 queue_directory = /var/spool/postfix
 readme_directory = /usr/local/share/doc/postfix
 relay_domains = $transport_maps

Bad idea.  If you add a transport for eg. hotmail, you become an
instant open relay.  Don't reuse transport_maps this way.

If mail is delivered locally on this box, relay_domains should be
explicitly set empty.
relay_domains =


 sample_directory = /usr/local/etc/postfix
 sendmail_path = /usr/local/sbin/sendmail
 setgid_group = maildrop
 smtpd_delay_reject = yes
 smtpd_helo_required = yes
 smtpd_recipient_restrictions = permit_mynetworks,
 reject_unauth_destination,      reject_non_fqdn_recipient,
 reject_invalid_helo_hostname,   check_policy_service
 inet:[192.168.49.7]:12525
 soft_bounce = no
 transport_maps = hash:/usr/local/etc/postfix/transport
 unknown_local_recipient_reject_code = 550

 Now, my transport file is:

 nis.X.org    smtp:[192.168.49.6]  -jail-A

 Is created:  transport.db

 Another think, in the log I don't see went is touching policyd-weight:
 12525 or this is just for the outside connections?

Mail that's permitted by permit_mynetworks or submitted via the
sendmail(1) interface won't trigger the policy server in your config.


  -- Noel Jones
___
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: FreeBSD 8: Postfix policyd-weight not working!!!

2010-04-08 Thread perikillo
On Thu, Apr 8, 2010 at 2:57 PM, Noel Jones noeld...@gmail.com wrote:

 On Thu, Apr 8, 2010 at 9:29 AM, perikillo periki...@gmail.com wrote:
   Hi people.
 
   I'm working in my first spam gateway, using Postfix + policyd-weight.
 
   I have 2 jails for this, the jail-A is the mail server, where the
 mailboxes
  exist, they are on each user home directory:
 
   /home/user-1
   /home/user-2
   /home/user-3
  ...
   /home/user-N
 
   This jail-A have samba+ldap=PDC, nss_ldap+pam_ldap working +
  dovecot+postfix working to.
 
   id test
  uid=10003(test) gid=513(Domain Users) groups=513(Domain Users)
  id root
  uid=0(root) gid=0(wheel) groups=0(wheel),5(operator),512(Domain Admins)
 
   I can add users without a issue using smbldap-tools.
 
   I have test dovecot+postfix and I can send emails with that jail.
 
  Now I want to setup my spam gateway, is another jail called jail-B, I
 have
  setup nss_ldap+pam_ldap to contact my PDC(jail-A) and is working:
 
  id user1
  uid=10002(user1) gid=513(Domain Users) groups=513(Domain Users)
  id test
  uid=10003(test) gid=513(Domain Users) groups=513(Domain Users)
 
  Now, the part is the one is not working is postfix+ policyd-weight.
 
  Went I test with other machine in the network using telnet, for some
 reason
  once postfix accept the mail wants to send the email to the outside not
  internally. I have setup transport to send the email jail-A but I don't
 see
  any task doing this, check:
 
  Apr  8 07:02:01 filtro postfix/qmgr[6723]: 97002BB47C2: from=t...@x.org
 ,
  size=409, nrcpt=1 (queue active)
  Apr  8 07:02:04 filtro postfix/smtpd[6727]: connect from filtro.X.org
  [192.168.49.7]
  Apr  8 07:02:31 filtro postfix/smtp[6725]: connect to X.org[X.Y.Z.W]:25:
  Operation timed out
  Apr  8 07:02:31 filtro postfix/smtp[6725]: 97002BB47C2: to=us...@x.org
 ,
  relay=none, delay=869, delays=839/0.03/30/0, dsn=4.4.1, status=deferred
  (connect to X.org[X.Y.Z.W]:25: Operation timed out)

 You say that X.org should be delivered locally.  Postfix doesn't think
 X.org is a local domain.

  Apr  8 07:10:00 filtro postfix/sendmail[6763]: fatal: root(0): No
 recipient
  addresses found in message header

 This appears that you've used sendmail -t to inject some mail, and
 there was no To: header.
 Don't rely on headers for mail routing.


 
  X.Y.Z.W -- Public address.
 
  My postfix settings are this:
 
  alias_maps = hash:/etc/aliases
  command_directory = /usr/local/sbin
  config_directory = /usr/local/etc/postfix
  daemon_directory = /usr/local/libexec/postfix
  data_directory = /var/db/postfix
  debug_peer_level = 2
  home_mailbox = Maildir/
  html_directory = /usr/local/share/doc/postfix
  inet_interfaces = all
  local_destination_concurrency_limit = 2
  mail_owner = postfix
  mailq_path = /usr/local/bin/mailq
  manpage_directory = /usr/local/man
  mydomain = X.org
  myhostname = filtro.X.org

 You might want to add
 mydestination = $mydomain $myhostname localhost


  myorigin = $mydomain
  newaliases_path = /usr/local/bin/newaliases
  queue_directory = /var/spool/postfix
  readme_directory = /usr/local/share/doc/postfix
  relay_domains = $transport_maps

 Bad idea.  If you add a transport for eg. hotmail, you become an
 instant open relay.  Don't reuse transport_maps this way.

 If mail is delivered locally on this box, relay_domains should be
 explicitly set empty.
 relay_domains =


  sample_directory = /usr/local/etc/postfix
  sendmail_path = /usr/local/sbin/sendmail
  setgid_group = maildrop
  smtpd_delay_reject = yes
  smtpd_helo_required = yes
  smtpd_recipient_restrictions = permit_mynetworks,
  reject_unauth_destination,  reject_non_fqdn_recipient,
  reject_invalid_helo_hostname,   check_policy_service
  inet:[192.168.49.7]:12525
  soft_bounce = no
  transport_maps = hash:/usr/local/etc/postfix/transport
  unknown_local_recipient_reject_code = 550
 
  Now, my transport file is:
 
  nis.X.orgsmtp:[192.168.49.6]  -jail-A
 
  Is created:  transport.db
 
  Another think, in the log I don't see went is touching policyd-weight:
  12525 or this is just for the outside connections?

 Mail that's permitted by permit_mynetworks or submitted via the
 sendmail(1) interface won't trigger the policy server in your config.


Thanks Noel for your quick answer, just would like to inform u that this is
a spam server not a email server, once this server accept the email, he need
to send it to the real mail server, is other machine in the network(other
jail).

 This is why I'm using the transport stuff, if exist a more secure way
please let me know, spam server + email server exist in the same
network(jails).

 The test  was made with telnet, about the sendmail, I don't know went I
setup something about sendmail, I just have been working with postfix.

 Thanks again!!!


  -- Noel Jones

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

Adding a Disk and Changing Mountpoints

2010-04-08 Thread Programmer In Training
Saturday I'll be adding a second 40GB and a tertiary 6GB disk to the
system (in favor of adding a CD-RW to a system that already has a DVD
super multi-format drive). I'd like to rearrange my mount points a bit.

Here is my current fstab.

# DeviceMountpoint  FStype  Options
DumpPass#
/dev/ad0s1b noneswapsw
0   0
/dev/ad0s1a /   ufs rw
1   1
/dev/ad0s1e /tmpufs rw
2   2
/dev/ad0s1f /usrufs rw
2   2
/dev/ad0s1d /varufs rw
2   2
/dev/acd0   /mnt/cdrom  cd9660
ro,noauto   0   0
linproc /usr/compat/linux/proc  linprocfs   rw
0   0

Specifically I would like to move /usr/home to the 40GB drive and
possibly move /var to the 6GB drive (depending on how the drive
behaves). I know it should be as easy as moving the relevant directories
to the new drives once the file systems have been finalized. I'm just
curious as to any issues I might need to be on the watch for (obviously
I'll be editing fstab before moving the directories, then issuing the
mount command as appropriate).

I'm doing this move specifically for space issues. My current drive
(40GB) is nearly full (I only have 2.5GB left on /usr). I wish I
wouldn't have deleted this mornings reports so I can give a run down on
specifically how much is left everywhere, but it's getting pretty full.
Once I've moved /var and /usr/home to their own disks, how can I reclaim
what has already been allocated for them? Or will that happen
automatically? Any specific concerns about that? Or would gparted and
not fdisk be my friend here?

By the way, the above is the default configuration for my system. I did
nothing to modify the default values calculated when I did the install
(I also plan on attacking my problem with jpeg that day too, running ldd
left me with a 40+KB file to sort through).
-- 
Yours In Christ,

PIT
Emails are not formal business letters, whatever businesses may want.
Original content copyright under the OWL http://owl.apotheon.org
Please do not CC me. If I'm posting to a list it is because I am subscribed.



signature.asc
Description: OpenPGP digital signature


Re: Unicode support in Free bsd.

2010-04-08 Thread Yury Michurin
UTF8 works grate here in irssi and tcsh over putty, same goes for filenames.
Had no problem with it what so ever, just needed to set in .cshrc:

setenv LC_CTYPE he_IL.UTF-8

never checked any X applications though.

On Thu, Apr 8, 2010 at 11:37 PM, Alejandro Imass a...@p2ee.org wrote:

 On Thu, Apr 8, 2010 at 4:22 PM, Matthew Seaman
 m.sea...@infracaninophile.co.uk wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  On 08/04/2010 20:11:15, Kotecha, Grishma wrote:
  Can we name files in freebsd with unicode characters?
  Also are unicode characters supported in file i/o system calls like
 open, dllopen, fopen? i.e. can we open a file with unicode pathname?
  for e.g in windows CreatefileW is used for opening files with unicode
 pathnames (wide characters).
 [...]
  The tricky bit is getting the user-interface to interpret those names as
  Unicode (or whatever) and show you the appropriate sequence of glyphs in
  whatever character set you prefer.  In general you need to set various
  locale related environment variables plus you may need to run
  specialized terminal emulator software to enable means for entering
  non-roman characters via your keyboard.
 

 I find this thread interesting because I had similar problems in FBSD
 with UTF-8. The virtual terminals will not support multi-byte
 characters nor several other things. Nevertheless, if you have Gnome
 (and I guess KDE as well) you can configure _that_ environment quite
 easily to support UTF-8.

 Just add:

 gdm_lang=en_US.UTF-8

 or whatever other locale you want in your rc.conf and that's it. You
 can also customize this on a per-user basis. I haven't got the
 languages list to work yet in GDM, but all I needed was UTF-8 anyway.
 If anyone knows how to get multi-locales to work with GDM it would be
 awesome. I searched several threads but noone seemed to have an aswer.

 Anyway, hope this helps.

 Alejandro Imass




  See: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/l10n.html
 
 Cheers,
 
 Matthew
 
  - --
  Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
   Flat 3
  PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
   Kent, CT11 9PW
  -BEGIN PGP SIGNATURE-
  Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
  Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
  iEYEARECAAYFAku+OxUACgkQ8Mjk52CukIwN0wCeO9QlEcsHkjpyaTPEeXRj+luT
  F18An0n1tqLRE6nD2Mrw/XKOGoWfYoxh
  =1s6j
  -END PGP SIGNATURE-
  ___
  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

___
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 8 using VERY LITTLE memory

2010-04-08 Thread Brodey Dover
Hello all,

First post to this list! I have an older PII machine that I upgraded
from 192MB of ram to 672MB of RAM (512, 32, 128) and upon boot the
system's BIOS recognizes all 672MB RAM, FreeBSD also recognizes the
672MB RAM but decides to be nice and cool by using 17MB RAM...bwah?

Here is the output from the dmesg lines.

FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009
r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Pentium II/Pentium II Xeon/Celeron (348.21-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x652  Stepping = 2
  
Features=0x183f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
/ MEMORY STUFF /
real memory  = 704905216 (672 MB)
avail memory = 18116608 (17 MB) === why? is it a sysctl?
/ MEMORY STUFF /
kbd1 at kbdmux0
acpi0: COMPAQ CPQB0B5 on motherboard
acpi0: [ITHREAD]
acpi0: reservation of 0, a (3) failed
acpi0: reservation of 10, 29f0 (3) failed
Timecounter ACPI-safe frequency 3579545 Hz quality 850
acpi_timer0: 24-bit timer at 3.579545MHz port 0xf808-0xf80b on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
agp0: Intel 82443BX (440 BX) host to PCI bridge on hostb0

there are no other errors that I can find.

Thanks in advance,
Brodey Dover
___
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: perl qstn...

2010-04-08 Thread RW
On Wed, 7 Apr 2010 19:15:05 -0600
Chad Perrin per...@apotheon.com wrote:

 On Wed, Apr 07, 2010 at 01:09:54PM +0100, RW wrote:
  On Tue, 6 Apr 2010 21:07:17 -0600
  Chad Perrin per...@apotheon.com wrote:
  
   On Tue, Apr 06, 2010 at 01:20:49PM +0100, RW wrote:
On Mon, 5 Apr 2010 19:55:44 -0600
Chad Perrin per...@apotheon.com wrote:

 On Mon, Apr 05, 2010 at 05:36:32PM +0100, RW wrote:
  
 There are more things in heav'n and earth, Horatio, than are
 dreamt of by designers of eagerly evaluated prefix notation
 languages.

And most of them are obscure for good reasons. Just because a a
syntax fits into a classification scheme doesn't make it a good
idea.
  
   Shall we trade more trite sniping, or would you like to say
   something more substantive? 
  
  You started it.
 
 1. No, I used a misquote to lead into a lengthy explanation.
 

You started with a patronising  misquote implying ignorance of
wider context.

  I'm not, I'm expressing an opinion that this is not a feature worth
  copying.
 
 Judging by your further disputations with Mr. Schwartz, I don't think
 I believe you.

I can live with that.

If I don't think it worth copying, I'm not going to like it in perl.
That's not the same as telling you what you should and shouldn't do.

I don't use perl or python all that much, and I wasn't aware of quite
how religious an issue this is. I thought I was commenting on a perl
feature, but it appears to have been interpreted as an attack on your
faith. 


   Frankly, if everybody just stuck to a purely natural order of
   decision approach to imperative language design, we would never
   even have developed structured programming.
  
  I have no idea what you trying to say here. I presume it must be
  some kind of straw man argument.
 
 It's not a straw man argument.  Your presumption is wrong.

Then your comment is simply noise.

Most structured languages get by without the feature I'm referring to,
and I've made it clear I'm not talking about ordering in any other
context.

___
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: Does NAT require DNS (named)?

2010-04-08 Thread Gary Dunn
On Thu, 8 Apr 2010 17:05:12 -0400 mikel king mikel.k...@olivent.com wrote:

 On Apr 8, 2010, at 4:57 PM, Gary Dunn wrote:

 Continuing the saga of building a wireless access point, what is the
 best way to provide DNS service to the dowstream network? Seems like
 all I need is a simple pass-through. For that named seems like
 overkill. Anyone have an /etc/named/named.conf that does that?


 Depends on how your internal LAN is configured. Generally if there are
 no internal servers then you can forgo deploying a DNS server. Simply
 setup your firewall IPFW or pf or whatever you are using to allow
 clients to go out to the net and look names up. You will likely need a
 dhcp server though so that your wireless clients can auto-discover the
 appropriate network settings, but you can elect to do that manually as
 well if it's your
 desire.

I failed to mention that the same FreeBSD box will provide file and printer 
services via Samba, all clients will be Windows Vista, and there will bo no 
other servers on the downstream network. I cannot rely on clients editing their 
LMHOSTS files ... I need plug and play. Do I need a DNS server on the 
downstream network for Windows clients to connect to Samba?
--
Gary Dunn, Honolulu
o...@aloha.com
http://openslate.net/
http://e9erust.blogspot.com/
Sent from a Newton 2100 via Mail V
___
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: Does NAT require DNS (named)?

2010-04-08 Thread mikel king


On Apr 8, 2010, at 8:32 PM, Gary Dunn wrote:

On Thu, 8 Apr 2010 17:05:12 -0400 mikel king  
mikel.k...@olivent.com wrote:



On Apr 8, 2010, at 4:57 PM, Gary Dunn wrote:


Continuing the saga of building a wireless access point, what is the
best way to provide DNS service to the dowstream network? Seems like
all I need is a simple pass-through. For that named seems like
overkill. Anyone have an /etc/named/named.conf that does that?



Depends on how your internal LAN is configured. Generally if there  
are

no internal servers then you can forgo deploying a DNS server. Simply
setup your firewall IPFW or pf or whatever you are using to allow
clients to go out to the net and look names up. You will likely  
need a
dhcp server though so that your wireless clients can auto-discover  
the
appropriate network settings, but you can elect to do that manually  
as

well if it's your
desire.


I failed to mention that the same FreeBSD box will provide file and  
printer services via Samba, all clients will be Windows Vista, and  
there will bo no other servers on the downstream network. I cannot  
rely on clients editing their LMHOSTS files ... I need plug and  
play. Do I need a DNS server on the downstream network for Windows  
clients to connect to Samba?

--
Gary Dunn, Honolulu
o...@aloha.com
http://openslate.net/
http://e9erust.blogspot.com/
Sent from a Newton 2100 via Mail V


Gary,

	Thanks for the clarification. In this case if it were my network then  
I would roll out both DNS and DHCP on this server. Honestly it will  
make your life a hell of a lot easier in the long run, especially if  
you intend on using WINS resolution for the Windows client via samba.  
However only allow the DNS and DHCP services to run on the internal  
LAN, bind them to an internal IP address.


You should be fine.

Cheers,
Mikel King

___
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


bandwidth throttling?

2010-04-08 Thread Dan Naumov
Hello folks

I have a 8.0 system that has 2 IPs:

ifconfig em1
em1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
options=19bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4
ether 00:25:90:01:32:93
inet 192.168.1.126 netmask 0xff00 broadcast 192.168.1.255
inet 192.168.1.127 netmask 0xff00 broadcast 192.168.1.255
media: Ethernet autoselect (1000baseT full-duplex)
status: active

The .126 is used by the host for various obvious things and I have a
jail on the same machine running off the .127 IP. Is there a quick and
easy way to have the jail host throttle bandwidth usage of everything
going to and out of the .127 jail? I don't really need anything fancy,
I just want to set hard limits for the entire jail globally, like
don't use more than 500KB/s downstream and more than 150KB/s
upstream. What would be the best way around doing this? My
understanding is that to do this with PF, I would need ALTQ meaning I
have to use a custom kernel and that IPFW with dummynet should have
similar functionality but should also work with GENERIC?

Thanks!

- Sincerely,
Dan Naumov
___
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: Does NAT require DNS (named)?

2010-04-08 Thread Brodey Dover
Unfortunately, still 17MB. I am going to play around with the sticks
of RAM that I have installed to see if there is a chipset/motherboard
issue.

On Thu, Apr 8, 2010 at 8:56 PM, mikel king mikel.k...@olivent.com wrote:

 On Apr 8, 2010, at 8:32 PM, Gary Dunn wrote:

 On Thu, 8 Apr 2010 17:05:12 -0400 mikel king mikel.k...@olivent.com
 wrote:

 On Apr 8, 2010, at 4:57 PM, Gary Dunn wrote:

 Continuing the saga of building a wireless access point, what is the
 best way to provide DNS service to the dowstream network? Seems like
 all I need is a simple pass-through. For that named seems like
 overkill. Anyone have an /etc/named/named.conf that does that?


 Depends on how your internal LAN is configured. Generally if there are
 no internal servers then you can forgo deploying a DNS server. Simply
 setup your firewall IPFW or pf or whatever you are using to allow
 clients to go out to the net and look names up. You will likely need a
 dhcp server though so that your wireless clients can auto-discover the
 appropriate network settings, but you can elect to do that manually as
 well if it's your
 desire.

 I failed to mention that the same FreeBSD box will provide file and
 printer services via Samba, all clients will be Windows Vista, and there
 will bo no other servers on the downstream network. I cannot rely on clients
 editing their LMHOSTS files ... I need plug and play. Do I need a DNS server
 on the downstream network for Windows clients to connect to Samba?
 --
 Gary Dunn, Honolulu
 o...@aloha.com
 http://openslate.net/
 http://e9erust.blogspot.com/
 Sent from a Newton 2100 via Mail V

 Gary,

        Thanks for the clarification. In this case if it were my network then
 I would roll out both DNS and DHCP on this server. Honestly it will make
 your life a hell of a lot easier in the long run, especially if you intend
 on using WINS resolution for the Windows client via samba. However only
 allow the DNS and DHCP services to run on the internal LAN, bind them to an
 internal IP address.

        You should be fine.

 Cheers,
 Mikel King

 ___
 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


Re: FreeBSD 8 using VERY LITTLE memory

2010-04-08 Thread Brodey Dover
Fixed. The 440BX is not friendly to 512MB SDR sticks.

Works like a charm with 3x256MB'ers!

Thank you,
Brodey Dover

On Thu, Apr 8, 2010 at 8:43 PM, Brodey Dover dover...@gmail.com wrote:
 I was under the impression that the  avail memory was memory that was
 released from BIOS.

 Top indicates about 17MB is for RAM and using swap when all you're
 doing is syncing a GEOM mirror with two 80GB drives is illogical and a
 new behaviour that I haven't seen. I will reboot again, check my BIOS
 options (I haven't changed anything...honest) and try other booting
 options; and finally, I'll post back.

 Regards,
 Brodey Dover

 On Thu, Apr 8, 2010 at 7:54 PM, Gary Gatten ggat...@waddell.com wrote:
 Doesn't that mean it's using ~ 655MB, and only 17MB is left?  What does top 
 say?  I'm building a kernel now so can't compare with mine.

 -Original Message-
 From: owner-freebsd-questi...@freebsd.org 
 [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Brodey Dover
 Sent: Thursday, April 08, 2010 6:22 PM
 To: freebsd-questions@freebsd.org
 Subject: FreeBSD 8 using VERY LITTLE memory

 Hello all,

 First post to this list! I have an older PII machine that I upgraded
 from 192MB of ram to 672MB of RAM (512, 32, 128) and upon boot the
 system's BIOS recognizes all 672MB RAM, FreeBSD also recognizes the
 672MB RAM but decides to be nice and cool by using 17MB RAM...bwah?

 Here is the output from the dmesg lines.

 FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009
    r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
 Timecounter i8254 frequency 1193182 Hz quality 0
 CPU: Pentium II/Pentium II Xeon/Celeron (348.21-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x652  Stepping = 2
  Features=0x183f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
 / MEMORY STUFF /
 real memory  = 704905216 (672 MB)
 avail memory = 18116608 (17 MB) === why? is it a sysctl?
 / MEMORY STUFF /
 kbd1 at kbdmux0
 acpi0: COMPAQ CPQB0B5 on motherboard
 acpi0: [ITHREAD]
 acpi0: reservation of 0, a (3) failed
 acpi0: reservation of 10, 29f0 (3) failed
 Timecounter ACPI-safe frequency 3579545 Hz quality 850
 acpi_timer0: 24-bit timer at 3.579545MHz port 0xf808-0xf80b on acpi0
 pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
 pci0: ACPI PCI bus on pcib0
 agp0: Intel 82443BX (440 BX) host to PCI bridge on hostb0

 there are no other errors that I can find.

 Thanks in advance,
 Brodey Dover
 ___
 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


USB Powered Speakers

2010-04-08 Thread Programmer In Training
I have acquired a pair of Compaq USB /powered/ speakers. On my parents
XP machine they don't seem to cause any problems, but when I hook it up
to listen on my FreeBSD box I have absolutely nothing but problems with
the speakers (even when turned off but still plugged in) interrupting
the normal operation of my keyboard (basically it seems that power is
cut to my keyboard at random). I have a beefy power supply (650W) so I
really shouldn't be having any power distribution issues.

I've tried the speakers in both the on-board USB ports and the USB
expansion card (PCI) with the same results.

Any ideas?
-- 
Yours In Christ,

PIT
Emails are not formal business letters, whatever businesses may want.
Original content copyright under the OWL http://owl.apotheon.org
Please do not CC me. If I'm posting to a list it is because I am subscribed.



signature.asc
Description: OpenPGP digital signature


Re: USB Powered Speakers

2010-04-08 Thread Antonio Olivares
On 4/8/10, Programmer In Training p...@joseph-a-nagy-jr.us wrote:
 I have acquired a pair of Compaq USB /powered/ speakers. On my parents
 XP machine they don't seem to cause any problems, but when I hook it up
 to listen on my FreeBSD box I have absolutely nothing but problems with
 the speakers (even when turned off but still plugged in) interrupting
 the normal operation of my keyboard (basically it seems that power is
 cut to my keyboard at random). I have a beefy power supply (650W) so I
 really shouldn't be having any power distribution issues.

 I've tried the speakers in both the on-board USB ports and the USB
 expansion card (PCI) with the same results.

 Any ideas?
 --
 Yours In Christ,

 PIT
 Emails are not formal business letters, whatever businesses may want.
 Original content copyright under the OWL http://owl.apotheon.org
 Please do not CC me. If I'm posting to a list it is because I am subscribed.




Is your keyboard a usb keyboard?

Could be a permissions problem?

see 4.3.8. USB ports on FreeBSD

http://www.gphoto.org/doc/manual/permissions-usb.html

Hope this helps in some way.

Regards,

Antonio
___
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: USB Powered Speakers

2010-04-08 Thread Programmer In Training
On 04/08/10 21:29, Brodey Dover wrote:
 I believe a call to iostat (there is something similar) you should see
 a large amount of interrupts to your USB keyboard driver, at least
 that is my assumption.

That is my assumption, too.

 Unfortunately, I do not have USB powered speakers for me to test with.
 That said, the way FreeBSD does sound is similar to Linux and even
 Windows... though as you will see Windows does hacky stuff to make
 poorly designed hardware work.
snip

The sound goes through the sound card, just the power plug is a USB
cable and not an adapter.

-- 
Yours In Christ,

PIT
Emails are not formal business letters, whatever businesses may want.
Original content copyright under the OWL http://owl.apotheon.org
Please do not CC me. If I'm posting to a list it is because I am subscribed.



signature.asc
Description: OpenPGP digital signature


Re: USB Powered Speakers

2010-04-08 Thread Programmer In Training
On 04/08/10 21:34, Antonio Olivares wrote:
snip
 Is your keyboard a usb keyboard?

Sorry, yes.

 Could be a permissions problem?

I don't know what could be the problem. I have a USB mouse, keyboard,
and web cam all plugged into the same USB PCI card and I've not had any
problems until I plugged in the speakers.

 see 4.3.8. USB ports on FreeBSD
 
 http://www.gphoto.org/doc/manual/permissions-usb.html
 
 Hope this helps in some way.

It's given me a place to look, at least, though it's a lot of technical
information that is hurting my eyes just to look at, hehe. (:

-- 
Yours In Christ,

PIT
Emails are not formal business letters, whatever businesses may want.
Original content copyright under the OWL http://owl.apotheon.org
Please do not CC me. If I'm posting to a list it is because I am subscribed.



signature.asc
Description: OpenPGP digital signature


Re: USB Powered Speakers

2010-04-08 Thread Programmer In Training
On 04/08/10 23:23, Brodey Dover wrote:
 Now that I think about it and have more context as to how things are
 working. lshal output could be useful here as well.
 
 On Fri, Apr 9, 2010 at 12:21 AM, Brodey Dover dover...@gmail.com wrote:
 Can you provide some dmesg output please?
snip

http://www.joseph-a-nagy-jr.us/stuff/dmesg.out (64KB)
http://www.joseph-a-nagy-jr.us/stuff/lshal.out (80KB)

I couldn't find nothing in it referring to the speakers. Again, they are
only attached for power purposes (I didn't buy the speakers, they came
with a computer I bought from a friend). I don't see why they'd have any
sort of id attached to them.

Full info from the back of the speakers:

FLC Presario Speaker System

Input power: DC 5V 500mA

Also, that link for gphoto on FreeBSD 8 didn't have anything useful to
my situation. It dealt exclusively with digital cameras. I didn't see
anything that would apply to my situation, thanks for the link though as
I do have a digicam I eventually want to be able to pull pictures off of
from my computer instead of my parents.

-- 
Yours In Christ,

PIT
Emails are not formal business letters, whatever businesses may want.
Original content copyright under the OWL http://owl.apotheon.org
Please do not CC me. If I'm posting to a list it is because I am subscribed.





signature.asc
Description: OpenPGP digital signature


Re: Adding a Disk and Changing Mountpoints

2010-04-08 Thread Polytropon
On Thu, 08 Apr 2010 17:38:03 -0500, Programmer In Training 
p...@joseph-a-nagy-jr.us wrote:
 Saturday I'll be adding a second 40GB and a tertiary 6GB disk to the
 system (in favor of adding a CD-RW to a system that already has a DVD
 super multi-format drive). I'd like to rearrange my mount points a bit.

Here we go. :-)



 Specifically I would like to move /usr/home to the 40GB drive and
 possibly move /var to the 6GB drive (depending on how the drive
 behaves). I know it should be as easy as moving the relevant directories
 to the new drives once the file systems have been finalized. I'm just
 curious as to any issues I might need to be on the watch for (obviously
 I'll be editing fstab before moving the directories, then issuing the
 mount command as appropriate).

I'd suggest to use dump + restore to move the partitions' contents
partition-wise; this makes sure that file permissions and all
other stuff that may be important is copied 1:1.

Let's assume this is the point you're starting from:

/dev/ad0s1a /
/dev/ad0s1b swap
/dev/ad0s1d /var
/dev/ad0s1e /tmp
/dev/ad0s1f /usr --- includes /usr/home

You'll add other disks, let them be

/dev/ad1
/dev/ad2

And create one slice and one partitions on each of them. (It's
possible to omit creating the slice, and just creating a
partition on the pure disk covering the whole disk, this
is called a dedicated partition, and that's why other systems
may be unable to access it.)

But let's just say you're selecting the maximum compatibility
mode and create

slice /dev/ad1s1, and one partition /dev/ad1s1e
slice /dev/ad2s1, and one partition /dev/ad2s1e

You then want to make /dev/ad1s1e the new /var, and /dev/ad2s1e
the new /home.

Important: To make sure that noting unwanted may happen, do
everything in single user mode: Boot the system into SUM (boot -s),
then do:

# fsck /var /usr

# mount /dev/ad1s1e /var
# cd /var
# dump -0 -f - /dev/ad0s1d | restore -r -f -
# cd /
# umount /var

Now you have transfered the content of old /var on /dev/ad0s1e
to new /var on /dev/ad1s1e. The idea of using dump + restore
implies that you want an exact 1:1 copy partition-wise.

You can't do the same with /usr/home, because it's not on
its own partition, but it's a subtree. For copying it,
you can use cp -R or tar.

Because you won't need the symlink /home@ - usr/home in
the future, delete it now, and create a real mountpoint
for the new /home partition (on its own disk).

# cd /
# rm home   - deletes the symlink
# mkdir home- creates a real directory
# mount -o ro /dev/ad0s1f /usr
# mount -o ro /dev/ad2s1e /home
# cd /usr/home
# cp -R * /home
# umount /home

Now as you have transfered everything to the new locations,
adjust /etc/fstab accordingly. Make sure that / is rw.

# mount -o rw /

Then edit /etc/fstab using your preferred editor, e. g.

# ee /etc/fstab

# Device Mountpoint  FStype  Options  Dump   Pass#
# -  --  --  ---  -  -
/dev/ad0s1b  noneswapsw   0  0
/dev/ad0s1a  /   ufs rw   1  1
/dev/ad0s1d  /tmpufs rw   2  2
/dev/ad0s1e  /scratchufs rw   2  2
/dev/ad0s1f  /usrufs rw   2  2
/dev/ad1s1e  /varufs rw   2  2
/dev/ad2s1e  /home   ufs rw   2  2

... your other entries here...

[Esc][Enter][Enter]

Now reboot the system. If - really AFTER if you have stated
that everything is in place as inteded, delete the /usr/home
subtree and the content of /scratch (which was /var).



 I'm doing this move specifically for space issues. My current drive
 (40GB) is nearly full (I only have 2.5GB left on /usr). I wish I
 wouldn't have deleted this mornings reports so I can give a run down on
 specifically how much is left everywhere, but it's getting pretty full.

You can use df -h as well as the du -h dir utility to
find out more about the current occupation of disks or
directory subtrees.



 Once I've moved /var and /usr/home to their own disks, how can I reclaim
 what has already been allocated for them?

If you delete the content from a partition, you'll end up with
an empty partition. You can give it another mount point and use
it, for example, as /scratch partition.



 Or will that happen
 automatically?

No. Nothing of such a big impact will happen automatically.



 Any specific concerns about that? Or would gparted and
 not fdisk be my friend here?

I'd suggest using the sade program. In order to re-arrange
partitions, it's the common method to delete existing
partitions and creating new ones. This assumes that you
make backups first, then resize the partitions, and
finally load your backup.


Allow me