||[Jun. 15th, 2007|04:34 pm]
|||||M83 - Asterick||]|
Well, as a converted ubuntu user, I've discovered there are some not quite so obvious tricks and tips you might need. I'm going to document them as I find them. I'm using 7.04, Feisty Fawn, and I'm assuming you've already installed it. Also, these are not general use tips, I'm assuming you know what root is, or what the "/ directory" refers to.
These are in no particular order by the way.
Finding out how the computer interprets button presses, and other events:
Open up terminal, type in xev and hit enter. A small window should pop up. While your mouse pointer is over the window, information about anything you do, pushing a key, clicking, whatever, will appear in the terminal window. Careful though, any actions you take while xev is running, are cached, and the minute you put your mouse back over the Event Tester window, they'll all be printed out, which could take a very long time.
The location of the packages downloaded with Synaptic:
/var/cache/apt/archives These are useful not only for archival purposes, but also allow for installing programs on computer without an internet connection. Plus, instead of straight away installing, they tell you what they're going to install and where, which is kinda useful.
Creating custom keyboard shortcuts:
For standard ones, like increasing the volume, try using Preferences > Keyboard Shortcuts. For more specialized, get the gconf-editor (sudo apt-get install gconf-editor). Open it (by entering gconf-editor into the terminal) go to Apps > Metacity. Go to global_keybindings, and under run_command_[whatever] enter what you want the keyboard shortcut to be. The syntax is [<Control>/<Alt>][Keystroke] (function keys are denoted by F[1-12]). Also note that if the shortcut is [something]Shift+some letter, you need not enter in [something]<Shift>[undercase letter] but rather, [something][Uppercase Letter]. Now, go to keybinding_commands, and enter the command you want to use in the corresponding command_[number].
Setting the root password:
The root password is not set by you when ubuntu is installed, which means you can't use su (which logs you into the terminal as root). To set it, use sudo passwd, with no other arguments, and set the password of your choice. Now you can log in using su, but you can't login to the Gnome interface at the login screen.
Playing m4a files encoded with AAC in Rhythmbox:
Go into the add/remove programs program, not Synaptic, and search for gstreamer. Download anything with the words Gstreamer and plugin in the title. Open up Rhythmbox. It should work. If it doesn't, open up the audio file with Totem movie player, and let it search for and download as many plugins as it needs until it plays the file. (This will NOT let you play m4p files).
Installing programs from .bin files:
Open up the terminal and type in sudo chmod a+x [path (if in another directory besides the current working directory) and filename]. Then type in the filename and path (if applicable) and follow the install instructions from there.
Getting a file browser with root privileges:
gksudo nautilus (this only works for about 15 minutes due to power user expiration) I recommend creating a launcher on your desktop that executes this command, see below for how.
Displaying unicode file names on ntfs drives:
First, dismount your ntfs drive with sudo umount /dev/[whatever]. Then type in "gksudo gedit /etc/fstab". On the line for the ntfs drive, erase where it says default, and instead put in "nls=utf8,iocharset=utf8." Save and exit the text editor, then type in sudo mount -a (which mounts any drives not mounted at the time in fstab). It should now work.
Creating a batch file:
Create a blank text document. Type in whatever commands you want. Save it wherever. Then, in the terminal type sudo chmod a+x [whereever and whatever you saved it as]. Double clicking on the text file should have a dialogue pop up asking you if you want to execute or display the contents. Select display.
Configuration/program resource file locations:
They're actually all over the place. Pretty consistently I've found them in shared between /usr/lib/ and /usr/share/lib in the folder of the program name. Failing that, try looking in /etc (Firefox is here).
Finding out why a program didn't run when you opened it from the menu:
Try running it from the terminal, if there is something wrong, you should see why (assuming the error message makes sense). For instance, for Rhythmbox type in rhythmbox. For programs with more than one word in their names, open up the Add/Remove Programs program, find the program in question, and scroll down past the description; after the version number, in parantheses, should be the name to type in in the terminal.
Getting advanced terminal command syntax and other help:
Type in man [command].
Making an advanced program launcher:
If you want to make your own launcher that uses command line arguments, or want to make a launcher for something that's not necessarily a program, go to your desktop. Right click, and click on create launcher. Type in the name you want, and then, under command enter in whatever it is you want. I would recommend creating a launcher that runs the command "gksudo nautilus" as going to the termianl everytime you want to delete something from a protected folder is kinda annoying. For the icon, if you can't find what you want in the automatic icon selection, you can try to find icon info on your own. Or you can convert a png you have to the icon format with GIMP (the format is .xpm). To create a launcher that executes multiple commands, create a batch file (see above for how) somewhere where its not on your desktop (or on your desktop, whatever) and point the launcher to that batch file.
Alright, I'm tired. That's all for now.