This tutorial is based on Feisty Fawn 7.04 and still connected with my previous tutorial on how to setup Samba on Ubuntu .

SWAT is poorly configured in Ubuntu so you should manually edit some files and installing the dependency program.

First install swat by executing:

sudo apt-get install swat

Then try to access swat by executing http://localhost:901 on your Firefox. aargghhh it’s failed. This is becaused xinetd hasn’t been installed. Okay, then follow the next step.

You have to install xinetd to perform as the webserver. Do it by executing:

sudo apt-get install xinetd

Normally you don’t have to change /etc/inetd.conf but on the previous version of Ubuntu, you should uncomment the inetd.conf file so the content will be like this:

swat stream tcp nowait.400 root /usr/sbin/tcpd \ /usr/sbin/swat

Then open /etc/xinetd.d/swat (by default this file is nonexistence, so you should make it by your own):

sudo gedit /etc/xinetd.d/swat

Copy codes below into that file.

follow by executing commad:

sudo dpkg-reconfigure xinetd

Oke, open Firefox and open http://localhost:901, Enter your username and password, and Voila…you should be able to see SWAT right now.

Tags: . , , .

How to setup Samba on Ubuntu

November 30th, 2007 by admin

Simple, just execute

 sudo apt-get install samba

Then open /etc/samba/smb.conf, you could use gedit or Vi to open the file. The smb.conf is divided into six sections:

  1. Global Settings
  2. Debugging/Accounting
  3. Authentication
  4. Printing
  5. File sharing
  6. Misc
  7. Share Definitions

The Global Settings can be used to configure workgroup and wins server name. The most important segments is File Sharing, this segment is used for specifying the folder or device you want to share.

After that, create a username for your samba password. This username and password will be asked each time someone want to open the folder.

The password for samba user is different from the password for the Linux operating system (although you can also make it similar).

Execute command below to create a password for a username.

sudo  smbpasswd -a username

New SMB password: [enter your password]
Retype new SMB password: [verify the password]
Added user username.

Now, restart your samba by executing command below:

sudo /etc/init.d/samba reload

Tag: , , ,