UpFront
UpFront
Tech Tip
Invoking the cd utility by itself (that is, without any arguments) will change the current directory to the directory specified by the $HOME environment variable:
nick@nimble ~ $ cd /tmp/ nick@nimble /tmp $ cd nick@nimble ~ $
Invoking the cd utility with a single hyphen (-) argument will return you to the previous directory you were in.
If you accidentally issue a cd without any arguments, typing cd - is a convenient way of returning to the directory you came from—in essence functioning as an undo operation:
nick@nimble ~/a/long/path/to/some/files $ cd nick@nimble ~ $ cd - /home/nick/a/long/path/to/some/files $ nick@nimble ~/a/long/path/to/some/files $
Or, if you want to alternate between two directories, cd - makes this simple:
nick@nimble ~/path/to/some/files $ cd ~/another/path/to/some/files/ nick@nimble ~/another/path/to/some/files $ cd - /home/nick/path/to/some/files nick@nimble ~/path/to/some/files $ cd - /home/nick/another/path/to/some/files nick@nimble ~/another/path/to/some/files $
Tech Tip
Garmin is a popular brand of GPS devices. Unfortunately, Garmin makes its MapSource application only for Windows, not Linux. However, Wine runs MapSource, at least for Garmin GPS units that communicate via USB.
The following procedure is based on:
Fedora 8
The current Wine package (wine-0.9.56-1.fc8)
A Garmin Vista CX, with the standard USB cable
Install Wine (as root):
# yum install wine
Make sure that you can access the GPS device. For my installation, the device is /dev/ttyUSB0. I found this by examining /var/log/messages when attaching the device. Check the permissions of the device file, and make sure you have access to it, possibly by adding yourself to the group that owns the device. In my case, I had to add myself to the group uucp. Remember to log out and log back in if you add yourself to a new group.
Now, define the device in Wine. This is done as follows (do this using your normal login, not as root):
$ ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com2
This will define the /dev/ttyUSB0 device as COM2 under Wine.
After that, you simply install the software on the Garmin CD. For example, for City Navigator NT (Europe), using your normal login, do the following:
$ cd /media/CNEURNTV9 $ wine ./Setup.exe
At the end, don't opt to start the program directly. Start it afterward via the command line:
$ wine ~/.wine/drive_c/Garmin/MapSource.exe
Using this procedure, I am able to unlock maps, make routes, upload and download from the GPS unit (via USB) and do software updates.
For more information, see my Web page: www.peterverthez.net/gps/garmin-linux.html.
Tech Tip
When you are hunting for a configuration problem with services like Apache and MySQL, you may have to execute a sequence of commands repeatedly, such as:
/etc/init.d/apache stop /etc/init.d/mysql stop /etc/init.d/mysql start /etc/init.d/apache start
You can create a script to do this, or you can put all the commands on one line separated by semicolons:
/etc/init.d/apache stop; /etc/init.d/mysql stop; \ /etc/init.d/mysql start; /etc/init.d/apache start
However, as you do other things, you sometimes lose “quick” access to the command line in the shell history. To avoid this, “tag” the line with a comment that will make it easy to find:
/etc/init.d/apache stop; /etc/init.d/mysql stop; \ /etc/init.d/mysql start; /etc/init.d/apache start; #apmy
Now, to recall the command, simply do Ctrl-R + apmy, and you should have the command, as long as you've chosen your “tags” wisely.
Today’s modular x86 servers are compute-centric, designed as a least common denominator to support a wide range of IT workloads. Those generic, virtualized IT workloads have much different resource optimization requirements than hyperscale and cloud applications. They have resulted in a “one size fits all” enterprise IT architecture that is not optimized for a specific set of IT workloads, and especially not emerging hyperscale workloads, such as web applications, big data, and object storage. In this report, you will learn how shifting the focus from traditional compute-centric IT architectures to an innovative disaggregated fabric-based architecture can optimize and scale your data center.
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
| 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 |
| Non-Linux FOSS: Seashore | May 10, 2013 |
| Trying to Tame the Tablet | May 08, 2013 |
- RSS Feeds
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- New Products
- Drupal Is a Framework: Why Everyone Needs to Understand This
- A Topic for Discussion - Open Source Feature-Richness?
- Home, My Backup Data Center
- Validate an E-Mail Address with PHP, the Right Way
- Tech Tip: Really Simple HTTP Server with Python
- New Products
- Trying to Tame the Tablet
Enter to Win an Adafruit Prototyping Pi Plate 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 Prototyping Pi Plate 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
- Next winner announced on 5-21-13!
Free Webinar: Linux Backup and Recovery
Most companies incorporate backup procedures for critical data, which can be restored quickly if a loss occurs. However, fewer companies are prepared for catastrophic system failures, in which they lose all data, the entire operating system, applications, settings, patches and more, reducing their system(s) to “bare metal.” After all, before data can be restored to a system, there must be a system to restore it to.
In this one hour webinar, learn how to enhance your existing backup strategies for better disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible bare-metal recovery solution for UNIX and Linux systems.




5 hours 37 min ago
5 hours 59 min ago
6 hours 9 min ago
6 hours 14 min ago
6 hours 44 min ago
9 hours 35 min ago
10 hours 10 min ago
10 hours 11 min ago
10 hours 12 min ago
10 hours 14 min ago