Journaling for a flaky FreeBSD VirtualBox guest.

2013-02-27 Thread Alan Gutierrez
I'm getting to know FreeBSD by running a 64-bit FreeBSD guest in a VirtualBox
machine on my OS X Mountain Lion laptop. On occasion, when waking up from sleep,
the FreeBSD virtual machine will not restart. VirtualBox marks it as "Aborted."

When I restart FreeBSD, I've found on a number of occasions that the `.git`
directory of the project I was working on when my laptop went to sleep has
become corrupted. `git` won't recognize the directory. I try to rebuild the
repository with `git fsck`, but it's usually broken. My `.zsh_history` file has
been corrupted at restart, which I've recovered by removing the last line which
contains binary nonsense.

I run a Linux guest that suffers the same abuse, but does not lose data. 

My question:

If anyone runs FreeBSD in VirtualBox, what VirtualBox settings do you use so
that UFS will work correctly and recover recent writes?

I'm using UFS built by the install media.

 % mount
/dev/ada0p2 on / (ufs, local, journaled soft-updates)
devfs on /dev (devfs, local, multilabel)

I'm using the disk and disk controller setup that VirtualBox suggested when when
I told it I was building a FreeBSD machine. A single IDE drive on an IDE
controller with "Use host I/O cache enabled." The VirtualBox documentation says
that a virtual SATA controller is preferred if you choose to uncheck "Use host
I/O cache enabled." 

http://www.virtualbox.org/manual/ch05.html#iocaching

So...

 * How should I configure my filesystem for maximum durability, since the
 VirtualBox virtual drives appear to be flaky?
 * Does anyone run a similar setup, FreeBSD guest on MacBook host? If you're
 experience is trouble-free, then what virtual controller do you use? Do you
 enable host I/O caching? What file system are you running in FreeBSD?

--
Alan Gutierrez ~ @bigeasy
___
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: connect to a network printer to be able to print

2013-02-27 Thread Trond Endrestøl
On Wed, 27 Feb 2013 11:44-0600, Antonio Olivares wrote:

> On Wed, Feb 27, 2013 at 11:23 AM, Trond Endrestøl
>  wrote:
> > On Wed, 27 Feb 2013 10:45-0600, Antonio Olivares wrote:
> >
> >> Dear folks,
> >>
> >> I am trying to connect a network printer to be able to print to it.  I
> >> know the make/model of the printer:
> >> HP Color LaserJet CP4520
> >> and the ip address it is on
> >> 10.155.135.3
> >>
> >> I want to use lpd/lpr to be able to print as is specified in
> >> http://www.wonkity.com/~wblock/docs/html/lpdprinting.html
> >>
> >> I read the instructions on the handbook, but it does not specify how
> >> to use the ip address or specify it to print to it.  How can I set
> >> this printer up?
> >> I have setup /etc/printcap with the following:
> >>
> >> lp:\
> >> :lp=:\
> >> :sh:\
> >> :mx#0:\
> >> :rm=HP_Color_LaserJet_CP4520:\
> >> :rp=raw:\
> >> :sd=/var/spool/lpd/lp:\
> >> :lf=/var/log/lpd-errs:
> >>
> >> but there is no ip adress where the communication can exist.  How can
> >> I do this?  Do I setup the printer with CUPS?  or can it be done with
> >> lpr which is what I use with a local HP 1200 printer, but this one is
> >> a network printer.
> >>
> >> Thanks,
> >>
> >>
> >> Antonio
> >
> > Does the name HP_Color_LaserJet_CP4520 resolve to its IP address?
> 
> it seems it does not :(
> 
> grullahighschool# lpq
> Warning: unable to get address list for remote machine
> HP_Color_LaserJet_CP4520: hostname nor servname provided, or not known
> Warning: no daemon present
> Rank   Owner  Job  Files Total Size
> 1stolivares   0(standard input)  239208 bytes
> You have new mail.
> grullahighschool#
> 
> > What about using a FQDN?
> >
> > Does the name exist in your local DNS zone or does the name exist in
> > the local /etc/hosts file?
> >
> > Either make sure the name is resolvable, or specify the IP address in
> > the /etc/printcap file.
> 
> how do I do this?  any examples out there?
> 
> >
> > Your HP printer should be equipped with a JetDirect card, and you
> > should be able to print a configuration page revealing the current
> > settings.
> >
> > If the settings doesn't match your network, then you need to input the
> > desired settings. I guess this would be possible through the use of
> > the LCD display and the buttons nearby.
> >
> >
> > Best of luck,
> > Trond.
> 
> Dear Trond,
> 
> I have run a test using an example by W. Block on another site:
> 
> http://www.howtofixcomputers.com/forums/printers/printer-without-driver-266629-4.html
> 
> and I have sent data to the printer and it prints:
> 
> # printf "This is a test\r\n\f" | nc 10.155.135.3 9100
> 
> How do I set this up in /etc/printcap, so that this printer can be the one?
> 
> Thanks for your help.  I am close to get it to work.

The rm (remote machine) property in /etc/printcap should be changed to 
10.155.135.3, i.e.

:rm=10.155.135.3:\

Then it's simply a matter of restarting lpd, i.e.
/etc/rc.d/lpd restart

If you're lucky, your first print job should appear as hardcopy.

Mind you, lpd uses the LPR/LPD protocol running on TCP port 515, not 
the HP JetDirect raw submission on TCP port 9100. Normally the LPD 
protocol would be enabled, but must be reenabled on the printer if 
this is not the case. The aforementioned configuration page should 
list such a setting.

-- 
+---++
| Vennlig hilsen,   | Best regards,  |
| Trond Endrestøl,  | Trond Endrestøl,   |
| IT-ansvarlig, | System administrator,  |
| Fagskolen Innlandet,  | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,   | Cellular...: +47 952 62 567,   |
| sentralbord 61 14 54 00.  | Switchboard: +47 61 14 54 00.  |
+---++___
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: Fat Fingered An 'rm -rf' of Important Files

2013-02-27 Thread Ben Cottrell
On Feb 27, 2013, at 19:08, "Joseph A. Nagy, Jr"  wrote:
> If we can skip the finger wagging on that part I'd appreciate it.

No finger-wagging from this quarter at least!

Something I've sometimes done to retrieve text content is to run a
"strings" on the disk device (the thing in /dev). You obviously want
to redirect the "strings" output to someplace that's *not* on the same
filesystem, or it'll be overwriting what you're trying to recover!

It's usually possible, through searching for key words and phrases,
to get back any text content that you know was there.

Sorry! And... good luck!!

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


Fat Fingered An 'rm -rf' of Important Files

2013-02-27 Thread Joseph A. Nagy, Jr
Okay, I know I should pay more attention to what I'm doing, and having 
separate partitions isn't an excuse for regular backups. If we can skip 
the finger wagging on that part I'd appreciate it.


Here is what happened. I was mounting a thumb drive and I was wanting to 
'rm -rf' what was on it (it doesn't matter if I was root or not, I gave 
the directories I mount to in /mnt user:usergroup permissions so it 
would have happened regardless). Because I was having a conversation 
with my wife, balancing my laptop, and trying to do this, I deleted the 
contents of /mnt/business (important business documents, journaled 
partition) and /mnt/storage (4GB irreplaceable photos, all my music (all 
replaceable once I get my super-multi-format (dvd+/-/cd/rw), and other 
various files (sermons, notes on sermons, bible study notes, and more), 
irreplaceable videos and more all gone (in total about 63GiB of files).


Is there any way to retrieve any of them? I've not wrote any data to 
either partition since the accidental deletion. None of my other 
filesystems (/ and /usr/local/home/*) were affected by my stupidity.

--
Yours in Christ,

Joseph A Nagy Jr
"Whoever loves instruction loves knowledge, But he who hates correction
is stupid." -- Proverbs 12:1
Emails are not formal business letters, whatever businesses may want.
Original content CopyFree (F) under the OWL 
http://copyfree.org/licenses/owl/license.txt

___
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: Performance Related Question

2013-02-27 Thread Joshua Isom

On 2/27/2013 4:53 PM, Michael Ross wrote:

 On a multi-CPU machine using an SMP configured kernel, try values
between 6 and 10 and see how they speed things up.



But you also do need to consider memory usage.  On the areas of 
buildworld that are CPU intensive, they can also be memory intensive. 
If the active processes need to get swapped out to disk, you can wipe 
out any performance gain.  I've noticed this some with clang.  I don't 
care that clang uses more memory, "compile once, run many", but be aware 
of it if you're benchmarking.  The ram amount can also influence cache 
sizes, and you have a major difference in memory amounts.

___
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: Performance Related Question

2013-02-27 Thread Warren Block

On Wed, 27 Feb 2013, Frederico Costa wrote:


On 2013-02-27 22:27, Michael Ross wrote:

If I read you right, you didn't ``make -jX buildworld'',
with X being the number of processes to spawn,
so you used just one core on either machine.

Buildworld does a lot of I/O, so disk speed is relevant.


Yes, i just made "make buildworld".

So i should use make -j2 on the S1(dual core) and -j4 on S2 (2xdualcore)?

And it also makes sense what you say about the I/O.


It really depends on the system.  On my dual-core systems, I use 
devel/ccache and found that -j8 gave the best performance.

___
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: Performance Related Question

2013-02-27 Thread Michael Ross
On Wed, 27 Feb 2013 23:38:34 +0100, Frederico Costa   
wrote:



On 2013-02-27 22:27, Michael Ross wrote:

If I read you right, you didn't ``make -jX buildworld'',
with X being the number of processes to spawn,
so you used just one core on either machine.
 Buildworld does a lot of I/O, so disk speed is relevant.


Yes, i just made "make buildworld".

So i should use make -j2 on the S1(dual core) and -j4 on S2 (2xdualcore)?

And it also makes sense what you say about the I/O.

i will start another to see the results.



Maybe try higher settings.
Handbook ( http://www.freebsd.org/doc/handbook/makeworld.html ) says:


	However, since much of the compiling process is I/O bound rather than CPU  
bound, it is also useful on single CPU machines.


On a typical single-CPU machine, run:
# make -j4 buildworld

	make(1) will then have up to 4 processes running at any one time.  
Empirical evidence posted to the mailing lists shows this generally gives  
the best performance benefit.


	On a multi-CPU machine using an SMP configured kernel, try values between  
6 and 10 and see how they speed things up.






Thanks

fred


On Wed, 27 Feb 2013 23:05:44 +0100, Frederico Costa
  wrote:


Hi everyone...
 I have a kind of interesting question when comes to performance of
FreeBSD in different HW. i am not trying to come up with a scientific
reason for measuring performance. :-)
 It is just a curiosity, and of course to see if i understand it and
improve performance of my systems.
 i am running 2 systems at the moment, lets call them S1 and S2,
running FreeBSD 9.1-RELEASE-p1 amd64:
 S1:
Intel Core2 Duo E6550 @ 2.33GHz
2GB RAM
500GB disk (not important probably just for reference)
 S2:
2x Dual-Core AMD Opteron 2216 2.4GHz
14GB Ram
320GB disk (not important probably just for reference)
 Both the systems are running more or less the same sw, apache, imap
server, postfix, and the needed perl/php/python and running very light
  load. Also both are using a GENERIC kernel and not running X, they  
are

just text based :-)
  From cpubenchmark.net the cpu performance index are for s1: 1501 and
s2: 1518, so very similar.
 As i felt the AMD system seemed slower when comes to compiling, i just
done a "performance test" which was "make buildworld" on both of
systems from scratch and the times are:
 S1: 2h 12m
S2: 2h 59m


 If I read you right, you didn't ``make -jX buildworld'',
with X being the number of processes to spawn,
so you used just one core on either machine.
 Buildworld does a lot of I/O, so disk speed is relevant.
  Regards,
 Michael

___
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: Performance Related Question

2013-02-27 Thread Frederico Costa

On 2013-02-27 22:27, Michael Ross wrote:

If I read you right, you didn't ``make -jX buildworld'',
with X being the number of processes to spawn,
so you used just one core on either machine.

Buildworld does a lot of I/O, so disk speed is relevant.


Yes, i just made "make buildworld".

So i should use make -j2 on the S1(dual core) and -j4 on S2 
(2xdualcore)?


And it also makes sense what you say about the I/O.

i will start another to see the results.

Thanks

fred


On Wed, 27 Feb 2013 23:05:44 +0100, Frederico Costa
  wrote:


Hi everyone...

I have a kind of interesting question when comes to performance of
FreeBSD in different HW. i am not trying to come up with a scientific
reason for measuring performance. :-)

It is just a curiosity, and of course to see if i understand it and
improve performance of my systems.

i am running 2 systems at the moment, lets call them S1 and S2,
running FreeBSD 9.1-RELEASE-p1 amd64:

S1:
Intel Core2 Duo E6550 @ 2.33GHz
2GB RAM
500GB disk (not important probably just for reference)

S2:
2x Dual-Core AMD Opteron 2216 2.4GHz
14GB Ram
320GB disk (not important probably just for reference)

Both the systems are running more or less the same sw, apache, imap
server, postfix, and the needed perl/php/python and running very 
light
  load. Also both are using a GENERIC kernel and not running X, they 
are

just text based :-)

 From cpubenchmark.net the cpu performance index are for s1: 1501 and
s2: 1518, so very similar.

As i felt the AMD system seemed slower when comes to compiling, i 
just

done a "performance test" which was "make buildworld" on both of
systems from scratch and the times are:

S1: 2h 12m
S2: 2h 59m



If I read you right, you didn't ``make -jX buildworld'',
with X being the number of processes to spawn,
so you used just one core on either machine.

Buildworld does a lot of I/O, so disk speed is relevant.


Regards,

Michael

___
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: Performance Related Question

2013-02-27 Thread Michael Ross
On Wed, 27 Feb 2013 23:05:44 +0100, Frederico Costa   
wrote:



Hi everyone...

I have a kind of interesting question when comes to performance of
FreeBSD in different HW. i am not trying to come up with a scientific
reason for measuring performance. :-)

It is just a curiosity, and of course to see if i understand it and
improve performance of my systems.

i am running 2 systems at the moment, lets call them S1 and S2,
running FreeBSD 9.1-RELEASE-p1 amd64:

S1:
Intel Core2 Duo E6550 @ 2.33GHz
2GB RAM
500GB disk (not important probably just for reference)

S2:
2x Dual-Core AMD Opteron 2216 2.4GHz
14GB Ram
320GB disk (not important probably just for reference)

Both the systems are running more or less the same sw, apache, imap
server, postfix, and the needed perl/php/python and running very light
  load. Also both are using a GENERIC kernel and not running X, they are
just text based :-)

 From cpubenchmark.net the cpu performance index are for s1: 1501 and
s2: 1518, so very similar.

As i felt the AMD system seemed slower when comes to compiling, i just
done a "performance test" which was "make buildworld" on both of
systems from scratch and the times are:

S1: 2h 12m
S2: 2h 59m



If I read you right, you didn't ``make -jX buildworld'',
with X being the number of processes to spawn,
so you used just one core on either machine.

Buildworld does a lot of I/O, so disk speed is relevant.


Regards,

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


Performance Related Question

2013-02-27 Thread Frederico Costa

Hi everyone...

I have a kind of interesting question when comes to performance of
FreeBSD in different HW. i am not trying to come up with a scientific
reason for measuring performance. :-)

It is just a curiosity, and of course to see if i understand it and
improve performance of my systems.

i am running 2 systems at the moment, lets call them S1 and S2,
running FreeBSD 9.1-RELEASE-p1 amd64:

S1:
Intel Core2 Duo E6550 @ 2.33GHz
2GB RAM
500GB disk (not important probably just for reference)

S2:
2x Dual-Core AMD Opteron 2216 2.4GHz
14GB Ram
320GB disk (not important probably just for reference)

Both the systems are running more or less the same sw, apache, imap
server, postfix, and the needed perl/php/python and running very light
 load. Also both are using a GENERIC kernel and not running X, they are
just text based :-)

From cpubenchmark.net the cpu performance index are for s1: 1501 and
s2: 1518, so very similar.

As i felt the AMD system seemed slower when comes to compiling, i just
done a "performance test" which was "make buildworld" on both of
systems from scratch and the times are:

S1: 2h 12m
S2: 2h 59m

My mind tells me that the S2 system should be faster, just because
there are 2 CPU instead 1, or 4 cores and of course more RAM. But
the "smaller" Intel seems to beat the crap of the AMD.

Is this expected? Should i expect the S2 should be way faster?

And just trying to get some advice, is there any tweaks i can do on
the S2 system to make it go faster?

Like i said i was expecting the S2 to be faster, but of course maybe i
am wrong?

Any advice/feedback will be appreciated, as i am just trying to
understanding and if possible improve performance.

Thanks in advance

Fred

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

2013-02-27 Thread dteske
Got it... (script inline below)

The first (and only) argument is to be a path to a 4.11 jail's root directory.
For example, if you take a FreeBSD-4 box and rsync it to "/usr/jails/myold4box"
on a FreeBSD-8 machine, you should then execute:

update411binaries.sh /usr/jails/myold4box

Then just configure the jail and fire it up. Of course, these are vnet jails.

Further instructions on http://druidbsd.sf.net/vimage.shtml with my vimage
package here: http://druidbsd.sf.net/download.shtml#vimage

===

#!/bin/sh

if [ "$( id -u )" != "0" ]; then
echo "Must run as root!" >&2
exit 1
fi

if [ $# -lt 1 ]; then
echo "Usage: $0 directory" >&2
exit 1
fi

dir="$1"
if [ ! -d "$dir" ]; then
echo "$dir: No such file or directory" >&2
exit 1
fi

mkdir -p "$dir/libexec" "$dir/lib" "$dir/usr/lib"
for file in \
/bin/ps \
/libexec/ld-elf.so.1\
/lib/libm.so.5  \
/lib/libkvm.so.5\
/lib/libc.so.7  \
/sbin/ifconfig  \
/lib/libbsdxml.so.4 \
/lib/libjail.so.1   \
/lib/libsbuf.so.5   \
/lib/libipx.so.5\
/sbin/route \
/usr/bin/top\
/lib/libncurses.so.8\
/usr/bin/netstat\
/usr/lib/libmemstat.so.3\
/lib/libutil.so.8   \
/usr/lib/libnetgraph.so.4   \
; do
cp -pfv "$file" "$dir$file"
done

> -Original Message-
> From: Bernt Hansson [mailto:b...@bananmonarki.se]
> Sent: Wednesday, February 27, 2013 2:19 AM
> To: Teske, Devin
> Cc: questions FreeBSD
> Subject: Re: Jail question
> 
> 2013-02-26 15:18, Teske, Devin skrev:
> > Yes, this is possible.
> >
> > When I get into work, I'll share with you the recipe
> 
> Please do share with us.

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
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: connect to a network printer to be able to print

2013-02-27 Thread Antonio Olivares
On Wed, Feb 27, 2013 at 12:47 PM, Warren Block  wrote:
> On Wed, 27 Feb 2013, Antonio Olivares wrote:
>
>> Dear folks,
>>
>> I am trying to connect a network printer to be able to print to it.  I
>> know the make/model of the printer:
>> HP Color LaserJet CP4520
>> and the ip address it is on
>> 10.155.135.3
>>
>> I want to use lpd/lpr to be able to print as is specified in
>> http://www.wonkity.com/~wblock/docs/html/lpdprinting.html
>>
>> I read the instructions on the handbook, but it does not specify how
>> to use the ip address or specify it to print to it.  How can I set
>> this printer up?
>> I have setup /etc/printcap with the following:
>>
>> lp:\
>>:lp=:\
>>:sh:\
>>:mx#0:\
>>:rm=HP_Color_LaserJet_CP4520:\
>>:rp=raw:\
>>:sd=/var/spool/lpd/lp:\
>>:lf=/var/log/lpd-errs:
>>
>> but there is no ip adress where the communication can exist.  How can
>> I do this?  Do I setup the printer with CUPS?  or can it be done with
>> lpr which is what I use with a local HP 1200 printer, but this one is
>> a network printer.
>
>
> If your local DNS does not have a name for the printer, define it in
> /etc/hosts:
>
> 10.155.135.3HP_Color_LaserJet_CP4520

Dear Warren & all,

I have succeeded !  I got it to work by using the last example in your
page, copied it over to /etc/printcap:

lp:\
:lp=9100@netlaser:\
:sh:\
:mx#0:\
:sd=/var/spool/lpd/lp:\
:lf=/var/log/lpd-errs:

then ran
# sed -i "" 's|9100@netlaser|9100@10.155.135.3|g'

and it has printed successfully :)  Now I will do this with two other
machines to be able to print to this network printer.  Thanks to all
who helped figure this out.  I had not even tried to connect, but
reading on another site that it was not hard to do, I tried it and it
has succeeded!

Best Regards,


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


Re: connect to a network printer to be able to print

2013-02-27 Thread Warren Block

On Wed, 27 Feb 2013, Antonio Olivares wrote:


Dear folks,

I am trying to connect a network printer to be able to print to it.  I
know the make/model of the printer:
HP Color LaserJet CP4520
and the ip address it is on
10.155.135.3

I want to use lpd/lpr to be able to print as is specified in
http://www.wonkity.com/~wblock/docs/html/lpdprinting.html

I read the instructions on the handbook, but it does not specify how
to use the ip address or specify it to print to it.  How can I set
this printer up?
I have setup /etc/printcap with the following:

lp:\
   :lp=:\
   :sh:\
   :mx#0:\
   :rm=HP_Color_LaserJet_CP4520:\
   :rp=raw:\
   :sd=/var/spool/lpd/lp:\
   :lf=/var/log/lpd-errs:

but there is no ip adress where the communication can exist.  How can
I do this?  Do I setup the printer with CUPS?  or can it be done with
lpr which is what I use with a local HP 1200 printer, but this one is
a network printer.


If your local DNS does not have a name for the printer, define it in 
/etc/hosts:


10.155.135.3HP_Color_LaserJet_CP4520
___
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: connect to a network printer to be able to print

2013-02-27 Thread Antonio Olivares
On Wed, Feb 27, 2013 at 11:23 AM, Trond Endrestøl
 wrote:
> On Wed, 27 Feb 2013 10:45-0600, Antonio Olivares wrote:
>
>> Dear folks,
>>
>> I am trying to connect a network printer to be able to print to it.  I
>> know the make/model of the printer:
>> HP Color LaserJet CP4520
>> and the ip address it is on
>> 10.155.135.3
>>
>> I want to use lpd/lpr to be able to print as is specified in
>> http://www.wonkity.com/~wblock/docs/html/lpdprinting.html
>>
>> I read the instructions on the handbook, but it does not specify how
>> to use the ip address or specify it to print to it.  How can I set
>> this printer up?
>> I have setup /etc/printcap with the following:
>>
>> lp:\
>> :lp=:\
>> :sh:\
>> :mx#0:\
>> :rm=HP_Color_LaserJet_CP4520:\
>> :rp=raw:\
>> :sd=/var/spool/lpd/lp:\
>> :lf=/var/log/lpd-errs:
>>
>> but there is no ip adress where the communication can exist.  How can
>> I do this?  Do I setup the printer with CUPS?  or can it be done with
>> lpr which is what I use with a local HP 1200 printer, but this one is
>> a network printer.
>>
>> Thanks,
>>
>>
>> Antonio
>
> Does the name HP_Color_LaserJet_CP4520 resolve to its IP address?

it seems it does not :(

grullahighschool# lpq
Warning: unable to get address list for remote machine
HP_Color_LaserJet_CP4520: hostname nor servname provided, or not known
Warning: no daemon present
Rank   Owner  Job  Files Total Size
1stolivares   0(standard input)  239208 bytes
You have new mail.
grullahighschool#


>
> What about using a FQDN?
>
> Does the name exist in your local DNS zone or does the name exist in
> the local /etc/hosts file?
>
> Either make sure the name is resolvable, or specify the IP address in
> the /etc/printcap file.

how do I do this?  any examples out there?

>
> Your HP printer should be equipped with a JetDirect card, and you
> should be able to print a configuration page revealing the current
> settings.
>
> If the settings doesn't match your network, then you need to input the
> desired settings. I guess this would be possible through the use of
> the LCD display and the buttons nearby.
>
>
> Best of luck,
> Trond.
>
> --
> +---++
> | Vennlig hilsen,   | Best regards,  |
> | Trond Endrestøl,  | Trond Endrestøl,   |
> | IT-ansvarlig, | System administrator,  |
> | Fagskolen Innlandet,  | Gjøvik Technical College, Norway,  |
> | tlf. mob.   952 62 567,   | Cellular...: +47 952 62 567,   |
> | sentralbord 61 14 54 00.  | Switchboard: +47 61 14 54 00.  |
> +---++


Dear Trond,

I have run a test using an example by W. Block on another site:

http://www.howtofixcomputers.com/forums/printers/printer-without-driver-266629-4.html

and I have sent data to the printer and it prints:

# printf "This is a test\r\n\f" | nc 10.155.135.3 9100

How do I set this up in /etc/printcap, so that this printer can be the one?

Thanks for your help.  I am close to get it to work.


Best Regards,


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


Re: how to disable bluetooth

2013-02-27 Thread CeDeROM
hey hey :-)  its not that i dont want the bluetooth at all, just want to
shut it down when its supposed to be shut down :-) bluetooth stack is
always functional and my device is always visible even if i disable all
bluetooth services, this seems insecure a bit huh. :-)

--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
On 27 Feb 2013 17:41, "Polytropon"  wrote:

> On Mon, 25 Feb 2013 14:56:46 +0100, CeDeROM wrote:
> > hey, how can i disable bluetooth in freebsd (9.1)?
>
> Kill it with fire! ;-)
>
>
>
> > my device is visible to other devices whethever i switch the radio
> button,
> > also the radio button seems to be the only waynto disable my computer
> from
> > being visible to other devices...
> >
> > i hwve tried to disable bluetooth and ubt in loader.conf and various
> > serives in rc.conf but still my computer was visible to other devices. i
> > dont want it to be visible to other bluetooth computers but still i want
> to
> > have radio switched on to use wifi.
>
> You can try to omit Bluetooth entirely by defining the symbol
> WITHOUT_BLUETOOTH=yes in /etc/src.conf and rebuilding your
> system (kernel and world). See "man src.conf" for details.
>
>
> --
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@freebsd.org"
>
___
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: connect to a network printer to be able to print

2013-02-27 Thread Trond Endrestøl
On Wed, 27 Feb 2013 10:45-0600, Antonio Olivares wrote:

> Dear folks,
> 
> I am trying to connect a network printer to be able to print to it.  I
> know the make/model of the printer:
> HP Color LaserJet CP4520
> and the ip address it is on
> 10.155.135.3
> 
> I want to use lpd/lpr to be able to print as is specified in
> http://www.wonkity.com/~wblock/docs/html/lpdprinting.html
> 
> I read the instructions on the handbook, but it does not specify how
> to use the ip address or specify it to print to it.  How can I set
> this printer up?
> I have setup /etc/printcap with the following:
> 
> lp:\
> :lp=:\
> :sh:\
> :mx#0:\
> :rm=HP_Color_LaserJet_CP4520:\
> :rp=raw:\
> :sd=/var/spool/lpd/lp:\
> :lf=/var/log/lpd-errs:
> 
> but there is no ip adress where the communication can exist.  How can
> I do this?  Do I setup the printer with CUPS?  or can it be done with
> lpr which is what I use with a local HP 1200 printer, but this one is
> a network printer.
> 
> Thanks,
> 
> 
> Antonio

Does the name HP_Color_LaserJet_CP4520 resolve to its IP address?

What about using a FQDN?

Does the name exist in your local DNS zone or does the name exist in 
the local /etc/hosts file?

Either make sure the name is resolvable, or specify the IP address in 
the /etc/printcap file.

Your HP printer should be equipped with a JetDirect card, and you 
should be able to print a configuration page revealing the current 
settings.

If the settings doesn't match your network, then you need to input the 
desired settings. I guess this would be possible through the use of 
the LCD display and the buttons nearby.


Best of luck,
Trond.

-- 
+---++
| Vennlig hilsen,   | Best regards,  |
| Trond Endrestøl,  | Trond Endrestøl,   |
| IT-ansvarlig, | System administrator,  |
| Fagskolen Innlandet,  | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,   | Cellular...: +47 952 62 567,   |
| sentralbord 61 14 54 00.  | Switchboard: +47 61 14 54 00.  |
+---++___
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"

Boot hangs on ZOTAC ZBOX (Via Nano X2)

2013-02-27 Thread G
Hi,

I've got a ZOTAC ZBOX nano VD01
(http://www.zotacusa.com/zbox-nano-vd01.html). The boot process 
(9.1-RELEASE, amd64) hangs after "Timecounters tick every 1.000 msec".
I tried with ACPI off, but it crashes.

Here's a pic with "Verbose" turned on: http://i.imgur.com/DQJkmoV.jpg

I've found this post about adding some PCI ids:
http://www.mavetju.org/mail/view_message.php?list=svn-src-vendor&id=3610911&raw=yes

The box gets mentioned in the list. Has this been been committed to
9.1? Does it have anything to do with the issue at hand?

Finally, tried with 10-CURRENT (amd64-20130105-r245067), no luck.
For what it's worth, here's what it looks like with "verbose" on:
http://i.imgur.com/L938PH2.jpg

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


Re: how to disable bluetooth

2013-02-27 Thread Polytropon
On Mon, 25 Feb 2013 14:56:46 +0100, CeDeROM wrote:
> hey, how can i disable bluetooth in freebsd (9.1)?

Kill it with fire! ;-)



> my device is visible to other devices whethever i switch the radio button,
> also the radio button seems to be the only waynto disable my computer from
> being visible to other devices...
> 
> i hwve tried to disable bluetooth and ubt in loader.conf and various
> serives in rc.conf but still my computer was visible to other devices. i
> dont want it to be visible to other bluetooth computers but still i want to
> have radio switched on to use wifi.

You can try to omit Bluetooth entirely by defining the symbol
WITHOUT_BLUETOOTH=yes in /etc/src.conf and rebuilding your
system (kernel and world). See "man src.conf" for details.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: svn.freebsd.org over https fails

2013-02-27 Thread Nikos Vassiliadis

On 26/2/2013 4:27 πμ, Shane Ambler wrote:

On 26/02/2013 08:39, Nikos Vassiliadis wrote:

Hi,

Since a few weeks connecting to svn.freebsd.org over https fails. Is
this deliberate? It used to work...

Thanks in advance, Nikos


Not sure about it working before but I don't see svn.freebsd.org
responding to https now. The two mirrors do respond to https -
svn0.us-east.freebsd.org
svn0.us-west.freebsd.org

If you don't get the two mirrors responding then you are probably using
openssl from ports? make sure you update to 1.0.1_8 it fixed svn over
https a couple of weeks ago.



Oh thanks.
I didnt realize that svn.freebsd.org was not the recommended one.

Nikos

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

Re: Jail question

2013-02-27 Thread Bernt Hansson

2013-02-26 15:18, Teske, Devin skrev:

Yes, this is possible.

When I get into work, I'll share with you the recipe


Please do share with us.
___
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"