Re: Deinstall software

2009-05-31 Thread Chris Rees
2009/5/31 Polytropon :
> On Sat, 30 May 2009 18:55:15 -0400, Glen Barber  
> wrote:
>> For (my own) clarity sake, won't that take up space in '/'?  (Not
>> arguing, just never thought of using /opt on FreeBSD...)
>
> This depends on your file system layout, Glen. If you put
> everything into one partition, i. e. /, then everything is
> going into /.
>
> If you have separate partitions, e. g. /, /tmp, /var, /usr
> and /home, then /opt would take space on /. On most installations
> that use this approach, / is "as big as needed" for what it
> is used: the basic SUM stuff and mountpoints, nothing more.
>
> Of couse, it's possible to extend the approach mentioned to
> have another partition for /opt.
>
> In order to not to deal with this problem, one could even make
> a symlink /opt@ -> /usr/local2.
>
> To summarize: You are correct. :-)
>
> By the way, I've not seen anyone using /opt on FreeBSD yet,
> I just wanted to mention that it is possible. (There are
> other "Solarisisms" that I've already seen, such as /export
> on FreeBSD which is usually used on Solaris for NFS shares.)
>
>

IIRC, I installed NetBeans onto my computer a really long time ago...
and it wormed into /opt. Disgraceful behaviour, I can't remember why I
didn't use ports. That was when I switched to Eclipse!

Chris


-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in a mailing list?
___
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 on USB drive for a MacBook Pro

2009-05-31 Thread Chris Rees
2009/5/31 John Nielsen :
> I'm looking for advice and/or pointers. I have an Intel-based MacBook Pro
> and I would like to use a USB thumb drive to be able to boot FreeBSD on
> it. Some questions:
>
> 1) Is this even possible? I've read that you _can_ boot Mac OS X from a
> USB hard drive on a new MacBook but I'm not sure if the same goes for
> non-Mac OSen or thumb drives.

Yes. It is possible; as long as you can fit it on. The EFI is quite capable of
handling USB sticks.

> 2) What steps should I take to partition the thing? What boot code should
> I use and where should it live? I'm planning to do a manual installation
> in any event.

Use Disk Utility, and use GPT layout, as long as you don't care about booting
then stick on PCs.

> 3) If I manage to get 1 and 2 sorted out, will I be able to boot the same
> thumb drive on a regular PC? Will any additional steps be necessary?

See above.

> 4) Just to be contrary, I'd also like to use GELI (if possible) for
> everything but /boot. Does needing an extra /boot partition change
> anything?

Doubt it, that shouldn't be a problem. See
http://www.slax.org/forum.php?action=view&parentID=14468

> I'll be doing some experimenting, but if some things are already known
> (not) to work I'd like to start with as much info as possible.
>
> Thanks,
>
> JN

Good luck.

Chris



-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in a mailing list?
___
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: Mysql6 or Mysql5

2009-05-31 Thread Matthew Seaman

Grant Peel wrote:


Does anyone have any expierience with it? Is it solid? Fast? Are
there any 'gotchas' when using databases developed on older versions
of Mysql? (4).


I can't answer about speed or solidity -- except to point out that MySQL
themselves describe MYSQL 6.0 as an "alpha development release".

  http://dev.mysql.com/downloads/mysql/6.0.html

MySQL 5.1 is the preferred generally-available release at the moment. 5.1 is
certainly reasonably solid, but I don't think it offers much in terms of speed
increases over 5.0 and it's likely to be slower than a 4.x system.  Of course,
4.x doesn't support any of the transactional stuff or foreign keys or higher
concurrency / multiple CPUs anything like as well as the later versions.

As for compatibility between MySQL 4.x and MySQL 6.x; well, it might work,
but the chances are it will break due to a number of small but incompatible
changes in schemas, SQL etc. etc.  Most readily available software will work
with MySQL 5.0+ nowadays, and it is usually possible for a reasonably 
experienced
DBA to load data dumped out of a 4.x server into a 5.x server without too
much expenditure of either ingenuity or profanity.

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



signature.asc
Description: OpenPGP digital signature


Re: Deinstall software

2009-05-31 Thread Wojciech Puchar




For (my own) clarity sake, won't that take up space in '/'?  (Not


in my case yes as / is usually my only filesystem. for those who keep 
programs (/usr) separate /usr/local2 or /usr/whatever will be OK

___
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: Deinstall software

2009-05-31 Thread Wojciech Puchar


This depends on your file system layout, Glen. If you put
everything into one partition, i. e. /, then everything is
going into /.


like in my case. with one exception - now i usually have /tmp separate but 
it's tmpfs :)



other "Solarisisms" that I've already seen, such as /export
on FreeBSD which is usually used on Solaris for NFS shares.)


does Solaris REQUIRE things to be in /export to be able to export through 
NFS or is it just some kind of tradition or routinely repeated rule?

___
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 on USB drive for a MacBook Pro

2009-05-31 Thread Wojciech Puchar


4) Just to be contrary, I'd also like to use GELI (if possible) for
everything but /boot. Does needing an extra /boot partition change
anything?


Actually you can't create /boot partition, but something else like /b
and link /boot to /b/boot

bootloader subsystem requires that things are in /boot subdirectory on 
bootpartition.


make /boot partition a, encrypted partition as d and add in 
loader.conf

vfs.root.mountfrom="ufs:da0d.eli"

if you do this and not forget to add -b in geli init everything will just 
work.


___
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: Myths about Power Over Ethernet

2009-05-31 Thread Wojciech Puchar

Myths about Power Over Ethernet
May 28, 2009
Power-over-Ethernet (PoE) technology integrates power and data across standard 
Cat5/5e/6 network cabling and provides more flexibility in today?s workplace. 
PoE enables power to be supplied to network devices, such as IP phones, network 
cameras, and wireless access points through a single, most often existing, 
network cable. When combined with an uninterruptable power supply (UPS) a PoE 
network delivers continuous operation and minimizes business downtime by 
eliminating most power interruptions. With the ability to install endpoints in 
any location PoE technology provides a scalable and flexible networking 
infrastructure geared for growth and efficiency.


Unless gigabit ethernet is used, the simplest PoE is to put + on brown 
pair and - on blue pair, as only green and orange pairs are used. 
Unless the device doesn't have low voltage like 5V or less as input and 
doesn't suck too much power it's just fine, and requires just 5-10 minutes 
or work, soldering iron and insulation tape.


It's really funny to see "PoE converter" sets costing at least 150PLN 
(45$) here doing exactly the same. of course nobody forbids anyone to 
spent too much :)



I even know somebody that had a lots of equipment with american-style 
power (110V AC), made 220 to 110V transformer and actually put 110V AC 
OVER CAT5 CABLE.


It worked but really - it wasn't safe IMHO :)
___
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: Remotely edit user disk quota

2009-05-31 Thread Wojciech Puchar

same user password somewhere else.


The whole point of ssh is to prevent this sort of thing, by
encrypting the message traffic over this insecure communication
channel.


I think most people using ssh already know it. or maybe not?:)

 An attacker may be able to intercept the encrypted

traffic, but it will take a skilled cryptanalyst and a lot of CPU
time -- or the attacker will have to be very lucky -- to decrypt
the message and recover the passwords while they are still valid.


All of this things are strong enough to require billions of years to 
crack or more.


From the beginning my point of this discussion is to stop stupidly 

repeating "golden rules" like

- program a is secure
- program b is insecure
- so just don't use program b

Because it teaches people not to think.


There are difference between "insecure program" and "program without extra 
security".



(You *do* change passwords periodically, don't you?)


Of course!
___
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: Audio boost OSS/Mplayer

2009-05-31 Thread Wojciech Puchar

I want to boost the audio playback of my multimedia.


you mean higher volume.

use mixer command


I use mplayer with oss for audio playback.
I don't want to re-encode my media.

uname -a:'7.1-RELEASE-p4 FreeBSD'
--
~
##The United States of America is a Slave Nation##
##The Human race is a Slave race##
!!InfoWars.com!!
___
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: What's wrong with this picture?

2009-05-31 Thread Wojciech Puchar

>   (Wojciech Puchar)
>   33. Re: Canon printer and TurboPrint (Wojciech Puchar)
>   34. Re: Canon printer and TurboPrint (cpghost)
>   35. Filter request Re: GSM to Serial Converter (Wojciech Puchar)
>   36. Re: Stable Mail Server And Web Mail (Wojciech Puchar)

Woj, 20 out of 36 messages, over 55% of all these messages, are by you.


That's fine. then please - if you count mine as spam, ignore them and 
calculate stats with the rest.



50% of messages either from you, or from silly people reacting to you,


So you just classify people as silly because then answer me. It isn't 
polite i think.



I gather that you're hoping to prove that without moderation - as we've
enjoyed for 11 years that I've experienced - if you keep on flooding the
list with so much off-topic crap.


Again - calculate how many not-mine threads are on topic.
___
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: Deinstall software

2009-05-31 Thread Polytropon
On Sun, 31 May 2009 10:30:44 +0200 (CEST), Wojciech Puchar 
 wrote:
> does Solaris REQUIRE things to be in /export to be able to export through 
> NFS or is it just some kind of tradition or routinely repeated rule?

No, just tradition or convention. In most cases, there are
other structures than just /home exported via NFS, so there's
/export/home, and maybe e. g. /export/packages and /export/www.
I've not seen it on Solaris in another way.

There's another interestin "IRIXism": As far as I remember, the
home directory was kept under /usr (like our /usr/home), but
called /usr/people...


-- 
Polytropon
>From 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: Canon printer and TurboPrint

2009-05-31 Thread Wojciech Puchar

No. The company CREATES a "need" for their product.
That's the number one rule.


if they succeed - what's wrong?


You tell me.


nothing. As long as nobody is forced to buy someones product, every kind 
of propaganda is allowed. It's just peoples problem if they will believe 
that they NEED for eg. new cell phone, while their old just works fine for 
what he/she does (calling, SMS)

___
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: Deinstall software

2009-05-31 Thread Wojciech Puchar

all your examples are sounds just like kind of "tradition".
Just like for eg. creating lots of partitions no matter if it's needed or 
not


On Sun, 31 May 2009, Polytropon wrote:


On Sun, 31 May 2009 10:30:44 +0200 (CEST), Wojciech Puchar 
 wrote:

does Solaris REQUIRE things to be in /export to be able to export through
NFS or is it just some kind of tradition or routinely repeated rule?


No, just tradition or convention. In most cases, there are
other structures than just /home exported via NFS, so there's
/export/home, and maybe e. g. /export/packages and /export/www.
I've not seen it on Solaris in another way.

There's another interestin "IRIXism": As far as I remember, the
home directory was kept under /usr (like our /usr/home), but
called /usr/people...


--
Polytropon

From 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"



___
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: Deinstall software

2009-05-31 Thread Matthew Seaman

Wojciech Puchar wrote:


other "Solarisisms" that I've already seen, such as /export
on FreeBSD which is usually used on Solaris for NFS shares.)


does Solaris REQUIRE things to be in /export to be able to export 
through NFS or is it just some kind of tradition or routinely repeated 
rule?


It's just a convention.  Filesystems to be exported live under /export,
and are frequently automounted under /net/{hostname} or /home/{hostname}
depending on their intended purpose.

You don't have to arrange things like that, just as you don't have to
install ports under /usr/local.  ie.  you'ld have to have a pretty
good reason to go against the convention.

In fact, given that FreeBSD doesn't seem to have a native convention on
how exported filesystems are laid out (no mention in hier(7), no default
/etc/exports file), it would make sense to adopt the Solaris/Linux style where
feasible.  Mount points etc. aren't going to work exactly the same due to
Solaris/Linux preferentially using autofs and FreeBSD using amd(8) (yes, I
know there has been some progress on autofs under FreeBSD, but it's not 100%
yet[*]), but from a user perspective it should all work the same.

Cheers,

Matthew

[*] http://www.fsl.cs.stonybrook.edu/docs/freebsd-autofs/autofs.pdf

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Deinstall software

2009-05-31 Thread Polytropon
On Sun, 31 May 2009 10:49:18 +0200 (CEST), Wojciech Puchar 
 wrote:
> all your examples are sounds just like kind of "tradition".
> Just like for eg. creating lots of partitions no matter if it's needed or 
> not

One exception: The creation of different partitions according
to different uses can (but doesn't neccessarily have to) be
useful if partition-wise dumps are required or intended. As
you know, there are advantages and disadvantages. There can
be trouble, causing only one of the partition to get defects;
it's easy to dump and restore data partition-wise, even for
to clone system installations. On the other hand, you can run
into problems according to static space limits which you
don't when you have only one / partition and all directories
are "resized" automatically (haha)... :-) File system defects
will of course affect the whole partition then. (But that's
a different situation anyway: If there's trouble with some
hard disk, better transfer what you can get onto a new media
and wipe the disk; does it happen two times, better use a new
hard disk - or similar advice applies.)

It depends on the requirements. Sometimes it's good, sometimes
bad, and sometimes everything altogether... How many fingers? ;-)




-- 
Polytropon
>From 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: Deinstall software

2009-05-31 Thread Wojciech Puchar

In fact, given that FreeBSD doesn't seem to have a native convention on
how exported filesystems are laid out (no mention in hier(7), no default
/etc/exports file), it would make sense to adopt the Solaris/Linux style 
where

feasible.


it's best not to adopt any style, but do whatever is optimal in certain 
case.


You propose just another example of "blind repeated rule".

Your idea won't hurt in single-disk, single-partition case, but this case 
is prohibited by other "blind repeat" rule of making lots of partitions.


What if i want export things from multiple disks? just make one 
another separete  partition on each disk for /export/something just to 
make system config look "nice" or "professional" because it's good to have 
NFS exported things to stay in /export



Such practices gives only illusion or cleanliness and order, actually 
giving exactly opposite.


Actually one ZFS adventage grown on this - it allows you to make millions 
of "partitions" without actually creating them, because it's all still 
stored in one pool. But those who feel configuration with a lots of 
partitions "cleanness and order" are happy now.


I see this as just a pure mess, not an order.
___
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: Deinstall software

2009-05-31 Thread Wojciech Puchar

One exception: The creation of different partitions according
to different uses can (but doesn't neccessarily have to) be
useful if partition-wise dumps are required or intended. As
you know, there are advantages and disadvantages. There can


This is only adventage - to use dump.
Anyway - do someone use dump (not tar or similar) on terabyte-sized 
partition.


For me it never succeeded, even if it dumps successfully produced output 
could be unrestorable.


After getting this twice i stayed away from this great (but nonworking) 
tool. Backup tool that are not 100% sure is not a backup tool.


with tar, rsync, whatever - partitioning no longer matters as they work on 
file/directory abstraction level.



___
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 7.2-RELEASE] Audio going silent after wakeup.

2009-05-31 Thread Paul B. Mahol
On 5/31/09, LoH  wrote:
> After setting up an Audigy2ZS with the emu10kx kernel driver, I found
> that after the machine goes into a suspend mode and wakes up, the sound
> stops playing. Unloading and reloading the kernel drivers (sound.ko and
> snd_emu10kx.ko) doesn't appear to do anything. I tested with an external
> line device and mplayer.
>
> A reboot clears up the symptoms.
>
> Has anyone else noticed this before? Is there a way to get the problem
> to sit up and bark without doing a complete reboot?

WHat happens if you unload module before suspending?


-- 
Paul
___
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: Deinstall software

2009-05-31 Thread Polytropon
On Sun, 31 May 2009 11:19:10 +0200 (CEST), Wojciech Puchar 
 wrote:
> For me it never succeeded, even if it dumps successfully produced output 
> could be unrestorable.
> 
> After getting this twice i stayed away from this great (but nonworking) 
> tool. Backup tool that are not 100% sure is not a backup tool.
> 
> with tar, rsync, whatever - partitioning no longer matters as they work on 
> file/directory abstraction level.


I've recently discovered cpdup on another UFS formatted HDD for
this job. Until now, works good.

I just prefer dump + restore for "cloning" systems because it
explicitely takes care of file attributes and anything; I do use
it usually from hard disk to hard disk, not via storage media
(backup set).


-- 
Polytropon
>From 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: Deinstall software

2009-05-31 Thread Matthew Seaman

Wojciech Puchar wrote:

Your idea won't hurt in single-disk, single-partition case, but this 
case is prohibited by other "blind repeat" rule of making lots of 
partitions.


I didn't say anything about how file system layout should be mapped to
disk partitions[*]. Nor do I support the concept of making lots and lots of
small partitions.  Check the archives: I'm one of the people that regularly
advocates the 'one big root' style.

Cheers,

Matthew

[*] Although historically there have been bugs with NFS exports making it
possible to access any files on the same partition, which would make a separate
partition for /exports a damn good idea.

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Deinstall software

2009-05-31 Thread Polytropon
On Sun, 31 May 2009 11:15:19 +0200 (CEST), Wojciech Puchar 
 wrote:
> it's best not to adopt any style, but do whatever is optimal in certain 
> case.
> 
> You propose just another example of "blind repeated rule".

It is often found as "corporate standard". This doesn't mean you
have to use it on your own systems, but it helps to understand
why things are there and configured in a specific way.

With ZFS, of course, there's much room for improvement. :-)



-- 
Polytropon
>From 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: Deinstall software

2009-05-31 Thread Wojciech Puchar

I just prefer dump + restore for "cloning" systems because it
explicitely takes care of file attributes and anything; I do use

You are right, but rsync can do the same :)


___
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: about using ppp over ethernet

2009-05-31 Thread Nikos Vassiliadis

Yavuz Maşlak wrote:
I have a adsl modem. I am going to use freebsd as a router and firewall. 

...

What am I doing wrong?


It is probably the firewall, it seems that you use 
firewall_type="closed". Could give us some more info

about it?
Which firewall do you use? what are your custom rules?

You can read more about the firewalls available in
FreeBSD from relevant section of the handbook:
http://www.freebsd.org/doc/en/books/handbook/firewalls.html

Nikos
___
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: Deinstall software

2009-05-31 Thread Wojciech Puchar


Your idea won't hurt in single-disk, single-partition case, but this case 
is prohibited by other "blind repeat" rule of making lots of partitions.


I didn't say anything about how file system layout should be mapped to
disk partitions[*]. Nor do I support the concept of making lots and lots of
small partitions.  Check the archives: I'm one of the people that regularly
advocates the 'one big root' style.


I did't tell you said this, just compared the idea of "the only right 
directory layout" with this.



[*] Although historically there have been bugs with NFS exports making it
possible to access any files on the same partition, which would make a 
separate

partition for /exports a damn good idea.


And this is probably the reason for /exports tradition in Solaris. At 
first - this is solution for some problem, then - it's dumbly repeated 
even if problem doesn't exist any more.


The same with partitioning. In very very old unices with pre-FFS 
filesystem it actually improved performance, speed up checking, improved 
recovery so they did it. Now it no longer gives any adventage in most 
cases, just gives problem of making one partition too small and other too 
big.


Yet - it's dumbly followed as a rule, and explained by repeating the 
reasons that are no longer true for years.

___
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: Deinstall software

2009-05-31 Thread Wojciech Puchar

case.

You propose just another example of "blind repeated rule".


It is often found as "corporate standard". This doesn't mean you


Well i don't expect many smart people working in big corporations. There 
are exceptions of course - those that got there by accident and not yet 
left ;)


___
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"


migrating berkeley DBs (4.3 to 4.6)

2009-05-31 Thread Erik Norgaard

Hi:

I have cyrus-imapd 2.3 with Berkeley DB 4.3 and openldap also compiled 
with BDB 4.3.


Now, openldap won't build with 4.3 and defaults to 4.6 so I need to 
migrate my data, and I would like to migrate my cyrus-imapd also to a 
newer version of BDB.


Are there any tools or tricks for doing this?

The BDB v4.4 port refers to a compatibility page maintained at 
sleepycat, but this is now redirected to Oracle and I find no such 
information. Any page listing the db file compatibility?


Thanks, Erik

--
Erik Nørgaard
Ph: +34.666334818/+34.915211157  http://www.locolomo.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"


hi

2009-05-31 Thread димон мики

http://pills55c.krovatka.su
___
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"


sshd + pam_pgsql

2009-05-31 Thread Sajó Zsolt Attila
Hi!

I would like use the sshd with pam_pgsql module. But it isn't work, and I can't 
configure the pam debug too. So my two question:
How can I use the pam debug?
How do I use the sshd with pam-pgsql?

OS: FreeBSD 7.2

My /etc/pamd./sshd:
authrequiredpam_unix.so no_warn try_first_pass
authsufficient  pam_pgsql.so 
config_file=/etc/ssh/ssh-pam_pgsql.conf
account requiredpam_unix.so
account requisite   pam_pgsql.so 
config_file=/etc/ssh/ssh-pam_pgsql.conf
passwordrequiredpam_unix.so no_warn try_first_pass
passwordsufficient  pam_pgsql.so 
config_file=/etc/ssh/ssh-pam_pgsql.conf
session sufficient  pam_pgsql.so 
config_file=/etc/ssh/ssh-pam_pgsql.conf


My /etc/ssh/ssh-pam_pgsql.conf:
debug
pw_type = md5
connect = dbname=sshuser user=attila password=x
auth_query = select password from felhasznalok where user_name = %u
acct_query = select password from felhasznalok where user_name = %u
pwd_query = update account set password = %p where user_name = %u


psql -U attila -c "SELECT * FROM felhasznalok" sshuser":
user_name | password | uid  | gid  | login_class | password_change_time | 
account_expiry_time | user_full_name | home_directory  | user_shell 
---+--+--+--+-+--+-++-+
 sftpuser2 | sara | 2001 | 2001 | hungarian   |  |  
   | sftp user  | /home/.sftpuser | /bin/sh


My /etc/ssh/sshd_conf:
[..]
UsePAM yes
PasswordAuthentication yes
PermitEmptyPasswords yes
PermitRootLogin  without-password
[..]



ssh -v -l sshuser2 luk1814.no-ip.org:
OpenSSH_5.1p1 FreeBSD-20080901, OpenSSL 0.9.8e 23 Feb 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to luk1814.no-ip.org [84.3.76.241] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1 
FreeBSD-20080901
debug1: match: OpenSSH_5.1p1 FreeBSD-20080901 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1p1 FreeBSD-20080901
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'luk1814.no-ip.org' is known and matches the DSA host key.
debug1: Found key in /root/.ssh/known_hosts:6
debug1: ssh_dss_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive
debug1: Next authentication method: password
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive
Permission denied, please try again.
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive
Permission denied, please try again.
Received disconnect from 84.3.76.241: 2: Too many authentication failures for 
sftpuser3


___
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: sshd + pam_pgsql

2009-05-31 Thread Maciej Milewski
Dnia niedziela 31 maj 2009 o 16:18:09 Sajó Zsolt Attila napisał(a):
> How do I use the sshd with pam-pgsql?
I don't know how tu use but I see something strange with your setup.
In ssh-pam_pgsql.conf you have pw_type = md5 and in your database you have a 
cleartext password. I think it is your problem.
I think that you can add column in your database and convert cleartext 
password to md5. Or, if possible, configure pam to use cleartext password. I 
don't know if the latter is possible in pam.

Cheers,
Maciek
___
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: find and searching for specific expression in files

2009-05-31 Thread 郑天宇
On Sat, May 30, 2009 at 11:25:12AM +0200, Zbigniew Szalbot wrote:
> Hello,
> 
> Can you please give me a hint how to use find to search for a specific
> text within files?

If you just want the filenames which contain the string you are
searching for, use the "-l" argument to tell grep to print out the
filenames.

For example:

grep -rl "string" .

will print out all the filenames containning "string".


> 
> 
> -- 
> Zbigniew Szalbot
> 
> ___
> 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"

 郑天宇
2009年05月31日
-- 
zheng.org


pgpN3TtCeoBit.pgp
Description: PGP signature


Re: portupgrade jails

2009-05-31 Thread Lowell Gilbert
David Collins  writes:

> I have several jails for the purpose of not trashing my root partition
> with junk programs that I may not need and also to learn how to run
> various system services, ie dns, http, mysql, samba etc. I have been
> running them for a while and have only just updated the jail root
> after rebuilding world.
>
> I have been using portupgrade to rebuild the host ports I have
> installed. What I would like it know is if it is possible to use
> portupgrade on the host system to update the jail ports. So like when
> rebuilding world a destdir is specified and is populated with the new
> world, is it possible to do the same with portupgrade? The reason is
> because I don't want to have to install portupgrade and ruby several
> times, also I can script the upgrade easily too.
>
> I have been reading through the ports and portupgrade man pages and
> setting environment variables to the appropriate directories in the
> jail to try to get this to work but so far no luck. Portupgrade wants
> to upgrade the host ports
>
> Here is what I have tried so far:
>
> viper:~$ export DISTDIR=/usr/jails/xserver/var/tmp/
> viper:~$ export WRKDIRPREFIX=/usr/jails/xserver/var/tmp/
> viper:~$ export PREFIX=/usr/jails/xserver/usr/local/
> viper:~$ export BATCH=yes
> viper:~$ export PORT_DBDIR=/usr/jails/xserver/var/db/p
> viper:~$ export PORT_DBDIR=/usr/jails/xserver/var/db/ports
> viper:~$ export PKG_DBDIR=/usr/jails/xserver/var/db/pkg/
> viper:~$ export PORTS_DBDIR=/usr/jails/xserver/var/db/ports
> viper:~$
> viper:~$ sudo portupgrade -narR

It sounds like PREFIX is the one you're not picking up.

Perhaps it's being overridden by one of your makefiles, or by
portupgrade's configuration files?

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
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"


kernel compile problem

2009-05-31 Thread Rodrigo Vilanova

Hi there,

  
 I want to use FreeBSD 7.2 as a simple firewall and VPN at home. I’ve a
dedicated computer to this.

  
 I’m trying to compile my FreeBSD 7.2 Kernel on my computer and I having
the following problem:


[...] 

/usr/src/sys/modules/svr4/../../compat/svr4/svr4_stat.c: In function 
'svr4_sys_systeminfo':/usr/src/sys/modules/svr4/../../compat/svr4/svr4_stat.c:461:
 error: 'hostid' undeclared (first use in this 
function)/usr/src/sys/modules/svr4/../../compat/svr4/svr4_stat.c:461: error: 
(Each undeclared identifier is reported only 
once/usr/src/sys/modules/svr4/../../compat/svr4/svr4_stat.c:461: error: for 
each function it appears in.)*** Error code 1
Stop in /usr/src/sys/modules/svr4.*** Error code 1
Stop in /usr/src/sys/modules.*** Error code 1
Stop in /usr/obj/usr/src/sys/FW.*** Error code 1
Stop in /usr/src.*** Error code 1
Stop in /usr/src.


 

  
 How can I solve this problem, please?

 

  
 I attached these files:

 

compile.tar

  
 FW -> kernel config file

  
 dmesg.boot

  
 compiler.end - it is the exit from "make buidkernel KERNCONF=FW"

 

best regards,

Cabelyn

 
_
Windows Live™: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009FW000644
 00 00 0010211 11210517553 011407 
0ustar00rootwheel00
 00 
cpu
 I686_CPU
ident   FW

makeoptions DEBUG=-g# Build kernel with gdb(1) debug symbols

options SCHED_ULE   # ULE scheduler
options PREEMPTION  # Enable kernel thread preemption
options INET# InterNETworking
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options UFS_GJOURNAL# Enable gjournal-based UFS journaling
options MD_ROOT # MD is a potential root device
options NFSCLIENT   # Network Filesystem Client
options NFSSERVER   # Network Filesystem Server
options NFSLOCKD# Network Lock Manager
options NFS_ROOT# NFS usable as /, requires NFSCLIENT
options CD9660  # ISO 9660 Filesystem
options PROCFS  # Process filesystem (requires PSEUDOFS)
options PSEUDOFS# Pseudo-filesystem framework
options GEOM_PART_GPT   # GUID Partition Tables.
options GEOM_LABEL  # Provides labelization
options COMPAT_43TTY# BSD 4.3 TTY compat (sgtty)
options COMPAT_FREEBSD6 # Compatible with FreeBSD6
options COMPAT_FREEBSD7 # Compatible with FreeBSD7
options KTRACE  # ktrace(1) support
options STACK   # stack(9) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time 
extensions
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
options STOP_NMI# Stop CPUS using NMI instead of IPI
options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4)
options AUDIT   # Security event auditing
#optionsKDTRACE_HOOKS   # Kernel DTrace hooks

# Debugging for use in -current
options KDB # Enable kernel debugger support.
options DDB # Support DDB.
options GDB # Support remote GDB.
options INVARIANTS  # Enable calls of extra sanity checking
options INVARIANT_SUPPORT   # Extra sanity checks of internal 
structures, required by INVARIANTS
options WITNESS # Enable checks to detect deadlocks and 
cycles
options WITNESS_SKIPSPIN# Don't run witness on spinlocks for 
speed

device  apic# I/O APIC

# CPU frequency control
device  cpufreq

# Bus support.
device  acpi
device  pci


# ATA and ATAPI devices
device  ata
device  atadisk # ATA disk drives
options 

Waiting for a process to die

2009-05-31 Thread Kelly Jones
How do I wait for a specific process to die? I want to do something like:

