Re: How to ask a DNS resolver listening on a different port than the tcp/udp 53

2013-09-27 Thread jb
Laurent SALIN  laposte.net> writes:

> 
> Hello,
> I wondering how i can send queries to a dns resolver listening on a
> different port than the normaly 53 tcp/udp ?
> 
> The situation:
> I've got a vps who running NSD as a autoritative nameserver, listening
> on tcp/udp 53 and unbound as personnal resolver, listening on a
> different tcp/udp port. It work very well on his own or with my OpenBSD
> gateway at home as DNS cache.
> 
> Recently i've got a new FreeBSD VPS and I want to use the first VPS as
> DNS nameserver for the second VPS but FreeBSD is unable to send queries
> to nameserver on a different port as the normal one (tcp/udp 53).
> 
> I've got a "bad" solution, use unbound on the second VPS and maybe tell
> him to ask the 1rst VPS on the unusual tcp/udp port, but I wonder myself
> if is it possible with Packet Filter to change the destination port of
> the queries forwarded to my 1rst VPS from tcp/udp 53 to tcp/udp 5353 for
> exemple ?
> 
> Or maybe anybody got a other solution ?
> 
> I hope you'll understand me :-/
> 
> Laurent SALIN

Well, I hope I understand you.
You use DNS Proxy server, like BIND or DNSMASQ.

With BIND you have options in /etc/named.conf:
http://www.zytrax.com/books/dns/ch7/queries.html
forward
forwarders

I do not know how DNSMASQ configures it, if at all - you would have to
download original package with full documentation.

jb




 




___
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: ttys file question

2013-09-08 Thread jb
Jack Mc Lauren  yahoo.com> writes:

> 
> Hi list
> 
> I'm trying to connect to my server via a serial port which is named ttyu6
under FreeBSD. In order to do that,
> I've decided to change /etc/ttys file like this:
> 
> ttyu6   " std.115200" cons25  on secure
> 
> But I can not connect to my server with this configuration. But if I
change ttyu6 to cuau6, everything works
> fine! I don't understand the difference, would you please explain the
reason for me?
> 
> Thanks in advance 

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialcomms.html
26.3. Terminals
26.4. Dial-in Service 
26.5. Dial-out Service

jb





___
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: Assign program call to a key

2013-08-03 Thread jb
Polytropon  edvax.de> writes:

> 
> Is there a way to assign a predefined program call to a key
> in X, _independently_ from the window manager or desktop
> environment in use?
> ...

https://wiki.archlinux.org/index.php/Extra_Keyboard_Keys_in_Xorg
It may give you some hints.
jb
 


___
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: dhcp server returns core dump when i define network with mask 8

2013-07-23 Thread jb
s m  gmail.com> writes:

> ... 
> subnet 192.0.0.0 netmask 255.0.0.0 {
> range 192.0.0.1 192.255.255.255;

The 'range' denotes IP addresses that can be allocated to clients.
The IP 192.255.255.255 is a reserved broadcast address for the network.
jb





___
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: dhcp server returns core dump when i define network with mask 8

2013-07-23 Thread jb
s m  gmail.com> writes:

>
> and thank you jb but if i define my network like below,  server runs
> correctly:
> log-facility local7;
> subnet 192.168.0.0 netmask 255.255.0.0 {
> range 192.168.0.1 192.168.255.255;
> }
> 
> i think 192.168.255.55 is reserved for broadcast too. is it not true? if
> yes, why dhcp server works correctly?
> please help me to clear my mind.
> regards,
> SAM

Regarding subnets:

192.168.0.0 netmask 255.255.0.0
is equivalent to
192.168.0.0/16
which splits it into a network id 192.168. and host id .0.0
Another example:
192.168.0.0 netmask 255.0.0.0
is equivalent to
192.168.0.0/8
which splits it into a network id 192. and host id 168.0.0

Regarding broadcast address:

yes, for subnet  192.168.0.0/16 the broadcast ip is 192.168.255.255 .
What are the implications of including broadcast ip in range option ?

Firstly, it depends on how the authors of software, that is DHCP server,
interpreted the dhcpd.conf option data. They could have rejected that
option up front, or accept it (implying you are the boos !).
After all, dhcpd.conf(5) only says:
"
The range statement
range [ dynamic-bootp ] low-address [ high-address];
For any subnet on which addresses will be assigned dynamically, there
must be at least one range statement. The range statement gives
the lowest and highest IP addresses in a range. All IP addresses in
the range should be in the subnet in which the range statement is declared.
"
Well, looks good to me so far !

Next, dhcpd.conf(5) describes how DHCP server deals with:
DYNAMIC ADDRESS ALLOCATION
...
IP ADDRESS CONFLICT PREVENTION
...
You can analyse it and see if any trouble lurks there ...

Secondly, let's assume there was no problem and that ip was dispensed to a host.

But, in a different place of IP specs there is a RFC??? which says that
the 192.168.255.255 as a generically valid ip address will assume some
additional meaning, that is it will be treated as a broadcast address
(it will represent all hosts on a subnet).
Wow ! That should give you a pause ...

It is said that the broadcast address is used by an application to send
the same message to all other hosts in the network simultaneously.
Who is using it ?

Well, our client host is using it (let's assume it was assigned that ip
above ...).
What happens when the host sends a packet out with a source ip address of
a broadcast ip address ? One can imagine that the destination host will
respond and send back a packet to a destination ip address which is our
sender's broadcast ip address ... You mean to every host on that network ?
Something fishy is on the way ...
But while doing it, it will utilize some protocols, like ARP, RIP, etc.

In addition, it is said that broadcast messages are typically produced by
network protocols such as the Address Resolution Protocol (ARP) and
the Routing Information Protocol (RIP).
They will utilize that ip broadcast address regardless of the fact that it
has been presumably assigned to the client host too.

Wow, what a soup ...
Enjoy it while it lasts :-)
jb


___
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: UEFI Secure Boot

2013-07-08 Thread jb
Mike Jeays  rogers.com> writes:

> 
> On Tue, 9 Jul 2013 02:31:40 +0200
> Polytropon  edvax.de> wrote:
> 
> > On Mon, 8 Jul 2013 16:21:28 + (UTC), jb wrote:
> > > I hope FreeBSD (and other OSs) luminaries, devs and users will find
> > > a way not to harm themselves.
> > 
> > A massive problem I (personally) have is that with Restricted Boot
> > (this is what "Secure Boot" basically is) you are no longer able
> > to _ignore_ MICROS~1 and their products. A restrictive boot loader
> > mechanism that requires signed and confirmed keys, handled by a
> > major offender of free decisions and a healthy market - no thanks.
> > What prevents MICROS~1 from revoking keys of a possible competitor?
> > Or from messing with the specs just that things start breaking?
> > ... 
> If I have understood correctly, it is quite easy to disable secure boot on
> most current machines; it is just an option in the UEFI setup.
> 
> The real danger is machines where it cannot be disabled. This includes
> some recent HP machines; whether by design or incompetence I cannot say.

As readers on distrowatch.com put it regarding Secure Boot:

"Secure Boot can be turned off completely or, custom mode entered and other
keys added if so desired thus avoiding the need to deal with Microsoft.
Although it does add extra steps to installing a Linux or BSD system it's
not that difficult to deal with and Secure Boot is part of the UEFI
specifications, not Microsoft's."

"In some cases Secure Boot CANNOT be turned off completely, and in other
cases Secure Boot may be desired. In theses cases, an independent authority
should be signing the key, NOT Microsoft. We shouldn't have to forgo
the use of Secure Boot to avoid dealing with Microsoft.

"It deeply disturbs me that Linux and BSD projects must grovel before
Microsoft to get their key signed to be allowed to install their OS. Why
should MS have such power? There should be an independent entity to handle
this."

jb


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


UEFI Secure Boot

2013-07-08 Thread jb
Hi,

according to distrowatch.com:
"FreeBSD developer Marshall Mickusick told IT Wire that the FreeBSD team would
probably follow in the footsteps of cutting-edge Linux distributions.
"Indeed we will likely take the Linux shim loader, put our own key in it, and
then ask Microsoft to sign it. Since Microsoft will have already vetted
the shim loader code, we hope that there will be little trouble getting them
to sign our version for us.""
http://www.itwire.com/business-it-news/open-source/60498-freebsd-begins-process-to-support-secure-boot

I am just wondering why Linus Torvald is concerned about Microsoft's role ...
http://www.zdnet.com/torvalds-clarifies-linuxs-windows-8-secure-boot-position-711918/

I hope FreeBSD (and other OSs) luminaries, devs and users will find a way not 
to harm themselves.
jb


___
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 this a memory error?

2013-07-06 Thread jb
Dennis Glatting  pki2.com> writes:

> 
> Is this message indicating I have a memory error? I'm seeing this
> message across two systems, one below:
> 
> FreeBSD mc 9.1-STABLE FreeBSD 9.1-STABLE #0 r252678: Thu Jul  4 03:47:52
> PDT 2013 root  mc:/usr/obj/disk-1/src/sys/SMUNI  amd64
> 
> Jul  4 15:11:10 mc kernel: MCA: Bank 2, Status 0x981a400c0176
> Jul  4 15:11:10 mc kernel: MCA: Global Cap 0x0107, Status
> 0x
> Jul  4 15:11:10 mc kernel: MCA: Vendor "AuthenticAMD", ID 0x600f12, APIC
> ID 72
> Jul  4 15:11:10 mc kernel: MCA: CPU 24 COR DCACHE L2 EVICT error
> Jul  4 15:11:10 mc kernel: MCA: Misc 0x0

Google search: kernel: MCA: Bank , Status  DCACHE L2 EVICT error

http://lists.freebsd.org/pipermail/freebsd-questions/2010-August/220060.html
http://forums.freebsd.org/showthread.php?t=24447
jb




___
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: A very 'trivial' question about /root

2013-06-28 Thread jb
Julian H. Stacey  berklix.com> writes:

> 
> jb.1234abcd  gmail.com 's ref to
>   https://bugzilla.redhat.com/show_bug.cgi?id=578470
> relates to Linux upgrade procedures & /root
> I don't see it affects how we should perceive an idealised Unix.
> 

The upgrade was a canary that told the user there is a problem.

The idealized UNIX is standardized.
According to Filesystem Hierarchy Standard (FHS), a UNIX standard:

"
/root : Home directory for the root user (optional)
Purpose
The root account's home directory may be determined by developer or local
preference, but this is the recommended default location. [17]

[17] If the home directory of the root account is not stored on the root
partition it will be necessary to make certain it will default to / if it
can not be located.
"

The above means that there has to be implied equivalency and consistency of
permisssions between /root and / in order to ensure trouble-free operation
of any process that may rely on any of them.

That Linux case I referred to was a case about a system that relied on
the above 0755 setup for /root dir, with an interesting twist of having it
as a dummy account/dir for consistency, but having other accounts play
the role of a superuser.

Another example:
some app (perhaps an installer) runs as non-root (e.g. Apache) user and
needs to be able to read the root ssh public key from /root dir.

There could be many such apps, accessing a front-end system, having to
check for permission in /root dir for whatever they want to do, anywhere
in sys admin, remote control, management, installation, etc areas.

By changing this default you may ambush many unsuspecting users.

jb




___
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: A very 'trivial' question about /root

2013-06-27 Thread jb
ASV  inhio.eu> writes:

> 
> Mine
> is just a concern about these permission defaults which look to me a bit
> too relaxed and cannot find yet a reason why not to restrict it.
> After all I believe having good default settings may make the difference
> in some circumstances and/or save time.

I think the 0755 permissions for /root are correct as default.
If you are concerned about "others", you harden it to 0750 (after all you
are the boos, the "root", anyway).
Otherwise, you may create conditions which cause trouble for others, for
example:
https://bugzilla.redhat.com/show_bug.cgi?id=578470

jb





___
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: Bourne shell "if" syntax

2013-06-10 Thread jb
Michael Sierchio  tenebras.com> writes:

> ... 
> Right.  Many scripts seem to assume that sh is bash, and that's
> certainly not the case here.
> 
> if [ "x$BLAH" = "x" ]; then
> 
> is the most reliable and portable way of determining if it's a string
> of zero length.

Actually this trick is not needed any more (it has not been required for
long time because the problem was fixed).
http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2012-August/004275.html

jb




___
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: "swap" partition leads to instability?

2013-05-30 Thread jb
RW  googlemail.com> writes:

> 
> On Sun, 26 May 2013 12:36:42 + (UTC)
> jb wrote:
> 
> > But, swapping is also a symptom, not a problem.
> > It is never a good idea to let it get to that point.
> 
> No, there are thing that are better on disk than in memory. The most
> common example is tmpfs. It's much better that files left on tmpfs can
> sent to disk rather tying up physical memory indefinitely. 

Yup, tmpfs - in virtual memory. That's an unfortunate excuse.
But before its content are swapped out, the critical system like a server
will be destabilized and show lame performance.
The tmp-on-tmpfs has so many disadvantages that it is difficult to count and
follow all of them.
jb



___
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: "swap" partition leads to instability?

2013-05-30 Thread jb
RW  googlemail.com> writes:

