CSH prompt

2012-05-13 Thread Jos Chrispijn

In cshell I use this prompt: set prompt = "%B[%@]%b %m[%/]> "
The problem I face now is that if I use this prompt with symbolic links, 
the presented location is displaying the symbolic link rather than the 
real directory name.

Is there a way of preventin this?

thanks,
Jos Chrispijn

-- Artificial intelligence is no match for natural stupidity...
___
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: CSH prompt

2012-05-13 Thread Polytropon
On Sun, 13 May 2012 14:56:31 +0200, Jos Chrispijn wrote:
> In cshell I use this prompt: set prompt = "%B[%@]%b %m[%/]> "
> The problem I face now is that if I use this prompt with symbolic links, 
> the presented location is displaying the symbolic link rather than the 
> real directory name.
> Is there a way of preventin this?

Yes, a very ugly way which I just found out:

alias precmd 'set WD=`pwd`; set prompt = "%B[%@]%b %m[$WD]> "'

Example:

[3:21pm] r56[/]> cd /sys
[3:21pm] r56[/usr/src/sys]> _

It redefines the whole prompt at any command that could
affect the current working directory (not only "cd" can
do that). This is needed as any call to `pwd` stored into
a variable will only affect $prompt once - this is when
it's set, only at this time $WD would be evaluated. So
that's why this strange command. :-)

Oh, and I just improved it. How about this?

alias precmd 'set prompt = "%B[%@]%b %m[`pwd`]> "'

Much better. :-)



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


Wine-fbsd64 updated to 1.5.4 (32bit Wine for 64bit FreeBSD)

2012-05-13 Thread David Naylor
Hi,

Packages [1] for wine-fbsd64-1.5.4 have been uploaded to mediafire [2].  The 
packages for FreeBSD 10 use the pkgng* [3] format.  

There are many reports that wine does not work with a clang compiled world
(help in fixing this problem is appreciated as it affects quite a few users).

The patch [4] for nVidia users is now included in the package and is run on
installation (if the relevant files are accessible).  Please read the
installation messages for further information.

Regards,

David

[1]
 MD5 (wine-1.5.x-freebsd8/wine-fbsd64-1.5.4,1.tbz) = 
4fe4310bb941cb151c3d9cba719342db
 MD5 (wine-1.5.x-freebsd9/wine-fbsd64-1.5.4,1.txz) = 
6f224419362e1c75ce7fc799e3038b00
 MD5 (wine-1.5.x-freebsd10/wine-fbsd64-1.5.4,1.txz) = 
fdb9db7a3d54daa9c9437d813b01592c
[2] http://www.mediafire.com/wine_fbsd64
[3] http://wiki.freebsd.org/pkgng
[4] The patch is located at /usr/local/share/wine/patch-nvidia.sh
[*] To install the port first fix the arch tag use the 'fix-arch.sh' script 
from mediafire [2]


signature.asc
Description: This is a digitally signed message part.


avrdude and arduino

2012-05-13 Thread Colin Barnabas
Has anyone been able to get the Arduino Uno board working with
avrdude? I keep getting programmer not responding errors.

avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding


This is the command I'm using:

%sudo avrdude -F -v -v -v -v -c arduino -p ATMEGA328P -P /dev/cuaU0 -U 
flash:w:flash.hex

Any suggestions would be much appreciated.


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


Building FreeBSD to install or update in two DESTDIRs

2012-05-13 Thread Thomas Mueller
I would like to build FreeBSD to install in two places: regular hard drive and 
also on a USB stick, probably 8 GB.

USB stick install would be for backup, in case something goes awry with a later 
update, then I have something to fall back on; could also install tools such as 
gdisk to use on hard drive.

I tried make installkernel and make installworld, but those didn't fully work 
right the second time, with DESTDIR=/mnt (USB stick main partition).

/usr/src/UPDATING doesn't say how to update for two DESTDIRs on the same build.

Update (from 9.0_RELEASE amd64 to STABLE) was successful on main, hard-drive 
installation.  I had spontaneous reboots at times of inactivity, without 
cleanly umounting file systems, under the release, but upgrading to STABLE 
fixed that.

I also want to build the same 9.0_STABLE to install on a 16 GB USB stick, which 
could be used on my older computer, but this would be i386 version; I could 
also use it on new computer for 32-bit compatibility needed for emulators/wine 
(but not doscmd, I tried that and didn't like it.). I can't do this on old 
computer from FreeBSD 8.2 because of shortage of disk space and only 256 MB RAM.

I could do that either concurrently (how?) or after the amd64 update.

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


epson all in one

2012-05-13 Thread ajtiM
Hi!

My got a new Epson WorkForce 545 which I connected through router and it works 
for her but...
Does anyone has experience with Epson ALL IN ONE printers on FreeBSD, please?

Thanks in advance.

Mitja

http://jpgmag.com/people/lumiwa
___
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: epson all in one

2012-05-13 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org  Sun May 13 17:40:24 2012
> From: ajtiM 
> To: freebsd-questions@freebsd.org
> Date: Sun, 13 May 2012 17:38:19 -0500
> Subject: epson all in one
>
> Hi!
>
> My got a new Epson WorkForce 545 which I connected through router and it 
> works 
> for her but...
> Does anyone has experience with Epson ALL IN ONE printers on FreeBSD, please?

Some Epson 'ALL IN ONE' printers, 'just work'.  Others don't.

The one you have is, unfortuntely, in the latter category.

It uses a 'new' (apparently invented in 2005) _proprietary_ method for
communicating 'rasterized' images of page content to many of their dumb
'wimprinters', called "ESC/P-R".  Epson has a list of which of their 
printers use this protocol -- I'm not sure if it is _all_ the models they
offer, or not.  Given that they published a list (apparently not updated
since 2010), of modelssthat -do- use it, it would seem to be a reasonable
conclusion that _not_ all 'recent' models do.

Epson has a development kit, for writing ESC/P-Rdrivers.  see;
  

That page claims the library is portable to Linux in many variations -- so
it should be portable to FreeBSD with relatively minor effort.  For 'network'
printing, it just needs the Berkeley 'sockets' API.

The bad news, it requires an NDA to get access to the library,
*AND* it appears you cannot provide what you develop to others  -- Quote:
 
 "To use the ESC/P-R Library for development, an NDA agreement is necessary. 
  Epson will provide the ESC/P-R Library free of charge once the agreement 
  has been finalized.

  To use the ESC/P-R Library for actual commercialization, a license 
  agreement will be necessary."

Reading 'between the lines' on the ESC/P-R library, it is a 'standardized'
means of communicating with many/most of Epson's newer generation of
"winprinters".  The *host-based* driver has to _rasterize_ (convert from 
'text'/PS/PCL to a bitmap image for transmission to the printer) the page 
content before sending the bitmap to the printer.

Given that, the 'easiest' way out would be to write a 'device driver'
for Ghostscript, where Ghostscript did all the 'rendering' smarts, and
just called the driver to transmit the bitmap to the winprinter..



When shopping for a printer to use with any sort of a Unix-based (including 
Lunix and *BSD) system it is a GOOD IDEA(tm) to make sure that the printer
meets at least one of the following three criteria:
  1) supports the H-P developed 'PCL' printer language (And HPGL, the graphics
 language that is part of later versions of PCL.
  2) Supports Adobe's Postscript language, or a 3rd party 'emulation' thereof.
  3) is supported as an output device by the 'ghostscript' PS interpreter.

  (The 'ideal' printer supports -both- 1) and 2), _plus_ it will also directly 
   print PDF files.)

A printer that meets 1) _or_ 2) will work with -any- kind of system with 
virtually no effort.

These are things that you need to investigate BEFORE buying a printer.

An entire 30 seconds of online research for "{printername/model} specs'
turned up a web page that showed that the -only- 'language' that this 
printer speaks is "ESC/P-R".

The failure to mention PCL, or PostScript (or an emulation), would have
disqualified it -- for _me_, anyway -- from further onsideration.


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


Maximum number of "tun" pseudo-devices

2012-05-13 Thread Brett Glass

Everyone:

I'm running a busy FreeBSD-based that may handle large numbers of 
simultaneous connections. I'm currently using software that creates 
a "tun" device for each connection. However, after it hits tun127 
(128 pseudo-devices), it doesn't seem to want to create any more. 
What sets the limit on the number of "tun" devices that can exist 
in the system, and how can the limit be adjusted? Is there a 
similar limit on, say, "ng" devices?


--Brett Glass

___
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: Off topic: NetBSD or OpenBSD for Alpha server ?

2012-05-13 Thread Juan Francisco Cantero Hurtado

On 05/04/2012 07:51 PM, Kenneth Hatteland wrote:

Since the alpha forum for FreeBSD is closed, and there has not been
Alpha support since 6.4 I wondered about which OS to install on a alpha
server I am getting quite soon. I guess FreeBSD 6.4 is perhaps not the
best since it is not maintained and the ports tree likewise ?

So I checked the 2 other main contenders and just wanted to ask if
anyone here had an opinion what 2 install of the BSDs ? Or perhaps
FreeBSD 6.4 is a good choice ( I have not tested Open or Net BSD so
FreeBSD is my hometurf) The machine will probably be a server to have
fun with and hopefully learn something from. Perhaps some server role in
my rig, routing, security etc.

Any advise would be nice :)


Hi. I don't have experience with Alpha but OpenBSD supports this arch. 
Take a look:

- http://openbsd.org/51.html . The number of pre-built packages is not bad.
- http://openbsd.org/alpha.html

Cheers.



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

2012-05-13 Thread Reed Loefgren

On 05/13/12 07:25, Polytropon wrote:

On Sun, 13 May 2012 14:56:31 +0200, Jos Chrispijn wrote:

In cshell I use this prompt: set prompt = "%B[%@]%b %m[%/]>  "
The problem I face now is that if I use this prompt with symbolic links,
the presented location is displaying the symbolic link rather than the
real directory name.
Is there a way of preventin this?

Yes, a very ugly way which I just found out:

alias precmd 'set WD=`pwd`; set prompt = "%B[%@]%b %m[$WD]>  "'

Example:

[3:21pm] r56[/]>  cd /sys
[3:21pm] r56[/usr/src/sys]>  _

It redefines the whole prompt at any command that could
affect the current working directory (not only "cd" can
do that). This is needed as any call to `pwd` stored into
a variable will only affect $prompt once - this is when
it's set, only at this time $WD would be evaluated. So
that's why this strange command. :-)

Oh, and I just improved it. How about this?

alias precmd 'set prompt = "%B[%@]%b %m[`pwd`]>  "'

Much better. :-)


I've butchered it further, but thanks for doing the *real* work:

user:
alias precmd 'set prompt = "\n%{\033[32m%}%m [%h] [%@]%b%{\033[0m%} 
[`pwd`]$ "'


root:
alias precmd 'set prompt = "\n%{\033[31m%}%m [%h] [%@]%b%{\033[0m%} 
[`pwd`]$ "'


Regards,

r





___
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: dlink dwl-122g e1 on 9-stable, working only partially? (or not at all?)

2012-05-13 Thread PseudoCylon
> --
>
> Message: 11
> Date: Sun, 13 May 2012 01:21:30 +0200
> From: "Christopher J. Ruwe" 
> Subject: Re: dlink dwl-122g e1 on 9-stable, working only partially?
>        (or not at all?)
> To: freebsd-questions@freebsd.org
> Message-ID: <20120513012130.64d78...@dijkstra.cruwe.de>
> Content-Type: text/plain; charset=US-ASCII
>
> On Sat, 12 May 2012 14:49:18 +0200
> "Christopher J. Ruwe"  wrote:
>
>> Currently I am fighting with (against?) a dlink dwl-g122 usb wlan
>> dongle. The casing is claiming the thing to be of H/W-version E1,
>> F/W-version 5.00, which I interpret as hardware and firmware.
>>
>> I am running 9-stable (FreeBSD ritchie.cruwe.de 9.0-STABLE FreeBSD
>> 9.0-STABLE #8 r235064: Fri May 11 21:32:52 CEST 2012
>> c...@ritchie.cruwe.de:/usr/obj/usr/src/sys/RITCHIE  amd64) and
>> admittedly, dwl-g122 is not included in the hw-compatibility list for
>> 9.0.
>>
>> I am also aware that others have been unsuccessful, though some time
>> back, to get dlw-g122 e running
>> (http://forums.freebsd.org/showthread.php?t=27123).
>>
>> However, I am somewhat successful in getting the dongle recognized by
>> if_run.ko, though not to work as I would like to:
>>
>> dmesg gives then
>>
>> [...]
>> ugen0.3:  at usbus0
>> run0:  on usbus0
>> run0: MAC/BBP RT3070 (rev 0x0201), RF RT2020 (MIMO 1T1R), address
>> b8:a3:86:97:c1:ec ieee80211_load_module: load the wlan_amrr module by
>> hand for now. wlan0: Ethernet address: b8:a3:86:97:c1:ec
>> run0: firmware RT2870 ver. 0.236 loaded
>> ieee80211_load_module: load the wlan_amrr module by hand for now.
>> wlan0: Ethernet address: b8:a3:86:97:c1:ec
>> I have no explanation for the multiple occurrences, I have been trying
>> for some time now, though.
>>

Was wlan_amrr compiled into kernel?

>>
>> sudo ifconfig wlan0 create wlandev run0 wlanmode hostap
>> sudo ifconfig wlan0 inet 192.168.3.1 netmask 255.255.255.0 ssid bsdap
>> channel -
>>

If you want to use WPA, you need to run
# /etc/rc.d/hostapd onestart

> OK, update on the situation: I can get wlan to work in AP-mode, I must
> not enable WPA, though. Having enabled hostapd for one time kills my
> wlan and requires a complete reboot.
>

Did it panic? Can you post back trace?


AK
___
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: Apache openoffice build eats all /usr and fails

2012-05-13 Thread Kenneth Hatteland
Rebuilding and upgrading to apache openoffice on my main desktop fails 
because the procedure consumes all my 17 gbs of available /usr space, 
which still is not enough apparently. The build routine says 11gb is 
more than enough. Libreoffice will not build on this machine for some 
reason so at this point that is not an alternative. Anyone here have 
ideas what is wrong ( some nob must be turned the wrong way ;) )


Blessed be...

Kenneth Hatteland
___
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: avrdude and arduino

2012-05-13 Thread Fernando Apesteguía
On Sun, May 13, 2012 at 8:20 PM, Colin Barnabas
 wrote:
> Has anyone been able to get the Arduino Uno board working with
> avrdude? I keep getting programmer not responding errors.

Not for the Uno, but I got Arduino Duemilanove working.

>
> avrdude: ser_recv(): programmer is not responding
> avrdude: stk500_recv(): programmer is not responding

This is typical when the microcontroller is somehow busy or stuck.

>
>
> This is the command I'm using:
>
> %sudo avrdude -F -v -v -v -v -c arduino -p ATMEGA328P -P /dev/cuaU0 -U 
> flash:w:flash.hex

This is what I use for Duemilanove
sudo avrdude -V -F -c stk500v1 -p m168 -b 19200 -P /dev/cuaU0 -U
flash:w:flash.hex (Arduino)

I also have a Pololu 3pi[1] which uses an ATmega328 and I can download
the software into the
chip using this:

sudo avrdude -c avrispv2 -p m168 -P /dev/cuaU0 -U flash:w:test.hex  (Pololu)


HTH

[1] http://www.pololu.com/catalog/product/975

>
> Any suggestions would be much appreciated.
>
>
> --
> Colin Barnabas
> ___
> 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: Building FreeBSD to install or update in two DESTDIRs

2012-05-13 Thread Matthew Seaman
On 14/05/2012 00:10, Thomas Mueller wrote:
> I tried make installkernel and make installworld, but those didn't
> fully work right the second time, with DESTDIR=/mnt (USB stick main
> partition).

What exactly went wrong?  Setting DESTDIR is the correct way to do this
sort of thing.  You only need to set it when running the installworld or
installkernel steps though -- there's nothing that gets compiled into
/usr/obj which prevents you from installing into a different than normal
tree.

I use this sort of construct frequently for updating jails, or when
managing boot environments.

> /usr/src/UPDATING doesn't say how to update for two DESTDIRs on the
> same build.

For each different DESTDIR, just repeat the installworld, installkernel,
check-old, delete-old* steps setting DESTDIR=/some/where
on the make command line.

The equivalent for mergemaster is to add '-D /some/where' to the
commandline.

Cheers,

Matthew

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




signature.asc
Description: OpenPGP digital signature