Sed, shell and hexadecimal character codes

2008-05-21 Thread Karel Miklav

There's a tip in the FreeBSD fortunes database that says:

 Want to strip UTF-8 BOM(Bye Order Mark) from given files?

 sed -e '1s/^\xef\xbb\xbf//'  bomfile  newfile

I can't make it work, and I can't find any other method to
work with hexa codes in scripts or on the command line so
I'm kind-a depressed :) I help myself with xxd now, but if
it is possible to avoid it, I'd like to hear about it.

--

Regards,
Karel Miklav


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


Re: Any experience using cellphone as a modem on FreeBSD?

2007-12-04 Thread Karel Miklav

This is in my /etc/ppp/ppp.conf, except for the asterisks:

# Connect to *** over IrDA and GSM phone. First install birda and
# create connection over IrDA:
#ircomm -d /dev/cuad0 -m 115200 -y /dev/ptypf -v 2 
# then connect with: ppp -background gsm.
gsm:
  set log Phase tun command
  set speed 115200
  set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\\ AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT
  set timeout 60
  set phone ***
  set authname ***
  set authkey ***
  set device /dev/ttypf
  set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255
  add default HISADDR
  resolv readonly
  set dns *.*.*.* *.*.*.*

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


make package-recursive

2007-07-10 Thread Karel Miklav
1. This is not possible since files may be generated
   or modified on the fly during the installation
   process.

2. Don't know exactly what you mean, but...

   a. you don't have to install under /usr/local
   b. man jail
   c. cat /usr/ports/ports-mgmt/tinderbox/pkg-descr

There are some nice articles about this on the web.

-- 

Regards,
Karel Miklav


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


game advice

2007-07-06 Thread Karel Miklav
TuxRacer. MAME, DOSBox, MLDonkey.


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


Re: IE in FreeBSD?

2005-09-15 Thread Karel Miklav
Yuan Jue wrote:
 Does anybody successfully run Internet Explorer under Wine in
 FreeBSD? What should I do to get it run? Any suggestion will be
 appreciated.

I recommend qemu emulator too. It's easy to install, you get
native platform and it's not that slow (even usable on a 366MHz
notebook). When you install your favourite OS on it, you can
copy the image around as much as you like and share it with
other users in snapshot mode as their changes won't be written
back... could go on and on :)

-- 

Regards,
Karel Miklav

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


Re: Sound on Thinkpad and Networking questions

2005-09-14 Thread Karel Miklav
Lars Lindblad wrote:
 New problems with FreeBSD 5.4 on my IBM Thinkpad 600E:

For questions regarding notebooks consider subscribing to
the freebsd-mobile list. In the archives of the mobile
list you can find some questions on TP 600E already
answered.

 1. I try to get the sound to work, but I never manage
 to make! I have tried to recompile the kernel, as described
 in the FreeBSD Handbook I chapter 8. First I found a website
 dedicated to Thinkpad600E and FreeBSD 4.7, but the lines
 presented there didn't work.

Check out my kernel configuration (attached), it's for 5.4.
Soundcard is enabled by these two lines at the end:

device  sound
device  snd_mss

You must also have your hardware configured (hint: PS2).

-- 

Regards,
Karel Miklav
# TP600E - IBM ThinkPad 600E kernel configuration file
# Lino, 24. oktober 2004 2:32
#
# cd /sys/i386/conf/
# config TP600E
# cd ../compile/TP600E
# make depend
# make
# make install
#
# or
#
# cd /usr/src
# make buildkernel KERNCONF=TP600E
# make installkernel KERNCONF=TP600E

machine i386
#cpuI486_CPU
#cpuI586_CPU
cpu I686_CPU
ident   TP600E

# To statically compile in device wiring instead of /boot/device.hints
#hints  GENERIC.hints # Default places to look for devices.

options SCHED_4BSD  # 4BSD scheduler
options INET# InterNETworking
options INET6   # IPv6 communications protocols
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options MD_ROOT # MD is a potential root device
options NFSCLIENT   # Network Filesystem Client
options NFSSERVER   # Network Filesystem Server
options NFS_ROOT# NFS usable as /, requires NFSCLIENT
options MSDOSFS # MSDOS Filesystem
options CD9660  # ISO 9660 Filesystem
options PROCFS  # Process filesystem (requires PSEUDOFS)
options PSEUDOFS# Pseudo-filesystem framework
options GEOM_GPT# GUID Partition Tables.
options COMPAT_43   # Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options SCSI_DELAY=15000# Delay (in ms) before probing SCSI
options KTRACE  # ktrace(1) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time 
extensions
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
options AHC_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~128k to driver.
options AHD_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~215k to driver.
options ADAPTIVE_GIANT  # Giant mutex is adaptive.
#optionsVESA# To include support for VGA VESA video modes

device  apic# I/O APIC

# Bus support.  Do not remove isa, even if you have no isa slots
device  isa
device  eisa
device  pci

# Floppy drives
#device fdc

# ATA and ATAPI devices
device  ata
device  atadisk # ATA disk drives
#device ataraid # ATA RAID drives
device  atapicd # ATAPI CDROM drives
#device atapifd # ATAPI floppy drives
#device atapist # ATAPI tape drives
options ATA_STATIC_ID   # Static device numbering

## SCSI Controllers
#device ahb # EISA AHA1742 family
#device ahc # AHA2940 and onboard AIC7xxx devices
#device ahd # AHA39320/29320 and onboard AIC79xx devices
#device amd # AMD 53C974 (Tekram DC-390(T))
#device isp # Qlogic family
#device mpt # LSI-Logic MPT-Fusion
##devicencr # NCR/Symbios Logic
#device sym # NCR/Symbios Logic (newer chipsets + those of 
`ncr')
#device trm # Tekram DC395U/UW/F DC315U adapters
#
#device adv # Advansys SCSI adapters
#device adw # Advansys wide SCSI adapters
#device aha # Adaptec 154x SCSI adapters
#device aic # Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
#device bt  # Buslogic/Mylex MultiMaster

Re: grab video and sound bktr

2005-09-13 Thread Karel Miklav
Gunter Wambaugh wrote:
 With that, I can run motv and use sox to grab the audio from the
 VHS. But that still doesn't help me get both streams.  I have tried 
 transcode and nuvrec (as root) with absolutely NO AUDIO.  I can't be
  the only one that has done this before!  Just show me a working cmd,
 or point me to a mailing list where someone might actually
 knowPLEASE.

I'm doing it (sort of) with mplayer/mencoder. If you're interested try
something like:

 mplayer -tv driver=bsdbt848:device=/dev/vbi:input=1:norm=PAL:\
  chanlist=europe-east:audioid=1 tv://S23

Help yourself with 'man mplayer' and when you have it working switch to
mencoder. If nothing else works :)

-- 

Regards,
Karel Miklav

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


Re: undelete in FreeBSD?

2005-07-26 Thread Karel Miklav
Xu Qiang wrote:
 ... is the lack of a cyclin bin, from which you can restore anything
 you have mis-deleted before.
 
 Or, am I mis-informed on this issue?

I scratched my head about it too and finally wrote a simple script
which moves trashed items into auto made date-stamped directories. I
can send it later, if there's interest.

-- 

Regards,
Karel Miklav

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


Re: undelete in FreeBSD?

2005-07-26 Thread Karel Miklav
Peter wrote:
 this tip is taken from BSD hacks

I do not believe this! This girl literally stole my script,
traveled back through time to cover the tracks and made an
article out of her shameless act :)

Anyway, here's the original version of 'the trash':

#! /bin/sh

# Move files in a trash folder.

trash_root=$HOME/.trash
trash_stamp=`date +%Y%m%d%H%M%S`
trash_dest=$trash_root/$trash_stamp

if [ ! -d $trash_root ]; then
   mkdir -p $trash_root
fi

if [ -e $trash_dest ]; then
   echo Ups, $trash_dest exists!
else
   mkdir $trash_dest
   mv $@ $trash_dest/
   echo Files trashed.
fi

-- 

Regards,
Karel Miklav

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


Re: Remote X client

2005-06-07 Thread Karel Miklav
Tony Shadwick wrote:
 Take this demon-spawn firefox and point it to this address:
 http//www.whatismyip.com
 Well, what is it?  What is your local IP?  Do they match?
 point it at a file in your remote filesystem.  Does it work?

Thanks for your time Tony. I don't have my computer handy, but I figured
out I wasn't just lost in xterms after all. It is a Mozilla family
feature (http://www.mozilla.org/unix/remote.html), but it can be easily
disabled in startup scripts.

-- 

Regards,
Karel Miklav

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


Remote X client

2005-06-06 Thread Karel Miklav
I ssh on remote server, set DISPLAY, then run Thunderbird, Links etc.
remotely and everything looks and works great. Now I try Firefox and
WTF! it read configuration from the local machine! Links and settings
are all local and it doesn't resolve as I didn't set up route on local
machine yet. So it's local, but how can that happen - it was run over
ssh on remote machine?!

Regards,
Karel Miklav


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


Re: FreeBSD's MPlayer not using GTK2

2005-05-31 Thread Karel Miklav
Thomas E. Zander wrote:
 Exactly. I still hope that the mplayer project moves towards a gtk2 
 default gui in a not-too-distant future.

They have bigger problems at the moment. Check http://www.mplayerhq.hu.

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


TV application

2005-05-25 Thread Karel Miklav
I've set up FreeBSD on our home computer the other day; my intention was
to get rid of an old Mandrake installation. It all worked well, except
for the TV application. Neither fxtv nor xawtv can't hold a candle to
tvtime on Linux; there's no deinterlacer, no fullsize fullscreen picture
etc. Am I missing something or it just can't be done?

--

Regards,
Karel Miklav

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


Statistics

2005-05-16 Thread Karel Miklav
http://traffic.alexa.com/graph?w=600h=500r=3yy=ru=freebsd.org/u=redhat.com/u=debian.org

Pretty good, but check this apple stunt:

http://traffic.alexa.com/graph?w=600h=500r=3yy=ru=freebsd.org/u=apple.com/u=sun.com

That's milking the cow!

-- 

Regards,
Karel Miklav

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


Re: The FreeBSD Handbook, in Wiki form.

2005-05-06 Thread Karel Miklav
Benjamin Keating wrote:
 Either way, I'll be using / populating that thing with as much quality
 info as I can. Thanks! Are you in charge of this?

No, you should talk to the Jimbo guy (Jimbo is a FreeBSD enthusiast /
professional / zealot, depending on who you ask, and is the maintainer
of this wiki.) For more information about him try your luck with 'whois
freebsdwiki.net'

-- 

Regards,
Karel Miklav

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


Re: Installing DCOM98 with Wine

2005-05-04 Thread Karel Miklav
Chris Hodgins wrote:
 I have the latest Wine and Winetools installed and I am now trying to
 install DCOM98 with the purpose of installing internet explorer 6 for
 my web development needs.

Have you considered using QEMU? I have it installed on an old 300MHz
notebook. It runs Win98 perfectly and applications like IE are usable on
this hardware.

-- 

Regards,
Karel Miklav

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


Re: The FreeBSD Handbook, in Wiki form.

2005-05-04 Thread Karel Miklav
Benjamin Keating wrote:
 Is there anything being done to help keep the handbook just a little
 more updated? It's a great handbook, if it's content wasn't so out of
 date.
 
 A wiki would be a great way to acheive this. If there isn't a project
 like it yet, I'd like to propose we set one up. I can contribute quite
 a bit of time and resources towards this. Save me wiki.freebsd.org and
 I'll get a move on!

What about http://www.freebsdwiki.net? It needs a better home page and
some content, but it's there. Besides, I completely agree with you that
wiki-kind software must replace all pointless hand-editing and mail
shuffling.

-- 

Regards,
Karel Miklav

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


Re: problem burning 5.3-RELEASE Disc 2 from iso

2005-03-23 Thread Karel Miklav
check http://groups.google.com/groups?q=+5.3-release-i386-disc2.iso+burn

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


Re: Creating CA with CA.pl

2005-02-22 Thread Karel Miklav
Jeffery Fernandez wrote:
I am following a tutorial on creating a CA on my FreeBSD 5.3 development 
box. The tutorial can be found at 
http://www.freebsddiary.org/openssl-client-authentication.php

I had a problem on signing the certificate as explained in this forum 
thread: http://www.freebsddiary.org/phorum/read.php?f=1i=9702t=9694
Don't know about CA.pl, but try doing it manually. You should first edit 
the openssl.conf, make a directory structure for your CA, setup files... 
(man ca) then do something like this:

openssl req -new -x509 -keyout ca.key -out ca.pem -days 3650
Look around; there are many tutorials, guides, a Linux HOWTO... on the 
net, it's not related to FreeBSD.

--
Regards,
Karel Miklav
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how do i translate non-ascii chars???

2005-02-21 Thread Karel Miklav
Gary Kline wrote:
	I've got sseveral HTML files with O-aigu and O-grave and 
	others (these files were composed on  a Mac. Rather than
	display as ['] (apostrophes) or backticks, they are rendered
	in full 8859-1.   

	How to I translate these  128 range characters?  I'm 
	wedged.
What about 'man iconv'? You can also open such a file in Vim with ':e 
++enc=macroman file.html' or something.

--
Regards,
Karel Miklav
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Please don't change Beastie to another crap logo

2005-02-11 Thread Karel Miklav
Anthony Atkielski wrote:
Personally, I wonder how FreeBSD survives based exclusively on volunteer
efforts.  It's a noble idea, but in the real world, things cost money,
and people need to earn a living.  Something that survives exclusively
from the kindness of strangers leads a fragile existence.
No, this is wrong - you're just piling up arguments for your case. If 
the case is money you should also care about positioning and not 
splitting the eyeballs.

And if there'll ever be a really simple logo like red dot, red heart or 
plain FreeBSD name, where will you hide chuck from concernig citizens?

--
Regards,
Karel Miklav
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: problem running openGL and glut based programs

2004-12-19 Thread Karel Miklav
Antoine Solomon wrote:
I have a problem running glut and gl based programs.  when compiling
simple examples using GL and glut they appear to compile just fine. 
But when executing them, I just get a blank window that doesn't do
anything.  I am running glut libglut-6.0.1
Link with pthreads.
--
Regards,
Karel Miklav
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: installing bsd on a laptop

2004-12-19 Thread Karel Miklav
[EMAIL PROTECTED] wrote:
hello, do you know of any laptop brands that can run freebsd or openbsd that 
is available to purchase???
IBM Thinkpads are fine also. But try before u buy, whatever your 
decision. Take a live cd (http://www.freesbie.org/) with you and test it 
as much as you can.

--
Regards,
Karel Miklav
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Extended fat32 partition, how to mount ?

2004-12-13 Thread Karel Miklav
Have you:
 1. tried mounting ad2s5 and ad2s6?
 2. checked the http://www.freebsd.org/search/search.html#mailinglists?
 3. searched the web (extended logical fat ad0s5 freebsd...)?
--
Be well,
Karel Miklav
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How to send output to another terminal?

2004-11-24 Thread Karel Miklav
I'm playing with functional languages and I'd like to send text 
selections from vim to another xterm running language interpreter. 
Echoing from one terminal to another via /dev/tty* gets the message 
through, but it's invisible to the interpreter.

Could you please give me some hints as to what knowledge do I miss to 
make it happen and if I'm on the right track at all?

--
Regards,
Karel Miklav
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: BlackBox slow

2004-11-19 Thread Karel Miklav
Eric Kjeldergaard wrote:
You may want to look into openbox.  It's like all the other boxes only
with no slit...
Thanks man. I just threw my eyballs on hackedbox and wmi; we'll se what 
will become of it. Hackedbox doesn't have nor slit neither toolbar, 
that's what I was looking for.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


BlackBox slow

2004-11-18 Thread Karel Miklav
I have an older ThinkPad notebook with FreeBSD 5.3. I use BlackBox 
window manager, which is great, but it takes it around 40 seconds to 
start up. TWM starts in 15 seconds and Gnome in 40 too. I have something 
like this in .xinitrc:

xsetroot ... 
xhost ... 
bbkeys ... 
blackbox
and it doesn't change much if I add or remove a line. What is your 
experience with BlackBox? Is there a BB clone without slit and taskbar 
or something like that?

--
Regards,
Karel
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problems compiling sample OpenGL apps .

2004-11-17 Thread Karel Miklav
John Murphy wrote:
IANAD but there's a game called cube in the ports which seems to use
a good 3D engine that may interest you.  http://wouter.fov120.com/cube/
Thanks John, it looks interesting.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problems compiling sample OpenGL apps .

2004-11-16 Thread Karel Miklav
Karel Miklav wrote:
Some example apps. that work perfectly under Mandrake are not built
properly in FreeBSD 5.3 RC1 / X.Org. All I get is a window filled with
whatever was behind it.
I should have linked with -pthread.
Anybody here doing OpenGL development on FreeBSD? I need a 3D engine and 
there's nothing in the Ports. It looks like I'll have to port Irrlicht 
or Ogre, if none comes with a better idea :)

Flowers,
Karel Miklav
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 5.3-release-i386-disc2.iso will not burn

2004-11-09 Thread Karel Miklav
jkcooke wrote:
I have downloaded both of the 5.3 i386 isos and the miniinstall iso, 
disc1 and the miniinstall burn an image, disc 2 does not. I downloaded  
disc2  from two  additional  ftp sites  with the same result.
There's probably nothing wrong with the image, I had the same issue with 
Nero. Check signature with some utility (md5, gpg...) just to be sure 
than burn with cdrecord (http://www.fokus.gmd.de/research/cc/
glone/employees/joerg.schilling/private/cdrecord.html):

cdrecord -help
cdrecord -scanbus
cdrecord dev=1,1,0 5.3-release-i386-disc2.iso
Put the value returned by -scanbus in the dev parameter upthere.
I'd still like to know what is the problem with this ISO as I didn't 
find a Windows utility to handle it sucessfuly. Beside cdrecord :)

Regards,
Karel
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: re bittorrent

2004-11-08 Thread Karel Miklav
I don't believe in democracy but in this case it could come handy. 
Somebody could propose like: let's get this fuck off the list and we'd 
say ... well ... I say YES!

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


NFS problems

2004-11-05 Thread Karel Miklav
I have a FreeBSD 5.3RC1 and Mandrake 10 Connected over NFS. Server is on 
Mandrake and FreeBSD is only client. Transfer rate for files is great, 
but scanning folders on the NFS mount is ubearably slow. CPU usage on 
both machines is close to 0%, on Mandrake I can see a nfsd daemon or two 
fired up from time to time, client is waiting in the loop. What could be 
wrong?

Regards,
Karel
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problems compiling sample OpenGL apps .

2004-11-01 Thread Karel Miklav
Some example apps. that work perfectly under Mandrake are not built
properly in FreeBSD 5.3 RC1 / X.Org. All I get is a window filled with
whatever was behind it.
Glxgears run well, everything is compiled and linked without any
problem. If I play with the order of GL libraries linked, there is some
improvement, but the display is garbled and there's no animation.
Anybody have any idea what am I doing wrong?
--
Regards,
Karel
--
cat hello.c
#include GL/glut.h
void display(void)
{
   // clear all pixels
   glClear (GL_COLOR_BUFFER_BIT);
   //draw white polygon
   glColor3f (1.0, 1.0, 1.0);
   glBegin(GL_POLYGON);
  glVertex3f (0.25, 0.25, 0.0);
  glVertex3f (0.75, 0.25, 0.0);
  glVertex3f (0.75, 0.75, 0.0);
  glVertex3f (0.25, 0.75, 0.0);
   glEnd();
   // don't wait, start processing buffered OpenGL routines
   glFlush ();
}
void init (void)
{
   // select clearing color
   glClearColor (0.8, 0.0, 0.0, 0.0);
   // initialize viewing values
   glMatrixMode(GL_PROJECTION);
   glLoadIdentity();
   glOrtho(0.0, 1.0, 0.0, 1.0, -1.0, 1.0);
}
int main(int argc, char * argv[])
{
   glutInit(argc, argv);
   glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);
   glutInitWindowSize (250, 250);
   glutInitWindowPosition (100, 100);
   glutCreateWindow (hello);
   init ();
   glutDisplayFunc(display);
   glutMainLoop();
   return 0;
}


cat makefile
CC = gcc
INCLUDES = -I/usr/include
LLDLIBS = -lglut -lGLU -lGL -lXmu -lXext -lX11 -lm -L/usr/X11R6/lib
TARGETS = hello
all: default
default: $(TARGETS)
.c.o:
$(CC) -c $(INCLUDES) $
$(TARGETS): [EMAIL PROTECTED]
$(CC) [EMAIL PROTECTED] $(LLDLIBS) -o $@
clean:
-rm -f *.o *~ $(TARGETS)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IBM Thinkpad R51 FreeBSD 4.10???

2004-09-02 Thread Karel Miklav
Hakim Z. Singhji wrote:
I recently purchased an IBM Thinkpad R51 and I was looking to install
FreeBSD 4.10. Has anyone ever done this? Should I anticipate any
problems? Lastly I have never installed FreeBSD on a laptop before are
there things that I should know before I get started? Thanks in advance
for you help.
I think you should be careful while partitioning the hard drive with 
newer models. You better check reports of Linux instalations and sites 
like http://forum.thinkpads.com and 
http://gerda.univie.ac.at/freebsd-laptops.

Regards,
Karel Miklav
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]