Difference between revisions of "Samba Quick FAQ"


From Knoppix Documentation Wiki
Jump to: navigation, search
 
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{template|out of date}}
  
 +
Some useful stuff:
  
 +
*start samba server:
 +
/etc/init.d/samba start
 +
*change default config:
 +
vi /etc/samba/smb.conf
 +
/etc/init.d/samba restart
 +
*delete & re-add the knoppix samba user (otherwise it complains about authentication) and create a password:
 +
smbpasswd -x knoppix
 +
smbpasswd -a knoppix
 +
*test it's working by bringing up a limited shell pointed at the knoppix *home dir (use ''exit'' to exit):
 +
smbclient -U knoppix //localhost/knoppix
 +
* Configure networking
 +
netcardconfig
 +
-try 'yes' to autoconfigure  (This didn't work for me.  No idea why.)
 +
ifconfig
  
 +
*If the network interface card is correctly configured, you should see BOTH the 127.0.0.1 loopback interface AND a local network address.  It takes up about 15 lines.  If yes, you're golden, if not..
  
 +
*From another machine on the network, log on to the router.  (Look at the instructions that came with your router for how to do this.) In my Siemens  SpeedStream 2614  4 port DSL/Cable Router, the location is 192.168.254.254  and after logging in, the opening page shows the following:
  
<div id="wikitikitavi" style="overflow:auto; height: 1px; ">
+
INTERNET
[[http://WTHP1.disney.com] [WTHPD1]]
+
Cable/DSL : CONNECTED
[http://WTHP2.disney.com WTHPD2]
+
WAN IP: 74.68.xx.yyy
[WTHPD3](http://WTHP3.disney.com)
+
Subnet Mask: 255.255.240.0
[http://WTHP4.disney.com | WTHPD4]
+
Gateway IP: 74.68.ff.ggg
[WTHPD5 | http://WTHP5.disney.com]
+
DNS: 24.29.www.xyz
</div>
+
 +
In 'Simple Setup' the allowed range of IP addresses is defined.
 +
 
 +
* From your root shell, enter this sequence of commands:
 +
 
 +
netcardconfig --select 'no' to manually configure the NIC
 +
    -enter an unused IP address in the acceptable range for your router
 +
    -when asked for the following, enter the information from the router:
 +
    -Subnet Mask:  255.255.240.0 
 +
(I accepted the default, 255.255.255.0,  and it worked fine. 
 +
Like I said, I'm not an expert!)
 +
    -Gateway IP: (from your router)  74.68.ff.ggg
 +
    -Name server: DNS:  24.29.www.xyz  ('Domain Name Server')
 +
ifconfig
 +
to see if network interface card is correctly configured, as above. If not, lather, rinse, repeat.  If it is, try
 +
ping 192.168.254.254  (the IP address of the router above)  and
 +
ping 192.168.254.xxy  (the IP address of the other machine)
 +
(Hit <CTRL> C  to stop the pinging!)
 +
 
 +
If this works, you're in!
 +
* Again from your root shell enter
 +
lisa  (to start something Samba needs.)
 +
 
 +
*Close the popup notification window it opens.
 +
*From the Knoppix menu select 'Start Samba Service'
 +
*From the Knoppix menu select 'Show SMB neighborhood' (or 'Network neighborhood', or something similar)
 +
 
 +
*Click on the 'Home' command bar icon to open a Konqueror window in file browser configuration.
 +
*In the address bar, type SMB://(validusername on machine you want to log onto)@(IP address of the machine you want to log onto) e.g.:
 +
SMB://john@192.168.123.001
 +
 
 +
You will be directed to log in.  Enter the username and password for  validusername on the other machine.
 +
You should see a top level directory of the other machine.
 +
Yippee!!

Latest revision as of 11:53, 13 January 2013

Template:Template

Some useful stuff:

  • start samba server:
/etc/init.d/samba start
  • change default config:
vi /etc/samba/smb.conf
/etc/init.d/samba restart
  • delete & re-add the knoppix samba user (otherwise it complains about authentication) and create a password:
smbpasswd -x knoppix
smbpasswd -a knoppix
  • test it's working by bringing up a limited shell pointed at the knoppix *home dir (use exit to exit):
smbclient -U knoppix //localhost/knoppix
  • Configure networking
netcardconfig
-try 'yes' to autoconfigure  (This didn't work for me.  No idea why.)
ifconfig
  • If the network interface card is correctly configured, you should see BOTH the 127.0.0.1 loopback interface AND a local network address. It takes up about 15 lines. If yes, you're golden, if not..
  • From another machine on the network, log on to the router. (Look at the instructions that came with your router for how to do this.) In my Siemens SpeedStream 2614 4 port DSL/Cable Router, the location is 192.168.254.254 and after logging in, the opening page shows the following:

INTERNET Cable/DSL : CONNECTED WAN IP: 74.68.xx.yyy Subnet Mask: 255.255.240.0 Gateway IP: 74.68.ff.ggg DNS: 24.29.www.xyz

In 'Simple Setup' the allowed range of IP addresses is defined.

  • From your root shell, enter this sequence of commands:
netcardconfig --select 'no' to manually configure the NIC
   -enter an unused IP address in the acceptable range for your router
   -when asked for the following, enter the information from the router:
   -Subnet Mask:  255.255.240.0  
(I accepted the default, 255.255.255.0,  and it worked fine.  
Like I said, I'm not an expert!)
   -Gateway IP: (from your router)  74.68.ff.ggg
   -Name server: DNS:  24.29.www.xyz   ('Domain Name Server')
ifconfig 

to see if network interface card is correctly configured, as above. If not, lather, rinse, repeat. If it is, try

ping 192.168.254.254   (the IP address of the router above)  and 
ping 192.168.254.xxy   (the IP address of the other machine)
(Hit <CTRL> C   to stop the pinging!)

If this works, you're in!

  • Again from your root shell enter
lisa  (to start something Samba needs.)
 
  • Close the popup notification window it opens.
  • From the Knoppix menu select 'Start Samba Service'
  • From the Knoppix menu select 'Show SMB neighborhood' (or 'Network neighborhood', or something similar)
  • Click on the 'Home' command bar icon to open a Konqueror window in file browser configuration.
  • In the address bar, type SMB://(validusername on machine you want to log onto)@(IP address of the machine you want to log onto) e.g.:
SMB://john@192.168.123.001

You will be directed to log in. Enter the username and password for validusername on the other machine. You should see a top level directory of the other machine. Yippee!!