Grub 2: General Information Linked

October 23, 2009

Grub2


Fix: “Failed to Parse” xorg.conf error while Saving Nvidia-Settings

October 15, 2009

Testing with Karmic Beta (shouldn’t matter):

1) open a terminal
2) sudo mv -i /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
2) sudo touch /etc/X11/xorg.conf
3) sudo nvidia-settings
4) hit "save configuration"

This will result in blank xorg.conf file (DON’T RESTART X!!) Now copy ONLY the “Device” section from the backup to the new conf, since that is what it said was required after an ensuing error that you can avoid like this: (Mine was as follows)

Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
EndSection

I put this little Fix together, so you the reader won’t have to jump from thread to thread to thread like I did to put it all together. Ridiculous…someone’s got to be doing this besides me.

If you only learn one thing as a user, master your xorg.conf file in X and at the console. If you can’t get into X, and you’re an average ‘user’, you’re done for unless. Don’t ask how I know 🙂


Running Sudo Graphically

October 13, 2009

For your edification, taken verbatim from Pyschocats for your viewing pleasure:

What’s the Issue?
Since most Ubuntu documentation asks you to use sudo even with graphical applications, I often get asked by Ubuntu users why I recommend gksudo or kdesu for graphical applications instead of sudo.

For example, a lot of guides (including the first book ever published about Ubuntu) will ask you to type this sort of command:
sudo gedit /etc/apt/sources.list

I will always recommend, however, that people use instead this sort of command:
gksudo gedit /etc/apt/sources.list

And reserve sudo for command-line applications, like so:
sudo nano /etc/apt/sources.list

Why is it an issue?
Well, to be perfectly honest, most of the time it isn’t. For a lot of applications, you can run them the improper way—using sudo for graphical applications and see no adverse side effects.

1. There are other times, though, when side effects can be as mild as Firefox extensions not sticking or as extreme as as not being able to log in any more because the permissions on your .ICEauthority changed. You can read a full discussion on the issue here.

These errors occur because sometimes when sudo launches an application, it launches with root privileges but uses the user’s configuration file.

gksudofirefox

For example, if you launch Firefox with the command
gksudo firefox
it uses root’s Firefox configuration file.

sudofirefox

But if you launch Firefox with the command
sudo firefox
it runs with root privileges but uses the user’s configuration file (in this case, you can see the homepage and theme are different).

2. Running graphical applications with sudo also has the downside of always having to be run from the terminal. If you don’t use the proper command—gksudo or kdesu, you will not be able to use the command as an icon launcher or keyboard shortcut because there will be no graphical dialogue box to enter your sudo password in.

3. There are also some graphical applications that simply will not run with the sudo command. Kate, for example, can be run as
kdesu kate
but cannot be run as
sudo kate

Why not make exceptions?
Bottom line: most of the time when you use sudo for graphical applications, it’s fine. Some of the time, though, it is not fine, and is, in fact, extremely bad.

If you made exceptions, you would have to give people a list of all the graphical applications that are okay to run as sudo and a list of all the graphical applications that must be run as gksudo or kdesu.

Why make a list that needs to be compiled and updated, that most people won’t refer to, and that is completely unnecessary? Just be consistent in suggesting good practice: gksudo and kdesu for graphical applications. sudo for command-line applications.

But gksudo sometimes gives me an error… even though it appears to work…
You may notice that even though gksudo is the proper way to launch graphical applications, if you launch a gksudo application it will sometimes give you what appears to be an error. This, for example:
(gedit:####): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.

That is not a real error, and there’s already been a bug report filed on the message appearing. The developers have seen the bug and labeled it a low priority. In the meantime, just ignore the message and keep encouraging people to not use sudo for graphical applications so they won’t potentially mess up their ~/.ICEauthority and other user configuration files.


HowTo: Cleaning up all those unnecessary junk files

October 7, 2009

from Ubuntu Forums:

Hello everyone! So, do you ever get the feeling that your system is being flooded with a bunch of junk files that you can’t get rid of? I know I do. Well, I’m going to show you a few ways to get rid of most, if not all, of those annoying junk files.

Please note : If doing any of this messes up your system, don’t blame me. Everything worked flawlessly on my machine. Everthing should be beer ‘n skittles for you if you follow this HOWTO step-by-step. Good luck!

================================================== ================================================== ====================

Tip #1 – Getting rid of Residual Config packages – In Synaptic Package Manger, there is a built-in feature that gets rid of old Residual Config packages. Residual Config packages are usually dependency packages that are left behind after you uninstall a package from your machine. To use this feature, go to System > Administration > Synaptic Package Manager. On the bottom left hand corner of the window, click the Status button. In the list above the Sections, Status, Search, and Custom buttons, you should see the following text:

Quote:
Installed
Installed (local or obsolete)
Not installed
Residual config
Click on the “Residual config” text. (If the “Residual config dialogue does not appear, that means you do not have any Residual Config packages on your machine and you can skip down to Tip #2.) Do you see the packages that popped up in the window on the right? Those are the Residual Config packages. To get rid of these pests, click on the box to the left of the package name and select “Mark for Complete Removal”. After you have done that for all of the Residual Config packages, look at the top of the Synaptic Package Manger window. Do you see the green check mark with the text “Apply” right under it? Click that button, and you’ll flush all those Residual Config packages down the toilet!

================================================== ================================================== ====================

Tip #2 – Getting rid of partial packages – This is yet another built-in feature, but this time it is not used in Synaptic Package Manager. It is used in the Terminal. To access the Terminal, go to Applications > Accessories > Terminal. Now, in the Terminal, key in the following command (or you can just copy and paste from here):

Code:

sudo apt-get autoclean

Enter your password when prompted and press Enter. See the package names that appeared in the Terminal? Those were partial packages that have just been deleted. Say goodbye! That’s it! This command deletes the not-so-fully-downloaded packages that you acquire when a package that is being downloaded is suddenly cancelled. This is my favorite little trick when it comes to getting rid of junk files.


Epson Flatbed Scanner, 64 bit Ubuntu Drivers

October 1, 2009

I just bought an Epson V500 photo flatbed scanner….works great with Ubuntu x64….the 64 bit drivers in .deb pkgs can be scored here (click the ‘English’ button, then scroll to the bottom and pick your epson scanner):

http://www.avasys.jp/lx-bin2/linux_e/scan/DL1.do

install both debs, in the order listed:

DEB 64bit package [libltdl7] (for Ubuntu 8.10 or later)

iscan_2.21.0-6.ltdl7_amd64.deb
iscan-plugin-gt-x770_2.1.1-2_amd64.deb

A scanner program, Image Scan!, will show under Graphics in your gnome menu; launch it and scan away !