Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have been trying to get a few things to work and nothing is working right.
I installed/uninstalled samba numerous times to try to get anything to work and nothing is working so far.
I try to load the swat thing that is suppose to help me set up samba (because I don't have any samba set-up windows for it like my book says I should) and it says that I can't install it because there is no samba-common file, so I try to run the rpm of the samba-common file and it tells me that there is a newer version of the file already installed
I was trying to installing the windows thing for sharing from the add/remove program and it tells me that there is no samba-common file present and that I can't proceed.
What is going on here. I have un-installed samba thru the terminal and when I run a "rpm -qi samba" command it tells me that samba is not installed?????? So I try to re-install it and it tells me that it is already installed!!!!!
I just don't get it. I need to be able to share on a Windows network with two computers and a printer but I can't get anywhere with this.
I don't know if this helps any but when I thought I had samba installed I could ping my Windows computer with no loss of data and I could open a browser window and type in the address for the router and I could view the set-ups for the router.
Is there maybe something that I am just not doing correctly to add people or see other computers on my network???
I would go here (http://fedoranews.org/contributors/s...nley/fc3_note/), scroll down to the section listed Apt and Synaptic, and follow the procedure for installing apt and synaptic. Apt, in my opinion, does a much better job than yum for resolving dependencies and synaptic is a nice gui for apt. Follow the directions to a T. Once you do all that, fire up synaptic (look in your main menu somewhere), and do a search for "samba". Install samba, samba-client, and samba-common. Apt should update any of these files with ease.
For setting up samba, here's some good advice:
Make sure you have your local workgroup name entered in your /etc/samba/smb.conf file. See:
If you want your Windows boxes to see your Linux box (samba server), then you will need to open up ports 139/tcp and udp/137/138 on your Linux box. You can do this in the "security/firewall" section I believe. Also consider any software firewalls running on your Windows boxes (Microsoft or 3rd party). I have never used SWAT and find that editing my /etc/samba/smb.conf file via the command line works fine. Make sure you restart the samba server after making any changes. As root in the command line interface type:
# /etc/rc.d/init.d/smb restart
The link listed above is awesome for setting up various packages and post-install tweaks for FC3. I hope this helps.
I can now open windows files on linux and print to my network computer.
I still can't access the linux computer from my XP laptop. It tells me that I dont have privalages . On my ME desktop it gives me a prompt to enter a password but my password doesn't work. It is trying to connect to //localhost/IPC$. I think that has something to do with it. I don't know where the IPC$ thing came from but at least I have a start.
On my XP machine it says also that there are duplicate names and to open my system from the control panel to change the name, but there is only the one "Mobile" machine on my network???
Other than that I am very happy with the progress so far. now to get the other machines to connect and I will be in business.
I'm glad I was helpful to you! Setting up Samba can be stressful...it took me seemingly forever before I could connect and see my fiancee's Windows XP box on our home network. Keep at it though. Once you get everything set up, document what you did and save the /etc/samba/smb.conf file to a safe place.
"I still can't access the linux computer from my XP laptop. It tells me that I dont have privalages "
This sounds like you don't have the NetBIOS Compatible Transport Protocol installed. On your XP laptop, go to Start | Control Panel | Network Connections. Right click on the icon for your ethernet device (Local Area Connection) and select "Properties". In the window, you will see a list that says "This connection uses the following items". Make sure you have "NetBEUI Protocol" and "NWLink IPX/SPX/NetBIOS Compatible Transport Protocol" listed. If not, install them. Simply click the "Install" button below the list and choose "Protocol"...click the "Add" button ans select the protocols I mention. Click OK and wait a second or two for it to install. Once that's done, go back to the main Local Area Connection Properties box and click on the "Advanced" tab. Check that Windows XP is not running a firewall. I am not sure if you have Windows XP service pack 2 installed, you can turn on/off the firewall with service pack 1 as well. It's up to you if you want to turn it off or allow a specific port/IP address to have access.
"It is trying to connect to //localhost/IPC$. I think that has something to do with it. I don't know where the IPC$ thing came from but at least I have a start."
I have never used Windows ME, but for the "folder" address, try:
//the IP address of your Linux box/name of shared folder on your Linux box
Make sure you have properly set up a shared folder on your Linux box in the smb.conf file. I have never been able to connect from Windows to Linux via Samba when the user names are not the same. Meaning, if your Windows user name is "monkey" and your Linux user name is "gorilla", you may have problems. Also, the password is your samba password, not your Linux user password, unless they're the same of course. Finally, you may want to consider installing Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/) on your Windows machines and simply log into your Linux box using SSH. You will have to enable SSH and allow it to come through the Linux firewall of course. It depends on your setup...if you use your Linux box as a print server, Putty will not help you. If you simply want to transfer files back and forth, then consider Putty/SSH. The problem with setting up Samba between Linux and Windows is that you must deal with firewall/network/user name settings on both ends.
Fantastic! Yes, there are many advantages to using Linux, including monetary. I switched because I don't like being one of the many sheep herded by the Shepherd Gates. Free as in freedom! Could you please post the two lines you are referring to, for the benefit of others? Thanks.
Here's a generic /etc/samba/smb.conf, which you would have to edit to your needs. workgroup, netbios name, hosts allow, and Share Definitions must be changed.
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors. Also, run
# /etc/rc.d/init.d/smb restart as root in a command line terminal after making
# any changes to this file.
#======================= Global Settings =====================================
# 1. Server Naming Options:
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = name_of_workgroup
# netbios name is the name you will see in "Network Neighbourhood",
# but defaults to your hostname
netbios name = name_of_your_computer
# server string is the equivalent of the NT Description field
server string = Linux
# 4. Security and Domain Membership Options:
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page. Do not enable this if (tcp/ip) name resolution does
# not work for all the hosts in your network.
bind interfaces only = Yes
# Deny all hosts by default
hosts deny = ALL
# Only allow machines having the IP address beginning with 123.456.78 (leave the 127. alone)
hosts allow = 123.456.78. 127.
interfaces = eth0 lo
# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
; guest account = pcguest
# Allow users to map to guest:
map to guest = bad user
# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = user
# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
# Encrypted passwords are required for any use of samba in a Windows NT domain
# The smbpasswd file is only required by a server doing authentication, thus
# members of a domain do not need one.
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
# 5. Browser Control and Networking Options:
# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# The following entry demonstrates how to share a directory so that a
# user can place files there that will be owned by the specific user. In this
# setup, the directory should be writable and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
# Below is the shared directory name on your Linux box, in this case "share_dir". When you
# map a network drive from your Windows machine to your Linux box, use
comment = My stuff
path = /home/monkey
valid users = monkey
public = no
writable = yes
printable = no
create mask = 0765