Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

freebsd-questions Digest, Vol 305, Issue 10

1 view
Skip to first unread message

freebsd-ques...@freebsd.org

unread,
Apr 9, 2010, 8:00:21 AM4/9/10
to freebsd-...@freebsd.org
Send freebsd-questions mailing list submissions to
freebsd-...@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
or, via email, send a message with subject or body 'help' to
freebsd-ques...@freebsd.org

You can reach the person managing the list at
freebsd-que...@freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-questions digest..."


Today's Topics:

1. Re: perl qstn... (RW)
2. Re: Does NAT require DNS (named)? (Gary Dunn)
3. Re: Does NAT require DNS (named)? (mikel king)
4. bandwidth throttling? (Dan Naumov)
5. Re: Does NAT require DNS (named)? (Brodey Dover)
6. Re: FreeBSD 8 using VERY LITTLE memory (Brodey Dover)
7. USB Powered Speakers (Programmer In Training)
8. Re: USB Powered Speakers (Antonio Olivares)
9. Re: USB Powered Speakers (Programmer In Training)
10. Re: USB Powered Speakers (Programmer In Training)
11. Re: USB Powered Speakers (Programmer In Training)
12. Re: Adding a Disk and Changing Mountpoints (Polytropon)
13. Re: USB Powered Speakers (Fbsd1)
14. Re: USB Powered Speakers (per...@pluto.rain.com)
15. Re: Kernel Config for NAT (Ian Smith)
16. Re: perl qstn... (Randal L. Schwartz)
17. SSL / SSH choosing hardware accelerator first (Pegasus Mc Cleaft)
18. Re: USB Powered Speakers (Warren Block)
19. Re: gdm background picture missing (Jian Jun Wang)


----------------------------------------------------------------------

Message: 1
Date: Fri, 9 Apr 2010 01:06:43 +0100
From: RW <rwmai...@googlemail.com>
Subject: Re: perl qstn...
To: freebsd-...@freebsd.org
Message-ID: <20100409010...@gumby.homeunix.com>
Content-Type: text/plain; charset=US-ASCII

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.

------------------------------

Message: 2
Date: Thu, 8 Apr 2010 14:32 -1000
From: "Gary Dunn" <o...@aloha.com>
Subject: Re: Does NAT require DNS (named)?
To: "freebsd-questions" <freebsd-...@freebsd.org>
Message-ID: <201004090034....@leka.aloha.com>
Content-Type: text/plain; charset=UTF-8

On Thu, 8 Apr 2010 17:05:12 -0400 mikel king <mikel...@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


------------------------------

Message: 3
Date: Thu, 8 Apr 2010 20:56:12 -0400
From: mikel king <mikel...@olivent.com>
Subject: Re: Does NAT require DNS (named)?
To: "Gary Dunn" <o...@aloha.com>
Cc: freebsd-questions <freebsd-...@freebsd.org>
Message-ID: <D1E8BE48-8E31-4873...@olivent.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes


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

> On Thu, 8 Apr 2010 17:05:12 -0400 mikel king
> <mikel...@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

------------------------------

Message: 4
Date: Fri, 9 Apr 2010 04:29:40 +0300
From: Dan Naumov <dan.n...@gmail.com>
Subject: bandwidth throttling?
To: freebsd-...@freebsd.org
Message-ID:
<r2ocf9b1ee01004081829ic...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hello folks

I have a 8.0 system that has 2 IPs:

ifconfig em1
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
ether 00:25:90:01:32:93
inet 192.168.1.126 netmask 0xffffff00 broadcast 192.168.1.255
inet 192.168.1.127 netmask 0xffffff00 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


------------------------------

Message: 5
Date: Thu, 8 Apr 2010 21:33:50 -0400
From: Brodey Dover <dove...@gmail.com>
Subject: Re: Does NAT require DNS (named)?
To: mikel king <mikel...@olivent.com>
Cc: Gary Dunn <o...@aloha.com>, freebsd-questions
<freebsd-...@freebsd.org>
Message-ID:
<m2t283c23cd1004081833q4...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

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...@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...@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-...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"
>


------------------------------