> ... 
> > Yes, there is some confusion about the diff, if any, between paging
> > and swapping.
> > 
> > Paging - copying or moving pages between physical memory (RAM) and
> > secondary storage (e.g. hard disk), in both directions.
> > Swapping - nowdays is synonymous with "paging".
> >   But its history is as follows (per Wikipedia):
> 
> This is a bit Linux-centric.
> ...
> You page-out pages and swap-out processes. 
> 
> When FreeBSD is very short of memory it swaps-out entire processes to
> concentrate the memory in the running processes. Linux goes directly
> from paging to killing processes.

That was helpful - knowing the details of VMM implementation in various OSs
helps understand the generalizations, with exceptions ...
jb


___
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: "swap" partition leads to instability?

2013-05-29 Thread jb
RW  googlemail.com> writes:

> 
> On Sun, 26 May 2013 12:36:42 + (UTC)
> jb wrote:
> 
> > But, swapping is also a symptom, not a problem.
> > It is never a good idea to let it get to that point.
> 
> No, there are thing that are better on disk than in memory. The most
> common example is tmpfs. It's much better that files left on tmpfs can
> sent to disk rather tying up physical memory indefinitely. 
> 
> BTW you mean paging, or swap use, rather that swapping. Linux supports
> only paging, so it can be taken as read that swapping means paging, but
> FreeBSD supports both.

Yes, there is some confusion about the diff, if any, between paging and 
swapping.

Paging - copying or moving pages between physical memory (RAM) and secondary
  storage (e.g. hard disk), in both directions.
Swapping - nowdays is synonymous with "paging".
  But its history is as follows (per Wikipedia):
  Historically, swapping referred to moving from/to secondary storage a whole
  program at a time, in a scheme known as roll-in/roll-out. In the 1960s, after
  the concept of virtual memory was introduced — in two variants, either using
  segments or pages — the term swapping was applied to moving, respectively,
  either segments or pages, between memory and disk. Today with the virtual
  memory mostly based on pages, not segments, swapping became a fairly close
  synonym of paging.

You say that FB supports both, Linux supports paging only.
Well, Linux utilizes swap space as part of virtual memory.
So, can you elaborate more on that - what is the essence of the diff, why
should I avoid the term "swapping" when referring to Linux, assuming VMM
systems on both ?

jb


___
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: "swap" partition leads to instability?

2013-05-29 Thread jb
Fred Morcos  gmail.com> writes:

> .. 
> The improvement effect can be
> noticed on large inputs. These algorithms will most probably perform quite
> badly on small inputs.

I think your concern has been addressed in review of various algos where base
case identification helped to avoid overhead cost in small problem sizes
relative to cache.
http://erikdemaine.org/papers/BRICS2002/paper.pdf

In light of available but not implemented better VMM algos, perhaps *BSD and
Linux could eliminate or reduce the need for:
- swap space
- swapping out RAM even if there is no lack of it
- overcommitment of memory (a bluff asking to be punished by OOM killer)
- OOM killer
Besides, they allow sloppy/dangerous programming.

jb


___
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: "swap" partition leads to instability?

2013-05-28 Thread jb
Follow up comment.

It has been pointed out to me that there is Varnish software taking advantage 
of system VMM and swap space.

Well, there are cache-oblivious algorithms that perform as well, and so they
make the above (disk access model; cache-aware model) unnecessary
(obsolete ?) and are superior in their generality.

jb


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

2013-05-27 Thread jb
M. V.  yahoo.com> writes:

> ... 
> > Swapping by itself can decrease system reliability due to possible
> > data corruption on swap disk or during two-way transfers, with 
> 
> > subsequent incorrect RAM and machine crash.
> >
> > But, swapping is also a symptom, not a problem.
> > It is never a good idea to let it get to that point.
> ...
> 
> >
http://blog.jcole.us/2010/09/28/mysql-swap-insanity-and-the-numa-architecture/
> 
> Very interesting point.
> - do you think this could hurt my server's stability too? (most of its
work is a noticeable amount of
> packet-forwarding, and other network services, like firewall, dhcp server,
ntp server, etc)
> - if so, in what conditions? can I do something to prevent this? or should
I just get rid of the swap partition?
> 
> - does swap partition do any good for me at all? I mean if we even suppose
nothing bad happens because of it, is
> it worth risking to keep it? 
> 
> thank you.

I wish there was a clear answer.

There are two schools practised by server owners:
- with swap space (partition or file)
  They see swapping as a symptom (of a problem, real or potential), and they 
  treat it as a useful early warning device that gives them time to act.
  If prolonged or unattended, swapping may slow down the system and even end
up   in "thrashing", which is close to a terminal state.
- no swap space
  They are "purists" - when they set up a server for a specific purpose they   
  know it (requirements, apps run, resources assigned) and they are in charge.
  No "sissy" swapping, they do not trust those kernel algos, etc. 
  They know that out-of-memory kernel killer may terminate a process (perhaps 
  not the one they would expect) in case of memory crunch, but they think they 
  can live with it by closely watching system and app state indicators to
  prevent that from happening.

In the end it comes down to owner's preferences. 
If in doubt, try with and without swap space and see how it works in your
particular environment.

jb


___
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: "swap" partition leads to instability?

2013-05-26 Thread jb
M. V.  yahoo.com> writes:

> 
> hi everyone,
> 
> I have a 24/7 network server/gateway with FreeBSD-8.2 on a SSD drive. it's
partitioned as normal (/ , /tmp,
> /var , /usr and swap) for a long time now. But recently I heard from a
FreeBSD expert that I shouldn't have
> swap partition for my server, and having swap partition could make my
server unstable. this was so strange
> for me, and I searched a lot but couldn't find a reason for this claim.
> 
> so my question is simple:
> - could having a "swap" partition, be a bad thing for my FreeBSD server?
and if so, why and in what conditions?
> 
> Cheers!

Hi,

I think your FB expert was up to something. I bet he spoke out of experience.

Swapping by itself can decrease system reliability due to possible data
corruption on swap disk or during two-way transfers, with subsequent incorrect 
RAM and machine crash.

But, swapping is also a symptom, not a problem.
It is never a good idea to let it get to that point.
Badly written, architected, or tuned server app or system are the reason.
Think of RDBMS/SQL server processing real-time on-line transactions and how 
much it goes into setting it up properly for a heavy use.
On a smaller scale, consider this example:
http://blog.jcole.us/2010/09/28/mysql-swap-insanity-and-the-numa-architecture/

jb


___
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: where is 1GB of RAM

2013-02-04 Thread jb
Wojciech Puchar  wojtek.tensor.gdynia.pl> writes:

> 
> new dell server:
...
> real memory  = 34359738368 (32768 MB)
> avail memory = 33167446016 (31630 MB)
> 
> where did 1GB of memory go?

- new BIOS firmware available ?
- BIOS - preallocation - graphics card ?
- $ sysctl -a |grep -i mem
jb


___
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: Setuid binaries and File Ownerships in FreeBSD9.0

2013-01-23 Thread jb
Martin McCormick  dc.cis.okstate.edu> writes:

> 
>   The executable in question is a C program whos file
> permissions are 4755 and the file belongs to root so all files
> it opens are also owned by root and that works properly, but
> what I need is for this application to first open a few files owned by
> the caller and then later, upgrade back to root and write to
> files the caller can not write to. I was hoping to avoid using
> chown and chgrp and simply let the privilege level of the
> application dictate ownership of any file it opens.
> 
>   When the application first runs, it gets the UID and GID
> of the user and uses 
> 
> setuid(heruid); and setgid(hergid); to temporarily downgrade and
> those files are owned by the right user but setuid(0); doesn't
> appear to upgrade back to root.
> 
>   Is there any other strategy that gets one back to root
> short of using chown and then a system call and never
> downgrading privilege?
> 
> Thank you.

Unix processes have an effective (EUID, EGID), a real (UID, GID) and a saved
(SUID, SGID) ID.

Get familiar with this document:
http://www.cs.berkeley.edu/~daw/papers/setuid-usenix02.pdf

Then verify its validity on your target and current OS.

jb





___
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: Reading the handbook from console

2013-01-13 Thread jb
Robert Bonomi  mail.r-bonomi.com> writes:

> ... 
> > The is a famous library, svgalib, a "low level console graphics
> > library" which can - under _very_ specific circumstances - display
> > graphics "on" the text mode console. There are few browsers,
> > image viewers and even media players that can use this interface
> > to display "console graphics" while _not_ needing X.
> ... 
> Works fine on FreeBSD  -- graphics-mode screen-savers (like 'fire')
> use it.
...

Yes, it is famous indeed ...
Is that still valid ?

www.svgalib.org/svgalib.user.faq.html
...
Why does a programs terminate immediatelly with "svgalib: Cannot get I/O
permissions."?

svgalib programs need to be run as root. This means that either the user that
runs them is root, or, if running by normal users is desirable, the program
needs to be 'suid root', which means: the program must be owned by root (chown 0
program) and the suid bit needs to be set (chmod u+s program).
...

jb




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


A serious flaw in Java

2013-01-10 Thread jb
http://www.kb.cert.org/vuls/id/625617
jb


___
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: FB 9.1 boot loader problem in VirtualBox

2013-01-07 Thread jb
jb  gmail.com> writes:

> 
> jb  gmail.com> writes:
> 
> > ...
> 
> Next problem:
> the FB 9.1 dmesg differs on:
> - VB VM
> pnp bios: Bad PnP BIOS data checksum
> ...
> orm0:  at iomem 0xc-0xc7fff pnpid ORM on isa0

Correction
> - on real hardware
> none of the above
dmesg:
...
isab0:  at device 31.0 on pci0
isa0:  on isab0
pmtimer0 on isa0
orm0:  at iomem 0xc-0xc,0xe-0xe pnpid ORM
on isa0
sc0:  at flags 0x100 on isa0
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
...

That msg in FB VM:
"pnp bios: Bad PnP BIOS data checksum"
it means what is says - do not trust it; or also do not use PnP ?
But it may also mean a problem accessing it in VM only, as opposed to a real
machine.
Searched Google, it shows often, but no clear interpretation.
jb






___
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: OT - turn off your cam and mike, now ...

2013-01-06 Thread jb
Polytropon  edvax.de> writes:

> 
> On Sun, 6 Jan 2013 21:21:50 +0000 (UTC), jb wrote:
> > 
> >
http://www.businessinsider.com/verizon-dvr-will-know-what-your-doing-and-saying-2012-12
> 
> http://boingboing.net/2012/11/08/microsoft-patents-spying-on-yo.html
> 
> http://hdguru.com/is-your-new-hdtv-watching-you/7643/
> 

And this is just a tip of an iceberg.
Is a "Big Reset" unavoidable ?
jb




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


OT - turn off your cam and mike, now ...

2013-01-06 Thread jb

http://www.businessinsider.com/verizon-dvr-will-know-what-your-doing-and-saying-2012-12

jb


___
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: FB 9.1 boot loader problem in VirtualBox

2013-01-06 Thread jb
Polytropon  edvax.de> writes:

> ... 
> However, your transition of this knowledge to the terminology
> to be used in combination with _virtual_ machines makes sense.
> Maybe that wording is really not optimal. "Kill guest" matches
> today's understanding, but could possibly be formed better in
> regards of future use (like the power off vs. shutdown difference
> that was totally clear in the 1990's, but maybe isn't as clear
> anymore today).
> 

Well, I remember some time ago there were some changes done to shutdown, halt,
poweroff commands and their interpretation/implementation.
Since then Confusion Reigns Supreme !

See Google search: difference shutdown poweroff 

Enjoy it -:)
jb



___
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: FB 9.1 boot loader problem in VirtualBox

2013-01-06 Thread jb
Matthew Seaman  infracaninophile.co.uk> writes:

> ...
There is no problem with interface em0, NAT, manual/DHCP config, and ping or
traceroute.
jb






___
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: FB 9.1 boot loader problem in VirtualBox

2013-01-06 Thread jb
Matthew Seaman  FreeBSD.org> writes:

> 
> On 06/01/2013 11:19, jb wrote:
> > Next problem:
> > when I am logged out from FB, and I do (I tested it repeatedly)
> > 
> > Machine-Close-Power off the machine
> > to cloce VM with FB, then on subsequent VM Start and FB reboot I get error
> > msgs:
> > ...
> > Trying to mount root from ufs:/dev/ada0s1a [rw]...
> > WARNING: / was not properly dismounted
> > ...
> > Starting file system checks:
> > ** SU+J Recovering /dev/ada0s1a
> > ...
> > 
> > but when I do
> > Machine-Close-Send the shutdown signal
> > there are no errors, just normal msgs:
> > ...
> > Trying to mount root from ufs:/dev/ada0s1a [rw]...
> > ...
> > Starting file system checks:
> > /dev/ada0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS
> > ...
> > 
> 
> Ummm... what did you expect to happen?  'Machine-Close-Power off' is
> essentially the same as ripping the power cord out of a physical
> machine.  It's designed to stop the guest system no matter what: even if
> the guest is trapped in so tight a loop it can't respond to anything else.
> 
> 'Machine-Close-Send shutdown' is more like pressing the power button on
> the front of most modern machines, in that what it does is signal the
> guest OS to shut itself off and power down the system after that.  You
> can achieve the same effect from within the guest OS by typing:
> 
>   shutdown -p now
> 
> 'Machine-Close-Send shutdown' is what you want to use routinely.
> 
>   Cheers,
> 
>   Matthew
> 

