following 9-STABLE but getting 9.1-PRERELEASE

2012-12-31 Thread Marco Beishuizen

Hi,

I'm following the 9-STABLE branch with svn and just updated my system. But 
after booting I noticed that my system is still at 9.1-PRERELEASE, and not 
9.1-STABLE or 9-STABLE.


Does someone know what happened?

Thanks in advance.

Regards,
Marco

--
To get something done, a committee should consist of no more than three
persons, two of them absent.
___
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: following 9-STABLE but getting 9.1-PRERELEASE

2012-12-31 Thread Herbert J. Skuhra
On Mon, 31 Dec 2012 09:42:03 +0100 (CET)
Marco Beishuizen mb...@xs4all.nl wrote:

 Hi,
 
 I'm following the 9-STABLE branch with svn and just updated my
 system. But after booting I noticed that my system is still at
 9.1-PRERELEASE, and not 9.1-STABLE or 9-STABLE.
 
 Does someone know what happened?

Yeah, sys/conf/newvers.sh in stable/9 has not been updated yet.
It will happen...

-- 
Herbert

___
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: following 9-STABLE but getting 9.1-PRERELEASE

2012-12-31 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Mon Dec 31 02:45:09 2012
 Date: Mon, 31 Dec 2012 09:42:03 +0100 (CET)
 From: Marco Beishuizen mb...@xs4all.nl
 To: freebsd-questions@freebsd.org
 Subject: following 9-STABLE but getting 9.1-PRERELEASE

 Hi,

 I'm following the 9-STABLE branch with svn and just updated my system. But 
 after booting I noticed that my system is still at 9.1-PRERELEASE, and not 
 9.1-STABLE or 9-STABLE.


Surely you're not suggesting someone forgot to lock the horse after the stable
escaped?



*groan*


___
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


buffalo wli-uc-gn wireless card sometimes unusable and emit run0: wcid=xx out of range

2012-12-31 Thread Jov
hi  experts:
I think the hardware is ok because I can use it in Win7. And in Freebsd
9.1,it works for sometime,but sometimes after system reboot or I plug out 
plug in the card it my unusable.on the console it emmit:
 run0: wcid=xx out of range where xx is 91,87 and etc.

it seams the wifi is connected because ifconfig wlan0 cmd shows the right
ssid and bssid ,but inet addr is always 0.0.0.0

would you please help me?

-- 
jov
blog: http:amutu.com/blog
___
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


what's wrong with the openbsd-netcat?

2012-12-31 Thread lei yang
Hi experts

On my OS, I run kvm with below comand to do the migrate: it meet below error
1)
#qemu-system-x86_64 --enable-kvm -smp 2 -m 512 -net nic,model=e1000
-net tap,script=/etc/qemu-ifup -hda /boot/guest_img.raw  -kernel
/boot/bzImage -append root=/dev/hda rw console=ttyS0,115200 ip=dhcp
selinux=0 -nographic -incoming exec:nc -l 5200
it print:
nc: Protocol not available
load of migration failed

2)Then I copy the nc binary from redhat, then it works well

can you please help me about this issue?

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


Re: what's wrong with the openbsd-netcat?

2012-12-31 Thread lei yang
Forget to say, My netcat from
http://code.google.com/p/openbsd-netcat/source/checkout

On 12/31/12, lei yang yanglei.f...@gmail.com wrote:
 Hi experts

 On my OS, I run kvm with below comand to do the migrate: it meet below
 error
 1)
 #qemu-system-x86_64 --enable-kvm -smp 2 -m 512 -net nic,model=e1000
 -net tap,script=/etc/qemu-ifup -hda /boot/guest_img.raw  -kernel
 /boot/bzImage -append root=/dev/hda rw console=ttyS0,115200 ip=dhcp
 selinux=0 -nographic -incoming exec:nc -l 5200
 it print:
 nc: Protocol not available
 load of migration failed

 2)Then I copy the nc binary from redhat, then it works well

 can you please help me about this issue?

 Lei

___
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


Optimus VGA support in new release 9.1

2012-12-31 Thread Ashkan Rahmani
hi,
I really want to migrate to FreeBSD for daily usages, Bu my main issue is
my
vga card on my notebook, this is optimus.

any body knows is it supported in this new release?

-- 
King Regards,
Ashkan R  ashkan...@gmail.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Optimus VGA support in new release 9.1

2012-12-31 Thread Matthew Seaman
On 31/12/2012 10:15, Ashkan Rahmani wrote:
 I really want to migrate to FreeBSD for daily usages, Bu my main issue is
 my
 vga card on my notebook, this is optimus.
 
 any body knows is it supported in this new release?

That's an nVidia card.  The FreeBSD version is pretty much irrelevant
here.  What you need to ask is my nVidia card supported by the
x11/nvidia-driver port, or failing that the built-in Xorg nv driver?

If you want 3-D acceleration and all that stuff, then you'll need the
x11/nvidia-driver.

Check the supported products tab on this page:

http://www.nvidia.com/object/freebsd-x86-310.19-driver.html

If your video card isn't there, or you can't recognise it from the part
number, then I'm afraid you're out of luck[*].  Your best resource there
is to ask on one of the nVidia forums.

Cheers,

Matthew

[*] There are other drivers available for various legacy cards: finding
information about these is left as an exercise for the student.

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Using the new C++11 stack on 9.1

2012-12-31 Thread Marcus Karlsson
Hello.

I was very happy when I received the 9.1 announcement in my mailbox,
especially when I read about the inclusion of the new C++11 stack
including LLVM libc++ and libcxxrt. So I decided to test it on a 9.1
system:

clang++ foo.cc -stdlib=libc++

However, the compilation fails:

/usr/bin/ld: cannot find -lc++

It's available in the source tree for 9.1, my assumption is that it's
just not installed by default.

What should I do in order to use it? I have not found much documentation
on it other than it will be the default in 10.

Marcus
___
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: Using the new C++11 stack on 9.1

2012-12-31 Thread Herbert J. Skuhra
On Mon, 31 Dec 2012 11:39:27 +0100
Marcus Karlsson m...@acc.umu.se wrote:

 Hello.
 
 I was very happy when I received the 9.1 announcement in my mailbox,
 especially when I read about the inclusion of the new C++11 stack
 including LLVM libc++ and libcxxrt. So I decided to test it on a 9.1
 system:
 
 clang++ foo.cc -stdlib=libc++
 
 However, the compilation fails:
 
 /usr/bin/ld: cannot find -lc++
 
 It's available in the source tree for 9.1, my assumption is that it's
 just not installed by default.

# echo WITH_LIBCPLUSPLUS=  /etc/src.conf

And rebuilding world/clang.

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


Newbie question about freebsd-update: single user mode is not needed anymore?

2012-12-31 Thread Jose Garcia Juanino
Hi,

I am planning to upgrade from FreeBSD 9.0-RELEASE to
FreeBSD-9.1-RELEASE. With upgrade source method, it is always needed to
do the make installworld step in single user mode. But it seems to
be that single user is not required with freebsd-update method, in the
second freebsd-update install. Someone could explain the reason? Am I
misunderstanding something? Can I run the upgrade enterely by mean a ssh
connection in a safe way, or will I need a serial console?

Best regards, and excuse my poor english.


pgpswn9DndVD_.pgp
Description: PGP signature


Re: Newbie question about freebsd-update: single user mode is not needed anymore?

2012-12-31 Thread Jose Garcia Juanino
El lunes 31 de diciembre a las 16:27:44 CET, ASV escribió:
 Hi Jose,
 
 with the freebsd-update method you don't need to pass through the make
 installworld as it's a binary patch/upgrade system.
 Using freebsd-update upgrade -r 9.1-RELEASE for example allows you to
 get your system patched directly without recompiling the kernel and the
 userland but getting binary patches from the repo and applying these
 directly on your system.
 Check the following page for a more detailed explanation and be aware
 that upgrading your ports/packages is required every time you upgrade
 your kernel to a major version (which would be your case).
 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html
 
 Happy new year.

Thanks for your response.

The freebsd-update upgrade method is:
1- freebsd-update install # will install a new kernel and modules
2- reboot in multi user
3- freebsd-update install # will install new userland
4- reboot in multi user

The src upgrade method is:
1- make installkernel # will install a new kernel
2- reboot in single user
3- make installworld  # will install a new userland
4- reboot in multiuser

I think that the third step is essentially the same in both methods: it
will install a new userland. But the second one require to be ran in
single user, and the first one does not. Why?

