Re: HP 4M plus network printer question

2005-12-08 Thread Dave Webster
Thankyou for your suggestion.  I wound up with the
following /etc/printcap on my remote FBSD bos:

lp|HP4M|hp|printer:\

:lp=:sh:rm=10.0.10.1:rp=text:sd=/var/spool/lpd/hp:if=/usr/local/libexec/ifhp:

where 10.0.10.1 is the IP of the printer not of the server machine.
Everthing's printing fine now.  But I do have another question.  I'm
using DHCP on the server to assign IP addresses to the hp printer, the
LAN FBSD and hopefully another LAN FBSD for my kids.  How do you put the
IP addresses in /etc/hosts if they are assigned dynamically without
having to edit /etc/hosts evertime the lease assignment changes?

This problem has come up previously when I try to ping between machines
using hostnames rather than the assigned IP addresses without telling
the /etc/hosts files the actual IP addresses and what names they resolve
to.  Is there some way DHCP can be configured to pass on the FQDN to the
LAN machines and in return receive the FQDN from these machines and use
these names in conf files etc. even if the IP addresses change from
session to session?

Or am I going to have to use static IP address assignment?

Dave


On Thu, 2005-12-08 at 15:44 -0700, Warren Block wrote:
 On Tue, 6 Dec 2005, Dave Webster wrote:
 
  I have a FBSD server/ router connected to a switch box off which is
  another FBSD computer and an HP4M plus printer (JetDirect nic).  Using
  the Handbook LPD Simple Printer setup, I'm able to print from the
  server using commands: lptest 20 5 | lpr -PHP4M  and lpr -Plpps file.ps
  So far so good.  When I follow the instructions to print from the other
  FBSD computer to this remote printer, I get nothing.
 
  The /etc/printcap on the server is:
  #   @(#)printcap5.3 (Berkeley) 6/30/90
  # $FreeBSD: src/etc/printcap,v 1.14 2004/06/06 11:46:27 schweikh Exp $
 
  lp|HP4M|local line printer:\
  :sh:sd=/var/spool/output/lpd:\
  :rm=HP4M:\
  :rp=text:\
  :if=/usr/local/libexec/ifhp
 
  lpps|HP4M|local line printer:\
  :sh:sd=/var/spool/output/lpd:\
  :rm=NPI1E4DCE.dwebman.com:\
  :rp=raw:
 
  The /etc/printcap on the other FBSD computer is:
  #   @(#)printcap5.3 (Berkeley) 6/30/90
  # $FreeBSD: src/etc/printcap,v 1.14 2004/06/06 11:46:27 schweikh Exp $
 
 
  HP4M|hp|printer:\
 :lp=:rm=gateway:rp=HP4M:sd=/var/spool/lpd/hp:
 
 Check the lpd-errs log file on both machines, but here's a guess:
 
 Make sure that gateway's /etc/hosts has an entry for the client machine, 
 and that the IP address or hostname of the client is in gateway's 
 /etc/hosts.lpd file.
 
 -Warren Block * Rapid City, South Dakota USA

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


HP 4M plus network printer question

2005-12-06 Thread Dave Webster
I have a FBSD server/ router connected to a switch box off which is
another FBSD computer and an HP4M plus printer (JetDirect nic).  Using
the Handbook LPD Simple Printer setup, I'm able to print from the
server using commands: lptest 20 5 | lpr -PHP4M  and lpr -Plpps file.ps
So far so good.  When I follow the instructions to print from the other
FBSD computer to this remote printer, I get nothing.  

The /etc/printcap on the server is:
#   @(#)printcap5.3 (Berkeley) 6/30/90
# $FreeBSD: src/etc/printcap,v 1.14 2004/06/06 11:46:27 schweikh Exp $

#
#
lp|HP4M|local line printer:\
 :sh:sd=/var/spool/output/lpd:\
 :rm=HP4M:\
 :rp=text:\
 :if=/usr/local/libexec/ifhp

lpps|HP4M|local line printer:\
 :sh:sd=/var/spool/output/lpd:\
 :rm=NPI1E4DCE.dwebman.com:\
 :rp=raw:

The /etc/printcap on the other FBSD computer is:
#   @(#)printcap5.3 (Berkeley) 6/30/90
# $FreeBSD: src/etc/printcap,v 1.14 2004/06/06 11:46:27 schweikh Exp $


HP4M|hp|printer:\
:lp=:rm=gateway:rp=HP4M:sd=/var/spool/lpd/hp:


Any help would be greqtly appreciated.

Dave

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


Re: adding a second hard drive

2005-11-11 Thread Dave Webster
Thank you for the reply.  Your recommendation has worked and I now have
an additional hard drive on my system.  I was able to straighten out the
original drive  from some backups.  Every challenge in FreeBSD is such
an incredible learning experience.  Thanks once again.

Dave
On Fri, 2005-11-11 at 08:27 -0500, Lowell Gilbert wrote:
 Dave Webster [EMAIL PROTECTED] writes:
 
  To solve a problem I'm having with /var running out of space, I decided
  to add a second hard drive.
  
  I found info at freebsd.org on adding disks using sysinstall and
  followed the advice.  The old disk is a Maxtor 6Y080L0 80G as ad0 and
  the new disk is a Maxtor 6Y120P0 as ad3.  I ran sysinstall, chose ad3
  and parition it with: / 512M, /swap 2G, /tmp 3G, /var 4G, /usr
  30G, /data 76G.  Did an installation with Kern source and documentation.
  Added a new user, and set a password for root.  I added the FreeBSD boot
  manager.
  
  I rebooted to ad0 (didn't have the FreeBSD boot manager on this drive
  yet), and found I could no longer login as the regular user and that my
  root password was the one I had just set up on ad3.  I adduser my old
  login and assigned it the original ID and got back the settings in my
  home directory, although I don't know what I've doen to the
  configuration files in /etc.
  
  I tried to put the FreeBSD boot manager on ad0 with:
  boot0cfg -B ad0 but get an erro:
  boot0cfg: open /de/ad0: no such file or directory
  
  I've googled this problem but have found little help except that it
  shouldn't happen and it should be reported.
  
  I'm running FreeBSD 5.4 stable.  I'm temped to start over from scratch
  but would hate to lose everythin on ad0 without first transferring it to
  ad3.  I've tried to mount ad3 and ad3c (the only references to ad3
  in /dev) using:
  mount /dev/ad3 /mnt/bigdrive but get an error:
  mount: /dev/ad3 on /mnt/bigdrive: incorrect super block
  
  So I'm pretty lost.  Any help would be greatly appreciated.  I've spent
  4-5 hrs googling for solutions but nothing seems to work.
 
 It sure *sounds* like you accidentally did your install to the old
 disk instead of the new one.  If that is the case, then your old data
 are indeed lost -- overwritten with the new install.
 
 Also, it sounds like you were following the advice for moving your
 whole system to the new disk, whereas the advice for *adding* the new
 disk to the old one would have been more appropriate.  That's the
 disk formatting tutorial article in the documentation collection.

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


adding a second hard drive

2005-11-10 Thread Dave Webster
To solve a problem I'm having with /var running out of space, I decided
to add a second hard drive.

I found info at freebsd.org on adding disks using sysinstall and
followed the advice.  The old disk is a Maxtor 6Y080L0 80G as ad0 and
the new disk is a Maxtor 6Y120P0 as ad3.  I ran sysinstall, chose ad3
and parition it with: / 512M, /swap 2G, /tmp 3G, /var 4G, /usr
30G, /data 76G.  Did an installation with Kern source and documentation.
Added a new user, and set a password for root.  I added the FreeBSD boot
manager.

I rebooted to ad0 (didn't have the FreeBSD boot manager on this drive
yet), and found I could no longer login as the regular user and that my
root password was the one I had just set up on ad3.  I adduser my old
login and assigned it the original ID and got back the settings in my
home directory, although I don't know what I've doen to the
configuration files in /etc.

I tried to put the FreeBSD boot manager on ad0 with:
boot0cfg -B ad0 but get an erro:
boot0cfg: open /de/ad0: no such file or directory

I've googled this problem but have found little help except that it
shouldn't happen and it should be reported.

I'm running FreeBSD 5.4 stable.  I'm temped to start over from scratch
but would hate to lose everythin on ad0 without first transferring it to
ad3.  I've tried to mount ad3 and ad3c (the only references to ad3
in /dev) using:
mount /dev/ad3 /mnt/bigdrive but get an error:
mount: /dev/ad3 on /mnt/bigdrive: incorrect super block

So I'm pretty lost.  Any help would be greatly appreciated.  I've spent
4-5 hrs googling for solutions but nothing seems to work.

thanks in advance
Dave

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


filesystem full error

2005-11-06 Thread Dave Webster
Hi,
I'm trying to: pkg_add -r openoffice and I get the following:

/var: write failed, filesystem is full
mkdir: /var/db/pkg/ORBit-0.5.17_2: No space left on device
pkg_add: can't record package infor '/var/db/pkg/ORBit-0.5.17_2', you're
on your own!

That last part is particularily chilling - if I'm on my own, I'm hooped!

Here's the result of df -h:
 
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ad0s1a248M 93M135M41%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ad0s1e248M294K228M 0%/tmp
/dev/ad0s1f 72G 25G 42G37%/usr
/dev/ad0s1d248M 62M166M27%/var
linprocfs  4.0K4.0K  0B   100%/usr/compat/linux/proc

Any suggestions on what I should do?
thanx in advance,
Dave


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


Re: filesystem full error

2005-11-06 Thread Dave Webster
Thanks for your reply:
df -i shows:

Filesystem  1K-blocks UsedAvail Capacity iused   ifree %iused
Mounted o n
/dev/ad0s1a25367895568   13781641%2400   306227%   /
devfs   110   100%   0   0
100%   /dev
/dev/ad0s1e253678  294   233090 0%  28   32994
0%   /tmp
/dev/ad0s1f  75780150 25875488 4384225037%  674565 9123065
7%   /usr
/dev/ad0s1d25367863504   16988027%2827   30195
9%   /var
linprocfs   440   100%   1   0
100%   /usr/comp at/linux/proc


On Sun, 2005-11-06 at 17:06 -0800, Glenn Dawson wrote:
 At 04:59 PM 11/6/2005, Dave Webster wrote:
 Hi,
 I'm trying to: pkg_add -r openoffice and I get the following:
 
 /var: write failed, filesystem is full
 mkdir: /var/db/pkg/ORBit-0.5.17_2: No space left on device
 pkg_add: can't record package infor '/var/db/pkg/ORBit-0.5.17_2', you're
 on your own!
 
 That last part is particularily chilling - if I'm on my own, I'm hooped!
 
 Here's the result of df -h:
 
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/ad0s1a248M 93M135M41%/
 devfs  1.0K1.0K  0B   100%/dev
 /dev/ad0s1e248M294K228M 0%/tmp
 /dev/ad0s1f 72G 25G 42G37%/usr
 /dev/ad0s1d248M 62M166M27%/var
 linprocfs  4.0K4.0K  0B   100%/usr/compat/linux/proc
 
 You probably ran out of inodes.  What does df -i show?
 
 -Glenn
 
 
 Any suggestions on what I should do?
 thanx in advance,
 Dave
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [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: filesystem full error

2005-11-06 Thread Dave Webster
Thanks for the response,
I edited the /etc/rc.conf with the clear_tmp_enable=YES
rebooted
reran pkg_add -r openoffice
same error.

On Sun, 2005-11-06 at 16:58 -0800, Michael C. Shultz wrote:
 On Sunday 06 November 2005 16:59, Dave Webster wrote:
  Hi,
  I'm trying to: pkg_add -r openoffice and I get the following:
 
  /var: write failed, filesystem is full
  mkdir: /var/db/pkg/ORBit-0.5.17_2: No space left on device
  pkg_add: can't record package infor '/var/db/pkg/ORBit-0.5.17_2', you're
  on your own!
 
  That last part is particularily chilling - if I'm on my own, I'm hooped!
 
  Here's the result of df -h:
 
  Filesystem SizeUsed   Avail Capacity  Mounted on
  /dev/ad0s1a248M 93M135M41%/
  devfs  1.0K1.0K  0B   100%/dev
  /dev/ad0s1e248M294K228M 0%/tmp
  /dev/ad0s1f 72G 25G 42G37%/usr
  /dev/ad0s1d248M 62M166M27%/var
  linprocfs  4.0K4.0K  0B   100%/usr/compat/linux/proc
 
  Any suggestions on what I should do?
  thanx in advance,
  Dave
 
 In /etc/rc.conf set:
 
 clear_tmp_enable=NO
 
 to
 
 clear_tmp_enable=YES
 
 then reboot.
 
 -Mike

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


Re: filesystem full error

2005-11-06 Thread Dave Webster
Tried the link  and commented out the line in /etc/fstab, rebooted but
still get the same problem.
On Sun, 2005-11-06 at 21:13 -0800, Michael C. Shultz wrote:
 On Sunday 06 November 2005 21:07, Michael C. Shultz wrote:
  On Sunday 06 November 2005 20:57, Dave Webster wrote:
   Thanks for the response,
   I edited the /etc/rc.conf with the clear_tmp_enable=YES
   rebooted
   reran pkg_add -r openoffice
   same error.
 
  248M 62M166M27%/var
 
  probably you don't have enough drive space on tmp, try linking
  /tmp to /usr/tmp, you have 42 gigs free there. On your machine
  try this
 
  mkdir /usr/tmp
  umount -f /tmp
  rm -r /tmp
  ln -sv /usr/tmp /tmp
 
  then reboot
 
  -Mike
 
 If its not too late, go into
 /etc/fstab and comment out the line that
 mounts /dev/ad0s1e to /tmp
 before you reboot
 
 sorry I forgot to mention that...
 
 
 
 
 
   On Sun, 2005-11-06 at 16:58 -0800, Michael C. Shultz wrote:
On Sunday 06 November 2005 16:59, Dave Webster wrote:
 Hi,
 I'm trying to: pkg_add -r openoffice and I get the following:

 /var: write failed, filesystem is full
 mkdir: /var/db/pkg/ORBit-0.5.17_2: No space left on device
 pkg_add: can't record package infor '/var/db/pkg/ORBit-0.5.17_2',
 you're on your own!

 That last part is particularily chilling - if I'm on my own, I'm
 hooped!

 Here's the result of df -h:

 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/ad0s1a248M 93M135M41%/
 devfs  1.0K1.0K  0B   100%/dev
 /dev/ad0s1e248M294K228M 0%/tmp
 /dev/ad0s1f 72G 25G 42G37%/usr
 /dev/ad0s1d248M 62M166M27%/var
 linprocfs  4.0K4.0K  0B   100%/usr/compat/linux/proc

 Any suggestions on what I should do?
 thanx in advance,
 Dave
   
In /etc/rc.conf set:
   
clear_tmp_enable=NO
   
to
   
clear_tmp_enable=YES
   
then reboot.
   
-Mike

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


can't run /sbin commands

2005-09-15 Thread Dave Webster
When I first installed FreeBSD I was able to run halt and reboot as
su without the full /sbin/reboot command.  After adding a new path to
PATH, I've been unable to run these commands without specifying the full
path.  
Recently I tried to install acroread 7.0 and the installation complained
I didn't have Linux ABI enabled.  When I check /etc/rc.conf, I have:
linux_enable=YES
I noticed that when the system was trying to make install the acroread
port, it issued the kldstat command - then gave me the error about not
having linux ABI.  kldstat can only run if the full path /sbin/kldstat
is invoked.
Here is the output of echo $PATH:
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:
/usr/X11R6/bin:/home/Dave/bin:/usr/home/Dave/apache-forrest-0.7/bin

My question is with /sbin in the path why do I have to
specify /sbin/reboot, /sbin/kldstat etc.?  Could this be causing my make
install to fail?  How can /sbin be in the path and still require a full
path declaration for it's commands to work.

regards,
Dave




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


Re: can't run /sbin commands

2005-09-15 Thread Dave Webster
Thanks Alex,
Looking at my .tcshrc file I saw the shell variable path set as:
set path =
(/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin 
/usr/X11R6/bin
$HOME/bin)

but the environment variable PATH set as:
setenv PATH {$PATH}:$FORREST_HOME/bin

I removed the s and everything works fine.  Acroread7 installed fine.

I'm a happy camper.  Thanks for your help.
Dave

PS. Is there some good reference to explain shell variables and
environment variables, how they're set and their lifetime.
On Thu, 2005-09-15 at 10:10 +0100, Alex Zbyslaw wrote:
 Dave Webster wrote:
 
 When I first installed FreeBSD I was able to run halt and reboot as
 su without the full /sbin/reboot command.  After adding a new path to
 PATH, I've been unable to run these commands without specifying the full
 path.  
 [...]
 Here is the output of echo $PATH:
 /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:
 /usr/X11R6/bin:/home/Dave/bin:/usr/home/Dave/apache-forrest-0.7/bin
 
 My question is with /sbin in the path why do I have to
 specify /sbin/reboot, /sbin/kldstat etc.?  Could this be causing my make
 install to fail?  How can /sbin be in the path and still require a full
 path declaration for it's commands to work.
   
 
 The short answer to your question is that if /sbin really were in your 
 path you would be able to run programs from it, therefore /sbin is *not* 
 in your path.  (Since you can run commands from /sbin with full path 
 names it can't be file permissions or deleted programs).  Either that or 
 something else on you path is somehow messing up your shell big-time, 
 but that seems less likely.
 
 You say that the problems started after you changed you path (I assume 
 in your .profile or whatever).  So, quite simply, you must have made 
 some kind of mistake.  I would suggest going back to the file you edited 
 and starting again.  Comment out the PATH specification and add things 
 back one at a time.  Assuming a /bin/sh or derivative, you can re-load 
 your file with
 . filename
 
 (for csh derivatives, use source filename).
 
 After each change you make, source the changes and see if you can run 
 some innocuous program from /sbin such as kldstat.
 
 --Alex
 

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


[Fwd: ipf sample rule file]

2005-08-14 Thread Dave Webster

---BeginMessage---
Thank you for your tremendous guide for FreeBSD newbies.  I am confused
by:
# Allow out access to my ISP's DHCP server for cable or DSL networks.
# This rule is not needed for ‘user ppp’ type connection to the 
# public Internet, so you can delete this whole group.
# Use the following rule and check log for IP address. 
# Then put IP address in commented out rule  delete first rule 
pass out log quick on dc0 proto udp from any to any port = 67 keep state
#pass out quick on dc0 proto udp from any to z.z.z.z port = 67 keep
state

my /etc/resolv.conf file is:
search bc.hsia.telus.net
nameserver 154.11.128.187
nameserver 154.11.128.59
nameserver 64.114.195.135
nameserver 64.114.195.136

What should this section look like when I'm finished?

Any help would be greatly appreciated.
regards,
Dave Webster
---End Message---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]