<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; linux tips</title> <atom:link href="http://www.ghacks.net/tag/linux-tips/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 09:52:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Before Dual Booting: What you Need to Know</title><link>http://www.ghacks.net/2012/01/06/before-dual-booting-what-you-need-to-know/</link> <comments>http://www.ghacks.net/2012/01/06/before-dual-booting-what-you-need-to-know/#comments</comments> <pubDate>Fri, 06 Jan 2012 09:05:29 +0000</pubDate> <dc:creator>Melanie Gross</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[dual booting]]></category> <category><![CDATA[linux tips]]></category> <category><![CDATA[windows tips]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=55450</guid> <description><![CDATA[The topic of dual booting operating systems has been covered in a few ways on this site, but here is a primer to provide you with some important information before attempting any dual boot. More users today are becoming aware of how useful and practical the Linux operating system is, in all its shapes and [...]]]></description> <content:encoded><![CDATA[<p>The topic of dual booting operating systems has been <a
href="http://www.ghacks.net/2008/12/14/how-to-dual-boot-windows-vista-and-linux/">covered</a> <a
href="http://www.ghacks.net/2011/10/01/your-pc-doesn%E2%80%99t-support-virtualization-dual-boot-windows-7-and-windows-8/">in a few</a> <a
href="http://www.ghacks.net/2009/07/11/setting-up-a-dual-boot-%E2%80%93-just-the-tutorial-to-help/">ways</a> on this site, but here is a primer to provide you with some important information before attempting any dual boot.  More users today are becoming aware of how useful and practical the Linux operating system is, in all its shapes and sizes.  If there is any dual-boot that you want to have, it would definitely be along the lines of Windows 7, 8, or Vista with Ubuntu, Fedora, or Debian Linux operating systems.  Ubuntu seems to be the most popular and it is an excellent operating system, in this user’s opinion.  All this being stated, before you dual boot any operating system, you absolutely must prepare yourself!  This is not a how-to on dual booting Ubuntu and Windows; it is a warning that you should carefully study all of the ins and outs about the process before proceeding.</p><p><a
href="http://www.ghacks.net/wp-content/uploads/2012/01/ubuntu-linux.jpg"><img
src="http://www.ghacks.net/wp-content/uploads/2012/01/ubuntu-linux.jpg" alt="ubuntu linux" title="ubuntu linux" width="272" height="185" class="alignnone size-full wp-image-55451" /></a></p><p>For example, when you are dual booting any Linux operating system such as Ubuntu, the very first thing that you need to be aware of is that the Linux Grub will overwrite your Master Boot Record (MBR).  This will mean that you will be able to boot your new Linux operating system in a hard drive partition, but you will probably not be able to boot back into Windows thereafter.</p><p>Rather than spend a day pulling your hair out trying to look for a solution, find a good guide on dual booting Ubuntu with Windows before you get started. <a
href="https://help.ubuntu.com/community/DualBoot/WindowsFirst">This is an</a> Ubuntu guide on the topic that happens to be immensely helpful and there are plenty of other links on the site to assist, should you run into any problems.</p><p>To get to the point, the very first thing you must do before dual booting Linux alongside Windows is backup your operating system.  Don’t just backup the files and folders; backup the entire system on an external hard drive.  If you put it on a partition and you are unable to access the partition after the dual boot, you are out of luck.  It seems obvious, but always backup your system to removable devices or an FTP server.  The advantage of having the external hard drive is that you have something tangible in your hands that you can restore your system with.</p><p>Secondly, create a system repair disk or buy one.  If you have your Windows installation disk, that would be best, but the repair disk will be sufficient to get you into the recovery environment so that you can have a DOS prompt to work from in order to restore your MBR.  As long as you have the full system backup and the repair disk, you have a parachute if you mess up the operation.  Understand that Linux has a completely different language than DOS and the GNU Grub is not something to be messing with unless you know exactly what you are doing.</p><p>Make sure that you partition your hard drive properly before dual booting.  DO NOT boot Linux onto the same partition on which you have installed Windows.  That just about covers it.</p><p>Once you have an effective dual boot of Windows and Linux, you will be rather pleased with yourself and you get to enjoy the benefits of both operating systems.  Also, a dual boot is much faster and more efficient than a virtual machine.  Enjoy a safe dual boot.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2012/01/06/before-dual-booting-what-you-need-to-know/feed/</wfw:commentRss> <slash:comments>16</slash:comments> </item> <item><title>How to Add Keyboard Input Languages to Ubuntu</title><link>http://www.ghacks.net/2011/09/29/how-to-add-keyboard-input-languages-to-ubuntu/</link> <comments>http://www.ghacks.net/2011/09/29/how-to-add-keyboard-input-languages-to-ubuntu/#comments</comments> <pubDate>Thu, 29 Sep 2011 06:52:26 +0000</pubDate> <dc:creator>Melanie Gross</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[keyboard]]></category> <category><![CDATA[keyboard languages]]></category> <category><![CDATA[linux tips]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=50923</guid> <description><![CDATA[It is easy to type in multiple languages in Ubuntu. This tutorial will guide you through the simple steps to adding keyboard languages to Ubuntu and show you how to modify the settings for keyboard shortcuts to toggle between languages. You can switch between different keyboard layouts, preview and print the layouts, and alter settings [...]]]></description> <content:encoded><![CDATA[<p>It is easy to type in multiple languages in Ubuntu.  This tutorial will guide you through the simple steps to adding keyboard languages to Ubuntu and show you how to modify the settings for keyboard shortcuts to toggle between languages.  You can switch between different keyboard layouts, preview and print the layouts, and alter settings at any time.<br
/> To add keyboard languages in Ubuntu, click on “System” and this will open the System menu.  Select “Preferences” and then “Keyboard”.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/09/ubuntu-keyboards.jpg" alt="ubuntu keyboards" title="ubuntu keyboards" width="600" height="308" class="alignnone size-full wp-image-50924" /></p><p>This opens the Keyboard Preferences dialog in which you can select different language layouts.  Click the “Layouts” tab and then click “Add”.</p><p>Now the Layout dialog box opens.  Scroll through the various different countries and variants to select the desired language layout that you want to set.  Keep in mind that you can set multiple languages and the default will not be lost.  In this demonstration, we are selecting basic German for the keyboard layout.  Select by country to choose any language and then select any applicable variant.  Certain countries, such as the United States, can display several different languages.  When your selections have been made, click Add and you are able to preview the keyboard layout for that language setting.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/09/keyboard-language.png" alt="keyboard language" title="keyboard language" width="600" height="349" class="alignnone size-full wp-image-50925" /></p><p>You are also able to set the layout by language and set a variant.  When you have completed your selections, click Add.</p><p>In this case, the keyboard language was set both by country and by language.  You can do either one, but the layout may vary somewhat if you do not set by country and by language.  This is something you will have to experiment with, as the settings will be different for each country and language.  Always view the preview to be sure that it is what you are looking for or at least close to what you are looking for.</p><p>Notice that we now have two languages displayed in the Keyboard Preferences.  Both are immediately usable and you can add additional languages or simply close the dialog.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/09/keyboard-preferences.png" alt="keyboard preferences" title="keyboard preferences" width="586" height="534" class="alignnone size-full wp-image-50926" /></p><p>Now that multiple languages have been installed, a new icon will be displayed in the System tray.   This will be located in the upper-right portion of the screen.  An abbreviation of the country for which the keyboard is set is shown here.  Click on the icon to reveal the list of languages and to change languages.  You may also access Keyboard Preferences here to add more languages.</p><p>Click on “Show Current Layout” to preview the keyboard layout for a selected language.  Here, the language was switched to German and we get a layout preview.</p><p>You can print this layout easily from this screen.  At the bottom-right you will see the Print button.  Click Print and you have an easy reference to keep beside your keyboard for reference.</p><p>To change keyboard shortcuts for switching languages, open the keyboard preferences dialog and click the “Layouts” tab.  Now chose the keyboard shortcuts to switch between input languages.  For example, check the box next to “Alt+Shift” and this will be the shortcut to change keyboard languages.  Choose the shortcut that is most convenient for you.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/09/keyboard-shortcuts.png" alt="keyboard shortcuts" title="keyboard shortcuts" width="587" height="530" class="alignnone size-full wp-image-50927" /></p><p>There are other options in Keyboard Preferences to customize keyboard settings, should you desire to experiment with these.  This covers the basics for adding keyboard languages to Ubuntu.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/09/29/how-to-add-keyboard-input-languages-to-ubuntu/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>How to Customize Extra Mouse Buttons in Linux</title><link>http://www.ghacks.net/2011/06/28/how-to-customize-extra-mouse-buttons-in-linux/</link> <comments>http://www.ghacks.net/2011/06/28/how-to-customize-extra-mouse-buttons-in-linux/#comments</comments> <pubDate>Tue, 28 Jun 2011 08:01:40 +0000</pubDate> <dc:creator>Ryan D. Lang</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[linux tips]]></category> <category><![CDATA[mouse]]></category> <category><![CDATA[mouse button]]></category> <category><![CDATA[ubuntu]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=47048</guid> <description><![CDATA[If you are using a mouse, trackball, or touchpad with extra buttons in Windows, chances are the manufacturer has created software to configure the buttons. Rarely do they create such software for Linux. Btnx (button x) can be used to configure the mouse buttons in Linux for a variety of pointing devices. With a three [...]]]></description> <content:encoded><![CDATA[<p>If you are using a mouse, trackball, or touchpad with extra buttons in Windows, chances are the manufacturer has created software to configure the buttons.  Rarely do they create such software for Linux.  Btnx (button x) can be used to configure the mouse buttons in Linux for a variety of pointing devices.</p><p>With a three button mouse, typically people keep the default settings.  With a five button mouse, the extra two buttons often go unused.  The default is that they typically are used to go back and forward in web browsers and file managers.  This is not as handy in other programs.  Other functions might be more useful; the user should decided what they need.  For example, I would rather use the extra buttons to copy and paste text. Enter btnx.</p><p><strong>Using Btnx</strong></p><p>To install btnx, search for it in Ubuntu&#8217;s Software Center (found in the Application menu).  Alternatively, you can install it from the command line.</p><p><em>sudo apt-get install btnx</em></p><p>Now you can access btnx from:</p><p><em>Applications &gt; System Tools &gt; btnx</em></p><p>This will bring up a GUI dialog box for you to configure you mouse.  From here, click &#8220;Detect mouse &#038; buttons&#8221; and follow the steps.  It will have you test your mouse and label the buttons.  Don&#8217;t forget to add your scroll wheel.  It is an extra step compared to manufacturers&#8217; software, but it only takes a minute or two.  Next, click on the &#8220;Buttons&#8221; tab to configure what each button does.  Usually, it is the extra mouse buttons that are the best to customize, but any can be changed.</p><p>In this case, I set the keycode on &#8220;Button-1&#8243; (named by me) to &#8220;C&#8221; and the modifier to &#8220;Ctrl.&#8221;  Since this is just a case of simulating &#8220;ctrl+c&#8221; to copy something, left or right control keys are irrelevant.  Naturally, I set the &#8220;Button-2&#8243; as &#8220;ctrl-v&#8221; for paste.  Page Up &#038; Page Down would also make sense.  Options are not limited to key combinations.  Programs and other buttons can be set as well.  A wide array of functions are available for someone to choose from.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/06/extra-mouse-buttons-linux.png" alt="extra mouse buttons linux" title="extra mouse buttons linux" width="508" height="346" class="alignnone size-full wp-image-47049" /></p><p>Make sure to click the &#8220;Enabled&#8221; check box.  To apply the changes, restart btnx from the &#8220;Configurations&#8221; tab.  If a change does not seem to be taking place, try restarting btnx or your computer.</p><p>Note: The homepage and the help files were not available.  For clarification and program details, use the <a
href="http://web.archive.org/web/20090331224552/http://www.ollisalonen.com/btnx/man/">man pages</a> from the Wayback Machine.</p><p><strong>Problems and Issues</strong></p><p>In tests, while the remapping worked, a curious side effect evolved: the buttons now work as both copy &#038; paste and forward &#038; back.  This made them useless in websites.  Further research lead to a fix: <a
href="https://wiki.ubuntu.com/X/Config/Input">xinput</a>.  The program will let you swap or disable mouse buttons, among other things.  It should come with Ubuntu and other types of Linux, but it can be installed from the terminal:</p><p><em>sudo apt-get install xinput</em></p><p>Once installed, you need to use it to list and show devices:</p><p><em>xinput list</em></p><p>You should see your pointing device listed.  Look for your manufacturer&#8217;s name.  If the name appears twice, then you need to use the &#8220;id&#8221; number in place of the name.  Once you have found this information, you can disable the extra button functionality with the following line:</p><p><em>xinput set-button-map &#8220;Your mouse name&#8221; 1 2 3 4 5 6 7 0 0</em></p><p>Now, your mouse should work as intended.  Btnx will still know you are pressing the buttons, so the remap will still work.  If you have problems, try running through &#8220;Detect mouse &#038; buttons&#8221; again to make sure they were set correctly.  Note: You may have to do this each time you customize the buttons.</p><p><strong>Closing</strong></p><p>It took some time to find the answers, but I now have perfectly functional copy &#038; paste buttons on my trackball.  These solutions where found in the forums at <a
href="http://ubuntuforums.org/showthread.php?t=781821">ubuntuforums</a> and <a
href="http://pinoygeek.org/forum/index.php?topic=881.0">pinoygeek</a>.  With luck, you will not have the problems that I ran into.  If you do, I hope this article saves you the trouble of having to research the solution.  Please feel free to share how you remap your mouse in the comments.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/06/28/how-to-customize-extra-mouse-buttons-in-linux/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Give Yourself The Proper Linux Privileges on Your New Machine</title><link>http://www.ghacks.net/2011/06/15/give-yourself-the-proper-linux-privileges-on-your-new-machine/</link> <comments>http://www.ghacks.net/2011/06/15/give-yourself-the-proper-linux-privileges-on-your-new-machine/#comments</comments> <pubDate>Wed, 15 Jun 2011 06:51:21 +0000</pubDate> <dc:creator>Melanie Gross</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[linux tips]]></category> <category><![CDATA[sudo]]></category> <category><![CDATA[sudoer]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=46485</guid> <description><![CDATA[For many of us, the days following the fresh install of a new Linux distribution are like starting your life over. It&#8217;s a time for new beginning – new choices for programs, new configurations, new icons. You have a clean slate, and it&#8217;s time to explore the possibilities the unknown distro brings with it. Naturally, [...]]]></description> <content:encoded><![CDATA[<p>For many of us, the days following the fresh install of a new Linux distribution are like starting your life over.  It&#8217;s a time for new beginning – new choices for programs, new configurations, new icons.  You have a clean slate, and it&#8217;s time to explore the possibilities the unknown distro brings with it.</p><p>Naturally, you jump on your computer, open up a terminal window, and start throwing out sudo apt-get install commands left and right to play with new applications.  But wait:  Error messages start flying back saying that you profile is not included as a sudoer.</p><p>Well, not exactly.  If the first time you attempt to operate as root on a recently installed system and the system spouts back something about your profile not having sufficient privileges to carry out the task, it means that you properly installed the distro.</p><p>The fact is that you (probably) do not want to be operating as supervisor all the time.  It can be dangerous, and far too often it leads to system meltdowns at the worst possible times.  While not having to insert a password before any administrative task can be helpful a lot of the time, using root as a primary account leaves your computer exposed to user stupidity – and plain dumb mistakes happen to the best of us.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/06/sandwich.png" alt="sandwich" title="sandwich" width="360" height="299" class="alignnone size-full wp-image-46487" /></p><p>Ok, so you don&#8217;t want to be root all the time, but you obviously need to be able to carry out administrative tasks from time to time – like when you want to do something as simple as installing a new program.  So how do you add your profile to the sudoer file?</p><p>It&#8217;s actually very easy.  First, open up a terminal window (probably the one that yelled at you for having insufficient privileges in the first place).  For this tutorial let&#8217;s pretend your username is alpha, so every time you see alpha substitute in your general user profile.  Go ahead and type is “su” on the first line and hit enter.  You will be prompted for your password – go ahead and supply it.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/06/linux-console.png" alt="linux console" title="linux console" width="391" height="270" class="alignnone size-full wp-image-46486" /></p><p>Next, you need to give yourself permission to edit the sudoers file.  Type</p><li>chmod +w /etc/sudoers</li><p>Then click enter again.  Now you can go in and add yourself to the list.  Type</p><li>echo &#8216;alpha ALL=(ALL)&#8217; >> /ect/sudoers</li><p>And then go ahead and click enter again.  Congratulations, you&#8217;re now on the list.  Before we leave, we want to reset the permissions of the sudoer file by typing</p><p><code>chmod -w /etc/sudoers</code></p><p>Click enter again, type “exit”, press enter again, and then type “exit” one more time to leave the terminal window.  And that&#8217;s it!  Your profile has now been added to the list of those with administrative privileges.</p><p>While it is not a difficult procedure, it is one that is easily forgotten.  Once you have given yourself sudo privileges you <a
href="http://www.ghacks.net/2010/01/06/how-to-add-users-to-etcsudoers/">can give them</a> to <a
href="http://www.ghacks.net/2009/06/24/give-users-specific-access-with-sudo/">other Linux users</a> as well, whether you have multiple profiles set up for other users on your computer or even different profiles for different tasks.</p><p><strong>Update:</strong></p><p>Edit: A number of people have responded to this post raising very justified concerns about configuring sudo in this manner. While it is perfectly safe if you are careful about every change you make, a mistake in configuring sudo can lead to bad problems down the line. As a safeguard, many people prefer editing the sudo file through the visudo command, which, if sudo has not yet been configured, must be accessed when logged in as root. To do so, login as root, open a terminal and type:</p><p><code>visudo</code></p><p>At the bottom of the new series of characters is a line that reads:</p><p>#<code>includedir /etc/sudoers.d</code></p><p>To enable a user full access to sudo, simply type:</p><li>“insertusernamewithoutquotes” ALL=(ALL) ALL</li><p>Press Ctrl+X to exit the program and click Y to save a backup buffer file on your way out just in case things go wrong.</p><p>Two ways to address the same problem – This method simply provides a failsafe.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/06/15/give-yourself-the-proper-linux-privileges-on-your-new-machine/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Fix Bootloaders After Dual Boot Installation</title><link>http://www.ghacks.net/2011/06/13/fix-bootloaders-after-dual-boot-installation/</link> <comments>http://www.ghacks.net/2011/06/13/fix-bootloaders-after-dual-boot-installation/#comments</comments> <pubDate>Mon, 13 Jun 2011 08:51:23 +0000</pubDate> <dc:creator>Melanie Gross</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[bootloader]]></category> <category><![CDATA[bootmenu]]></category> <category><![CDATA[dual-boot]]></category> <category><![CDATA[linux tips]]></category> <category><![CDATA[windows tips]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=46398</guid> <description><![CDATA[Installing a second operating system on your computer can be a great way to drastically increase the number of things you can do on it. It’s no big secret that many of the programs you can run on Windows cannot be run on any other operating system. By the same token, with the recent explosion [...]]]></description> <content:encoded><![CDATA[<p>Installing a second operating system on your computer can be a great way to drastically increase the number of things you can do on it.  It’s no big secret that many of the programs you can run on Windows cannot be run on any other operating system.  By the same token, with the recent explosion in consumer interest in user friendly Linux distributions like Ubuntu, developers are looking even closer at the platform, and the number of Linux-only programs is on the rise.  There are other reasons to want a foot on both sides of the line – certain programs run faster on certain operating systems, programming and developing works differently in different OSs, and the list goes on.</p><p>So let’s assume that you read up on dual booting, chose a second operating system that extended your computing capabilities, and pulled the trigger.  Congratulations!  Your system now has the potential to carry you much further, and your software options are incredible.  You spend some time enjoying the new operating system, customizing it, choosing new programs, and after some time, decide you want to hop back onto your old system.  You close everything up, tell your system to reboot and… it jumps right back into the new operating system without asking where you wanted it to go.</p><p>This frustrating scenario is not at all unfamiliar to those who decide to dual boot.  Fortunately, there is a solution for nearly every possible configuration and installation order between Windows and Linux versions and distributions.  This how-to will help you get the bootmenu for each possible option back, giving you access to the original operating system if it is accidentally blocked out by the second OS.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/06/bootloader.png" alt="bootloader" title="bootloader" width="554" height="148" class="alignnone size-full wp-image-46399" /></p><p>The process does require you to have a physical copy of an installation disk for whichever operating system you are trying to get access to.  If you installed Ubuntu as your second operating system and it blocked you from Vista, you need a Vista disk.  If, for some reason, you installed XP and lost Ubuntu, you will need an Ubuntu installation disk for the specific release you are trying to get to.</p><p>Also, this how-to looks specifically at how to restore access to Ubuntu and may not be universally applicable to Linux distributions.  It should, however, serve as a solid starting point, and many other distros follow the same process.</p><p>The most common scenario, restoring Windows Vista or 7, is one of the easiest.  Run the installation CD at startup, and after the location options select Repair Your Computer.  Unselect your installation if the system locates it, and then open Command Prompt.  Type in:</p><p><code>bootrec.exe /fixboot</code></p><p>Press enter, then type:</p><p><code>bootrec.exe /fixmbr</code></p><p>Close all windows, do a restart, and your Vista/7 bootloader should appear.</p><p>Those restoring XP have it even easier.  Insert the install CD, allow it to proceed, then type r when it asks if you are repairing rather than installing.  This brings up a command line, in which you should type, pressing enter between lines:</p><p><code>fixboot<br
/> fixmbr<br
/> exit</code></p><p>Finally, those restoring Ubuntu or a similar Linux system need to start by identifying the drive their system is installed on.  From the terminal on an install disk, type:</p><li>sudo fdisk –l</li><p>From the information that this calls, identify the drive that holds the Linux system, such as /dev/sda2.  Next, substituting in your own drive in place of sda2:</p><p><code>sudo mkdir /media/sda2<br
/> sudo mount /dev/sda2 /media/sda2<br
/> sudo grub-install –root-director=/media/sda2 /dev/sda</code></p><p>While not comprehensive enough to cover absolutely every possible configuration you may have, these simple steps can help most people get back their original bootloader.  If you follow these steps and find you lose the loader from the second operating system, just follow the same steps for the second.  Good luck!</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/06/13/fix-bootloaders-after-dual-boot-installation/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Sync Apple Devices To Your Linux System</title><link>http://www.ghacks.net/2011/06/08/sync-apple-devices-to-your-linux-system/</link> <comments>http://www.ghacks.net/2011/06/08/sync-apple-devices-to-your-linux-system/#comments</comments> <pubDate>Wed, 08 Jun 2011 12:58:57 +0000</pubDate> <dc:creator>Melanie Gross</dc:creator> <category><![CDATA[Apple]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[apple]]></category> <category><![CDATA[ideviceinstaller]]></category> <category><![CDATA[ipad]]></category> <category><![CDATA[iPhone]]></category> <category><![CDATA[itunes]]></category> <category><![CDATA[linux tips]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=46218</guid> <description><![CDATA[Experienced users of handheld products know that in order to protect your data and applications it is important to sync apps frequently with a primary machine. Unfortunately, this is often easier said than done for Linux users. While many devices are able to sync without much manipulation on your part, Apple products tend to cause [...]]]></description> <content:encoded><![CDATA[<p>Experienced users of handheld products know that in order to protect your data and applications it is important to sync apps frequently with a primary machine.  Unfortunately, this is often easier said than done for Linux users.  While many devices are able to sync without much manipulation on your part, Apple products tend to cause more headaches.</p><p>There are various workarounds for this problem, but most are hit and miss.  There is no one size fits all solution to this problem, but there is one series of changes that works for many Linux users.  It builds up to the installation of a program called “ideviceinstaller,” and it works for about 90% of users.  If you are frustrated with your iPod/iPad/iPhone and really just want to back things up, it&#8217;s probably worth a try.</p><p>First, download all the little helpers that you might need along the way.  Open up a terminal window and type in the following list:</p><p><code>sudo apt-get install libtool automake autoconf  libplist-dev libplist++-dev libplist++1 libzip-dev libclutter-1.0-dev libclutter-gtk-0.10-dev libusbmuxd-dev libglib2.0-dev libgnutls-dev git-core swig intltool build-essential python-dev</code></p><p>That should update your system with almost everything you might need to start installing the programs necessary to get your devices identifying and syncing up with your computer.  Next you need to download and install the latest version of a program called “libimobiledevice” which will enable ideviceinstaller to work properly when you install it later.  Unlike the last piece of text you inserted into the terminal, take these one line at a time, and make sure your system has finished the process before stepping forward to the next.  Again in the terminal:</p><p><code>cd ~/Downloads<br
/> wget http://www.libimobiledevice.org/downloads/libimobiledevice-1.0.1.tar.bz2<br
/> tar xvjf libimobiledevice-1.0.1.tar.bz2<br
/> cd ~/Downloads/libimobiledevice-1.0.1<br
/> ./configure<br
/> make<br
/> sudo make install</code></p><p>You now have almost everything that you need to get ideviceinstaller working properly.  But before we install the final auxiliary program, install ideviceinstaller onto your system.  To do so, type the following into your terminal:</p><p><code>git clone git://git.sukimashita.com/ideviceinstaller.git<br
/> cd ideviceinstaller/<br
/> ./autogen.sh<br
/> ./configure<br
/> make<br
/> sudo make install</code></p><p>Now it&#8217;s time for one last installation.  The program “sbmanager” is the final component necessary for everything to run smoothly.  In the terminal, type:</p><p><code>git clone git://git.sukimashita.com/sbmanager.git<br
/> cd sbmanager<br
/> ./autogen.sh<br
/> ./configure<br
/> make<br
/> sudo make install</code></p><p>With any luck, your system should now be ready to take whatever your Apple hand helds can throw at it.  Close out of your terminal, plug in your devices, and see if it works.</p><p>Here are a few of the most important tasks you can do with the program.  To run any of them, simply open your terminal window while your devices are plugged it.</p><blockquote><p>idevicebackup backup ~/backup 		Creates a backup file of your device<br
/> idevicebackup restore ~/backup		Restores your device to its previous backup state<br
/> ideviceinstaller -a [name of application, without brackets]<br
/> Creates an archival copy of an app<br
/> ideviceinstaller -r [name of application, without brackets]<br
/> Restores an app to its previous archived state<br
/> ideviceinstaller -l 				Displays a list of all apps on your Apple device</p></blockquote><p>While most users will be set to go after following these steps, be prepared to spend some time fixing any errors along the way.  The most common is that libimobiledevice.so.1 does not exist.  To fix this, type the following in your terminal:</p><p><code>sudo ln -s /usr/local/lib/libimobiledevice.so.1.0.1 /usr/lib/libimobiledevice.so.1</code></p><p>That should fix 90% of the problems you may encounter in running this how-to.  Have fun and good luck!</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/06/08/sync-apple-devices-to-your-linux-system/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Changing Your Linux Background Automatically</title><link>http://www.ghacks.net/2011/06/05/changing-your-linux-background/</link> <comments>http://www.ghacks.net/2011/06/05/changing-your-linux-background/#comments</comments> <pubDate>Sun, 05 Jun 2011 14:49:45 +0000</pubDate> <dc:creator>Melanie Gross</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[background]]></category> <category><![CDATA[linux background]]></category> <category><![CDATA[linux tips]]></category> <category><![CDATA[wallpaper]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=46081</guid> <description><![CDATA[Compared to Windows and Apple, some people consider Linux distributions to be the most user-friendly, personally customizable operating systems available. They enable you to adjust and tweak pretty much anything you want to. All they require is a basic understanding of the dynamic of Linux. One fun change you can make is customizing your desktop [...]]]></description> <content:encoded><![CDATA[<p>Compared to Windows and Apple, some people consider Linux distributions to be the most user-friendly, personally customizable operating systems available.  They enable you to adjust and tweak pretty much anything you want to.  All they require is a basic understanding of the dynamic of Linux.</p><p>One fun change you can make is customizing your desktop in a pretty unique way – by changing the background image every so often automatically.  While some programs exist to help you with this task, there is absolutely no reason why you cannot do it yourself with a few simple commands.  Before long you can have your entire vacation album scrolling behind your open windows, changing photos every five, ten, or thirty minutes – it&#8217;s entirely up to you.</p><p>To begin, open a terminal window and open a new text file:</p><p><strong>gksu gedit</strong></p><p>You are going to insert a line of commands into this file, which you will later turn into a shell script.  The function of each line is outlined below; you only need to copy and paste the big block of text further down.  The individual explanations are so you can customize the code to fit your needs.</p><p><strong>picsfolder=”/media/documents/photosfordesktop”</strong></p><p>This line points to whatever folder holds the photos you want scrolling in the background.  Be sure to change it to whatever folder holds yours.</p><p><strong>cd $picsfolder</strong></p><p>This changes the current directory to the new folder full of pictures.</p><p><strong>files=(././.jpg)</strong></p><p>This creates an array out of all your photos, allowing them to be mixed up for display later.</p><p><strong>N=${#files[@]}</strong></p><p>This simply identifies the number of pictures in the new array.</p><p><strong>((N=RANDOM%N))</strong></p><p>This chooses a random photo from those you made available.</p><p><strong>randomfile=`echo ${files[$N]} | cut &#8211;characters=”1 2” &#8211;complement`</strong></p><p>This identifies the name of the specific photo chosen.</p><p><strong>Gconfigtool-2 -t str –set /desktop/gnome/background/picture_filename “$picsfolder$randomfile”</strong></p><p>This sets the desktop with your new (temporary) photo as the background.</p><p>Now, take all those commands, put together below, and copy and paste them into the text editor you opened earlier:</p><p><strong>picsfolder=”/media/documents/photosfordesktop”<br
/> cd $picsfolder<br
/> files=(././.jpg)<br
/> N=${#files[@]}<br
/> ((N=RANDOM%N))<br
/> randomfile=`echo ${files[$N]} | cut &#8211;characters=”1 2” &#8211;compliment`<br
/> Gconfigtool-2 -t str –set /desktop/gnome/background/picture_filename “$picsfolder$randomfile”</strong></p><p>Save your text document as /bin/timedwallpaper.sh and exit the text editor.  Everything is ready – now you just need to tell your computer to do it.  For this next part your distribution needs to have “cron” installed, a program which typically comes pre-packaged.  To make sure you have it, type</p><p><strong>sudo apt-get install cron</strong></p><p>Once you have ensured it is installed, type</p><p><strong>crontab -e</strong></p><p>At the bottom start a new line and type</p><p><strong> */5 * * * * timedwallpaper.sh</strong></p><p>This sets the time between pictures at five minutes.  Change the number to whatever you see fit.  Arrow down to the next blank line, and then type</p><p><strong>@reboot timedwallpaper.sh</strong></p><p>After that, press Control+x, then y, and finally enter.  Exit the terminal and you are good to go.  Not only will your script run however often you program it to, it will now reset each time you start your computer as well.  Enjoy the scenery!</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/06/05/changing-your-linux-background/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Integrate the Terminal with the Desktop On Linux</title><link>http://www.ghacks.net/2011/06/04/integrate-the-terminal-with-the-desktop-on-linux/</link> <comments>http://www.ghacks.net/2011/06/04/integrate-the-terminal-with-the-desktop-on-linux/#comments</comments> <pubDate>Sat, 04 Jun 2011 13:10:09 +0000</pubDate> <dc:creator>Melanie Gross</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[desktop]]></category> <category><![CDATA[linux tips]]></category> <category><![CDATA[terminal]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=46008</guid> <description><![CDATA[Over the years there have been all sorts of fun ways to edit one&#8217;s Linux terminal window. In addition to editing all the boring old things like text color and scroll settings, people have edited their headers, terminal behaviors, and even integrated an entire terminal window into their background. Many people are fond of that [...]]]></description> <content:encoded><![CDATA[<p>Over the years there have been all sorts of fun ways to edit one&#8217;s Linux terminal window.  In addition to editing all the boring old things like text color and scroll settings, people have edited their headers, terminal behaviors, and even integrated an entire terminal window into their background.</p><p>Many people are fond of that last one, but it isn&#8217;t really all that easy to do.  Most people employ the help of little programs for things like that, but the software used to embed the terminal is rarely updated to new versions of various distros.</p><p>One, however, has stayed intact, and this tutorial will help you through the process of putting the terminal right where we all need it – on the desktop.</p><p>First of all, you need to create a new Terminal profile that will run under the parameters you will set later.  Open up your Terminal, then go to File, New Profile, type “Transparency” (without the quotes) as the title, and then click Create.</p><p>This creates the profile necessary to continue.  You now need to fix a few settings.  Under Title and Command, change the initial title to Transparency and select Keep Initial Title in the drop down menu.  Select transparent under the Background tab, and set it to be as (you guessed it) transparent as you like. Some people prefer completely clear, but make sure the font color will stand out against your existing desktop background.</p><p>Next you want to download the program that will make all this possible.  In your terminal, type:</p><p><code><strong>sudo apt-get install devilspie</strong></code></p><p>Next, you need to create a configuration file for your profile:</p><p><code><strong>mkdir ~/.devilspie<br
/> gedit ~/.devilspie/Transparency.ds</strong></code></p><p>Then take the following piece of code and pasted it in Transparency.ds:</p><p><code><strong>( if<br
/> ( matches ( window_name ) "Transparency" )<br
/> ( begin<br
/> ( set_workspace 4 )<br
/> ( undecorate )<br
/> ( skip_pager )<br
/> ( skip_tasklist )<br
/> ( geometry "890x694+178+58" )<br
/> ( below )<br
/> ( pin )<br
/> ( println "match" )<br
/> )<br
/> )</strong><br
/> </code></p><p>Almost there!  Now all you need to do is make sure that your computer opens a Terminal window in this manner each time it boots.  Under System Settings open Startup Applications.  First, click add, and under command, type:</p><p><code><strong>devilspie -a</strong></code></p><p>Then click enter.  Click add again, and under command type:</p><p><code><strong>gnome-terminal –window-with-profile=Transparency</strong></code></p><p>That&#8217;s all there is to it.  Reboot your system, and when it comes back up you should find a handy terminal window built right into your desktop, ready to work at whatever you desire.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/06/terminal-desktop.png" alt="terminal-desktop" title="terminal-desktop" width="337" height="197" class="alignnone size-full wp-image-46009" /></p><p>If the configuration listed here does not quite work for you, experiment with the code you pasted in Transparency.ds under “geometry”.  Those are the parameters the system uses to place the box.  Of course, you can always fiddle with the color and transparency settings assigned to the profile by going to the Terminal and clicking on Edit, then Profile Preferences.</p><p>This neat, quick little quick little fix will be of interest to your Linux inclined friends and make Windows users wonder why they can’t do the same thing.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/06/04/integrate-the-terminal-with-the-desktop-on-linux/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>A few Ubuntu 10.04 fixes</title><link>http://www.ghacks.net/2010/07/26/a-few-ubuntu-10-04-fixes/</link> <comments>http://www.ghacks.net/2010/07/26/a-few-ubuntu-10-04-fixes/#comments</comments> <pubDate>Mon, 26 Jul 2010 11:15:05 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[troubleshooting]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[gconf-editor]]></category> <category><![CDATA[grub]]></category> <category><![CDATA[linux tips]]></category> <category><![CDATA[ubuntu]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=28718</guid> <description><![CDATA[Ubuntu 10.04 has been out for a while now&#8230;long enough so that some of the more pestering issues have been finally fixed. But in some cases those issues continue on. What do you do? Some of these issues are hardly noticeable. Some, on the other hand, are fairly annoying. In this article I am going [...]]]></description> <content:encoded><![CDATA[<p>Ubuntu 10.04 has been out for a while now&#8230;long enough so that some of the more pestering issues have been finally fixed. But in some cases those issues continue on. What do you do? Some of these issues are hardly noticeable. Some, on the other hand, are fairly annoying.</p><p>In this article I am going to show you some fixes for the more annoying Ubuntu 10.04 issues. They aren&#8217;t many, but in some cases, for some people, they have been real show stoppers. I hope that&#8217;s not you, but if it is let&#8217;s see if we can remedy what ails you. If a fix for a problem you are having isn&#8217;t listed, contact Ghacks and let us know what issues you are having so we can know what to cover.</p><p><span
id="more-28718"></span><strong>USB devices not mounting</strong></p><p>This has been a problem for anyone that might be using a machine that still contains a floppy disc drive. The problem is the code for the floppy gets in the way of USB devices being about to mount. To get around this (assuming you no longer use your floppy drive) you can disable that floppy drive with the command:</p><p><em>sudo modprobe -r floppy</em></p><p>This command removes the module for the floppy drive from the kernel and keeps it from being loaded. You will need to reboot your machine after you issue this command. You should now see that USB devices will mount. If you decide you need that floppy back you can always issue:</p><p><em>sudo modprobe floppy</em></p><p>to reload the module.</p><p><strong>Move windows controls to right side</strong></p><p>This isn&#8217;t so much a bug as it is a pet peeve of most people. You see, the vast majority of computer users have grown used to having their controls on the upper right side of the window. For some reason, the Ubuntu developers decided to place these controls on the upper left side of the window. If you are like the vast majority you want it back on the right side. To do this all you have to do is follow these steps:</p><ol><li>Open up the gconf-editor tool (issue the command <em>gconf-editor</em>).</li><li>Navigate to <strong>apps &gt; Metacity &gt; general.</strong></li><li>Double click the <em>button_layout </em>key.</li><li>Change the value of this key to <em>menu:maximize,minimize,close.</em></li><li>Click OK and the change will occur immediately.</li></ol><p>You can now close the gconf-editor tool.</p><p><strong>The NVidia graphics black screen install issue</strong></p><p>There have been some cases where using particular NVidia graphics cards have lead to black screens (or out of sync) problems when trying to run the live CD or installing Ubuntu. There is a way around this. Here are the steps:</p><p>At the startup of the installation screen hit F6 and select <em>nomodeset</em> and install as usual.</p><p>Upon first boot (after installation) press the &#8220;e&#8221; key when you see the GRUB bootloader.</p><p>Delete <em>quiet </em>and <em>splash </em>from the boot command and add <em>nomodeset.</em></p><p>Hit &lt;Ctrl&gt;x to save and boot.</p><p>Now, once booted,  you need to add the NVidia proprietary driver by doing the following:</p><ol><li>Click <strong>System &gt; Administration &gt; Hardware Drivers</strong>.</li><li>Select the proprietary driver that is recommended to you.</li><li>Upon completion, reboot your machine and your graphics should look great.</li></ol><p><strong>Final thoughts</strong></p><p>Ubuntu 10.04 is one of the finest OSes to hit the &#8220;shelves&#8221; in a long time, but that doesn&#8217;t mean it is not without flaws. Hopefully these tips have helped you to enjoy this Linux distribution a bit better.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/07/26/a-few-ubuntu-10-04-fixes/feed/</wfw:commentRss> <slash:comments>13</slash:comments> </item> <item><title>A few Ubuntu &#8220;power user&#8221; tips</title><link>http://www.ghacks.net/2010/04/01/a-few-ubuntu-power-user-tips/</link> <comments>http://www.ghacks.net/2010/04/01/a-few-ubuntu-power-user-tips/#comments</comments> <pubDate>Thu, 01 Apr 2010 11:19:18 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Desktop Manager]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[GNOME]]></category> <category><![CDATA[gonf-editor]]></category> <category><![CDATA[linux tips]]></category> <category><![CDATA[ubuntu]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=24099</guid> <description><![CDATA[I thought I would start off the month with a collection of &#8220;power user&#8221; tips I have collected over the years. Some of these are real gems, some of them are just &#8220;been there, done that&#8221;. But all of them are useful. So, without further adieu, let&#8217;s get to the tippage! Global keyboard shortcuts We [...]]]></description> <content:encoded><![CDATA[<p>I thought I would start off the month with a collection of &#8220;power user&#8221; tips I have collected over the years. Some of these are real gems, some of them are just &#8220;been there, done that&#8221;. But all of them are useful.</p><p>So, without further adieu, let&#8217;s get to the tippage!</p><p><span
id="more-24099"></span><strong>Global keyboard shortcuts</strong></p><p>We all know that keeping your fingers on the keyboard makes for much more efficient computing. But did you know you can create global keyboard shortcuts for GNOME? This is done with the help of the <em>gconf-editor</em> tool. Here&#8217;s how it&#8217;s done:</p><ol><li>Hit &lt;Ctrl&gt;F2</li><li>Enter <em>gconf-editor</em> to start up the tool.</li><li>Navigate to <strong>Apps &gt; Metacity &gt; keybinding_commands.<br
/> </strong></li><li>Right-click in the pane that lists all of the entries.</li><li>Scroll until you see a list of <em>command_N </em>Where N is a number from 1-10</li><li>Double click on one of these entries (remember which number you double clicked on).</li><li>In the Value section enter the command you want to use.</li><li>Click OK.</li><li>Navigate to <strong>Apps &gt; Metacity &gt; global_keybindings.</strong></li><li>In the Value field enter the key combination you want to use for that app (for example &lt;Alt&gt;f for firefox).</li><li>Click OK.</li><li>Test out your short cut.</li></ol><p><strong>Remember your state</strong></p><p>Did you know you can have GNOME remember everything you have open when you next log in? This way you can resume working in the same state you were when you left. To do this navigate to <strong>System &gt; Preferences &gt; Startup Applications. </strong>In this new window click on the Options tab and check the box for &#8220;Automatically remember running applications when logging out&#8221;.</p><p>Now the next time you log out and log in, your apps will be there for you.</p><p><strong>Speed up boot time with profiling</strong></p><p>Ubuntu 10.4 has reached the 10 second mark for boot time. But what if yours isn&#8217;t quite reaching that goal? You can speed this up using the profile option. To do this follow these steps:</p><ol><li>At your boot screen press &#8220;e&#8221; (for edit).</li><li>Use your arrow key and move down to the entry beginning with &#8220;kernel&#8221;.</li><li>Press &#8220;e&#8221; again.</li><li>Add &#8220;profile&#8221; (no quotes) at the end of this line.</li><li>Hit Enter.</li><li>Click &#8220;b&#8221; (for boot).</li></ol><p>The firs time you boot with profile it will take a little longer. What this is doing is profiling your boot process so it knows what files are accessed and then sorts them according to how they are stored on your drive. Your next boot should be considerably faster.</p><p><strong>Remove menu delay</strong></p><p>If you are like me, you want menus to pop up instantly. By default there is a slight delay for menus. To change this follow these steps:</p><ol><li>Open up a terminal window.</li><li>Enter nano ~/.gtkrc-2.0</li><li>Add a single line <em>gtk-menu-popup-delay = 0</em></li><li>Save that file</li><li>Log out and log in.</li></ol><p>You should now notice no delay in your menu popup speed.</p><p><strong>Speed it up with no effects</strong></p><p>If you find your GNOME desktop to be a bit sluggish, you might gain some speed by disabling special effects. To do this navigate to <strong>System &gt; Preferences &gt; Appearance. </strong>In this new window click on the Visual Effects tab and select None. This will boost your dekstop performance.</p><p><strong>Final thoughts</strong></p><p>And there you have it. Starting out your April with some &#8220;power user&#8221; tips. I have tons of tips just like this so expect them to be scattered about. Next time we&#8217;ll take a look at some KDE power tips.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/04/01/a-few-ubuntu-power-user-tips/feed/</wfw:commentRss> <slash:comments>14</slash:comments> </item> <item><title>Quick Linux Tips: File Naming</title><link>http://www.ghacks.net/2009/04/12/quick-linux-tips-file-naming/</link> <comments>http://www.ghacks.net/2009/04/12/quick-linux-tips-file-naming/#comments</comments> <pubDate>Sun, 12 Apr 2009 20:11:03 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[file naming]]></category> <category><![CDATA[linux tips]]></category> <category><![CDATA[mv]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2009/04/12/quick-linux-tips-file-naming/</guid> <description><![CDATA[If you are coming from the world of Windows you are pretty much used to naming a file whatever. You could have a file named &#8220;This Is My File And This File Is Called Meh.doc&#8221; In the world of Windows you wouldn&#8217;t have any problem with that file. In the world of Linux you might [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.ghacks.net/wp-content/uploads/2009/04/penguin_small.gif"><img
class="alignleft size-full wp-image-11948" src="http://www.ghacks.net/wp-content/uploads/2009/04/penguin_small.gif" alt="penguin_small" width="100" height="110" /></a>If you are coming from the world of Windows you are pretty much used to naming a file whatever. You could have a file named &#8220;This Is My File And This File Is Called Meh.doc&#8221; In the world of Windows you wouldn&#8217;t have any problem with that file. In the world of Linux you might run across some issues.</p><p>Of course you could open up Nautilus, Dolphin, Thunar or any other file manager tool, double click on that .doc file, and start working on it in your word processor of choice. But what if you wanted (or needed) to move that file via command line? What would you do?</p><p><span
id="more-11949"></span>If you attempted to issue the command:</p><p><em>mv ~/Documents/This Is My File And This File Is Called Meh.doc ~/ </em></p><p>you would see:</p><p><em>mv: cannot stat `This&#8217;: No such file or directory<br
/> mv: cannot stat `Is&#8217;: No such file or directory<br
/> mv: cannot stat `My&#8217;: No such file or directory<br
/> mv: cannot stat `File&#8217;: No such file or directory<br
/> mv: cannot stat `And&#8217;: No such file or directory<br
/> mv: cannot stat `This&#8217;: No such file or directory<br
/> mv: cannot stat `File&#8217;: No such file or directory<br
/> mv: cannot stat `Is&#8217;: No such file or directory<br
/> mv: cannot stat `Called&#8217;: No such file or directory<br
/> mv: cannot stat `Meh.doc&#8217;: No such file or directory</em></p><p>Now if you started typing the command:</p><p>mv ~/Documents/This</p><p>and you hit the Tab key bash would complete the file name, only it would look like:</p><p>This\ Is\ My\ File\ And\ This\ File\ Is\ Called\ Meh.doc</p><p>at which point you could finish typing out the command with sucessful results.</p><p>To avoid this all together, don&#8217;t use spaces in file names when using Linux. If you need to separate words use either a &#8220;-&#8221; or an &#8220;_&#8221; to separate words like so:</p><p>This_Is_My_File_And_This_File_Is_Called_Meh.doc</p><p>Of course the above file name is rather cumbersome. But you get the point.</p><p>No spaces in file names under the Linux operating system.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/04/12/quick-linux-tips-file-naming/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Convert .mp3 files to .wav files in Linux</title><link>http://www.ghacks.net/2008/12/19/convert-mp3-files-to-wav-files-in-linux/</link> <comments>http://www.ghacks.net/2008/12/19/convert-mp3-files-to-wav-files-in-linux/#comments</comments> <pubDate>Fri, 19 Dec 2008 00:59:33 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Music and Video]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[batch conversion]]></category> <category><![CDATA[convert mp3]]></category> <category><![CDATA[linux mp3]]></category> <category><![CDATA[linux tips]]></category> <category><![CDATA[mp3 converter]]></category> <category><![CDATA[mpg123]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=9160</guid> <description><![CDATA[With the popularity of mp3 players, and the frustrations of using DRM-crippled music, it is always nice to be able to rip your own mp3 files. There are plenty of Linux tools to handle this task. But what about the mp3 collection that you want to burn onto a playable CD? Although there are many [...]]]></description> <content:encoded><![CDATA[<p>With the popularity of mp3 players, and the frustrations of using DRM-crippled music, it is always nice to be able to rip your own mp3 files. There are plenty of Linux tools to handle this task. But what about the mp3 collection that you want to burn onto a playable CD? Although there are many CD players that will play mp3 format, not all will. For that you need to have .wav file format on the CD. One tool for this conversion is the command-line  mpg123 utility. The mpg123 command can do a lot of things, one of the things it is best at is conversion. In this article I am going to show you how to install mpg123 and then use it to convert mp3 files to wav files.</p><p><span
id="more-9160"></span>The first thing to do is to get mpg123 installed. This can be done very quickly via command line. One of the following commands will do the trick (depending upon which distribution you use):</p><p><em>apt-get install mpg123</em></p><p><em>urpmi mpg123</em></p><p>If you are using Fedora Core you will most likely have to stop by <a
title="pbone.net" href="http://rpm.pbone.net" target="_blank">rpm.pbone.net</a>, download the correct rpm package and install with the command:</p><p><em>rpm -ivh mpg123-RELEASE_NUMBER.rpm</em></p><p>Where RELEASE_NUMBER is the actual release number you download.</p><p>Once installed you are ready to go.</p><p>With the wav files located in a directory change to that directory to run the command. The format of the command will be:</p><p>mpg123 -w file.wav file.mp3</p><p>The &#8220;-w&#8221; argument tells mpg123 that the output will be in the .wav format. The first file name is the output file name which is user configurable. A word of warning, spaces in file names aren&#8217;t always the best choice in the Linux operating system. If you want to separate words in a file name you can use &#8220;_&#8221; character. So creating a .wav of Rush&#8217;s Tom Sawyer you would do something like:</p><p>mpg123 -w Rush_Tom_Sawyer.wav &#8220;01 &#8211; Tom Sawyer.mp3&#8243;</p><p><strong>Batch Conversion</strong></p><p>What about batch conversion? This requires a bit of shell scripting. Create a Music directory (in modern Linux distributions there should be one in ~/) and dump all of your mp3 files into that directory. Next, create a shell script in your favorite text editor. We&#8217;ll call that script &#8220;batch_conversion&#8221;. The contents of the script might look like:</p><p><em>#!/usr/bin/perl<br
/> </em> <em>my $dir = &#8220;~/Music&#8221;;<br
/> opendir DH, $dir or die &#8220;Can&#8217;t open  $dir: $!&#8221;;<br
/> $count2=1;<br
/> while  ($name = readdir DH) {<br
/> next unless $name =~ /\.mp3$/;<br
/> $wav=&#8221;$count2.wav&#8221;;<br
/> print &#8220;$wav\n&#8221;;<br
/> system &#8220;mpg123 -w $wav \&#8221;$name\&#8221;";<br
/> $count2++;<br
/> }</em></p><p>Once you save the file you have to give it executable permissions with the command <em>chmod u+x batch_conversion</em>. To run the command you will issue (from the directory the new file is located) <em>./batch_conversion</em>. Once you run the file you will have both the mp3 and the wav files located in the <em>~/Music</em> directory.</p><p><strong>Final Thoughts</strong></p><p>Converting mp3 files to wav files for burning audio CDs is a simple process with mpg123. There are gui tools for this job but the command line tools make for much more flexible jobs.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2008/12/19/convert-mp3-files-to-wav-files-in-linux/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Ubuntu Tweaking Guide</title><link>http://www.ghacks.net/2007/03/05/ubuntu-tweaking-guide/</link> <comments>http://www.ghacks.net/2007/03/05/ubuntu-tweaking-guide/#comments</comments> <pubDate>Mon, 05 Mar 2007 14:57:17 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Knowledge]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[linux tips]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[ubuntu tweaking]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2007/03/05/ubuntu-tweaking-guide/</guid> <description><![CDATA[Time has passed since my last article about Ubuntu and I have decided to concentrate more on Linux and Ubuntu because it is a real alternative for Windows Vista. The Ultimate Ubuntu Tweaking Guide is a new user friendly guide that explains how to tweak Ubuntu for a better performance. It is a guide for new users because it explains every step instead of explaining just some and assuming that the user has the experience to get to the point where the explanation starts.]]></description> <content:encoded><![CDATA[<p>Time has passed since my last article about Ubuntu and I have decided to concentrate more on Linux and Ubuntu because it is a real alternative for Windows Vista. The <a
href="http://linuxmonitor.blogspot.com/2007/03/ultimate-ubuntu-performance-tweaking.html" title="ubuntu performance tweaking" target="_blank">Ultimate Ubuntu Tweaking Guide</a> is a new user friendly guide that explains how to tweak Ubuntu for a better performance. It is a guide for new users because it explains every step instead of explaining just some and assuming that the user has the experience to get to the point where the explanation starts.</p><p>So, what can you expect from the ultimate ubuntu tweaking guide ? It starts of by optimizing and compiling the latest kernel, adding support for dual core, hyperthreading and multithreading processors and enabling or disabling services in Ubuntu. Everything is easy to follow and should increase the overall performance of the Linux system.</p><p><span
id="more-1266"></span>It should not be called the ultimate guide but it is nevertheless a nice guide that boosts the system performance of Ubuntu.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2007/03/05/ubuntu-tweaking-guide/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
