Ubuntu Server – Very Quick FTP Setup

ubuntu-server-logo

To get an FTP daemon running on Ubuntu Server we will install vsftpd (Very Secure FTP Daemon) as follows:

sudo apt-get update
sudo apt-get install vsftpd

The next step is to configure vsftpd by editing the /etc/vsftpd.conf file. Issue the following commands to install the nano editor (if you haven’t installed it before) and edit the file:

sudo apt-get install nano
sudo nano /etc/vsftpd.conf

The basic configuration of vsftpd.conf involves simple editing and un-commenting of the existing parameters:

Un-commenting is the removal of the # sign from the start of a line. For example changing #local_enable=YES to local_enable=YES (which we will do later).

  • To disable anonymous access change anonymous_enable=YES to anonymous_enable=NO.
  • Un-comment #local_enable=YES to allow local users to login to the FTP server.
  • Un-comment #write_enable=YES if you want users to be able to upload to the FTP server.

Vsftp.conf contains an explanation of its parameters – so it should be relatively self-explanatory if you wish to configure other options.

The final step is to restart the vsftp daemon. On older Ubuntu servers you will probably use sudo /etc/init.d/vsftpd restart but a more recent installation will prefer:

sudo service vsftpd restart

Enjoy!

Ubuntu 12.04 – Dell Vostro 3750 – No Sound When Headphones are Plugged in (Fixed)

Since installing Ubuntu 12.04 on my Dell Vostro 3750 I have had issues with no sound coming through my headphones.

I thought that I had resolved the issue in a previous blog post but recently the problem has resurfaced. I tired reverting to my original /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf file but this did not work.

It might have some bearing on the issue that I am dual booting with Windows 7 – but I am not sure that this is necessarily the problem.

When I run alsamixer (from the terminal) my speaker volume becomes muted when I plug in my headphones.

The headphone column state does not change at all.

My first stop when looking at this issue again was the Ubuntu Sound Troubleshooting Page. I looked at a few items after step 9 but I tried evrything up to step 9 to no avail. I mention this as I do not know if these steps impacted the current fix that I am using.

This bug report contains the fix that currently works for me. Open a Terminal and issue the following commands:

sudo nano /usr/share/pulseaudio/alsa-mixer/paths/analog-output-
headphones.conf

Comment out the following line as shown:

[Jack_InputDevice]
#required-any = any

Save the file and then issue this command to restart pulseaudio:

pulseaudio -k

So far I have had no issues with this fix and I have rebooted and plugged and un-plugged my headphones – sound switches between the headphones and speaker just fine again.

Ubuntu 12.04 – Dell Vostro 3750 – No Sound When Headphones are Plugged in

** This workaround did work for me for a while – I have now had to implement a new workaround to fix the issue now that it had resurfaced again. See this post for details. **

Having just installed Ubuntu 12.04 (Precise Pangolin) on my Dell Vostro 3750 I noticed that there was no sound when I plugged in my headphones.

The workaround was to edit /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf.

Update: Since implementing this workaround I have found that updates have reverted the changes that I made to analog-output-headphones.conf. So I recommend making a backup of the original file, then making changes to analog-output-headphones.conf and then backing up the changed file.

Open the terminal and enter the following commands:

cd /usr/share/pulseaudio/alsa-mixer/paths/
sudo cp analog-output-headphones.conf analog-output-headphones.bak
sudo nano analog-output-headphones.conf

Look for the section called [Element Speaker] and change it so that it looks like this:

[Element Speaker]
switch = on
volume = ignore

Create a backup of the corrected analog-output-headphones.conf:

sudo cp analog-output-headphones.conf analog-output-headphones.fixed

Save the changes and then reboot.

After rebooting I found that I needed to remove my headphones and then insert the jack again to get them to work. Once they were working I could remove and insert the headphones jack and the behaviour was as expected.

With my configuration files backed up I can now easily revert to the original settings should I need to in the future or copy the fixed settings back if the settings are lost.

Source: bugs.launchpad.net

Credit to Ryan (bovorasr) for the workaround.