Message: 6
Date: Thu, 8 Apr 2010 21:47:28 -0400
From: Brodey Dover <dove...@gmail.com>
Subject: Re: FreeBSD 8 using VERY LITTLE memory
To: Gary Gatten <Gga...@waddell.com>, freebsd-questions
<freebsd-...@freebsd.org>
Message-ID:
<h2s283c23cd1004081847mf...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

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 <dove...@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 <Gga...@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-freeb...@freebsd.org [mailto:owner-freeb...@freebsd.org] On Behalf Of Brodey Dover
>> Sent: Thursday, April 08, 2010 6:22 PM
>> To: freebsd-...@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
>>    ro...@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=0x183f9ff<FPU,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, a0000 (3) failed
>> acpi0: reservation of 100000, 29f00000 (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-...@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"
>>
>


------------------------------

Message: 7
Date: Thu, 08 Apr 2010 21:15:13 -0500
From: Programmer In Training <p...@joseph-a-nagy-jr.us>
Subject: USB Powered Speakers
To: FreeBSD Questions <freebsd-...@freebsd.org>
Message-ID: <4BBE8DB1...@joseph-a-nagy-jr.us>
Content-Type: text/plain; charset="utf-8"

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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100409/8a524b5a/signature-0001.pgp

------------------------------

Message: 8
Date: Thu, 8 Apr 2010 21:34:36 -0500
From: Antonio Olivares <olivar...@gmail.com>
Subject: Re: USB Powered Speakers
To: Programmer In Training <p...@joseph-a-nagy-jr.us>
Cc: FreeBSD Questions <freebsd-...@freebsd.org>
Message-ID:
<i2t75107331004081934n2...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

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


------------------------------

Message: 9
Date: Thu, 08 Apr 2010 21:41:36 -0500
From: Programmer In Training <p...@joseph-a-nagy-jr.us>
Subject: Re: USB Powered Speakers
To: Brodey Dover <dove...@gmail.com>, FreeBSD Questions
<freebsd-...@freebsd.org>
Message-ID: <4BBE93E...@joseph-a-nagy-jr.us>
Content-Type: text/plain; charset="utf-8"

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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100409/68736b16/signature-0001.pgp

------------------------------

Message: 10
Date: Thu, 08 Apr 2010 21:44:00 -0500
From: Programmer In Training <p...@joseph-a-nagy-jr.us>
Subject: Re: USB Powered Speakers
To: freebsd-...@freebsd.org
Message-ID: <4BBE9470...@joseph-a-nagy-jr.us>
Content-Type: text/plain; charset="utf-8"

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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100409/c6e3569c/signature-0001.pgp

------------------------------

Message: 11
Date: Fri, 09 Apr 2010 00:06:04 -0500
From: Programmer In Training <p...@joseph-a-nagy-jr.us>
Subject: Re: USB Powered Speakers
To: FreeBSD Questions <freebsd-...@freebsd.org>
Message-ID: <4BBEB5BC...@joseph-a-nagy-jr.us>
Content-Type: text/plain; charset="utf-8"

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 <dove...@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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100409/8afd0e7a/signature-0001.pgp

------------------------------

Message: 12
Date: Fri, 9 Apr 2010 07:48:03 +0200
From: Polytropon <fre...@edvax.de>
Subject: Re: Adding a Disk and Changing Mountpoints
To: Programmer In Training <p...@joseph-a-nagy-jr.us>
Cc: FreeBSD Questions <freebsd-...@freebsd.org>
Message-ID: <20100409074803....@edvax.de>
Content-Type: text/plain; charset=US-ASCII

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 none swap sw 0 0
/dev/ad0s1a / ufs rw 1 1
/dev/ad0s1d /tmp ufs rw 2 2
/dev/ad0s1e /scratch ufs rw 2 2
/dev/ad0s1f /usr ufs rw 2 2
/dev/ad1s1e /var ufs 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 a final about your /etc/fstab. You presented this
entry:

/dev/acd0 /mnt/cdrom cd9660 ro,noauto 0 0

According to "man hier", /mnt is not the place to mount
the CD / DVD:

/mnt/ empty directory commonly used by system administrators as a
temporary mount point

Instead, in the past, using /cdrom was suggested:

/cdrom/ default mount point for CD-ROM drives (created by
sysinstall(8))

But will all the new magic of HAL & stuff, I'm not sure this
is still working (okay, I already know in order to mount things
using HAL, they should not be in /etc/fstab at all). I know
that a "new" approach is to use /media with corresponding
mountpints:

/media/ contains subdirectories to be used as mount points for remov-
able media such as CDs, USB drives, and floppy disks

This would be represented as

/dev/acd0 /media/cdrom cd9660 ro,noauto 0 0

in your /etc/fstab file. On my home system, I have many of
such entriesm like /media/cdrom, /media/card, /media/stick,
/media/pd, /media/floppy and so on. In the past, mount points
usually resided at / level (such as /cdrom, /floppy), but
that seems not to be the case anymore. Media that will be
exported via NFS usually will be mounted somewhere under
/export - a Solarism... Solaris-ism... just by the way. :-)

--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


------------------------------

Message: 13
Date: Fri, 09 Apr 2010 15:17:40 +0800
From: Fbsd1 <fb...@a1poweruser.com>
Subject: Re: USB Powered Speakers
To: Antonio Olivares <olivar...@gmail.com>
Cc: FreeBSD Questions <freebsd-...@freebsd.org>, Programmer In
Training <p...@joseph-a-nagy-jr.us>
Message-ID: <4BBED494...@a1poweruser.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Antonio Olivares wrote:
> 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?

You really need to explain in detail the problem.
Without these new speakers plugged in does wall powered speakers work?


------------------------------

Message: 14
Date: Fri, 09 Apr 2010 00:51:29 -0700
From: per...@pluto.rain.com
Subject: Re: USB Powered Speakers
To: freebsd-...@freebsd.org
Message-ID: <4bbedc81.G0j71lonOCUqR/vZ%per...@pluto.rain.com>
Content-Type: text/plain; charset=us-ascii

Programmer In Training <p...@joseph-a-nagy-jr.us> wrote:

> ... they are only attached for power purposes ...

> Input power: DC 5V 500mA

Any chance these speakers need a USB 2.0 port, and all the ports
on your FreeBSD box are 1.x? I don't remember the USB power spec
offhand, but 2.5W may exceed what a USB 1.x port can supply --
a limit that applies regardless of the system's overall power
provisioning.


------------------------------

Message: 15
Date: Fri, 9 Apr 2010 19:51:41 +1000 (EST)
From: Ian Smith <smi...@nimnet.asn.au>
Subject: Re: Kernel Config for NAT
To: Robert Huff <rober...@rcn.com>
Cc: Adam Vande More <amvan...@gmail.com>,
freebsd-...@freebsd.org
Message-ID: <2010040916...@sola.nimnet.asn.au>
Content-Type: TEXT/PLAIN; charset=US-ASCII

In freebsd-questions Digest, Vol 305, Issue 9, Message: 1
On Thu, 8 Apr 2010 08:10:34 -0400 Robert Huff <rober...@rcn.com> wrote:
> 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.

There are _lots_ of sysctls, even more recently with SCTP support.

> > http://www.freebsd.org/doc/handbook/firewalls-ipfw.html

<rant>

This is absolutely the worst section of an otherwise great handbook.
Apart from being way out of date it contains gratuitous deprecation,
inaccuracies and a large number of plain untruths, was largely written
by someone who doesn't use (or like) ipfw, and has examples styled to
duplicate an IPFILTER setup.

Nothing short of a rewrite from scratch could fix it, despite efforts by
several people to clarify aspects; only quite recently the invalid 'ipfw
block' command was removed from it. ipfw(8) is a complete (albeit very
terse) ipfw reference and I thoroughly recommend studying that instead.

Despite what the handbook section says, the sample rules eg the 'simple'
ruleset in rc.firewall ARE these days suitable for immediate use using
rc.conf variables, DO include NAT functionality (either with natd or
ipfw nat) in the _correct_ place in the ruleset, and DO include some
stateful rules; that and ipfw(8) are certainly a better place to start
than the dreadful examples afflicting the handbook since some years.
</rant>

> So ... double-checking I'm doing this right:
>
> 1) in /boot/loader.conf:
>
> ipfw_load="YES"
> ipdivert_load="YES"

I thought from your earlier mail that you wanted to use in-kernel NAT?

If so, rather than divert sockets (using ipfw's divert action) you want:
ipfw_nat_load=YES
libalias_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

I believe all these can be accomplished with modules on GENERIC kernel,
at least on 8.x, with the exception of FIREWALL_FORWARD functionality
which does require a custom kernel as it messes with lots of ip paths.

If you want to use natd(8) then you'll need ipdivert.ko (as you have
above), but if you want to use in-kernel NAT (not yet mentioned in the
handbook sections for ipfw or natd, though there since 7.0) then you'll
want IPFIREWALL_NAT and LIBALIAS in kernel, or loaded as modules:

ipfw.ko
ipfw_nat.ko # in-kernel ipfw nat
libalias.ko # for in-kernel ipfw nat
dummynet.ko # if wanted
ipdivert.ko # (or) for natd

Basically, natd uses userland libaliasand ipdivert but in-kernel NAT
needs in-kernel libalias. The syntax of nat commands is virtually
identical for natd.conf and ipfw nat commands, see ipfw(8) & natd(8)

> 3) in /etc/sysctl.conf:
>
> net.inet.ip.fw.default_to_accept="1"

Interestingly, that one hasn't yet made it into ipfw(8) .. your choice,
or you can use firewall_type="open" for rc.firewall without that, until
you've got your ruleset in action (when default to deny is advisable)

> net.inet.ip.fw.verbose="1"
> net.inet.ip.fw.verbose_limit="100"
>
>
> That cover it?

Should do .. with the abovementioned exception, take ipfw(8) as being
definitive, ignore the misleading and often just plain wrong handbook
section, and prosper ..

cheers, Ian


------------------------------

Message: 16
Date: Fri, 09 Apr 2010 02:56:26 -0700
From: mer...@stonehenge.com (Randal L. Schwartz)
Subject: Re: perl qstn...
To: Alejandro Imass <a...@p2ee.org>
Cc: gla...@freebsd.org, kl...@thought.org, FreeBSD Mailing List
<freebsd-...@freebsd.org>
Message-ID: <86eiipv...@red.stonehenge.com>
Content-Type: text/plain; charset=utf-8

>>>>> "Alejandro" == Alejandro Imass <a...@p2ee.org> writes:

Alejandro> did you mean unless? ;-)

Did you read this:

>> Augh.  I hit send just as I realized that's backwards.  Need
>> more caffiene.  Swap the true and false blocks there. :)

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<mer...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion


------------------------------

Message: 17
Date: Fri, 9 Apr 2010 11:59:41 +0100
From: "Pegasus Mc Cleaft" <k...@mthelicon.com>
Subject: SSL / SSH choosing hardware accelerator first
To: <freebsd-...@freebsd.org>
Message-ID: <000301cad7d3$c267bc10$47373430$@com>
Content-Type: text/plain; charset="us-ascii"

Hello group,

I am currently running FreeBSD 9-Current AMD64. I have a
Hifn crypto accelerator installed in the machine. I have noticed that when I
connect to the machine using SSH, it does not use the crypto hardware. There
was a patch that someone made that forced SSL to use the hardware by
default, but I was wondering if there was a way to do this in
userland/configuration? It would be nice to have the hardware accelerated
cryptography used as first priority before deciding to use the software
emulated modes. Does anyone know how this can be done?

Peg

------------------------------

Message: 18
Date: Fri, 9 Apr 2010 05:25:24 -0600 (MDT)
From: Warren Block <wbl...@wonkity.com>
Subject: Re: USB Powered Speakers
To: per...@pluto.rain.com
Cc: freebsd-...@freebsd.org
Message-ID: <alpine.BSF.2.00.1...@wonkity.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Fri, 9 Apr 2010, per...@pluto.rain.com wrote:

> Programmer In Training <p...@joseph-a-nagy-jr.us> wrote:
>
>> ... they are only attached for power purposes ...
>
>> Input power: DC 5V 500mA
>
> Any chance these speakers need a USB 2.0 port, and all the ports
> on your FreeBSD box are 1.x? I don't remember the USB power spec
> offhand, but 2.5W may exceed what a USB 1.x port can supply --
> a limit that applies regardless of the system's overall power
> provisioning.

500 mA is 5 unit loads for USB 2.0, or powered hub territory. The
device has to request that high power mode, and the system can say no
and disable the port. That should show in /var/log/messages.

-Warren Block * Rapid City, South Dakota USA


------------------------------

Message: 19
Date: Fri, 9 Apr 2010 19:49:01 +0800
From: Jian Jun Wang <wangj...@gmail.com>
Subject: Re: gdm background picture missing
To: Adam Vande More <amvan...@gmail.com>
Cc: freebsd-...@freebsd.org
Message-ID:
<z2y13dae8e51004090449u9...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

this solution worked, although it took me a lot of time to download
packages, thank you so much.

On Fri, Apr 9, 2010 at 1:40 AM, Adam Vande More <amvan...@gmail.com>wrote:

> On Thu, Apr 8, 2010 at 10:38 AM, Jian Jun Wang <wangj...@gmail.com>wrote:
>
>> 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
>

--
TNT - Today, Not Tomorrow


------------------------------


End of freebsd-questions Digest, Vol 305, Issue 10
**************************************************

0 new messages