LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 09-01-2004, 01:29 AM   #1
azmadar
LQ Newbie
 
Registered: May 2003
Posts: 8

Rep: Reputation: 0
How to run command-line? How to extract RPM? How to install SAMBA?


Hi,

I need to install SAMBA on my FC2. But I am clueless on how to extract rpm. I am equally clueless on how to go into command-line.

Qn1: How do I launch command line on FC1? (Its not like I go to Start>Run>CMD right ?!)

Qn2: Once I get into command-line how to I setup or extract the RPM?
Qn2a: Where does it extract the files to?
Qn2b: What do I do after the files are extracted?

Qn3: Samba has a samb.conf. Where do I put this file? How do I go about doing it?

Basically, I want to setup my Linux Server as a Domain Controller, & I understand I need to run Samba...so how do I go about doing that?

I have download the files from the Samba website, there are 2 folders called 1 & 2. Each folder consists of the same files:

samba.rpm
samba-client.rpm
samba-common.rpm
samba-swat.rpm

From which folder should I install SAMBA? Please advise.
 
Old 09-01-2004, 03:45 AM   #2
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
ok--one at a time here.....

I dont run fedora core but as far as opening a command line look for a program, most likely in start>system tools or somewhere thereabouts called xterm, or gnome-terminal. Once you have found that and have the window open-- a black box with something like this in it -->

[root@linuxtorrents root]#

make sure that you are root before going on....

Code:
su -
enter your password and you are now root...


then you want to change directories to wherever you have saved the rpm too. Hypethetically if you're user name is "user" and you saved it in your home directory, you would get there by doing this on the command line
Code:
cd /home/user/
then to make sure that you are in the right place do this
Code:
ls
this will "list" what is in the directory and you should see somewhere in the output samba-x.x.x.rpm

Now...to install an rpm you don't have to extract it really, more or less its like an .exe in windows. It installs itself. you just have to tell it to do it. Here's how...

Code:
rpm -ihv samba-x.x.x.rpm
you should see a hash line that goes up to 100 percent then it will bring you back to a command line.
provided there are no errors you have just installed your first rpm...good job!

repeat process with the other samba rpm's...you don't really "need" SWAT(Samba Web Administration Tool). It just allows you to administer samba from a browser and if you want to do that I'd recommend getting webmin --> http://webmin.com anyway as it does much more.

now for smb.conf...smb.conf "usually" resides in /etc/samba/ so we need to go there..here's how...

Code:
cd /etc/samba/
then do the list command again "ls" and make sure there is a file called smb.conf in the directory. Provided that there is you will need to edit it...most systems at least have an editor called "vi" so lets open the smb.conf in vi....heres how....

Code:
vi smb.conf
now hit your insert key and you will see in the bottom left of the window it says "insert," this means that you are in editing mode.

most of the values you will recognize...edit your workgroup to the correct name(all CAPS) and further down you will see the domain controller/ master browser/wins server all that stuff...edit to your liking....the smb.conf has comments to help you define your shares so I'm not going to go into that, if you need help with that later post again.

so once you have finished editing the file we need to save it.... hit "esc" then hit ":" <--colon this takes you into command mode for vi ...now hit "w" and then "enter" ... it will say "smb.conf written" now hit ":" <--colon again and hit "q" and then "enter" and you should be back on a command line. Provided all of that worked out...time to fire up samba...

start samba by typing this....

Code:
/etc/init.d/smb start
you should see this output on the screen ...

[root@linuxtorrents root]# /etc/init.d/smb start
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]

now samba is running and you should be set to roll.

Hope this helps ya out, I tried to be pretty specific.


linux_terror

Last edited by linux_terror; 09-01-2004 at 03:56 AM.
 
Old 09-01-2004, 10:00 AM   #3
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
>vi smb.conf

vi is a very common editor on Linux, but it is very difficult to use for newcomers, compared to other editors. Sooner or later you will become familiar with it, but I do not advise you to learn its use on a file like smb.conf.
Make a backup copy of smb.conf before you open it with vi, or use a more convenient editor like kedit or kwrite.
Either you choose kedit or kwrite, you should start it with root access rights (in kde: select the "run command" item in the K menu, enter e.g. kwrite, then select the "Options" button, where you can specify "Run as a different user", "root"), in order that it can access smb.conf.

Last edited by J_Szucs; 09-01-2004 at 10:03 AM.
 
Old 09-01-2004, 05:12 PM   #4
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
good point J_Szucs....

I tried to make the vi instructions "very" detailed...
As I run my servers "headless" I didn't know the gui editors names...
probably better to edit in kedit or kwrite and DEFINITELY back up your config file before editing.

thanks J_Szucs

linux_terror
 
Old 09-03-2004, 07:16 AM   #5
azmadar
LQ Newbie
 
Registered: May 2003
Posts: 8

Original Poster
Rep: Reputation: 0
SAMBA RPM error: Failed dependencies

linux_terror, I'm still having problems with installation. I donwloaded samba for fc 2.

This is the error message I get:

[root@fc2 tmp]# rpm -Uvh samba-3.0.6-1.i386.rpm
warning: samba-3.0.6-1.i386.rpm: V3 DSA signature: NOKEY, key ID 2f87af6f
error: Failed dependencies:
samba-common = 3.0.6 is needed by samba-3.0.6-1
[root@fc2 tmp]# ls
gconfd-root orbit-root samba-3.0.6-1.i386.rpm samba-common-3.0.6-1.i386.rpm
[root@fc2 tmp]#

As you can see the samba-common.rpm is there ,so what do I do ??

Last edited by azmadar; 09-03-2004 at 07:20 AM.
 
Old 09-03-2004, 09:07 AM   #6
hkxx9
Member
 
Registered: Sep 2004
Location: Smoky Mtns
Distribution: Slackware 10
Posts: 64

Rep: Reputation: 15
azmadar

I am a newbie at this but here's a guess. If samba is dependent on samba-common, try installing that first.
Apologies if you have already done so.

HTH/hkxx9
 
Old 09-03-2004, 02:24 PM   #7
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
I do believe that hkxx9 has got the ticket to success for ya there. you can also sometimes overcome dependencies by installing multiple rpm's at the same time. I've had to do it with some that have "circular" dependancies.

here's how to do that....
Code:
rpm -Uhv samba-common-3.0.6-1.i386.rpm samba-3.0.6-1.i386.rpm
but the failed dependency error you are getting definitely stems from the fact that you have to have samba-common installed first so do this..
Code:
rpm -Uhv samba-common-3.0.6-1.i386.rpm
rpm -Uhv samba-3.0.6-1.i386.rpm
and you should be good to go. If you have more issues post again but that should get ya taken care of.

Regards,
linux_terror
 
Old 09-09-2004, 05:18 AM   #8
azmadar
LQ Newbie
 
Registered: May 2003
Posts: 8

Original Poster
Rep: Reputation: 0
Hi,

I have switched to SUSE Pro 9.1 to save me the hassle. Yast has helped alot in the setting up of SAMBA. Right now I have a new problem. When I try to logon to my samba domain: susedom, I get the message "Access denied".

Please advise on what I am doing wrong. My smb.conf file:
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SuSE
# Date: 2004-04-06
#Start of smb.conf
[global]
workgroup = SUSEDOM
interfaces = 127.0.0.1 eth0
bind interfaces only = true
printing = cups
printcap name = cups
printer admin = @ntadmin, root, administrator
map to guest = Bad User
security = user
encrypt passwords = yes
server string = Samba Server
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain master = yes
domain logons = yes
local master = yes
preferred master = yes
os level = 65
ldap suffix = dc=example,dc=com
load printers = no
passdb backend = smbpasswd

[homes]
comment = Home Directories
valid users = %S
browseable = no
read only = No
guest ok = no
printable = no
[users]
comment = All users
path = /home
writeable = Yes
inherit permissions = Yes
veto files = /aquota.user/groups/shares/
browseable = yes
guest ok = no
printable = no
[groups]
comment = All groups
path = /home/groups
writeable = Yes
inherit permissions = Yes
browseable = yes
guest ok = no
printable = no
;; [pdf]
;; comment = PDF creator
;; path = /var/tmp
;; printable = yes
;; print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z
;; create mask = 0600
;; browseable = yes
;; guest ok = no
;; [printers]
;; comment = All Printers
;; path = /var/tmp
;; printable = yes
;; create mask = 0600
;; browseable = no
;; guest ok = no
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
browseable = yes
guest ok = no
printable = no
[bizdev]
comment =
path = /home/BizDev
browseable = yes
guest ok = no
printable = no
[sales]
comment =
path = /home/Sales
browseable = yes
guest ok = no
printable = no
[tech]
comment =
path = /home/Tech
browseable = yes
guest ok = no
printable = no
#End of smb.conf

Thank you
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install redhat rpm from command line. droodle Linux - Newbie 4 07-26-2005 06:00 AM
Guile rpm file won't install from command line or yast2 TdlSnare SUSE / openSUSE 5 12-01-2004 07:36 AM
Command line extract Daunted Linux - Software 2 09-30-2004 05:37 PM
Can I install an RPM without command line? akilhoffer Linux - Newbie 13 09-06-2004 09:23 PM
How do you install .rpm by command line (RH9.0) Thaidog Linux - Newbie 5 05-18-2004 05:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration