Re: huawei e220 hsdpa on freebsd 6.3-BETA2

2007-12-07 Thread [EMAIL PROTECTED]@mgedv.net


Your HSDPA modem presented itself like a mass storage device, probably 
with

some autorun and virus like drivers intended for the Windows operating
system :-)


unfortunately, this is the intended behaviour. this device has the
ability to present itself as mass storage which will show up as a
cd-rom device where the windows drivers are stored on.

this is the way it works under windows:
- plug it in first time
- (auto)run the setup on the device for the win-driver
- as soon as the driver is loaded, the cd device disappears and a modem is 
detected


but when loading the ucom/ubsa stuff before umass, the device will
not be recognised as /dev/cdX and show up as a communication device
(ucom).

of course there must be a way for getting the serial device working,
because this is one of the most sold umts/hsdpa modems across eu and
many people run it under linux as well (there are no drivers from
the vendor provided except windows and mac).
i'm pretty sure there is some message or anything else which will
render this device switching to serial mode.
there is some code, which i found (doesn't compile/run under freebsd)
which puts this device in pure serial mode. maybe someone out there
is able to tell me, how/if this can be done on freebsd as well?
(btw, i'm not a c-guru)

do you (or anybody else reading this) have an idea, how to get this
device working and put it in serial mode completely ?

regards...

THIS IS THE C CODE WHICH WORKS (ANYHOW) ON LINUX:


===
1st: huaweiAktBbo.c
===


/* HUAWEI E220 3G HSDPA modem - Aktivator modemu = aktivuje ttyUSB0 tty USB1
  bobovsky 11.12.2006
  dalej sa uz pouzije usbserial a usb-storage
  cc huaweiAktBbo.c -lusb  (resp -I. -L.)
  armeb-linux-gcc huaweiAktBbo.c -L. -I. -lusb
  Copyright (C) 2006 bobovsky [EMAIL PROTECTED]  GPL
  This program is free software; you can redistribute it and/or modify it 
under the terms of the GNU General Public License2.

*/
#include stdio.h
#include stdlib.h
#include string.h
#include assert.h
#include signal.h
#include ctype.h
#include usb.h
#if 0
#include linux/usbdevice_fs.h
#define LIBUSB_AUGMENT
#include libusb_augment.h
#endif

struct usb_dev_handle *devh;

void release_usb_device(int dummy) {
   int ret;
   ret = usb_release_interface(devh, 0);
   if (!ret)
printf(failed to release interface: %d\n, ret);
   usb_close(devh);
   if (!ret)
printf(failed to close interface: %d\n, ret);
   exit(1);
}

void list_devices() {
   struct usb_bus *bus;
   for (bus = usb_get_busses(); bus; bus = bus-next) {
struct usb_device *dev;

for (dev = bus-devices; dev; dev = dev-next)
printf(0x%04x 0x%04x\n,
dev-descriptor.idVendor,
dev-descriptor.idProduct);
   }
}

struct usb_device *find_device(int vendor, int product) {
   struct usb_bus *bus;

   for (bus = usb_get_busses(); bus; bus = bus-next) {
struct usb_device *dev;

for (dev = bus-devices; dev; dev = dev-next) {
if (dev-descriptor.idVendor == vendor
  dev-descriptor.idProduct == product)
 return dev;
}
   }
   return NULL;
}

void print_bytes(char *bytes, int len) {
   int i;
   if (len  0) {
for (i=0; ilen; i++) {
printf(%02x , (int)((unsigned char)bytes[i]));
}
printf(\);
   for (i=0; ilen; i++) {
printf(%c, isprint(bytes[i]) ? bytes[i] : '.');
   }
   printf(\);
   }
}


int main(int argc, char **argv) {
   int ret, vendor, product;
   struct usb_device *dev;
   char buf[65535], *endptr;
#if 0
   usb_urb *isourb;
   struct timeval isotv;
   char isobuf[32768];
#endif

   usb_init();
//usb_set_debug(255);
   usb_find_busses();
   usb_find_devices();
/*
   if (argc!=3) {
printf(usage: %s vendorID productID\n, argv[0]);
printf(ID numbers of currently attached devices:\n);
list_devices();
exit(1);
   }
   vendor = strtol(argv[1], endptr, 16);
   if (*endptr != '\0') {
printf(invalid vendor id\n);
exit(1);
   }
   product = strtol(argv[2], endptr, 16);
   if (*endptr != '\0') {
printf(invalid product id\n);
exit(1);
   }
*/
   printf(Hladam HUAWEI E220 a prepnem na modem - bbo 06\n);
   vendor = 0x12d1;
   product = 0x1003;
   dev = find_device(vendor, product);
   assert(dev);

   devh = usb_open(dev);
   assert(devh);

   signal(SIGTERM, release_usb_device);

/*
   ret = usb_get_driver_np(devh, 0, buf, sizeof(buf));
   printf(usb_get_driver_np returned %d\n, ret);
   if (ret == 0) {
printf(interface 0 already claimed by driver \%s\, attempting to detach 
it\n, buf);

ret = usb_detach_kernel_driver_np(devh, 0);
printf(usb_detach_kernel_driver_np returned %d\n, ret);
   }
   ret = usb_claim_interface(devh, 0);
   if (ret != 0) {
printf(claim failed with error %d\n, ret);
 exit(1);
   }

   ret = usb_set_altinterface(devh, 0);
   assert(ret = 0);
*/
// BBO typ 1 = DEVICE
ret = usb_get_descriptor(devh, 0x001, 0x000, buf, 0x012);
//printf(1 get descriptor returned %d, bytes: , ret);
//print_bytes(buf, ret);
//printf(\n);
usleep(1*1000);
// BBO typ 2 = CONFIGURATION

Re: enabling if_bridge STP

2007-12-07 Thread Silver Salonen
On Thursday 06 December 2007 17:00, Nikos Vassiliadis wrote:
 On Thursday 06 December 2007 15:37:21 Silver Salonen wrote:
  In my case there's a straight connection between bridge1 
  and bridge2 too, so that they don't have to communicate through
  root-bridge.
 
 Yes, but that also can create a loop and according to STP must be
 eliminated.
 
 Perhaps you can use some inventive IP addressing scheme, to force
 direct communication... some ifconfig option(the edge option?) to
 force forwarding... a tunnel... or some other weirdness(TM) ;)

Well, I just discovered STP, so I might expect too much from it.

I thought that in my scenario (circular VPNs), STP would just discover what's 
the shortest way (ie. whitch VPN-connection to go) from 192.168.1/24 to 
192.168.2/24, from 192.168.1/24 to 192.168.3/24, from 192.168.2/24 to 
192.168.3/24 etc, and then just lets all the packets (including layer 2 ones) 
pass the right bridge, and block them on other bridges, eliminating 
possibility for loops. If it's not what STP does, then I'm a little confused, 
what does STP do.

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


Re: PF firewall

2007-12-07 Thread shinny knight
ajtiM wrote:
 Hi!
 
 I am a new FreeBSD 7.0 beta3 user and I have standalone computer connected to 
 the internet (cable). I use both, console and KDE desktop. I tried to setup 
 PF firewall for the standalone computer but I have a problem with internal 
 messages (mail) which are blocked if firewall running.
 This is from /var/log/mail:
 sm-msp-queue[15113]: lB493C1i007320: to=root, ctladdr=root (0/0), 
 delay=1+21:37:55, xdelay=00:00:00, mailer=relay, pri
 =2552408, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Operation not 
 permitted
 
 My pf.conf looks like:
 
 pass out quick inet from (sk0) to any keep state label RULE 0 -- ACCEPT 
 block drop in quick inet all label RULE 1 -- DROP 
 block drop out quick inet all label RULE 1 -- DROP 
 block drop in quick inet all label RULE 1 -- DROP 
 block drop out quick inet all label RULE 1 -- DROP 
 
 Thanks in advance.

Everything on the loopback interface is blocked with this rule set. You 
will normally want a rule at top like this:

pass quick on lo0 all

This will pass anything on the loopback interface be it IPv4 or IPv6.

Cheers, Erik
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
  
Hi there,
   
  I will recommend you using below rule if you are not planning filtering 
traffic on loopback:
   
  #Skip all PF processing on interface lo0
set skip on lo0

  However, if this doed not solve your issue maybe you should paste your 
pf.conf.
  This way we could help you further.
   
   
   
   
  Cheers,
   
  Catalin

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What's the point of the shell choice in single user mode?

2007-12-07 Thread Erik Trulsson
On Fri, Dec 07, 2007 at 02:33:25PM +, Frank Shute wrote:
 On Fri, Dec 07, 2007 at 01:56:33PM +0100, Erik Trulsson wrote:
 
  On Fri, Dec 07, 2007 at 12:43:35PM +, John Murphy wrote:
   
 snip
   
   Thanks for all the tips on this subject. One more question:
   
   How would I enable a local keyboard layout in single user mode?
   I have had to find '/' by trial and error on my UK keyboard.
   
  
  You can use kbdcontrol(1) to load a new keyboard mapping. (Probably
  requires that /usr is already mounted to work correctly.)
  
  You can also specify in the kernel config file which keyboard layout should
  be used by default.  See the atkbd(4) or ukbd(4) manpages for details.
  
 
 You can also specify it in /etc/rc.conf:
 
 keymap=uk.cp850

When you boot into single user mode (which the question was about) the
settings in /etc/rc.conf has not been applied yet.
That happens later in the boot process.






-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What's the point of the shell choice in single user mode?

2007-12-07 Thread Frank Shute
On Fri, Dec 07, 2007 at 01:56:33PM +0100, Erik Trulsson wrote:

 On Fri, Dec 07, 2007 at 12:43:35PM +, John Murphy wrote:
  
snip
  
  Thanks for all the tips on this subject. One more question:
  
  How would I enable a local keyboard layout in single user mode?
  I have had to find '/' by trial and error on my UK keyboard.
  
 
 You can use kbdcontrol(1) to load a new keyboard mapping. (Probably
 requires that /usr is already mounted to work correctly.)
 
 You can also specify in the kernel config file which keyboard layout should
 be used by default.  See the atkbd(4) or ukbd(4) manpages for details.
 

You can also specify it in /etc/rc.conf:

keymap=uk.cp850

-- 

 Frank 


 Contact info: http://www.esperance-linux.co.uk/misc/contact.html 

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


Re: FreeBSD 6.2 inside VMWare Fusion ?

2007-12-07 Thread Michael Doyle


On 6 Dec 2007, at 15:47, Doug Poland wrote:


Michael Doyle wrote:
Has anyone got FreeBSD 6.2 to load as a guest OS in VMWare Fusion  
on a new MacBook Pro ?

I have been running 6.2 on an iMac since early betas of VMWare Fusion

If so, could they give me pointers on what I need to do, since I  
have tried this and failed.


Could you give some specific error messages?


I start a new Virtual Machine, select FreeBSD as the OS, FreeBSD 6 as  
the

specific version (from the VM Ware Fusion menus)

Then insert a FreeBSD 6.2 install disk in the drive and run through  
the setup process.
Select use entire disk, no boot manager,  install the Developer  
package,

no additional packages... the install runs to completion.

However, when, after installing the OS, I let the virtual machine  
reboot, it hangs

after the POST without displaying the FreeBSD hardware probe messages.
No errors, nothing. It doesn't even get as far as the menu where you  
select normal,

or acpi disabled, etc.


I downloaded an image created by someone else of a VMWare Workstation  
image, and that
runs on my Mac under VMWare Fusion,  but I am unable to compile and  
install VMWare Tools
(make all succeeded, but make install failed with a file not found  
error...)


If you like I can copy/paste those errors in a seperate email. I don't  
understand why I cannot create

my own bootable VMWare image though ?

Mike


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


Re: FreeBSD on a PC with Windows

2007-12-07 Thread Erik Trulsson
On Fri, Dec 07, 2007 at 11:10:28PM +1100, David Morton wrote:
 I have been out of work so long (since being diagnosed as autistic and
 scared) that even as an IT professional, I now get very anxious about
 messing with my PC.
 
 However, I got a magazine that included FreeBSD/i386 6.2 on the DVD and I
 have always wanted to play with BSD.  My past experience included UNIX
 System V, some Solaris 7 or 8, and other variants, so you know a bit of
 history.
 
 Anyway, I have a laptop preinstalled with Vista Home Premium and I would
 like to also run BSD on it.  In reading your installation documentation, I
 do not see anything that suggests I can install FreeBSD onto my PC without
 wiping Windows.
 
 I also have restricted web access so cannot access you web site, so I would
 like to know if FreeBSD will install in a way that will not kill Windows on
 my PC?
 
 I have to ask this, because I once had an old PC and put Solaris on it, and
 that required a dedicated drive.  The PC is now dead, so I have to make it
 all work on one machine.
 

It is possible to have both FreeBSD and Microsoft Windows installed on the
same hard-disk and at boot time choose which one to run.

FreeBSD does not require a dedicated driver, but it does need a (primary)
partition (slice in FreeBSD-speak) on the harddisk.

If you already have a free partition with sufficient space (a few gigabytes
should be plenty) there should be no problems installing FreeBSD.  (Although
I have heard some rumors that Windows Vista makes it difficult to dual-boot 
other systems.  I don't know if there is any substance to this.)


If your Windows-installation already uses the whole hard-disk you will need
to do *something* to get space for FreeBSD.  I know that there are
Windows-based tools that can shrink existing partitions without requiring a
re-install of everything ('Partition Magic' is probably the most famous),
but I have no personal experience with any of them.




-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PF firewall

2007-12-07 Thread Erik Norgaard

ajtiM wrote:

Hi!

I am a new FreeBSD 7.0 beta3 user and I have standalone computer connected to 
the internet  (cable). I use both, console and KDE desktop. I tried to setup 
PF firewall for the standalone computer but I have a problem with internal 
messages (mail) which are blocked if firewall running.

This is from /var/log/mail:
sm-msp-queue[15113]: lB493C1i007320: to=root, ctladdr=root (0/0), 
delay=1+21:37:55, xdelay=00:00:00, mailer=relay, pri
=2552408, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Operation not 
permitted


My pf.conf looks like:

pass out  quick inet  from (sk0)  to any keep state  label RULE 0 -- ACCEPT 
block drop in quick inet all label RULE 1 -- DROP 
block drop out quick inet all label RULE 1 -- DROP 
block drop in quick inet all label RULE 1 -- DROP 
block drop out quick inet all label RULE 1 -- DROP 

Thanks in advance.


Everything on the loopback interface is blocked with this rule set. You 
will normally want a rule at top like this:


pass quick on lo0 all

This will pass anything on the loopback interface be it IPv4 or IPv6.

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


Re: What's the point of the shell choice in single user mode?

2007-12-07 Thread Erik Trulsson
On Fri, Dec 07, 2007 at 12:43:35PM +, John Murphy wrote:
 On Mon, 3 Dec 2007 13:53:02 -0500
 Philip M. Gollucci [EMAIL PROTECTED] wrote:
 
  Jorn Argelo wrote:
   RW wrote:
   On Sun, 02 Dec 2007 18:48:33 +0100
   Jorn Argelo [EMAIL PROTECTED] wrote:
  
  
  
   Also note that vi doesn't work by default as it needs to write
   to /tmp. So mount /tmp or re-mount / to RW permissions.
  
   I think vi will also fail unless it has access to termcap, so you'd
   need /usr mounted too.
  
   You'd need to mount /usr anyway, as the vi binary is located in /usr/bin 
   ;-)
  *cough* /rescue/vi
 
 Thanks for all the tips on this subject. One more question:
 
 How would I enable a local keyboard layout in single user mode?
 I have had to find '/' by trial and error on my UK keyboard.
 

You can use kbdcontrol(1) to load a new keyboard mapping. (Probably
requires that /usr is already mounted to work correctly.)

You can also specify in the kernel config file which keyboard layout should
be used by default.  See the atkbd(4) or ukbd(4) manpages for details.



-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What's the point of the shell choice in single user mode?

2007-12-07 Thread John Murphy
On Mon, 3 Dec 2007 13:53:02 -0500
Philip M. Gollucci [EMAIL PROTECTED] wrote:

 Jorn Argelo wrote:
  RW wrote:
  On Sun, 02 Dec 2007 18:48:33 +0100
  Jorn Argelo [EMAIL PROTECTED] wrote:
 
 
 
  Also note that vi doesn't work by default as it needs to write
  to /tmp. So mount /tmp or re-mount / to RW permissions.
 
  I think vi will also fail unless it has access to termcap, so you'd
  need /usr mounted too.
 
  You'd need to mount /usr anyway, as the vi binary is located in /usr/bin ;-)
 *cough* /rescue/vi

Thanks for all the tips on this subject. One more question:

How would I enable a local keyboard layout in single user mode?
I have had to find '/' by trial and error on my UK keyboard.

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


Re: join

2007-12-07 Thread Bart Silverstrim

Chris Els wrote:
 

 


Chris Els

Mail :[EMAIL PROTECTED]

Office: 011-542 1110

Cell : 082 783 7999

Fax: 0866975698

 


-  PLEASE NOTE -

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed.


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


Re: When switching from console to X, mousebuffer gets pasted

2007-12-07 Thread Robert Huff
Willem Hendriks writes:
   I'm seeing this on Debian GNU/Linux, with the same version of X, so it's
   not a FreeBSD issue.
  
  Xorg related. It has been already reported to bugzilla:
  
  https://bugs.freedesktop.org/show_bug.cgi?id=13144

Is it just me, or did Xorg 7.3 break a lot of stuff?  Nothing
critical, but enough annoying things to make up for it.


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


Re: FreeBSD on a PC with Windows

2007-12-07 Thread Manolis Kiagias

David Morton wrote:

I have been out of work so long (since being diagnosed as autistic and
scared) that even as an IT professional, I now get very anxious about
messing with my PC.

However, I got a magazine that included FreeBSD/i386 6.2 on the DVD and I
have always wanted to play with BSD.  My past experience included UNIX
System V, some Solaris 7 or 8, and other variants, so you know a bit of
history.

Anyway, I have a laptop preinstalled with Vista Home Premium and I would
like to also run BSD on it.  In reading your installation documentation, I
do not see anything that suggests I can install FreeBSD onto my PC without
wiping Windows.

I also have restricted web access so cannot access you web site, so I would
like to know if FreeBSD will install in a way that will not kill Windows on
my PC?

I have to ask this, because I once had an old PC and put Solaris on it, and
that required a dedicated drive.  The PC is now dead, so I have to make it
all work on one machine.

Thanks, David

David Morton
E: [EMAIL PROTECTED]
M: 0400 560 330
H: 03 6295 0278

80 Rocky Bay Road
Deep Bay, TAS 7112
AUSTRALIA


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


  
Since I have a laptop with vista and FreeBSD, I will give a few quick 
hints that will save you time and despair:


- You will need to shrink your windows partition to make room for 
FreeBSD to create it's slice.


Now, I don't know what type of laptop you got, but since it is a Vista 
laptop, it is obviously one of the newest models. In most cases, disk 
partitions on these are:


1. Recovery partition for the pre-installed OS
2. Main Windows installation
3. Data Partition

The first (recovery) partition does not have a drive letter assigned to 
it in Windows, so it is not directly viewable from Windows explorer. 
The size is usually around 7-8Gb.
The rest of the disk is usually split between C: (Windows) and D: (for 
user storage). If this is the case, you would probably prefer to shrink 
the partition assigned to D:, since Vista needs quite some space for 
itself and the applications. To shrink  the partition you could try 
Norton Partition Magic, or, even better, download and run the GParted 
live CD.


If you intend to experiment with ports, packages and the like on 
FreeBSD, I suggest you leave a couple of Gigabytes for the slice. It all 
depends of course on what you plan to install. Bear in mind FreeBSD's 
slice must be created as primary partition, so you must not have more 
than three primary partitions on your disk prior to creating the slice.


When installing FreeBSD, you will be asked whether you would like to 
install a Boot Manager. Answer NO (select to leave the MBR untouched). 
When installation is finished, reboot to Vista  (it will be your only 
option anyway), and download and install EasyBCD (it is a free program, 
google for it). With this, in a few clicks, you will create an option to 
boot FreeBSD in Vista's boot menu. It is trivial as the program detects 
the FreeBSD partition automatically.


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


Re: FreeBSD on a PC with Windows

2007-12-07 Thread Ivan Voras
David Morton wrote:

 Anyway, I have a laptop preinstalled with Vista Home Premium and I would
 like to also run BSD on it.  In reading your installation documentation, I
 do not see anything that suggests I can install FreeBSD onto my PC without
 wiping Windows.

There are several ways to do it but they all depend on you
repartitioning your drive to hold an additional primary partition for
FreeBSD. There are several commercial products that can do this reliably
(I've only used Partition Magic) but I don't think there are open-source
or free products with similar reliability.

After you get the primary partition, you can most likely just install
FreeBSD on it and it will just work, offering you to choose between
the Windows and the FreeBSD systems.



signature.asc
Description: OpenPGP digital signature


Re: FreeBSD on a PC with Windows

2007-12-07 Thread Konrad Heuer


On Fri, 7 Dec 2007, David Morton wrote:


I have been out of work so long (since being diagnosed as autistic and
scared) that even as an IT professional, I now get very anxious about
messing with my PC.

However, I got a magazine that included FreeBSD/i386 6.2 on the DVD and I
have always wanted to play with BSD.  My past experience included UNIX
System V, some Solaris 7 or 8, and other variants, so you know a bit of
history.

Anyway, I have a laptop preinstalled with Vista Home Premium and I would
like to also run BSD on it.  In reading your installation documentation, I
do not see anything that suggests I can install FreeBSD onto my PC without
wiping Windows.

I also have restricted web access so cannot access you web site, so I would
like to know if FreeBSD will install in a way that will not kill Windows on
my PC?

I have to ask this, because I once had an old PC and put Solaris on it, and
that required a dedicated drive.  The PC is now dead, so I have to make it
all work on one machine.


Hello, David,

I think the most simple chance you have if you do not want to destroy your 
windows installation but want to play with BSD is to get FreeSBIE from 
http://www.freesbie.org/ or so and burn it to CD. Than you will be able 
run FreeBSD from CD only without touching your hard disk.


If you find FreeBSD useful after playing with FreeSBIE for some time you 
may possibly pluck up the courage to repartition your hard disk and to 
install both system, Vista and FreeBSD.


Best regards

Konrad Heuer
GWDG, Am Fassberg, 37077 Goettingen, Germany, [EMAIL PROTECTED]

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


FreeBSD on a PC with Windows

2007-12-07 Thread David Morton
I have been out of work so long (since being diagnosed as autistic and
scared) that even as an IT professional, I now get very anxious about
messing with my PC.

However, I got a magazine that included FreeBSD/i386 6.2 on the DVD and I
have always wanted to play with BSD.  My past experience included UNIX
System V, some Solaris 7 or 8, and other variants, so you know a bit of
history.

Anyway, I have a laptop preinstalled with Vista Home Premium and I would
like to also run BSD on it.  In reading your installation documentation, I
do not see anything that suggests I can install FreeBSD onto my PC without
wiping Windows.

I also have restricted web access so cannot access you web site, so I would
like to know if FreeBSD will install in a way that will not kill Windows on
my PC?

I have to ask this, because I once had an old PC and put Solaris on it, and
that required a dedicated drive.  The PC is now dead, so I have to make it
all work on one machine.

Thanks, David

David Morton
E: [EMAIL PROTECTED]
M: 0400 560 330
H: 03 6295 0278

80 Rocky Bay Road
Deep Bay, TAS 7112
AUSTRALIA


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


Re: PF firewall

2007-12-07 Thread Roland Smith
On Fri, Dec 07, 2007 at 06:20:37AM -0600, ajtiM wrote:
 Hi!
 
 I am a new FreeBSD 7.0 beta3 user and I have standalone computer connected to 
 the internet  (cable). I use both, console and KDE desktop. I tried to setup 
 PF firewall for the standalone computer but I have a problem with internal 
 messages (mail) which are blocked if firewall running.
 This is from /var/log/mail:
 sm-msp-queue[15113]: lB493C1i007320: to=root, ctladdr=root (0/0), 
 delay=1+21:37:55, xdelay=00:00:00, mailer=relay, pri
 =2552408, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Operation not 
 permitted
 
 My pf.conf looks like:
 
 pass out  quick inet  from (sk0)  to any keep state  label RULE 0 -- ACCEPT 
 block drop in quick inet all label RULE 1 -- DROP 
 block drop out quick inet all label RULE 1 -- DROP 
 block drop in quick inet all label RULE 1 -- DROP 
 block drop out quick inet all label RULE 1 -- DROP 

You're dropping all incoming traffic, also on the local interface!

Try adding:

set skip on lo

furthermore, your ruleset has duplicates, especially since you use the
quick keyword.

Below is a commented example a pf.conf for a workstation (mine :-)
 /etc/pf.conf -
# /etc/pf.conf

# Macros: define common values, so they can be referenced and changed easily.
ext_if = rl0
int_if = rl1

# Addresses that can't be routed externally. 
# See http://www.rfc-editor.org/rfc/rfc3330.txt
# (10.0.0.138 is my router, so it should be reachable!)
table unroutable const { 0.0.0.0/8, 10.0.0.0/8, !10.0.0.138, 127.0.0.0/8, \
169.254.0.0/16, 172.16.0.0/12, 192.0.2.0/24, 192.168.0.0/16, 240.0.0.0/4 }

# Options: tune the behavior of pf.
set optimization normal
set block-policy drop
set loginterface $ext_if
set skip on lo

# Normalization: reassemble fragments etc.
scrub in all

# Translate outgoing packets' source addresses (any protocol).
# In this case, any address but the gateway's external address is mapped.
# The sysctl net.inet.ip.forwarding should be set for this to work.
# Alternatively, set gateway_enable=YES in /etc/rc.conf.
nat pass on $ext_if inet from $int_if:network to any - $ext_if

# Filtering
antispoof quick for $int_if

# Nobody gets in from the outside!
block in log quick on $ext_if all label inblock
# Block packets to unroutable addresses
block out log quick on $ext_if from any to unroutable label unroutable
# Block by default.
block out log on $ext_if all label outblock

# Internal network is trusted.
pass in on $int_if all 
# Let outgoing traffic through, and keep state
# 'modulate state' only works with TCP!
pass out on $ext_if inet proto tcp all flags S/SA modulate state
pass out on $ext_if inet proto udp all keep state
# Let pings through.
pass out on $ext_if inet proto icmp all icmp-type 8 code 0 keep state

 /etc/pf.conf -

HTH,
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)


pgpNW39Glm2bb.pgp
Description: PGP signature


Hopefully an easy header rewriting problem for Postfix

2007-12-07 Thread Clint Olsen
I essentially want to rewrite all envelope senders of the form:

@host.my.domain

to just

@my.domain

The examples in the Postfix docs seem to make it seem like the patterns
only allow you to specify explicit recipients at the end of a rewriting
rule, but that's not what I want.  I know this was a common thing to do in
Sendmail using that hideous CF syntax.

Any cluepons would be very much appreciated.

Thanks,

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


join

2007-12-07 Thread Chris Els
 

 

Chris Els

Mail :[EMAIL PROTECTED]

Office: 011-542 1110

Cell : 082 783 7999

Fax: 0866975698

 

 

 




-  PLEASE NOTE -

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager. Please note that any views or opinions presented
in this email are solely those of the author and do not necessarily
represent those of Sahara Computers (Pty) Ltd. Finally, while Sahara
Computers attempts to ensure that all email is virus-free, Sahara
Computers accepts no liability for any damage caused by any virus
transmitted by this email.

Sahara Computers (PTY) Ltd
89 Gazelle Avenue, Corporate Park, Midrand, South Africa
Private Bag X180, Halfway House, 1685, South Africa

-
Scanned and protected by MailScanner @ mail.sahara.co.za

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

Re: help wanted configuring HPLIP

2007-12-07 Thread Predrag Punosevac

Robert Huff wrote:

I've got it installed, see the post-install configuration
message, and have questions about how it will interact with existing
printers.


Robert Huff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
  
You might want to repeat your message as attachments are stripped by the 
FreeBSD mail server.


For generic informatin

http://dsteinbrook.googlepages.com/hpliponfreebsd

Make sure you start HPLIP daemons before the CUPS daemon.  Make  sure  
you understand  the part of the article about the kernel!
ulpt driver must be out of kernel!!! Make sure you add printers using 
http://localhost:631 before you go to HP management program.


Finally, parallel printers are not supported by HPLIP no matter what 
they say. They are only supported if you could attach them directly to 
the local network on the very specific way. Also there is  whole class 
of HP printers that  not supported as they use  very unusual protocol

to communicate with the printer server

Qoute from HPLIP website.

Question: Are drivers available for the Deskjet 710C, 712C, 720C, 722C, 
820Cse, 820Cxi, 1000Cse, 1000Cxi; or LaserJet 1000, 1005, 1020, 3100; or 
Color LaserJet 1500, 2600 printers?


Answer: These are non-standard host based printers. Currently there are 
no plans to support these printers in HPLIP. Ghostscript print filters 
for the Deskjet products can be found at the pnm2ppa project.




These printers are supported with 
http://www.freebsd.org/cgi/url.cgi?ports/print/foo2zjs/pkg-descr driver 
and I personally would not waist

my time with them.

If you are managing printers in your company the best decision that you 
could make is to have only printers that can speak postscript language 
and not worry about drivers to begin with.



HPLIP is the great thing if you want to get full functionality from you 
ALL-IN-ONE devices (including scanning) and things like toner option.


Printers however on your network will still be managed by CUPS spooling 
system. I believe that HPLIP cannot work with other spooling systems 
that you might like better than CUPS so that could be also another 
reason always to use printers that can speak postscript language.


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


Re: huawei e220 hsdpa on freebsd 6.3-BETA2

2007-12-07 Thread Hans Petter Selasky
On Friday 07 December 2007, [EMAIL PROTECTED]@mgedv.net wrote:
  Your HSDPA modem presented itself like a mass storage device, probably
  with
  some autorun and virus like drivers intended for the Windows operating
  system :-)

 unfortunately, this is the intended behaviour. this device has the
 ability to present itself as mass storage which will show up as a
 cd-rom device where the windows drivers are stored on.

 this is the way it works under windows:
 - plug it in first time
 - (auto)run the setup on the device for the win-driver
 - as soon as the driver is loaded, the cd device disappears and a modem is
 detected

 but when loading the ucom/ubsa stuff before umass, the device will
 not be recognised as /dev/cdX and show up as a communication device
 (ucom).

 of course there must be a way for getting the serial device working,
 because this is one of the most sold umts/hsdpa modems across eu and
 many people run it under linux as well (there are no drivers from
 the vendor provided except windows and mac).
 i'm pretty sure there is some message or anything else which will
 render this device switching to serial mode.
 there is some code, which i found (doesn't compile/run under freebsd)
 which puts this device in pure serial mode. maybe someone out there
 is able to tell me, how/if this can be done on freebsd as well?
 (btw, i'm not a c-guru)

 do you (or anybody else reading this) have an idea, how to get this
 device working and put it in serial mode completely ?


Hi,

You can try the following test program and see what happens. You need to run 
it like super-user:

#include stdio.h
#include fcntl.h
#include sys/ioctl.h
#include stdlib.h
#include unistd.h
#include sys/types.h
#include dev/usb/usb.h

int main(int argc, char **argv)
{
  struct usb_ctl_request ucr = { /* zero */ };
  int f;

  if (argc  3) {
  printf(Usage: %s /dev/usb1 addr\n, argv[0]);
  return 1;
  }

  f = open(argv[1], O_RDWR);
  if (f  0) {
  return 1;
  }

  ucr.ucr_addr = atoi(argv[2]);
  ucr.ucr_request.bmRequestType = 0;
  ucr.ucr_request.bRequest = 3; /* SET_FEATURE */
  ucr.ucr_request.wValue[0] = 1;

  if (ioctl(f, USB_REQUEST, ucr)) {
  printf(Error!\n);
  }

  close (f);

  return 0;
}

Use usbdevs -v to get the parameters. Don't forget to load umodem.

If my program doesn't work, I suggest that you contact the manufacturer of 
your modem, and tell them the truth, that the device is a mass-storage device 
and that you want the money back! You paid for a modem, but got a 
mass-storage device. You can tell them that FreeBSD USB experts have looked 
at your device. There is no doubt about it that you've been fooled :-)

--HPS

HINT: HINT: Buy a HDSPA modem that comes with a CD-ROM. Then there is a 
greater chance that they did not put the drivers on the device itself.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


PF firewall

2007-12-07 Thread ajtiM
Hi!

I am a new FreeBSD 7.0 beta3 user and I have standalone computer connected to 
the internet  (cable). I use both, console and KDE desktop. I tried to setup 
PF firewall for the standalone computer but I have a problem with internal 
messages (mail) which are blocked if firewall running.
This is from /var/log/mail:
sm-msp-queue[15113]: lB493C1i007320: to=root, ctladdr=root (0/0), 
delay=1+21:37:55, xdelay=00:00:00, mailer=relay, pri
=2552408, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Operation not 
permitted

My pf.conf looks like:

pass out  quick inet  from (sk0)  to any keep state  label RULE 0 -- ACCEPT 
block drop in quick inet all label RULE 1 -- DROP 
block drop out quick inet all label RULE 1 -- DROP 
block drop in quick inet all label RULE 1 -- DROP 
block drop out quick inet all label RULE 1 -- DROP 

Thanks in advance.
-- 
mItjA
__
http://www.gnu.org/
http://www.freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD on a PC with Windows

2007-12-07 Thread Jerry McAllister
On Fri, Dec 07, 2007 at 11:10:28PM +1100, David Morton wrote:

 I have been out of work so long (since being diagnosed as autistic and
 scared) that even as an IT professional, I now get very anxious about
 messing with my PC.
 
 However, I got a magazine that included FreeBSD/i386 6.2 on the DVD and I
 have always wanted to play with BSD.  My past experience included UNIX
 System V, some Solaris 7 or 8, and other variants, so you know a bit of
 history.
 
 Anyway, I have a laptop preinstalled with Vista Home Premium and I would
 like to also run BSD on it.  In reading your installation documentation, I
 do not see anything that suggests I can install FreeBSD onto my PC without
 wiping Windows.

The process is fairly easy.  It it called 'dual booting' and is covered
in the FreeBSD Handbook.   I have done this on numerous machines over
the last ten years or so.  The basic steps are as follows -- but you
should study up on each yourself.

 -- Make room to install FreeBSD.   FreeBSD does not require a dedicated
disk, but it does require at least one dedicated primary slice - which
is called a primary partition in MS World.  Making room can consist of
any of:  
  - Use a separate disk
  - Shrink the existing slice[s] (primary partitions) and create a
new slice in the freed up space.
  - delete an existing slice (primary partition) and turn it in to
a FreeBSD slice.
Probably the middle one is what you will need to do on a laptop.
First of all, you need to know that both MS and FreeBSD allow only
four (4) slices - which MS calls primary partitions.  MS allows some
various kinds of extended 'partition' and FreeBSD permits you to 
subdivide the slice in to pieces which it calls partitions - nice
confusion.

To shrink the existing slice[s] you need some specialized piece of
software.   Some come with FreeBSD that will do the job for older MS
filesystem types such as FAT, but they will not shrink NTFS and most
new systems are coming with NTFS.   So, there are some commercial
utilities and a couple of new freeware versions that some people have
spoken highly of.I have sucessfully used Partition Magic 7.0 many
times to shrink and convert primary partitions.   But it does not work
on USB disks.   So recently I got Partition Magic 8.0 which claims to
work on USB, but I could not get it to work.  It failed to run from
booting from CD.I got a rescue disk version running, but it wouldn't
even see my new USB 2 harddisk let alone work on it.  So, I sent it
back for a refund.  - NOTE Amazon-Nothing But Software was good about
doing the refund promptly.   Anyway, see if you can get a 7.0 version
of PM and use it.   Another I haven't tried is Partition Commander.  I
have heard some people say it works well.There are also a couple of
fairly new freeware utilities I have heard people say good things about.
One is called 'Gparted' and it is an ISO you download, burn on to a CD
and boot from.  I can't remember the other one at the moment, but it 
is supposed to look a lot like working with Partition Magic 7.0.

Run the utility, whatever it is.   Shrink the existing slice/primary
partition.   They will probably use MS terminology and so will probably
call it a primary partition.  Try to free up 10 GB or more if you can.
Have the utility create a primary partition in the newly freed up space.
It must be a primary partition type - not an extended partition.
Partition Magic and maybe some of the other utilities will whine and
complain if you try to make a second primary partition and tell you it
could make the system unbootable, but it works just fine since you 
will shortly be turning that primary partition type in to a FreeBSD
type slice which MS will not recognize and will ignore.   Just make it
create a primary partition with a FAT32 type file system in the freed 
up space.  (That will change when you do the FreeBSD install)

Finish up the process and get out of the utility and remove the 
utility's boot CD or floppy.

NOTE: If you are using Partition Magic, it works much better to make
  the 'rescue floppies' and boot and run from them rather than an
  installed version of it.   In fact, you are prevented from 
  running it on the same disk that you are booted to.  So, with
  only one hard disk, you have to run from floppies.

NOTE ALSO: If you have a spare slice available (remember, only 4 are
  allowed) and if your MS slice (Primary Partition) is an NTFS type,
  then you may want to make another small slice just below the
  FreeBSD slice of a couple GB and make it FAT32.   Then you would
  have some easy space to use to transfer files back and forth
  between MS and FreeBSD.   That is because, so far, FreeBSD does
  not write 

Help with Crontab

2007-12-07 Thread Drew Tomlinson
I'm trying to use cron to run a script on the first Sunday of every 
month at 0930.  I used this entry in the crontab:


# Run 1st Sunday at 0930 - Fulls
30 9 1-7 * 7 /usr/local/scripts/backup_bootstrap.sh

Yet this script just ran on Thursday, December 6 at 0930.   Why?  I just 
added it to cron so I don't know if it will run on any other days.


Thanks,

Drew

--
Be a Great Magician!
Visit The Alchemist's Warehouse

http://www.alchemistswarehouse.com

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


Re: Help with Crontab

2007-12-07 Thread Kevin Kinsey

Drew Tomlinson wrote:
I'm trying to use cron to run a script on the first Sunday of every 
month at 0930.  I used this entry in the crontab:


# Run 1st Sunday at 0930 - Fulls
30 9 1-7 * 7 /usr/local/scripts/backup_bootstrap.sh

Yet this script just ran on Thursday, December 6 at 0930.   Why?  I just 
added it to cron so I don't know if it will run on any other days.




See crontab(5), which says:

 Note: The day of a command's execution can be specified by two fields --
day of month, and day of week.  If both fields are restricted (ie, are
not *), the command will be run when either field matches the current
time.  For example, ``30 4 1,15 * 5'' would cause a command to be run at
4:30 am on the 1st and 15th of each month, plus every Friday.

HTH,

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


Re: help wanted configuring HPLIP

2007-12-07 Thread Philip M. Gollucci

Robert Huff wrote:

I've got it installed, see the post-install configuration
message, and have questions about how it will interact with existing
printers.
Were I you, I would install cups, and then goto web page interface on 
localhost.  It kind of just works.


--
-
Philip M. Gollucci ([EMAIL PROTECTED])
c:323.219.4708 o:703.749.9295x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: When switching from console to X, mousebuffer gets pasted

2007-12-07 Thread Willem Hendriks
On Wed, Dec 05, 2007 at 10:10:58PM +, Benjamin M. A'Lee wrote:
 On Wed, Dec 05, 2007 at 04:52:23PM -0500, Robert Huff wrote:
  cpghost writes:
  
 For instance: I open an xterm, type some text and select it. When i
 do a switch to a console, and get back to my X with Alt-F9, the text
 is automaticly pasted into my xterm. As if i pressed the
 mouse3-butten. 
 
 X.Org X Server 1.4.0
 Release Date: 5 September 2007
 X Protocol Version 11, Revision 0
 Build Operating System: FreeBSD 6.2-RELEASE-p8 i386

I've noticed this too but thought I had misconfigured something
or that it was related to sysutils/screen from where I was
switching back to X. Glad to see that others are affected by this
as well; so it's really a bug.
  
  I think I'm getting bit by this as well, on:
  
  X.Org X Server 1.4.0
  Release Date: 5 September 2007
  X Protocol Version 11, Revision 0
  Build Operating System: FreeBSD 7.0-CURRENT i386
 
 I'm seeing this on Debian GNU/Linux, with the same version of X, so it's
 not a FreeBSD issue.
 
   Ben

Xorg related. It has been already reported to bugzilla:

https://bugs.freedesktop.org/show_bug.cgi?id=13144

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


tusar kumar wants to chat

2007-12-07 Thread tusar kumar
---

tusar kumar wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-ae5b6f9772-cdf67e1bf1-f2da92df1bd66ae0
You'll need to click this link to be able to chat with tusar kumar.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with tusar kumar, visit:
http://mail.google.com/mail/a-ae5b6f9772-cdf67e1bf1-4321baee67

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

Gmail and Google Talk are still in beta. We're working hard to add new features
and make improvements, so we might also ask for your comments and suggestions
periodically. We appreciate your help in making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Freebsd filesystem ( hard reboot )

2007-12-07 Thread Peter Schuller
 If you are running without write caching turned on (which is the default),

That should be, if you are running WITH write caching turned on.

-- 
/ Peter Schuller

PGP userID: 0xE9758B7D or 'Peter Schuller [EMAIL PROTECTED]'
Key retrieval: Send an E-Mail to [EMAIL PROTECTED]
E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org



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


Re: help wanted configuring HPLIP

2007-12-07 Thread Anish Mistry
On Saturday 08 December 2007, caldari_halo wrote:
 Anish Mistry wrote:
  On Friday 07 December 2007, Robert Huff wrote:
  Predrag Punosevac writes:
   I've got it installed, see the post-install configuration
message, and have questions about how it will interact with
existing printers.
 
   You might want to repeat your message as attachments are
  stripped by the FreeBSD mail server.
 
 Didn't send an attachment.
 Here's the scenario:
 Computer in question is runnong -CURRENT and already has CUPS
  installed for the (parallel attached) LaserJet 6mp.
 I now have access to a PSC 7xx, which I would like to use 0x1
  % for color printing and the rest for scanning.  As far as i can
  tell sane by itself does not have the ability to do this, but it
  concert with HPLIP it does.
 First question: is this correct?  Not just connect to the PSC,
  but use both devices at once  If not, then I just abort the
  whole plan.
 After seeing the post-installation message for HPLIP, I wat to
  understand what I'm doing before messing with devfs. 
  (Revuilding the kernel is no biggie, though I don't think
  that'll be necessary.) And, frankly, configuring CUPS is usually
  as pleasant as aggrssive dysentery.
 
  You should be fine since your other printer is a parallel port
  printer.  The HPLIP port doesn't configure parallel port printers
  so just use the normal CUPS configuration.  There are some issues
  with the PSC printers and getting attached as umass devices. 
  Search the archives for more info.  Basically a real solution for
  the umass issue won't appear until the HPS USB stack grows
  generic device access for already claimed usb devices support
  sometime next year.

 I've read the last couple of replies, and they have been sort of
 discouraging. I have a HP PSC 1610, which mounts itself as a umass
 device, instead of ugen. Its connected via USB (instead of
 parallel, in the other guys case). I recompiled the kernel (using
 6.2 here) without ulpt support, just like Daniel Steinbrook's howto
 said. I
 installed/configured cups and hpijs (donot need hplip) as well. Are
 you saying that I'm at a dead end as far as getting my printer to
 work under FBSD?
Like a said to Robert, it should be pretty simple to tweak the umass 
driver to not attach as umass for your printer.  All you should need 
is in umass_match_proto is an if() statement that checks for you 
printer ID and then returns UMATCH_NONE


-- 
Anish Mistry
[EMAIL PROTECTED]
AM Productions http://am-productions.biz/


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


Re: DVD's and FreeBSD

2007-12-07 Thread Danny Pansters
On Friday 07 December 2007 22:37:12 Gary Kline wrote:
   Update:

   Well, totem chokes when trying to play a DVD, but kmplayer works
   --altho with fewer control flow options.  And after compiling
   in device atapicam into my KERNCONF, k3b still chokes.   So.
   For toys, Linux; for superior [unbeatable] stability, FreeBSD
   is still first rate.

   gary

You may want to enable the xine backend in the kmplayer port. It's more 
recommended for DVD playback than mplayer, from what I read. I hardly use 
DVDs but I think it gives more menu functionality if that's what you're 
after.

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


Re: Help with Crontab

2007-12-07 Thread Kevin Kinsey

Drew Tomlinson wrote:

On 12/7/2007 10:49 AM Kevin Kinsey wrote:

Drew Tomlinson wrote:
I'm trying to use cron to run a script on the first Sunday of every 
month at 0930.  I used this entry in the crontab:


# Run 1st Sunday at 0930 - Fulls
30 9 1-7 * 7 /usr/local/scripts/backup_bootstrap.sh

Yet this script just ran on Thursday, December 6 at 0930.   Why?  I 
just added it to cron so I don't know if it will run on any other days.




See crontab(5), which says:

 Note: The day of a command's execution can be specified by two fields --
day of month, and day of week.  If both fields are restricted (ie, 
are not *), the command will be run when either field matches the current
time.  For example, ``30 4 1,15 * 5'' would cause a command to be 
run at 4:30 am on the 1st and 15th of each month, plus every Friday.


Thank you for the reply.  Now I see the light.  :)  So I suppose there 
is no way to schedule as I wish using cron.  I suspect I'll have to 
modify my script to do the date  checking and only execute the meat if 
it's the right date.



Well, as the sage said, the light at the end of the
tunnel is an oncoming train.  Note the word restricted
there, and realize that it means that both fields are
checked and the job is constrained by both of them.

In other words, any of these should mail you the FBSD
COPYRIGHT file on Sundays only at 4:30 a.m.:

30   4   *   *   Sun   /bin/cat /COPYRIGHT
30   4   *   *   0 /bin/cat /COPYRIGHT
30   4   *   *   7 /bin/cat /COPYRIGHT

So, yes, Virginia, there is a Sunday Cron.
;-)


Puns, but no ill will, intended,

Kevin Kinsey
--
Look afar and see the end from the beginning.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Hopefully an easy header rewriting problem for Postfix

2007-12-07 Thread Lowell Gilbert
Clint Olsen [EMAIL PROTECTED] writes:

 I essentially want to rewrite all envelope senders of the form:

 @host.my.domain

 to just

 @my.domain

 The examples in the Postfix docs seem to make it seem like the patterns
 only allow you to specify explicit recipients at the end of a rewriting
 rule, but that's not what I want.  I know this was a common thing to do in
 Sendmail using that hideous CF syntax.

 Any cluepons would be very much appreciated.

The myorigin variable is what you need.  See postconf(5) for more
things you can do with it.

( myorigin (default: $myhostname)
(   The domain name that locally-posted mail appears to come from, and that
(   locally posted mail is delivered to. The default, $myhostname, is  ade-
(   quate for small sites.  If you run a domain with multiple machines, you
(   should (1) change this to $mydomain and (2) set up a domain-wide  alias
(   database that aliases each user to [EMAIL PROTECTED]
(
(   Example:
(
(   myorigin = $mydomain

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


Re: Hopefully an easy header rewriting problem for Postfix

2007-12-07 Thread Clint Olsen
On Dec 07, Lowell Gilbert wrote:
 The myorigin variable is what you need.  See postconf(5) for more
 things you can do with it.
 
 ( myorigin (default: $myhostname)
 (   The domain name that locally-posted mail appears to come from, and 
 that
 (   locally posted mail is delivered to. The default, $myhostname, is  
 ade-
 (   quate for small sites.  If you run a domain with multiple machines, 
 you
 (   should (1) change this to $mydomain and (2) set up a domain-wide  
 alias
 (   database that aliases each user to [EMAIL PROTECTED]
 (
 (   Example:
 (
 (   myorigin = $mydomain

Right, I have this set, yet it is still possible to have me send a mail
using Mutt with my From: address set as host.my.domain.  This works great
for incompletely specified recipients and senders etc.  But I haven't
figured out how to incorporate myorigin to rewrite all addresses that match
a pattern to modify that (and only that) in the address.

Thanks,

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


Re: Scanner Compatibility

2007-12-07 Thread Michaël Grünewald
Predrag Punosevac [EMAIL PROTECTED] writes:

 I use Epson Perfection 1670 and it works like a charm. Unfortunately
 it does require binary blob which might be something you want to
 avoid.

What is that binary blob stuff? Do you mean by this a binary image
that should be loaded in kernel --- after being correctly wrapped just
like some wifi card drivers? If this is the case, there is no chance
to make the blob work under amd64, is there?

 If you need step by step instructions how to install scanner you
 might contact me via private mail.

I am very interested in this kind of technical information, since I do
foreplan to buy a scanner. If you really think[1] this discussion would
be a nuisance for the list, would you be kind enough to CC me?

[1] One can consider that even if the discussion topic does not hit
most of its members, it can be useful to contribute here these
technical details because they will be archived and could then be
referenced in future discussions, searched, etc.
-- 
Cheers,
Michaël
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Partnership Program

2007-12-07 Thread Aaron Sink
To Whom It May Concern:

 Thank you for considering our firm in representing your products in the
Federal Marketplace.  Autonomic Resources is an 8a Firm - this
designation is very favorable to you as Federal buyers are encouraged to
spend $$ with 8a firms over all others - In addition they can sole
source purchases to so - preventing the need to do competitive bidding!
We are one of only 7 firms involved with the DoD Data At Rest SmartBUY
BPA - lending great exposure to us from ALL Federal Agencies (DoD,
Civilian as well as State  Local). 

 

We have established reseller agreements with Open Source integration
solutions - like RedHat, Centeris, and Atta2d - your products will fit
very well in the family of products  Our company possesses Top Secret
Clearance  - this  opens up Black organizations to our products and
services. These agencies like FBI, NRO, NSA have been early adopters of
open source.

 

We are very interested in working with your company to create a mutually
profitable relationship. I'd to setup a conference call for us to
discuss 

 

Thanks - Aaron

 

 

 

Best Regards,

 

M. Aaron Sink 

Federal Business Development Manager

Autonomic Resources

www.autonomicresources.com http://www.autonomicresources.com/   

866-232-9788 x5493 (tel)

919-653-5599 (fax)

919-201-0527 (cell)

 

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


The Complete FreeBSD: errata and addenda

2007-12-07 Thread Greg Lehey
The trouble with books is that you can't update them the way you can a web page
or any other online documentation.  The result is that most leading edge
computer books are out of date almost before they are printed.  Unfortunately,
The Complete FreeBSD, published by O'Reilly, is no exception.  Inevitably, a
number of bugs and changes have surfaced.

The Complete FreeBSD has been through a total of five editions, including its
predecessor Installing and Running FreeBSD.  Two of these have been reprinted
with corrections.  I maintain a series of errata pages.  Start at
http://www.lemis.com/errata-4.html to find out how to get the errata
information.

Note also that the book has now been released for free download in PDF
form.  Instead of downloading the changed pages, you may prefer to
download the entire book.  See http://www.lemis.com/grog/Documentation/CFBSD/ 
for more information.

Have you found a problem with the book, or maybe something confusing?
Please let me know: I'm no longer constantly updating it, but I may be
able to help

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


Re: Freebsd filesystem ( hard reboot )

2007-12-07 Thread Peter Schuller
 My understanding from the reading I have done is that in a situation like
 this where power outages are a danger (and presuably having the UPS signal
 the server to shut down gracefully is not practical), you need to make the
 file system as robust as possible in the first place, rather than rely on
 fsck -y after the event. Doesn't fsck -y rather sweep potential problems
 under the carpet?

fsck is not sweeping potential problems under the carpet, as long as nothing 
unexpected goes wrong (software bug, hardware problem).

The reason fsck works to begin with, is that it is designed to fix specific 
inconsistencies in the file system that are expected. The file system 
(takling about UFS here, and other non-journaled file systems that care about 
this stuff) is designed very carefully such that certain correctable 
inconsistencies happen, while preventing those that are not correctable.

That is, under fully expected circumstances, UFS is intended to require fsck 
on reboot. But it is NOT intended that fsck find unexpected inconcistencies 
and ask for operator intervention.

What happens in the event of write caching + power failure, software bug or 
hardware bugs, is that you end up with semi-random inconsistencies. fsck 
*may* be able to patch the situation enough for the file system to be usable, 
but fundamentally all bets are off.

 First step surely is to *disable* write caching if you have drives that
 are doing it?

For UFS/reiserfs/xfs/jfs/ext3fs/ext2fs, yes.

 Then consider mounting the file system synchronously. Mind you, I don't
 know what the scale of the performance loss would be, and whether anyone
 does this nowadays!

Synchronous mounting is not required for consistency (except perhaps for 
ext2fs; not sure). It is enough that the system does not break the file 
system's ability to guarantee ordering of certain critical operations, which 
is why write caching causes a problem (the drive re-orders writes for 
performance and you end up with B happening before A, but consistency 
depended on B happening AFTER A).

-- 
/ Peter Schuller

PGP userID: 0xE9758B7D or 'Peter Schuller [EMAIL PROTECTED]'
Key retrieval: Send an E-Mail to [EMAIL PROTECTED]
E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org



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


Re: DVD's and FreeBSD

2007-12-07 Thread Danny Pansters
On Friday 07 December 2007 22:37:12 Gary Kline wrote:
   Update:

   Well, totem chokes when trying to play a DVD, but kmplayer works
   --altho with fewer control flow options.  And after compiling
   in device atapicam into my KERNCONF, k3b still chokes.   So.
   For toys, Linux; for superior [unbeatable] stability, FreeBSD
   is still first rate.

   gary

For k3b/atapicam:

Make sure you are in the operator group and have 

# CD/DVD RW access via atapicam
perm cd0   0660
perm pass0 0660
perm xpt0  0660

in /etc/devfs.conf. If you need to edit this file, make sure to restart devfs:
/etc/rc.d/devfs restart

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


Re: Hopefully an easy header rewriting problem for Postfix

2007-12-07 Thread Lowell Gilbert
Clint Olsen [EMAIL PROTECTED] writes:

 On Dec 07, Lowell Gilbert wrote:
 The myorigin variable is what you need.  See postconf(5) for more
 things you can do with it.
 
 ( myorigin (default: $myhostname)
 (   The domain name that locally-posted mail appears to come from, and 
 that
 (   locally posted mail is delivered to. The default, $myhostname, is  
 ade-
 (   quate for small sites.  If you run a domain with multiple machines, 
 you
 (   should (1) change this to $mydomain and (2) set up a domain-wide  
 alias
 (   database that aliases each user to [EMAIL PROTECTED]
 (
 (   Example:
 (
 (   myorigin = $mydomain

 Right, I have this set, yet it is still possible to have me send a mail
 using Mutt with my From: address set as host.my.domain.  This works great
 for incompletely specified recipients and senders etc.  But I haven't
 figured out how to incorporate myorigin to rewrite all addresses that match
 a pattern to modify that (and only that) in the address.

Ah; sorry I misunderstood your aim.  

I don't like doing this heavy-handed sort of rewriting, but the magic
keyword is masquerade.  masquerade_classes, masquerade_domains, and
masquerade_exceptions give you a number of options.  I don't see any
way to be quite as sweeping as you're describing, but in my opinion
that's a good thing.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problems with auditd

2007-12-07 Thread Peter Boosten
On Fri, December 7, 2007 23:10, Paul Schmehl wrote:
 --On Friday, December 07, 2007 22:41:01 +0100 Peter Boosten
 [EMAIL PROTECTED] wrote:

 Did you compile the audit option into the kernel?


 optionsAUDIT

 Peter


 Apparently not.  I compiled the GENERIC kernel, and it does not appear to
  have that option.  Strange.  You would think, if the system is going to
 install the daemon, it would have that option in the GENERIC kernel.  :-(

IIRC it's still experimental in 6.2. It's by default in the 7-kernel however.

Peter

-- 
http://www.boosten.org

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


[Fwd: Re: Help with Crontab]

2007-12-07 Thread Kevin Kinsey

Kevin Kinsey wrote:

] Well, as the sage said, the light at the end of the
] tunnel is an oncoming train.  Note the word restricted
] there, and realize that it means that both fields are
] checked and the job is constrained by both of them.
]
] In other words, any of these should mail you the FBSD
] COPYRIGHT file on Sundays only at 4:30 a.m.:
]
] 30   4   *   *   Sun   /bin/cat /COPYRIGHT
] 30   4   *   *   0 /bin/cat /COPYRIGHT
] 30   4   *   *   7 /bin/cat /COPYRIGHT
]
] So, yes, Virginia, there is a Sunday Cron.
] ;-)

BUT:


Drew Tomlinson wrote:
I'm trying to use cron to run a script on the first Sunday of every 
month at 0930.  I used this entry in the crontab:  


Doh!

I suppose you are right after all, and the script needs modified.

I suppose I'll have my crow with hot mustard, plx.  Esp. since 
I wrote an article a few years ago about scheduling for the last

day of the month only using an external script

Sorry for the noise,

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


Re: Problems with auditd

2007-12-07 Thread Paul Schmehl
--On Friday, December 07, 2007 22:41:01 +0100 Peter Boosten 
[EMAIL PROTECTED] wrote:



On Fri, December 7, 2007 22:06, Paul Schmehl wrote:

I upgraded my system from 6.0 RELEASE to 6.2 RELEASE by cvsupping the
files and then running buildkernel/buildworld as usual.  Since doing
that, auditd will not run, even though I have auditd_enable=YES in
/etc/rc.conf. I've
been reading online posts about auditd and auditing (as well as the man
pages) but I haven't found what the problem is.

If I run audit -s, I get this:
[EMAIL PROTECTED] audit -s Error sending trigger: Function not implemented




Did you compile the audit option into the kernel?

optionsAUDIT

Peter


Apparently not.  I compiled the GENERIC kernel, and it does not appear to 
have that option.  Strange.  You would think, if the system is going to 
install the daemon, it would have that option in the GENERIC kernel.  :-(


--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

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


Re: Problems with auditd

2007-12-07 Thread Peter Boosten
On Fri, December 7, 2007 22:06, Paul Schmehl wrote:
 I upgraded my system from 6.0 RELEASE to 6.2 RELEASE by cvsupping the
 files and then running buildkernel/buildworld as usual.  Since doing that,
 auditd will not run, even though I have auditd_enable=YES in
 /etc/rc.conf. I've
 been reading online posts about auditd and auditing (as well as the man
 pages) but I haven't found what the problem is.

 If I run audit -s, I get this:
 [EMAIL PROTECTED] audit -s Error sending trigger: Function not implemented



Did you compile the audit option into the kernel?

optionsAUDIT

Peter


-- 
http://www.boosten.org

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


Re: Hopefully an easy header rewriting problem for Postfix

2007-12-07 Thread Clint Olsen
On Dec 07, Noel Jones wrote:
 http://www.postfix.org/ADDRESS_REWRITING_README.html#masquerade
 
 Looks like exactly what you describe.
 
 Just set in main.cf: masquerade_domains = my.domain and then run
 postfix reload

Yes!  This looks like it does what I want!  I completely forgot about the
masquerade feature in Sendmail.  Thanks a lot for this.

Incidentally, the reason why I ran into this problem was because I
absolutely cannot get GNU Mailman to stop using host.my.domain in the mail
dispatch section (yes, I have modified mm_cfg.py), and this was totally
messing up Postfix and causing it to trigger all sorts of spam filtering
checks that should not have been invoked.  I realized I technically had a
hole in my config and I didn't want to have to fix every single client that
might send mail through my server.

Thanks again,

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


Re: DVD's and FreeBSD

2007-12-07 Thread Gary Kline
On Fri, Dec 07, 2007 at 04:05:23PM -0700, Predrag Punosevac wrote:
 Gary Kline wrote:
  Update:
 
  Well, totem chokes when trying to play a DVD,
 Totem is not good DVD player and that has to do nothing with the 
 FreeBSD, OpenBSD or whatever Linux you want to use. You may read
 here why is so difficult to use DVDs 
 http://www.dvddemystified.com/dvdfaq.html

I will see why totem just-works {TM} with Ubuntu.  While here it
is missing plugin, etc..
 
 Ogle is by far the best DVD player but VLC and MPlayer are able to play 
 stunning number of different proprietary and non-proprietary video and 
 audio formats.


I've never  used vlc for DVD; nor ogle; am building.
 
  but kmplayer works
  --altho with fewer control flow options.  And after compiling
  in device atapicam into my KERNCONF, k3b still chokes.   
 K3b works fine or I should say as good as on any of major Linux 
 distribution. Something is wrong with your configuration.
 Read very carefully
 
 $ make showinfo /usr/ports/sysutils/k3b
 

Well, y'gotta cd to the k3b directory, but no prob; that I
remembered from before.  I lpr'd it.   It's clearly written
by one of us ( a fellow geek).

I may have some followups.  I've been reading and re-reading 
and re-re-reading the info page.

 
 
 So.
  For toys, Linux; for superior [unbeatable] stability, FreeBSD
  is still first rate.
 
  gary
   
 Depends what you mean by playing. Some people use Flash or Java for work 
 and FreeBSD is definitely not for them.
 For me personally works boot as a professional tool and as life-stile 
 OS. But then it doesn't work for my mother in law and probably
 it doesn't work for 99% of other casual computer users.


You're right; I shouldn't have been so dismissive about burning
a CD or DVD.  (i'Ve created some data CD's for friends.)

vlc-devel is still building.  Hopefully more will be working 
after my reboot.

gary

 
 Cheers,
 Predrag
 
 

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

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


DVD's and FreeBSD

2007-12-07 Thread Gary Kline

Update:

Well, totem chokes when trying to play a DVD, but kmplayer works
--altho with fewer control flow options.  And after compiling
in device atapicam into my KERNCONF, k3b still chokes.   So.
For toys, Linux; for superior [unbeatable] stability, FreeBSD
is still first rate.

gary


-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

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


Re: help wanted configuring HPLIP

2007-12-07 Thread Anish Mistry
On Friday 07 December 2007, Robert Huff wrote:
 Anish Mistry writes:
   You should be fine since your other printer is a parallel port
   printer.  The HPLIP port doesn't configure parallel port
  printers so just use the normal CUPS configuration.  There are
  some issues with the PSC printers and getting attached as umass
  devices. Search the archives for more info.

   Found.
   This may be a show-stopper - that system has umass devices
 which are higher priority than this.  And I don't want to have an
 entire requires operator intervention or even non-standard
 script to deal with (and remember) at boot.
   So if the PSC attaches as umass, I'm hosed, but if it attaches
 as ugen I win.
You can probably hack the umass driver to prevent it from attaching to 
the printer.

-- 
Anish Mistry
[EMAIL PROTECTED]
AM Productions http://am-productions.biz/


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


Re: help wanted configuring HPLIP

2007-12-07 Thread Robert Huff
Anish Mistry writes:

  You should be fine since your other printer is a parallel port
  printer.  The HPLIP port doesn't configure parallel port printers
  so just use the normal CUPS configuration.  There are some issues
  with the PSC printers and getting attached as umass devices.
  Search the archives for more info.

Found.
This may be a show-stopper - that system has umass devices
which are higher priority than this.  And I don't want to have an
entire requires operator intervention or even non-standard
script to deal with (and remember) at boot.
So if the PSC attaches as umass, I'm hosed, but if it attaches
as ugen I win.

Thanks,


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


Re: What's the point of the shell choice in single user mode?

2007-12-07 Thread José García Juanino
El lunes 03 de diciembre a las 19:14:12 CET, RW escribió:
 On Sun, 02 Dec 2007 18:48:33 +0100
 Jorn Argelo [EMAIL PROTECTED] wrote:
 
 
  Also note that vi doesn't work by default as it needs to write
  to /tmp. So mount /tmp or re-mount / to RW permissions.
 
 I think vi will also fail unless it has access to termcap, so you'd
 need /usr mounted too.

You can copy /usr/share/misc/termcap.db to /root/.termcap.db and use
/rescue/vi. Only / and /tmp is needed.

Regards


pgpJ8kyXu7D5b.pgp
Description: PGP signature


Re: Help with Crontab

2007-12-07 Thread Drew Tomlinson

On 12/7/2007 10:49 AM Kevin Kinsey wrote:

Drew Tomlinson wrote:
I'm trying to use cron to run a script on the first Sunday of every 
month at 0930.  I used this entry in the crontab:


# Run 1st Sunday at 0930 - Fulls
30 9 1-7 * 7 /usr/local/scripts/backup_bootstrap.sh

Yet this script just ran on Thursday, December 6 at 0930.   Why?  I 
just added it to cron so I don't know if it will run on any other days.




See crontab(5), which says:

 Note: The day of a command's execution can be specified by two fields --
day of month, and day of week.  If both fields are restricted (ie, 
are

not *), the command will be run when either field matches the current
time.  For example, ``30 4 1,15 * 5'' would cause a command to be 
run at

4:30 am on the 1st and 15th of each month, plus every Friday.

HTH,

Kevin Kinsey



Thank you for the reply.  Now I see the light.  :)  So I suppose there 
is no way to schedule as I wish using cron.  I suspect I'll have to 
modify my script to do the date  checking and only execute the meat if 
it's the right date.


Thanks,

Drew

--
Be a Great Magician!
Visit The Alchemist's Warehouse

http://www.alchemistswarehouse.com

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


help wanted configuring HPLIP

2007-12-07 Thread Robert Huff

I've got it installed, see the post-install configuration
message, and have questions about how it will interact with existing
printers.


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


How to get best results from FreeBSD-questions

2007-12-07 Thread Greg Lehey

How to get the best results from FreeBSD questions.
===

Last update $Date: 2005/08/10 02:21:44 $

This is a regular posting to the FreeBSD questions mailing list.  If
you got it in answer to a message you sent, it means that the sender
thinks that at least one of the following things was wrong with your
message:

- You left out a subject line, or the subject line was not appropriate.
- You formatted it in such a way that it was difficult to read.
- You asked more than one unrelated question in one message.
- You sent out a message with an incorrect date, time or time zone.
- You sent out the same message more than once.
- You sent an 'unsubscribe' message to FreeBSD-questions.

If you have done any of these things, there is a good chance that you
will get more than one copy of this message from different people.
Read on, and your next message will be more successful.

This document is also available on the web at
http://www.lemis.com/questions.html.

=

Contents:

I:Introduction
II:   How to unsubscribe from FreeBSD-questions
III:  Should I ask -questions or -hackers?
IV:   How to submit a question to FreeBSD-questions
V:How to answer a question to FreeBSD-questions

I: Introduction
===

This is a regular posting aimed to help both those seeking advice from
FreeBSD-questions (the newcomers), and also those who answer the
questions (the hackers).

   Note that the term hacker has nothing to do with breaking
   into other people's computers.  The correct term for the latter
   activity is cracker, but the popular press hasn't found out
   yet.  The FreeBSD hackers disapprove strongly of cracking
   security, and have nothing to do with it.

In the past, there has been some friction which stems from the
different viewpoints of the two groups.  The newcomers accused the
hackers of being arrogant, stuck-up, and unhelpful, while the hackers
accused the newcomers of being stupid, unable to read plain English,
and expecting everything to be handed to them on a silver platter.  Of
course, there's an element of truth in both these claims, but for the
most part these viewpoints come from a sense of frustration.

In this document, I'd like to do something to relieve this frustration
and help everybody get better results from FreeBSD-questions.  In the
following section, I recommend how to submit a question; after that,
we'll look at how to answer one.

II:  How to unsubscribe from FreeBSD-questions
==

When you subscribed to FreeBSD-questions, you got a welcome message
from [EMAIL PROTECTED]  In this message, amongst
other things, it told you how to unsubscribe.  Here's a typical
message:

  Welcome to the freebsd-questions@freebsd.org mailing list!

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

  http://lists.freebsd.org/mailman/options/freebsd-questions/[EMAIL PROTECTED]
  
(obviously, substitute your mail address for [EMAIL PROTECTED]).  You can
also make such adjustments via email by sending a message to:

  [EMAIL PROTECTED]
  
with the word 'help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including
changing the password, itself) or to unsubscribe.
  
Normally, Mailman will remind you of your freebsd.org mailing list
passwords once every month, although you can disable this if you
prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.

  Here's the general information for the list you've
  subscribed to, in case you don't already have it:

  FREEBSD-QUESTIONS   User questions
  This is the mailing list for questions about FreeBSD.  You should not
  send how to questions to the technical lists unless you consider the
  question to be pretty technical.

Normally, unsubscribing is even simpler than the message suggests: you
don't need to specify your mail ID unless it is different from the one
which you specified when you subscribed.

If Majordomo replies and tells you (incorrectly) that you're not on
the list, this may mean one of two things:

  1.  You have changed your mail ID since you subscribed.  That's where
  keeping the original message from majordomo comes in handy.  For
  example, the sample message above shows my mail ID as
  [EMAIL PROTECTED]  Since then, I have changed it to
  [EMAIL PROTECTED]  If I were to try to remove [EMAIL PROTECTED] from
  the list, it would fail: I would have to specify the name with
  which I joined.

  2.  You're subscribed to a mailing list which is subscribed to
  

Re: What's the point of the shell choice in single user mode? [now: keyboards]

2007-12-07 Thread Frank Shute
On Fri, Dec 07, 2007 at 03:42:45PM +0100, Erik Trulsson wrote:

 On Fri, Dec 07, 2007 at 02:33:25PM +, Frank Shute wrote:
  On Fri, Dec 07, 2007 at 01:56:33PM +0100, Erik Trulsson wrote:
  
   On Fri, Dec 07, 2007 at 12:43:35PM +, John Murphy wrote:

  snip

Thanks for all the tips on this subject. One more question:

How would I enable a local keyboard layout in single user mode?
I have had to find '/' by trial and error on my UK keyboard.

   
   You can use kbdcontrol(1) to load a new keyboard mapping. (Probably
   requires that /usr is already mounted to work correctly.)
   

   You can also specify in the kernel config file which keyboard
   layout should be used by default.  See the atkbd(4) or ukbd(4)
   manpages for details.
   
  
  You can also specify it in /etc/rc.conf:
  
  keymap=uk.cp850
 
 When you boot into single user mode (which the question was about)
 the settings in /etc/rc.conf has not been applied yet.  That happens
 later in the boot process.
 

Thanks for correcting me. I always go into single user from multi-user
so I guess it has been applied already. 

Thanks for the tip about setting it in the kernel config, I'll do that
in case I have to boot into single user from boot-up.

The handbook seems a bit sparse about keyboards. Wouldn't it be a good
idea to recommend to all foreign users to set their keyboard in
their kernel config? I assume it defaults to US.

Just what you need in an emergency, a keyboard out of whack ;)


-- 

 Frank 


 Contact info: http://www.esperance-linux.co.uk/misc/contact.html 

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


Re: help wanted configuring HPLIP

2007-12-07 Thread Anish Mistry
On Friday 07 December 2007, Robert Huff wrote:
 Predrag Punosevac writes:
 I've got it installed, see the post-install configuration
message, and have questions about how it will interact with
existing printers.
 
   You might want to repeat your message as attachments are
  stripped by the FreeBSD mail server.

   Didn't send an attachment.
   Here's the scenario:
   Computer in question is runnong -CURRENT and already has CUPS
 installed for the (parallel attached) LaserJet 6mp.
   I now have access to a PSC 7xx, which I would like to use 0x1
 % for color printing and the rest for scanning.  As far as i can
 tell sane by itself does not have the ability to do this, but it
 concert with HPLIP it does.
   First question: is this correct?  Not just connect to the PSC,
 but use both devices at once  If not, then I just abort the whole
 plan.
   After seeing the post-installation message for HPLIP, I wat to
 understand what I'm doing before messing with devfs.  (Revuilding
 the kernel is no biggie, though I don't think that'll be
 necessary.) And, frankly, configuring CUPS is usually as pleasant
 as aggrssive dysentery.
You should be fine since your other printer is a parallel port 
printer.  The HPLIP port doesn't configure parallel port printers so 
just use the normal CUPS configuration.  There are some issues with 
the PSC printers and getting attached as umass devices.  Search the 
archives for more info.  Basically a real solution for the umass 
issue won't appear until the HPS USB stack grows generic device 
access for already claimed usb devices support sometime next year.

-- 
Anish Mistry
[EMAIL PROTECTED]
AM Productions http://am-productions.biz/


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


Re: Hopefully an easy header rewriting problem for Postfix

2007-12-07 Thread Noel Jones
On Dec 7, 2007 12:23 PM, Clint Olsen [EMAIL PROTECTED] wrote:
 I essentially want to rewrite all envelope senders of the form:

 @host.my.domain

 to just

 @my.domain

http://www.postfix.org/ADDRESS_REWRITING_README.html#masquerade

Looks like exactly what you describe.

Just set in main.cf:
masquerade_domains = my.domain
and then run  postfix reload

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


Re: help wanted configuring HPLIP

2007-12-07 Thread Robert Huff
Predrag Punosevac writes:

  I've got it installed, see the post-install configuration
   message, and have questions about how it will interact with existing
   printers.
  

  You might want to repeat your message as attachments are stripped by the 
  FreeBSD mail server.

Didn't send an attachment.
Here's the scenario:
Computer in question is runnong -CURRENT and already has CUPS
installed for the (parallel attached) LaserJet 6mp.
I now have access to a PSC 7xx, which I would like to use 0x1
% for color printing and the rest for scanning.  As far as i can
tell sane by itself does not have the ability to do this, but it
concert with HPLIP it does.
First question: is this correct?  Not just connect to the PSC,
but use both devices at once  If not, then I just abort the whole
plan.
After seeing the post-installation message for HPLIP, I wat to
understand what I'm doing before messing with devfs.  (Revuilding
the kernel is no biggie, though I don't think that'll be necessary.)
And, frankly, configuring CUPS is usually as pleasant as aggrssive
dysentery.

  For generic informatin
  
  http://dsteinbrook.googlepages.com/hpliponfreebsd

Bookmarked.

Thank you.


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


Re: copying just / (not /tmp, /usr, etc) (rsync -x failed)

2007-12-07 Thread Jerry McAllister
On Wed, Dec 05, 2007 at 10:10:20AM -0700, James Harrison wrote:

 On Wed, 2007-12-05 at 10:41 -0500, Jerry McAllister wrote:
  On Tue, Dec 04, 2007 at 05:38:20PM -0700, Steve Franks wrote:
  
   I have / on one slice, and [usr,tmp,var] on others.  I want to move
   just / to a new disk, which seemed to be what rsync -x (do not cross
   filesystems) was intended for.  It failed, however, as df shows 20k
   blocks in /, and rsync filled up the target slice with 50k blocks, so
   obviously it blew right past the 'end' of / - did I miss something? Is
   there no other way except to umount [tmp,usr,var]?
  
  I would use dump/restore.
  
  Build the filesystem in the new disk partition with fdisk, bsdlabel
  and newfs as needed. Then mount the new partition somewhere - 
  example:
mkdir /newpart
mount /dev/ad1s1a /newpart 
  (presuming new disk is ad1, slice is 1, partition is a)
Doesn't hurt to do an fsck on it here before writing to it, but it
probably isn't really needed.
  
  Then, run the dump/restore
  
cd /newpart
dump 0af - / | restore -rf -
  
  This will get all of / as you want.  The other mountpoints for /tmp, /usr
  and /var will be copied, but not the contents of those filesystems.  You
  probably want that.
  
  jerry
  
   
   Thanks,
   Steve
 
 Everyone's recommending dump/restore for copying file systems, and
 there's something that I've never really been clear on.

The advantage of dump/restore is that it will handle all file situations
correctly.   Most of the other copy schemes miss on something, such as
hard links.   It is easy to use.
 
 The nice thing about rsync is that it's network aware. Can dump dump a
 file system across a network?
 

Rsync is OK, especially if you want to set up something for a regular
scheduled copy/update, but may be too much for making a single copy.

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


Re: CD/DVD writer no longer works

2007-12-07 Thread Paul Schmehl
--On Thursday, December 06, 2007 19:14:51 +0100 Wojciech Puchar 
[EMAIL PROTECTED] wrote:



/home/pauls/Downloads/FreeBSD/6.2-RELEASE-amd64-disc1.iso fixate
burncd: ioctl(CDRIOCWRITESPEED): Input/output error
[EMAIL PROTECTED] mount /dev/acd
acd0  acd1
[EMAIL PROTECTED] mount /dev/acd1 /mnt/cdrom/
mount: /dev/acd1: Input/output error


mount_cd9660 - unless you use FFS on CD/DVD.

CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00 00 00 00 00
00  00 00 00 00 00 00 00 00 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.000s timeout 40s
cdrecord: No disk / Wrong disk!



looks like your device is broken - reports no disk


Looks like this is it.  To verify I booted into Windows (which I almost 
never do), and the drive doesn't work - it can't even read a disk.  So it's 
an apparent hardware failure.


--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

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


Problems with auditd

2007-12-07 Thread Paul Schmehl
I upgraded my system from 6.0 RELEASE to 6.2 RELEASE by cvsupping the files 
and then running buildkernel/buildworld as usual.  Since doing that, auditd 
will not run, even though I have auditd_enable=YES in /etc/rc.conf. I've 
been reading online posts about auditd and auditing (as well as the man 
pages) but I haven't found what the problem is.


If I run audit -s, I get this:
[EMAIL PROTECTED] audit -s
Error sending trigger: Function not implemented

Any idea what the problem might be?  I *thought* I had the latest sources. 
I have since cvsupped a second time and rebuilt world, but I have not 
rebuilt the kernel.


--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

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


Re: DVD's and FreeBSD

2007-12-07 Thread Predrag Punosevac

Gary Kline wrote:

Update:

Well, totem chokes when trying to play a DVD,
Totem is not good DVD player and that has to do nothing with the 
FreeBSD, OpenBSD or whatever Linux you want to use. You may read
here why is so difficult to use DVDs 
http://www.dvddemystified.com/dvdfaq.html


Ogle is by far the best DVD player but VLC and MPlayer are able to play 
stunning number of different proprietary and non-proprietary video and 
audio formats.



 but kmplayer works
--altho with fewer control flow options.  And after compiling
	in device atapicam into my KERNCONF, k3b still chokes.   
K3b works fine or I should say as good as on any of major Linux 
distribution. Something is wrong with your configuration.

Read very carefully

$ make showinfo /usr/ports/sysutils/k3b




So.
For toys, Linux; for superior [unbeatable] stability, FreeBSD
is still first rate.

gary
  
Depends what you mean by playing. Some people use Flash or Java for work 
and FreeBSD is definitely not for them.
For me personally works boot as a professional tool and as life-stile 
OS. But then it doesn't work for my mother in law and probably

it doesn't work for 99% of other casual computer users.

Cheers,
Predrag


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