Right, but the wordings are unfortunate and counterintuitive/misleading:

'Machine-Close-Send shutdown' means to 'shutdown -p now' (equivalent to
'poweroff') of Guest, followed by unforced "Close" of VM.

'Machine-Close-Power off' means "Kill VM' without regard of the Guest - but
the "Power off" in its name may make user believe that there is "Poweroff"
(orderly shutdown, poweroff) involved as part of the process.

It would be better, in my opinion, if these options were called
"Machine-Close-Shutdown-Guest"
"Machine-Close-Kill-Guest"

No margin for error/misunderstanding.

jb


___
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: FB 9.1 boot loader problem in VirtualBox

2013-01-06 Thread jb
Matthew Seaman  FreeBSD.org> writes:

> 
> On 06/01/2013 11:19, jb wrote:
> > Next problem:
> > I selected powerd service during install, but after boot, there was error
> > msg:
> > starting powerd
> > powerd lookup freq: No such file or directory
> > /etc/rc: WARNING failed to start powerd
> 
> Again -- standard for VirtualBox hosts: powerd doesn't work -- the guest
> OS can't control the frequency of the host CPU, which is what you'ld
> expect thinking about it.
> 
> Just disable powerd in /etc/rc.conf to get rid of the error message.
> 
>   Cheers,
> 
>   Matthew

If so, then bsdinstall should stop offering powerd as a service during
installation (regardless of whethter in real or virtual env). 

It can discover this condition with checking for lack of
sysctl -a | grep dev.cpu.0.freq
sysctl -a | grep dev.cpu.0.freq_levels
in /usr/libexec/bsdinstall/services,

exactly as it does with
 if (sysctlnametomib("dev.cpu.0.freq", freq_mib, &len))
   err(1, "lookup freq");
   ...
 if (sysctlnametomib("dev.cpu.0.freq_levels", levels_mib, &len))
   err(1, "lookup freq_levels");
in /usr/sbin/powerd (via /etc/rc.d/powerd) - see powerd.c.

jb


___
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: FB 9.1 boot loader problem in VirtualBox

2013-01-06 Thread jb
jb  gmail.com> writes:

> ...

Next problem:
the FB 9.1 dmesg differs on:
- VB VM
pnp bios: Bad PnP BIOS data checksum
...
orm0:  at iomem 0xc-0xc7fff pnpid ORM on isa0
- on real hardware
none of the above

jb






___
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: FB 9.1 boot loader problem in VirtualBox

2013-01-06 Thread jb
Michael Powell  hotmail.com> writes:

> ... 
> What I have not done is 
> tried all the various partitioning schemes available under "Manual" config. 
> Possibly one, such as Dos MBR or BSD disklabel which I have not tried, may 
> be broken boot-loading wise. I only went straight down the GPT road.
> 
> -Mike

I have done "Manual" MBR paritioning here and it worked.
jb





___
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: FB 9.1 boot loader problem in VirtualBox

2013-01-06 Thread jb
Matthew Seaman  FreeBSD.org> writes:

> 
> On 06/01/2013 11:19, jb wrote:
> > Next problem:
> > I selected powerd service during install, but after boot, there was error
> > msg:
> > starting powerd
> > powerd lookup freq: No such file or directory
> > /etc/rc: WARNING failed to start powerd
> 
> Again -- standard for VirtualBox hosts: powerd doesn't work -- the guest
> OS can't control the frequency of the host CPU, which is what you'ld
> expect thinking about it.
> 
> Just disable powerd in /etc/rc.conf to get rid of the error message.
> 
>   Cheers,
> 
>   Matthew
> 

A general question: to what extent is FB Install aware of installation env (VB
here) ?
If so, would it make sense to sanitize it to avoid offering install options that
are irrelevant/inappropriate ?
jb



___
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: FB 9.1 boot loader problem in VirtualBox

2013-01-06 Thread jb
Matthew Seaman  FreeBSD.org> writes:

> 
> On 06/01/2013 11:19, jb wrote:
> > Next problem:
> > the installation's dmesg shows net driver em0, which is Intel PRO/1000 - and
> > this is how install offers to configure the network;
> > but my host has Broadcom Corporation NetLink BCM5787M Gigabit Ethernet PCI
> > Express, which is bge0 driver in FB.
> > How to force it to discover the right net device during install, and/or 
> > after
> > install ?
> 
> This is normal for VirtualBox -- it doesn't matter what NIC the host
> has, VB always presents it as an em(4) interface to the guest.
> 
>   Cheers,
> 
>   Matthew
> 

OK.
But I also could not ping:
$ ping -c 1 google.com
I have VM-Settings-Network
Attached to NAT
What is the correct setting here ?
jb




___
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: FB 9.1 boot loader problem in VirtualBox

2013-01-06 Thread jb
jb  gmail.com> writes:

> 
> Hi,
> 
> host=CentOS
> guest=FreeBSD in VirtualBox
> 
> FB 9.1 installation seemed to be normal (there was a one page text at the end
> that quickly disappeared, but could not catch it ...),

Perhaps those messages I could not catch were relevant, because it seems
that the installation did not finish properly (most of base dirs and kernel
dir were not populated) - it just died.
I guessed that 192MB RAM assigned to VM was insufficient.
This has been already reported for FB 9.1 recently.

Next problem:
the installation's dmesg shows net driver em0, which is Intel PRO/1000 - and
this is how install offers to configure the network;
but my host has Broadcom Corporation NetLink BCM5787M Gigabit Ethernet PCI
Express, which is bge0 driver in FB.
How to force it to discover the right net device during install, and/or after
install ?

Next problem:
I selected powerd service during install, but after boot, there was error msg:
starting powerd
powerd lookup freq: No such file or directory
/etc/rc: WARNING failed to start powerd

Next problem:
when I am logged out from FB, and I do (I tested it repeatedly)

Machine-Close-Power off the machine
to cloce VM with FB, then on subsequent VM Start and FB reboot I get error
msgs:
...
Trying to mount root from ufs:/dev/ada0s1a [rw]...
WARNING: / was not properly dismounted
...
Starting file system checks:
** SU+J Recovering /dev/ada0s1a
...

but when I do
Machine-Close-Send the shutdown signal
there are no errors, just normal msgs:
...
Trying to mount root from ufs:/dev/ada0s1a [rw]...
...
Starting file system checks:
/dev/ada0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS
...

jb


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


FB 9.1 boot loader problem in VirtualBox

2013-01-05 Thread jb
Hi,

host=CentOS
guest=FreeBSD in VirtualBox

FB 9.1 installation seemed to be normal (there was a one page text at the end
that quickly disappeared, but could not catch it ...),
virtual disk was set up as
ada0
ada0s1 BSD
ada0s1a /
ada0s1b swap

but after reboot:

No /boot/loader

FreeBSD/i386 boot
Default: 0:ad(0,a)/boot/kernel/kernel
boot:
No /boot/kernel/kernel

FreeBSD/i386 boot
Default: 0:ad(0,a)/boot/kernel/kernel
boot: _

jb


___
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: Reduce the consumption of video memory

2013-01-05 Thread jb
Dima Naumov  gmail.com> writes:

> 
> Can i reduce using of video memory in xorg.conf? My video card is almost 
> dead, i think is something with Video Memory, because in monitor showed 
> and disappear little noisy pixel, and i wish check out is problem with 
> video memory?

- check in BIOS
- man xorg.conf
  VideoRam

jb





___
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: FB 9.1 - emulators/linux_base-f10 build error

2013-01-01 Thread jb
David Demelier  gmail.com> writes:

> ... 
> Do you have linux emulation enabled? Such as linux_enable="YES" in your 
> /etc/rc.conf
> 
> Cheers,
> David

Yes, indeed, that was the cause. Thanks.
jb




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


FB 9.1 - emulators/linux_base-f10 build error

2013-01-01 Thread jb
Hi,

# portmaster /usr/ports/www/nspluginwrapper
...
===>>> www/nspluginwrapper >> accessibility/linux-f10-atk >>
emulators/linux_base-f10 (2/2)

===>>> Port directory: /usr/ports/emulators/linux_base-f10

===>>> This port is marked IGNORE
===>>> linuxulator is not (kld)loaded


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

===>>> Update for emulators/linux_base-f10 failed
===>>> Aborting update

===>>> Update for accessibility/linux-f10-atk failed
===>>> Aborting update
#

Why marked IGNORE ?
jb




___
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: bind 192.168.1.1 to all interfaces

2012-12-23 Thread jb
Eugen Konkov  yandex.ru> writes:

> ... 
> So in my vlan I have two DHCP servers. One is mine and
> second is on that router. Some users get wrong IPs from that router.
> ... 
> Or  s there any other method to prevent such ilegal DHCP servers on LAN?

http://www.tcpipguide.com/free/t_DHCPSecurityIssues.htm
jb


___
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: reboot after removing ipv6 ?

2012-12-19 Thread jb
Frank Bonnet  esiee.fr> writes:

> 
> Hello
> 
> Do I have to reboot a server after unvalidating  IPv6 in /etc/rc.conf ?
> 
> I seems to use "/etc/rc.d/netif restart" is not suffisant

Use 'netstat' to see what service(s) listen for ipv6 traffic and restart them.
jb




___
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: Startup Notification?

2012-12-14 Thread jb
Walter Hurry  gmail.com> writes:

> 
> I'm running FreeBSD 9.1RC3 with LXDE and OpenBox.
> 
> The startup-notification port is installed (it's required by a number of 
> other ports anyway), but I don't actually see any form of visual 
> notification when opening GUI applications. For many of these (e.g. 
> lxterminal, pcmanfm) this doesn't matter, since they appear virtually 
> instantaneously, but for others (like firefox) the lack is something of a 
> nuisance.
> 
> Am I missing an optional port, or is there a configuration file somewhere 
> which I need to edit?

This narrative should give you some clue:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/11462

Find a file like e.g. mozilla-firefox.desktop that will look similar to this:
...
Exec=firefox %u
Icon=firefox
Terminal=false
Type=Application
StartupWMClass=Firefox-bin
MimeType=text/html;text/xml;application/xhtml+xml;application
/vnd.mozilla.xul+xml;text/mml;
StartupNotify=true
X-Desktop-File-Install-Version=0.15
Categories=Network;WebBrowser;

jb


___
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: dhclient and random disconnects

2012-12-13 Thread jb
David Demelier  gmail.com> writes:

> ... 
> I have setup lagg0 for a failover with ethernet, (note the problem 
> appears if I use wlan0 only too)
> 
> # Fail over between wired/wireless.
> cloned_interfaces="lagg0"
> ifconfig_msk0="up"
> ifconfig_ath0="ether 18:a9:05:87:38:0a"
> ifconfig_wlan0="WPA"
> ifconfig_lagg0="laggproto failover laggport msk0 laggport wlan0 DHCP"
> ipv6_activate_all_interfaces="YES"

According to the example in:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-aggregation.html

this line is missing in your setup:
wlans_ath0="wlan0" 

which is also mentioned in:
/etc/defaults/rc.conf
...
#wlans_ath0="wlan0" # wlan(4) interfaces for ath0 device
...

I can not test it as I do not have access to a FB machine right now.
jb




___
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: dhclient and random disconnects

2012-12-13 Thread jb
David Demelier  gmail.com> writes:

> ...

Logs are your friends.

If the lease actually expires and you have to get a new IP (a new lease), then
you could have a temporary disconnect.
But if dhcp server(s) are working correctly the lease should be renewed or
rebound without problems.

Search  for "dhc" and check how much time (see time stamps) it takes to renew, 
or rebind your IP address, or if it has any trouble with both of them and it is
forced to obtain a new lease:

$ less -i /var/log/messages

Look for any other errors in there too - e.g. WPA2 encryption protocol related,
like failing of security key exchange.

If you find any, post a sufficient copy to the list here.
jb



___
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: bash pipe redirection gets stuck

2012-12-04 Thread jb
  rule.lv> writes:

> 
> Dear all,
> I stumbled upon a problem where multiple pipe redirection occasionally get
> stuck when trying to get sha256 sum of a stream.
> 
> You can try to reproduce the problem if you have /usr/ports/shells/bash
> installed (output redirection used in this command is possible only in
> bash).
> Create temporary test file with command: "dd if=/dev/urandom of=/tmp/file1
> bs=1k count=10"
> And the command I'm using is:
> /usr/local/bin/bash -c 'cat /tmp/file1 | tee >(/sbin/sha256 >
> /tmp/file1.sha256) > /tmp/file1.copy' ; echo $status

I could reproduce it on FreeBSD 9.0-RELEASE-p3 on 3rd try, but after upgrade
of bash-4.1.11 to bash-4.2.37 it works (tested 30 times).
jb
 

___
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: bash pipe redirection gets stuck

2012-12-03 Thread jb
jb  gmail.com> writes:

> ...
> Do you get stuck with this ? Does it make any difference ?

I missed a redirector - sorry about that; the entry should be:
/usr/local/bin/bash -c 'cat /tmp/file1 | tee /tmp/file1.copy | /sbin/sha256 > \
/tmp/file1.sha256' ; echo $status

jb



___
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: bash pipe redirection gets stuck

2012-12-03 Thread jb
  rule.lv> writes:

> 
> Dear all,
> I stumbled upon a problem where multiple pipe redirection occasionally get
> stuck when trying to get sha256 sum of a stream.
> 
> You can try to reproduce the problem if you have /usr/ports/shells/bash
> installed (output redirection used in this command is possible only in
> bash).
> Create temporary test file with command: "dd if=/dev/urandom of=/tmp/file1
> bs=1k count=10"
> And the command I'm using is:
> /usr/local/bin/bash -c 'cat /tmp/file1 | tee >(/sbin/sha256 >
> /tmp/file1.sha256) > /tmp/file1.copy' ; echo $status
> ...

Do you get stuck with this ? Does it make any difference ?
/usr/local/bin/bash -c 'cat /tmp/file1 | tee /tmp/file1.copy | /sbin/sha256 \
/tmp/file1.sha256' ; echo $status

jb




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


OT - A Generation Lost in the Bazaar

2012-12-02 Thread jb
http://queue.acm.org/detail.cfm?id=2349257
It's about FreeBSD too ...
 
jb


___
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: dhclient and random disconnects

2012-11-30 Thread jb
David Demelier  gmail.com> writes:

> 
> Hi,
> 
> In my university, I have a WPA-EAP wifi access point, it requires 
> authentification to access, with dhclient, I'm disconnected randomly and 
> I must run wpa_cli reconfigure / dhclient again to get it working.

This is really too general - it could be a problem with AP or your box.
When you say randomly, do you mean like every hour or so, or every 10 min or
so ? What is the pattern ?
Does it happen that your box is left alone for extended period of time, that
is without user and active application activity, while being connected ? If
so, do you find your box disconnected after such time (what is the time
interval) ?
Do the disconnects happen at IP lease renewal times (see output below) ?

> What could the problem be with dhclient? I don't know very well what 
> these processes are doing. Does the process check for lease by a 
> specific interval?

Yes, it does IP lease renewal.

Post to the list the following outputs while using dhclient:

Your wireless configuration (relevant data only):
$ cat /etc/rc.conf

Review /etc/defaults/rc.conf w/r to dhclient and wpa_supplicant.

Do you have anything related to your wireless card driver in loader(8)
tunables or sysctl(8) variables ?

Your wpa_supplicant_conf_file, presumably:
$ cat /etc/wpa_supplicant.conf

$ ps auxwww | grep -i dhclient

Config file:
$ cat /etc/dhclient.conf

Your lease renewal log file:
# cat /var/db/dhclient.leases.

$ ifconfig -a

$ netstat -s

Any wireless card driver related messages (substitute wpi for yours):
$ grep -i wpi /var/log/messages

After that spend some time with:
$ apropos dhclient
dhclient(8)  - Dynamic Host Configuration Protocol (DHCP) client
dhclient-script(8)   - DHCP client network configuration script
dhclient.conf(5) - DHCP client configuration file
dhclient.leases(5)   - DHCP client lease database

You should not hesitate to contact, if possible, your Uni sys admin and ask
about it.

By now you should be an expert - after all you use FreeBSD for a reason :-)

jb


___
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: ports and 'make fetchindex'

2012-11-29 Thread jb
jb  gmail.com> writes:

> ...

-m option to fetch explains it.
False alarm.
jb
   


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


ports and 'make fetchindex'

2012-11-29 Thread jb
Hi,

# portsnap fetch update
...
Building new INDEX files... done.
# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26626683 Nov 29 15:17 /usr/ports/INDEX-9

# cd /usr/ports/
[root@localhost /usr/ports]# make fetchindex
/usr/ports/INDEX-9.bz2100% of 1615 kB  160 kBps 00m00s
# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26665016 Nov 29 15:20 /usr/ports/INDEX-9
 
Notice that 'make fetchindex' fetches INDEX-9.bz2 and deletes it at finish.

# portmaster -L --index | egrep '(ew|ort) version|total install'
/tmp/d-57121-index/INDEX-9.bz2100% of 1615 kB  164 kBps
...
# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26665016 Nov 29 15:25 /usr/ports/INDEX-9
-rw-r--r--  1 root  wheel   1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2

Notice that 'portmaster ...' did NOT delete INDEX-9.bz2 at finish.

[root@localhost /usr/ports]# make fetchindex
[root@localhost /usr/ports]#
# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26665016 Nov 29 15:29 /usr/ports/INDEX-9
#

Notice that 'make fetchindex' did NOT fetch a fresh copy of INDEX-9.bz2.
Is this a potential problem ?
I understand that "Make fetchindex will just fetch the index from a repository
server."
Could it be that 'make fetchindex' could miss the latest INDEX-9.bz2 on server
in case of a long time passed since the old INDEX-9.bz2 was downloaded ?

jb


___
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: When Is The Ports Tree Going To Be Updated?

2012-11-28 Thread jb
jb  gmail.com> writes:

> ...

I tested and compared results on FreeBSD 9.0 and FreeBSD 9.1-RC3 (done here
earlier) and this is a summary.
Please review it, in particular the conclusions, as they are intended to be
the base for filing a PR#.

Test on FreeBSD 9.0
---

$ uname -a
FreeBSD localhost.localdomain 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun
12 01:47:53 UTC 2012
r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

# ls /var/db/pkg/portmaster-3.11/

# portsnap fetch update
Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found.
Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
Latest snapshot on server matches what we already have.
No updates needed.
Ports tree is already up to date.

# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26912299 Nov 28 08:53 /usr/ports/INDEX-7
-rw-r--r--  1 root  wheel  26796230 Nov 28 08:53 /usr/ports/INDEX-8
-rw-r--r--  1 root  wheel  26777464 Nov 28 08:53 /usr/ports/INDEX-9
-rw-r--r--  1 root  wheel   1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2

# portmaster -L | egrep '(ew|ort) version|total install'
...
===>>> New version available: xorg-7.5.2
===>>> 452 total installed ports
===>>> 194 have new versions available

# portmaster -L --index | egrep '(ew|ort) version|total install'
...
===>>> New version available: xorg-7.5.2
===>>> 452 total installed ports
===>>> 194 have new versions available

# portmaster -L --index-only | egrep '(ew|ort) version|total install'
...
===>>> New version available: xorg-7.5.2
===>>> 452 total installed ports
===>>> 194 have new versions available
#

# rm -rf /usr/ports

# portsnap extract
...
Building new INDEX files... done.
# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26912299 Nov 28 09:07 /usr/ports/INDEX-7
-rw-r--r--  1 root  wheel  26796230 Nov 28 09:07 /usr/ports/INDEX-8
-rw-r--r--  1 root  wheel  26777464 Nov 28 09:07 /usr/ports/INDEX-9

# portmaster -L | egrep '(ew|ort) version|total install'
...
===>>> New version available: xorg-7.5.2
===>>> 452 total installed ports
===>>> 194 have new versions available

# portmaster -L --index | egrep '(ew|ort) version|total install'
/tmp/d-32794-index/INDEX-9.bz2100% of 1615 kB  173 kBps
...
===>>> New version available: xorg-7.5.2
===>>> 452 total installed ports
===>>> 193 have new versions available

# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26912299 Nov 28 09:07 /usr/ports/INDEX-7
-rw-r--r--  1 root  wheel  26796230 Nov 28 09:07 /usr/ports/INDEX-8
-rw-r--r--  1 root  wheel  26665016 Nov 28 09:12 /usr/ports/INDEX-9
-rw-r--r--  1 root  wheel   1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2

# portmaster -L --index-only | egrep '(ew|ort) version|total install'
...
===>>> New version available: xorg-7.5.2
===>>> 452 total installed ports
===>>> 193 have new versions available
#

The result shows that after this step:
# portmaster -L --index | egrep '(ew|ort) version|total install'
/tmp/d-32794-index/INDEX-9.bz2100% of 1615 kB  173 kBps
the uncompressed INDEX-9 
-rw-r--r--  1 root  wheel  26665016 Nov 28 09:12 /usr/ports/INDEX-9
is different from the prior "original" INDEX-9
-rw-r--r--  1 root  wheel  26777464 Nov 28 09:07 /usr/ports/INDEX-9
The cause of it could be:
- either portmaster gets identical size-wise, but not necessarily content-wise
  INDEX-9.bz2
- or portmaster uncompresses INDEX-9.bz2 incorectly and loses some content

Test on FreeBSD 9.1-RC3
---
 
$ uname -a
... 9.1-RC3 ...

$ cat /usr/ports/ports-mgmt/portmaster/distinfo
...
portmaster-portmaster-3.14-31009f6.tar.gz
...

# portsnap fetch extract

# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26879597 Nov 26 15:37 /usr/ports/INDEX-7
-rw-r--r--  1 root  wheel  26763600 Nov 26 15:38 /usr/ports/INDEX-8
-rw-r--r--  1 root  wheel  26744834 Nov 26 15:38 /usr/ports/INDEX-9
-rw-r--r--  1 root  wheel   1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2

# portsnap fetch update
Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found.
Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
Latest snapshot on server matches what we already have.
No updates needed.
Ports tree is already up to date.

# portmaster -L | egrep '(ew|ort) version|total install'
===>>> New version available: java-zoneinfo-2012.j
===>>> New version available: liberation-fonts-ttf-2.00.1,1
===>>> New version available: libxul-10.0.11
===>>> New version available: firefox-17.0,1
===>>> New version available: libreoffice-3.5.7
===>>> New version available: vigra-1

Re: When Is The Ports Tree Going To Be Updated?

2012-11-26 Thread jb
Tim Daneliuk  tundraware.com> writes:

> ... 
> One wonders if using svn to keep the ports tree up-to-date might not be
> simpler, and perhaps, more reliable ...

As managed by portsnap:
$ du -hs /usr/ports/
850M/usr/ports/

As managed by svn (it took much longer to checkout/download it by comparison):
$ du -hs /usr/local/ports/
1.4G/usr/local/ports/
$ du -hs /usr/local/ports/.svn/
702M/usr/local/ports/.svn/

One thing about svn is that it is a developer's tool, with its own commands
set (that should never be mixed with UNIX commands w/r to dir/file
manipulation), and that should not be expected to be learned by non-devs.

For that reasons alone the portsnap-managed ports repo is more generic,
flexible to be handled by user and add-on apps/utilities, looks like more
efficient without that svn overhead resulting from its requirements and
characteristics as a source control system.

But, svn offers to a user a unique view into ports repo, e.g. history, logs,
info, attributes, etc.

jb


___
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: When Is The Ports Tree Going To Be Updated?

2012-11-26 Thread jb
jb  gmail.com> writes:

> ... 
> > > # portsnap fetch extract
> > > # ls -al /usr/ports/IN*
> > > -rw-r--r--  1 root  wheel  26879597 Nov 26 15:37 /usr/ports/INDEX-7
> > > -rw-r--r--  1 root  wheel  26763600 Nov 26 15:38 /usr/ports/INDEX-8
> > > -rw-r--r--  1 root  wheel  26744834 Nov 26 15:38 /usr/ports/INDEX-9
> > > -rw-r--r--  1 root  wheel   1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2

One detail.
The size of /usr/ports/INDEX-9 is 26744834.

> > > # rm -rf  /usr/ports/
> > > # portsnap extract
> > > # ls -al /usr/ports/IN*
> > > -rw-r--r--  1 root  wheel  26879563 Nov 26 16:07 /usr/ports/INDEX-7
> > > -rw-r--r--  1 root  wheel  26763566 Nov 26 16:07 /usr/ports/INDEX-8
> > > -rw-r--r--  1 root  wheel  26744800 Nov 26 16:07 /usr/ports/INDEX-9

The size of /usr/ports/INDEX-9 is 26744800.

> > > # portmaster -L --index | egrep '(ew|ort) version|total install'
> > > /tmp/d-78227-index/INDEX-9.bz2100% of 1615 kB  176 kBps
> > > 00m00s

> > > # ls -al /usr/ports/IN*
> > > -rw-r--r--  1 root  wheel  26879563 Nov 26 16:07 /usr/ports/INDEX-7
> > > -rw-r--r--  1 root  wheel  26763566 Nov 26 16:07 /usr/ports/INDEX-8
> > > -rw-r--r--  1 root  wheel  26665016 Nov 26 16:12 /usr/ports/INDEX-9
> > > -rw-r--r--  1 root  wheel   1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2

The size of /usr/ports/INDEX-9 is 26665016.

All other INDEX-* files have the same sizes.

> > > Ports tree is already up to date.

The ports repo as seen thru INDEX-9 should have been identical at all times.
But it was not.
jb



___
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: When Is The Ports Tree Going To Be Updated?

2012-11-26 Thread jb
Fleuriot Damien  my.gd> writes:

> 
> I don't get what you're trying to show here.
> 
> What commands you've run indicate that:
> 
> 1/ you have an up to date ports tree
> 2/ one of the installed ports needs to be updated

Follow me below.

> > ...
> > # portsnap fetch extract
> > # ls -al /usr/ports/IN*
> > -rw-r--r--  1 root  wheel  26879597 Nov 26 15:37 /usr/ports/INDEX-7
> > -rw-r--r--  1 root  wheel  26763600 Nov 26 15:38 /usr/ports/INDEX-8
> > -rw-r--r--  1 root  wheel  26744834 Nov 26 15:38 /usr/ports/INDEX-9
> > -rw-r--r--  1 root  wheel   1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2
> > # portsnap fetch update
> > Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found.
> > Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
> > Latest snapshot on server matches what we already have.
> > No updates needed.
> > Ports tree is already up to date.
> > #
> > 
> > This fixed it.

When I said this fixed it, I meant the all three entries
# portmaster -L | egrep '(ew|ort) version|total install'
# portmaster -L --index | egrep '(ew|ort) version|total install'
# portmaster -L --index-only | egrep '(ew|ort) version|total install'
showed the same output:
===>>> New version available: java-zoneinfo-2012.j
===>>> New version available: liberation-fonts-ttf-2.00.1,1
===>>> New version available: libxul-10.0.11
===>>> New version available: firefox-17.0,1
===>>> New version available: libreoffice-3.5.7
===>>> New version available: vigra-1.9.0
 ===>>> 545 total installed ports
===>>> 6 have new versions available
#

This is the same /usr/ports repo arrived at via two methods that are valid.
Do you follow me ?

> > 
> > But, let's see what happens with this test:
> > 
> > # rm -rf  /usr/ports/
> > # portsnap extract
> > # ls -al /usr/ports/IN*
> > -rw-r--r--  1 root  wheel  26879563 Nov 26 16:07 /usr/ports/INDEX-7
> > -rw-r--r--  1 root  wheel  26763566 Nov 26 16:07 /usr/ports/INDEX-8
> > -rw-r--r--  1 root  wheel  26744800 Nov 26 16:07 /usr/ports/INDEX-9
> > # portmaster -L | egrep '(ew|ort) version|total install'
> >===>>> New version available: java-zoneinfo-2012.j
> >===>>> New version available: liberation-fonts-ttf-2.00.1,1
> >===>>> New version available: libxul-10.0.11
> >===>>> New version available: firefox-17.0,1
> >===>>> New version available: libreoffice-3.5.7
> >===>>> New version available: vigra-1.9.0
> > ===>>> 545 total installed ports
> >===>>> 6 have new versions available
> > # portmaster -L --index | egrep '(ew|ort) version|total install'
> > /tmp/d-78227-index/INDEX-9.bz2100% of 1615 kB  176 kBps
> > 00m00s
> >===>>> New version available: libreoffice-3.5.7
> > ===>>> 545 total installed ports
> >===>>> 1 has a new version available
> > # portmaster -L --index-only | egrep '(ew|ort) version|total install'
> >===>>> New version available: libreoffice-3.5.7
> > ===>>> 545 total installed ports
> >===>>> 1 has a new version available
> > # ls -al /usr/ports/IN*
> > -rw-r--r--  1 root  wheel  26879563 Nov 26 16:07 /usr/ports/INDEX-7
> > -rw-r--r--  1 root  wheel  26763566 Nov 26 16:07 /usr/ports/INDEX-8
> > -rw-r--r--  1 root  wheel  26665016 Nov 26 16:12 /usr/ports/INDEX-9
> > -rw-r--r--  1 root  wheel   1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2
> > # portsnap update
> > Ports tree is already up to date.
> > #
> > 
> > Well, what do you say about this ?
> > jb

jb


___
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: When Is The Ports Tree Going To Be Updated?

2012-11-26 Thread jb
Stas Verberkt  legolasweb.nl> writes:

> 
> jb schreef op :
> > Tim Daneliuk  tundraware.com> writes:
> >
> >> ...
> >> > I use portsnap fetch update and it works...
> >>
> >> Ah, maybe that was the problem.  That works for me as well.
> >
> > Well, not quite ...
> >
> I think, after the security incident, you had to obtain a fresh 
> snapshot of the ports tree,
> i.e. you had to do "portsnap fetch extract" before usual service 
> continued.
> May this be your problem?

# portsnap fetch extract
# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26879597 Nov 26 15:37 /usr/ports/INDEX-7
-rw-r--r--  1 root  wheel  26763600 Nov 26 15:38 /usr/ports/INDEX-8
-rw-r--r--  1 root  wheel  26744834 Nov 26 15:38 /usr/ports/INDEX-9
-rw-r--r--  1 root  wheel   1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2
# portsnap fetch update
Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found.
Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
Latest snapshot on server matches what we already have.
No updates needed.
Ports tree is already up to date.
#

This fixed it.

But, let's see what happens with this test:

# rm -rf  /usr/ports/
# portsnap extract
# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26879563 Nov 26 16:07 /usr/ports/INDEX-7
-rw-r--r--  1 root  wheel  26763566 Nov 26 16:07 /usr/ports/INDEX-8
-rw-r--r--  1 root  wheel  26744800 Nov 26 16:07 /usr/ports/INDEX-9
# portmaster -L | egrep '(ew|ort) version|total install'
===>>> New version available: java-zoneinfo-2012.j
===>>> New version available: liberation-fonts-ttf-2.00.1,1
===>>> New version available: libxul-10.0.11
===>>> New version available: firefox-17.0,1
===>>> New version available: libreoffice-3.5.7
===>>> New version available: vigra-1.9.0
===>>> 545 total installed ports
===>>> 6 have new versions available
# portmaster -L --index | egrep '(ew|ort) version|total install'
/tmp/d-78227-index/INDEX-9.bz2100% of 1615 kB  176 kBps 00m00s
===>>> New version available: libreoffice-3.5.7
===>>> 545 total installed ports
===>>> 1 has a new version available
# portmaster -L --index-only | egrep '(ew|ort) version|total install'
===>>> New version available: libreoffice-3.5.7
===>>> 545 total installed ports
===>>> 1 has a new version available
# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26879563 Nov 26 16:07 /usr/ports/INDEX-7
-rw-r--r--  1 root  wheel  26763566 Nov 26 16:07 /usr/ports/INDEX-8
-rw-r--r--  1 root  wheel  26665016 Nov 26 16:12 /usr/ports/INDEX-9
-rw-r--r--  1 root  wheel   1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2
# portsnap update
Ports tree is already up to date.
#

Well, what do you say about this ?
jb


___
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: When Is The Ports Tree Going To Be Updated?

2012-11-26 Thread jb
Tim Daneliuk  tundraware.com> writes:

> ... 
> > I use portsnap fetch update and it works...
> 
> Ah, maybe that was the problem.  That works for me as well.

Well, not quite ...
# portsnap fetch update
Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found.
Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
Ports tree hasn't changed since last snapshot.
No updates needed.
Ports tree is already up to date.
# ls -al /usr/ports/IN*
-rw-r--r--  1 root  wheel  26879548 Nov 26 11:50 /usr/ports/INDEX-7
-rw-r--r--  1 root  wheel  26763551 Nov 26 11:50 /usr/ports/INDEX-8
-rw-r--r--  1 root  wheel  26665016 Nov 26 11:53 /usr/ports/INDEX-9
-rw-r--r--  1 root  wheel   1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2
# portmaster -L | egrep '(ew|ort) version|total install'===>>> New 
version
available: java-zoneinfo-2012.j
===>>> New version available: liberation-fonts-ttf-2.00.1,1
===>>> New version available: libxul-10.0.11
===>>> New version available: firefox-17.0,1
===>>> New version available: libreoffice-3.5.7
===>>> New version available: vigra-1.9.0
===>>> 545 total installed ports
===>>> 6 have new versions available
# portmaster -L --index-only | egrep '(ew|ort) version|total install'
===>>> New version available: libreoffice-3.5.7
===>>> 545 total installed ports
===>>> 1 has a new version available
# portmaster -L --index | egrep '(ew|ort) version|total install'
===>>> New version available: libreoffice-3.5.7
===>>> 545 total installed ports
===>>> 1 has a new version available
#



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


OT: has Black Friday ever been tried at FreeBSD ?

2012-11-23 Thread jb
http://radio.woai.com/cc-common/news/sections/newsarticle.html?feed=104668&article=10591459


___
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: portsnap

2012-11-21 Thread jb
Robert Bonomi  mail.r-bonomi.com> writes:

