Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Wednesday, October 14, 2009

Cedega 7 install issue "cedega Error: Dependency is not satisfiable: python2.4-dbus"

Today i downloaded the .deb version of cedega from this URL http://www.cedega.com/downloads/

When i tried to install cedega i came across the following error:
cedega Error: Dependency is not satisfiable: python2.4-dbus


After some search i found out that in ubuntu 9.04 (Jaunty) the package python2.4-dbus was renamed to python-dbus. So this leads to a broken dependency error. The solution i found is:

Open a terminal and navigate to the directory you downloaded the .deb file from cedega. Usally this is your home folder or Desktop folder.
Execute the following commands by the order they appear:
$ mkdir -p cedega_000133_all/DEBIAN
$ ar p cedega_000133_all.deb data.tar.gz | tar zx -C cedega_000133_all/
$ ar p cedega_000133_all.deb control.tar.gz | tar zx -C
$ cedega_000133_all/DEBIAN/
$ mv cedega_000133_all.deb cedega_000133_all.prerebuild.deb
$ perl -pi -e 's/python2.4-dbus/python-dbus/' cedega_000133_all/DEBIAN/control
$ dpkg-deb --build cedega_000133_all
$ rm -rf cedega_000133_all
$ sudo dpkg -i cedega_000133_all.deb
Make sure you have write permissions to this folder if it is outside your home directory. If you don't have sufficient write permissions the build command will produce an error.
Hope this helps.

Read more...

Monday, October 27, 2008

Mount iso file in Ubuntu

This post will show you 4 ways to mount an iso file like a normal cd/dvd drive in Ubuntu. By using these you don't have to write the iso file to a cd or dvd. They are ordered from the easiest to the hardest.



Mount iso using Gmount-iso.
This is a great program that i found recently. To install it just type:
sudo apt-get install gmountiso
The best thing with this program is that you can mount the image anywhere you want. You can even mount it on the cdrom folder. (if you execute it with sudo )
sudo Gmount-iso


Mount iso using nautilus.

This is the easiest and fastest way i know.

Step: 1
With this way you only have to install a .deb package. This package is called nautilus-mount-image and it can be found
http://launchpadlibrarian.net/18219053/nautilus-mount-image_0.2.0-1_all.deb
or
https://edge.launchpad.net/%7Ezootropo/+archive/+files/nautilus-mount-image_0.2.0-1_all.deb

After
installing the package when you right click on an iso file you will see the option to Mount.
The only problem that i found with this way is that you cannot mount it where you want (in a folder of your choise) .


Mount iso using nautilus scripts.

To make this way work you need to create two nautilus scripts and put them in the correct folder.

Step:1

Create a new file named mount in the folder ~/.gnome2/nautilus-scripts. This file will mount the image file you want.
gedit .gnome2/nautilus-scripts/mount.sh
and copy the following and save the file
#!/bin/bash

gksudo -u root -k /bin/echo "got r00t?"

sudo mkdir /media/"$*"

if sudo mount -o loop -t iso9660 "$*" /media/"$*"
then
if zenity --question --title "ISO Mounter" --text "$* Successfully Mounted.

Open Volume?"
then
nautilus /media/"$*" --no-desktop
fi
exit 0
else
sudo rmdir /media/"$*"
zenity --error --title "ISO Mounter" --text "Cannot mount $*!"
exit 1
fi

Step:2
Create a new file named unmount in the folder ~/.gnome2/nautilus-scripts. This file will unmount the image file you previously mounted.
gedit .gnome2/nautilus-scripts/unmount.sh
and copy the following and save the file
#!/bin/bash

for I in "$*"
do
foo=`gksudo -u root -k -m "enter your password for root terminal
access" /bin/echo "got r00t?"`

sudo umount "$I" && zenity --info --text "Successfully unmounted /media/$I/" && sudo rmdir "/media/$I/"
done
done
exit0
and copy the following and save the file
#!/bin/bash

gksudo -u root -k /bin/echo "got r00t?"

sudo mkdir /media/"$*"

if sudo mount -o loop -t iso9660 "$*" /media/"$*"
then
if zenity --question --title "ISO Mounter" --text "$* Successfully Mounted.

Open Volume?"
then
nautilus /media/"$*" --no-desktop
fi
exit 0
else
sudo rmdir /media/"$*"
zenity --error --title "ISO Mounter" --text "Cannot mount $*!"
exit 1
fi

Step:3
Now we just have to give execution rights to the files we created.
sudo chmod +x .gnome2/nautilus-scripts/mount.sh
sudo chmod +x .gnome2/nautilus-scripts/unmount.sh
The only problem that i found with this way is that you cannot mount it where you want (in a folder of your choise) .

If you want some more nautilus script visit:
http://mundogeek.net/nautilus-scripts/


Using loop Kernel Module

This is the hardest way but the only one if you don't want to use a graphical interface.

Step:1
The first thing you need to do is create the directory that the iso is going to be mounted.
sudo mkdir /media/image_folder
Step:2
Now you have to load the loop mode to your kernel:
sudo modprobe loop
Step:3
Now we can mount the image file (
image_file.iso) to the folder we created.
sudo mount image_file.iso /media/image_folder/ -t iso9660 -o loop
Step:4
When we want to unmount the image file
sudo umount /media/image_folder/




Read more...

Friday, October 24, 2008

Disable Xgl server

This post will show you how to disable xgl server in Ubuntu. With this way it is no longer necessary to use any special X session to disable xgl server. I used this way because my laptop has an ati graphics card (Mobility Radeon X1700) and i had many problems with xgl server.

Step 1:
The only thing you need to do is create an empty file named disable in your home directory in the path ~/.config/xserver-xgl/
cd .config/xserver-xgl/
If the above path does not exist create it
mkdir .config/xserver-xgl/
Step 2:
Now to create an empty file named disable:
>disable
Now you just have to logout and when you login xgl server won't start.




Read more...

Create an iso file from a cd,dvd or folder

This post will show you how to create an iso file from a cd, dvd or a folder.

Create .iso from CD - DVD


Step 1:
Now we move to the creation of the .iso file. The following command will create the iso file named test.iso.
dd if=/dev/cdrom of=test.iso bs=1024
Now wait for the command to finish. This may take some time depending on the size of the data on the disc.


Create .iso from a folder

Step 1:
In order to create an iso from a folder we need to install the program mkisofs. Just type:
sudo apt-get install mkisofs
Step 2:
Now we create the iso file (test.iso) from a folder in our system.
mkisofs -r -o test.iso /path_to_folder/
Step 3:
It is suggested to create an MD5 checksum from the iso file so we can validate the integrity of the file in the future. This is done with the following command:
md5sum test.iso > test.iso.md5


Read more...

Thursday, October 23, 2008

/etc/apt/sources.list (for hardy)

Note: This post will be constantly updated.

0. Description
My list of repositories (/etc/apt/sources.list) for Ubuntu Hardy.
- includes Medibuntu repository (acroread, skype, opera, etc)



1. /etc/apt/sources.list
#deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://gr.archive.ubuntu.com/ubuntu/ hardy main restricted
#deb-src http://gr.archive.ubuntu.com/ubuntu/ hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://gr.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
#deb-src http://gr.archive.ubuntu.com/ubuntu/ hardy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://gr.archive.ubuntu.com/ubuntu/ hardy universe
#deb-src http://gr.archive.ubuntu.com/ubuntu/ hardy universe
deb http://gr.archive.ubuntu.com/ubuntu/ hardy-updates universe
#deb-src http://gr.archive.ubuntu.com/ubuntu/ hardy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://gr.archive.ubuntu.com/ubuntu/ hardy multiverse
#deb-src http://gr.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://gr.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
#deb-src http://gr.archive.ubuntu.com/ubuntu/ hardy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://gr.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://gr.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu hardy partner
# deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://security.ubuntu.com/ubuntu hardy-security main restricted
#deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
#deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
#deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse


## Medibuntu
## add gpg key: #wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | apt-key add -
deb http://packages.medibuntu.org/ hardy free non-free



References
Medibuntu......http://ubuntuforums.org/showthread.php?t=713009

Read more...

Wednesday, October 22, 2008

Open desktop environment througth ssh

This post will show you a very simple way to open a desktop environment such as gnome, kde or xfce through ssh. This way has been tested on Ubuntu and Kubuntu.



Step 1:
You need to install open ssh client and server
sudo apt-get install openssh-client openssh-server

Step 2:
On the client machine you need to open a new screen. In order to do this press Ctrl+Alt F2 (or any f2-f6) and login.

Step 3:
When you are logged in run following command to open a new X Session in screen 1 (you can open it in other screens ex. 2. If you want to go to another screen press Ctrl+Alt f8 - f12)
xinit /usr/bin/xterm -- :1
When the session is opened you will only see a terminal.

Step 4:
On that terminal you will execute this command to open an ssh connection.
ssh -X username@host_ip
or
ssh -Y username@host_ip
The difference between the above commands is that the first one is subjected to X11 SECURITY extension restrictions by default. The second is not. So it is advised to use it with caution.

Now you have to enter your password (from your account on the server) in order to login.

Step 5:
When you are logged in the remote computer according to the X environment it has installed you have to enter the following to run it.

For machines with Ubuntu usaly:
gnome-session
or if you have KDE installed type :
startkde
For machines that have XFCE installed type:
startxfce4



Read more...