Posts

Showing posts with the label linux

An Introduction to Unity Keyboard Shortcuts

Image
Credit: http://www.tuxmachines.org/node/50311 So, a number of people have posted that they don't like the new Unity Desktop interface so much on the new Ubuntu 11.04 . You're reading this guide because you probably are having trouble adjusting to it. I, on the other hand, am starting to find Unity quite an improvement over the so called Ubuntu Classic interface. So, to help you out, here are a couple of tips that will push you along on the path of becoming a Unity fanboy. Observation: The main menu bar for all applications has been shifted into the title bar. This is quite similar to the way the Mac handles things. The currently running application's title bar is hidden in the top bar. To show it, you can either move your mouse over to the top bar or you can press the Alt key. I personally prefer the Alt key as it's a keyboard friendly way of accessing the menu.  Many people have gripes with the left sidebar present in the Unity interface. The primary problem bei...

How to enable Compile and Run for C/C++ files in gedit

Image
I never liked using gedit for programming because it needed extensive customization before it even came close to becoming a programming editor. However, those that are just starting out with linux will feel most at home in gedit. So here is how to enable "Compile and Run" functionality in gedit. 1. Enable the External Tools plugin by going to Edit -> Preferences -> Plugins as shown in the screenshot below 2. Go to Tools -> Manage External Tools and create a new Tool by clicking on the "new" icon near the Help button. 3. Name the new tool "Compile and Run" and press enter 4. In the coding area, paste the following script: #!/bin/sh cd $GEDIT_CURRENT_DOCUMENT_DIR g++ -Wall -g $GEDIT_CURRENT_DOCUMENT_NAME && xterm -e "sh -c './a.out; echo Press enter to quit... && read KEY'" 5. Put in a shortcut key (eg. Ctrl + F5 ) in the shortcut key area 6. Set the save setting to Current Document 7. In the applicab...