> 
> 
> > From: jb  gmail.com>
> > Subject: Re: portsnap
> > Date: Wed, 21 Nov 2012 10:43:30 + (UTC)
> >
> > So, the manual for portsnap(8) is imprecise, actually unfortunate because 
> > misleading.
> 
> The manual/ manpage for portsnap(8) and its use of 'command' is precise
> *and* entirely consistant with roughly 40(!!) years of Unix documentation
> history.  (see, for instance, the 'mt' manpage, which existed before
> 6th Edition Unix.)
> 
> And, of course, if one follows/accepts jb's "reasoning", that which follows
> the '-c' parameter on a shell invocation is not a command.
> nor is that which follows '-exec' on a 'find' invocation.
> nor is that which follows the 'exec' command.
> `
> *snicker*

How come ?

According to sh(1):
sh ... -c string ...
The -c option causes the commands to be read from the string operand.
Example:
- non-executable string argument
  $ sh -c "test1"
  test1: not found
- executable string argument, thus a command
  $ sh -c "echo test1"
  test1

According to find(1):
find ... expression ...
The expression is composed of "primaries" and "operands":
 -exec utility [argument ...] ;
 True if the program named utility returns a zero value as its
 exit status.  Optional arguments may be passed to the utility.
 -exec utility [argument ...] {} +
Well, that "utility" represents a program, thus a command.
Example:
- non-executable utility
  $ find . -type f -exec fakeutility {} \;
  find: fakeutility: No such file or directory
  ...
OMG ! CAN YOU SEE THIS ?! 
- executable utility 
  $ find . -type f -exec echo {} \;
  ./.cshrc
  ...

According to bash(1):
$ type exec
exec is a shell builtin
$ help exec
exec: exec ... command [arguments ...] ...
Replace the shell with the given command.
Example:
- non-executable string (non-command)
  $ exec fakecommand
  bash: exec: fakecommand: not found
- executable string (command)
  $ exec touch test-exec.file
  $ ls -al test*
  -rw-r--r--  1 jb  jb  0 Nov 21 22:37 test-exec.file

The examples you gave are about executable commands by themselves, and that's
what their documentations (man pages) truthfully state.
No Mickey Mouse here.

This is not the same what portsnap(8) does:
portsnap ... command ...
This "command" word is non-executable by itself; it has a meaning only as
a special word passed to portsnap command to tell it what to do internally,
just a kind of special indicator to be used for conditional processing:
if arg=fetch then do-fetch-routine
else if arg=update then do-update-routine
else 

Well, being a liar is an honorable trait :-)
jb







___
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: portsnap

2012-11-21 Thread jb
Polytropon  edvax.de> writes:

> ... 
> > Yes, it is a keyword, a keyword parameter that tells CLI command what to do
> > (yes, a keyword that may be taken verbatim or translated into an internal
> > command parameter(s), a keyword that represents an action).
> > But, it is not a command, or parameter of type command.
> 
> I think Robert is right (which implies that you are wrong), at
> least in acknowledging the _possibility_ to interpret _certain_
> command line arguments as "commands to the program" (where a
> program can do various actions), in opposite to a "modifier"
> (which changes the way the "one action" a program performs
> in a certain way).
> ...

Putting aside the linguistics about executable command, entry, function, 
parameter, and argument - let's reduce the case to one common ground, so we
can compare them.

The are two entities, each having in their description as receiving a command
as a parameter, namely: 
- portsnap ... command ...
  e.g. portsnap fetch  
- system(command);
  e.g. system("ls -al"); 
 
The former is passed an action keyword as an argument (I like the word
"keyword"; we could use "command keyword" as perhaps even a better fit and
the closest to describe the nature of it).
The latter is passed a command as an argument.

So, the manual for portsnap(8) is imprecise, actually unfortunate because
misleading.
 
jb
 


___
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: portsnap

2012-11-20 Thread jb
Robert Bonomi  mail.r-bonomi.com> writes:

> ... 
> > > the authors of the portsnap docs (and the _numerous_ other applications 
> > > that describe the use of certain keywords used as input to that 
> > > appication ARE correct -- despite your boneheaded denial of that fact.

Yes, it is a keyword, a keyword parameter that tells CLI command what to do
(yes, a keyword that may be taken verbatim or translated into an internal
command parameter(s), a keyword that represents an action).
But, it is not a command, or parameter of type command.

> > With regard to definition of "a command" as we practice and argue about 
> > here:
> >
> > In general (see bash(1), SHELL GRAMMAR, Simple Commands), a command is an 
> > executable preceded by optional vars and followed by optional parameters.

> You lie.  A "command" does not have to have the attributes of a command-line
> invocation.

Well, a second nature ... But, it is an honor :-)

To drive the point:
let's assume that it is a valid syntax to pass a parameter like this:
"ls -al"
or much better, command="", like this:
command="ls -al"
then it would be clear that a command (parameter) is passed to CLI command.
This kind of command parameter passing fulfilles the definition of a command
as referenced.

If you are familiar with C function system(), you will have easier time to
understand:
http://www.cplusplus.com/reference/clibrary/cstdlib/system/
The prototype is:
int system ( const char * command );
The command "ls -al" (yes, it is a command as referenced) is a parameter to
system() function:
system("ls -al");
It just says, execute that command "ls -al" in the existing execution
environment.

The reason I go so by the book about it is that "words have meaning" and
definitions :-)
jb


___
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: portsnap

2012-11-20 Thread jb
Robert Bonomi  mail.r-bonomi.com> writes:

> ... 
> > http://en.wikipedia.org/wiki/Command-line_interface
> > ...
> > The general pattern of an OS command line interface is: prompt command 
> > param1 param2 param3 ... paramN
> 
> No argument -- for _that_ meaning of the word.  That, however, is not
> the only valid usage or interpretation of it.
> 
> The truth that you refuse to acknowledge is that in *many* cases, one or
> more of the 'params' on the command line are commands TO THE APPlICATION
> BEING INVOKED.
> > A simple CLI will display a prompt, accept a "command line" typed by the 
> >  [drivelectomy]
> > So, we are discussing here things that are obvious. People who write 
> > technical or user manuals should have a clue of what they are writing and 
> > talking about (e.g. what is "a command", also called "an entry"). 
> > Otherwise they screw up the users and "it's a software error" sysadmins. 
> 
> the authors of the portsnap docs (and the _numerous_ other applications
> that describe the use of certain keywords used as input to that appication
> ARE correct -- despite your boneheaded denial of that fact.
> 
> A "command" specifies, to the application to which it is directed, _what_
> (or _which_, if you prefer) operation/activity/function is to be performed.
> In grammar terms it is a =verb=.
> 
> A 'parameter'/'option'/'switch'/etc. instructs the application to which it 
> is directed to , _how_ to perform the particular action.  It _modifies_ the
> action to be performed.  In grammar terms it is an =adverb=.
> 
> This distinction has been known to, understood, and employed by those who
> write/read/use technical instructions for well over THREE HUNDRED years.
> (early multi-function machinery, such as a crane, could only perform one
> action at a time -- e.g. traverse, adjust boom, lift; you moved one set
> of controls to command the machine _which_ action to perform, and then
> another set of controls to ccntrol how it is done.

... also responding to kpneal  pobox.com> ...

With regard to definition of "a command" as we practice and argue about here:

In general (see bash(1), SHELL GRAMMAR, Simple Commands), a command is 
an executable preceded by optional vars and followed by optional parameters.

Look at PORTSNAP(8)'s synopsis again.
The command is 'portsnap', anything else are parameters to it.

If you call a parameter a command here, you imply that it has attributes of
a command, which clearly does not, as referenced by me above.

So, basically, it is an indicator, verbosely (but not required to be so if it
were also verbosely defined in man page) describing an action parameter, e.g.
extract, telling the actual 'portsnap' command what to do (yes - what to do,
and not how to do it).

jb


___
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: portsnap

2012-11-20 Thread jb
Steve O'Hara-Smith  sohara.org> writes:

> ...
 
Educate yourselves, please. It's scary when one confuses command arguments
with a command because some nitwit described/called it that way.
jb


___
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: portsnap

2012-11-20 Thread jb
Robert Bonomi  mail.r-bonomi.com> writes:

> ... 
> > > > > > > You gave portsnap two commands - one succeeded and the other 
> > > > > > > failed.
> > > >
> > > > Nope. I gave ONE command: 'portsnap fetch update'.
> > >
> > > FALSE TO FACT.
> >
> > No way. UNIX command (on a command line, also called CLI), is anything 
> > between prompt
> 
> *NOBODY* said "Unix command".  _You_ falsely imputed that meaning to
> the respondants use of the word in a context with a different applicable
> meaning.
> 
> 'command' has many meanings -- *especially* in the Unix environment.
> 
> [drivelectomy]
> 
> You persist in repeating your error.
> ...

Well, yes - CLI applies to many environments (not only OSs), with the same
basic format.

http://en.wikipedia.org/wiki/Command-line_interface
...
The general pattern of an OS command line interface is:
prompt command param1 param2 param3 ... paramN

A simple CLI will display a prompt, accept a "command line" typed by the user
terminated by the Enter key, then execute the specified command and provide
textual display of results or error messages. Advanced CLIs will validate,
interpret and parameter-expand the command line before executing the specified
command, and optionally capture or redirect its output.
...
Command prompt
...
Arguments
...
Command-line option
...

Examples:
- OSs (e.g. UNIX)
  $ portsnap fetch update
- database and/or languages environments (e.g. SQL)
  sql > select  from 
- applications (e.g. reservation system)
  > pax dl123/12augdis
  which means:
  display a list of passengers
  for flight DL123, departing on 12 Aug, out of DIS (Disney Land)

So, we are discussing here things that are obvious.
People who write technical or user manuals should have a clue of what they are
writing and talking about (e.g. what is "a command", also called "an entry").
Otherwise they screw up the users and "it's a software error" sysadmins.
jb


___
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: portsnap

2012-11-19 Thread jb
Robert Bonomi  mail.r-bonomi.com> writes:

> 
> > From owner-freebsd-questions  freebsd.org  Mon Nov 19 14:15:23 2012
> > To: freebsd-questions  freebsd.org
> > From: jb  gmail.com>
> > Subject: Re: portsnap
> > Date: Mon, 19 Nov 2012 20:13:45 + (UTC)
> >
> > RW  googlemail.com> writes:
> >
> > >
> > > On Mon, 19 Nov 2012 16:10:48 + (UTC) jb wrote:
> > >
> > > > > You gave portsnap two commands - one succeeded and the other 
> > > > > failed.
> >
> > Nope. I gave ONE command: 'portsnap fetch update'.
> 
> FALSE TO FACT.

No way.
UNIX command (on a command line, also called CLI), is anything between prompt
(e.g. $) and ENTER, that is in general:
$ command  
and this is how shell interprets it.
There are simple commands as above, and command constructs as pipeline and 
lists, e.g.
$ command  | command  ; command1; command2
but that does not change the meaning of how they are interpreted as commands.

You got confused by portsnap(8) vocabulary, which is misleading:
SYNOPSIS
 portsnap [-I] [-d workdir] [-f conffile] [-k KEY] [-l descfile]
  [-p portsdir] [-s server] command ... [path]
...
COMMANDS
 The command can be any one of the following:

 fetchFetch a compressed snapshot of the ports tree, or update the
...

The word "command" in SYNOPSIS is very unfortunate, outright wrong because
misleading - it represents an option or a parameter to a command "portsnap".
This is how any command line parser/editor processes the entire entry.
No magic here.

This should explain your confusion in the rest of your post.

> ...


> > In general, if I wanted to check for command completion code, which is 
> > quite common in UNIX CLI or scripting env, it would make a lot of 
> > difference if a command failed half way in both cases:
> > 'portsnap fetch update; check-completion-code'
> > and 'portsnap fetch; check-completion-code; portsnap update; 
> > check-completion-code'
> 
> 'portsnap fetch update' is the EXACT equivalent of:
>   'portsnap fetch && portsnap update; `check-completion-code'`

No, it is not.

Your CLI command line above is an example of a list (see bash(1)): 
...
  Lists
   A list is a sequence of one or more pipelines separated by one  of  the
   operators ;, &, &&, or ||, and optionally terminated by one of ;, &, or
   .
...

In other words, it is a CLI command that is a composition of INDEPENDENT
commands, here logically linked with "&&'.

It is not the same as your list - the difference is, once again, that when I
enter:
$ portsnap fetch update
this represents a CLI command, just one command with two options or params,
as understood in UNIX and as explained at the very beginning of this post,
regardless of how it is going to be executed internally (with subtasks "fetch"
and "update" playing only internal and logical role in the context of that
command's execution). It follows, that the completion code is of that one CLI
command, and not a logical "&&" result of multiple commands in a list.

jb


___
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: portsnap

2012-11-19 Thread jb
RW  googlemail.com> writes:

> 
> On Mon, 19 Nov 2012 16:10:48 + (UTC)
> jb wrote:
> 
> > > You gave portsnap two commands - one succeeded and the other failed.

Nope. I gave ONE command: 'portsnap fetch update'. 

> > But this looks like a flaky entry validation - it should be rejected
> > up front as invalid entry, even if it applied to the second part -
> > "update". Because the effect of processing the entire entry "fetch"
> > plus "update" is lost anyway.
> 
> Not isn't, you've brought the snapshot up to date.

Well, yes. But as I already explained, there was ONE command.

If I wanted to be satisfied with two command outcomes, even if logically
linked by sequential execution, then I would do:
# portsnap fetch; portsnap update

There is a subtle, but important difference.

In general, if I wanted to check for command completion code, which is quite
common in UNIX CLI or scripting env, it would make a lot of difference if
a command failed half way in both cases:
'portsnap fetch update; check-completion-code'
and
'portsnap fetch; check-completion-code; portsnap update; check-completion-code'

jb


___
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: portsnap

2012-11-19 Thread jb
RW  googlemail.com> writes:

> ... 
> > ...
> > So, why did it do so much work (ca. 5 min, 24085 patches), even
> > claiming to have applied patches, before telling me the env was not
> > properly set up ? jb
> 
> You gave portsnap two commands - one succeeded and the other failed.
> 
> "fetch" downloads and applies patches to the compressed 
> snapshot. "update" uses the compressed snapshot to update a
> pre-existing ports tree created by an "extract" 
> ...

OK.
But this looks like a flaky entry validation - it should be rejected up front
as invalid entry, even if it applied to the second part - "update".
Because the effect of processing the entire entry "fetch" plus "update" is lost
anyway.
jb




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


portsnap

2012-11-19 Thread jb
Hi,
have i caught portsnap with its pants down ?

# rm -rf /usr/ports
# portsnap fetch update
Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found.
Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Sun Nov 11 15:54:03 CET 2012 to Mon Nov 19 15:34:57 CET 2012.
Fetching 4 metadata patches... done.
Applying metadata patches... done.
Fetching 0 metadata files... done.
Fetching 24085 patches.102030405060708090...
...
0240602407024080.. done.
Applying patches... done.
Fetching 18 new ports or files... done.
/usr/ports was not created by portsnap.
You must run 'portsnap extract' before running 'portsnap update'.
#
# ls /usr/ports
ls: /usr/ports: No such file or directory
#

# ls -al /var/db/portsnap/
total 6144
drwxr-xr-x   3 root  wheel  512 Nov 19 16:04 .
drwxr-xr-x  11 root  wheel  512 Nov  4 11:07 ..
-rw-r--r--   1 root  wheel  2063752 Nov 19 15:51 INDEX
drwxr-xr-x   3 root  wheel  4113920 Nov 19 16:04 files
-rw-r--r--   1 root  wheel  451 Oct 16 22:50 pub.ssl
-rw-r--r--   1 root  wheel  284 Nov 19 15:51 serverlist
-rw-r--r--   1 root  wheel  284 Nov 19 15:51 serverlist_full
-rw-r--r--   1 root  wheel   48 Nov 19 15:51 serverlist_tried
-rw-r--r--   1 root  wheel  527 Nov 19 15:51 tINDEX
-rw-r--r--   1 root  wheel   85 Nov 19 15:51 tag

So, why did it do so much work (ca. 5 min, 24085 patches), even claiming to
have applied patches, before telling me the env was not properly set up ?
jb


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


Security advisory FreeBSD - intrusion incident

2012-11-17 Thread jb
http://www.freebsd.org/
jb


___
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: odd phantom directory

2012-11-16 Thread jb
Brian Gold  simons-rock.edu> writes:

> 
> Hi all,
> 
> I ran into a rather odd issue this morning with my FreeBSD 9.0-Release
> system running ZFS v28. This system serves as an RSYNC host which all of our
> other systems back up to each night. Last night, I started getting the
> following error:
> 
> file has vanished: "/backup/ldap1/etc/pki"
> 
> Now, usually when I get a file has vanished error during an RSYNC run, it
> indicates that the source file/directory on the system that is sending the
> rsync backup has been deleted or moved before rsync got a chance to actually
> send it. That doesn't appear to be the case here. "/backup/ldap1/etc/pki" is
> the destination directory on my Freebsd/ZFS server. I take a look in
> "/backup/ldap1/etc" on my Freebsd server and the "pki" subdirectory is no
> longer listed.
> 
> Ok, so I run "mkdir /backup/ldap1/etc/pki" and get the following error:
> "mkdir: /backup/ldap1/etc/pki: File exists". Odd
> 
> Just to double check, I run "ls -la /backup/ldap1/etc/pki" and get the
> following: "ls: /backup/ldap1/etc/pki: No such file or directory"
> ...

There have been cases like that reported in the past.

One was dated 2006:
http://lists.freebsd.org/pipermail/freebsd-bugs/2006-April/018069.html
I assume the backup host was on UFS.
This comment seems to be interesting:
"Such behavior usually caused by lost vnode reference and/or bugs in the 
 vnode traversal code. ..."

Next dated 2011:
http://freebsd.1045724.n5.nabble.com/carsten-c-otto-de-ftpsync-freebsd-ftp-ftp-1013-rsync-ERROR-on-2011-03-04-09-23-00-td4073512.html
I assume the backup host was on UFS2.
There was a fix commited:
"...John Baldwin commited very promising MFC yesterday, see
http://svn.freebsd.org/changeset/base/219744 ."

Next dated 2011:
http://lists.freebsd.org/pipermail/freebsd-current/2011-October/027902.html
The backup host was on ZFS.

Yours is similar to the last one.

Perhaps looking for the solution to this problem should start at top VFS
layer ?
The description in /usr/src/sys/sys/vnode.h is a good reference.

I would suggest you file a PR# to get VFS and fs devs have a look at it.
jb






 




___
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: curious -- what's /tmp/fam-root ?

2012-11-14 Thread jb
Gary Aitken  dreamchaser.org> writes:

> 
> Just curious; what's the purpose of /tmp/fam-root, and what is written there?
> Is it simply where the os writes stuff which is sensitive,
> and putting it in a rwx-- directory avoids potential security issues
> regarding file access?
> or is there more to it than that?

# procstat -af |grep -i fam
23038 polkitd12 s - rw---   1   0 UDS /tmp/fam-root/fam-
23040 gam_server  4 s - rw---   1   0 UDS /tmp/fam-root/fam-
23040 gam_server  7 s - rw---   1   0 UDS /tmp/fam-root/fam-
26654 thunar  7 s - rw---   1   0 UDS /tmp/fam-jb/fam-
...
# file /tmp/fam-root/fam-
/tmp/fam-root/fam-: socket

jb
 




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


OT: problems with gpl-licensed software

2012-11-14 Thread jb
Thinking about extending or dual-licensing a gpl-licensed software ?
https://lkml.org/lkml/2012/11/7/338

jb


___
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: portmaster or ports (packaging) problem ?

2012-11-09 Thread jb
uki  gmail.com> writes:

> 
> But theese are different packages (different names). since ports dont have
> any equivalent of debian "provides" flag it is impossible to figure it out
> in a safe way.

I have never built a port/package, so I could be wrong here.

This paragraph seems to contain means to specify a dependency and built it if
needed:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-depend.html

for example
5.8.3 BUILD_DEPENDS
aside from its primary meaning as a requirement for building *this* port, it
could be used indirectly to build and install a dependent port :-)

and this offer means to specify a minimal version of a dependency:
5.8.8 Minimal Version of a Dependency

My point is, the logic/infrastrucutre already exists, just adopt it to
next level of port/package management.

jb


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


portmaster or ports (packaging) problem ?

2012-11-09 Thread jb
Hi,
I hit a problem today during a system update.

There were two libxul ports:
/usr/ports/www/libxul
/usr/ports/www/libxul19
of which the last one was installed:
/var/db/pkg/libxul-1.9.2.28_1/

There was a port to update which died on error:
# portmaster icedtea-web
...
===>>> The dependency for www/libxul
   seems to be handled by libxul-1.9.2.28_1
...
===>   Found libxul-1.9.2.28_1, but you need to upgrade to libxul>=10.
*** [build-depends] Error code 1
...
#

So, I had to manually deinstall www/libxul19 and install www/libxul and try
again.

# portmaster icedtea-web
...
===>>> The following actions will be taken if you choose to proceed:
Upgrade icedtea-web-1.3_1 to icedtea-web-1.3.1
Install www/libxul
...
#

Is the portmaster to blame for not being smart enough and not taking steps
of deinstalling www/libxul19 and installing www/libxul in one step ?
jb


___
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: Upgrading Using "FreeBSD Update"

2012-11-06 Thread jb
Jinsong Zhao  yeah.net> writes:

> ... 
> My questions is: how to rebuild all third-party applications? I have 
> kept the ports tree up to date using
> # portsnap fetch update
> and
> # portmaster -Ga
> every day.
> ...

I would advise you to drop -G option and use these entries:
# portsnap fetch update
# portmaster -f portmaster 
# portmaster -a -f

Ref: PORTMASTER(8) Examples.
jb




___
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: My freebsd partition changed by Windows chkdsk

2012-11-05 Thread jb
Manish Jain  hotmail.com> writes:

> 
> 
> Hello Leslie,
> 
> The short answer is No. And it would need more than a miracle to salvage 
> the situation if the partition information is lost.
> ...

I am wondering if this could help:
http://www.cgsecurity.org/wiki/TestDisk
jb
  





___
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: Booting 2nd(!) FreeBSD installation sitting on same disk

2012-11-03 Thread jb
jb  gmail.com> writes:

> ... 
> I do not know the story of active slice in FreeBSD, but I know that neither
> Windows nor Linux require active partitions (in their jargon) to boot from any
> more.
> Perhaps it is time to review this requirement in FreeBSD and drop it if
> possible.
> Opinions are welcome.
> If there are no counterarguments, we will create a PR# to start the process.

I forgot to mention that in such case a new boot option would be introduced to
set a default boot item in a boot manager's menu.
jb
 


___
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: Booting 2nd(!) FreeBSD installation sitting on same disk

2012-11-03 Thread jb
Andre Albsmeier  siemens.com> writes:

> ... 
> However, when pressing F3, the system of slice 2(!) is  
> loaded. This is due to the fact that boot1 always loads
> the first active FreeBSD slice ;-(.
> ... 
> Is there no chance to actually honour the fact that F3 was
> pressed and boot from slice 3 without updating the MBR before?

I do not know the story of active slice in FreeBSD, but I know that neither
Windows nor Linux require active partitions (in their jargon) to boot from any
more.
Perhaps it is time to review this requirement in FreeBSD and drop it if
possible.
Opinions are welcome.
If there are no counterarguments, we will create a PR# to start the process.
jb


___
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: Which NNTP newsreader for huge newsgroups?

2012-10-30 Thread jb
C. P. Ghost  cordula.ws> writes:

> 
> Hello,
> 
> I'm looking for an NNTP newsreader that can gracefully
> handle newsgroups with a *huge* number of posts, if
> possible with a moderate memory and CPU footprint.
> ...

$ cat /usr/ports/news/pan/pkg-descr
Pan is a newsreader, loosely based on Agent and Gravity, which attempts to
be pleasant to use for new and advanced users alike. It has all the typical
features found in newsreaders, and also supports offline reading, multiple
connections, and a number of features for power users and alt.binaries fans.

WWW: http://pan.rebelbase.com/

jb
  





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


/etc/passwd and "&" char

2012-10-29 Thread jb
Hi,

Question:
What is the purpose of the "&" char in GECOS fields, e.g. user's name field, in
/etc/passwd file ?

$ grep "&" /etc/passwd
root:*:0:0:Charlie &:/root:/bin/csh
operator:*:2:5:System &:/:/usr/sbin/nologin
svn:*:1002:1002:User &:/home/svn:/usr/sbin/nologin

The field containing "&" char represents "-c comment" option in pw(8), which
sets up GECOS fields (user's full name, etc).

The pw(8) states further:
...
 The pw utility allows 8-bit characters in the passwd GECOS field ...
 ...
Using 8-bit characters may also affect other
 programs that transmit the contents of the GECOS field over the Internet,
 such as fingerd(8), and a small number of TCP/IP clients, such as IRC,
 where full names specified in the passwd file may be used by default.
...

http://en.wikipedia.org/wiki/Ampersand
...
Encoding and display
...
Programming languages
...
  The ampersand character is used as a special character in at least some
  versions of the database software originally created in Denmark under the
  name Navision (the software has since been acquired by Microsoft). Using this
  character in either "Text" or "Code" fields could create difficulties for
  performing certain tasks in Navision, such as filtering records (either by
  the user or by programming). It is also used as described below to indicate
  shortcuts in menu items and lab els.
...
Text markup
  In SGML, XML, and HTML, ... This creates what is known as the ampersand
  problem. ...
...
Unix shells
...
Web standards
...

Google search results for "& character":
Special (escape) characters in SGML, HTML and XML documents:
&   &   &   ampersand

jb


___
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: Why RELENG_9 branch is labeled as PRERELEASE and freebsd.org says FreeBSD is currently at 9.1-RC2 ?

2012-10-28 Thread jb
Yuri  rawbw.com> writes:

> 
> On 10/28/2012 07:17, Patrick Lamaiziere wrote:
> > RELENG_9 should be called 9-STABLE, if you want 9.1 use RELENG_9_1
> 
> Hm, if they wanted to keep RELENG_9 as "stable" 9.X branch, why then 
> 9.1-PRERELEASE is there? Is PRERELEASE considered more stable than RC? 
> This looks strange to me.
> 
> Yuri

http://svnweb.freebsd.org/base/releng/9.1/sys/conf/newvers.sh?view=log

Go back to Revision 227495, read log text, click View and scroll down to see
TYPE="FreeBSD"
34  REVISION="9.0"
BRANCH="PRERELEASE"
Then back off and move the log up by repeating as above.
Hopefully you understand his drill :-)
jb
 




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


ports index out-of-date

2012-10-28 Thread jb
Hi,
it seems that the problem (last reported and fixed around Oct 17) still 
persists:
# cd /usr/ports
# fetch http://www.FreeBSD.org/ports/INDEX-9.bz2
INDEX-9.bz2   100% of 1621 kB  161 kBps 00m00s
# ls -al IN*
-rw-r--r--  1 root  wheel   1660069 Oct 20 18:13 INDEX-9.bz2
jb


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


Re: kernel config

2012-10-25 Thread jb
jb  gmail.com> writes:

> ... 
> What decides about that (built-in or module) ?
> # kldstat -v |grep cd9660
>   414 cd9660
> # kldstat -v |grep ext2fs
> 151 0xc9911000 11000ext2fs.ko (/boot/kernel/ext2fs.ko)
>   538 ext2fs

That was already clarified.
jb




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



Re: kernel config

2012-10-25 Thread jb
Erich Dollansky  ovitrap.com> writes:

> ... 

What decides about that (built-in or module) ?
# kldstat -v |grep cd9660
414 cd9660
# kldstat -v |grep ext2fs
151 0xc9911000 11000ext2fs.ko (/boot/kernel/ext2fs.ko)
538 ext2fs

jb


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


Re: kernel config

2012-10-25 Thread jb
Erich Dollansky  ovitrap.com> writes:

> ...  
> Just check how a custom kernel is build. You can then build three
> versions of it. One with nothing, one with the modules you want and one
> with the non-conflicting modules build-in.
> 
> Just read the handbook regarding custom kernels.
> ...

I have already read all docs :-)
The problem is I still do not get it ...

I understand that files sys/conf/NOTES and sys//conf/NOTES contain
directive lines like 'device', 'options', 'machine', 'ident', 'maxusers',
'makeoptions'  etc that the user may place in the kernel configuration that she
will run config(8) with.

What is the specific mechanism (directive in GENERIC file, or something else
in GENERIC file or elsewhere) that says build support for cd9660 fs as built-in
and ext2fs as module, or entire kernel as built-in, or entire kernel as
modular (except things that must be built-in, but then what things and where is
this specified) ?
jb


 




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

2012-10-24 Thread jb
Hi,
what controls how parts of kernel are built, that is, built-in or modular ?
For example, I want to:
- build a kernel that has eveything built in
- build a kernel that has everything possible (what controls the impossible ?)
  built as modules
- build a kernel that has mixed support, e.g. support for cd9660 fs built-in
  and ext2fs as module
jb


___
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: hal question

2012-10-13 Thread jb
ajtiM  gmail.com> writes:

> 
> Hi!
> 
> The proble with hal-xorg-mouse is well known very long period and looks like 
> that is nothing better. Also well know is that HAL is in maintenance mode - 
> no 
> new features are added (from freedestop). As I remmeber before I never (we) 
> had a problem with hal-xorg-mouse but I forgot ewhen this problem started.
> Is it possible to downgrade hal and the problem is saved?
> ...

The start of the problem seems to be located in time and is rather well
documented:
http://www.freebsd.org/cgi/query-pr.cgi?pr=171433&cat= 
It is now up to devs to determine which package (X server, hal) is to be looked
at.
jb


___
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: portmaster options

2012-10-12 Thread jb
jb  gmail.com> writes:

> ...

I have doubts about these options use, so I filed a PR#:
http://www.freebsd.org/cgi/query-pr.cgi?pr=172651

jb


___
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: portmaster options

2012-10-12 Thread jb
Polytropon  edvax.de> writes:

> ... 
> But this?
> 
> # portmaster -L --index | egrep '(ew|ort) version|total install'
> /tmp/d-87852-index/INDEX-9.bz2100% of 1619 kB  125 kBps
> 00m00s
> Terminated
> 
> This is with --index and _no_ ports collection in the default
> location (example quoted from your message)...
> 

The above (aborted ?) entry did not create any /tmp die files - this will be
obvious below.
I repeated the procedure once again, with extra tests.

[root@localhost ~]# mv /usr/ports /usr/ports-saved

[root@localhost ~]# ls -al /tmp/d
d-49774-index/   dbus-VVS2cduIFg  dbus-cgVqiePRiB  dbus-pt6vB9UUJ6
dbus-4inUXwgfJ4  dbus-Y2iXdHF5tz  dbus-fsMikdzeLa  dbus-u5N9XsFQwT
dbus-DoADJZr2PE  dbus-ZGcPBBe763  dbus-o2yUi7puUT  dbus-vT3uAQQB6U
dbus-FEJgZRlX7B  dbus-ZmBHPDrpWD  dbus-oVPu6XWzrw  dbus-zrcvtjVO62
dbus-KPYiGOw8UL  dbus-c36HAD5e3q  dbus-paXxX0f1fy  
[root@localhost ~]# ls -al /tmp/d-49774-index/
total 8
drwx--   2 jbwheel   512 Oct  7 00:19 .
drwxrwxrwt  23 root  wheel  2048 Oct 12 15:35 ..
[root@localhost ~]# find /tmp -name "*INDEX*"
 
[root@localhost ~]# portmaster -L --index-only | egrep '(ew|ort) version|total
install'
/tmp/d-93752-index/INDEX-9.bz2100% of 1619 kB  185 kBps
===>>> New version available: smartmontools-5.43_1
===>>> 618 total installed ports
===>>> 1 has a new version available

# ls -al /tmp/d
d-49774-index/   dbus-FEJgZRlX7B  dbus-Y2iXdHF5tz  dbus-c36HAD5e3q 
dbus-o2yUi7puUT  dbus-pt6vB9UUJ6  dbus-zrcvtjVO62
dbus-4inUXwgfJ4  dbus-KPYiGOw8UL  dbus-ZGcPBBe763  dbus-cgVqiePRiB 
dbus-oVPu6XWzrw  dbus-u5N9XsFQwT  
dbus-DoADJZr2PE  dbus-VVS2cduIFg  dbus-ZmBHPDrpWD  dbus-fsMikdzeLa 
dbus-paXxX0f1fy  dbus-vT3uAQQB6U  
# ls -al /tmp/d-49774-index/
total 8
drwx--   2 jbwheel   512 Oct  7 00:19 .
drwxrwxrwt  23 root  wheel  2048 Oct 12 16:00 ..
[root@localhost ~]# find /tmp -name "*INDEX*"
/tmp/INDEX-9
/tmp/INDEX-9.bz2
[root@localhost ~]# ls -al /tmp/*INDEX*
-rw-r--r--  1 root  wheel  26715339 Oct 12 16:00 /tmp/INDEX-9
-rw-r--r--  1 root  wheel   1658547 Oct 12 12:01 /tmp/INDEX-9.bz2

[root@localhost ~]# portmaster -L --index | egrep '(ew|ort) version|total
install'
Terminated

[root@localhost ~]# ls -al /tmp/d
d-49774-index/   dbus-VVS2cduIFg  dbus-cgVqiePRiB  dbus-pt6vB9UUJ6
dbus-4inUXwgfJ4  dbus-Y2iXdHF5tz  dbus-fsMikdzeLa  dbus-u5N9XsFQwT
dbus-DoADJZr2PE  dbus-ZGcPBBe763  dbus-o2yUi7puUT  dbus-vT3uAQQB6U
dbus-FEJgZRlX7B  dbus-ZmBHPDrpWD  dbus-oVPu6XWzrw  dbus-zrcvtjVO62
dbus-KPYiGOw8UL  dbus-c36HAD5e3q  dbus-paXxX0f1fy  
[root@localhost ~]# ls -al /tmp/d-49774-index/
total 8
drwx--   2 jbwheel   512 Oct  7 00:19 .
drwxrwxrwt  23 root  wheel  2048 Oct 12 16:00 ..
[root@localhost ~]# find /tmp -name "*INDEX*"
/tmp/INDEX-9
/tmp/INDEX-9.bz2
[root@localhost ~]# ls -al /tmp/*INDEX*
-rw-r--r--  1 root  wheel  26715339 Oct 12 16:00 /tmp/INDEX-9
-rw-r--r--  1 root  wheel   1658547 Oct 12 12:01 /tmp/INDEX-9.bz2

[root@localhost ~]# rm /tmp/INDEX*
[root@localhost ~]# find /tmp -name "*INDEX*"
[root@localhost ~]# 

# portmaster -L --index | egrep '(ew|ort) version|total install'
Terminated
[root@localhost ~]# 

[root@localhost ~]# find /tmp -name "*INDEX*"
[root@localhost ~]# 

jb


___
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: portmaster options

2012-10-12 Thread jb
RW  googlemail.com> writes:

> 
> On Fri, 12 Oct 2012 04:35:43 + (UTC)
> jb wrote:
> 
> > Hi,
> > what is the diff between
> > --index
> > and
> > --index-only
> 
> From a *very* quick look, it appears that --index-only means don't use
> the the port-directory at all, so that the index file is downloaded
> into /tmp, and some checks and optimizations are skipped or done
> less efficiently.  
> ...

# ls -al /usr/ports/
...
-rw-r--r-- 1 root  wheel  26881412 Oct 12 07:47 INDEX-7
-rw-r--r-- 1 root  wheel  26765446 Oct 12 07:47 INDEX-8
-rw-r--r-- 1 root  wheel  26715339 Oct 12 13:28 INDEX-9
-rw-r--r-- 1 root  wheel   1658547 Oct 12 12:01 INDEX-9.bz2
...
#

# find /tmp -name "*INDEX*"

# portmaster -L --index-only | egrep '(ew|ort) version|total install'
===>>> New version available: smartmontools-5.43_1
===>>> 618 total installed ports
===>>> 1 has a new version available

# find /tmp -name "*INDEX*"

Nope :-)
jb






___
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: portmaster options

2012-10-12 Thread jb
Polytropon  edvax.de> writes:

> ... 
> > Well, yes, BUT they seem to be redundant (that's why I asked).
> > 
> > # portmaster -L --index-only | egrep '(ew|ort) version|total install'
> > ===>>> New version available: smartmontools-5.43_1
> > ===>>> 618 total installed ports
> > ===>>> 1 has a new version available
> > 
> > # portmaster -L --index | egrep '(ew|ort) version|total install'
> > ===>>> New version available: smartmontools-5.43_1
> > ===>>> 618 total installed ports
> > ===>>> 1 has a new version available
> > # 
> 
> Did you test this with or _without_ an actually installed ports
> collection? If you don't have one installed, --index probably
> won't work.
> 

# mv /usr/ports /usr/ports-saved

# portmaster -L --index-only | egrep '(ew|ort) version|total install'
/tmp/d-85964-index/INDEX-9.bz2100% of 1619 kB  185 kBps
===>>> New version available: smartmontools-5.43_1
===>>> 618 total installed ports
===>>> 1 has a new version available

# portmaster -L --index | egrep '(ew|ort) version|total install'
/tmp/d-87852-index/INDEX-9.bz2100% of 1619 kB  125 kBps 00m00s
Terminated
#

Well, the second entry outcome (with --index option) looks like a bug to me.
jb






___
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: portmaster options

2012-10-12 Thread jb
jb  gmail.com> writes:

> ... 
> >  --index-only
> >  do not try to use /usr/ports.  For updating ports when no 
> >  /usr/ports
> >  directory is present the -PP|--packages-only option is required.  
> >  See the ENVIRONMENT section below for additional requirements.
> > 
> ...

And -PP|--packages-only option implies "index only" entry behavior, so there
is redundancy here as well.

Does anybody know where this --index-only option really matter ?
jb


___
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: portmaster options

2012-10-12 Thread jb
Polytropon  edvax.de> writes:

> 
> On Fri, 12 Oct 2012 04:35:43 +0000 (UTC), jb wrote:
> > Hi,
> > what is the diff between
> > --index
> > and
> > --index-only
> ...
>  --index
>  use INDEX-[7-9] exclusively to check if a port is up to date
> ...
>  --index-only
>  do not try to use /usr/ports.  For updating ports when no /usr/ports
>  directory is present the -PP|--packages-only option is required.  See
>  the ENVIRONMENT section below for additional requirements.
> 
> This means --index-only is to be used when using portmaster for
> binary installs without an installed ports collection.
> 

Well, yes, BUT they seem to be redundant (that's why I asked).

# portmaster -L --index-only | egrep '(ew|ort) version|total install'
===>>> New version available: smartmontools-5.43_1
===>>> 618 total installed ports
===>>> 1 has a new version available

# portmaster -L --index | egrep '(ew|ort) version|total install'
===>>> New version available: smartmontools-5.43_1
===>>> 618 total installed ports
===>>> 1 has a new version available
# 


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


portmaster options

2012-10-11 Thread jb
Hi,
what is the diff between
--index
and
--index-only
jb


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


portmaster backup package

2012-10-08 Thread jb
Hi,
what to do with that backup package (-b option) after installation of new port
failed ?
jb


___
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: compile/install Libreoffice Writer only

2012-10-08 Thread jb
jb  gmail.com> writes:

> ...

A follow up.
I e-mailed FB office boyz and received a response, which is safe to share
with the list:

" 
Baptiste Daroussin b...@freebsd.org

This is almost not doable for many reason:

1/ the ports itself will be over complicated to only allow compiler some part of
libreoffice imho (that is the main reason I didn't make it at first

2/ splitting the build won't give you much

3/ what linux distributions do it splitting the result of the build, not the
build itself, and the ports tree does not allow this for the moment.

regards,
Bapt
"

Well, if you have an opinion make it count now when this stuff is discussed.
jb


___
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: compile/install Libreoffice Writer only

2012-10-07 Thread jb
Walter Hurry  gmail.com> writes:

> ... 
> Yes, but libreoffice-common is essentially the whole thing; libreoffice-
> base, libreoffice-calc, libreoffice-draw, libreoffice-impress and 
> libreoffice-writer are (relatively) small front ends.
> 
> To all intents and purposes, Polytropon is right.
> ...

Installed Size:
libreoffice-common224.7 MB
libreoffice-base7.2 MB
libreoffice-calc   17.9 MB
libreoffice-draw   48.0 KB
libreoffice-impress   732.0 KB
libreoffice-writer 11.2 MB
libreoffice-sdk26.2 MB
libreoffice-sdk-doc   104.8 MB 
and not counting many other extensions.

It may be relevant saving perhaps 100 MB when you compose CD functionality,
and you want to offer Libreoffice Writer on it.

Besides that, there is always a chance that one can look into the splits more
deeply and discover that it can be done differently (better ?) and make
libreoffice-common leaner, and offer some more stuff as separate packages or
extensions packages.
Who knows what FB office boyz could do with it if they really wanted.

Anyway, the objective would be to be able to install each of components
individually, as needed.
jb


___
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: Building Ports: Is there a "make" equivalent for --batch ?

2012-10-07 Thread jb
Ronald F. Guilmette  tristatelogic.com> writes:

> ... 
> However there's one instance where I don't know how to get this
> functionality, i.e. the functionality provided by the --batch option.
> ...

There is no guarantee that either of those will work (try them separately):

$ cat /etc/make.conf
BATCH=yes

# env BATCH=yes make
 
jb





___
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: compile/install Libreoffice Writer only

2012-10-07 Thread jb
Polytropon  edvax.de> writes:

> 
> On Sun, 7 Oct 2012 12:12:17 +0000 (UTC), jb wrote:
> > Polytropon  edvax.de> writes:
> > 
> > > 
> > > On Sun, 7 Oct 2012 05:11:50 + (UTC), jb wrote:
> > > > Hi,
> > > > is there a way to do that right now in ports (config, make options) ?
> > > > Or would that require separate source packaging per component ?
> > > 
> > > I'm not aware that this is possible, as LibreOffice (like
> > > OpenOffice) is designed as an "integrated package" containing
> > > various interconnected parts of office productivity programs.
> > > So I assume it's not easy to build _only_ one component.
> > > ...
> > 
> > It is possible - those Linux lollipops offer such in some distros,
> > prepackaged.
> 
> Interesting, I didn't think that was possible. Does this come
> with a _separated_ build for all the components that have such
> a corresponding package, or is it simply not containing the
> binaries for the "other" components?
> ...

For example, in Archlinux these are separate builds/packages:

libreoffice-common

libreoffice-base
libreoffice-calc
libreoffice-draw
libreoffice-impress
libreoffice-writer

libreoffice-sdk
libreoffice-sdk-doc

libreoffice-extension-nlpsolver
libreoffice-extension-pdfimport
libreoffice-extension-presentation-minimizer
libreoffice-extension-presenter-screen
libreoffice-gnome
libreoffice-kde4
libreoffice-math
libreoffice-postgresql-connector
libreoffice-scripting-javascript
...

So, there is a lot of functionality thru modularity.

For example, in CentOS (clone of RedHat) I can install libreoffice-writer
only, which pulls libreoffice-common, and perhaps some extension packages
(if so configured).
jb





___
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: compile/install Libreoffice Writer only

2012-10-07 Thread jb
Polytropon  edvax.de> writes:

> 
> On Sun, 7 Oct 2012 05:11:50 +0000 (UTC), jb wrote:
> > Hi,
> > is there a way to do that right now in ports (config, make options) ?
> > Or would that require separate source packaging per component ?
> 
> I'm not aware that this is possible, as LibreOffice (like
> OpenOffice) is designed as an "integrated package" containing
> various interconnected parts of office productivity programs.
> So I assume it's not easy to build _only_ one component.
> ...

It is possible - those Linux lollipops offer such in some distros, prepackaged.
I hope that FB's office team finds time to figure it out.
It would benefit FB-based OSs to reasonably customize their CDs.
jb
   




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


compile/install Libreoffice Writer only

2012-10-06 Thread jb
Hi,
is there a way to do that right now in ports (config, make options) ?
Or would that require separate source packaging per component ?
jb


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


  1   2   3   >