My unique concern is that step 2 in freebsd-update method goes
smootly: it will boot kernel in 9.1-RELEASE but userland in 9.0-RELEASE.
If the system hangs giving up the net or other essential service, I will
not be able to reach the computer via ssh.

Regards


pgpbaloy3DIlu.pgp
Description: PGP signature


Re: Optimus VGA support in new release 9.1

2012-12-31 Thread Warren Block

On Mon, 31 Dec 2012, Ashkan Rahmani wrote:


hi,
I really want to migrate to FreeBSD for daily usages, Bu my main issue is
my
vga card on my notebook, this is optimus.

any body knows is it supported in this new release?


If the BIOS allows turning off the NVidia graphics, FreeBSD 9.1 has a 
KMS driver that will support the Intel graphics.

___
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: Another question about pkgng

2012-12-31 Thread Walter Hurry
On Sun, 25 Nov 2012 00:02:51 +, Walter Hurry wrote:

 On Sat, 24 Nov 2012 21:54:50 +, Matthew Seaman wrote:
 
 On 24/11/2012 20:28, Walter Hurry wrote:
 When I issue 'pkg version -R' it does not actually use the remote
 repository for comparison; instead it uses the local cache of the
 remote repository, i.e. it checks local.sqlite against repo.sqlite.
 
 That's fine, but should it not do a 'pkg update' first?
 
 That would be consistent with the way 'pkg upgrade' and 'pkg install'
 behave, so personally I think that would be a yes.
 
 Can you open an issue on Github so this point does not get forgotten
 please?
 
 https://github.com/pkgng/pkgng/issues
 
 Thanks, Matthew. Done - Issue #396
 
Sterling work, Matthew*; thanks for all your efforts.

