Printer configuration with CUPs

2003-10-19 Thread geek

Is this process correct to install cups in a FreeBSD 4.9 server/workstation to install 
my printer (HP 5150):

# USB Stuff
device usb
device uhci
device ulpt

change this in the kernel (both workstation and server)



usbd_enable=YES in /etc/rc.conf (server only)



install:
/usr/ports/print/ghostscript-gnu-nox11 (on server)
and
/usr/ports/print/ghostscript-gnu (on workstation)

..

install CUPS from ports in both, server and workstation



rm /usr/bin/lpr (on both, server and workstation)



cp /usr/local/etc/rc.d/cups.sh.sample /usr/local/etc/rc.d/cups.sh (on both, server and 
workstation)

...


Uncomment application/octet-stream in /usr/local/etc/cups/mime.types and 
/usr/local/etc/cups/mime.convs (both workstation and server)



Uncomment BrowseAddress @LOCAL in /usr/local/etc/cups/cupsd.conf (workstation and 
server)

is this all correct?!

but when i try to print:



lpr file
lpr:error - scheduler not responding!

or 

lp file
exec: /usr/bin/lpr: not found


# ps -wax | grep cupsd
100 ?? Ss 0:00:09 /usr/local/sbin/cupsd

... so i chek www.freebsddiary.org/cups.html

and i have to configure my printer in http://localhost:631/admin,
but when i try to links http://localhost:631/admin from my server, the answer is: 
unauthorized this server could not verify that you're authorized to access the 
resource

so .. what i have to do to have it working ?

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


RE: Printer configuration with CUPs

2003-10-19 Thread geek

hey, i addedd succefully a printer in my workstation, but i cant add it on server with 
links :(

but i cant print anything by my workstation .. the usb cable is connected do the 
server, i really dont understand anything about this, i'm completelly confused!!!
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Printer configuration with CUPs

2003-10-19 Thread geek

Description: hp deskjet 5150
Location: home
Printer State: processing, accepting jobs. 
Printer not connected; will retry in 30 seconds... 
Device URI: usb:/dev/ulpt0


it says USB, but the printer is USB connected only with the server, not to these 
machine :(
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Printer configuration with CUPs

2003-10-19 Thread geek

Device URI: 
Examples: 

file:/path/to/filename.prn
http://hostname:631/ipp/
http://hostname:631/ipp/port1
ipp://hostname/ipp/
ipp://hostname/ipp/port1
lpd://hostname/queue
socket://hostname
socket://hostname:9100


what url i should put here?!

the machine name server is messiah, but i could configure the printer there yet, 
because links cant accesso to the homepage of configuration, what NOX11-browser i can 
user?!

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


mp3 - wav

2003-10-09 Thread geek

I have a problem, i have a bunch of .mp3's files and i want to pass them to .wav to 
put it on my cdplayer, anyone knows, how i can put them in .wav ?!

PS: with burncd i can rip .wav files?!
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: RE: RE: [JunkMail] IPF DHCP request

2003-08-18 Thread geek
That's not the point, the dhcp works, what doesnt work is the ipf.rules (don't let the 
DHCP work), and i dont have internet anyway, my question was in this line:

 #
 # Allow bootp traffic in from your ISP's DHCP server only.
 #
 pass in quick on ed0 proto udp from X.X.X.X/32 to any port = 68 keep state

i change X.X.X.X/32 for what?! if i dont have a stable IP!?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Update ports review process

2003-08-18 Thread geek
# cd /usr/ports
# make index
this should be done 2,3 times by month!?

and then always i want to update a port:
# cvsup ports-file (i need to cvsup alway i want to update a port right?)
and then
# portupgrade PORTNAME

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


RE: Update ports review process

2003-08-18 Thread geek
My problem is fixed! thanks!
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Sound under laptop

2003-08-17 Thread geek
I'm completely puzzled about soundcards under freebsd, i have read the respective 
chapter in the handbook but i dont found a good relation with my laptop (compaq 725) 
soundacard that's:

16-Bit Sound Blaster CompatibleJBL Proi Audio System c/ Bass Reflex

# kldload snd
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
#

SO, all i have to do is add devime pcm in the kernel, and when i re-compile it, the 
sound will be working ?!

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


IPF DHCP request

2003-08-17 Thread geek
Hey guys, can u please post (who have) rules with DHCP involved?! because, i'm in 
troube, my firewall doesnt work because because my ipf.rules doesnt work and i dont 
know why!!

When i put in rules pass in/out all i have acess to the internet, otherwise, with my 
rules i dont, and i have change them so many times, and they didnt work anyway, if 
anyone can help me:

block in log all
block out log all

pass in quick on lo0 all
pass out quick on lo0 all

pass in quick on ep0 all
pass out quick on ep0 all


#Allow internal traffic to outside world
pass out quick on ep1 proto tcp all keep state
pass out quick on ep1 proto udp all keep stateuic
pass out quick on ep1 proto icmp all keep state


#Allow traffic from outside
#DNS
pass in quick on ep1 proto udp from any to any port = 53 keep state

#DHC# [dhclient]
pass in quick on ep1 proto udp from any to any port = 68 keep state keep fragsP


... where ep1 is external interface and ep0 is the internal :/

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


RE: RE: [JunkMail] IPF DHCP request

2003-08-17 Thread geek

i read it already, but i have a problem with it

#
# Allow bootp traffic in from your ISP's DHCP server only. 
#
pass in quick on ed0 proto udp from X.X.X.X/32 to any port = 68 keep state

My IP changes every time i reboot the machine, how i can make this works ?!
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Gateway problemas

2003-08-16 Thread geek
Ok, i put these rules:

pass in quick on ep0 all
pass out quick on ep0 all

pass in quick on ep1 all
pass out quick on ep1 all

pass in quick on lo0 all
pass out quick on lo0 all

and the firewall have now acess to the internet, so the problem is with my ipf.rules 
rules!!

my nat rules are:
map ep1 192.168.0.0/16 - 0/32 portmap tcp/udp 1025:65000
map ep1 192.168.0.0/16 - 0/32
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Source update problems

2003-08-16 Thread geek
I have a problem to update my source!
This is my supfile:

SRCSUPFILE:
*default host=cvsup2.freebsd.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=RELENG_4
*default delete use-rel-suffix
*default compress
src-all

and my procediment was that:

root# cvsup -g -L2 SRCSUPFILE
root# make buildworld
root# make buildkernel KERNCONF=MYKERNEL
root# make installkernel KERNCONF=MYKERNEL
root# make installworld
root# mergemaster
root# reboot

i do cvsup -g -L2 SRCSUPFILE right, but when i make make buildworld the answer was: 
make: don't know how to make buildworld. Stop!

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


RE: Gateway problemas

2003-08-16 Thread geek
Yes, i change my rc.conf already!! when i put my ipf.rules with pass in/out in all 
interfaces , i have internet ,but whith my rules i dont, so the problem have to be in 
dhcp traffic, this rule i put pass in quick on ep1 proto udp from any to any port = 
68 keep state keep frags will be sufficient for DHCP traffic to function?! something 
is wrong with DHCP (cable connection) :(
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Gateway problemas

2003-08-15 Thread geek
Hey guys, i have a weird problem , that i'm trying to resolve! My network is: a cable 
modem connected to the first NIC and the second NIC connected to the switch, and i 
decide to reinstall freebsd on my gateway and put new ipf.rules but after i put the 
new rules, i dont have access to the internet, not in the gateway neither on the other 
computers on the LAN!
My ipf.rules are:




#
# Interface:
#lo0 - loopback
#ep0 - internal to private network
#ep1 - external to cable modem
#
# Filtering policy ordering:
#+ Block everything unless there are permit (pass) rules
#- Permit all loopback packets to flow freely
#- Permit all internal network packets to flow freely
#- Permit individual type of service to flow freely to outside world:
#   ftp
#   smtp
#   whois
#   dns
#   http/https
#   pop3
#   traceroute
#   ping
#   dhclient
#+ Since there are no permit(pass) rules at this stage, everything
#  else is blocked!
# +++
# Interface: all
# Block all incoming and outgoing packets unless they're allowed later.
# +++
block in log all
block out log all

# -
# Interface: lo0
# Allow loopback to flow freely.
# -
pass in quick on lo0 all
pass out quick on lo0 all
# -

# -
# Interface: ep0
# Allow internal traffic to flow freely.
# -
pass in quick on ep0 all
pass out quick on ep0 all
# -

# -
# Interface: ep1
# Allow _internal_ and fw initiated connections from hosts behind NAT to
# outside world.
# -
# [passive ftp client to outside world step 1]
pass out quick on ep1 proto tcp from any to any port = 21 flags S keep state keep frags
# [smtp to outside world]
pass out quick on ep1 proto tcp from any to any port = 25 flags S keep state keep frags
# [whois to outside world]
pass out quick on ep1 proto tcp from any to any port = 43 flags S keep state keep frags
# [domain to outside world]
pass out quick on ep1 proto tcp from any to any port = 53 flags S keep state keep frags
pass out quick on ep1 proto udp from any to any port = 53 keep state keep frags
# [http to outside world]
pass out quick on ep1 proto tcp from any to any port = 80 flags S keep state keep frags
# [pop3 to outside world]
pass out quick on ep1 proto tcp from any to any port = 110 flags S keep state keep 
frags
# [https to outside world]
pass out quick on ep1 proto tcp from any to any port = 443 flags S keep state keep 
frags
# [passive ftp to outside world step 2 where the FTP server decides which port
# for ftp data back]
pass out quick on ep1 proto tcp from any to any port  1023 flags S keep state keep 
frags
# [traceroute to outside world 1st stage: probing...man traceroute(8)]
pass out quick on ep1 proto udp from any to any port 33434  33525 keep state keep 
frags
# [ping to outside world]
pass out quick on ep1 proto icmp from any to any keep state keep frags
# -
# Allow _external_ initiated connections from outside world to hosts behind
# NAT and the firewall.
# -
# [dhclient]
pass in quick on ep1 proto udp from any to any port = 68 keep state keep frags
# [traceroute to internal host 2nd stage: receiving error code of icmp-type 3
# (destination unreachable) and icmp-type 11 (time exceeded)]
pass in quick on ep1 proto icmp from any to any icmp-type 3 keep state keep frags
pass in quick on ep1 proto icmp from any to any icmp-type 11 keep state keep frags




and my rc.conf is that:

hostname=
ifconfig_rl0=DHCP
ifconfig_rl1=192.168.0.0
kern_securelevel_enable=NO
sendmail_enable=NONE
sshd_enable=YES
usbd_enable=YES
inetd_enable=NO
portmap_enable=NO
ipfilter_enable=YES
ipfilter_rules=/etc/ipf.rules
ipnat_enable=YES
ipnat_rules=/etc/ipf.rules
ipmon_enable=YES
ipmon_flags=-Dsn




And i had these rules to /etc/sysctl.conf:

net.inet.ip.forwarding=1
net.inet.ip.check_interface=1
net.inet.tcp.blackhole=2
net.inet.udp.blackhole=1


.. and that's it, i dont have cable connection to the internet, anyone can help me 
please?!

PS: I'm really sorry for the long post, but i really need this LAN working for work, 
and i just can't discover where the error is :(

___
[EMAIL PROTECTED] mailing list

RE: Gateway problemas

2003-08-15 Thread geek
I forgot to say the options i put when i recompile the kernel:

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


RE: Gateway problemas

2003-08-15 Thread geek
I try and change my ruleset for

pass in all
pass out all 

and i reboot the machine, and i haven't internet access anyway, so, i say something 
wrong, i dont have internet probably since i re-compile my kernel, so 
IPFILTER_DEFAULT_BLOCK can be making all this trouble to me?! and not the rules, 
right?!
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Gateway problemas

2003-08-15 Thread geek
Sorry that another post, but i release that i commented these options in my kernel 
configuration:

# pseudo-device gif
# pseudo-device faith
# pseudo-device bpf

and these barkeley packet filtering related i read somewhere that interefears in DHCP 
server/client, anyone can say if it can be affecting the DHCP traffic ?!
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Gateway problemas

2003-08-15 Thread geek
Yeah, i recompile my kernel with bpf and now pf is working, but it just works with the 
rules pass in quick all / pass ou quick all, with the rules i post here first, it 
doesnt work, so, it's something wrong in my ruleset :(
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Gateway problemas

2003-08-15 Thread geek
I can't ping the outside world from my gateway, and dont have any type of acess from 
my gateway!!

pass in quick on ep0 all
pass out quick on ep0 all

pass in quick on ep1 all
pass out quick on ep1 all

pass in quick on lo0 all
pass out quick on lo0 all

i put these rules, and then the rest of the rules that i have?! but this rules would 
permit every type of traffic under my network, isnt it ?!
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]