Fast question abount EDITOR

2012-04-05 Thread Andrea Venturoli

Hello.

This might be a stupid question... however...

%setenv EDITOR emacs -nw
setenv: Too many arguments.

%setenv  EDITOR emacs -nw
%crontab -e
crontab: emacs -nw: No such file or directory
crontab: emacs -nw exited with status 1


Is there a way I can easily achieve the above?
Do I really need a script which in turns call emacs -nw?

 bye  Thanks
av.
___
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 is the path of kernel build directory?

2012-04-05 Thread saeedeh motlagh
hello guys
i want to install the openvswitch 1.4.0 from a linux package. the below
command should be executed:
./configure --with-linux=/lib/modules/'uname -r '/build
this is a linux command and i should execute the FreeBSD equivalent but i
don't know how to do that. the manual says:

   To build the Linux kernel module, so that you can run the
   kernel-based switch, pass the location of the kernel build
   directory on --with-linux.

what is kernel build directory in FreeBSD9 amd64? or how i should execute
this command?

yours,
___
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


Links the command line browser

2012-04-05 Thread Fbsd8
My mouse works as expected for copy and paste function on the xterm 
console. But when I launch the links command line browser the mouse 
pointer is OVER active. I move the mouse a hair and the pointer on the 
links browser screen moves 2 inches. Is there some way in links to 
control the mouse pointer sensitivity?

___
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


order of source_dirs in cp(1)

2012-04-05 Thread Matthias Apitz

Hello,

I was doing

$ cp -Rv 10 11 12 13 14 15 16 17 2 /mnt/osm

and was surprised seeing that source_dir 17 was done before 16; the man
page does not specify the order, but I was thinking it just goes through
the list in the given order...

Why this is done this way?

Thanks

matthias
-- 
Matthias Apitz
e g...@unixarea.de - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5
___
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: Fast question abount EDITOR

2012-04-05 Thread Polytropon
On Thu, 05 Apr 2012 08:57:55 +0200, Andrea Venturoli wrote:
 Hello.
 
 This might be a stupid question... however...
 
 %setenv EDITOR emacs -nw
 setenv: Too many arguments.
 
 %setenv  EDITOR emacs -nw
 %crontab -e
 crontab: emacs -nw: No such file or directory
 crontab: emacs -nw exited with status 1
 
 
 Is there a way I can easily achieve the above?
 Do I really need a script which in turns call emacs -nw?

According to crontab's source, the editor is invoked
by an execlp() call, usr/src/usr.sbin/cron/crontab/crontab.c
in line 404:

execlp(editor, editor, Filename, (char *)NULL);

The synopsis of this function can be found in man 3 exec:

int execlp(const char *file, const char *arg, ... /*, (char *)0 */);

The manpage contains this information:

The initial argument for these functions is the pathname
of a file which is to be executed.

and:

The first argument, by convention, should point to
the file name associated with the file being executed.

as well as:

The functions execlp(), execvp(), and execvP() will
duplicate the actions of the shell in searching for
an executable file if the specified file name does
not contain a slash ``/'' character.  For execlp()
and execvp(), search path is the path specified in
the environment by ``PATH'' variable.  If this
variable is not specified, the default path is set
according to the _PATH_DEFPATH definition in paths.h,
which is set to ``/usr/bin:/bin''.

