Thursday, 31 March 2011

install samba on ubuntu

If you want to share files between your Ubuntu and Windows computers, your best option is to use Samba file sharing.

To install, first open a terminal window and enter the following command:
sudo apt-get install samba smbfs
We’ve got samba installed, but now we’ll need to configure it to make it accessible. Run the following command to open the configuration file, substituting your editor of choice:
sudo gedit /etc/samba/smb.conf
Find this section in the file:
####### Authentication #######
# “security = user” is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html
# in the samba-doc package for details.
; security = user
Uncomment the security line, and add another line to make it look like this:
security = user
username map = /etc/samba/smbusers
This will set Samba to use the smbusers file for looking up the user list.
Create a Samba User
There are two steps to creating a user. First we’ll run the smbpasswd utility to create a samba password for the user.
sudo smbpasswd -a alaimar
Next, we’ll add that username to the smbusers file.
sudo gedit /etc/samba/smbusers
Add in the following line, substituting the username with the one you want to give access to. The format is = “”. You can use a different samba user name to map to an ubuntu account, but that’s not really necessary right now.
= “
Now you can create samba shares and give access to the users that you listed here.

wireless connection with dlink dwa140 with ubuntu 10.10

Re: wireless connection with dlink dwa140 with ubuntu 10.10

Hi there, I had the same symptoms as you. Turns out it was two drivers fighting to get control of the dongle.

If you do: lsmod | grep rt
You'll see there is a rt2870 module loaded along with some rt2x00usb and rt2800usb. What a mess.

I just added these lines to my /etc/modprobe.d/blacklist.conf

blacklist rt2800usb
blacklist rt2800lib
blacklist rt2x00usb
blacklist rt2x00lib

That's it...I think. I'm yet to reboot and see if the correct module loads by itself.
You can do the following to load it though:
sudo modprobe rt2870sta