(* It's fixed in 1.1)

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


Re: changing prompt for user in jail

2012-12-31 Thread Aldis Berjoza


31.12.2012, 18:26, Fbsd8 fb...@a1poweruser.com:

 Them I put the set prompt = # %/  statement in the jail's
 /usr/share/skel/.cshrc and created a different user account
 using the same pw command, still no joy.

Shouldn't that be /etc/skel/.cshrc ?

-- 
Aldis Berjoza
FreeBSD addict
___
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: Bad gpg signature on 9.1 announcement mail?

2012-12-31 Thread grarpamp
This was a local mailer issue. The sig on the release announcement is fine.
___
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: problem after installkernel going from 9.0 to CURRENT

2012-12-31 Thread Robert Huff

On 12/30/2012 7:11 PM, Robert Huff wrote:


It indicates
that the / partition cannot be mounted to continue booting.
Maybe you can interrupt at the boot loader and examine the
mount source for /, or manually set it to be ada0p1?


 I'll try that.


OK - I'm at the part of loader2(?) where it shows:

OK

and wants something of the form

disk partitionpath to bootable kernel

However, the sample format for the partition is

0:ad(0,a)

How do I specify a GPT partition?



Robert Huff


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


Re: changing prompt for user in jail

2012-12-31 Thread Fbsd8

Aldis Berjoza wrote:


31.12.2012, 18:26, Fbsd8 fb...@a1poweruser.com:


Them I put the set prompt = # %/  statement in the jail's
/usr/share/skel/.cshrc and created a different user account
using the same pw command, still no joy.


Shouldn't that be /etc/skel/.cshrc ?



Nope, no such directory as /etc/skel as part of base release.


___
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: Optimus VGA support in new release 9.1

2012-12-31 Thread Sam Fourman Jr.
 If the BIOS allows turning off the NVidia graphics, FreeBSD 9.1 has a KMS
 driver that will support the Intel graphics.


You don't even need bios to support turning off the nvidia card.. im
using a Asus N53SV-XR1
it has a nvidia optimus GT540M..
KMS works for the intel video card. so long as you dont use
packages... you have to compile xorg with
a few settings in your /etc/make.conf
as well as use the xorg intel driver, the vesa driver doesn't work and
will hard lock your system.

these settings go in /etc/make.conf
WITH_NEW_XORG=YES
WITH_KMS=YES


here is my xorg.conf

cat /etc/X11/xorg.conf
Section ServerLayout
Identifier Not X.org Configured
Screen  0  Screen0 0 0
InputDeviceSynaptics_Touchpad AlwaysCore
EndSection

Section Files
ModulePath   /usr/local/lib/xorg/modules
FontPath /usr/local/lib/X11/fonts/webfonts/
FontPath /usr/local/lib/X11/fonts/misc/
FontPath /usr/local/lib/X11/fonts/TTF/
FontPath /usr/local/lib/X11/fonts/OTF
FontPath /usr/local/lib/X11/fonts/Type1/
FontPath /usr/local/lib/X11/fonts/100dpi/
FontPath /usr/local/lib/X11/fonts/75dpi/
FontPath /usr/local/lib/X11/fonts/bitstream-vera/
FontPath /usr/local/lib/X11/fonts/Droid/
FontPath /usr/local/lib/X11/fonts/Liberation/
FontPath /usr/local/lib/X11/fonts/terminus-font/
FontPath /usr/local/lib/X11/fonts/LinLibertineG/
FontPath /usr/local/lib/X11/fonts/anonymous-pro/
FontPath /usr/local/lib/X11/fonts/GentiumBasic/
EndSection

Section Module
Load  dri
Load  freetype
Load  extmod
Load  glx
Load  type1
Load  synaptics
EndSection

Section InputDevice
Identifier Synaptics_Touchpad
Driver Synaptics
Option UseShm true
Option SHMConfig on
Option Protocol psm
Option Device /dev/psm0
Option SendCoreEvents true
Option ZAxisMapping 4 5 6 7
Option FingerLow 26
Option FingerHigh 51
Option FingerPress 254
Option HorizEdgeScroll 1
Option MinSpeed 0.10
Option MaxSpeed 0.20
Option RTCornerButton 2
Option RBCornerButton 3
Option TapButton2 2
Option TapButton3 3
EndSection

Section Device
Identifier  Card0
Driver  intel
VendorName  Intel Corporation
BoardName   Intel nVidia Thingy
BusID   PCI:0:2:0
EndSection

Section Screen
Identifier Screen0
Device Card0
MonitorMonitor0
SubSection Display
Modes 1366x768
Virtual 1366 768
EndSubSection
EndSection


Sam Fourman Jr.
___
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


utility to compare 2 dir trees

2012-12-31 Thread Fbsd8
I want to compare 2 different directory trees to each other to locate 
any differences in directories and files contained there in.


Any suggestions?


___
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: utility to compare 2 dir trees

2012-12-31 Thread Adam Vande More
On Mon, Dec 31, 2012 at 7:23 PM, Fbsd8 fb...@a1poweruser.com wrote:

 I want to compare 2 different directory trees to each other to locate any
 differences in directories and files contained there in.

 Any suggestions?


mtree(8)

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


Re: utility to compare 2 dir trees

2012-12-31 Thread Fbsd8

Adam Vande More wrote:

On Mon, Dec 31, 2012 at 7:23 PM, Fbsd8 fb...@a1poweruser.com wrote:


I want to compare 2 different directory trees to each other to locate any
differences in directories and files contained there in.

Any suggestions?



mtree(8)




From the man page I don't see how to code mtree to compare 2 different 
directory trees against each other.

___
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: utility to compare 2 dir trees

2012-12-31 Thread Erich Dollansky
Hi,

On Mon, 31 Dec 2012 20:45:39 -0500
Fbsd8 fb...@a1poweruser.com wrote:

 Adam Vande More wrote:
  On Mon, Dec 31, 2012 at 7:23 PM, Fbsd8 fb...@a1poweruser.com
  wrote:
  
  I want to compare 2 different directory trees to each other to
  locate any differences in directories and files contained there in.
 
  Any suggestions?
 
  
  mtree(8)
  
 
 
  From the man page I don't see how to code mtree to compare 2
 different directory trees against each other.

you can compare a directory tree which is rooted in your current
directory and a specified one.

From man:

The mtree utility compares the file hierarchy rooted in the current
directory against a specification read from the standard input.
Messages are written to the standard output for any files whose
characteristics do not match the specifications, or which are missing
from either the file hierarchy or the specification.

Erich
 ___
 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: changing prompt for user in jail

2012-12-31 Thread Polytropon
On Mon, 31 Dec 2012 11:25:38 -0500, Fbsd8 wrote:
 Now when I login to the jail over remote ssh to the just created user 
 account I get the % prompt, then su to root and get the
 set prompt = # %/ .
 I want that same prompt for all user I create in the jail.

Each user you add will have predefined dot files copied
into his ~ directory. Those are obtained from /usr/share/skel.
In order to make global settings available to all users,
you have to do two things:

1st: Make sure (e. g. by removing the template or changing
 its content, commenting out or deleting lines) that they
 won't receive the predefined dot file from the skel/
 subdirectory.

2nd: Make your change global in /etc/csh.cshrc.

If you want root to participate, make sure /root/.cshrc
does not define the following (or similar):

set promptchars = %#
set prompt = %n@%m:%~%# 

This will give you a standard UNIX prompt which will automatically
add # for root and % for non-root as prompt character, as well as
display the username, the hostname, and the working directory.

Similarly to the approach mentioned, you can globalize the
C shell's login and logout files: /etc/csh.login and /etc/csh.logout
vs. ~/.login and ~/.logout (from /usr/share/skel/dot.login and
/usr/share/skel/dot.logout).

If users wish to override settings, they can do that in their
home directory's dot files.



 I tried putting the set prompt = # %/  statement in the jail user 
 account /home/test/.cshrc file log out and back in to no effect.

This is strange. Can you interactively change the prompt?



 Them I put the set prompt = # %/  statement in the jail's
 /usr/share/skel/.cshrc and created a different user account
 using the same pw command, still no joy.

Maybe there's some relation to global files in /etc?

But note: The files in /usr/share/skel have special names!
If you want to create .cshrc, the name of the template
must be dot.cshrc (literally 'd' 'o' 't' dot cshrc).
The templates in this directory should already have this
pattern.



 Then I just added the  set prompt = # %/  statement in the jail's
 /etc/csh.cshrc and created new jail user account and still no joy.
 
 I even tried putting the set prompt = # %/  statement as the last
 line in the files so it was out side of any if statements with no joy.

If the shells invoked are login shells, you can add commands
to the .login files; note that only interactive login shells
will read them.



 No matter what I do to the config of the jail files it makes no 
 difference when I use ssh to login to the jail user account.
 
 Anyone have any idea what I any doing wrong?
 
 Or is this just now jails work?

It should at least work on normal level.



-- 
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: utility to compare 2 dir trees

2012-12-31 Thread Fbsd8

Erich Dollansky wrote:

Hi,

On Mon, 31 Dec 2012 20:45:39 -0500
Fbsd8 fb...@a1poweruser.com wrote:


Adam Vande More wrote:

On Mon, Dec 31, 2012 at 7:23 PM, Fbsd8 fb...@a1poweruser.com
wrote:


I want to compare 2 different directory trees to each other to
locate any differences in directories and files contained there in.

Any suggestions?


mtree(8)



 From the man page I don't see how to code mtree to compare 2
different directory trees against each other.


you can compare a directory tree which is rooted in your current
directory and a specified one.

From man:

The mtree utility compares the file hierarchy rooted in the current
directory against a specification read from the standard input.
Messages are written to the standard output for any files whose
characteristics do not match the specifications, or which are missing
from either the file hierarchy or the specification.

Erich




So
cd dir-tree1
mtree -p dir-tree2

Do I understand you correctly?

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


Re: changing prompt for user in jail

2012-12-31 Thread Polytropon
On Mon, 31 Dec 2012 12:29:44 -0500, Fbsd8 wrote:
 Aldis Berjoza wrote:
  
  31.12.2012, 18:26, Fbsd8 fb...@a1poweruser.com:
  
  Them I put the set prompt = # %/  statement in the jail's
  /usr/share/skel/.cshrc and created a different user account
  using the same pw command, still no joy.
  
  Shouldn't that be /etc/skel/.cshrc ?
  
 
 Nope, no such directory as /etc/skel as part of base release.

It might be a symlink to /usr/share/skel which is the
standard location, as described in man hier:

/usr/   contains the majority of user utilities and applications
share/  architecture-independent files
skel/   example . (dot) files for new accounts



-- 
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: utility to compare 2 dir trees

2012-12-31 Thread Fbsd8

Fbsd8 wrote:

Erich Dollansky wrote:

Hi,

On Mon, 31 Dec 2012 20:45:39 -0500
Fbsd8 fb...@a1poweruser.com wrote:


Adam Vande More wrote:

On Mon, Dec 31, 2012 at 7:23 PM, Fbsd8 fb...@a1poweruser.com
wrote:


I want to compare 2 different directory trees to each other to
locate any differences in directories and files contained there in.

Any suggestions?


mtree(8)



 From the man page I don't see how to code mtree to compare 2
different directory trees against each other.


you can compare a directory tree which is rooted in your current
directory and a specified one.

From man:

The mtree utility compares the file hierarchy rooted in the current
directory against a specification read from the standard input.
Messages are written to the standard output for any files whose
characteristics do not match the specifications, or which are missing
from either the file hierarchy or the specification.

Erich




So
cd dir-tree1
mtree -p dir-tree2

Do I understand you correctly?


ended up trying
cd dir-tree1
mtree -c | mtree -p dir-tree2

Now this seems like it worked, except every thing was flagged for 
non-matching modification time. How do I tell it to not check 
modification time?


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


Re: utility to compare 2 dir trees

2012-12-31 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Mon Dec 31 19:26:37 2012
 Date: Mon, 31 Dec 2012 20:23:33 -0500
 From: Fbsd8 fb...@a1poweruser.com
 To: FreeBSD Questions freebsd-questions@freebsd.org
 Subject: utility to compare  2 dir trees

 I want to compare 2 different directory trees to each other to locate 
 any differences in directories and files contained there in.

 Any suggestions?

'man diff'



___
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: buffalo wli-uc-gn wireless card sometimes unusable and emit run0: wcid=xx out of range

2012-12-31 Thread PseudoCylon
 Message: 13
 Date: Mon, 31 Dec 2012 18:11:04 +0800
 From: Jov zhao6...@gmail.com
 To: freebsd-questions@freebsd.org
 Subject: buffalo wli-uc-gn wireless card sometimes unusable and emit
 run0: wcid=xx out of range
 Message-ID:
 cadyruxprp6os2mpk51yiwog-jkwtq+xpop48uzq+y15_our...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1

 hi  experts:
 I think the hardware is ok because I can use it in Win7. And in Freebsd
 9.1,it works for sometime,but sometimes after system reboot or I plug out 
 plug in the card it my unusable.on the console it emmit:
  run0: wcid=xx out of range where xx is 91,87 and etc.

Please try attached patch.

Reboot or re-plug-in shouldn't be a cause of the problem. Receiving an
association ID larger than device's max (64) is the problem. You must
be using a high-end AP. Reboot or re-plug-in initiate re-association
and just happen to receive a large association ID.


AK


--begin patch--

diff --git a/dev/usb/wlan/if_run.c b/dev/usb/wlan/if_run.c
index 3d2577f..ed11d97 100644
--- a/dev/usb/wlan/if_run.c
+++ b/dev/usb/wlan/if_run.c
@@ -2019,7 +2019,8 @@ run_key_set_cb(void *arg)
wcid = 0;   /* NB: update WCID0 for group keys */
base = RT2860_SKEY(RUN_VAP(vap)-rvp_id, k-wk_keyix);
} else {
-   wcid = RUN_AID2WCID(associd);
+   wcid = (vap-iv_opmode == IEEE80211_M_STA) ?
+   1 : RUN_AID2WCID(associd);
base = RT2860_PKEY(wcid);
}