That means that $EDITOR has to contain the file name of the
editor (as its location will be determined automatically).
When options are added, this requirement isn't met anymore.
This seems to imply that you cannot use an alias - you'd
have to provide a script as you initially did assume. :-(



-- 
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: Fast question abount EDITOR

2012-04-05 Thread Robert Bonomi

Andrea Venturoli wrote:

 Hello.

 This might be a stupid question... however...

 %setenv EDITOR emacs -nw
 setenv: Too many arguments.

 %setenv  EDITOR emacs -nw
 %crontab -e
 crontab: emacs -nw: No such file or directory
 crontab: emacs -nw exited with status 1


 Is there a way I can easily achieve the above?

Not 'directly', the EDITOR variable has to be the name of an _executable_,
it is passed to exec and friends, as the executable to load.

There -may- be annother environment variable that emacs _itself_ looks
at for start-up switch settings,  (the 'minimal' manpage I have access to
doesn't mention any, but I'm _not_ an emacs user and don'k have full docs
available)

If all else fails, put the 'command' equivelent of '-nw' in your emacs
start-up file.

 Do I really need a script which in turns call emacs -nw?

Authoritative answer: 'maybe'. grin

See above for some 'possible' alternatives.

cite
  classic advice concerning the 'fine manual'
/cite
___
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 is the path of kernel build directory?

2012-04-05 Thread Jason Hellenthal

/usr/obj/usr/src/sys/KERNELNAMEHERE/

The handbook has a very clear section on this.

Good luck.

On Thu, Apr 05, 2012 at 12:21:18AM -0700, saeedeh motlagh wrote:
 hello guys
 i want to install the openvswitch 1.4.0 from a linux package. the below
 command should be executed:
 ./configure --with-linux=/lib/modules/'uname -r '/build
 this is a linux command and i should execute the FreeBSD equivalent but i
 don't know how to do that. the manual says:
 
To build the Linux kernel module, so that you can run the
kernel-based switch, pass the location of the kernel build
directory on --with-linux.
 
 what is kernel build directory in FreeBSD9 amd64? or how i should execute
 this command?
 
 yours,
 ___
 freebsd-...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-net
 To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org

-- 
;s =;
___
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 is the path of kernel build directory?

2012-04-05 Thread Robert Bonomi

saeedeh motlagh saeedeh.motl...@gmail.com wrote:

 hello guys
 i want to install the openvswitch 1.4.0 from a linux package. the below
 command should be executed:
 ./configure --with-linux=/lib/modules/'uname -r '/build
 this is a linux command and i should execute the FreeBSD equivalent but i
 don't know how to do that. the manual says:

To build the Linux kernel module, so that you can run the
kernel-based switch, pass the location of the kernel build
directory on --with-linux.

 what is kernel build directory in FreeBSD9 amd64? or how i should execute
 this command?

If you have to ask, you should *NOT* attempt to build this kernel module
on FreeBSD.

The kernel, kernel interfaes, etc. are *DIFFERENT* between Linux and FreeBSD.
signficicant sourte-code changes will VERY PROBABLY be require to get 
the module to (a) compile, and (b) run, in a FreeBSD environment.

To do _that_ -- modifying the sources -- 'where the build directory is' is 
a very _minor_ incidental piece of knowlege.  If you don't have that 
incidental knowledge, is is virtually certain, you don't have the skill set
to do the required source modifications.

Executive summary -- this is a DDT issue.


DDT == Don't Do That!!


___
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: Fast question abount EDITOR

2012-04-05 Thread John Levine
 Do I really need a script which in turns call emacs -nw?
Authoritative answer: 'maybe'. grin

There may be an alternative to the obvious one line shell script, but
that's what one line shell scripts are for.  One of the strengths of
Unix is that its design encourages people to solve problems by
composing existing tools rather than by adding ever more options to
every program.

R's,
John

PS: I realize that over the decades we have strayed somewhat from this ideal.
___
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


Gtk-Message: Failed to load module gnomesegvhandler after upgrade from 8.2 - 9.0

2012-04-05 Thread Scott Ballantyne
Hi,

I just upgraded from 8.2 - 9.0 using freebsd-update, my first time
for the binary upgrade.  Since the upgrade, I've been getting these
unable to load gnomesegvhandler messages from various software, such
as emacs. 

Any idea what I can do to fix his?

The upgrade went fairly smoothly, although freebsd-update deleted more
stuff than it should. I had to nuke my ports tree, and install
compat8x and all the ports from scratch.  I doubt this had anything to
do with my problem, just mentioning for the sake of completeness.

Thanks for any help,
Scott
-- 
s...@ssr.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


Problem installing bind in jail

2012-04-05 Thread bsd
Hi, 

I have followed the tutorial provided in 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-application.html
I have now five jails up and running and I am very happy with the system. 

One of my jail is acting as an important DNS server and It needs to be up to 
date. 

I have decided to recompile bind in the latest version and I am running into a 
problem which is caused by bind port not following the FreeBSD requisites and 
trying to install things in /usr/include/isc 


making all in /s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/x86_32
making all in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/x86_32/include
making all in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/x86_32/include/isc
making install in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include
making all in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include/isc
making install in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include/isc
/bin/sh ../../../../mkinstalldirs /usr/include/isc
mkdir /usr/include/isc
mkdir: /usr/include/isc: Read-only file system
*** Error code 1

Stop in /s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include/isc.
[…] 



I am not certain of the path I should take to solve this issue… 
Most probably I should simlink from the RO part of the system to the RW… but I 
am not 100% sure how to proceed. 


Why is ISC trying to setup things in this location and not on 
/usr/local/include/ ? 


I think I would need to simlink from the RO portion of the system 
/usr/include/isc to /usr/local/include/isc but I am not certain how to proceed. 



Thanks for your help. 

G.B. 


––
- Grégory Bernard Director -
--- www.osnet.eu ---
-- Your provider of OpenSource appliances --
––
OSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetO

___
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 9.0 and cdrecord

2012-04-05 Thread Fbsd8
Since the device name change for cdrom drives in 9.0 the burncd command 
no longer functions. I installed the cdrtools package pkg_add -r 
cdrtools on my 9.0 box, got cdrtools-3.00_1. Every time I use cdrecord 
command I get error message
The unit seems to be hung and needs power cycling. It will mount ok 
using the mount command.


I found in the questions archives poster saying to use the development 
port version and not any package version. Also says that 
atapicam_load=YES has to be added to /boot/loader.conf.


Since all those archive posts are over 3 years old I am confused on what 
is the 9.0 procedure, (IE: is the 9.0 pkg any good? which port version 
is complete? Does atapicam_load=YES still have to be added to 
/boot/loader.conf?

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


Re: Freebsd 9.0 and cdrecord

2012-04-05 Thread jb
Fbsd8 fbsd8 at a1poweruser.com writes:

 ... 
 Since all those archive posts are over 3 years old I am confused on what 
 is the 9.0 procedure, (IE: is the 9.0 pkg any good? which port version 
 is complete? Does atapicam_load=YES still have to be added to 
 /boot/loader.conf?
 ...

When in doubt or trouble, go for the latest port cdrtools-3.00_2 .
Also, do not include atapicam_load=YES as it may conflict with SCSI generic
drivers.

First, update your ports collection tree with 'portsnap'.

Then compile cdrtools port - if OK, then remove its package, and then install
the port.

Next, see what cdrecord discovers (your CD ROM drive):
# cdrecord -scanbus

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: Links the command line browser

2012-04-05 Thread Chad Perrin
On Thu, Apr 05, 2012 at 09:33:43AM -0400, Fbsd8 wrote:
 My mouse works as expected for copy and paste function on the xterm
 console. But when I launch the links command line browser the
 mouse pointer is OVER active. I move the mouse a hair and the
 pointer on the links browser screen moves 2 inches. Is there some
 way in links to control the mouse pointer sensitivity?

I haven't used links in a long time, so I'm not sure, but it sounds
like there is.

You may want to have a look at other console based browsers as
alternatives, if links does not behave as you prefer.  Have you tried
w3m or one of its enhanced brethren?

/usr/ports/www/w3m
/usr/ports/www/w3m-img
/usr/ports/www/w3m-m17n
/usr/ports/www/w3m-m17n-img

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.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: Links the command line browser

2012-04-05 Thread Peter Vereshagin
Hello.

2012/04/05 09:33:43 -0400 Fbsd8 fb...@a1poweruser.com = To FreeBSD Questions 
:
F My mouse works as expected for copy and paste function on the xterm 
F console. But when I launch the links command line browser the mouse 
F pointer is OVER active. I move the mouse a hair and the pointer on the 
F links browser screen moves 2 inches. Is there some way in links to 
F control the mouse pointer sensitivity?

If you use www/links port from X11 then you may want to use the '-g' switch for
it. It makes the links to launch in a separate x11 window without (well...
mostly) problems with mouse pointer.

Of course you are welcome to try the www/links-hacked port especially if that
is your case.

Anyway www/elinks port possess far more features for ttyvX/xterm than
www/links, it's a rather nice tool, too.

--
Peter Vereshagin pe...@vereshagin.org (http://vereshagin.org) pgp: A0E26627 
___
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 installing bind in jail

2012-04-05 Thread Matthew Seaman
On 05/04/2012 18:24, bsd wrote:
 I have decided to recompile bind in the latest version and I am
 running into a problem which is caused by bind port not following the
 FreeBSD requisites and trying to install things in /usr/include/isc

What on earth gives you the idea that dns/bind98 doesn't conform to
hier(7)?  The bind ports are all installing stuff correctly: the only
files that get installed in an 'isc' or 'isccc' sub-directory are
c-language header files.  That's perfectly legal according to the rules.
 No problem there.

I suggest turning off the REPLACE_BASE option in the port.  You really
don't need it -- install as normal under /usr/local (which I guess
should fix the writablity problems).  Then all you need to enable the
ports version of named is to put the following in /etc/rc.conf:

  named_enable=YES
  named_program=/usr/local/sbin/named

That's it.  You can now start up the ports version of named by:

  /etc/rc.d/named start

The bind port creates symlinks for named.conf, rndc.conf and rndc.key in
/usr/local/etc so you can control the ports version of bind in the usual
way using rndc(8).  (Well, assuming you've set up /etc/namedb/named.conf
properly.)

Cheers,

Matthew

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




signature.asc
Description: OpenPGP digital signature


Re: Problem installing bind in jail

2012-04-05 Thread Da Rock

On 04/06/12 03:24, bsd wrote:

Hi,

I have followed the tutorial provided in 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-application.html
I have now five jails up and running and I am very happy with the system.

One of my jail is acting as an important DNS server and It needs to be up to 
date.

I have decided to recompile bind in the latest version and I am running into a 
problem which is caused by bind port not following the FreeBSD requisites and 
trying to install things in /usr/include/isc


making all in /s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/x86_32
making all in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/x86_32/include
making all in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/x86_32/include/isc
making install in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include
making all in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include/isc
making install in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include/isc
/bin/sh ../../../../mkinstalldirs /usr/include/isc
mkdir /usr/include/isc
mkdir: /usr/include/isc: Read-only file system
*** Error code 1

Stop in /s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include/isc.
[…]



I am not certain of the path I should take to solve this issue…
Most probably I should simlink from the RO part of the system to the RW… but I 
am not 100% sure how to proceed.


Why is ISC trying to setup things in this location and not on 
/usr/local/include/ ?


I think I would need to simlink from the RO portion of the system 
/usr/include/isc to /usr/local/include/isc but I am not certain how to proceed.
Assuming your replacing the base version, you cannot use symlinks but 
you can use a nullfs mount. You can make any part RW this way as long as 
its a directory.


As Matthew pointed out, all is in order here. No rule breaks happening... :)
___
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 is the path of kernel build directory?

2012-04-05 Thread Da Rock

On 04/05/12 17:21, saeedeh motlagh wrote:

hello guys
i want to install the openvswitch 1.4.0 from a linux package. the below
command should be executed:
./configure --with-linux=/lib/modules/'uname -r '/build
this is a linux command and i should execute the FreeBSD equivalent but i
don't know how to do that. the manual says:

To build the Linux kernel module, so that you can run the
kernel-based switch, pass the location of the kernel build
directory on --with-linux.

what is kernel build directory in FreeBSD9 amd64? or how i should execute
this command?


This isn't going to work the way you think, as has been pointed out: 
This is _not_ linux. Its better... :)


The good news is that FreeBSD can run linux programs and some other 
features (such as some modules), so you might want to try the emulation@ 
list where the linuxulator gurus hang out to get help building this.

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