hello, I am going to try an experiment with printer sharing. I will like to know how to share a printer installed on a fedora machine? by the way aside from printer I had one more doubt. if I share a folder of a fedora machine via samba, is there any thing additional I need to do for accessing it from another fedora machine? I know how to access a linux based system from the windows machine but I don't know about sharing computers and accessing folders on a linux to linux machine. may be I am missing some thing stupid. so kindly guide me. Krishnakant.
On 2/14/07, krishnakant Mane researchbase@gmail.com wrote:
hello, I am going to try an experiment with printer sharing. I will like to know how to share a printer installed on a fedora machine? by the way aside from printer I had one more doubt. if I share a folder of a fedora machine via samba, is there any thing additional I need to do for accessing it from another fedora machine?
When sharing to another Fedora system, u neednt use samba. CUPS can share to CUPS via IPP. and if it's FC6, it automatically broadcasts and finds all shared printers on the local lan. u need to just mark the printer as shared in the printer config screen. Have a look at http://fedoraproject.org/wiki/Printing for some ideas. Also, if you're talking of sharing files, there are a number of alternatives, starting all the wa from the oldest and most powerful NFS to many newer solutions., like the personal file sharing built into FC5 and above. Do give it a spin.
Rajeev
I know how to access a linux based system from the windows machine
but I don't know about sharing computers and accessing folders on a linux to linux machine. may be I am missing some thing stupid. so kindly guide me. Krishnakant.
We are mounting a Windows shared drive on Redhat Enterprise Edition (Kernel 2.6). The command: mount -t smbfs -o username=bongo;password=bingo;workgroup=TANGO //WindowsPC/SharedName$ /mnt/win-shared-drives/pc001 happily mounts the Windows shared on the specified mount point.
Hence, we moved this command to rc.local, so that mounting would be automatically be done when the server is recycled (rc.local is the script that Redhat executes last in its boot sequence after it configures and runs network services, mounts file systems, starts various daemons and all the remaining chores...). Hence, we appended this line to rc.local and restarted the server. To our surprise, we found a strange message on boot console: No Route to Host.
Baffled by this output, we ping the box checked the arp, but ping echoed back with success and arp showed the IP in its listing. But again, No Route to Host means we have no network connectivity at boot-time and after the init was complete, we had the network connectivity. So we decided to put in a quick hack in rc.local, by performing a ping for some cycles and then grepping the output of arp to check for the server IP entry...and finally that worked. Here is the snippet of that code:
MAXTRIES=10 count="0" while [ "$count" -lt MAXTRIES ] do ping -c 5 SERVERNAME if arp | grep SERVERNAME then break fi count=$[$count+1] done
mount -t smbfs -o username=bongo;password=bingo;workgroup=TANGO //SERVERNAME/SharedName$ /mnt/win-shared-drives/pc001
I am still thinking about a solution that is cleaner than the above approach. If you come across a solution please leave let me know. Thanks!
____________________________________________________________________________________ Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html
Hi,
On 2/14/07, krishnakant Mane researchbase@gmail.com wrote:
I know how to access a linux based system from the windows machine but I don't know about sharing computers and accessing folders on a linux to linux machine.
As rightly pointed out by Rajeev , you can use NFS. 1) You have to 'export' the directory to be shared by placing an entry in /etc/exports 2) Then , you can 'mount' it from the machine using mount command. You can put an entry in /etc/fstab for automatic mounting.
This is a nice reference: http://nfs.sourceforge.net/nfs-howto/index.html
You can use SMB also. ftp , telnet , rsh , ssh are always there.
In many cases ,symbolic links ( created using ln -s ) can provide a 'view layer' without disturbing the the organization of files.
Regards, Sourabh