Tech Tips
Some time ago, I “discovered” automount, and after using it for a while, I wondered if it would be possible to combine it with FUSE and CurlFtpFs to make automatic filesystem access possible to FTP sites. This wasn't very trivial, because the automount software had some problems with the interpretation of the map file. I solved this problem by creating a helper script faking a curl filesystem.
Here are the steps:
1) If not yet enabled in the kernel, enable autofs by setting CONFIG_AUTOFS and CONFIG_AUTOFS4 to yes or module and rebuild the kernel.
2) Get FUSE from fuse.sourceforge.net and install it.
3) Get CurlFtpFs from curlftpfs.sourceforge.net and install it.
4) Create the map file /etc/auto.ftp:
-fstype=curl,allow_other,ro :ftp\://&/
This will tell the automounter to use the curl filesystem to mount an FTP site. I added the allow_other option so anyone on the system can use this method. See the documentation for FUSE and CurlFtpFs for other possible options.
5) I created the following helper script, /sbin/mount.curl:
#! /bin/sh mount -t fuse curlftpfs
This will be used by mount to mount the curl filesystem, but it effectively uses the FUSE filesystem with CurlFtpFs to mount the FTP site.
6) Create the directory /mnt/ftp (or any other you like).
7) Then, after issuing the command (as root):
automount /mnt/ftp file /etc/auto.ftp
you can access FTP archives simply by changing to the directory /mnt/ftp/ftp.linuxjournal.com, as if on your own computer. After some time, automount (the default is five minutes, but that can be changed with the -t option with automount) will unmount this directory again and release the connection to the FTP site. Don't forget that every time you access a file, it will be transferred to you via FTP, which can take some time depending on your Internet speed.
—Michiel, from somewhere in cyberspace.
Check the Ultimate Linux Box article in this issue (page 64), and you'll find the “hard way” instructions for installing the latest NVIDIA driver on Ubuntu/Kubuntu. There's an easier way to install NVIDIA (or even ATI) drivers on Ubuntu/Kubuntu and all its spin-offs. You can use a program called Envy, which is designed to automate installation of accelerated graphics drivers.
I heard about Envy but opted to go the “hard way” at first because I'd read numerous reports of Envy failing to work. The hard way isn't very hard for me anymore, because I've gone through the process so many times. It's a shame I wasted my time though, because I found out later that Envy is, in fact, very easy. And, it works just fine with the latest Ubuntu/Kubuntu, Linux Mint and other Ubuntu spin-off distros.
The first thing you need to do is install Envy. Run the command:
sudo apt-get install envy
You may find that it automatically installs a number of dependencies.
Use the command envy -t to run Envy with the text-mode interface. This is especially useful if you weren't able to get a graphical desktop running at all, because you can run this from a text console. It works just as well in a terminal window on a graphical desktop though. See Figure 1 for a picture of the text-mode main menu.
You can run a graphical version of Envy instead, with the command envy -g. See Figure 2 for a picture of the graphical main menu.
Select the first menu choice for the NVIDIA driver. You'll have to enter your password if you ran Envy as a normal user. Then, follow the prompts. It will ask you if you want to update your /etc/X11/xorg.conf file. The default answer is “y”, and I recommend you use it.
If you installed Linux and got a graphical desktop with low resolution because it couldn't detect your graphics card properly, you probably won't want to stick with that low resolution. The envy program won't necessarily correct this problem for you. You need to change your Screen section in the /etc/X11/xorg.conf file. For example, I deleted the resolution on the list starting with 1024x768 and replaced it with a 1920x1200 resolution, the only one I use:
Section "Screen"
Identifier "Default Screen"
Device "nVidia Corporation"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1200"
EndSubSection
EndSection
—Nicholas Petreley
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
| Designing Electronics with Linux | May 22, 2013 |
| Dynamic DNS—an Object Lesson in Problem Solving | May 21, 2013 |
| Using Salt Stack and Vagrant for Drupal Development | May 20, 2013 |
| Making Linux and Android Get Along (It's Not as Hard as It Sounds) | May 16, 2013 |
| Drupal Is a Framework: Why Everyone Needs to Understand This | May 15, 2013 |
| Home, My Backup Data Center | May 13, 2013 |
- Designing Electronics with Linux
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Dynamic DNS—an Object Lesson in Problem Solving
- Using Salt Stack and Vagrant for Drupal Development
- Build a Skype Server for Your Home Phone System
- New Products
- A Topic for Discussion - Open Source Feature-Richness?
- Why Python?
- Validate an E-Mail Address with PHP, the Right Way
- Tech Tip: Really Simple HTTP Server with Python
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi

It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?






52 sec ago
8 min 53 sec ago
2 hours 23 min ago
4 hours 53 min ago
14 hours 56 min ago
19 hours 23 min ago
22 hours 58 min ago
23 hours 31 min ago
1 day 1 hour ago
1 day 1 hour ago