* [gentoo-user] Printer Sharing with Samba @ 2006-03-09 2:28 Kris Kerwin 2006-03-09 2:43 ` Daniel da Veiga ` (3 more replies) 0 siblings, 4 replies; 13+ messages in thread From: Kris Kerwin @ 2006-03-09 2:28 UTC (permalink / raw To: gentoo-user Hi folks! I have a quick question. I'm a college student. I share my printer with my roommate. We have separate computers; he uses Windows XP, and I Gentoo. Together, we're behind our school's router which dynamically assigns us both IP's. Currently, in order to share our printer, we simply unplug it from one another's computers. However, we would like to be able to share it over the network instead to make life easier for the both of us. However, there are a few problems that I'm foreseeing. First off, I have a laptop with only one ethernet port, so setting up an ad hoc network between us is out of the question. Also, my school has a "one port - one computer" rule that prohibits routers. Second, since we're both behind a DHCPd server, we both have dynamic IPs. There's no easy way to point his computer to the right server if it has a dynamic IP. Third, since we're both behind a router, using something like DynDNS to provide a static contact despite the dynamic IP won't work either. So, I guess what I'm wondering is if there's any way to make this work, or if I'm SOL? Thank you much for your help. Kris Kerwin -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Printer Sharing with Samba 2006-03-09 2:28 [gentoo-user] Printer Sharing with Samba Kris Kerwin @ 2006-03-09 2:43 ` Daniel da Veiga 2006-03-09 18:05 ` Kris Kerwin 2006-03-09 3:06 ` Boyd Stephen Smith Jr. ` (2 subsequent siblings) 3 siblings, 1 reply; 13+ messages in thread From: Daniel da Veiga @ 2006-03-09 2:43 UTC (permalink / raw To: gentoo-user On 3/8/06, Kris Kerwin <kkerwin@insightbb.com> wrote: > Hi folks! > > I have a quick question. > > I'm a college student. I share my printer with my roommate. We have > separate computers; he uses Windows XP, and I Gentoo. Together, we're > behind our school's router which dynamically assigns us both IP's. > > Currently, in order to share our printer, we simply unplug it from one > another's computers. However, we would like to be able to share it > over the network instead to make life easier for the both of us. > However, there are a few problems that I'm foreseeing. > > First off, I have a laptop with only one ethernet port, so setting up > an ad hoc network between us is out of the question. Also, my school > has a "one port - one computer" rule that prohibits routers. > > Second, since we're both behind a DHCPd server, we both have dynamic > IPs. There's no easy way to point his computer to the right server if > it has a dynamic IP. > > Third, since we're both behind a router, using something like DynDNS > to provide a static contact despite the dynamic IP won't work either. > > So, I guess what I'm wondering is if there's any way to make this > work, or if I'm SOL? > > Thank you much for your help. > > Kris Kerwin > -- > gentoo-user@gentoo.org mailing list > > I couldn't think of a more "complex" solution right now, but couldn't you simply make your IP static? I've done it at work because our DNS was failing, simply copied the network configurations gained with DHCP and made it permanent... -- Daniel da Veiga Computer Operator - RS - Brazil -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V- PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++ ------END GEEK CODE BLOCK------ -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Printer Sharing with Samba 2006-03-09 2:43 ` Daniel da Veiga @ 2006-03-09 18:05 ` Kris Kerwin 2006-03-09 18:24 ` John Jolet 2006-03-09 18:42 ` Daniel da Veiga 0 siblings, 2 replies; 13+ messages in thread From: Kris Kerwin @ 2006-03-09 18:05 UTC (permalink / raw To: gentoo-user; +Cc: Daniel da Veiga Daniel, Thanks for your quick reply. > I couldn't think of a more "complex" solution right now, but > couldn't you simply make your IP static? I've done it at work > because our DNS was failing, simply copied the network > configurations gained with DHCP and made it permanent... Question: how does one *make* a static IP? I thought that IP was assigned by DHCP? Isn't that the way that DHCP works? It leases an IP to a specific computer, which then gives up that lease when it's done using it. At that point, DHCP is free to re-lease that same IP to whomever else requests it, correct? If that's the case, what would prevent another computer from accidentally obtaining that same IP? Otherwise, if this is a viable solution, how do I make it work? I'm comfortable editing config files, but I just don't know where to go to do it. Thanks again, all, for your help. Kris On Wednesday 08 March 2006 20:43, Daniel da Veiga wrote: > On 3/8/06, Kris Kerwin <kkerwin@insightbb.com> wrote: > > Hi folks! > > > > I have a quick question. > > > > I'm a college student. I share my printer with my roommate. We > > have separate computers; he uses Windows XP, and I Gentoo. > > Together, we're behind our school's router which dynamically > > assigns us both IP's. > > > > Currently, in order to share our printer, we simply unplug it > > from one another's computers. However, we would like to be able > > to share it over the network instead to make life easier for the > > both of us. However, there are a few problems that I'm > > foreseeing. > > > > First off, I have a laptop with only one ethernet port, so > > setting up an ad hoc network between us is out of the question. > > Also, my school has a "one port - one computer" rule that > > prohibits routers. > > > > Second, since we're both behind a DHCPd server, we both have > > dynamic IPs. There's no easy way to point his computer to the > > right server if it has a dynamic IP. > > > > Third, since we're both behind a router, using something like > > DynDNS to provide a static contact despite the dynamic IP won't > > work either. > > > > So, I guess what I'm wondering is if there's any way to make this > > work, or if I'm SOL? > > > > Thank you much for your help. > > > > Kris Kerwin > > -- > > gentoo-user@gentoo.org mailing list > > I couldn't think of a more "complex" solution right now, but > couldn't you simply make your IP static? I've done it at work > because our DNS was failing, simply copied the network > configurations gained with DHCP and made it permanent... > > -- > Daniel da Veiga > Computer Operator - RS - Brazil > -----BEGIN GEEK CODE BLOCK----- > Version: 3.1 > GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- > V- PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++ > ------END GEEK CODE BLOCK------ -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Printer Sharing with Samba 2006-03-09 18:05 ` Kris Kerwin @ 2006-03-09 18:24 ` John Jolet 2006-03-09 18:42 ` Daniel da Veiga 1 sibling, 0 replies; 13+ messages in thread From: John Jolet @ 2006-03-09 18:24 UTC (permalink / raw To: gentoo-user > Question: how does one *make* a static IP? I thought that IP was > assigned by DHCP? Isn't that the way that DHCP works? It leases an IP > to a specific computer, which then gives up that lease when it's done > using it. At that point, DHCP is free to re-lease that same IP to > whomever else requests it, correct? If that's the case, what would > prevent another computer from accidentally obtaining that same IP? > > Otherwise, if this is a viable solution, how do I make it work? I'm > comfortable editing config files, but I just don't know where to go > to do it. > > Thanks again, all, for your help. > > Kris this is a more complicated question than it appears. Let's say, for instance that you have an actual dhcp server, not just a router/ap giving out ips. Now, most dhcp servers allow you to either statically, or dynamically, associate an IP with a MAC address (hardware address). I can set my dhcp server up such that you ALWAYS get the same ip address for a given mac address. This is helpful in some cases where you have more ip space than machines and want to know who gets what. I can either do that by manually adding the mac into the configuration, or by making an infinate lease time. in both cases, you've got a static dynamic address :) if you have more machines than ip space (a class C subnet has on the order of 254 possible addresses), you have to have dynamic dhcp for those. in that case, you have a much shorter lease time, and when a box comes on, it asks for the last address it has, and the dhcp server says "yes" if no one is using it, or "no, use this one" if it's in use. however, IP is NOT limited to using dhcp. you can manually set your machine to have a given ip address (since this is the gentoo list, it's in the /etc/conf.d/net file). if you're manually setting an ip address, you do have to be careful that you're not setting it in the range that the dhcp server will assign. email me offline if you need more detail than that....ip theory in general is a little off-topic. -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Printer Sharing with Samba 2006-03-09 18:05 ` Kris Kerwin 2006-03-09 18:24 ` John Jolet @ 2006-03-09 18:42 ` Daniel da Veiga 1 sibling, 0 replies; 13+ messages in thread From: Daniel da Veiga @ 2006-03-09 18:42 UTC (permalink / raw To: gentoo-user Someone with more network knowledge will probably correct any bullshit I'll type from now on... :) On 3/9/06, Kris Kerwin <kkerwin@insightbb.com> wrote: > Daniel, > > Thanks for your quick reply. > > > I couldn't think of a more "complex" solution right now, but > > couldn't you simply make your IP static? I've done it at work > > because our DNS was failing, simply copied the network > > configurations gained with DHCP and made it permanent... > > Question: how does one *make* a static IP? I thought that IP was > assigned by DHCP? Isn't that the way that DHCP works? It leases an IP Well, this is more of a server solution than a workstation one, you'll probably turn your computer off once in a while. DHCP wil not give anyone an IP that is already in use (its against TCP/IP rules), so, if you have your machine running with an IP, DHCP will not lease it (at least I think so because my machine never conflited). > to a specific computer, which then gives up that lease when it's done > using it. At that point, DHCP is free to re-lease that same IP to > whomever else requests it, correct? If that's the case, what would Yes, if your DHCP sends a DHCP_RELEASE command to the server, it will "give up" that IP and it will be available for another computer. > prevent another computer from accidentally obtaining that same IP? You just never RELEASE the IP, and when it expires you LEASE it again, and DHCP cache will always try to get the last IP, of course, I've done it in a server running all the time, first I tried RELEASING and automatic LEASING it again in TIMEOUT seconds (where timeout is the LEASE time minus a few seconds, it alll depends on how big is your server's lease time), I've created a script to do that, but deleted it long ago. Then I decided to simply configure /etc/resolv.conf, /etc/conf.d/net and /etc/hosts so I would have an static IP, and let TCP/IP do the rest (not allow the DHCP server to LEASE that IP to someone else). I couldn't find anywhere in the web if that SHOULD work, it just does, for me. > > Otherwise, if this is a viable solution, how do I make it work? I'm > comfortable editing config files, but I just don't know where to go > to do it. > You ifconfig to get the IP your're using right now and the Netmask used in your network environment. Then you edit the /etc/conf.d/net file to configure your ethernet interface to have a static IP, using the one you're already using from DHCP and set the netmask you got from ifconfig, and let be your /etc/resolv.conf and /etc/hosts that were written by the DHCP client. > Thanks again, all, for your help. > > Kris > > On Wednesday 08 March 2006 20:43, Daniel da Veiga wrote: > > On 3/8/06, Kris Kerwin <kkerwin@insightbb.com> wrote: > > > Hi folks! > > > > > > I have a quick question. > > > > > > I'm a college student. I share my printer with my roommate. We > > > have separate computers; he uses Windows XP, and I Gentoo. > > > Together, we're behind our school's router which dynamically > > > assigns us both IP's. > > > > > > Currently, in order to share our printer, we simply unplug it > > > from one another's computers. However, we would like to be able > > > to share it over the network instead to make life easier for the > > > both of us. However, there are a few problems that I'm > > > foreseeing. > > > > > > First off, I have a laptop with only one ethernet port, so > > > setting up an ad hoc network between us is out of the question. > > > Also, my school has a "one port - one computer" rule that > > > prohibits routers. > > > > > > Second, since we're both behind a DHCPd server, we both have > > > dynamic IPs. There's no easy way to point his computer to the > > > right server if it has a dynamic IP. > > > > > > Third, since we're both behind a router, using something like > > > DynDNS to provide a static contact despite the dynamic IP won't > > > work either. > > > > > > So, I guess what I'm wondering is if there's any way to make this > > > work, or if I'm SOL? > > > > > > Thank you much for your help. > > > > > > Kris Kerwin > > > -- > > > gentoo-user@gentoo.org mailing list > > > > I couldn't think of a more "complex" solution right now, but > > couldn't you simply make your IP static? I've done it at work > > because our DNS was failing, simply copied the network > > configurations gained with DHCP and made it permanent... > > > > -- > > Daniel da Veiga > > Computer Operator - RS - Brazil > > -----BEGIN GEEK CODE BLOCK----- > > Version: 3.1 > > GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- > > V- PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++ > > ------END GEEK CODE BLOCK------ > -- Daniel da Veiga Computer Operator - RS - Brazil -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V- PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++ ------END GEEK CODE BLOCK------ -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Printer Sharing with Samba 2006-03-09 2:28 [gentoo-user] Printer Sharing with Samba Kris Kerwin 2006-03-09 2:43 ` Daniel da Veiga @ 2006-03-09 3:06 ` Boyd Stephen Smith Jr. 2006-03-09 17:56 ` Eric Bliss 2006-03-09 18:35 ` Michael Crute 3 siblings, 0 replies; 13+ messages in thread From: Boyd Stephen Smith Jr. @ 2006-03-09 3:06 UTC (permalink / raw To: gentoo-user On Wednesday 08 March 2006 20:28, Kris Kerwin <kkerwin@insightbb.com> wrote about '[gentoo-user] Printer Sharing with Samba': > First off, I have a laptop with only one ethernet port, so setting up > an ad hoc network between us is out of the question. Also, my school > has a "one port - one computer" rule that prohibits routers. That doesn't prohibit routers, it encourages them; routers add to the number of ports in your room. ;) That rule just prohibits calculators, PDAs, cell phones, portable gaming devices, game consoles, moderm microwave ovens, modern televisions, some watches, etc., etc. (since they are [or contain] computers) from the room. Real solutions: (1) Get a wireless AP and connect both computers to it. It doesn't have to have or use a port. (2) Break the rules, they are stupid. (a) Generally speaking, students in dorms have an expectation of privacy so they can't (for example) search your room when you are gone. (b) A properly configured router doesn't look any different from a single computer network-wise. You can do MAC duplication/spoofing if you had to register that with Computing Services. > Second, since we're both behind a DHCPd server, we both have dynamic > IPs. There's no easy way to point his computer to the right server if > it has a dynamic IP. Does it work like DNSmasq so that it does caching and local DNS? Maybe you can just have the gentoo machine request a certain domain name and have the windows machine use that. Heck, my school allowed student to have entries in the school's DNS, as log as the school wasn't using it so you might see if that's an option. > Third, since we're both behind a router, using something like DynDNS > to provide a static contact despite the dynamic IP won't work either. Sure it does. My computer was behind a router for nearly a year and ssh or whatever worked fine. Do you get site-local IPs (10.0.0.0/8, 192.168.0.0/16, or 176.0.0.0/8) or real IPs? With real IPs you are set on that front. With site-local, DynDNS would be doing the 'Net a favor to disallow them being registered, but you could try anyway. In either case, does the router filter any ports? That would be the big stumbling block, but if you find a single one that is open you could run cups (or what have you) on it. If there's fewer ports open than you need, ssh tunnels can do SOCKS proxying and, IIRC, there's even kernel patches to force all connections through a SOCKS proxy. (Heck, you don't really need kernel patches if you can write C and know how to use the LD_PRELOAD thingy.) Finally, depending on how the router is set up, you may be able to do peer discovery through ARP or mDNS. > So, I guess what I'm wondering is if there's any way to make this > work, or if I'm SOL? I doubt you are SOL, but it might take more work and /research/ than you are willing to put into it. -- "If there's one thing we've established over the years, it's that the vast majority of our users don't have the slightest clue what's best for them in terms of package stability." -- Gentoo Developer Ciaran McCreesh -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Printer Sharing with Samba 2006-03-09 2:28 [gentoo-user] Printer Sharing with Samba Kris Kerwin 2006-03-09 2:43 ` Daniel da Veiga 2006-03-09 3:06 ` Boyd Stephen Smith Jr. @ 2006-03-09 17:56 ` Eric Bliss 2006-03-09 18:07 ` Kris Kerwin 2006-03-10 1:26 ` Boyd Stephen Smith Jr. 2006-03-09 18:35 ` Michael Crute 3 siblings, 2 replies; 13+ messages in thread From: Eric Bliss @ 2006-03-09 17:56 UTC (permalink / raw To: gentoo-user On Wednesday 08 March 2006 18:28, Kris Kerwin wrote: > Currently, in order to share our printer, we simply unplug it from one > another's computers. However, we would like to be able to share it > over the network instead to make life easier for the both of us. > However, there are a few problems that I'm foreseeing. > Back before in-home networks were practical, my dad had a little gray box that had three cables going in the back end, and a switch on the front - "A/B". I think that box was for the old parallel printer ports, but I'd imagine that if you go down to Best Buy or another computer store they'd have something similar for sharing a USB device between multiple machines. It's possible you'd need to flip a switch when you want to print, but it would still be easier that moving the cables, and it won't break any of your college's rules regarding the network. Also, it won't require any additional configuration headaches. -- Eric Bliss systems design and integration, CreativeCow.Net -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Printer Sharing with Samba 2006-03-09 17:56 ` Eric Bliss @ 2006-03-09 18:07 ` Kris Kerwin 2006-03-10 1:26 ` Boyd Stephen Smith Jr. 1 sibling, 0 replies; 13+ messages in thread From: Kris Kerwin @ 2006-03-09 18:07 UTC (permalink / raw To: gentoo-user; +Cc: Eric Bliss Good idea. I'll look around. Kris On Thursday 09 March 2006 11:56, Eric Bliss wrote: > On Wednesday 08 March 2006 18:28, Kris Kerwin wrote: > > Currently, in order to share our printer, we simply unplug it > > from one another's computers. However, we would like to be able > > to share it over the network instead to make life easier for the > > both of us. However, there are a few problems that I'm > > foreseeing. > > Back before in-home networks were practical, my dad had a little > gray box that had three cables going in the back end, and a switch > on the front - "A/B". I think that box was for the old parallel > printer ports, but I'd imagine that if you go down to Best Buy or > another computer store they'd have something similar for sharing a > USB device between multiple machines. > > It's possible you'd need to flip a switch when you want to print, > but it would still be easier that moving the cables, and it won't > break any of your college's rules regarding the network. Also, it > won't require any additional configuration headaches. > > -- > Eric Bliss > systems design and integration, > CreativeCow.Net -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Printer Sharing with Samba 2006-03-09 17:56 ` Eric Bliss 2006-03-09 18:07 ` Kris Kerwin @ 2006-03-10 1:26 ` Boyd Stephen Smith Jr. 1 sibling, 0 replies; 13+ messages in thread From: Boyd Stephen Smith Jr. @ 2006-03-10 1:26 UTC (permalink / raw To: gentoo-user On Thursday 09 March 2006 11:56, Eric Bliss <eric@creativecow.net> wrote about 'Re: [gentoo-user] Printer Sharing with Samba': > On Wednesday 08 March 2006 18:28, Kris Kerwin wrote: > > Currently, in order to share our printer, we simply unplug it from one > > another's computers. However, we would like to be able to share it > > over the network instead to make life easier for the both of us. > > However, there are a few problems that I'm foreseeing. > > Back before in-home networks were practical, my dad had a little gray > box that had three cables going in the back end, and a switch on the > front - "A/B". I think that box was for the old parallel printer ports, > but I'd imagine that if you go down to Best Buy or another computer > store they'd have something similar for sharing a USB device between > multiple machines. Now a days they usually call such devices KVM switches. Although, that may be a term specific to boxes like that which allow a monitor, keyboard, and mouse to be shared between all the computers in a rack. -- "If there's one thing we've established over the years, it's that the vast majority of our users don't have the slightest clue what's best for them in terms of package stability." -- Gentoo Developer Ciaran McCreesh -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Printer Sharing with Samba 2006-03-09 2:28 [gentoo-user] Printer Sharing with Samba Kris Kerwin ` (2 preceding siblings ...) 2006-03-09 17:56 ` Eric Bliss @ 2006-03-09 18:35 ` Michael Crute 2006-03-09 19:18 ` Daniel da Veiga 3 siblings, 1 reply; 13+ messages in thread From: Michael Crute @ 2006-03-09 18:35 UTC (permalink / raw To: gentoo-user On 3/8/06, Kris Kerwin <kkerwin@insightbb.com> wrote: > Hi folks! > > I have a quick question. > > I'm a college student. I share my printer with my roommate. We have > separate computers; he uses Windows XP, and I Gentoo. Together, we're > behind our school's router which dynamically assigns us both IP's. > > Currently, in order to share our printer, we simply unplug it from one > another's computers. However, we would like to be able to share it > over the network instead to make life easier for the both of us. > However, there are a few problems that I'm foreseeing. > > First off, I have a laptop with only one ethernet port, so setting up > an ad hoc network between us is out of the question. Also, my school > has a "one port - one computer" rule that prohibits routers. > > Second, since we're both behind a DHCPd server, we both have dynamic > IPs. There's no easy way to point his computer to the right server if > it has a dynamic IP. > > Third, since we're both behind a router, using something like DynDNS > to provide a static contact despite the dynamic IP won't work either. > > So, I guess what I'm wondering is if there's any way to make this > work, or if I'm SOL? > It would seem that people are thinking about this problem just a bit too hard. Here is how my network is setup. All users have DHCP addys, its a mix of mainly Gentoo with the odd Windows box. The printers are all connected to Gentoo servers which have cups and samba setup. Cups serves printing for all the Linux boxes and is also hooked into Samba so the windows boxes can print. As far as IP addresses go... screw em... use the netbios name of the machines, for the Windoze box this will be its hostname and the same is true for the Linux box (I don't think I had to do any extra setup in Samba to make it broadcast a netbios name). You will then be able to print locally from the Linux box via CUPS and you can install the printer just like any other shared printer (\\your_gentoo_box\printer_name) under Windows. Gentoo has excellent Samba setup howtos if you need more info. In this case you break no rules and there is no complex DNS setup stuff. Hope all this makes some sense. -Mike -- ________________________________ Michael E. Crute http://mike.crute.org Linux takes junk and turns it into something useful. Windows takes something useful and turns it into junk. -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Printer Sharing with Samba 2006-03-09 18:35 ` Michael Crute @ 2006-03-09 19:18 ` Daniel da Veiga 2006-03-09 19:33 ` Michael Crute 0 siblings, 1 reply; 13+ messages in thread From: Daniel da Veiga @ 2006-03-09 19:18 UTC (permalink / raw To: gentoo-user On 3/9/06, Michael Crute <mcrute@gmail.com> wrote: > On 3/8/06, Kris Kerwin <kkerwin@insightbb.com> wrote: > > Hi folks! > > > > I have a quick question. > > > > I'm a college student. I share my printer with my roommate. We have > > separate computers; he uses Windows XP, and I Gentoo. Together, we're > > behind our school's router which dynamically assigns us both IP's. > > > > Currently, in order to share our printer, we simply unplug it from one > > another's computers. However, we would like to be able to share it > > over the network instead to make life easier for the both of us. > > However, there are a few problems that I'm foreseeing. > > > > First off, I have a laptop with only one ethernet port, so setting up > > an ad hoc network between us is out of the question. Also, my school > > has a "one port - one computer" rule that prohibits routers. > > > > Second, since we're both behind a DHCPd server, we both have dynamic > > IPs. There's no easy way to point his computer to the right server if > > it has a dynamic IP. > > > > Third, since we're both behind a router, using something like DynDNS > > to provide a static contact despite the dynamic IP won't work either. > > > > So, I guess what I'm wondering is if there's any way to make this > > work, or if I'm SOL? > > > > It would seem that people are thinking about this problem just a bit > too hard. Here is how my network is setup. All users have DHCP addys, > its a mix of mainly Gentoo with the odd Windows box. The printers are > all connected to Gentoo servers which have cups and samba setup. Cups > serves printing for all the Linux boxes and is also hooked into Samba > so the windows boxes can print. As far as IP addresses go... screw > em... use the netbios name of the machines, for the Windoze box this > will be its hostname and the same is true for the Linux box (I don't > think I had to do any extra setup in Samba to make it broadcast a > netbios name). You will then be able to print locally from the Linux > box via CUPS and you can install the printer just like any other > shared printer (\\your_gentoo_box\printer_name) under Windows. Gentoo > has excellent Samba setup howtos if you need more info. In this case > you break no rules and there is no complex DNS setup stuff. Hope all > this makes some sense. > Well, in fact, I think it does. I forgot that the main problem was in fact just PRINTING... Yeah, cups and samba will take care of that. Samba will broadcast netbios stuff over the net so you can see your shared printer (and folders). Check: http://www.gentoo.org/doc/en/quick-samba-howto.xml and http://gentoo-wiki.com/HOWTO_Native_Windows_Printing_with_CUPS/Samba You know, sometimes you just loose focus and forget about simple solutions for simple problems... -- Daniel da Veiga Computer Operator - RS - Brazil -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V- PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++ ------END GEEK CODE BLOCK------ -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Printer Sharing with Samba 2006-03-09 19:18 ` Daniel da Veiga @ 2006-03-09 19:33 ` Michael Crute 2006-03-10 4:53 ` [SOLVED] " Kris Kerwin 0 siblings, 1 reply; 13+ messages in thread From: Michael Crute @ 2006-03-09 19:33 UTC (permalink / raw To: gentoo-user On 3/9/06, Daniel da Veiga <danieldaveiga@gmail.com> wrote: > Well, in fact, I think it does. I forgot that the main problem was in > fact just PRINTING... Yeah, cups and samba will take care of that. > Samba will broadcast netbios stuff over the net so you can see your > shared printer (and folders). > > You know, sometimes you just loose focus and forget about simple > solutions for simple problems... > Hehe... everybody wants to engineer an elaborate fix when sometimes all it takes is some duck tape ;-) -Mike -- ________________________________ Michael E. Crute http://mike.crute.org It is a mistake to think you can solve any major problems just with potatoes. --Douglas Adams -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* [SOLVED] Re: [gentoo-user] Printer Sharing with Samba 2006-03-09 19:33 ` Michael Crute @ 2006-03-10 4:53 ` Kris Kerwin 0 siblings, 0 replies; 13+ messages in thread From: Kris Kerwin @ 2006-03-10 4:53 UTC (permalink / raw To: gentoo-user; +Cc: Michael Crute All, Samba proved to be a very simple and effective fix. Plus, as was said earlier, it doesn't break any of the rules that my school has in place. Thanks again, all, for your help. Kris On Thursday 09 March 2006 13:33, Michael Crute wrote: > On 3/9/06, Daniel da Veiga <danieldaveiga@gmail.com> wrote: > > Well, in fact, I think it does. I forgot that the main problem > > was in fact just PRINTING... Yeah, cups and samba will take care > > of that. Samba will broadcast netbios stuff over the net so you > > can see your shared printer (and folders). > > > > You know, sometimes you just loose focus and forget about simple > > solutions for simple problems... > > Hehe... everybody wants to engineer an elaborate fix when sometimes > all it takes is some duck tape ;-) > > -Mike > > -- > ________________________________ > Michael E. Crute > http://mike.crute.org > > It is a mistake to think you can solve any major problems just with > potatoes. --Douglas Adams -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2006-03-10 4:59 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-03-09 2:28 [gentoo-user] Printer Sharing with Samba Kris Kerwin 2006-03-09 2:43 ` Daniel da Veiga 2006-03-09 18:05 ` Kris Kerwin 2006-03-09 18:24 ` John Jolet 2006-03-09 18:42 ` Daniel da Veiga 2006-03-09 3:06 ` Boyd Stephen Smith Jr. 2006-03-09 17:56 ` Eric Bliss 2006-03-09 18:07 ` Kris Kerwin 2006-03-10 1:26 ` Boyd Stephen Smith Jr. 2006-03-09 18:35 ` Michael Crute 2006-03-09 19:18 ` Daniel da Veiga 2006-03-09 19:33 ` Michael Crute 2006-03-10 4:53 ` [SOLVED] " Kris Kerwin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox