Wednesday, September 17, 2008

Install Ati driver

Forget what's below: Use Envy

http://lunapark6.com/envy-easy-way-to-install-nvidia-drivers-in-ubuntu.html

One of the first questions Linux users often ask, after installing their distro of choice, is “How do I install Nvidia drivers?” Although the process has been hit and miss in the past, one of the best solutions that I have come across is Envy for the Ubuntu distribution. The process is breathtakingly easy and works like a charm everytime. Since version 0.8.1 Envy now installs Ati drivers as well as Nvidia. The process is as easy as :

wget http://albertomilone.com/ubuntu/nvidia/scripts/
envy_0.8.1-0ubuntu6_all.deb

sudo dpkg -i envy_0.8.1-0ubuntu6_all.deb


You will find it in Applications, System Tools





source: http://wiki.cchtml.com/index.php/Ubuntu_Hardy_Installation_Guide

Method 2: Manual Method (installing Catalyst 8.8)

wget https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driver-installer-8-8-x86.x86_64.run

(this installer is for 32bit and 64bit systems)

[edit] Follow These Instructions Carefully

If you are using the x86_64 architecture (64 bit), be sure to inst "ia32-libs" before proceeding!


Make sure universe and multiverse are enabled in your repository sources.


Switch to the directory you downloaded the installer to.


sudo apt-get update
sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++5 dkms linux-headers-$(uname -r)

(package cdbs is required starting with Catalyst 8.8). On my machine it was installed during the package build process following the below command.

Now use the following command to create the .deb files you will be using for installation:

sh ati-driver-installer-8-8-x86.x86_64.run --buildpkg Ubuntu/hardy

If that command does not work, download the driver itself from the official site (ati.com) and move it to your home folder (/home/)

Now we have to blacklist the driver in Ubuntu's repository, so that the new driver will be used.

sudo gedit /etc/default/linux-restricted-modules-common

Add "fglrx" to the line "DISABLED_MODULES"

File: /etc/default/linux-restricted-modules-common
DISABLED_MODULES="fglrx"

Please note that after the modification above, the "Restricted Driver Manager" will signal "ATI accelerated graphics driver" not enabled (unticked). This is perfectly correct. At the end of the installation procedure it will signal in Status: "in use" (green light), but NOT enabled. It simply means that the fglrx module contained in the linux-restricted-modules package is not enabled, but another fglrx module (8.8) is in use.

You may also need to edit the file(s) (if they exist):

sudo gedit /etc/modprobe.d/blacklist-restricted
sudo gedit /etc/modprobe.d/blacklist-local

Put a # in front of the line "blacklist fglrx", if it is present. Otherwise, the kernel module will not load automatically, and you will not get 3D acceleration.

Install .debs. If there are no other versions of the driver in the same folder, you can save yourself some typing work:

sudo dpkg -i xorg-driver-fglrx_*.deb fglrx-kernel-source_*.deb fglrx-amdcccle_*.deb

Otherwise, do not use wildcards. You can use this methode in any case.

sudo dpkg -i xorg-driver-fglrx_8.522-0ubuntu1_i386.deb fglrx-kernel-source_8.522-0ubuntu1_i386.deb fglrx-amdcccle_8.522-0ubuntu1_i386.deb

[edit] Additional 64-bit instructions

If you have a 64 bit install, the above dpkg command may complain that "Errors were encountered while processing: fglrx-amdcccle". This is because of a dependency of the amdccle package on 32 bit libraries. If you receive this error, issue the following command after the above dpkg command, which will force the installation of all of the 32 bit dependencies, and then the amdccle package:

sudo apt-get install -f

Catalyst 8.8 on 64-bit systems requires the --force-overwrite command in the above dpkg command:

sudo dpkg -i --force-overwrite xorg-driver-fglrx_8.522*.deb fglrx-kernel-source_8.522-0*.deb fglrx-amdcccle_8.522-0*.deb

When installing the packages, if xorg-driver-fglrx_8.522 fails to install due to a diverted file conflict, you can fix the package with this procedure.

[edit] Fix for an error:

If you are having this error:

dpkg-shlibdeps: failure: couldn't find library libfglrx_gamma.so.1 needed by debian/xorg-driver-fglrx/usr/bin/fglrx_xgamma (its RPATH is '').

Fix it by doing the following:

sudo sh ati-driver-installer-8-7-x86.x86_64.run --extract driver
cd driver/arch/x86_64/usr/X11R6/lib64
sudo ln -s libfglrx_gamma.so.1.0 libfglrx_gamma.so.1
cd ../../../../../
sudo sh ati-installer.sh -- --buildpkg Ubuntu/hardy

