LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba PDF printer (https://www.linuxquestions.org/questions/linux-networking-3/samba-pdf-printer-131963/)

AdamPengelly 01-06-2004 03:28 AM

Samba PDF printer
 
I use Redhat 9.0 at home as a webserver and my home PC, and want to install it as a dual boot at work.

I want it purely so that users can print documents to a share as PDF's from Windows 2000 on a Win 2000 network. Is this possible? What would be the best way to install Redhat 9.0? e.g.

Workstation or Server
Which services to install
How to connect to current 2000 network domain
etc....

I really appreciate your help in this matter.

david_ross 01-09-2004 08:59 AM

Take a look at this howto:
http://linuxgazette.net/issue72/bright.html

You may also be interested in:
http://sourceforge.net/projects/pdfcreator

AdamPengelly 01-09-2004 10:27 AM

Believe it or not, those were the documents that persuaded me to do this, but I can't get samba to work properly. On my windows machines I can see the Samba Box, But I just can't connect to it "\\Samba is not accessible".

Can anyone offer me an example smb.conf? All I want is for everyone on the network to be able to read/write a single share on my samba machine.

Rock on.......

david_ross 01-09-2004 12:47 PM

It is probably your firewall settings - post the output of:
iptables -L

AdamPengelly 01-12-2004 03:46 AM

David, I have never used iptables before. I disabled it, and the samba share works.

The output of my iptables is below. If you could let me know what I need to do to adjust it suitably I would be most greatfull.

Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Lokkit-0-50-INPUT (2 references)
target prot opt source destination
ACCEPT udp -- mhserver3.martinhale.co.uk anywhere udp spt:domain dpts:1025:65535
ACCEPT udp -- anywhere anywhere udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT udp -- anywhere anywhere udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT all -- anywhere anywhere
REJECT tcp -- anywhere anywhere tcp dpts:0:1023 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:nfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp dpts:0:1023 reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp dpt:nfs reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpts:x11:6009 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:xfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable

Thanks

AdamPengelly 01-12-2004 05:04 AM

David, Sorry, I realise that the above is just the standard iptables that are set up when it is off. The below is the table when it is on:

Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Lokkit-0-50-INPUT (2 references)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT udp -- anywhere anywhere udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT all -- anywhere anywhere
REJECT tcp -- anywhere anywhere tcp dpts:0:1023 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:nfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp dpts:0:1023 reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp dpt:nfs reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpts:x11:6009 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:xfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable

david_ross 01-12-2004 12:22 PM

It looks like you are using lokkit. Just rereun it and add rules to allow ports:
137/udp
138/udp
139/tcp

AdamPengelly 01-13-2004 03:05 AM

And I do that how?

Sorry, I did mention I have never used iptables before. Beyond starting and stopping it, I have no idea.

Thanks very much for you help so far.

david_ross 01-13-2004 12:26 PM

If you run lokkit you get an option to cusomise your firewall rules and there is a box where you can enter additional ports,


All times are GMT -5. The time now is 06:20 PM.