Grub 2: General Information Linked

October 23, 2009

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 !


Bitdefender AntiVirus in Ubuntu 9.04 x64

September 30, 2009

Bitdefender is my choice in Windows and Linux….here is a screenshot of it running in Ubuntu 9.04 x64:

Bitdefender AV for Linux


HowTo: Speed up Shared Folder Access Time in VirtualBox with Windows Guest

September 30, 2009

If you are suffered by accessing shared folders too slow, try this:

1. if your vm is running Windows,
2. if your share folder name is like that : “\vboxsvr\<share fodler>”
3. if you install windows in disk c of your vm
4. please modify c:\windows\system32\drivers\etc\hosts
5. modify the line “127.0.0.1 localhost” to “127.0.0.1 localhost vboxsvr”
6. reboot vm, and you can see there’s a lot of improvement.

Made an incredible difference for me.


My current Ubuntu 9.04 x64 Desktop

September 29, 2009


HowTo: Kernel Upgrade (2.6.30-020630) for Ubuntu 9.04 amd64

September 27, 2009

The linux kernel 2.6.30 DEB files can be found at the following website:
Kernels
You have to install 3 files in the ORDER listed:

Code:
linux-headers-2.6.30-020630_2.6.30-020630_all.deb
linux-headers-2.6.30-020630-generic_2.6.30-020630_amd64.deb
linux-image-2.6.30-020630-generic_2.6.30-020630_amd64.deb

When clicking the files you get a choice to install them using gdebi or to save them. Choose install.
There is just one thing: the order in which you install them is important. Don’t panic: when choosing the wrong file first in gdebi it will tell you it is missing some dependences. The right order is the one written above.
When done simply re-boot and you’ll see the new kernel mentioned at the top of the Grub list.

On Ubuntu forums the kernel listed above was recommended as STABLE. I’ve done this myself. You’ll have to recompile the VirtualBox Kernel Module, and VBox will give you the sudo command to do this when you try to launch your VM…..easy. Nvidia will be taken care of automagically.


HowTo: Install Adobe Air on Ubuntu

September 25, 2009

Adobe Technologies released the Linux version of Adobe AIR some weeks ago which brings web applications and widgets to your desktop. Installing new applications on a Linux distribution is always a mystery for newbies so here is a guide that teaches you how to install Adobe AIR on Ubuntu.

  1. Open the Terminal
  2. Download the file from here using the wget command:
    http://airdownload.adobe.com/air/lin/download/1.5.2/AdobeAIRInstaller.bin
  3. The name of the file is AdobeAIRInstaller.bin
  4. Save the file in the Home folder (Places > Home Folder)
  5. Run this command:
    chmod +x AdobeAIRInstaller.bin
  6. Now run this command:
    sudo ./AdobeAIRInstaller.bin

Copy extra Adobe library file (won’t run in 64 bit without this)

Code:
sudo cp /usr/lib/libadobecertstore.so /usr/lib32

Install AIR apps via web.

The normal installer will open, install it. From now whenever you download a .air file, just double click it and it will be installed.