[edit] Finishing the Install: Configuration

If you've used fglrx previously, you will not need to do this.

Now you'll have to edit your xorg.conf

sudo gedit /etc/X11/xorg.conf

and add the following line to the Device section (if it does not already exist). Include the following lines without [...]:

Section "Device"
[...]
Driver "fglrx"
[...]
EndSection

Save and exit, then run

sudo aticonfig --initial -f

in a terminal. If it does not error you should be fine.

Some people find that changes to xorg.conf don't get used by the driver. To force the ati driver to adopt changes made to xorg.conf, type the following command:

sudo aticonfig --input=/etc/X11/xorg.conf --tls=1

Finally, reboot the computer and type

fglrxinfo

into the terminal. If the vendor string contains ATI, you have installed the driver successfully. Release 8.8 looks like:

display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: Radeon X1950 Series
OpenGL version string: 2.1.7873 Release


Please note: Depending on the particular ATI card that you own, you may or may not automatically have all of the relevant driver features enabled. R500 and R600 cards (X1xxx, HD series, and newer) in particular will need TexturedVideo enabled in Xorg.conf (rather than the traditional VideoOverlay) in order to support Xv accelerated video playback.

[edit]

Open every folder in terminal (right click)

Install via synaptic
nautilus-open-terminal

Sunday, September 14, 2008

Capturing analog video

source:(+video): http://nl.youtube.com/watch?v=dDLtHDvQ7O4
Thought I'd share my good fortune - I know I'm not alone in trying to figure out how to capture from an analog capture device in LINUX, and "How-Tos" in LINUX are fairly lacking on YouTube. Here are some command lines I've pieced together to capture - 2 for a TV card and 1 for USB Webcam. The tutorial will hopefully give you an idea on how to tweak them for your own use. As needs arise for my own further tweaking, maybe I'll post some modifications! Here they are, for your enjoyment. To use, just open a console where you want to save the video file, cut and paste, change the name of the file to what you want and add any other tweaks, and you're ready.

MPlayer/mencoder:
http://www.mplayerhq.hu

High Quality:
mencoder -ovc lavc -lavcopts vcodec=mpeg4:\vhq:vbitrate=6000 -oac mp3lame -lameopts br=256: -ffourcc DIVX -tv driver=v4l:norm=ntsc:input=1:adevice=/de v/dsp:width=640:height=480 -af volume=-10 -o ****.avi tv://

Web Quality:
mencoder -oac mp3lame -ovc lavc -lameopts mode=1:vbr=2:q=4 -lavcopts vcodec=mpeg4 -tv driver=v4l:norm=ntsc:input=1:adevice=/de v/dsp:width=640:height=480 -af volume=-10 -o ****.avi tv://

Webcam:
mencoder tv:// -tv driver=v4l:width=320:height=240:device=/ dev/video1:forceaudio:adevice=/dev/dsp -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o ****.avi

Getting Started in Cinelerra:
http://www.billauer.co.il/cinelerra-v...

This video was captured entirely in analog, entirely on my webcams, and entirely in LINUX (my first!) This is my third video using Cinelerra... hopefully no one noticed the difference!

Saturday, September 13, 2008

Create symbolic link in a grafical way

Open Nautilus as root.
(Go into your terminal and type:

Quote:
gksudo nautilus
or make a launcher with gksudo nautilus )
Go to folder or file; right click and make link and copy that to desktop or pane.

Where did all my disk space go? The hidden folder .root/.local/share/Trash

I could not explain that my hard disk was so full considering the files I had on it. Trashcan was emptied ten times. Did all the cleaning I could think of (see post before this one) but still found it unexplainable where the space went to. The Gnome Disk manager didn't provide the right answer. I installed the program xdiskusage. First I ran it and discovered some ten gig in the root but access denied; so I could not find out what it was. So ran it in the terminal: sudo xdiskusage . Then I discovered that these 10 gig where in the folder root/.local/share/Trash. Went there in Nautilus as root and unhid the local folder with Ctrl+H.
Tried to delete the files but after a short disappearance the files were recovered.These were mostly large incremental backup files that I had decided I wanted on an external hard drive and had deleted. Made with sbackup.
Anyway looked in the forums and found this suggestion:

In Hardy, the location of the trash has changed to
Code:
~/.local/share/Trash/files
To empty the trash this command should do it:
Hardy Heron:
Code:
Code:
sudo rm -fr ~/.local/share/Trash/files/*
Tried this but it didn't work out as it should. The files were still there.
Elswhere I found this:
Since it is a directory, you cannot just
rm /root/.local/share/Trash/files

You need to rm -rf /root/.local/share/Trash/files

I tried and finally I had ten more gig at my disposal.
But this raises some questions... how is it possible that there are two Trash locations and that one is hardly accessible for the common user? And how should he discover there are two trash locations? This is very confusing and this matter should be adressed in some way or the other. As many people use Ubuntu as a dual boot and may haved limited space to run the OS.

Update:

Again there was a load of files (ten gig) in the /home partition in folder Trash-0 outside user pablo and second user test. Because evidently not linked to a single user, I couldn't remove them using Nautilus or Krusader as root.
Only way to solve this to type in terminal
sudo rm -rf /home/.Trash-0/files


Friday, September 12, 2008

Handle (nearly) full disks

Full disks and the lack of warning that you get about this can lead to serious problems.
So were my settings from some programs (Firefox) not saved. Happily I nailed the problem down before booting down or else I might have had log in problems.
See: http://brainstorm.ubuntu.com/idea/57/
And also: https://bugs.launchpad.net/ubuntu/hardy/+source/kdebase-workspace/+bug/99044
The only thing to do is watch the Nautilus window in the left corner very regularly to see how full your disk is. Of course you also have Gnome Disk Manager Tool. To see what is using your disk space.
Another possibility is to use the Gnome Config Editor:
"Go into Gconf-editor and /desktop/volume_manager and change the "percent_threshold" value to a higher value - 7% or something like that. " Unclear to me if that value should be changed from 0.05 to 7 or to 0.07. The aim is that you get a warning that your disk is nearly full.


To avoid fragmentation keep 20 % of your partition free!
(http://computertip.googlepages.com/veelgesteldevrageninubuntu)

Quote:
http://www.freesoftwaremagazine.com/books/zenoss/what_zenoss_can_tell_you

Ack! No disk space!

There are few things more disturbing to users than to attempt to log into the computer and be bounced right back out to the login prompt. Yet, this is precisely what happens if the /home partition fills up: with no space left on the drive, the shell can’t write temporary files it normally does on login, and the result is that you can’t log in (unless you’re root).

So, obviously it would be good to get a warning about systems where this is about to happen. Similar failures of the /, /var, /tmp, or /usr drives are not as catastrophic, but are by the same token more insidious. As a result, I long ago adopted the practice of doing a df to check disk usage as a first step whenever anything mysterious goes wrong on a system. Surprisingly often, this leads right to the source of the problem.


Solution for not being able to log in:

Using ctrl-alt-F1 at the normal login screen with get you a terminal login in Ubuntu if you are unable to access your login from the Gnome GUI. From there using rm to delete the large files will free up enough disk space to allow me to login normally with the GUI. Or move files to usb hard or flash drive.

Or after you are logged in type "sudo apt-get clean" without the quotation marks, enter your password again if prompted and restart to see if you can log in normally.


Good suggestions to empty your disk:

http://www.ubuntugeek.com/cleaning-up-all-unnecessary-junk-files-in-ubuntu.html

Empty Trashcan.

If you're running critically low on space (a gig is critically low? that makes me feel old), I would recommend opening Synaptic, going to Settings -> Preferences -> Files [tab] and telling the system to "Delete downloaded packages after installation.

Thursday, September 11, 2008

How to use and install GnomeDo

http://www.simplehelp.net/2008/07/09/how-to-install-setup-and-use-gnome-do/

  1. To launch Gnome Do, select Applications -> Accessories -> GNOME Do.
  2. If it doesn’t pop up on your screen right away, hold down the Windows Key (also known in Ubuntu as the “Super” key) and hit the Space bar. That’s the default keystroke combination to bring up Gnome Do.
  3. Start typing the name of a file, folder or application. In the example below I started to type Documents but only got as far as Doc before Gnome Do recognized what I was going for. Hitting the enter key at this point would open up my Documents folder - because the action in the right pane is Open.
  4. As you type (again my example will be Documents) Gnome Do creates a “list” of things you might mean. Use the down arrow key to see all of the files, folders, bookmarks and programs that contain “doc” in them. You can use the down key and then enter to select an item.
  5. Once you have an item selected, use the Tab key to move over to the “action” section. As previously mentioned, the default action is “Open”. Again, use the down arrow key to view and/or select alternate actions - like Open Terminal Here, Copy to…, Move to… or Move to Trash.

Blog Archive