waitpid 1234&&(echo "done!" | Mail -s "PROC DONE" kelly.terry.jo...@gmail.com)

I'm sure this is trivial, but I can't find a way to do it.

I wrote a Perl script that checks every second if /proc/pid exists,
but that only works if /proc is mounted + I'm now on VMs which can't
easily mount /proc

-- 
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.
___
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: Waiting for a process to die

2009-05-31 Thread Chris Rees
2009/5/31 Kelly Jones :
> How do I wait for a specific process to die? I want to do something like:
>
> waitpid 1234&&(echo "done!" | Mail -s "PROC DONE" kelly.terry.jo...@gmail.com)
>
> I'm sure this is trivial, but I can't find a way to do it.
>
> I wrote a Perl script that checks every second if /proc/pid exists,
> but that only works if /proc is mounted + I'm now on VMs which can't
> easily mount /proc
>
> --
> We're just a Bunch Of Regular Guys, a collective group that's trying
> to understand and assimilate technology. We feel that resistance to
> new ideas and technology is unwise and ultimately futile.


[ `ps ax |grep pid | wc -l ` = 1 ] && (echo "done!" | Mail -s "PROC
DONE" kelly.terry.jo...@gmail.com)

Chris

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in a mailing list?
___
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: portupgrade jails

2009-05-31 Thread Tim Judd
On Sun, May 31, 2009 at 10:02 AM, Lowell Gilbert <
freebsd-questions-lo...@be-well.ilk.org> wrote:

> David Collins  writes:
>
> > I have several jails for the purpose of not trashing my root partition
> > with junk programs that I may not need and also to learn how to run
> > various system services, ie dns, http, mysql, samba etc. I have been
> > running them for a while and have only just updated the jail root
> > after rebuilding world.
> >
> > I have been using portupgrade to rebuild the host ports I have
> > installed. What I would like it know is if it is possible to use
> > portupgrade on the host system to update the jail ports. So like when
> > rebuilding world a destdir is specified and is populated with the new
> > world, is it possible to do the same with portupgrade? The reason is
> > because I don't want to have to install portupgrade and ruby several
> > times, also I can script the upgrade easily too.
> >
> > I have been reading through the ports and portupgrade man pages and
> > setting environment variables to the appropriate directories in the
> > jail to try to get this to work but so far no luck. Portupgrade wants
> > to upgrade the host ports
> >
> > Here is what I have tried so far:
> >
> > viper:~$ export DISTDIR=/usr/jails/xserver/var/tmp/
> > viper:~$ export WRKDIRPREFIX=/usr/jails/xserver/var/tmp/
> > viper:~$ export PREFIX=/usr/jails/xserver/usr/local/
> > viper:~$ export BATCH=yes
> > viper:~$ export PORT_DBDIR=/usr/jails/xserver/var/db/p
> > viper:~$ export PORT_DBDIR=/usr/jails/xserver/var/db/ports
> > viper:~$ export PKG_DBDIR=/usr/jails/xserver/var/db/pkg/
> > viper:~$ export PORTS_DBDIR=/usr/jails/xserver/var/db/ports
> > viper:~$
> > viper:~$ sudo portupgrade -narR
>
> It sounds like PREFIX is the one you're not picking up.
>
> Perhaps it's being overridden by one of your makefiles, or by
> portupgrade's configuration files?
>


Or portupgrade is using the same souce as pkg_* tools, /var/db/pkg

Or portupgrade is using pkg_* tools.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Mounting Encrypted ISO and mdconfig

2009-05-31 Thread Azim
Does FreeBSD or any BSD/OS have "mount -o encryption" support ?
I want to pipe aespipe and mount an encrypted iso. I have already
checked on FreeBSD 7.1 amd64 that loop option isn't available, so I am
sticking to mdconfig and vnconfig on old versions.

If not then,
Is it possible to pipe aespipe with mdconfig
How do you on-the-fly-mount an Encrypted ISO under FreeBSD ?

Regards,
QD
-- 
  Azim
  quakerdoo...@fmguy.com

“You can only get smarter by playing a smarter opponent."
“The greatest enemy will hide in the last place you would ever 
look.”
“The harder the battle, the sweeter the victory.” 

__
` """|] 
/_ ==o _ ___|" 
),---.(_(___) / 
// (\) )," 
//// 
'-

\\\

-- 
http://www.fastmail.fm - IMAP accessible web-mail

___
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 compile problem

2009-05-31 Thread Chris Rees
2009/5/31 Rodrigo Vilanova :
>
> Hi there,
>
>
>  I want to use FreeBSD 7.2 as a simple firewall and VPN at home. I’ve a
> dedicated computer to this.
>
>
>  I’m trying to compile my FreeBSD 7.2 Kernel on my computer and I having
> the following problem:
>
>
> [...]
>
> /usr/src/sys/modules/svr4/../../compat/svr4/svr4_stat.c: In function 
> 'svr4_sys_systeminfo':/usr/src/sys/modules/svr4/../../compat/svr4/svr4_stat.c:461:
>  error: 'hostid' undeclared (first use in this 
> function)/usr/src/sys/modules/svr4/../../compat/svr4/svr4_stat.c:461: error: 
> (Each undeclared identifier is reported only 
> once/usr/src/sys/modules/svr4/../../compat/svr4/svr4_stat.c:461: error: for 
> each function it appears in.)*** Error code 1
> Stop in /usr/src/sys/modules/svr4.*** Error code 1
> Stop in /usr/src/sys/modules.*** Error code 1
> Stop in /usr/obj/usr/src/sys/FW.*** Error code 1
> Stop in /usr/src.*** Error code 1
> Stop in /usr/src.
>
>
>
>
>
>  How can I solve this problem, please?
>
>
>
>
>  I attached these files:
>
>
>
> compile.tar
>
>
>  FW -> kernel config file
>
>
>  dmesg.boot
>
>
>  compiler.end - it is the exit from "make buidkernel KERNCONF=FW"
>
>
>
> best regards,
>
> Cabelyn
>

Before anyone reads your config file, are you sure the sources are
complete? Can you build GENERIC?

Chris



-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in a mailing list?
___
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: migrating berkeley DBs (4.3 to 4.6)

2009-05-31 Thread Wojciech Puchar
my data, and I would like to migrate my cyrus-imapd also to a newer version 
of BDB.


Are there any tools or tricks for doing this?


possibly it's compatible but if you are not sure use db_dump and 
_load to dump and restore data.

___
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: Waiting for a process to die

2009-05-31 Thread Wojciech Puchar



How do I wait for a specific process to die? I want to do something like:

waitpid 1234&&(echo "done!" | Mail -s "PROC DONE" kelly.terry.jo...@gmail.com)


if i understand you correctly:

your_program parameters &
bg_process_number=$!

...something else...

wait $bg_process_number
echo "done!"



___
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: Waiting for a process to die

2009-05-31 Thread Chris Rees
2009/5/31 Wojciech Puchar :
>
>> How do I wait for a specific process to die? I want to do something like:
>>
>> waitpid 1234&&(echo "done!" | Mail -s "PROC DONE"
>> kelly.terry.jo...@gmail.com)
>
> if i understand you correctly:
>
> your_program parameters &
> bg_process_number=$!
>
> ...something else...
>
> wait $bg_process_number
> echo "done!"
>
>

Er, yeah, actually a much better idea than mine. Ignore my previous
suggestion :)

Chris



-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in a mailing list?
___
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"


changing tab stops

2009-05-31 Thread Robert Huff

I have a C program that writes to a terminal (currently xterm,
but could be anything).  For reasons I won't go into, I would like
to read and change the terminal's tab stops ... from within the
program ... in a generic/portable way.
Is this possible?
If so, what are the keywords associated with my first clue?

Respectfully,


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: Waiting for a process to die

2009-05-31 Thread Steven Schlansker

Chris Rees wrote:

[ `ps ax |grep pid | wc -l ` = 1 ] && (echo "done!" | Mail -s "PROC
DONE" kelly.terry.jo...@gmail.com)
  


Not always going to work.  For example,

[ste...@scs:~]% ps ax | grep init
   1 ?Ss 0:39 init [2] 
13421 pts/1R+ 0:00 grep init


Also if you use its pid, 1, you get a whole bunch of uninteresting 
processes as you're grepping for "1" ;)


[ste...@scs:~]% ps ax | grep 1 | wc -l
94

___
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 7.2-RELEASE] Audio going silent after wakeup.

2009-05-31 Thread LoH
Unloading the module, letting it suspend on its own, then waking it up 
and reloading the module does not cause the symptoms to appear.


Wish I knew offhand what was being called to let it suspend, and which 
state it was.


Paul B. Mahol wrote:

On 5/31/09, LoH  wrote:
  

After setting up an Audigy2ZS with the emu10kx kernel driver, I found
that after the machine goes into a suspend mode and wakes up, the sound
stops playing. Unloading and reloading the kernel drivers (sound.ko and
snd_emu10kx.ko) doesn't appear to do anything. I tested with an external
line device and mplayer.

A reboot clears up the symptoms.

Has anyone else noticed this before? Is there a way to get the problem
to sit up and bark without doing a complete reboot?



WHat happens if you unload module before suspending?


  


___
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: UK Currency Symbol in 7.2 Console

2009-05-31 Thread Graham Bentley

Sorry to keep banging on about this but does anyone actually
have uk pound signs working in 7.2? What font and keymap
are you using? And, what actually is the process for reporting
bugs or getting help with problem like this. Any advice appreciated
even from Mr Puchar :))
___
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: UK Currency Symbol in 7.2 Console

2009-05-31 Thread Wojciech Puchar

bugs or getting help with problem like this. Any advice appreciated
even from Mr Puchar :))


who don't use UK keyboard and pound sign.
___
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"


dual gateways

2009-05-31 Thread Tim Judd
I know it is not typical, but here's my setup.

I have a private IP scope (/24 block) split up.  2 /25's

I have a box that has dual NICs.  One is on the low /25 and one is on the
high /25.  The high /25 is only used for jails and his gateway is a
soekris/alix board that will function.  I can't find out how to get the high
/25 to assign an additional gateway that's directed toward the soekris/alix
SBC.


Any tips or advice on how I can setup the high netblock to get it to route
successfully to the SBC?


and Woj cannot reply to my message, I'm tired of your BS on this list.
Don't do 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: Waiting for a process to die

2009-05-31 Thread Frank Shute
On Sun, May 31, 2009 at 12:42:37PM -0700, Steven Schlansker wrote:
>
> Chris Rees wrote:
> >[ `ps ax |grep pid | wc -l ` = 1 ] && (echo "done!" | Mail -s "PROC
> >DONE" kelly.terry.jo...@gmail.com)
> >  
> 
> Not always going to work.  For example,
> 
> [ste...@scs:~]% ps ax | grep init
>1 ?Ss 0:39 init [2] 
> 13421 pts/1R+ 0:00 grep init

This is why you should use pgrep(1) to find a PID (and kill it) rather
than directly grepping a ps output like the previous poster did.

> 
> Also if you use its pid, 1, you get a whole bunch of uninteresting 
> processes as you're grepping for "1" ;)
> 
> [ste...@scs:~]% ps ax | grep 1 | wc -l
> 94
> 

Wojcech nailed the approach the OP should be using.


Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

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


Re: migrating berkeley DBs (4.3 to 4.6)

2009-05-31 Thread Erik Norgaard

Wojciech Puchar wrote:
my data, and I would like to migrate my cyrus-imapd also to a newer version 
of BDB.


Are there any tools or tricks for doing this?


possibly it's compatible but if you are not sure use db_dump and 
_load to dump and restore data.


Thanks, I've had a look at the dump and load utilities, they have no man 
page :( dump works fine, or so I assume. But load fails, it appears that 
db_load won't create a new db file if it does not exist, and creating an 
empty file with touch fails too:


alpha$ db_dump-4.3 -f cn.bdb.dump cn.bdb
alpha$ db_load-4.6 -f cn.bdb.dump cn46.bdb
db_load-4.6: Program version 4.6 doesn't match environment version 0.154
db_load-4.6: DB_ENV->open: DB_VERSION_MISMATCH: Database environment 
version mismatch


The "environment version" varies.

Any hints on how to use these utilities to migrate?

Thanks, Erik

--
Erik Nørgaard
Ph: +34.666334818/+34.915211157  http://www.locolomo.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: Waiting for a process to die

2009-05-31 Thread Nikos Vassiliadis

Frank Shute wrote:

On Sun, May 31, 2009 at 12:42:37PM -0700, Steven Schlansker wrote:

Chris Rees wrote:

[ `ps ax |grep pid | wc -l ` = 1 ] && (echo "done!" | Mail -s "PROC
DONE" kelly.terry.jo...@gmail.com)
 

Not always going to work.  For example,

[ste...@scs:~]% ps ax | grep init
   1 ?Ss 0:39 init [2] 
13421 pts/1R+ 0:00 grep init


This is why you should use pgrep(1) to find a PID (and kill it) rather
than directly grepping a ps output like the previous poster did.


Yes, pgrep is the tool. If you already know the pid, you can
use good old ps:
ps 1 && echo init runs


___
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: migrating berkeley DBs (4.3 to 4.6)

2009-05-31 Thread Wojciech Puchar

Are there any tools or tricks for doing this?


possibly it's compatible but if you are not sure use db_dump and 
_load to dump and restore data.


Thanks, I've had a look at the dump and load utilities, they have no man page


it's not FreeBSD but GNU. No man is equivalent of "read documentation in 
info or out webpage" ;)


:( dump works fine, or so I assume. But load fails, it appears that db_load 
won't create a new db file if it does not exist, and creating an empty file 
with touch fails too:


alpha$ db_dump-4.3 -f cn.bdb.dump cn.bdb
alpha$ db_load-4.6 -f cn.bdb.dump cn46.bdb
db_load-4.6: Program version 4.6 doesn't match environment version 0.154
db_load-4.6: DB_ENV->open: DB_VERSION_MISMATCH: Database environment version 
mismatch


ups. really i use only db4.1 and it worked

don't you have mixed libs and executables. looks like 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"


Re: 4 apcupsd problems using USB to connect on FreeBSD 7.2-RELEASE

2009-05-31 Thread Chun-fan Ivan Liao
On Mon, May 11, 2009 at 2:00 AM, Frank Shute  wrote:
>
> On Sun, May 10, 2009 at 05:08:03PM +0800, Chun-fan Ivan Liao wrote:
> >
> > OS version: FreeBSD 7.2 RELEASE
> > apcupsd version: 3.14.5
> > UPS model: APC-MGE Back-UPS RS 1000VA (BR1000TW)
> > UPS cable type: usb
> >
> > 3 important lines in /usr/local/etc/apcupsd/apcupsd.conf:
> > -
> > UPSCABLE usb
> > UPSTYPE usb
> > DEVICE
> > -
> > Other lines are default.
>
> I've got an APC SmartUPS 750 (USB on 6.4-RELEASE).
>
> When I hacked my apcupsd.conf (sometime ago now), I put in:
>
> DEVICE ugen0
>
> I don't know if that's your problem i.e: you haven't specified the
> DEVICE.
>

The reason that I did not specify the DEVICE is because the
instruction in apcupsd.conf said so. And specifying DEVICE ugen0
yielded the same result.

> >
> >
> > Problem Description:
> > 1.
> > The APC box cannot be detected when connected to the FreeBSD system on
> > system boot. (apcupsd_enable="YES" is set in /etc/rc.conf )
> >
> > The associated messages in /var/log/messages:
> > -
> > May 10 16:08:27 aura-cosmetics apcupsd[901]: apcupsd FATAL ERROR in
> > bsd-usb.c at line 735 Cannot find UPS device -- For a link to detailed
> > USB trouble shooting information, please see
> > .
> > May 10 16:08:27 aura-cosmetics apcupsd[901]: apcupsd error shutdown 
> > completed
> > -
> >
> > 2.
> > Continuing 1, if I unplug the connecting USB then re-plug it to the
> > same port, the USB cannot be identified.
> >
> > The associated message in /var/log/messages:
> > -
> > May 10 16:36:17 aura-cosmetics kernel: uhub0: device problem
> > (TIMEOUT), disabling port 3
> > -
> >
> > 3.
> > Contiuning 2, changing the port to plug the USB will do, and
> > /var/log/messages reads:
> > -
> > May 10 16:41:07 aura-cosmetics root: Unknown USB device: vendor 0x051d
> > product 0x0002 bus uhub1
> > May 10 16:41:08 aura-cosmetics kernel: ugen0:  > Conversion Back-UPS RS 1000 FW:7.g9a.D USB FW:g9a, class 0/0, rev
> > 1.10/1.06, addr 2> on uhub1
> > -
> >
> > But when starting the apcupsd now using [apcupsd start], there is no
> > "freebsd startup succeeded" message appearing in /var/log/messages.
> >
> > However using [ps ax| grep apcupsd], there is the following associated
> > procedure in the standard output:
> > -
> > 1264  ??  Ss 0:00.01 apcupsd start
> > -
> >
> > 4.
> > The last problem continuing 3, if stopping the apcupsd now using
> > [apcupsd stop], the following error messages occur in
> > /var/log/messages:
> > -
> > May 10 16:48:11 aura-cosmetics apcupsd[1270]: Valid lock file for
> > pid=1264, but not ours pid=1270
> > May 10 16:48:11 aura-cosmetics apcupsd[1271]: apcupsd FATAL ERROR in
> > bsd-usb.c at line 735 Cannot find UPS device -- For a link to detailed
> > USB trouble shooting information, please see
> > .
> > May 10 16:48:11 aura-cosmetics apcupsd[1271]: Valid lock file for
> > pid=1264, but not ours pid=1271
> > May 10 16:48:11 aura-cosmetics apcupsd[1271]: apcupsd error shutdown 
> > completed
> > -
> >
> > Any help will be greatly appreciated.
>
> Regards,
>
> --
>
>  Frank
>
>
>  Contact info: http://www.shute.org.uk/misc/contact.html
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


how to i designate the current function...?

2009-05-31 Thread Gary Kline
I'm not sure this is std yet, but think it is available in gcc. 
If I'm calling funtion bar(char *, char) with one of the args 
incorrect, is there a way to have gcc name bar() in an error message?

I have a function that I may rename that asks whether or not to 
continue 
processing "Y/n", and I type in 'U' rather that 'Y' in the calling
routine, what's the _MAGIC_ string to use.

Right now i have something like :

default_yesno("Continue? [Y/n]? ", 'Y'); and in default_yesno()
I error check.

Just to save o/wise time/effort/typing.

gary

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 4.91a release of Jottings: http://jottings.thought.org/index.php

___
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: 4 apcupsd problems using USB to connect on FreeBSD 7.2-RELEASE

2009-05-31 Thread Chun-fan Ivan Liao
On Sun, May 10, 2009 at 8:23 PM, Ion-Mihai Tetcu  wrote:
> On Sun, 10 May 2009 17:08:03 +0800
> Chun-fan Ivan Liao  wrote:
>
>> OS version: FreeBSD 7.2 RELEASE
>> apcupsd version: 3.14.5
>> UPS model: APC-MGE Back-UPS RS 1000VA (BR1000TW)
>> UPS cable type: usb
>>
>> 3 important lines in /usr/local/etc/apcupsd/apcupsd.conf:
>> -
>> UPSCABLE usb
>> UPSTYPE usb
>> DEVICE
>> -
>> Other lines are default.
>>
>>
>> Problem Description:
>> 1.
>> The APC box cannot be detected when connected to the FreeBSD system on
>> system boot. (apcupsd_enable="YES" is set in /etc/rc.conf )
>>
>> The associated messages in /var/log/messages:
>> -
>> May 10 16:08:27 aura-cosmetics apcupsd[901]: apcupsd FATAL ERROR in
>> bsd-usb.c at line 735 Cannot find UPS device -- For a link to detailed
>> USB trouble shooting information, please see
>> .
>> May 10 16:08:27 aura-cosmetics apcupsd[901]: apcupsd error shutdown
>> completed -
>
> Please post your /var/run/dmesg.boot after a roobot.
>

Please see http://www.ivangelion.tw/~cfliao/dmesg.boot.

>> 2.
>> Continuing 1, if I unplug the connecting USB then re-plug it to the
>> same port, the USB cannot be identified.
>>
>> The associated message in /var/log/messages:
>> -
>> May 10 16:36:17 aura-cosmetics kernel: uhub0: device problem
>> (TIMEOUT), disabling port 3
>> -
>
> I'd say we hava a problem here.
>
> I'd be curios to know if you see the same thing with a kernel w/o usb
> in it and the following klds loaded: usb.ko, ugen.ko, umass.ko
>

The result is the same. I've commented all the usb devices in my
kernel, and put the following 3 lines in /boot/loader.conf:
  usb_load="YES"
  ugen_load="YES"
  umass_load="YES"

>
>
> --
> IOnut - Un^d^dregistered ;) FreeBSD "user"
>  "Intellectual Property" is   nowhere near as valuable   as "Intellect"
> FreeBSD committer -> ite...@freebsd.org, PGP Key ID 057E9F8B493A297B
>
___
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: What's wrong with this picture?

2009-05-31 Thread GT
I'm pretty sure you could set up a filter on Mr Puchar's name; it's not
hard.

That said, I just read a sample of his posts (not all of them), and the
ones I looked at didn't appear to be 'off-topic' and would probably have
passed muster from any reasonable moderator (aye, but there's the rub:
who gets to define 'reasonable'?).

The phrase "You're fast to agree with our resident M$ troll when he
argues against government control of anything, even of protecting the
population from a 'free' market that's happy to profit by poisoning
people in body or mind" stands in stark contrast to your exhortation
that he "focus [his] energies on things you do know something about".

I'm against moderation, for the simple reason that people who want to be
moderators will bring their baggage to their efforts (like your
"corporations kill the environment and are protected by the 'free'
market" stuff, or my "government is the problem, full stop: Caedite Eos"
stuff). That is to say, anyone who wants to be a moderator ought to be
disqualified from doing so (that goes for anyone who wants to control
anyone else).

In sum, I double-plus unbellyfeel groupthink.

Cheerio


GT
(No Microsoft products were used in the creation of this message - MS
would not exist but for its government contracts ... MSFT is a
distinctly NON-'market' entity).


On Sun, 2009-05-31 at 16:00 +1000, Ian Smith wrote:
> On Sat, 30 May 2009, freebsd-questions-requ...@freebsd.org wrote
> in freebsd-questions Digest, Vol 260, Issue 31
> [..]
>  >1. Fw: UK Currency Symbol in 7.2 Console (Graham Bentley)
>  >2. Re: find and searching for specific expression in files
>  >   (Mel Flynn)
>  >3. Re: find and searching for specific expression in files
>  >   (Valentin Bud)
>  >4. Re: MIME attachments in mbox files (Ian Smith)
>  >5. Re: Canon printer and TurboPrint (Jerry)
>  >6. FreeBSD 7.0-RELEASE-p12 bind9 log files not found
>  >   (Prokofyev Vladislav)
>  >7. GSM to Serial Converter (Exemys)
>  >8. Re: FreeBSD 7.0-RELEASE-p12 bind9 log files not found (Mel Flynn)
>  >9. Re: FreeBSD 7.0-RELEASE-p12 bind9 log files not found
>  >   (Michael Powell)
>  >   10. Re: GSM to Serial Converter (Kevin Kinsey)
>  >   11. Re: Canon printer and TurboPrint (cpghost)
>  >   12. Re: FreeBSD 7.0-RELEASE-p12 bind9 log files not found
>  >   (Prokofyev Vladislav)
>  >   13. Re: Canon printer and TurboPrint (Wojciech Puchar)
>  >   14. Re: Fresh install 7.2-RELEASE i386, X won't start
>  >   (Wojciech Puchar)
>  >   15. Re: Failure to get past a PCI bridge (Ian Smith)
>  >   16. Re: What is this forum for? (Wojciech Puchar)
>  >   17. Re: Stable Mail Server And Web Mail (Wojciech Puchar)
>  >   18. Re: What is this forum for? (Wojciech Puchar)
>  >   19. Re: FreeBSD 7.0-RELEASE-p12 bind9 log files not found (Mel Flynn)
>  >   20. Re: On the need for moderated questions lists (Wojciech Puchar)
>  >   21. Re: Competition law (was Re: Canon printer and TurboPrint)
>  >   (Wojciech Puchar)
>  >   22. RE: On the need for moderated questions lists (Wojciech Puchar)
>  >   23. Re: Canon printer and TurboPrint (Wojciech Puchar)
>  >   24. Re: MIME attachments in mbox files (Wojciech Puchar)
>  >   25. Re: Canon printer and TurboPrint (Wojciech Puchar)
>  >   26. Re: On the need for moderated questions lists (Wojciech Puchar)
>  >   27. Re: Remotely edit user disk quota (Wojciech Puchar)
>  >   28. Re: find and searching for specific expression in files
>  >   (Wojciech Puchar)
>  >   29. Re: Stable Mail Server And Web Mail (Mel Flynn)
>  >   30. Re: Software creating karaoke from mp3 files (Wojciech Puchar)
>  >   31. Re: Greylisting and new posters (Wojciech Puchar)
>  >   32. Re: find and searching for specific expression in files
>  >   (Wojciech Puchar)
>  >   33. Re: Canon printer and TurboPrint (Wojciech Puchar)
>  >   34. Re: Canon printer and TurboPrint (cpghost)
>  >   35. Filter request Re: GSM to Serial Converter (Wojciech Puchar)
>  >   36. Re: Stable Mail Server And Web Mail (Wojciech Puchar)
> 
> Woj, 20 out of 36 messages, over 55% of all these messages, are by you.
> 
> Having been very busy in recent weeks, I'd accumulated about 24 digests 
> unread that I ploughed through yesterday, many of which featured over 
> 50% of messages either from you, or from silly people reacting to you, 
> whose ranks I must join for just this once.
> 
> I gather that you're hoping to prove that without moderation - as we've 
> enjoyed for 11 years that I've experienced - if you keep on flooding the 
> list with so much off-topic crap, then we'll be forced into accepting 
> your wish for the list to be controlled, post by post, by some poor 
> bastard who needs to be awake 24/7/365 and has little else of a life.
> 
> I don't have the sort of free time (nor apparent need) that you have to 
> try fashioning this sometimes-helpful list after my own wishes, which is 
> why I get digests, posting occasionally where I think I c

Re: dual gateways

2009-05-31 Thread Nikos Vassiliadis

Tim Judd wrote:



On Sun, May 31, 2009 at 3:55 PM, Nikos Vassiliadis > wrote:


Tim Judd wrote:

I know it is not typical, but here's my setup.

I have a private IP scope (/24 block) split up.  2 /25's

I have a box that has dual NICs.  One is on the low /25 and one
is on the
high /25.  The high /25 is only used for jails and his gateway is a
soekris/alix board that will function.  I can't find out how to
get the high
/25 to assign an additional gateway that's directed toward the
soekris/alix
SBC.


Any tips or advice on how I can setup the high netblock to get
it to route
successfully to the SBC?


Something like:
[internet-IP router 10.0.0.1/25]
|
|
[10.0.0.129/25 FreeBSD 10.0.0.2/25]
   |
   |
[10.0.0.130/25 router internet-IP]

Is this your setup?
OK, I am confused:) Could you please explain?




internet
  router1 (192.168.0.1/25)
(192.168.0.2/25) router2 (192.168.0.129/25) 
  [192.168.0.5/25] Box with problems [192.168.0.130]


All my jails on this box is on the top half, and i want the jails to go 
through the 192.168.0.129/25 gateway (which in 
turn goes through 0.1, but it's a matter of separating off hostile 
computers in my lab that i work on ppls computers with.



Does this help?


Yes, you want to use 192.168.0.2 as your default route and
192.168.0.129 as the default route for traffic originating
from the jails 192.168.0.130/25. You can use a firewall to
do such things, all three "FreeBSD" firewalls have this ca-
pability. ipfw has the fwd action and pf has the route-to
option to change the next hop to whatever the administrator
desires. Check the manual of your favorite firewall.

There is an other option, setfib. You could compile a kernel
with multiple routing tables support and start the jails in
the second routing table which would have 192.168.0.129 as
the default router.

HTH, Nikos
___
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: changing tab stops

2009-05-31 Thread Thomas Dickey
On Sun, May 31, 2009 at 03:44:24PM -0400, Robert Huff wrote:
> 
>   I have a C program that writes to a terminal (currently xterm,
> but could be anything).  For reasons I won't go into, I would like
> to read and change the terminal's tab stops ... from within the
> program ... in a generic/portable way.

You could make a program which does what "resize" does to find the
screensize: it moves the cursor and asks where it is.  (I'm not
aware of an existing program which asks based on tab stops).

>   Is this possible?
>   If so, what are the keywords associated with my first clue?

The control sequence that does the asking is the cursor position
report (CPR).

http://invisible-island.net/xterm/ctlseqs/ctlseqs.html

(also vt100.net).

Not all terminals implement this (for instance FreeBSD console probably
does not).

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgp17rTVu32wR.pgp
Description: PGP signature


Re: UK Currency Symbol in 7.2 Console

2009-05-31 Thread Polytropon
Hi Graham,

I never thought that I could help you, but playing around a bit
on the keyboard seemed to open up an interesting obervation:

- £ -

A working Pound sign!

On Sun, 31 May 2009 21:10:25 +0100, "Graham Bentley"  wrote:
> Sorry to keep banging on about this but does anyone actually
> have uk pound signs working in 7.2? What font and keymap
> are you using?

Accidentally - because I never intended it - I have a
UK Pound sign: £

Settings:

LC_ALL is set to en_US.ISO8859-1

In /etc/rc.conf:

keymap="german.iso"
keyrate="fast"
font8x14="iso-8x14"
font8x16="iso-8x16"
font8x8="iso-8x8"

In X:

Nothing changed, except stuff in xorg.conf that hasn't
something to do with fonts 'n stuff.

Tested setting:

Editor GNotepad+ (port gnotepad+, run as gnp)
Keypress: Alt-Gr + Shift + 3
Shift + 3 -> §
Alt-Gr + 3 -> ³
Alt-Gr + Shift + 3 -> £

This is, as I mentioned before, obviously not intended. I'm
using german settings for the keyboard. Note that I don't use
-15 (instead of -1) so I don't have the Euro currency symbol
in gnp, but I have it in OpenOffice (Alt-Gr + E). Maybe it
works with -15, too.

Further testing:

Works in X-Terminal (standard xterm)
Works in Sylpheed (Gtk 2)
Works in GNotepad+ (Gtk 1)
Works in OpenOffice 3.0.0 M9/9358 (german version)

Maybe you want to try it.

Here are some Pound signs for copy & paste: £ £ £ £ £ £ £ £ £.
Use them wisely and in peace. :-)



> And, what actually is the process for reporting
> bugs or getting help with problem like this.

I don't think it's a "problem", it's just a "strangely
appearing circumstance of misconfiguration". :-)



-- 
Polytropon
>From 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 to i designate the current function...?

2009-05-31 Thread Ondřej Majerech

On Mon, 01 Jun 2009 00:31:40 +0200, Gary Kline  wrote:


I'm not sure this is std yet, but think it is available in gcc.
If I'm calling funtion bar(char *, char) with one of the args
incorrect, is there a way to have gcc name bar() in an error message?



Are you looking for the __FUNCTION__ macro?

void baz( char yes_no ) {
if ( yes_no == 'Y' || yes_no == 'N' ) {
// Do stuff...
} else {
printf( "%s: %s\n", __FUNCTION__, "I got an invalid arg" );
}
}

AFAIK, this isn't standard C, but well supported on GCC.

Ondra
___
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: UK Currency Symbol in 7.2 Console

2009-05-31 Thread Frank Shute
On Sun, May 31, 2009 at 09:10:25PM +0100, Graham Bentley wrote:
>
> Sorry to keep banging on about this but does anyone actually
> have uk pound signs working in 7.2? What font and keymap
> are you using? 

keymap="uk.cp850"

I guess I use the corresponding syscons font file as I don't have a
declaration in rc.conf.

You should be able to use vidcontrol(1) to load new sycons fonts.

You can compile in your default syscons(4) font once you get it
working.

> And, what actually is the process for reporting
> bugs or getting help with problem like this. Any advice appreciated
> even from Mr Puchar :))

For reporting bugs: send-pr(1).

This isn't a bug though, as my UK keyboard works fine on 7.2-RC2

Your problem can probably be fixed by:

# vidcontrol -f 8x16 /usr/share/syscons/fonts/cp850-8x16.fnt
# kbdcontrol -l /usr/share/syscons/keymaps/uk.cp850.kbd

or you could use the iso keymap, I guess.


Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

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


Re: how to i designate the current function...?

2009-05-31 Thread Gary Kline
On Mon, Jun 01, 2009 at 12:53:39AM +0200, Ond??ej Majerech wrote:
> On Mon, 01 Jun 2009 00:31:40 +0200, Gary Kline  wrote:
> 
> > I'm not sure this is std yet, but think it is available in gcc.
> > If I'm calling funtion bar(char *, char) with one of the args
> > incorrect, is there a way to have gcc name bar() in an error message?
> >
> 
> Are you looking for the __FUNCTION__ macro?
> 
> void baz( char yes_no ) {
> if ( yes_no == 'Y' || yes_no == 'N' ) {
> // Do stuff...
> } else {
> printf( "%s: %s\n", __FUNCTION__, "I got an invalid arg" );
> }
> }
> 
> AFAIK, this isn't standard C, but well supported on GCC.
> 
> Ondra


Yes, this is just what I was thinking off.  Thanks muchly.

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 4.91a release of Jottings: http://jottings.thought.org/index.php

___
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: What's wrong with this picture?

2009-05-31 Thread Wojciech Puchar

passed muster from any reasonable moderator (aye, but there's the rub:
who gets to define 'reasonable'?).

The phrase "You're fast to agree with our resident M$ troll when he
argues against government control of anything, even of protecting the
population from a 'free' market that's happy to profit by poisoning
people in body or mind" stands in stark contrast to your exhortation
that he "focus [his] energies on things you do know something about".

I'm against moderation, for the simple reason that people who want to be
moderators will bring their baggage to their efforts (like your
"corporations kill the environment and are protected by the 'free'
market" stuff, or my "government is the problem, full stop: Caedite Eos"
stuff). That is to say, anyone who wants to be a moderator ought to be
disqualified from doing so (that goes for anyone who wants to control


so you like to moderate me, being against moderation
___
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: changing tab stops

2009-05-31 Thread Robert Huff

Thomas Dickey writes:

>  >I have a C program that writes to a terminal (currently xterm,
>  > but could be anything).  For reasons I won't go into, I would like
>  > to read and change the terminal's tab stops ... from within the
>  > program ... in a generic/portable way.
>  
>  You could make a program which does what "resize" does to find the
>  screensize: it moves the cursor and asks where it is.  (I'm not
>  aware of an existing program which asks based on tab stops).

Ugh.  If that's the alternative, I can probably live without.
Thanks for the suggestion.


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: What's wrong with this picture?

2009-05-31 Thread Glen Barber
Please take this to chat@, because this is getting really old.

-- 
Glen Barber
http://www.dev-urandom.com/
___
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"


is there a macro that prints the incoming param list?

2009-05-31 Thread Gary Kline

is there any marco that printfs the incoming list, or am i asking too much of 
the
compiler at runtime?

example:

main (int argc, char *argv)

with this macro might print:  

"2", "testinput"

and baz(char *file, int count)

similarly might print, 

"testinput", "47"

i'm probably asking the impossible, but this is certainly the place to
ask.  

thanks,

gary


ps: i'm looking to create a DEBUG header.



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 4.91a release of Jottings: http://jottings.thought.org/index.php

___
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: is there a macro that prints the incoming param list?

2009-05-31 Thread till plewe
On Mon, Jun 1, 2009 at 10:06 AM, Gary Kline  wrote:
>
> is there any marco that printfs the incoming list, or am i asking too much of 
> the
> compiler at runtime?
>
> example:
>
>main (int argc, char *argv)
>
>with this macro might print:
>
>"2", "testinput"
>
>and baz(char *file, int count)
>
>similarly might print,
>
>"testinput", "47"
>
>i'm probably asking the impossible, but this is certainly the place to
>ask.
>
>thanks,
>
>gary
>
>
>ps: i'm looking to create a DEBUG header.
>
>
>
> --
>  Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
>http://jottings.thought.org   http://transfinite.thought.org
>The 4.91a release of Jottings: http://jottings.thought.org/index.php
>
> ___
> 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"
>

How is the macro supposed to know how to print the arguments?
There may be user defined types.

The simplest way would be to add a printf statement after each
function definition.

You could write scripts which generate the format strings for you from
your header files and then use a (variadic) macro which expects that you have
generated a table which contains for each function name the corresponding
format string and argument list.
___
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: is there a macro that prints the incoming param list?

2009-05-31 Thread Gary Kline
On Mon, Jun 01, 2009 at 10:23:01AM +0900, till plewe wrote:
> On Mon, Jun 1, 2009 at 10:06 AM, Gary Kline  wrote:
> >
> > is there any marco that printfs the incoming list, or am i asking too much 
> > of the
> > compiler at runtime?
> >
> > example:
> >
> >main (int argc, char *argv)
> >
> >with this macro might print:
> >
> >"2", "testinput"
> >
> >and baz(char *file, int count)
> >
> >similarly might print,
> >
> >"testinput", "47"
> >
> >i'm probably asking the impossible, but this is certainly the place 
> > to
> >ask.
> >
> >thanks,
> >
> >gary
> >
> >
> >ps: i'm looking to create a DEBUG header.
> >
> >
> >
> > --
> >  Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
> >http://jottings.thought.org   http://transfinite.thought.org
> >The 4.91a release of Jottings: http://jottings.thought.org/index.php
> >
> > ___
> > 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"
> >
> 
> How is the macro supposed to know how to print the arguments?
> There may be user defined types.
> 
> The simplest way would be to add a printf statement after each
> function definition.


yeah, this is what i've done by hand.  printfs at first, then gdb 
last.  
> 
> You could write scripts which generate the format strings for you from
> your header files and then use a (variadic) macro which expects that you have
> generated a table which contains for each function name the corresponding
> format string and argument list.


a script might work, thanks for the idea.  but it's enought to have 
been 
reminded of the gcc macros .



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 4.91a release of Jottings: http://jottings.thought.org/index.php

___
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"


Buy Apple Ipod , Iphone etc....

2009-05-31 Thread Sales Manager

Dear Prospective Customer,


we are selling all brand and latest electronics such as mobile phones, pda, 
laptop, notebook, ipods, digital camera, gps, plasma television, games at 
affordable and competitive prices.

Our products are brand new ( mobiles are unlocked ) with complete accessories 
and it comes with 18 months international warranty and 8 months return policy.

WE CAN HELP YOU ESTABLISH YOUR OWN BUSINESS


For further Enquiry and Order Placement, Contact us as below :

Below is our Price List:

NOKIA 5800 MUSIC XPRESS ..$300 USD
NOKIA N82 TITANIUM WHITE (UNLOCKED)...$250 USD
NOKIA E90 COMMUNICATOR (UNLOCKED).$450 USD
NOKIA N96 (UNLOCKED)..$350 USD
NOKIA N95 8GB (UNLOCKED)..$320 USD
NOKIA E61i (UNLOCKED).$300 USD
NOKIA 8800 Sapphire Arte (UNLOCKED)...$400USD
NOKIA 8800 Sapphire Arte Triband 3G Unlocked Phone, Sapphire ...$470 USD
NOKIA 6210 Navigator (UNLOCKED)...$200 USD
NOKIA N81 8GB (UNLOCKED)..$300 USD
NOKIA 7900 Prism (UNLOCKED)...$250 USD
NOKIA N76 (UNLOCKED)..$200 USD


APPLE IPHONE 3G 16GB.$250 USD
APPLE IPHONE 3G 8GB..$200 USD
Apple iPhone 16GB$200 USD
Apple iPhone 8GB.$155 USD

MOTOROLA MING A1800 (UNLOCKED)...$500 USD
MOTOROLA Z9 (UNLOCKED)...$410 USD
MOTOROLA Z6W (UNLOCKED)..$150 USD
MOTOROLA SIKEKICK SLIDE (UNLOCKED)...$170 USD
MOTOROLA KRZR K3 (UNLOCKED)..$250 USD
MOTOROLA Q9H (UNLOCKED)..$300 USD
MOTOROLA v3i gold edition (UNLOCKED)$200 USD
MOTORLA Q (UNLOCKED)$220 USD
MOTOROLA MPX300 (UNLOCKED)..$115 USD

SAMSUNG TOCCO...$400 USD
SAMSUNG F110 (ULOCKED)..$350 USD
SAMSUNG F480 (UNLOCKED).$400 USD
SAMSUNG G810 (UNLOCKED).$500 USD
SAMSUNG F700 (UNLOCKED).$450 USD
SAMSUNG G600 (UNLOCKED).$300 USD
SAMSUNG Z710 (UNLOCKED).$280 USD
SAMSUNG M8000 (UNLOCKED)$250 USD
SAMSUNG sgh-i830 (UNLOCKED).$150 USD
SAMSUNG G810 (UNLOCKED).$200 USD
SAMSUNG ARMANI (UNLOCKED)...$300 USD
SAMSUNG F700 (UNLOCKED).$400 USD
SAMSUNG P960 (UNLOCKED).$450 USD
SAMSUNG U900 SOUL (UNLOCKED)$550 USD
SAMSUNG Giorgio Armani P520 (unlocked)..$350 USD
Samsung Omnia i900 (16GB)...$500 USD

SONY ERICSSON C702 (UNLOCKED)...$420 USD
SONY ERICSSON W760 (UNLOCKED)...$400 USD
SONY ERICSSON W960 (UNLOCKED)...$400 USD
SONY ERICSSON XPERIA XI (UNLOCKED)..$350 USD
SONY ERICSSON T303 (UNLOCKED)...$420 USD
SONY ERICSSON G900 (UNLOCKED)...$300 USD
SONY ERICSSON P1 (UNLOCKED).$410 USD


BLACKBERRY PEARL 8220$410 USD
RIM BLACKBERRY STORM 9500$300 USD
BLACKBERRY PEARL 8220$350 USD
BLACKBERRY 8320 CURVE (UNLOCKED).$250 USD
BLACKBERRY 8707V (UNLOCKED)..$340 USD
BLACKBERRY PEARL 8120 (UNLOCKED).$311 USD
BLACKBERRY 7730 (UNLOCKED)...$200 USD
BLACKBERRY 7100X (UNLOCKED)..$210 USD
BLACKBERRY 8700C (UNLOCKED)..$200 USD


HTC ADVANTAGE X7510 (UNLOCKED)..$500 USD
HTC P3470 (UNLOCKED)$300 USD
HTC S630 (UNLOCKED).$250 USD
HTC SHIFT (UNLOCKED)$700 USD
HTC TYTN (UNLOCKED).$410 USD
HTC S710 (UNLOCKED).$230 USD
HTC P3300 (UNLOCKED)$340 USD
HCT TOUCH DIAMOND...$300 USD

CAMERAS

Brand New Nikon D700...650USD
Brand New Nikon D40320USD
Brand New Nikon D40x...399USD
Brand New Nikon D60400USD
Brand New Nikon D80450USD
Brand New Nikon D90510USD
Brand New Nikon D200...350USD
Brand New Nikon D300...700USD
Brand New Nikon D3.800USD

Brand New Canon 1000D .650USD
Brand New Canon XH A1..800USD
Brand New Canon 40D490USD
Brand New Canon 400D...400USD
Brand New Canon 450D...500USD

DIGITAL CAMERA

CANON EOS-1D Mark II-N 8 Megapixel Digital...$750 USD
Canon EOS-5D Digital , 12.8 .$700 USD 
Canon XH A1 1.67MP 3CCD Camcorder with 20x Optical Zoom..$700 USD
Canon XL2 3CCD MiniDV Camcorder w/20x Optical Zoom...$800 USD
Canon XL1 Digital Camcorder Kit

Text attribute differences of syscons and xterm

2009-05-31 Thread Polytropon
I'd like to ask the following question: Can the syscons driver
be configured in a way that certain screen attributes are
displayed in the same way? Read: It is possible to use the
underline attribute in text mode?

For example, when I call "man man" in an xterm, the effect
is this, black on white:

SYNOPSIS
 man [-adfhkotw] [-m arch[:machine]]
 ^^^   ^^^
bold font underlined

It is the same when using grey on black color settings, like
the text mode console does.

On the "real" text mode console, the display is different,
grey on black:

SYNOPSIS
 man [-adfhkotw] [-m arch[:machine]]
 ^^^   ^^^
white (not grey)   inverted

Which file / setting does control how text is displayed when
attributed with some "emphasize" (bold / invert / underline)?
I think it has something to do with the capabilities of the
attached "terminal driver", e. g. a terminal that can do
underline uses underline if requested, one which can't uses
invert instead.

But how can I tell (e. g. through a C program, maybe using
ncurses) that text should be underlined? Inverted is no
problem (change color pair)...

At least according to "man curs_attr", there are several
attributes that can be set. I've made a simple testing
program (attached, I hope) which does, when run in an
xterm, exactly what is intended (almost): colors are chosen
like at the text mode console (grey on black), and both
bold and underlining do work, inverse too. Blinking doesn't.
At the text mode console, blink works, inverse too, but
underlining does not (no effect).

Is there any possible way to get underlining in the "real"
text mode?



-- 
Polytropon
>From 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: kernel compile problem

2009-05-31 Thread Rodrigo Vilanova

Hi Chris,Tks for help. My source was incomplete. My bad!
best regards,Cabelyn
> From: utis...@googlemail.com
> Date: Sun, 31 May 2009 20:32:46 +0100
> To: vilanova_rodr...@hotmail.com
> CC: freebsd-questions@freebsd.org
> Subject: Re: kernel compile problem
> 
> 2009/5/31 Rodrigo Vilanova :
>>
>> Hi there,
>>
>>
>>  I want to use FreeBSD 7.2 as a simple firewall and VPN at home. I’ve a
>> dedicated computer to this.
>>
>>
>>  I’m trying to compile my FreeBSD 7.2 Kernel on my computer and I having
>> the following problem:
>>
>>
>> [...]
>>
>> /usr/src/sys/modules/svr4/../../compat/svr4/svr4_stat.c: In function 
>> 'svr4_sys_systeminfo':/usr/src/sys/modules/svr4/../../compat/svr4/svr4_stat.c:461:
>>  error: 'hostid' undeclared (first use in this 
>> function)/usr/src/sys/modules/svr4/../../compat/svr4/svr4_stat.c:461: error: 
>> (Each undeclared identifier is reported only 
>> once/usr/src/sys/modules/svr4/../../compat/svr4/svr4_stat.c:461: error: for 
>> each function it appears in.)*** Error code 1
>> Stop in /usr/src/sys/modules/svr4.*** Error code 1
>> Stop in /usr/src/sys/modules.*** Error code 1
>> Stop in /usr/obj/usr/src/sys/FW.*** Error code 1
>> Stop in /usr/src.*** Error code 1
>> Stop in /usr/src.
>>
>>
>>
>>
>>
>>  How can I solve this problem, please?
>>
>>
>>
>>
>>  I attached these files:
>>
>>
>>
>> compile.tar
>>
>>
>>  FW -> kernel config file
>>
>>
>>  dmesg.boot
>>
>>
>>  compiler.end - it is the exit from "make buidkernel KERNCONF=FW"
>>
>>
>>
>> best regards,
>>
>> Cabelyn
>>
> 
> Before anyone reads your config file, are you sure the sources are
> complete? Can you build GENERIC?
> 
> Chris
> 
> 
> 
> -- 
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in a mailing list?
> ___
> 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"

_
Insert movie times and more without leaving Hotmail®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009___
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: Text attribute differences of syscons and xterm

2009-05-31 Thread Lars Eighner

On Mon, 1 Jun 2009, Polytropon wrote:


I'd like to ask the following question: Can the syscons driver
be configured in a way that certain screen attributes are
displayed in the same way? Read: It is possible to use the
underline attribute in text mode?


If your video card and monitor combination supports underlining this
might be worth pursuing.  Many VGA-compatible cards do not, and text-mode
underlining has not been common for a long time.

See man 4 screen for the ansi codes to see if you can get your combination
of video card and monitor to display underscores at all.

More than likely you will never get past this step because the odds are your
hardware doesn't have this ability.

If you can get ANSI underscores in text mode, the termcap code for underline
overstrikes is ul.  Perhaps you can devise a termcap that more accurately
describes the capabilities of your monitor/video card combination.  By all
means, backup your original termcap before trying this.

--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
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"