Saturday, July 6, 2013

Mount a Samba smb shared folder Ubuntu

UbuntuLinux Guide
The contents you are looking for have moved. You will be redirected to the new location automatically in 5 seconds. Please bookmark the correct page at http://www.ubuntulinuxguide.com/blog/mount-samba-smb-shared-folder-ubuntu.html
AskUbuntu

SMB Sharing


One of the easiest and most common ways to connect, network, and share files and folders between Ubuntu and Windows computers is to configure a Samba File Server on the Ubuntu computer. This method of file sharing makes it easy for anyone to learn how to share files between computers using linux systems. Samba may not be included with the Ubuntu package but can easily be downloaded from the software center or using the apt-get command. The Samba file server is configured initially to share files with any user on the network without requiring a password, however password required access can be configured.

For Ubuntu operating systems before 12.10 you have to use the "classic" syntax to identify the server and share to the client computer. You can not mount a folder within a share as though it is a share, you should mount the share and then access the folder within it. A symbolic link to the folder can be made if necessary. When you run  smbmount,mount -t smbfs  or similar remote mount commands as  root (for example with sudo)  you need to specify the username on the server (unless it's actually  root , which is unlikely and, if the server runs a Unix system, not recommended.


Follow the instructions below to install Samba SMB:


Search Software Center for "samba."
Samba download in Ubuntu Software Center

Click Install, Enter your administrative password, and wait for Samba to install.
Installing Samba from Ubuntu Software Center

Search for Samba in dashboard.
Searching for samba in the dashboard
Open Samba and choose a folder to share by typing in the path or browsing.
Choosing a folder to share with samba smb writable visible

Choose the Access tab at the top of the window and allow access to the shared folder for everyone or only specified users.

Allow access by everyone or specific users to samba shared folder



Mount a Samba (smb) Shared Folder on Local Network:


Open the home folder and Browse Network.
Browsing local network for network smb folder

Find the computer or device sharing the folder.

Double-click on the folder you would like to mount.
Mounting samba share on local network


Mount Samba shared folder in Terminal:


So first, you'll create a folder (mount point) for the share:
 sudo mkdir /mnt/projects 


(This is assuming you want to create it in /mnt. It's become more common to create all globally accessible mount points that aren't part of your Ubuntu system itself in /media instead of /mnt but it's fine to use /mnt if you like.)
Then use a command like this to mount the share:
 sudo smbmount //192.168.2.28/projects /mnt/projects -o user=USERNAME 

Replace USERNAME with the username on the Samba server that you need to log in as. You'll be prompted for your password. You can specify your password on the command-line too (with -o password=PASSWORD) but it will appear in cleartext in the Terminal and will go into your command history, so you probably don't want to do that.
You'll notice that I've used smbmount but mount -t smbfs or mount -t cifs (or mount.cifs) should work just as well, if you prefer.
Now smb://192.168.2.28/projects's contents are accessible in /mnt/projects. If you need to be able to access the contents of smb://192.168.2.28/projects/myProject in/mnt/projects/myProject, you can create a symbolic link:
 sudo ln -s /mnt/projects/myProject /mnt/myProject 


For readers of Ubuntu 12.10 and later:

 

You must use mount.cifs or mount -t cifs(smbmount and mount -t smbfs are no longer provided). These commands will work on earlier systems too.

Related:


Source: StackExchange: AskUbuntu Original Author: Eliah Kagan

Friday, June 28, 2013

Static background noise: Ubuntu 13.04, Kubuntu 13.04; Intel-HDA & ALSA sound driver

A recent update to the pulseaudio package included with Ubuntu 13.04 (Raring Ringtail) and Kubuntu 13.04 may be causing some users to experience a persistent background noise, or hum. It appears that this particular bug will affect VLC, Skype, and possibly other applications which emit audio. This problem is primarily affecting Intel-HDA (high definition audio) chipsets and ALSA sound drivers in regards to "glitch-free" PA (pulse audio).

Below is the current suggested workaround. It requires you to modify a line in the default pulse audio configuration file.

  1. Modify the following line in /etc/pulse/default.pa:                                                                                
    fix ubuntu 13.04 kubuntu 13.04 static background noise; gedit /etc/pulse/default.pa
    (Start a session of Terminal and use gedit to edit the pulse audio file.)
       
  2. In line 53 of /etc/pulse/default.pa change use_ucm=0 to tsched=0 
     
Edit line 53 of pulse audio default.pa file Ubuntu 13.04
(The line to edit is line 53)

3. Save Edits and Close the default.pa file.

**bug 751265

Thursday, June 20, 2013

Remove "Unlock Keyring" Prompt: Ubuntu 11.04, 11.10, 12.04, 12.10


Whenever Ubuntu boots up, if you are not using a password for login, the user is prompted to unlock the Keyring. This can be annoying especially if you are running Ubuntu on a private computer, such as a laptop, where no one else will have access to it. The rest of this article will focus on showing you how to remove the Unlock Login Keyring prompt for many of the most recent releases of Ubuntu. 

Make Keyring Accessible Without Password:

In order to remove the Unlock Login Keyring dialog set the password for the keyring to an empty password. This prevents being prompted for a password. 
  1. Open Applications --> Accessories -->Password and Encryption Keys
  2. Right-click on the "login" keyring
  3. Select "Change Password"
  4. Enter your old password and leave the new password blank
  5. Press ok, read the security warning, think about it and if you still want to get rid of the Unlock Login Keyring dialog, choose "use unsafe storage"
As the message states: This will expose all passwords saved in the keyring (e.g. email passwords) to anyone using your computer or having access to your files and is not recommended. 
Ubuntu 11.04
You can use the search box to find Passwords and Encryption Keys by typing Password in the search box and pressing search.
Related Posts Plugin for WordPress, Blogger...