Difference between revisions of "Samba Quick FAQ"


From Knoppix Documentation Wiki
Jump to: navigation, search
Line 75: Line 75:
 
You should see a top level directory of the other machine.
 
You should see a top level directory of the other machine.
 
Yippee!!
 
Yippee!!
 
 
 
[[Category : FAQ Page]]
 

Revision as of 09:53, 18 July 2011

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

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Alternate method, by a noob---for Knoppix 5.1.1 I don't claim to be an expert, but this worked for me!  :-) (All these steps may not be necessary, but it worked for me-YMMV.)

  • Open a root shell and enter this sequence of commands:
rm /etc/hosts.deny
rm /etc/hosts.allow
/usr/sbin/inetd restart

see the FTP FAQ instructions for an explanation

  • 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!!