26.04.2024, 10:02 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

kanotix.com FAQ (häufig gestellte Fragen)

Kategorie: Index ->

Frage

Antwort

How do I configure KANOTIX to use SAMBA (Windows) Shares from Remote Machines?

With the KANOTIX Live-CD all you need to do to integrate shares of other machines is call the script sambastart which is found in the K-Menu->KANOTIX->Server.

With a HD-Install you can do it this way:

Do all commands as root (in a Terminal or Konsole)
Put the URL in Konqueror (run Konqueror as normal user).

server = servername or IP of the Windows Machine
share = name of the share

In KDE - Konqueror put in the URL

smb://server
or the complete URL
smb://server/share

In a konsole you can see the shares located on a server by:

# smbclient -L server


To mount a share in a directory -(with full access for ALL Users) remember this:

Mountpoint must exist. If it does not, you must first create directory like this (Name is arbitrary):

# mkdir -p /mnt/server_share


Then mount the share - remote filesystem VFAT:

# mount -t smbfs -o username=Administrator,fmask=777,dmask=777 //server/share /mnt/server_share

or remote filesystem NTFS:

# mount -t smbfs -o username=Administrator,fmask=777,dmask=777,lfs //server/share /mnt/server_share

To terminate the connection, use:

# umount /mnt/server_share


If you want to put an entry in /etc/fstab> to make the mount easier than insert the following line on that file:
//server/share /mnt/server_share smbfs defaults,username=dein_username,password=**********,fmask=777,dmask=777,quiet 0 0

or if you want to mount the partition as username:groupname
//server/share /mnt/server_share smbfs defaults,uid=username,gid=groupname,username=dein_username,password=**********,fmask=777,dmask=777,quiet 0 0


You can mount all filesystems using the command
# mount -a


nach oben
How do I set up KANOTIX as Samba-Server?

From the KANOTIX Live-CD all you need to setup/start a simple Samba-Server is the call of the script sambastart, which is also found in KDE-menu under KANOTIX-Server.

On a HD-Install it is neccessary to adjust the Samba-Configuration. Here comes a simple example.If you want to know more about the usage of Samba and the setup of a Linux-Samba-Sever its advisible to read the Samba Documentation.

To adjust the samba-configuration you do as follows:

you open the file "/etc/samba/smb.conf" in an editor (e.a. kedit) and enter this:


# Globale Changes - Proposal everything simple as possible - no passwords, perform like Windows 9x

[global]

security = share

workgroup = WORKGROUP


# Share without write-permission -important if NTFS Filesystems are to be shared!

[WINDOWS]

comment = Windows Partition

browseable = yes

writable = no
path = /mnt/hda1 # <-- adjust to your partition
public = yes

# Sharing a partition with permission to write- the partition has to be mounted writable - makes sense with e.g. FAT32.

[DATA]
comment = Data Partition (first extended Partition)
browseable = yes
writable = yes
path = /mnt/hda5
public = yes

Dont forget to save. You can now start/stop samba with

/etc/init.d/samba start
and
/etc/init.d/samba stop

You can also start/stop samba automaticaly at boot-time. Issue this call:

# unfreeze-rc.d
# update.rc.d samba defaults
# freeze-rc.d

Now samba starts when you boot and stops when you shutdown.

nach oben
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.