Re: FreeBSD 9, GPT and gmirror

2012-02-09 Thread Michael Cardell Widerkrantz
Janos Dohanics w...@3dresearch.com, 2012-02-08 19:42 (+0100):

 4. Also, with GPT, one has to be in single user mode to synchronize
 disks - correct?

I think the guide you linked to:

  http://blather.michaelwlucas.com/archives/1071

meant that you have to be in single user mode until you have edited
/etc/fstab to point to the mirror, otherwise you wouldn't boot with root
on the mirror. The synchronization between the disks works fine in
multi-user mode as well.

I have two 2 TiB disks in gmirror set up just like that. Synchronization
was done running in multi-user.

-- 
http://hack.org/mc/
Warning! Plain text e-mail, please. HTML e-mail deleted unread.
OpenPGP: 673B 563E 3C78 1BA0 6525  2344 B22E 2C10 E4C9 2FA5

___
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: sour grapes .. was FreeBSD Kernel Internals Documentation

2012-01-08 Thread Michael Cardell Widerkrantz
C. P. Ghost cpgh...@cordula.ws, 2012-01-01 20:30 (+0100):

 On Sun, Jan 1, 2012 at 7:41 PM, doug d...@fledge.watson.org wrote:
 That said, FreeBSD has a giant disadvantage in the desktop world. In trying
 to find if there will be any sort for my current laptop I came across a
 comment from Robert Noland saying that Xorg is becoming more and more Linux
 centric. That is a problem the FreeBSD project can not overcome.

 Did he mean frameworks like evdev(4) and so?

 http://www.x.org/archive/X11R7.5/doc/man/man4/evdev.4.html

That man-page really doesn't explain what has changed. The new thing is
that X.org has done away with hald.

 Stuff like this really ought to be backported to FreeBSD, either
 directly or by providing more Linuxisms on our side. 

It also seems rather easy, considering we already have devd which could
be used to feed evdev with information about input devices.

 There's no /technical/ reason why it can't be done.

True.

He probably also meant stuff like Kernel mode-setting (KMS) and GEM. All
this is being worked on in FreeBSD as well:

  http://wiki.freebsd.org/Intel_GPU

-- 
http://hack.org/mc/
Warning! Plain text e-mail, please. HTML e-mail deleted unread.
OpenPGP: 673B 563E 3C78 1BA0 6525  2344 B22E 2C10 E4C9 2FA5

___
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: X server and xinit works excellent....almost.

2011-11-10 Thread Michael Cardell Widerkrantz
Chuck Swiger cswi...@mac.com, 2011-11-09 22:10 (+0100):

 How would HAL know that the keyboard had a Swedish layout? No such
 information is sent through USB or PS/2 when you attach a keyboard.

 True for PS/2, but not true for USB-- the USB Vendor  Product ID can
 identify different keyboard types and let you infer the country.  

I'm sorry I was unclear. I meant the USB device doesn't say what
physical keyboard layout it has in any standardized way. There is
nothing in the USB protocol about it.

The product ID code might tell you something if you have a large
database and the USB product ID is indeed different between two physical
layouts. It might not be. For instance, while ANSI keyboards and ISO
keyboards are bound to have different USB product IDs because of
actually physical differences in the number of keys, the only thing that
differs between, say, a German keyboard and a Swedish keyboard of the
same model is what is printed on the keycaps. A vendor might see these
as the same USB product ID.

-- 
http://hack.org/mc/
Plain text e-mails, please. HTML messages sent to me are silently deleted.
OpenPGP welcome, 0xE4C92FA5.

___
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: X server and xinit works excellent....almost.

2011-11-10 Thread Michael Cardell Widerkrantz
Samuel Magnusson samuel.magnuss...@bredband.net, 2011-11-09 21:52 (+0100):

 Because with HAL and DBUS enabled this InputDevice section is bypassed
 unless I also specify Option AutoAddDevices false. Which I
 understand gives the same result as not enabling HAL and DBUS in the
 first place. 

