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
If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.
Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.
Sponsored by ActiveState
| Speed Up Your Web Site with Varnish | Jun 19, 2013 |
| Non-Linux FOSS: libnotify, OS X Style | Jun 18, 2013 |
| Containers—Not Virtual Machines—Are the Future Cloud | Jun 17, 2013 |
| Lock-Free Multi-Producer Multi-Consumer Queue on Ring Buffer | Jun 12, 2013 |
| Weechat, Irssi's Little Brother | Jun 11, 2013 |
| One Tail Just Isn't Enough | Jun 07, 2013 |
- Speed Up Your Web Site with Varnish
- Containers—Not Virtual Machines—Are the Future Cloud
- Linux Systems Administrator
- Lock-Free Multi-Producer Multi-Consumer Queue on Ring Buffer
- RSS Feeds
- Senior Perl Developer
- Technical Support Rep
- Non-Linux FOSS: libnotify, OS X Style
- UX Designer
- Web & UI Developer (JavaScript & j Query)
Featured Jobs
| Linux Systems Administrator | Houston and Austin, Texas | Host Gator |
| Senior Perl Developer | Austin, Texas | Host Gator |
| Technical Support Rep | Houston and Austin, Texas | Host Gator |
| UX Designer | Austin, Texas | Host Gator |
| Web & UI Developer (JavaScript & j Query) | Austin, Texas | Host Gator |
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?






2 hours 24 min ago
2 hours 41 min ago
3 hours 58 min ago
4 hours 46 min ago
4 hours 49 min ago
4 hours 58 min ago
5 hours 28 min ago
7 hours 54 min ago
11 hours 54 min ago
13 hours 10 min ago