HOWTO:SambaNetwork
(→The part bellow on this page is momentarily under construction to add the manual for Pardus 2011) |
|||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
=Configuration of network between Pardus and WindowsXP= | =Configuration of network between Pardus and WindowsXP= | ||
| Line 11: | Line 9: | ||
{text} = the text in a window. | {text} = the text in a window. | ||
| + | = Settings for Pardus 2011= | ||
| + | 1. Open a konsole. | ||
| − | == | + | 2. Install required software: {{command | sudo pisi it samba-swat xinetd -y}} |
| − | ===Pardus 2009=== | + | |
| + | 3. Get root privileges: {{command | su}} | ||
| + | |||
| + | 4. Create file /etc/xinetd.d/swat (copy/paste text bellow in konsole) and check result | ||
| + | rm /etc/xinetd.d/swat -f | ||
| + | echo 'service swat | ||
| + | { | ||
| + | port = 901 | ||
| + | socket_type = stream | ||
| + | protocol = tcp | ||
| + | wait = no | ||
| + | user = root | ||
| + | server = /usr/sbin/swat | ||
| + | only_from = 127.0.0.1 | ||
| + | log_on_failure += USERID | ||
| + | disable = no | ||
| + | } '>>/etc/xinetd.d/swat | ||
| + | exit | ||
| + | more /etc/xinetd.d/swat | ||
| + | [[Image:Samba-swat-swatfile.png|300px|File /etc/xinetd.d/swat]] | ||
| + | |||
| + | 5. Modify file /etc/services (in KWrite with root privileges):{{command | /usr/lib/kde4/libexec/kdesu kwrite /etc/services}} | ||
| + | |||
| + | (wait some seconds for KWrite to appear) and change (with function Edit > Replace) the text (2x) | ||
| + | smpnameres | ||
| + | into | ||
| + | #smpnameres | ||
| + | 6. After saving check with: | ||
| + | more /etc/services | grep smpnameres | ||
| + | [[Image:Samba-swat-etc-services.png|550px|Check file /etc/services]] | ||
| + | |||
| + | 7. Set password for root: {{command | sudo smbpasswd -a root}} | ||
| + | |||
| + | (''ignore warnings (10x) "account_policy_get: tdb_fetch_uint32 failed for type .."'') | ||
| + | |||
| + | 8. Add root as user: {{command | sudo smbpasswd -e root}} | ||
| + | |||
| + | [[Image:Samba-swat-smbpassword.png|550px|Adding smbpassword and user]] | ||
| + | |||
| + | 9. Set Xinetd at startup and activate the service in System Settings > Service Manager. | ||
| + | |||
| + | (''in konsole with {{command | sudo service xinetd on}} and {{command | sudo service xinetd start}}'' ) | ||
| + | |||
| + | |||
| + | 10. Login to the Samba Settings page in Firefox at address http://localhost:901/ | ||
| + | |||
| + | [[Image:Samba-swat-login-welcome.png|550px|Login and welcome of samba]] | ||
| + | |||
| + | 11. Allow (if applicable) traffic on port 445 at the Incomming connections of the Firewall in System Setting > Firewall. | ||
| + | |||
| + | [[Image:Samba-swat-firewall.png|400px|Enable port 445 for smb in firewall]] | ||
| + | |||
| + | 12. Set Samba at startup and activate the service in System Settings > Service Manager or reload the service after every change in the Samba Settings. | ||
| + | |||
| + | (''in konsole with {{command | sudo service samba on}} and {{command | sudo service samba start}} or {{command | sudo service samba reload}}'' ) | ||
| + | |||
| + | 13. Access from client computer to server (samba) computer through | ||
| + | smb://juser@ip.address.of.server | ||
| + | in address bar of Dolphin. | ||
| + | |||
| + | [[Image:Samba-swat-access.png|400px|Access in Dolphin to server]] | ||
| + | |||
| + | =Settings for Pardus 2009/2008= | ||
| + | ==Pardus 2009== | ||
[System Settings] > [Service Manager] | [System Settings] > [Service Manager] | ||
if not green flag at samba: put cursor on samba > check mark at "Run on start' > Activate [Start service] (flag turns green). | if not green flag at samba: put cursor on samba > check mark at "Run on start' > Activate [Start service] (flag turns green). | ||
| Line 26: | Line 89: | ||
make a note of the "NetBIOS name:" | make a note of the "NetBIOS name:" | ||
| − | + | ==Pardus 2008== | |
[Tasma] > [System] > [Service Manager] | [Tasma] > [System] > [Service Manager] | ||
Select [SMB Network Sharing]. | Select [SMB Network Sharing]. | ||
| Line 44: | Line 107: | ||
As this directory is empty after a new installation, it is advisable to put a (image)file in this directory. | As this directory is empty after a new installation, it is advisable to put a (image)file in this directory. | ||
| − | = | + | =Settings for Windows= |
[start] > [Control Panel] > [Network and Internet Connections] > [Network Connections] > [Network Setup Wizard] | [start] > [Control Panel] > [Network and Internet Connections] > [Network Connections] > [Network Setup Wizard] | ||
| Line 77: | Line 140: | ||
(for NetBIOSnamePardusPC see [Pardus]>[Tasma]>[Samba]>[Base Settings]>{NetBIOS name:}) | (for NetBIOSnamePardusPC see [Pardus]>[Tasma]>[Samba]>[Base Settings]>{NetBIOS name:}) | ||
| − | + | =Making /home/samba (share) writable= | |
| − | + | ==Pardus 2009== | |
[System Settings] > [Advanced] > [Samba] > {enter administrator password +[OK]} > | [System Settings] > [Advanced] > [Samba] > {enter administrator password +[OK]} > | ||
[Shares] > select {share} > [Edit Share...] > [Base Settings] | [Shares] > select {share} > [Edit Share...] > [Base Settings] | ||
| Line 85: | Line 148: | ||
And to activate this change: | And to activate this change: | ||
[System Settings] > [Service Manager] > {SMB Network Sharing} and activate [Reload service] > [Overview] | [System Settings] > [Service Manager] > {SMB Network Sharing} and activate [Reload service] > [Overview] | ||
| − | + | ==Pardus 2008== | |
[Pardus] > [Tasma] > [Internet & Network]>[Samba] > [Administrator Mode] > {enter administrator password +[OK]} | [Pardus] > [Tasma] > [Internet & Network]>[Samba] > [Administrator Mode] > {enter administrator password +[OK]} | ||
and {Loading..} appears | and {Loading..} appears | ||
| Line 94: | Line 157: | ||
[System] > [Service Manager] > Select [SMB Network Sharing] and activate [Stop] and then [Start] > [Back] | [System] > [Service Manager] > Select [SMB Network Sharing] and activate [Stop] and then [Start] > [Back] | ||
| − | + | =Configuration of printer (connected to WinPC) in Pardus= | |
This is valid when the printer is connected to WinPC. | This is valid when the printer is connected to WinPC. | ||
| − | + | ==WinPC== | |
From the shared printer (which is connected to WindowsXP) we need to know the IP address and the share name of the printer. | From the shared printer (which is connected to WindowsXP) we need to know the IP address and the share name of the printer. | ||
[start] > [Printers and Fax] > right-click printer > [Properties} > [Share] > | [start] > [Printers and Fax] > right-click printer > [Properties} > [Share] > | ||
| Line 102: | Line 165: | ||
[start] > [Control Panel] > {Network and Internet Connections} > {Network Connections} > | [start] > [Control Panel] > {Network and Internet Connections} > {Network Connections} > | ||
double-click connection > Support > note the IP address: (IP.address.of.WINPC) | double-click connection > Support > note the IP address: (IP.address.of.WINPC) | ||
| − | + | ==Pardus 2009== | |
[System Settings] > [Printer Configuration] > [New Printer] > [New Network Printer] > {Windows Printer via SAMBA} | [System Settings] > [Printer Configuration] > [New Printer] > [New Network Printer] > {Windows Printer via SAMBA} | ||
and fill-in at smb:// {IP.address.of.WINPC/Share name printer} | and fill-in at smb:// {IP.address.of.WINPC/Share name printer} | ||
| Line 111: | Line 174: | ||
Enter {Printer Name} {Description} {Location} [OK] | Enter {Printer Name} {Description} {Location} [OK] | ||
[Print Test Page] and if successful [Apply] | [Print Test Page] and if successful [Apply] | ||
| − | + | ==Pardus 2008== | |
[Pardus] > [Tasma] > {Peripherals] > [Printers] > {Add}>{Add Printer/Class...} | [Pardus] > [Tasma] > {Peripherals] > [Printers] > {Add}>{Add Printer/Class...} | ||
[Next >] | [Next >] | ||
| Line 129: | Line 192: | ||
[Next >] (2x) [Back] and close Tasma | [Next >] (2x) [Back] and close Tasma | ||
| − | + | =A network with more than one PardusPC= | |
For this to function properly it is required that all {Workgroup:} and {NetBIOS name:} are different. | For this to function properly it is required that all {Workgroup:} and {NetBIOS name:} are different. | ||
See [Pardus]>[Tasma]>[Internet & Network]>[Samba]>[Base Settings] | See [Pardus]>[Tasma]>[Internet & Network]>[Samba]>[Base Settings] | ||
| − | + | =Access from PardusPC to shared folder(/home/samba) on the other PardusPC= | |
[Home] and enter at {Location:} | [Home] and enter at {Location:} | ||
smb://NetBIOSnamePardusPC(of the other PardusPC) (+ enter). | smb://NetBIOSnamePardusPC(of the other PardusPC) (+ enter). | ||
| Line 142: | Line 205: | ||
It is possible to make a Link to Location (URL)... with {smb://..................} on your Desktop. | It is possible to make a Link to Location (URL)... with {smb://..................} on your Desktop. | ||
| − | + | = Making your Home (or any other) directory readable on the network= | |
| − | + | ==Pardus 2009== | |
[System Settings] > [Advanced] > [Samba] > {enter administrator password +[OK]} > [Shares] > [Add New Share...] | [System Settings] > [Advanced] > [Samba] > {enter administrator password +[OK]} > [Shares] > [Add New Share...] | ||
in {Add/Edit Share} > [Base Settings] > [Open file dialog] and select your /home/your_login_name directory > [OK] | in {Add/Edit Share} > [Base Settings] > [Open file dialog] and select your /home/your_login_name directory > [OK] | ||
| Line 156: | Line 219: | ||
and {Apply changes to all subfolders and their content} | and {Apply changes to all subfolders and their content} | ||
[OK] | [OK] | ||
| − | + | ==Pardus 2008== | |
[Pardus] > [Tasma] > [Internet & Network] > [Samba] > [Administrator Mode] > [Shares] > [Add New Share...] | [Pardus] > [Tasma] > [Internet & Network] > [Samba] > [Administrator Mode] > [Shares] > [Add New Share...] | ||
in {Add/Edit Share} [Open file dialog] and select your /home/your_login_name directory > [OK] | in {Add/Edit Share} [Open file dialog] and select your /home/your_login_name directory > [OK] | ||
| Line 174: | Line 237: | ||
and {Apply changes to all subfolders and their content} | and {Apply changes to all subfolders and their content} | ||
[OK] | [OK] | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Revision as of 19:59, 16 July 2011
Configuration of network between Pardus and WindowsXP
Introduction
This is a manual about configuring a network between computers after a new installation of Pardus and WindowsXP Professional (+SP2).
Both computers are connected to a router or a switch.
[Apply] = activate the [Apply] button or select [this text].
{text} = the text in a window.
Settings for Pardus 2011
1. Open a konsole.
2. Install required software: sudo pisi it samba-swat xinetd -y
3. Get root privileges: su
4. Create file /etc/xinetd.d/swat (copy/paste text bellow in konsole) and check result
rm /etc/xinetd.d/swat -f
echo 'service swat
{
port = 901
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/swat
only_from = 127.0.0.1
log_on_failure += USERID
disable = no
} '>>/etc/xinetd.d/swat
exit
more /etc/xinetd.d/swat
5. Modify file /etc/services (in KWrite with root privileges): /usr/lib/kde4/libexec/kdesu kwrite /etc/services
(wait some seconds for KWrite to appear) and change (with function Edit > Replace) the text (2x)
smpnameres
into
#smpnameres
6. After saving check with:
more /etc/services | grep smpnameres
7. Set password for root: sudo smbpasswd -a root
(ignore warnings (10x) "account_policy_get: tdb_fetch_uint32 failed for type ..")
8. Add root as user: sudo smbpasswd -e root
9. Set Xinetd at startup and activate the service in System Settings > Service Manager.
(in konsole with sudo service xinetd on and sudo service xinetd start )
10. Login to the Samba Settings page in Firefox at address http://localhost:901/
11. Allow (if applicable) traffic on port 445 at the Incomming connections of the Firewall in System Setting > Firewall.
12. Set Samba at startup and activate the service in System Settings > Service Manager or reload the service after every change in the Samba Settings.
(in konsole with sudo service samba on and sudo service samba start or sudo service samba reload )
13. Access from client computer to server (samba) computer through
smb://juser@ip.address.of.server
in address bar of Dolphin.
Settings for Pardus 2009/2008
Pardus 2009
[System Settings] > [Service Manager]
if not green flag at samba: put cursor on samba > check mark at "Run on start' > Activate [Start service] (flag turns green).
[System Settings] > [Firewall Manager]
if "Firewall is activated" check that there is no mark at "Block Incoming Connections"
[System Settings] > [Network Manager]
make a note of the IP address
or
[System Settings] > [Advanced]>[Samba]
make a note of the "NetBIOS name:"
Pardus 2008
[Tasma] > [System] > [Service Manager]
Select [SMB Network Sharing].
Put a mark at {Run on startup} and activate the green (Start)button.
In the column {Run on Startup} {Yes} should be shown.
[Back].
[Internet & Network] > [Firewall Config]
[Start Firewall] (if not already running)
Put a mark at {Windows file sharing service}
[Apply] > [Back]
[Samba] > [Base Settings]
Make a note of the {NetBIOS name:} (this is referred to as NetBIOSnamePardusPC)
[Back]
As a default the /home/samba directory is configured as a shared directory. This directory will be readable from WinPC. Making this directory writable from WinPC will come later in this manual. As this directory is empty after a new installation, it is advisable to put a (image)file in this directory.
Settings for Windows
[start] > [Control Panel] > [Network and Internet Connections] > [Network Connections] > [Network Setup Wizard]
Check mark at {Yes, use the existing shared connection for this computer's Internet access(recommended)}
Make a note of the {Computer name:} (this is referred to as ComputernameWinPC)
Put a mark at {Turn on file and printer sharing}
{To apply these settings, click Next}
Put a mark at {Just finish the wizard; I don't need to run the wizard on other computers}
If you have Sygate firewall:
Open Sygate firewall > [Tools] > [Options...] > [OK] > [Network Neighborhood]
Select Network Interface (with multiple interface cards)
Put a mark at {Allow others to share my files and printer(s)}
[OK]
After this a restart of the computer is required.
[Home] and enter at {Location:}
smb://ComputernameWinPC (+ enter).
or
smb://IP.address.of.the.remote.site (+ enter).
(for ComputernameWinPC see [start]>[Control Panel]>[System]>[Computer Name]>{Full computer name}
It is possible to make a Link to Location (URL)... with {smb://...........} on your Desktop.
[start]>[My Computer] and enter at {Address:}
\\NetBIOSnamePardusPC (+ enter).
or
\\IP.address.of.the.remote.site (+ enter).
(for NetBIOSnamePardusPC see [Pardus]>[Tasma]>[Samba]>[Base Settings]>{NetBIOS name:})
Pardus 2009
[System Settings] > [Advanced] > [Samba] > {enter administrator password +[OK]} >
[Shares] > select {share} > [Edit Share...] > [Base Settings]
Remove the mark at {Read only}
[OK] > [Apply] > [OK]
And to activate this change:
[System Settings] > [Service Manager] > {SMB Network Sharing} and activate [Reload service] > [Overview]
Pardus 2008
[Pardus] > [Tasma] > [Internet & Network]>[Samba] > [Administrator Mode] > {enter administrator password +[OK]}
and {Loading..} appears
[Shares] > select {share} > [Edit Share...]
Remove the mark at {Read only}
[OK] > [Apply] > [OK]
And to activate this change:
[System] > [Service Manager] > Select [SMB Network Sharing] and activate [Stop] and then [Start] > [Back]
Configuration of printer (connected to WinPC) in Pardus
This is valid when the printer is connected to WinPC.
WinPC
From the shared printer (which is connected to WindowsXP) we need to know the IP address and the share name of the printer.
[start] > [Printers and Fax] > right-click printer > [Properties} > [Share] >
note the Share name: (Share name printer) and check the mark at Share this printer:
[start] > [Control Panel] > {Network and Internet Connections} > {Network Connections} >
double-click connection > Support > note the IP address: (IP.address.of.WINPC)
Pardus 2009
[System Settings] > [Printer Configuration] > [New Printer] > [New Network Printer] > {Windows Printer via SAMBA}
and fill-in at smb:// {IP.address.of.WINPC/Share name printer}
(for instance > 192.168.0.100/canonmp7 and is not case sensitive)
mark at {Prompt user if authentication is required} [> Forward]
Select manufacturer [> Forward] select {Models} and {Driver}
[> Forward]
Enter {Printer Name} {Description} {Location} [OK]
[Print Test Page] and if successful [Apply]
Pardus 2008
[Pardus] > [Tasma] > {Peripherals] > [Printers] > {Add}>{Add Printer/Class...}
[Next >]
[SMB shared printer (Windows)]
[Next >]
{Guest account (login="guest")}
[Next >]
[Scan] fold out scanresult and select de printer
[Next >]
Select the {Manufacturer} and {Model}
[Next >]
Select the recommended driver (if not working select the simplified version)
[Next >]
Test the printer
[Next >] (3x)
Supply a name for the printer
[Next >] (2x) [Back] and close Tasma
A network with more than one PardusPC
For this to function properly it is required that all {Workgroup:} and {NetBIOS name:} are different.
See [Pardus]>[Tasma]>[Internet & Network]>[Samba]>[Base Settings]
[Home] and enter at {Location:}
smb://NetBIOSnamePardusPC(of the other PardusPC) (+ enter).
or
smb://IP.address.of.the.remote.site (+ enter).
It is possible to make a Link to Location (URL)... with {smb://..................} on your Desktop.
Making your Home (or any other) directory readable on the network
Pardus 2009
[System Settings] > [Advanced] > [Samba] > {enter administrator password +[OK]} > [Shares] > [Add New Share...]
in {Add/Edit Share} > [Base Settings] > [Open file dialog] and select your /home/your_login_name directory > [OK]
Enter a name at {Name:}
Check/put mark at {Read only}{Public}{Browseable}{Available}
[OK] > [Apply] > [OK]
And to make the above directory visible/read-only:
Open Home (Personal files), go[UP] to /home level, rightclick on your_login_name and select {Properties} >
[Permissions] > [Advanced Permissions]
Check/put mark at {Show Entries} for {User}{Group}{Others}>[OK]
Put a mark at {Only owner can rename and delete folder content}
and {Apply changes to all subfolders and their content}
[OK]
Pardus 2008
[Pardus] > [Tasma] > [Internet & Network] > [Samba] > [Administrator Mode] > [Shares] > [Add New Share...]
in {Add/Edit Share} [Open file dialog] and select your /home/your_login_name directory > [OK]
Enter a name at {Name:}
Check/put mark at {Read only}{Public}{Browseable}{Available}
[OK]
[Apply] > [OK]
And to activate this change:
[System] > [Service Manager] Select [SMB Network Sharing] and activate [Stop] and then [Start] [Back]
And to make the above directory visible/read-only:
Open Home (Personal files), go[UP] to /home level, rightclick on your_login_name and select {Properties} >
[Permissions] > [Advanced Permissions]
Check/put mark at {Show Entries} for {User}{Group}{Others} > [OK]
Put a mark at {Only owner can rename and delete folder content}
and {Apply changes to all subfolders and their content}
[OK]