Wednesday, August 16, 2006

Samba part 1

So it is time to put some music into the server. With samba you are able to share the data on the server with windows-computers connected to your network. Check the samba web-site here

Installing the server is very simple with ubuntu server. Just type
sudo apt-get install samba
For me this went perfectly smooth. Now we can start configuring the samba server. You configure the samba server by editing the "smb.conf" file. The ubuntu-server user guide advises to make a copy of the smb.conf file before you start editing. You do this by giving the command
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.original
Ok now we should edit the "smb.conf" file. For editing files I`ll use the program "vi". you start editing the smb.conf file with the command
sudo vi /etc/samba/smb.conf
now you see the contents of the file on the screen. I used the following commands to change the file and save it: With the arrow keys you can move up and down in the file. To edit the file press the "insert" key and start typing. To save the file: exit the editing mode by pressing the escape key. now press ":". At the bottom of your screen you should now see a colon. With the command "w" you`ll save the changes you made. With the command "q"you`ll exit vi ("q!" exits without saving). here you`ll find a list with all the basic commands you need for vi editor.
If you`re not sure what you`re doing first try it without sudo in front of the vi command. Note that you cannot save you`re changes now and have to exit with ":" followed by "q!".

Next time I will finish configurating the smb.conf file and add shares and users...

No comments: