Re: Wine on FBSD-7.0 amd64. Does it run?

2009-07-09 Thread Adam Vande More
On Wed, Jul 8, 2009 at 9:32 AM, kxorrao luizbcam...@gmail.com wrote:

What port of wine should I download in order to play 32bit .exe
 files on FreeBSD-7.0 amd64? Linux wine or Wine?


It's not a terribly big port.  Compile it and check.  Generally if there are
problems with port on a specific platform, it will not build.  Use regular
wine/avoid emulators within emulators if at all possible.

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


Install guide (Was: Re: Urgent help needed : portmaster dies on py-cairo)

2009-07-09 Thread Mel Flynn
On Wednesday 08 July 2009 19:45:05 Manish Jain wrote:

 ==
 Part-1)Immediately after a fresh FreeBSD-7.2#RELEASE install :

 I assume you will at some stage or the other install a linux port, eg
 acroread8 or acroread9, linux-ymessenger, etc. Incidentally, unless you
 have specific needs, prefer acroread8 over acroread9.

Adding to assumptions: one wants to use gnome as desktop.

 All following steps are to be executed as root.

 a)Make sure /etc/rc.conf has at least the following 5 lines.
 dbus_enable=YES
 hald_enable=YES
 polkitd_enable=YES
 gnome_enable=YES
 linux_enable=YES

 b)Make sure /boot/loader.conf has at least the following 3 lines.
 kern.maxdsiz=734003200

This is a) not needed and b) doesn't do anything useful, since the default 
will still be the compiled default, unless you also set kern.defdsiz. The only 
thing this does is allow the datasize limit to be raised to 700M, using 
limits(1), but since the default still is 512M an unaware application will 
still fail malloc(3) if allocating beyond 512M.

 linprocfs_load=YES
 linsysfs_load=YES

Which ports you mention require linsysfs?

 c)Make sure /etc/fstab has at least the following 3 lines.
 proc/proc   procfs
 rw00
 linproc /usr/compat/linux/proclinprocfsrw00
 linsys   /usr/compat/linux/sys  linsysfs  rw0
  0

Better to use /compat/linux/*. While by default it resides on /usr, it is 
convenient to be able to change the symlink, for example to test a new 
linux_base port without wiping the current one or to free up space on the /usr 
partition.

 d)Upgrage from python25 to python26 along with all dependent ports
 as follows :

 rm -rf /usr/ports 2/dev/null

Or you can simply not install the ports distribution, since this is the first 
thing you do. I also don't understand why you install a boatload of packages 
from CD/DVD only to complicate things by upgrading by my estimate at least 
70%. Why not just portsnap and build the leafs?

 mkdir -p /usr/ports/distfiles
 portsnap fetch extract
 cd  /usr/ports/ports-mgmt/portupgrade
 make deinstall  2/dev/null
 make install clean
 portupgrade -C -r -o  lang/python26  lang/python25
 portupgrade -rfx python26 python26
 pkgdb -F

 Before doing anything further, reboot.

This needs a reason. I don't know any.

 Immediately after reboot, execute
 Part-2.


 Part-2) Steps to be followed whenever a significant number new
 ports/patches are available and you need to ensure your ports as well as
 your ports directory are up to date :

 thisdate=`date +%Y-%m-%n`
I assume that's %d, since %n is a newline.

 rm  /root/portupgrade-${thisdate}.log 2/dev/null
 portsnap fetch update
 portupgrade -ace -uRl  /root/portupgrade-${thisdate}.log
 pkgdb -F

 Note : If you plan to install any linux ports, you should have said yes
 to 'Linux binary compatibility' at the time you installed FreeBSD. If
 you didn't, the very first port you need to build is
 emulators/linux_base-fc4

If you use net/skype you will need linux_base-fc6, so again using sysinstall 
can be a problem.

-- 
Mel
___
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: FixIt CD Tool Availability

2009-07-09 Thread Mel Flynn
On Saturday 04 July 2009 11:06:52 Michel Talon wrote:
 Drew Tomlinson wrote:
  The command 'gmirror label root ad8a ad6a' does not return an error but
  no device is created in /dev/mirror
 
  The command 'zpool create data  raid1z ad14d ad12d ad8d ad6d' gives me
  an error about the ZFS library being unavailable.
 
  Are these tools supposed to work when using the Fix It CD?  If not, does
  7.2-RELEASE-amd64-disc1.iso have these tools?

 One can load kernel modules from the fixit cdrom, but as far as i
 remember this requires some manipulations.

snip chrooting to /mnt2 and redoing shell env

The manipulation is far simpler:
sysctl kern.module_path=/dist/boot/kernel

It's so simple, I don't know why it's not set in the fixit shell. And after 
battling with gmirror and a faulty IDE cable last weekend, I really hated 
typing it.
-- 
Mel
___
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: portupgrade question

2009-07-09 Thread dan
On Thursday 09 July 2009 01:44:14 Jonathan Chen wrote:
 On Wed, Jul 08, 2009 at 10:20:41PM +0100, RW wrote:
  On Thu, 9 Jul 2009 08:00:28 +1200
 
  Jonathan Chen j...@chen.org.nz wrote:
   On Wed, Jul 08, 2009 at 02:50:17PM +0200, dan wrote:
THat's the point !
   
isnt that -R implied by -N ?
   
From the portupgrade  man page
   
   
[...]
-N
--new
Install a new port/package when a specified package is not
installed. Prior to the installation a new port/package, all the
required packages are upgraded.
  
   No. Since the dependant package *is* installed. It's just not up
   to date.
 
  I don't understand what you're are saying here. My reading of the
  manpage is the same as Dan's: when you install kdeadmin with
  portupgrade -N, everything that kdeadmin requires will be upgraded i.e.
  brought up to date.

 My mistake. It may be a regression with portupgrade; or just that the
 feature in the second sentence has never been implemented due to the
 overlap with -R

Ah, I will send anemail to the maintainer, then. Let's investigate a bit 
more ! ;-)

Many Thanks for your answers!

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


Setup Spectra8 (btb878) capture card in FreeBSD

2009-07-09 Thread ovi freebsd

Hi,

Anybody uses Spectra 8 (btb878) in FreeBSD?
The card model is that: http://www.ituner.com/spectra.htm

The manufacturer claims it works 100% under linux using BTTV 878.
I wonder if I can make it work under FreeBSD 7.2

After loading the module i got:

bktr0: BrookTree 878 mem 0x93007000-0x93007fff irq 21 at device 8.0 on 
pci8

bktr0: [GIANT-LOCKED]
bktr0: [ITHREAD]
bktr0: Warning - card vendor 0xaa0c (model 0x146c) unknown.
bktr0: Pinnacle/Miro TV, no tuner.
bktr1: BrookTree 878 mem 0x93005000-0x93005fff irq 22 at device 9.0 on 
pci8

bktr1: [GIANT-LOCKED]
bktr1: [ITHREAD]
bktr1: Warning - card vendor 0xaa0d (model 0x146d) unknown.
bktr1: Pinnacle/Miro TV, no tuner.
bktr2: BrookTree 878 mem 0x93003000-0x93003fff irq 23 at device 10.0 
on pci8

bktr2: [GIANT-LOCKED]
bktr2: [ITHREAD]
bktr2: Warning - card vendor 0xaa0e (model 0x146e) unknown.
bktr2: Pinnacle/Miro TV, no tuner.
bktr3: BrookTree 878 mem 0x93001000-0x93001fff irq 20 at device 11.0 
on pci8

bktr3: [GIANT-LOCKED]
bktr3: [ITHREAD]
bktr3: Warning - card vendor 0xaa0f (model 0x146f) unknown.
bktr3: Pinnacle/Miro TV, no tuner.


I've also loaded:
362 0xc6bf1000 2000 bktr_mem.ko
373 0xc6c05000 3000 iicbus.ko
381 0xc6c09000 4000 iicbb.ko
393 0xc6c0d000 2000 smbus.ko
401 0xc6c14000 3000 smb.ko
411 0xc6c17000 3000 iicsmb.ko
421 0xc6be 11000bktr.ko

Is something else I can do so my card could be properly detected and to 
be able to get signal/record on all 4 inputs (none of them are working).


uname -a
FreeBSD root 7.2-STABLE FreeBSD 7.2-STABLE #2: Sun May 17 22:52:20 EEST 
2009 r...@localhost:/usr/obj/usr/src/sys/WRK  i386



best regards
ovi

___
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


Secure apache with php

2009-07-09 Thread Nicolas Letellier
Hello.

I want to secure my Apache/PHP environment without :
 - safe_mode
 - suphp / suexec

So, I found this : http://mpm-itk.sesse.net/ In this page, we can see
that a FreeBSD port exists, but I can't find it. What do you thinh about
it? This tool seems to be good.

Which Apache version do you advice?
apache13
apache20
apache22
apache22-peruser-mp

Best regards,


-- 
Nicolas
___
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: Secure apache with php

2009-07-09 Thread Nicolas Letellier
Le Thu, 9 Jul 2009 13:18:39 +0300,
Reko Turja reko.tu...@liukuma.net a écrit :

  I want to secure my Apache/PHP environment...
 
 Full suhosin, both patch and mod for the PHP. IIRC suhosin patch is 
 optional in PHP port and the mod can be installed via ports.
 (http://www.hardened-php.net/suhosin/index.html)
 
 Apache environment and binaries set up in a jail.
 
  Which Apache version do you advice?
 
 I reckon these days 2.2 would be the best in regards of future 
 upgrades and development.
 
 -Reko 
 
Thanks. I already use suhosin patch in mod_php.

I have few users on this machine, each use a separate directory
(/var/www/user). I do not want to make a jail for each one.

That's why mpm-itk seems to be good (instead of safe_mode /
open_basedir).

Best regards,



-- 
Nicolas
___
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: Secure apache with php

2009-07-09 Thread Reko Turja

I want to secure my Apache/PHP environment...


Full suhosin, both patch and mod for the PHP. IIRC suhosin patch is 
optional in PHP port and the mod can be installed via ports.

(http://www.hardened-php.net/suhosin/index.html)

Apache environment and binaries set up in a jail.


Which Apache version do you advice?


I reckon these days 2.2 would be the best in regards of future 
upgrades and development.


-Reko 


___
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: How can I use BD-RE with UFS on geli?

2009-07-09 Thread SAITOU Toshihide
From: SAITOU Toshihide to...@ruby.ocn.ne.jp
Subject: Re: How can I use BD-RE with UFS on geli?
Date: Wed, 15 Apr 2009 19:45:48 +0900 (JST)

 In message: 20090412.134212.26081.to...@ruby.ocn.ne.jp
 SAITOU Toshihide to...@ruby.ocn.ne.jp writes:
 I tried BD-RE with UFS on geli but didn't success.
 What was wrong the below?
 
 P.S.  BD-RE with UFS is the same result (not usable).
 
 
 1. format the disk
 
dvd+rw-format is failed but after this step the disk is
newfs-able.
 
# diskinfo -v /dev/acd0
/dev/acd0
2048# sectorsize
8796093020160   # mediasize in bytes (8.0T)
4294967295  # mediasize in sectors
 
# kldload atapicam
# dvd+rw-format /dev/cd0
# kldunload atapicam
 
# diskinfo -v /dev/acd0 
/dev/acd0
2048# sectorsize
24220008448 # mediasize in bytes (23G)
11826176# mediasize in sectors
 
 2. newfs
 
# newfs /dev/acd0
 
the following message was detected:
 
kernel: acd0: FAILURE - READ_BIG MEDIUM ERROR asc=0x11 ascq=0x05 
 
 
 3. glabel and mount
 
 
 but the disk access frequently failed with these messages
 (offset and length is not always the same):
 
 kernel: acd0: FAILURE - READ_BIG MEDIUM ERROR asc=0x11 ascq=0x05 
 kernel: g_vfs_done():label/DailyBackup[READ(offset=2697789440, 
 length=16384)]error = 5
 

Since I wrote this message and did something, I rarely see
the READ_BIG MEDIUM ERROR error for now, almost ok, thanks.

This is something I did JFYI:

* firmware update
* gnome and related ports update
  (include devel/fam to devel/gamin change)
* sector size change

   # dd if=/dev/zero bs=2048 count=1 of=/dev/acd0
   (new media emits READ_BIG MEDIUM ERROR, maybe inevitable(?))

   # geli init -s 4096 /dev/acd0
   # geli attach acd0

   # dd if=/dev/zero bs=4194304 count=256 of=/dev/acd0.eli
   256+0 records in
   256+0 records out
   1073741824 bytes transferred in 347.738376 secs (3087786 bytes/sec)

   # newfs -b 65536 -S 4096 /dev/acd0.eli
   # glabel label -v DailyBackup /dev/acd0.eli

   # mount /dev/label/DailyBackup /od
   # tar cf - foo | gzip -9 | dd bs=65536 if=/dev/stdin of=/od/foo.tgz 
   18697+2 records in
   18697+2 records out
   1225348564 bytes transferred in 733.809511 secs (1669846 bytes/sec)

The theoretical transfer speed is 4.5MB/s (288 Mbps) so this
is slow even I use the x2 BD-RE media and drive but I don't
know which part is saturated.

Thanks,


SAITOU Toshihide
___
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: How to symlink devfs devices?

2009-07-09 Thread Sagara Wijetunga
Paul B. Mahol writes: 



Is it possible to create a symlink to a device and use the symlink in place
of the real device name in FreeBSD, especially in version 7.2? 


1. A disk
   /dev/camera - /dev/da0s1


devfs.conf(5)


2. A network device
   re0 - lan0


same as above, but there is way to completly hide re0:
# ifconfig re0 name lan0 



Hi FreeBSD community 

Thank you all for replies. 

Yes, USB Mass Storage devices could be symlinked (may be others too) but 
ethernet devices cannot be symlinked but ethernet interfaces can be renamed. 

I have one more question, how do I know what device is attached to an 
ethernet interface after it is renamed? 


Regards
Sagara
___
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: Secure apache with php

2009-07-09 Thread Julien Cigar
What I do is running PHP in FastCGI mode (with something like x-cache)
with a dedicated user for each webapp for which I have a dedicated
script, for example :

=
jci...@bccm-it ~ % ls -l /usr/local/www/apache22/cgi-bin
(...)
-rwxr-xr-x  1 www-scarwww-scar202 Oct 27  2008
scar-php-wrapper.fcgi*
-rwxr-xr-x  1 www-lwatch  www-lwatch  202 Apr 24 12:05
sfa-php-wrapper.fcgi*
-rwxr-xr-x  1 www-tapir   www-tapir   202 Oct 27  2008
tapir-php-wrapper.fcgi*
(...)
=

each .fcgi contain something like :

=
jci...@bccm-it ~ %
cat /usr/local/www/apache22/cgi-bin/scar-php-wrapper.fcgi
#!/bin/sh

#PHPRC=/path/to/php.ini
#export PHPRC

PHP_FCGI_CHILDREN=3
export PHP_FCGI_CHILDREN

PHP_FCGI_MAX_REQUESTS=1
export PHP_FCGI_MAX_REQUESTS

exec /usr/local/bin/php-cgi -b 127.0.0.1:5009
=

you can control how much children have to be fork(), the number of
maximum requests per process before it gets killed and re-launched
(usefull if a webapp leaks memory), etc

Then in your Apache config you put something like :

=
FastCgiExternalServer /usr/local/www/apache22/cgi-bin/scar-php-wrapper.fcgi 
-host 127.0.0.1:5009 -idle-timeout 1800

Location /cgi-bin/scar-php-wrapper.fcgi
SetHandler fastcgi-script
/Location

Directory /usr/local/www/apache22/data/scarmarbin
Order allow,deny
Allow from all

AddHandler php-fastcgi .php
Action php-fastcgi /cgi-bin/scar-php-wrapper.fcgi
/Directory
=

hope it helps,

best regards,
Julien


On Thu, 2009-07-09 at 12:22 +0200, Nicolas Letellier wrote:
 Le Thu, 9 Jul 2009 13:18:39 +0300,
 Reko Turja reko.tu...@liukuma.net a écrit :
 
   I want to secure my Apache/PHP environment...
  
  Full suhosin, both patch and mod for the PHP. IIRC suhosin patch is 
  optional in PHP port and the mod can be installed via ports.
  (http://www.hardened-php.net/suhosin/index.html)
  
  Apache environment and binaries set up in a jail.
  
   Which Apache version do you advice?
  
  I reckon these days 2.2 would be the best in regards of future 
  upgrades and development.
  
  -Reko 
  
 Thanks. I already use suhosin patch in mod_php.
 
 I have few users on this machine, each use a separate directory
 (/var/www/user). I do not want to make a jail for each one.
 
 That's why mpm-itk seems to be good (instead of safe_mode /
 open_basedir).
 
 Best regards,
 
 
 
-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: jci...@ulb.ac.be
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52

No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

___
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


devd configuration questions

2009-07-09 Thread Sagara Wijetunga
Hi FreeBSD community 

I have few questions regarding devd configuration: 

1. What is the difference between attach or notify and when to use them? 

2. What are the possible values for class in attach and detach 
statements? 

3. What are the possible values for subdevice in attach and detach 
statements? 

4. What are the possible values for system, subsystem, type in 
notify statement? 


Kind regards
Sagara
___
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: devd configuration questions

2009-07-09 Thread Sagara Wijetunga

Sagara Wijetunga wrote:

Hi FreeBSD community
I have few questions regarding devd configuration:
1. What is the difference between attach or notify and when to use 
them?
2. What are the possible values for class in attach and detach 
statements?
3. What are the possible values for subdevice in attach and 
detach statements?
4. What are the possible values for system, subsystem, type in 
notify statement?

Kind regards
Sagara
Sorry, I forgot to mention, I need above information regarding FreeBSD 
7.2 (i386).


Regards
Sagara
___
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: Secure apache with php

2009-07-09 Thread Nicolas Letellier
Le Thu, 09 Jul 2009 12:49:57 +0200,
Julien Cigar jci...@ulb.ac.be a écrit :

 What I do is running PHP in FastCGI mode (with something like x-cache)
 with a dedicated user for each webapp for which I have a dedicated
 script, for example :
 
 =
 jci...@bccm-it ~ % ls -l /usr/local/www/apache22/cgi-bin
 (...)
 -rwxr-xr-x  1 www-scarwww-scar202 Oct 27  2008
 scar-php-wrapper.fcgi*
 -rwxr-xr-x  1 www-lwatch  www-lwatch  202 Apr 24 12:05
 sfa-php-wrapper.fcgi*
 -rwxr-xr-x  1 www-tapir   www-tapir   202 Oct 27  2008
 tapir-php-wrapper.fcgi*
 (...)
 =
 
 each .fcgi contain something like :
 
 =
 jci...@bccm-it ~ %
 cat /usr/local/www/apache22/cgi-bin/scar-php-wrapper.fcgi
 #!/bin/sh
 
 #PHPRC=/path/to/php.ini
 #export PHPRC
 
 PHP_FCGI_CHILDREN=3
 export PHP_FCGI_CHILDREN
 
 PHP_FCGI_MAX_REQUESTS=1
 export PHP_FCGI_MAX_REQUESTS
 
 exec /usr/local/bin/php-cgi -b 127.0.0.1:5009
 =
 
 you can control how much children have to be fork(), the number of
 maximum requests per process before it gets killed and re-launched
 (usefull if a webapp leaks memory), etc
 
 Then in your Apache config you put something like :
 
 =
 FastCgiExternalServer /usr/local/www/apache22/cgi-bin/scar-php-wrapper.fcgi
 -host 127.0.0.1:5009 -idle-timeout 1800
 
 Location /cgi-bin/scar-php-wrapper.fcgi
 SetHandler fastcgi-script
 /Location
 
 Directory /usr/local/www/apache22/data/scarmarbin
 Order allow,deny
 Allow from all
 
 AddHandler php-fastcgi .php
 Action php-fastcgi /cgi-bin/scar-php-wrapper.fcgi
 /Directory
 =
 
 hope it helps,
 
 best regards,
 Julien
 
 
 On Thu, 2009-07-09 at 12:22 +0200, Nicolas Letellier wrote:
  Le Thu, 9 Jul 2009 13:18:39 +0300,
  Reko Turja reko.tu...@liukuma.net a écrit :
  
I want to secure my Apache/PHP environment...
   
   Full suhosin, both patch and mod for the PHP. IIRC suhosin patch
   is optional in PHP port and the mod can be installed via ports.
   (http://www.hardened-php.net/suhosin/index.html)
   
   Apache environment and binaries set up in a jail.
   
Which Apache version do you advice?
   
   I reckon these days 2.2 would be the best in regards of future 
   upgrades and development.
   
   -Reko 
   
  Thanks. I already use suhosin patch in mod_php.
  
  I have few users on this machine, each use a separate directory
  (/var/www/user). I do not want to make a jail for each one.
  
  That's why mpm-itk seems to be good (instead of safe_mode /
  open_basedir).
  
  Best regards,
  
  
  
When I tested php in cgi, performances were bad. That's why, php_mod is
better (in my case !=

-- 
Nicolas
___
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: Secure apache with php

2009-07-09 Thread Julien Cigar
On Thu, 2009-07-09 at 13:43 +0200, Nicolas Letellier wrote:
 Le Thu, 09 Jul 2009 12:49:57 +0200,
 Julien Cigar jci...@ulb.ac.be a écrit :
 
  What I do is running PHP in FastCGI mode (with something like x-cache)
  with a dedicated user for each webapp for which I have a dedicated
  script, for example :
  
  =
  jci...@bccm-it ~ % ls -l /usr/local/www/apache22/cgi-bin
  (...)
  -rwxr-xr-x  1 www-scarwww-scar202 Oct 27  2008
  scar-php-wrapper.fcgi*
  -rwxr-xr-x  1 www-lwatch  www-lwatch  202 Apr 24 12:05
  sfa-php-wrapper.fcgi*
  -rwxr-xr-x  1 www-tapir   www-tapir   202 Oct 27  2008
  tapir-php-wrapper.fcgi*
  (...)
  =
  
  each .fcgi contain something like :
  
  =
  jci...@bccm-it ~ %
  cat /usr/local/www/apache22/cgi-bin/scar-php-wrapper.fcgi
  #!/bin/sh
  
  #PHPRC=/path/to/php.ini
  #export PHPRC
  
  PHP_FCGI_CHILDREN=3
  export PHP_FCGI_CHILDREN
  
  PHP_FCGI_MAX_REQUESTS=1
  export PHP_FCGI_MAX_REQUESTS
  
  exec /usr/local/bin/php-cgi -b 127.0.0.1:5009
  =
  
  you can control how much children have to be fork(), the number of
  maximum requests per process before it gets killed and re-launched
  (usefull if a webapp leaks memory), etc
  
  Then in your Apache config you put something like :
  
  =
  FastCgiExternalServer /usr/local/www/apache22/cgi-bin/scar-php-wrapper.fcgi
  -host 127.0.0.1:5009 -idle-timeout 1800
  
  Location /cgi-bin/scar-php-wrapper.fcgi
  SetHandler fastcgi-script
  /Location
  
  Directory /usr/local/www/apache22/data/scarmarbin
  Order allow,deny
  Allow from all
  
  AddHandler php-fastcgi .php
  Action php-fastcgi /cgi-bin/scar-php-wrapper.fcgi
  /Directory
  =
  
  hope it helps,
  
  best regards,
  Julien
  
  
  On Thu, 2009-07-09 at 12:22 +0200, Nicolas Letellier wrote:
   Le Thu, 9 Jul 2009 13:18:39 +0300,
   Reko Turja reko.tu...@liukuma.net a écrit :
   
 I want to secure my Apache/PHP environment...

Full suhosin, both patch and mod for the PHP. IIRC suhosin patch
is optional in PHP port and the mod can be installed via ports.
(http://www.hardened-php.net/suhosin/index.html)

Apache environment and binaries set up in a jail.

 Which Apache version do you advice?

I reckon these days 2.2 would be the best in regards of future 
upgrades and development.

-Reko 

   Thanks. I already use suhosin patch in mod_php.
   
   I have few users on this machine, each use a separate directory
   (/var/www/user). I do not want to make a jail for each one.
   
   That's why mpm-itk seems to be good (instead of safe_mode /
   open_basedir).
   
   Best regards,
   
   
   
 When I tested php in cgi, performances were bad. That's why, php_mod is
 better (in my case !=
 

It's not CGI, it's FastCGI.
There is no performance loss if you use an opcode cacher (like x-cache).

-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: jci...@ulb.ac.be
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52

No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

___
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: Utah Open Source Conference

2009-07-09 Thread John Nielsen
On Wednesday 08 July 2009 23:02:00 Adam Barrett wrote:
 Dear Sir:

That's your first misconception (of at least two, I'm afraid). 
freebsd-questions is a mailing list intended for users of FreeBSD to ask 
questions which can then be answered by other members of the community.

 My name is Adam Barrett and I am with the Utah Open Source
 Foundation.This coming October we are proud to present our Third
 Annual Utah Open Source Conference, the premier gathering of 600+
 Geeks, Nerds, and just plain folks interested in Open Source and
 Technology.

That's interesting. A link to http://utosc.com would have been helpful here. 
(I first landed at your blog via http://utahcon.com.)

 This year we would like to extend the opportunity to FreeBSD to
 sponsor our event.

Misconception number two. FreeBSD is an operating system, not a corporation or 
other human entity. The FreeBSD Project consists mostly of developers and 
other volunteers, and is likely to have neither motive nor means to sponsor 
your event.

 I have attached a break down of our Sponsorship 
 packages, which I think you will find are extremely generous. I would
 suggest that you go with a Diamond package. This will give you the
 best penetration you can get in our conference.

See above. While we (and I use the term as a member of the community only, I 
don't speak for the FreeBSD Project) would like to see the project grow, 
paying for marketing is probably not the way it is going to happen.

On the other hand, if you wanted to offer a non-profit booth (gratis) to the 
FreeBSD Foundation, that would certainly be appropriate and probably 
well-received. See http://freebsdfoundation.org for contact and other 
information.

 I look forward to seeing FreeBSD at the Utah Open Source Conference this
 fall!

Maybe someone will show up with a laptop running FreeBSD. Or you could use a 
FreeBSD box to provide network services for the conference..

JN
___
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: Secure apache with php

2009-07-09 Thread Nicolas Letellier
Le Thu, 09 Jul 2009 14:36:11 +0200,
Julien Cigar jci...@ulb.ac.be a écrit :

  When I tested php in cgi, performances were bad. That's why,
  php_mod is better (in my case !=
  
 
 It's not CGI, it's FastCGI.
 There is no performance loss if you use an opcode cacher (like
 x-cache).
 
And is anyboy use mpm-itk ?
I'm interested more with this solution than another php fix (like
safe_mode, open_basedir or cgi/fastcie).

-- 
Nicolas
___
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: Secure apache with php

2009-07-09 Thread Pierre Guinoiseau
Just build www/apache22 with WITH_MPM=itk and you'll have it. :)

Then add something like this in each vhost:

  IfModule mpm_itk_module
AssignUserId my_user my_group
  /IfModule


Nicolas Letellier wrote:
 Le Thu, 09 Jul 2009 14:36:11 +0200,
 Julien Cigar jci...@ulb.ac.be a écrit :
 
 When I tested php in cgi, performances were bad. That's why,
 php_mod is better (in my case !=

 It's not CGI, it's FastCGI.
 There is no performance loss if you use an opcode cacher (like
 x-cache).

 And is anyboy use mpm-itk ?
 I'm interested more with this solution than another php fix (like
 safe_mode, open_basedir or cgi/fastcie).
 



signature.asc
Description: OpenPGP digital signature


jail/system crash with mount_unionfs

2009-07-09 Thread Jim
OS: FreeBSD 7.2 release / Generic kernel
I used CSUP to download the source tree, and the RELENG_7_2, no date
specified. I didn't rebuild the base OS world/kernel.

I have installed a lot of ports on the main system, most of what the
jail would need is also already installed - so the distfiles and ports
directories are already setup to speed of the install process. I
figured I'd save time and effort and use unionfs to allow both systems
to use the same ports directory (to be safe, I won't compile things
from both systems at the same time, but keeping the same ports
directory was fine.

I followed the jail creation instructions in the handbook posted on
the www.freebsd.org

Once the jail was created, I made a script to union the ports directories:
ts.org_mount_ports
#!/bin/sh
mount_unionfs /usr/ports /data/jail/ts.org/usr/ports/

I also have my jail shell startup script:
ts.org_shell
#!/bin/sh
jail -s 2 /data/jail/ts.org/ ts.org.mydomain 192.168.1.83 /bin/sh


[s...@boromir /data/jail]$ ls ts.org/usr/ports
[s...@boromir /data/jail]$ sudo ./ts.org_mount_ports
[s...@boromir /data/jail]$ ls ts.org/usr/ports
... ports directory listing omitted
[s...@boromir /data/jail]$ sudo ./ts.org_shell
# cd /usr/ports
# ls
The base operating system hangs at this point.



later:
[s...@boromir /data/jail]$ ls ts.org/usr/ports
[s...@boromir /data/jail]$ cd ts.org/usr/ports
[s...@boromir /data/jail/ts.org/usr/ports]$ cp -rf /usr/ports/* .
[s...@boromir /data/jail/ts.org/usr/ports]$ cd /data/jail
[s...@boromir /data/jail]$ ls ts.org/usr/ports
... ports directory listing omitted
[s...@boromir /data/jail]$ sudo ./ts.org_shell
# cd /usr/ports
# ls
... ports directory listing omitted


As you can see, there is a work around, so I'm not that /bothered/ by
this, but it'd be nice to know what's up. Am I doing something wrong?
If not, can anyone replicate this? Should I file a bug report?

Thanks,
-Jim Stapleton
___
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 for a high school class? (long)

2009-07-09 Thread Chris

Sorry for the OT-ness of this. I only work with FreeBSD for servers.
Have used it as the sole systems for a business since the late 1900s.
Twice I've put up X-Windows machines but we never bothered to
use them for one reason or another. Now my son's school is short
computers for a High School HTML class I'm going to help teach
this fall. The official teacher is excited about FreeBSD since we can
use old equipment that is donated.

There are two issues. We will not get enough FreeBSD systems up
to cover all kids in the class. Some will have to use the 10.4/3 OS-X
G3s we already have. For the remainder of systems, I've told them
I need a minimum 256GB Ram, 500+Mhz, ~10GB hard drive. I will
put Apache on both types of boxes so they have a testing platform,
hope to put firefox on each so they have a consistent browser. The
confusing thing will be Finder and Textedit, versus whatever I use for
a window manager on the FreeBSD systems.

The two questions are:

1. Taking the specs into account, what is the window manager that
will provide the closest match to the Apple desktop for mouse ops,
browsing files/directories, and editing text files. I suppose I should
add running Firefox (or a reasonable similar browser that will
render HTML and execute Javascript identically).

I don't mean cosmetically, just enough that there isn't too much
needing to teach a window manager. Finder is relatively invisible
from a teaching standpoint as is Textedit, Firefox is going to be
reasonably standard (this is going to teach HTML standards, not
how to use windowed drag and drop page generation products,
they will be using a text editor and working with raw HTML, CSS
and JavaScript). But what I don't want to be doing is having some
learning vi (even though if this were an advanced class, that is
precisely what I'd expect ;-)), while others are using textedit.
The course is HTML. Mouse button operations should be close,
a window that gives a simple file directory and a text editor that
doesn't require learning a character command set would be the
target.

2. Am I too lean on the specs for the free AMD/Intel boxes we
are requesting parents cough up?

The district sadly is being forced to go to windows by the
state, and now only has these old antique Macs
free and has no Intel/AMD boxes. These will all come from
parents of the program and leverage the fact that people
like to replace perfectly good boxes because of spyware on
windows. I personally still have boxes with less than 100GB
RAM and sub-500 mhz processors running 6.x (and I think 7.0)
but I use those as firewalls, I've never used a window manager
so perhaps my view of FreeBSDs efficiency is optimistic. Are
the specs too low for *some* X environment?

Constraint: I already broached the subject of putting FreeBSD
on the G3s using the PowerPC version. Unfortunately, the 6
Apples are used by another class on OS-X. 
___

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 for a high school class? (long)

2009-07-09 Thread Glen Barber
Hi, Chris

On Thu, Jul 9, 2009 at 10:58 AM, Chriseaglet...@hughes.net wrote:
 Sorry for the OT-ness of this. I only work with FreeBSD for servers.
 Have used it as the sole systems for a business since the late 1900s.
 Twice I've put up X-Windows machines but we never bothered to
 use them for one reason or another. Now my son's school is short
 computers for a High School HTML class I'm going to help teach
 this fall. The official teacher is excited about FreeBSD since we can
 use old equipment that is donated.

 There are two issues. We will not get enough FreeBSD systems up
 to cover all kids in the class. Some will have to use the 10.4/3 OS-X
 G3s we already have. For the remainder of systems, I've told them
 I need a minimum 256GB Ram, 500+Mhz, ~10GB hard drive. I will
 put Apache on both types of boxes so they have a testing platform,
 hope to put firefox on each so they have a consistent browser. The
 confusing thing will be Finder and Textedit, versus whatever I use for
 a window manager on the FreeBSD systems.

 The two questions are:

 1. Taking the specs into account, what is the window manager that
 will provide the closest match to the Apple desktop for mouse ops,
 browsing files/directories, and editing text files. I suppose I should
 add running Firefox (or a reasonable similar browser that will
 render HTML and execute Javascript identically).


Although I will probably be lit on fire for this, I'd have to say KDE3
would probably be the closest.  There even is the baghira theme, which
mimics the OSX interface.  I haven't used either in over a year or so,
however.

 I don't mean cosmetically, just enough that there isn't too much
 needing to teach a window manager. Finder is relatively invisible
 from a teaching standpoint as is Textedit, Firefox is going to be
 reasonably standard (this is going to teach HTML standards, not
 how to use windowed drag and drop page generation products,
 they will be using a text editor and working with raw HTML, CSS
 and JavaScript). But what I don't want to be doing is having some
 learning vi (even though if this were an advanced class, that is
 precisely what I'd expect ;-)), while others are using textedit.
 The course is HTML. Mouse button operations should be close,
 a window that gives a simple file directory and a text editor that
 doesn't require learning a character command set would be the
 target.


You should begin teaching them Vi now. :)

 2. Am I too lean on the specs for the free AMD/Intel boxes we
 are requesting parents cough up?


Are you going to be building apache / xorg / ${YOUR_BROWSER} from
ports or installing packages?  If from ports, this may be a bit
painful as it will take (seemingly) forever to build xorg, etc.

 The district sadly is being forced to go to windows by the
 state, and now only has these old antique Macs

Monopoly, anyone?

 free and has no Intel/AMD boxes. These will all come from
 parents of the program and leverage the fact that people
 like to replace perfectly good boxes because of spyware on
 windows. I personally still have boxes with less than 100GB
 RAM and sub-500 mhz processors running 6.x (and I think 7.0)
 but I use those as firewalls, I've never used a window manager
 so perhaps my view of FreeBSDs efficiency is optimistic. Are
 the specs too low for *some* X environment?

 Constraint: I already broached the subject of putting FreeBSD
 on the G3s using the PowerPC version. Unfortunately, the 6
 Apples are used by another class on OS-X.

HTH


-- 
Glen Barber
___
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 for a high school class? (long)

2009-07-09 Thread Jerry McAllister
On Thu, Jul 09, 2009 at 07:58:21AM -0700, Chris wrote:

- Sorry for the OT-ness of this. I only work with FreeBSD for servers.
- Have used it as the sole systems for a business since the late 1900s.
- Twice I've put up X-Windows machines but we never bothered to
- use them for one reason or another. Now my son's school is short
- computers for a High School HTML class I'm going to help teach
- this fall. The official teacher is excited about FreeBSD since we can
- use old equipment that is donated.
- 
- There are two issues. We will not get enough FreeBSD systems up
- to cover all kids in the class. Some will have to use the 10.4/3 OS-X
- G3s we already have. For the remainder of systems, I've told them
- I need a minimum 256GB Ram, 500+Mhz, ~10GB hard drive. I will
- put Apache on both types of boxes so they have a testing platform,
- hope to put firefox on each so they have a consistent browser. The
- confusing thing will be Finder and Textedit, versus whatever I use for
- a window manager on the FreeBSD systems.
- 
- The two questions are:
- 
- 1. Taking the specs into account, what is the window manager that
- will provide the closest match to the Apple desktop for mouse ops,
- browsing files/directories, and editing text files. I suppose I should
- add running Firefox (or a reasonable similar browser that will
- render HTML and execute Javascript identically).
- 
- I don't mean cosmetically, just enough that there isn't too much
- needing to teach a window manager. Finder is relatively invisible
- from a teaching standpoint as is Textedit, Firefox is going to be
- reasonably standard (this is going to teach HTML standards, not
- how to use windowed drag and drop page generation products,
- they will be using a text editor and working with raw HTML, CSS
- and JavaScript). But what I don't want to be doing is having some
- learning vi (even though if this were an advanced class, that is
- precisely what I'd expect ;-)), while others are using textedit.
- The course is HTML. Mouse button operations should be close,
- a window that gives a simple file directory and a text editor that
- doesn't require learning a character command set would be the
- target.
- 
- 2. Am I too lean on the specs for the free AMD/Intel boxes we
- are requesting parents cough up?

Well, I don't think that you need 256 GB of ram.   Probably 
less than 1 GB, in fact maybe 256 MB will be plenty.   10 GB
of hard disk might be a little tight, but if you aren't doing
databases and making big permanent sites, but only just small
teaching web pages, then you should get by.

jerry


- 
- The district sadly is being forced to go to windows by the
- state, and now only has these old antique Macs
- free and has no Intel/AMD boxes. These will all come from
- parents of the program and leverage the fact that people
- like to replace perfectly good boxes because of spyware on
- windows. I personally still have boxes with less than 100GB
- RAM and sub-500 mhz processors running 6.x (and I think 7.0)
- but I use those as firewalls, I've never used a window manager
- so perhaps my view of FreeBSDs efficiency is optimistic. Are
- the specs too low for *some* X environment?
- 
- Constraint: I already broached the subject of putting FreeBSD
- on the G3s using the PowerPC version. Unfortunately, the 6
- Apples are used by another class on OS-X. 
- ___
- 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


Why this flash drive not detected in devd?

2009-07-09 Thread Sagara Wijetunga

Hi FreeBSD community

This is FreeBSD 7.2 on i386.

sysctl -a | grep dev.umass
dev.umass.1.%desc: Imation Flash Drive, class 0/0, rev 2.00/1.03, addr 3
dev.umass.1.%driver: umass
dev.umass.1.%location: port=6 interface=0
dev.umass.1.%pnpinfo: vendor=0x0718 product=0x0081 devclass=0x00 
devsubclass=0x00 release=0x0103 sernum=14925B00 intclass=0x08 
intsubclass=0x06

dev.umass.1.%parent: uhub4

Following added to /etc/devd.conf:
# Imation Flash Drive, class 0/0, rev 2.00/1.03, addr 3
attach 200 {
   match vendor  0x0718;
   match product 0x0081;
   match serial  14925B00;
   action touch /tmp/Imation-Flash-Drive-detected;
};


Could I know why the flash drive is not detected on attach?

Kind regards
Sagara
___
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: Secure apache with php

2009-07-09 Thread Mister Olli
Hi,

I'm currently using mpm-itk (on debian, but should be replaced with
freebsd soon ;-)).

I'm quite happy with the solution as it's easy to setup many user
accounts for web without ugly access right stuff and all that. apache
never made a problem after setup :-)

unfortunately I've never had the time to do futher hardening for mpm-itk
in special (only 'standard' apache/php hardening is applied). but as I'm
planning to keep this setup and extend userbase after move to freebsd
I'm curious what your results will be.

Regards,
---
Mr. Olli


On Thu, 2009-07-09 at 16:05 +0200, Nicolas Letellier wrote:
 Le Thu, 09 Jul 2009 14:36:11 +0200,
 Julien Cigar jci...@ulb.ac.be a écrit :
 
   When I tested php in cgi, performances were bad. That's why,
   php_mod is better (in my case !=
   
  
  It's not CGI, it's FastCGI.
  There is no performance loss if you use an opcode cacher (like
  x-cache).
  
 And is anyboy use mpm-itk ?
 I'm interested more with this solution than another php fix (like
 safe_mode, open_basedir or cgi/fastcie).
 

___
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 for a high school class? (long)

2009-07-09 Thread Chris

On Jul 9, 2009, at 8:10 AM, Jerry McAllister wrote:


On Thu, Jul 09, 2009 at 07:58:21AM -0700, Chris wrote:
-
- 2. Am I too lean on the specs for the free AMD/Intel boxes we
- are requesting parents cough up?

Well, I don't think that you need 256 GB of ram.   Probably
less than 1 GB, in fact maybe 256 MB will be plenty.   10 GB
of hard disk might be a little tight, but if you aren't doing
databases and making big permanent sites, but only just small
teaching web pages, then you should get by.



Doh! All references to RAM in my post should have been MB, not GB.
I'm too old to type anymore.


jerry



___
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 for a high school class? (long)

2009-07-09 Thread Brent Bloxam

Chris wrote:


The course is HTML. Mouse button operations should be close,
a window that gives a simple file directory and a text editor that
doesn't require learning a character command set would be the
target.



Hi Chris,

Maybe look at using Xfce, which is a lightweight window manager based on 
GTK+ and is available in the ports tree and as a package (from the 
machine specs, I assume you'll be installing packages). The theme you 
use for it will impact performance as well, but the default should be fine.


For text-editing you can try Mousepad 
(http://www.xfce.org/projects/mousepad/) and Thunar 
(http://www.xfce.org/projects/thunar/) for file management

___
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


Port 6139 Wierdness

2009-07-09 Thread Grant Peel
Hi all,

Not sure where else I could post this 

On one server, I am seeing massive numbers of connections from many different 
addresses to 2 different ips on port 6139.

Odd thing, the CPS and Size of the data is very very small.

Did many googles, found nothing.

Anyone seen this before?

Right now I am blocking them with IPFW.

-Grant
___
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 for a high school class? (long)

2009-07-09 Thread Adam Vande More
On Thu, Jul 9, 2009 at 10:52 AM, Brent Bloxam bre...@beanfield.com wrote:

 Chris wrote:

  The course is HTML. Mouse button operations should be close,
 a window that gives a simple file directory and a text editor that
 doesn't require learning a character command set would be the
 target.



 Hi Chris,

 Maybe look at using Xfce, which is a lightweight window manager based on
 GTK+ and is available in the ports tree and as a package (from the machine
 specs, I assume you'll be installing packages). The theme you use for it
 will impact performance as well, but the default should be fine.

 For text-editing you can try Mousepad (
 http://www.xfce.org/projects/mousepad/) and Thunar (
 http://www.xfce.org/projects/thunar/) for file management

 I agree xfce is a good choice.  Another thing you may wish to consider is a
IDE to develop in.  As someone already mentioned, learning vi is invaluable,
but sometimes a gui editor is better suited to the task.  My newest favorite
is Netbeans.  It's compatible with a host of different programming and
markup languages including html.  This will give you a nice gui with syntax
highlighting and many other useful features.  Most could also be found on
vi/vim, but I suspect your students will have an easier time on Netbeans.
It wouldn't be snappy on the hardware you mentioned but should be useable.
Hopefully you have a better system to build packages on.


-- 
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: FreeBSD for a high school class? (long)

2009-07-09 Thread Manolis Kiagias
Brent Bloxam wrote:
 Chris wrote:

 The course is HTML. Mouse button operations should be close,
 a window that gives a simple file directory and a text editor that
 doesn't require learning a character command set would be the
 target.


 Hi Chris,

 Maybe look at using Xfce, which is a lightweight window manager based
 on GTK+ and is available in the ports tree and as a package (from the
 machine specs, I assume you'll be installing packages). The theme you
 use for it will impact performance as well, but the default should be
 fine.

 For text-editing you can try Mousepad
 (http://www.xfce.org/projects/mousepad/) and Thunar
 (http://www.xfce.org/projects/thunar/) for file management


I second XFCE. I've built similar FreeBSD machines and it will work just
fine with 256MB RAM.  You may also use some other lightweight manager
(fluxbox and the like) although these will not provide needed features
(like a file manager) unless you install additional ports.
To get a more Mac OSX look you may wish to install x11/wbar. As for
text editing, I find www/bluefish very nice for HTML. It supports a
number of nice features for HTML and is really very easy to use.
Since you will be installing lots of underpowered machines, I would
suggest you install one and use dump / restore to copy the installation
to the other disks.

shameless-advertising Have a try with my custom XFCE-based DVD at
http://freebsd-custom.wikidot.com /shameless-advertising

___
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: devd configuration questions

2009-07-09 Thread Roland Smith
On Thu, Jul 09, 2009 at 03:02:00AM -0500, Sagara Wijetunga wrote:
 Hi FreeBSD community 
 
 I have few questions regarding devd configuration: 
 
 1. What is the difference between attach or notify and when to use them? 
 
 2. What are the possible values for class in attach and detach 
 statements? 
 
 3. What are the possible values for subdevice in attach and detach 
 statements? 
 
 4. What are the possible values for system, subsystem, type in 
 notify statement? 

This is all covered in the manual page for devd.conf.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpX30ecZCDtK.pgp
Description: PGP signature


Fam Trip to TURKEY for $999 (Refundable)

2009-07-09 Thread Global Access Travel
[http://www.turkeycallingus.com/]

Exclusive Boutique Enterprise

Turkey FAM
ISTANBUL - CAPPADOCIA - KONYA - ANTALYA - PAMUKKALE - KUSADASI
9 Nights / 11 Days  $999

• 5 Continents • 150 Countries Worldwide • 100.000 Hotels •
Instant Confirmation

[http://www.turkeycallingus.com]

[http://www.turkeycallingus.com/turkey-fam/TurkeyFam.htm]
[http://www.turkeycallingus.com/turkey-fam/TurkeyFamItinerary.htm]
[http://www.turkeycallingus.com/turkey-fam/TurkeyFamRates.htm]
[http://www.turkeycallingus.com/turkey-fam/TurkeyFamServices.htm]
[http://www.turkeycallingus.com/turkey-fam/TurkeyFamHotels.htm]

Global Access proudly presents the biggest FAM Trip of the year, teaming
with Turkish Airlines and Turkish Ministry of Tourism and Culture.

As the host of ASTA IDE 2010 and European Capital of Culture 2010, Turkey
is likely to be the one of the most popular destinations in 2010. Those who
act early and get to know this beautiful country better will be able to
give a better insight to their clients and secure more bookings.

Our specially selected travel agents will stay in best hotels in each
town, be escorted by professional, top tour guides, taste exceptionally
good examples of Turkish Cuisine, and get to know Turkey in elegant way.

Join us for a luxury FAM adventure and be our special guest in our
beautiful country!

COMBINE WITH World Travel Market!

One of the biggest travel shows of Europe and the world, WTM, will be
held in London between 9-12 November 2009. Combine your London trip with
Turkey and benefit from great agent rates to see one of the most popular
tourist destinations from USA and Canada.
WE WILL REFUND YOUR MONEY BACK !

Upon booking your 20th passenger on a Global Access Travel Service, we
will refund you the whole tour price that you’ve paid for the FAM Trip.

If you book 20 or more people on a Global Access Travel Service before
the FAM Trip starts, then you will travel for free!

About Us Global Access Travel (GA) was founded in Turkey by a group of
tourism professionals and marketing experts who recognized the needs to
offer online services for accommodations, car rentals, and other travel
related services to travel agencies.
Through its sophisticated online reservation services, GA offers more
than 100,000 hotels, motels, resorts, clubs and apartments all around the
world.
Other services of GA include car rentals, transfers, special tours,
luxury services, city breaks, flight tickets and other services such as
tailor made tour packages, exhibition organizations, incentives and other
travel related services around the globe at competitive rates.

[http://www.TurkeyCallingus.com] www.TurkeyCalling.us
[http://www.turkeycallingus.com/turkey-calling-contact-us.htm]

Global Access Travel
Tel: +90 212 258 58 29 Fax: +90 212 258 34 47
E-mail : [mailto:incom...@gaturkey.com] incom...@gaturkey.com   Website:
[http://www.turkeycallingus.com/] www.TurkeyCalling.Us
This message was sent by: FamTrit turkey, Nüzhetiye Cad., istanbul, besiktas 
34357, Turkey

To be removed click here:
http://app.icontact.com/icp/mmail-mprofile.pl?r=47131041l=82243s=R179m=578549c=305227

Forward to a friend: 
http://app.icontact.com/icp/sub/forward?m=578549s=47131041c=R179cid=305227


___
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: Why this flash drive not detected in devd?

2009-07-09 Thread Roland Smith
On Thu, Jul 09, 2009 at 11:22:16PM +0800, Sagara Wijetunga wrote:
 Hi FreeBSD community
 
 This is FreeBSD 7.2 on i386.
 
 sysctl -a | grep dev.umass
 dev.umass.1.%desc: Imation Flash Drive, class 0/0, rev 2.00/1.03, addr 3
 dev.umass.1.%driver: umass
 dev.umass.1.%location: port=6 interface=0
 dev.umass.1.%pnpinfo: vendor=0x0718 product=0x0081 devclass=0x00 
 devsubclass=0x00 release=0x0103 sernum=14925B00 intclass=0x08 
 intsubclass=0x06
 dev.umass.1.%parent: uhub4
 
 Following added to /etc/devd.conf:
 # Imation Flash Drive, class 0/0, rev 2.00/1.03, addr 3
 attach 200 {
 match vendor  0x0718;
 match product 0x0081;
 match serial  14925B00;
 action touch /tmp/Imation-Flash-Drive-detected;
 };
 
 
 Could I know why the flash drive is not detected on attach?

The USB subsystem isn't currently equipped to notify devd (technically,
the devctl_notify function isn't used in the USB stack). So the only
notification you'll get is when devfs creates a device. Since there is
no predictable link between a USB device and a disk device, info from
the USB stack would be less then usefull.

You can check this by reading from /dev/devctrl (when devd is not
running, since this device can only be opened by one program at a time)
just after you plugged in the device. For my usb thumbdrive I get:

cat /dev/devctl
!system=DEVFS subsystem=CDEV type=CREATE cdev=pass2
!system=DEVFS subsystem=CDEV type=CREATE cdev=da0
!system=DEVFS subsystem=CDEV type=CREATE cdev=da0s1
!system=DEVFS subsystem=CDEV type=CREATE cdev=msdosfs/RFS1

While sysctl gives:

dev.umass.0.%desc: vendor 0x3538 USB Mass Storage Device, class 0/0, rev 
2.00/1.00, addr 2
dev.umass.0.%driver: umass
dev.umass.0.%location: port=4 interface=0
dev.umass.0.%pnpinfo: vendor=0x3538 product=0x0042 devclass=0x00 
devsubclass=0x00 release=0x0100 sernum=0004E1 intclass=0x08 
intsubclass=0x06
dev.umass.0.%parent: uhub4

So for now, you'll have to match on the creation of da* devices, or
labels if you use those.


Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpKszeapBeuv.pgp
Description: PGP signature


Fam Trip to TURKEY for $999 (Refundable)

2009-07-09 Thread Global Access Travel
[http://www.turkeycallingus.com/]

Exclusive Boutique Enterprise

Turkey FAM
ISTANBUL - CAPPADOCIA - KONYA - ANTALYA - PAMUKKALE - KUSADASI
9 Nights / 11 Days  $999

• 5 Continents • 150 Countries Worldwide • 100.000 Hotels •
Instant Confirmation

[http://www.turkeycallingus.com]

[http://www.turkeycallingus.com/turkey-fam/TurkeyFam.htm]
[http://www.turkeycallingus.com/turkey-fam/TurkeyFamItinerary.htm]
[http://www.turkeycallingus.com/turkey-fam/TurkeyFamRates.htm]
[http://www.turkeycallingus.com/turkey-fam/TurkeyFamServices.htm]
[http://www.turkeycallingus.com/turkey-fam/TurkeyFamHotels.htm]

Global Access proudly presents the biggest FAM Trip of the year, teaming
with Turkish Airlines and Turkish Ministry of Tourism and Culture.

As the host of ASTA IDE 2010 and European Capital of Culture 2010, Turkey
is likely to be the one of the most popular destinations in 2010. Those who
act early and get to know this beautiful country better will be able to
give a better insight to their clients and secure more bookings.

Our specially selected travel agents will stay in best hotels in each
town, be escorted by professional, top tour guides, taste exceptionally
good examples of Turkish Cuisine, and get to know Turkey in elegant way.

Join us for a luxury FAM adventure and be our special guest in our
beautiful country!

COMBINE WITH World Travel Market!

One of the biggest travel shows of Europe and the world, WTM, will be
held in London between 9-12 November 2009. Combine your London trip with
Turkey and benefit from great agent rates to see one of the most popular
tourist destinations from USA and Canada.
WE WILL REFUND YOUR MONEY BACK !

Upon booking your 20th passenger on a Global Access Travel Service, we
will refund you the whole tour price that you’ve paid for the FAM Trip.

If you book 20 or more people on a Global Access Travel Service before
the FAM Trip starts, then you will travel for free!

About Us Global Access Travel (GA) was founded in Turkey by a group of
tourism professionals and marketing experts who recognized the needs to
offer online services for accommodations, car rentals, and other travel
related services to travel agencies.
Through its sophisticated online reservation services, GA offers more
than 100,000 hotels, motels, resorts, clubs and apartments all around the
world.
Other services of GA include car rentals, transfers, special tours,
luxury services, city breaks, flight tickets and other services such as
tailor made tour packages, exhibition organizations, incentives and other
travel related services around the globe at competitive rates.

[http://www.TurkeyCallingus.com] www.TurkeyCalling.us
[http://www.turkeycallingus.com/turkey-calling-contact-us.htm]

Global Access Travel
Tel: +90 212 258 58 29 Fax: +90 212 258 34 47
E-mail : [mailto:incom...@gaturkey.com] incom...@gaturkey.com   Website:
[http://www.turkeycallingus.com/] www.TurkeyCalling.Us
This message was sent by: FamTrit turkey, Nüzhetiye Cad., istanbul, besiktas 
34357, Turkey

To be removed click here:
http://app.icontact.com/icp/mmail-mprofile.pl?r=47129463l=82243s=6XVJm=578549c=305227

Forward to a friend: 
http://app.icontact.com/icp/sub/forward?m=578549s=47129463c=6XVJcid=305227


___
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: Wine on FBSD-7.0 amd64. Does it run?

2009-07-09 Thread Roland Smith
On Thu, Jul 09, 2009 at 01:10:58AM -0500, Adam Vande More wrote:
 On Wed, Jul 8, 2009 at 9:32 AM, kxorrao luizbcam...@gmail.com wrote:
 
 What port of wine should I download in order to play 32bit .exe
  files on FreeBSD-7.0 amd64? Linux wine or Wine?
 
 
 It's not a terribly big port.  Compile it and check.  Generally if there are
 problems with port on a specific platform, it will not build.  Use regular
 wine/avoid emulators within emulators if at all possible.

The wine port only works on i386:

# grep ARCHS /usr/ports/emulators/wine/Makefile
ONLY_FOR_ARCHS= i386

If I understood correctly, the problem is that wine is a 32-bit
program. See http://wiki.winehq.org/WineOn64bit

It would need 32-bit versions of all the libraries that it uses. The
FreeBSD ports system doesn't currently isn't equipped to handle
this. Not that this would be impossible, but nobody has bothered. 

The concensus seems (and rightly so IMHO) to be that development effort
is better spent cleaning up 32-bit programs so they can run on amd64
natively than providing a 32-bit infrastructure on amd64 when you can
easily run 32-bit programs on FreeBSD i386 if necessary.

It is possible to use a 32-bit jail on amd64. If you install the ports
tree in that jail you could perhaps build wine? I haven't tried this,
though.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpaqYMQwtW5e.pgp
Description: PGP signature


Re: Wine on FBSD-7.0 amd64. Does it run?

2009-07-09 Thread Sam Fourman Jr.
 The wine port only works on i386:

 # grep ARCHS /usr/ports/emulators/wine/Makefile
 ONLY_FOR_ARCHS= i386

 If I understood correctly, the problem is that wine is a 32-bit
 program. See http://wiki.winehq.org/WineOn64bit

 It would need 32-bit versions of all the libraries that it uses. The
 FreeBSD ports system doesn't currently isn't equipped to handle
 this. Not that this would be impossible, but nobody has bothered.

I know that is must be possible, 64bit Linux's run 32bit wine apps.

Gentoo Linux and OpenSuse amd64 editions, work with wine
I use one of these two to Play World of Warcraft on my notebook.

I Would use FreeBSD but suspend resume on i386 has issues, and
no 64bit nvidia, so I am stuck with Linux on my Laptop for the moment.


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


Re: FreeBSD for a high school class? (long)

2009-07-09 Thread Polytropon
On Thu, 9 Jul 2009 07:58:21 -0700, Chris eaglet...@hughes.net wrote:
 1. Taking the specs into account, what is the window manager that
 will provide the closest match to the Apple desktop for mouse ops,
 browsing files/directories, and editing text files. I suppose I should
 add running Firefox (or a reasonable similar browser that will
 render HTML and execute Javascript identically).

Maybe XFCE 4 is a good choice:

http://xubuntublog.wordpress.com/2008/02/15/design-your-own-desktop-with-xfce-44-part-2/



-- 
Polytropon
From 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


Xorg - how can I configure this thing??

2009-07-09 Thread herbs
Hi Daemons,
I am stuck with a fresh installation, FreeBSD 7.2 with the usual X Server 
environment..

Usually I invoke xorgconfig to set up the hardware I have, like mouse
driver, monitor frequency, resolution and so on.

The new X server 1.6.0 seems to have some sort of autoconfig. I compiled
the /usr/ports/X11-wm/fluxbox - it installs the X Server with Fluxbox.

Then I type startx.

The twm windowmanager shows up, but accepts no input. Mousepointer
stuck, no key input. 

I cannot even create a /etx/X11/xorg.conf file by invoking ./xorgconfig .. 
  
What am I doing wrong? Can anybody give me a hint in the right
direction? 

Thanks!
herb langhans

-- 
*** Herbert Langhans, Warschau
*** Sprachtraining Langhans
*** http://www.langhans.com.pl
*** herbert at langhans.com.pl
*** NIP 526-229-61-51
*** Regon  014911759
*** Tel. 603 341 441
___
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: Xorg - how can I configure this thing??

2009-07-09 Thread Glen Barber
On Thu, Jul 9, 2009 at 4:23 PM, herbsherbert.raim...@gmx.net wrote:
 Hi Daemons,
 I am stuck with a fresh installation, FreeBSD 7.2 with the usual X Server 
 environment..

 Usually I invoke xorgconfig to set up the hardware I have, like mouse
 driver, monitor frequency, resolution and so on.

 The new X server 1.6.0 seems to have some sort of autoconfig. I compiled
 the /usr/ports/X11-wm/fluxbox - it installs the X Server with Fluxbox.

 Then I type startx.

 The twm windowmanager shows up, but accepts no input. Mousepointer
 stuck, no key input.

 I cannot even create a /etx/X11/xorg.conf file by invoking ./xorgconfig ..

 What am I doing wrong? Can anybody give me a hint in the right
 direction?


Run 'X -configure' then add this to the end:

Section ServerFlags
option  AutoAddDevicesoff
option  AllowEmptyInput   off
EndSection

You can test with 'X -config /root/xorg.conf.new'

If it works, copy /root/xorg.conf.new to /etc/X11/xorg.conf

HTH

-- 
Glen Barber
___
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: Xorg - how can I configure this thing??

2009-07-09 Thread Daniel Underwood
See 5.4.2 Configuring X11

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html
___
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: Xorg - how can I configure this thing??

2009-07-09 Thread Andrew Gould
On Thu, Jul 9, 2009 at 3:23 PM, herbsherbert.raim...@gmx.net wrote:
 Hi Daemons,
 I am stuck with a fresh installation, FreeBSD 7.2 with the usual X Server 
 environment..

 Usually I invoke xorgconfig to set up the hardware I have, like mouse
 driver, monitor frequency, resolution and so on.

 The new X server 1.6.0 seems to have some sort of autoconfig. I compiled
 the /usr/ports/X11-wm/fluxbox - it installs the X Server with Fluxbox.

 Then I type startx.

 The twm windowmanager shows up, but accepts no input. Mousepointer
 stuck, no key input.

 I cannot even create a /etx/X11/xorg.conf file by invoking ./xorgconfig ..

 What am I doing wrong? Can anybody give me a hint in the right
 direction?

 Thanks!
 herb langhans


Herb,

1.  Get to a terminal (ctl-alt-F2 should get you there).

2.  Log in as root.

3.  Execute:'Xorg -config'
 This command should probe your hardware and create a sample
xorg.conf file (xorg.conf.new, I think) in root's home directory.

4.  Using your favorite console-based editor, edit the new xorg.conf.new file.
 In the ServerLayout section, add the following:
Option AllowEmptyInputfalse

5.  Save the xorg.conf.new file to  /etc/X11/xorg.conf

6.   Make sure the following 2 lines are in /etc/rc.conf:
 hald_enable=YES
 dbus_enable=YES

7.  Reboot the computer and test X.

Best of luck,

Andrew
___
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 for a high school class? (long)

2009-07-09 Thread Chris

I'm going to top post this because it's not replying to my post.

Thanks for the numerous responses on-list and the many others
that came off list. I'm going to synopsize what I've received. I'll
respond to the questions asked too. I think I'm good to go
though and wanted to summarize for the record.

XFCE seems to be the consensus with 2 KDE recommendations.
One additional suggestion was to use PCBSD or Freesbie. That
might make sense but I'm an old dog and have been using
the standard FreeBSD for a lot of years. I will fire XFCE up on
my test box as soon as I can source upgrade it (I think it's living
at 6.2).

Disk-wise, the 10GB was questioned. Probably not an issue, I
have a few old 40GB drives laying around if a machine comes
with less. I was noting a 1999 Compaq came stock with 30GB
so it may not be an issue. I adjusted the spec to 20GB. 256MB
appears to be acceptable. Only have one computer volunteered
thus far at that level, everything is 512 to 2G. Amazing what
people have to give up on when running windows ;-).

On having apache: It's there to let students
see their supplied products work in what looks like the real
website for the program they are in. The real site
has a superstructure of PERL that handles authentication and
calls the many pages they will be providing. The final will be
for them to provide real content for given classes in the
program and develop each classes webpage. If they have a
server running, I can mock the real site without giving them
access to the live FreeBSD server (bad idea with a group of
mischievous kids!). httpd shouldn't be too much of a drain.

vi? Yes it would be great to teach, but a trimester is
short and half the kids would be left behind. The head of
the program was considering an open-source OS install
class for later. That's where vi might come in. Different
class, different goals, fewer students will sign up.

Installing from ports? Yes, that would be my goal. Just
looked on one of my servers and I see XFCE4 in ports
so looks good.

OSX appearance? Thanks for those suggestions, it's cool
that people have developed such but the actual appearance
isn't that important. Just same level of application such
that class time isn't wasted on differences in platforms.
We've already had more systems volunteered than I
expected. Ideally, we can forget the Macs altogether. In
the last 3 hours, 6 acceptable machines have been
volunteered. By fall I imagine we can have 12 and cap
registration at that. All on FreeBSD.

Thanks very much for all the help. Maybe we'll spawn
a new generation of developers ;-).

On Jul 9, 2009, at 7:58 AM, Chris wrote:


Sorry for the OT-ness of this. I only work with FreeBSD for servers.
Have used it as the sole systems for a business since the late 1900s.
Twice I've put up X-Windows machines but we never bothered to
use them for one reason or another. Now my son's school is short
computers for a High School HTML class I'm going to help teach
this fall. The official teacher is excited about FreeBSD since we can
use old equipment that is donated.

There are two issues. We will not get enough FreeBSD systems up
to cover all kids in the class. Some will have to use the 10.4/3 OS-X
G3s we already have. For the remainder of systems, I've told them
I need a minimum 256GB Ram, 500+Mhz, ~10GB hard drive. I will
put Apache on both types of boxes so they have a testing platform,
hope to put firefox on each so they have a consistent browser. The
confusing thing will be Finder and Textedit, versus whatever I use for
a window manager on the FreeBSD systems.

The two questions are:

1. Taking the specs into account, what is the window manager that
will provide the closest match to the Apple desktop for mouse ops,
browsing files/directories, and editing text files. I suppose I should
add running Firefox (or a reasonable similar browser that will
render HTML and execute Javascript identically).

I don't mean cosmetically, just enough that there isn't too much
needing to teach a window manager. Finder is relatively invisible
from a teaching standpoint as is Textedit, Firefox is going to be
reasonably standard (this is going to teach HTML standards, not
how to use windowed drag and drop page generation products,
they will be using a text editor and working with raw HTML, CSS
and JavaScript). But what I don't want to be doing is having some
learning vi (even though if this were an advanced class, that is
precisely what I'd expect ;-)), while others are using textedit.
The course is HTML. Mouse button operations should be close,
a window that gives a simple file directory and a text editor that
doesn't require learning a character command set would be the
target.

2. Am I too lean on the specs for the free AMD/Intel boxes we
are requesting parents cough up?

The district sadly is being forced to go to windows by the
state, and now only has these old antique Macs
free and has no Intel/AMD boxes. These will all come from
parents of the program and leverage 

Re: Xorg - how can I configure this thing??

2009-07-09 Thread Warren Block

On Thu, 9 Jul 2009, Glen Barber wrote:


Run 'X -configure' then add this to the end:

Section ServerFlags
option  AutoAddDevices  off
option  AllowEmptyInput off
EndSection


The first option is unnecessary in most cases.

The second is only needed if you want to configure mouse and keyboard in 
the xorg.conf file instead of automatically with hal.  And either or 
both lines can go in the ServerLayout section, an additional ServerFlags 
section is not needed.


-Warren Block * Rapid City, South Dakota USA
___
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: Xorg - how can I configure this thing??

2009-07-09 Thread Warren Block

On Thu, 9 Jul 2009, Andrew Gould wrote:


1.  Get to a terminal (ctl-alt-F2 should get you there).

2.  Log in as root.

3.  Execute:'Xorg -config'
This command should probe your hardware and create a sample
xorg.conf file (xorg.conf.new, I think) in root's home directory.

4.  Using your favorite console-based editor, edit the new xorg.conf.new file.
In the ServerLayout section, add the following:
   Option AllowEmptyInputfalse

5.  Save the xorg.conf.new file to  /etc/X11/xorg.conf

6.   Make sure the following 2 lines are in /etc/rc.conf:
hald_enable=YES
dbus_enable=YES


Step 4 says ignore HAL for input configuration, use mouse and keyboard 
config from xorg.conf and step 6 sets up HAL.  It's best to pick one or 
the other.  The Handbook uses the hal version, making step 4 is 
unnecessary.


-Warren Block * Rapid City, South Dakota USA
___
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: Xorg - how can I configure this thing??

2009-07-09 Thread Glen Barber
Hi, Warren

On Thu, Jul 9, 2009 at 5:37 PM, Warren Blockwbl...@wonkity.com wrote:
 On Thu, 9 Jul 2009, Glen Barber wrote:

 Run 'X -configure' then add this to the end:

 Section ServerFlags
        option  AutoAddDevices        off
        option  AllowEmptyInput       off
 EndSection

 The first option is unnecessary in most cases.


Most cases, yes.  As far as I know, it won't _hurt_ if it is included,
but not necessary.

 The second is only needed if you want to configure mouse and keyboard in the
 xorg.conf file instead of automatically with hal.  And either or both lines
 can go in the ServerLayout section, an additional ServerFlags section is not
 needed.


True.  I file this in the works for me category.

-- 
Glen Barber
___
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: Xorg - how can I configure this thing??

2009-07-09 Thread herbs
Glen, Daniel, Andrew, Warren,
thanks a ton - will try your tricks carefully and try not to wreck the
installation.

Is quite a science, the 'easy automatic configuration'.

I let you know tomorrow how it worked out
Cheers
herb langhans

-- 
*** Herbert Langhans, Warschau
*** Sprachtraining Langhans
*** http://www.langhans.com.pl
*** herbert at langhans.com.pl
*** NIP 526-229-61-51
*** Regon  014911759
*** Tel. 603 341 441
___
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


How to add a slice and partition to a mirror

2009-07-09 Thread Tom Munro Glass
I have a FreeBSD 7.2 system that had two 37GB mirrored SCSI drives. These 
contained a single slice filling the disk with separate partitions for swap, 
/, /var, /usr and /home.

Yesterday one of the drives had a catastrophic failure - no problem, the 
system still worked on one drive as it is supposed to. I have purchased two 
new 74GB drives because I need more space.

With just the working 37GB drive connected, I ran:

# gmirror forget gm0

Then I connected one of the new 74GB drives and ran:

# gmirror insert gm0 /dev/da1

and the mirror rebuilt itself correctly, but of course only half of the new 
drive is being used.

I've now removed the 37GB drive and run gmirror forget gm0 again and the 
system is running on the new half used 74GB drive.

How do I define a new slice and partition to fill the second half of this 
drive?

Regards

Tom Munro 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: How to add a slice and partition to a mirror

2009-07-09 Thread Anton Shterenlikht
On Fri, Jul 10, 2009 at 10:12:56AM +1200, Tom Munro Glass wrote:
 I have a FreeBSD 7.2 system that had two 37GB mirrored SCSI drives. These 
 contained a single slice filling the disk with separate partitions for swap, 
 /, /var, /usr and /home.
 
 Yesterday one of the drives had a catastrophic failure - no problem, the 
 system still worked on one drive as it is supposed to. I have purchased two 
 new 74GB drives because I need more space.
 
 With just the working 37GB drive connected, I ran:
 
 # gmirror forget gm0
 
 Then I connected one of the new 74GB drives and ran:
 
 # gmirror insert gm0 /dev/da1
 
 and the mirror rebuilt itself correctly, but of course only half of the new 
 drive is being used.
 
 I've now removed the 37GB drive and run gmirror forget gm0 again and the 
 system is running on the new half used 74GB drive.
 
 How do I define a new slice and partition to fill the second half of this 
 drive?

what is the output of gpart gm0 ?

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
___
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


npviewer.bin

2009-07-09 Thread Roy Stuivenberg
Hello,

For a while I'm facing this Issue: Firefox seems to hang, and when I
look with the command TOP is see npviewer.bin a few times.
My processor makes a lot of noise, and after : pkill npviewer.bin, it
stops for a while.
Laterly I notice the return of npviewer.bin again, so the pkill is not
even working anymore.
Hopefully there is a better salutation then pkill ??

Freebsd 7.2 stable / gnome2

Regards,
Roy.


51366 amsroy1 1060   388M 30704K CPU11   0:17 46.97%
npviewer.bin
51373 amsroy1  640   388M 30700K futex   3   0:07 28.96%
npviewer.bin
51374 amsroy1  660   388M 30696K futex   2   0:08 25.98%
npviewer.bin
51372 amsroy1  580   388M 30700K futex   0   0:06 23.19%
npviewer.bin
30255 amsroy2  -80 38364K 15780K piperd  0   0:00  0.39%
gnome-terminal


___
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: npviewer.bin

2009-07-09 Thread Glen Barber
Hi, Roy

On Fri, Jul 10, 2009 at 12:07 AM, Roy Stuivenbergroys1...@gmail.com wrote:
 Hello,

 For a while I'm facing this Issue: Firefox seems to hang, and when I
 look with the command TOP is see npviewer.bin a few times.

Could be from multiple flash-based web pages.  I don't use flash on
FreeBSD, so I cannot confirm how npviewer reacts to multiple embedded
flash 'objects'.

 My processor makes a lot of noise, and after : pkill npviewer.bin, it
 stops for a while.

It's probably screaming for help.  Hopefully you mean the fan though.

 Laterly I notice the return of npviewer.bin again, so the pkill is not
 even working anymore.
 Hopefully there is a better salutation then pkill ??


Try killall(1).


-- 
Glen Barber
___
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


Additional sa devices?

2009-07-09 Thread Marcus Reid
  Hi,

  I just plugged in an old SCSI tape changer, and got the following
  devices:

lrwxr-xr-x  1 root  wheel6 Jul 10 03:28 esa0 - esa0.0
crw-rw  1 root  operator0,  96 May 14 05:43 esa0.0
crw-rw  1 root  operator0, 102 May 14 05:43 esa0.1
crw-rw  1 root  operator0, 105 May 14 05:43 esa0.2
crw-rw  1 root  operator0, 108 May 14 05:43 esa0.3
lrwxr-xr-x  1 root  wheel6 Jul 10 03:28 nsa0 - nsa0.0
crw-rw  1 root  operator0,  95 May 14 05:43 nsa0.0
crw-rw  1 root  operator0, 101 May 14 05:43 nsa0.1
crw-rw  1 root  operator0, 104 May 14 05:43 nsa0.2
crw-rw  1 root  operator0, 107 May 14 05:43 nsa0.3
lrwxr-xr-x  1 root  wheel5 Jul 10 03:28 sa0 - sa0.0
crw-rw  1 root  operator0,  94 Jul 10 03:45 sa0.0
crw-rw  1 root  operator0, 100 May 14 05:43 sa0.1
crw-rw  1 root  operator0, 103 May 14 05:43 sa0.2
crw-rw  1 root  operator0, 106 May 14 05:43 sa0.3
crw-rw  1 root  operator0,  93 May 14 05:43 sa0.ctl

  My question is what the difference is between 'sa0.0' and 'sa0.[1-3]'.
  I can't seem to find it documented anywhere.

  Thanks,

  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: Additional sa devices?

2009-07-09 Thread Olivier Nicole
Hi,

   My question is what the difference is between 'sa0.0' and 'sa0.[1-3]'.
   I can't seem to find it documented anywhere.

From the top of my head, I think I remember devices sa0.[1-3] would
represent different compression mode.

Bests,

Olivier
___
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: Why this flash drive not detected in devd?

2009-07-09 Thread Sagara Wijetunga
Roland Smith writes: 


On Thu, Jul 09, 2009 at 11:22:16PM +0800, Sagara Wijetunga wrote:
Hi FreeBSD community 

This is FreeBSD 7.2 on i386. 


sysctl -a | grep dev.umass
dev.umass.1.%desc: Imation Flash Drive, class 0/0, rev 2.00/1.03, addr 3
dev.umass.1.%driver: umass
dev.umass.1.%location: port=6 interface=0
dev.umass.1.%pnpinfo: vendor=0x0718 product=0x0081 devclass=0x00 
devsubclass=0x00 release=0x0103 sernum=14925B00 intclass=0x08 
intsubclass=0x06
dev.umass.1.%parent: uhub4 


Following added to /etc/devd.conf:
# Imation Flash Drive, class 0/0, rev 2.00/1.03, addr 3
attach 200 {
match vendor  0x0718;
match product 0x0081;
match serial  14925B00;
action touch /tmp/Imation-Flash-Drive-detected;
}; 



Could I know why the flash drive is not detected on attach?


The USB subsystem isn't currently equipped to notify devd (technically,
the devctl_notify function isn't used in the USB stack). So the only
notification you'll get is when devfs creates a device. Since there is
no predictable link between a USB device and a disk device, info from
the USB stack would be less then usefull. 


You can check this by reading from /dev/devctrl (when devd is not
running, since this device can only be opened by one program at a time)
just after you plugged in the device. For my usb thumbdrive I get: 


cat /dev/devctl
!system=DEVFS subsystem=CDEV type=CREATE cdev=pass2
!system=DEVFS subsystem=CDEV type=CREATE cdev=da0
!system=DEVFS subsystem=CDEV type=CREATE cdev=da0s1
!system=DEVFS subsystem=CDEV type=CREATE cdev=msdosfs/RFS1 

While sysctl gives: 


dev.umass.0.%desc: vendor 0x3538 USB Mass Storage Device, class 0/0, rev 
2.00/1.00, addr 2
dev.umass.0.%driver: umass
dev.umass.0.%location: port=4 interface=0
dev.umass.0.%pnpinfo: vendor=0x3538 product=0x0042 devclass=0x00 devsubclass=0x00 
release=0x0100 sernum=0004E1 intclass=0x08 intsubclass=0x06
dev.umass.0.%parent: uhub4 


So for now, you'll have to match on the creation of da* devices, or
labels if you use those. 



Roland, thanks for the reply. 


Here is my side info on FreeBSD 7.2:
cat /dev/devctl
? at port=6 vendor=0x0718 product=0x0081 devclass=0x00 devsubclass=0x00 
release=0x0103 sernum=14925B00 on uhub4
+umass1 vendor=0x0718 product=0x0081 devclass=0x00 devsubclass=0x00 
release=0x0103 sernum=14925B00 intclass=0x08 intsubclass=0x06 at port=6 
interface=0 vendor=0x0718 product=0x0081 devclass=0x00 devsubclass=0x00 
release=0x0103 sernum=14925B00 intclass=0x08 intsubclass=0x06 on uhub4

!system=DEVFS subsystem=CDEV type=CREATE cdev=pass4
!system=DEVFS subsystem=CDEV type=CREATE cdev=da4
!system=DEVFS subsystem=CDEV type=CREATE cdev=da4s1
!system=DEVFS subsystem=CDEV type=CREATE cdev=msdosfs/ 


I have few questions:
1. Above shows info we need available under '?' and '+' lines. What we need 
is vendor, product and sernum. Can these be accessed in addition to cdev? 

2. Is this issue been fixed in FreeBSD 8.0? 

3. Can you or someone think of a patch against FreeBSD 7.2 to provide 
vendor, product and sernum in addition to cdev? It's very big help someone 
could extend to us to release Tomahawk Desktop without further delay. 


Best regards
Sagara
___
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


Advise for buying a Refurbished machine

2009-07-09 Thread dhaneshk k

Fellow  BSDians,


   I need an advice  from  FreeBSD users.  I would like to buy a  refurbished 
notebook from IBM.  

 Model   IBM T60I heard  T60 series are excellent ?
 
Please see this URL   and apecifications  of the notebook 
http://www-304.ibm.com/shop/americas/webapp/wcs/stores/servlet/default/ProductDisplay?productId=4611686018425958881storeId=1langId=-1categoryId=2576396dualCurrId=73catalogId=-840

I want to know 
1)  whether this notebook go well with FreeBSD-7.x  versions ?

I want to use  only FreeBSD on this notebook with X window system + Gnome 
Desktop, 

2) please advice me   If I  buy this machine   is that a wise   decision  or  
refurbished  machines are of  high risk  ?


any thoughts most  welcome.

Thanks in advance 
Dhanesh

_
Live Search extreme As India feels the heat of poll season, get all the info 
you need on the MSN News Aggregator
http://news.in.msn.com/National/indiaelections2009/aggregator/default.aspx___
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: Advise for buying a Refurbished machine

2009-07-09 Thread Giorgos Keramidas
On Fri, 10 Jul 2009 04:59:43 +, dhaneshk k dhanes...@hotmail.com wrote:
 Fellow  BSDians,

 I need an advice from FreeBSD users.  I would like to buy a
 refurbished notebook from IBM.

 Model   IBM T60I heard  T60 series are excellent ?

I'm using FreeBSD/GNOME as my main environment on a Thinkpad X61s, and
my experience so far has been excellent.  The *only* bit of hardware
that doesn't attach to a working driver is the fingerprint reader, which
I don't really have a use for.

My loader.conf includes a few thinkpad-specific bits, like:

  # Intel wireless WiFi Link 4965AGN driver options.
  legal.intel_iwn.license_ack=1
  if_iwn_load=YES

  # Autoloaded modules.
  acpi_ibm_load=YES
  snd_hda_load=YES

and I disable the internal Bluetooth support in sysctl.conf:

  # Disable the internal Bluetooth device of Thinkpad X61s by default.
  dev.acpi_ibm.0.bluetooth=0

but other than these pretty simple configuration options, everything
'Just Works(TM)' :)

One last thing that is worth mentioning:

It is not obvious from the webpage you pasted if the T60 you are going
to buy uses an Intel or ATI VGA chipset.  I generally opt for Intel VGA
chipsets, when I have a choice.  They tend to work slightly better on
the laptop's I've seen so far.

 I want to know
 1) whether this notebook go well with FreeBSD-7.x versions ?  I want
 to use only FreeBSD on this notebook with X window system + Gnome
 Desktop,

This should work fine.

 2) please advice me If I buy this machine is that a wise decision or
 refurbished machines are of high risk ?

This is something I cannot really answer.  I bought mine from a friend,
whom I trusted enough.  Depending on the source, there is an inherent
risk in buying 'used' parts, but it all boils down to how much you trust
the seller.

___
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: Advise for buying a Refurbished machine

2009-07-09 Thread Erich Dollansky
Hi,

you must cosinder only one thing.

I have seen some of them with horizontal lines in their LCD.

I could not find out the real cause if it.

Just check it before you get it.

I think, you should get a good deal as those machines are robust.

Erich
On 10 July 2009 pm 12:59:43 dhaneshk k wrote:
 Fellow  BSDians,


I need an advice  from  FreeBSD users.  I would like to buy
 a  refurbished notebook from IBM.

  Model   IBM T60I heard  T60 series are excellent ?

 Please see this URL   and apecifications  of the notebook
 http://www-304.ibm.com/shop/americas/webapp/wcs/stores/servlet/
default/ProductDisplay?productId=4611686018425958881storeId=1l
angId=-1categoryId=2576396dualCurrId=73catalogId=-840

 I want to know
 1)  whether this notebook go well with FreeBSD-7.x  versions ?

 I want to use  only FreeBSD on this notebook with X window
 system + Gnome Desktop,

 2) please advice me   If I  buy this machine   is that a wise  
 decision  or  refurbished  machines are of  high risk  ?


 any thoughts most  welcome.

 Thanks in advance
 Dhanesh

 ___
__ Live Search extreme As India feels the heat of poll season,
 get all the info you need on the MSN News Aggregator
 http://news.in.msn.com/National/indiaelections2009/aggregator/d
efault.aspx___
 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: How to add a slice and partition to a mirror

2009-07-09 Thread Tom Munro Glass
On Fri, 10 Jul 2009 10:52:46 Anton Shterenlikht wrote:
 On Fri, Jul 10, 2009 at 10:12:56AM +1200, Tom Munro Glass wrote:
  I have a FreeBSD 7.2 system that had two 37GB mirrored SCSI drives. These
  contained a single slice filling the disk with separate partitions for
  swap, /, /var, /usr and /home.
 
  Yesterday one of the drives had a catastrophic failure - no problem, the
  system still worked on one drive as it is supposed to. I have purchased
  two new 74GB drives because I need more space.
 
  With just the working 37GB drive connected, I ran:
 
  # gmirror forget gm0
 
  Then I connected one of the new 74GB drives and ran:
 
  # gmirror insert gm0 /dev/da1
 
  and the mirror rebuilt itself correctly, but of course only half of the
  new drive is being used.
 
  I've now removed the 37GB drive and run gmirror forget gm0 again and
  the system is running on the new half used 74GB drive.
 
  How do I define a new slice and partition to fill the second half of this
  drive?

 what is the output of gpart gm0 ?

Did you mean gpart list gm0? This gives: 

gpart: No such geom: gm0

I'm not sure that gpart is supported by the GENERIC kernel - should I have the 
GEOM_PART_MBR option set, it isn't currently.

Regards
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