If you don't enable HAL and DBUS, you're using an X server compiled with
HAL and DBUS support and you haven't set AutoAddDevices to false you
won't get any input devices at all: no working mouse, no working
keyboard.

At least, this was my experience after an upgrade long ago. Quite
frustrating. I learned about the AutoAddDevices first and later rebuilt
my X server without HAL or DBUS support.

-- 
http://hack.org/mc/
Plain text e-mails, please. HTML messages sent to me are silently deleted.
OpenPGP welcome, 0xE4C92FA5.

___
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: X server and xinit works excellent....almost.

2011-11-10 Thread Michael Cardell Widerkrantz
Samuel Magnusson samuel.magnuss...@bredband.net, 2011-11-10 00:49 (+0100):

 Michael Cardell Widerkrantz wrote 2011-11-09 21:02:

 What new style XML method?

 I'm referring to what Polytropon said about all the new stuff
 required by X. As I understood him he was talking about the XML-files
 to give directions to HAL

Ah! HAL! Good riddance!

 Perhaps you can file a Problem Report (PR) with a suggested text? I
 suggest you add the text to the handbook since I assume the X.org
 project won't touch manual pages for the ancient X servers we use in
 FreeBSD.

 As I understand you, the man-pages from Xorg that are in FreeBSD are
 not allowed to be altered unless the Xorg project do it themselves,

I'm sure they can be altered in FreeBSD. I just thought it might be
better to add the text to the handbook. Or both.

 Anyway, I wasn't aware that the FreeBSD X server was ancient and
 different from any other. :)

We're a few versions behind the X.org bleeding edge since modern servers
require kernel changes.

Modern X.org servers require Kernel-based Mode Setting (KMS) and
Graphics Execution Manager (GEM) and udev support. While it's likely
there could be some udev glue on top of devd I don't know if someone is
working on it. Warner, perhaps? KMS and GEM, mainly for the intel
drivers, are being worked on:

  http://wiki.freebsd.org/Intel_GPU

 Also a good beginners tutorial
 on the fonts would be good, because as I understand it there is also
 an old and a new way with the core fonts and the font server, some
 methods belonging to one and some to the other.  

That's true. You can start by reading my blog post about it:

  http://hack.org/mc/blog/xfonter.html

It's in Swedish, I'm afraid, but both your name and the fact that you
were talking about a Swedish keyboard earlier makes me think you can
cope with that.

 But if I do produce something, where should I send the PR and text?

See the send-pr(1) manual page. Failing that, use:

  http://www.freebsd.org/send-pr.html

-- 
http://hack.org/mc/
Plain text e-mails, please. HTML messages sent to me are silently deleted.
OpenPGP welcome, 0xE4C92FA5.

___
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: X server and xinit works excellent....almost.

2011-11-10 Thread Michael Cardell Widerkrantz
Polytropon free...@edvax.de, 2011-11-10 01:30 (+0100):

 Now as it (almost?) works on FreeBSD, it's already deprecated by new
 Linux concepts such as udev, upower and other usomethings. Maybe
 they become available as interfaces on FreeBSD too, but my fear is...
 as soon as they are usable, there's already something else obsoleting
 them right away. :-(

By then I'm sure Linux distributions have moved on to the Wayland
Display System.

Times like these I wish I had the time to bring back MGR from the dead:

  http://hack.org/mc/mgr/

-- 
http://hack.org/mc/
Plain text e-mails, please. HTML messages sent to me are silently deleted.
OpenPGP welcome, 0xE4C92FA5.

___
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: X server and xinit works excellent....almost.

2011-11-10 Thread Michael Cardell Widerkrantz
Chuck Swiger cswi...@mac.com, 2011-11-10 20:12 (+0100):

 Different keycaps means a different product SKU, at least. If they use
 the same USB product ID

Yes. I think this is a quite common scenario.

 FreeBSD's users generally are more technically inclined and might be
 willing to deal with this, but even so, I suspect that most folks
 would appreciate the system trying to figure out that an AZERTY
 keyboard layout means French, that JIS means Japanese, that QWERTZ
 probably indicates German / Swiss / Hungarian, etc.

Certainly.

 To my mind, though, that's a fallback for when you have a KVM or a
 PS/2-to-USB converter or suchlike in the way that prevents the device
 from being correctly recognized.

Or when you have, say, a keyboard that physically is an ANSI keyboard
(one less physical key compared to ISO keyboards) but still want, say, a
Swedish keymap or, indeed, your very own keymap, unlike any other. Like
me when I'm using one of my Happy Hacking Keyboards. Topre switches FTW!

-- 
http://hack.org/mc/
Plain text e-mails, please. HTML messages sent to me are silently deleted.
OpenPGP welcome, 0xE4C92FA5.

___
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: X server and xinit works excellent....almost.

2011-11-09 Thread Michael Cardell Widerkrantz
Samuel Magnusson samuel.magnuss...@bredband.net, 2011-11-09 12:06 (+0100):

 Which made me remember that I had the exact same
 problem with my swedish keyboardmappings the very first time I started
 X. I just couldn't get it to work and nearly gave up before I tried
 the setxkbmap method and put them into .xinitrc, which saved me.
 Although I had put the exact same rules and layout options in
 xorg.conf and double checked the format and spelling hundreds of
 times. The problem was still there now: when I commented it out in
 .xinitrc I got the US keyboard in xterm in spite of the xorg.conf
 settings. 

XKB is a bit of a mystery compared to good old xmodmap. A while ago I
tried to understand it. The result is a small guide on how you can use
XKB to define your own keyboard mapping and load it without having to be
root. I used my own version of a Swedish keyboard on a Happy Hacking
Keyboard as an example:

  http://hack.org/mc/writings/xkb.html

 The thing that really made it was the  Option  AutoAddDevice off,
 which I had failed to notice. 

Yes, this is really important, especially if you don't want that
dreadful HAL on your system. Considering that the default is on and HAL
isn't a dependency for the X server, many users were surprised when they
didn't have any working mouse nor keyboard!

I don't use HAL and it seems even the X.org project has moved away from
HAL even if such modern X.org X servers are not yet in ports.

 It doesn't warn that if it is NOT disabled the InputDevice sections
 won't work at all. And no devices will be added sounds like a bad
 thing, so you rather leave this option enabled...

Perhaps you can file a Problem Report (PR) with a suggested text? I
suggest you add the text to the handbook since I assume the X.org
project won't touch manual pages for the ancient X servers we use in
FreeBSD.

 Now I'm curious:

 Is it then so that in the new style Xorg the XML-method will
 override HAL, and this is the new default way of providing opitons
 that formerly were in the InputDevice sections in xorg.conf?

What new style XML method?

AFAIK the more modern X.org X servers uses the Linux udev instead of
HAL. Those servers are not yet available on FreeBSD but presumably it
would be possible to use devd for the same purpose.

 And should HAL have discovered my swedish keyboard automatically in
 the first place, so there was something going wrong there?

How would HAL know that the keyboard had a Swedish layout? No such
information is sent through USB or PS/2 when you attach a keyboard. This
is up to your own language settings, either with what you have entered
in the form of setxkbmap or xkbcomp in your .xinitrc/.xsession or your
settings in the desktop environment of your choice.

-- 
http://hack.org/mc/
Plain text e-mails, please. HTML messages sent to me are silently deleted.
OpenPGP welcome, 0xE4C92FA5.

___
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: FS of choice for max random iops ( Maildir )

2011-09-19 Thread Michael Cardell Widerkrantz
Volodymyr Kostyrko c.kw...@gmail.com, 2011-09-17 14:33 (+0200):

 You really like to wait for hours before fsck will finish checking for
 your volume?

While it's true that fsck on large filesystems takes ages soft updates
and background fsck makes it a lot less bothersome than it used to be.

-- 
http://hack.org/mc/
Use plain text e-mail, please. HTML messages silently dropped.
OpenPGP welcome, 0xE4C92FA5.

___
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: Need an audio multicasting solution

2011-09-12 Thread Michael Cardell Widerkrantz
Victor Sudakov v...@mpeks.tomsk.su, 2011-09-09 08:21 (+0200):

 I need a solution to read sound from a soundcard (/dev/dsp) and
 multicast it into the network, for the multicast audio stream to be
 played on FreeBSD, Linux and Windows workstations. 

Does the old LBL vat tool still work on modern system?

  http://ee.lbl.gov/vat/

I haven't used it for 15 years or so but it worked back then.

Also, the Robust Audio Tool (rat) might still work. Seems to need work
to get it running on FreeBSD according to their website but it used to
work on FreeBSD. Again, it was over ten years ago I used this. It seems
to live here nowadays:

  http://mediatools.cs.ucl.ac.uk/nets/mmedia/wiki/RatWiki#RobustAudioToolRAT

Quotes:

  RAT require no special features for point-to-point communication, just
  a network connection and a soundcard. For multiparty conferencing RAT
  uses IP multicast and therefore all participants must reside on a
  multicast capable network.

  ...

  RAT is a cross platform tool which is now available for Linux and
  WinXP. In the past it was also maintained for use a variety of
  operating systems including: FreeBSD, HP-UX, IRIX, NetBSD, Solaris,
  SunOS, and Windows 95/NT. Users are welcome to test and contribute
  code for any of these other OSes. Please let us know or contribute to
  the wiki.

-- 
http://hack.org/mc/
Use plain text e-mail, please. HTML messages silently dropped.
OpenPGP welcome, 0xE4C92FA5.

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

2011-08-24 Thread Michael Cardell Widerkrantz
Christian Barthel b...@nyx.user-mode.org, 2011-08-05 21:12 (+0200):

 What is your window manager? 

Obviously, I use x11-wm/mcwm. More about it here, including a
screenshot:

  http://hack.org/mc/hacks/mcwm/

Be sure to update your ports tree before installing so you get the
latest version. Or download the latest tarball from the website. Or use
git.

mcwm is a minimalist stacking window manager based on the X C Binding
(XCB) library, the new (well...) Xlib replacement. mcwm doesn't use Xlib
at all. The window manager never draws anything: no window decorations,
no menus, no nothing. Windows still get a thin 1 pixel frame as a
feature of the X protocol. Configurable.

Good keyboard control, including moving and resizing. You will feel
right at home if you have played Nethack.

Virtual workspaces are supported. Switching is fast even on slow
machines.

RANDR is supported. mcwm knows about different physical screens.

On this machine (an ARM based netbook from Genesi) mcwm uses 668 kBytes
resident memory.

Before writing mcwm I had a period when I was using evilwm, which shows
quite a bit in the key bindings of mcwm, and before that I was mainly a
CTWM user. I was also using 9wm for a while, way back, mostly on the X
terminal standing next to the real Plan 9 box in my office.

-- 
http://hack.org/mc/
Use plain text e-mail, please. HTML messages silently dropped.
OpenPGP welcome, 0xE4C92FA5.

___
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: Dvorak keyboard (Spanish)

2011-08-24 Thread Michael Cardell Widerkrantz
Alvaro Castillo gobl...@gmail.com, 2011-08-25 02:25 (+0200):

 Can add Dvorak spanish variant for syscons?

 http://es.wikipedia.org/wiki/Archivo:Teclado_Dvorak_EspaƱol.png

Copy 

  /usr/share/syscons/keymaps/us.dvorak.kbd

to your home directory.

Start the editor of your choice and edit the file to add the keys you
need for a Spanish keyboard.

If you're uncertain what keycode a certain key generates, use the
misc/kbdscan port [1] to find out.

When you're done editing load the new keyboard with 

  kbdcontrol -l your-spanish-dvorak.kbd

When you're satisfied you can copy the file to 

  /usr/share/syscons/keymaps/

and edit rc.conf and add 

  keymap=your-spanish-dvorak

If everything works out right you can think about using send-pr(1) or 

  http://www.freebsd.org/send-pr.html

and send the new keyboard layout to be included in FreeBSD.

[1] I wrote the program but I didn't submit it to ports. I would have
gone for the sysutils category, I think.

Happy hacking,
MC.

-- 
http://hack.org/mc/
Use plain text e-mail, please. HTML messages silently dropped.
OpenPGP welcome, 0xE4C92FA5.

___
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: Lennart Poettering: BSD Isn't Relevant Anymore

2011-07-25 Thread Michael Cardell Widerkrantz
Gary Gatten ggat...@waddell.com, 2011-07-18 21:44 (+0200):

 I've always been curious why Linux seemed to take off so fast when
 other FOSS / non Winblow$ OS's were available for some time with not
 much traction; OS/2, BeOS, *nix with X11, etc.

I'm not sure what you mean by fast here. It took a few years, at
least.

I think most of the initial users of Linux were frustrated Minix users
and then MS-DOS users who would otherwise had gone to Minix. I bet most
of them didn't know about any alternatives. I, for one, certainly didn't
know about 386BSD when it was released in 1992. By then I was using
SunOS (not Solaris!) on a Sun 3/60 at home and was no stranger to BSD,
but still didn't know anything about the 386BSD efforts.

I first met Linux systems at work in 1995. Several developers dual
booted it on their standard issue PCs to get a better X terminal than
the crappy proprietary X server on Windows 3.11 the company had bought.
I was one of the lucky ones with a real NCD X terminal so I didn't even
have a PC in my office.

 Not just on the desktop, but servers as well. Supported versions of
 Linux such as RHEL, Suse, etc. seem to have made more headway into the
 enterprise computing environment in the last ten years than *BSD did
 in the last 30.

AFAIK BSD had a tremendous impact on 'servers' [1] and was much used,
especially in academical settings.

From my personal experience - which is relatively limited - it seems
 applications just work on Linux? When I need to compile an app, it
 takes a few mins on Linux - but may take me a few weeks on FBSD.

Weeks to compile!? How slow *is* your computer? *grin*

Seriously, I think you have stumbled on a well known problem called All
the World's a Linux Syndrome [2]. Many software developers develop for
Linux and only for Linux. They don't know much about portability.

[1] It seems a bit silly to call VAXen and PDP-11s with character
terminals 'servers', but you know what I mean.

[2] Previously All the World's a VAX Syndrome.

-- 
http://hack.org/mc/
Use plain text e-mail, please. OpenPGP welcome, 0xE4C92FA5.

___
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: 2020: Will BSD and Linux be relevant anymore?

2011-07-25 Thread Michael Cardell Widerkrantz
Mike. the.li...@mgm51.com, 2011-07-19 20:52 (+0200):

 Perhaps the real question should be - how much longer will the desktop
 be relevant?

I think it depends on what you mean by desktop. Traditional heavy PCs
might begin to disappear but people using mobile devices such as
smartphones might want to connect their devices to better monitors and
(better) keyboards. That's sort of a desktop.

In a business setting I can't see the desktop disappearing either.
However, there are chances that we're moving towards even more thin
client solutions.

I think FreeBSD and Linux will power both ends, both clients and
servers, in this scenario.

-- 
http://hack.org/mc/
Use plain text e-mail, please. OpenPGP welcome, 0xE4C92FA5.

___
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: 2020: Will BSD and Linux be relevant anymore?

2011-07-25 Thread Michael Cardell Widerkrantz
Chad Perrin per...@apotheon.com, 2011-07-21 18:58 (+0200):

 Unless and until I get a full-power OS (preferably a real BSD Unix) on
 a tablet, no amount of peripherals, ubiquitous network connection, and
 internal power will make up for the simple fact it's just a damned
 toy.

Same here. Not a tablet, but I've been eyeing Genesi's EFIKA MX
Smartbook for a while:

  http://www.genesi-usa.com/products/smartbook

Seems like more than a toy to me. I've read reports about someone trying
to port FreeBSD to the thing. I don't know the status. Anyone?

-- 
http://hack.org/mc/
Use plain text e-mail, please. OpenPGP welcome, 0xE4C92FA5.

___
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