@@ -2374,9 +2375,12 @@ run_newassoc(struct ieee80211_node *ni, int isnew)
struct run_softc *sc = ic-ic_ifp-if_softc;
uint8_t rate;
uint8_t ridx;
-   uint8_t wcid = RUN_AID2WCID(ni-ni_associd);
+   uint8_t wcid;
int i, j;

+   wcid = (vap-iv_opmode == IEEE80211_M_STA) ?
+   1 : RUN_AID2WCID(ni-ni_associd);
+
if (wcid  RT2870_WCID_MAX) {
device_printf(sc-sc_dev, wcid=%d out of range\n, wcid);
return;
@@ -3044,8 +3048,12 @@ run_tx(struct run_softc *sc, struct mbuf *m,
struct ieee80211_node *ni)
txd-flags = qflags;
txwi = (struct rt2860_txwi *)(txd + 1);
txwi-xflags = xflags;
-   txwi-wcid = IEEE80211_IS_MULTICAST(wh-i_addr1) ?
-   0 : RUN_AID2WCID(ni-ni_associd);
+   if (IEEE80211_IS_MULTICAST(wh-i_addr1))
+   txwi-wcid = 0;
+   else {
+   txwi-wcid = (vap-iv_opmode == IEEE80211_M_STA) ?
+   1 : RUN_AID2WCID(ni-ni_associd);
+   }
/* clear leftover garbage bits */
txwi-flags = 0;
txwi-txop = 0;
___
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: buffalo wli-uc-gn wireless card sometimes unusable and emit run0: wcid=xx out of range

2012-12-31 Thread Jov
thanks very much,i will try the patch.

jov
在 2013-1-1 下午1:19,PseudoCylon moonlightak...@yahoo.ca写道:

  Message: 13
  Date: Mon, 31 Dec 2012 18:11:04 +0800
  From: Jov zhao6...@gmail.com
  To: freebsd-questions@freebsd.org
  Subject: buffalo wli-uc-gn wireless card sometimes unusable and emit
  run0: wcid=xx out of range
  Message-ID:
  
 cadyruxprp6os2mpk51yiwog-jkwtq+xpop48uzq+y15_our...@mail.gmail.com
  Content-Type: text/plain; charset=ISO-8859-1
 
  hi  experts:
  I think the hardware is ok because I can use it in Win7. And in Freebsd
  9.1,it works for sometime,but sometimes after system reboot or I plug
 out 
  plug in the card it my unusable.on the console it emmit:
   run0: wcid=xx out of range where xx is 91,87 and etc.

 Please try attached patch.

 Reboot or re-plug-in shouldn't be a cause of the problem. Receiving an
 association ID larger than device's max (64) is the problem. You must
 be using a high-end AP. Reboot or re-plug-in initiate re-association
 and just happen to receive a large association ID.


 AK


 --begin patch--

 diff --git a/dev/usb/wlan/if_run.c b/dev/usb/wlan/if_run.c
 index 3d2577f..ed11d97 100644
 --- a/dev/usb/wlan/if_run.c
 +++ b/dev/usb/wlan/if_run.c
 @@ -2019,7 +2019,8 @@ run_key_set_cb(void *arg)
 wcid = 0;   /* NB: update WCID0 for group keys */
 base = RT2860_SKEY(RUN_VAP(vap)-rvp_id, k-wk_keyix);
 } else {
 -   wcid = RUN_AID2WCID(associd);
 +   wcid = (vap-iv_opmode == IEEE80211_M_STA) ?
 +   1 : RUN_AID2WCID(associd);
 base = RT2860_PKEY(wcid);
 }

 @@ -2374,9 +2375,12 @@ run_newassoc(struct ieee80211_node *ni, int isnew)
 struct run_softc *sc = ic-ic_ifp-if_softc;
 uint8_t rate;
 uint8_t ridx;
 -   uint8_t wcid = RUN_AID2WCID(ni-ni_associd);
 +   uint8_t wcid;
 int i, j;

 +   wcid = (vap-iv_opmode == IEEE80211_M_STA) ?
 +   1 : RUN_AID2WCID(ni-ni_associd);
 +
 if (wcid  RT2870_WCID_MAX) {
 device_printf(sc-sc_dev, wcid=%d out of range\n, wcid);
 return;
 @@ -3044,8 +3048,12 @@ run_tx(struct run_softc *sc, struct mbuf *m,
 struct ieee80211_node *ni)
 txd-flags = qflags;
 txwi = (struct rt2860_txwi *)(txd + 1);
 txwi-xflags = xflags;
 -   txwi-wcid = IEEE80211_IS_MULTICAST(wh-i_addr1) ?
 -   0 : RUN_AID2WCID(ni-ni_associd);
 +   if (IEEE80211_IS_MULTICAST(wh-i_addr1))
 +   txwi-wcid = 0;
 +   else {
 +   txwi-wcid = (vap-iv_opmode == IEEE80211_M_STA) ?
 +   1 : RUN_AID2WCID(ni-ni_associd);
 +   }
 /* clear leftover garbage bits */
 txwi-flags = 0;
 txwi-txop = 0;

___
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: utility to compare 2 dir trees

2012-12-31 Thread Matthew Seaman
On 01/01/2013 01:23, Fbsd8 wrote:
 I want to compare 2 different directory trees to each other to locate
 any differences in directories and files contained there in.
 
 Any suggestions?

diff -ru directory1 directory2

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature