Passion : logiciel
février 15th, 2010

How to install virt-manager 0.8.3 on ubuntu karmic 9.10

« how to » was done with a fresh install of karmic. You can see this post to see which packages, repos and PPAs my Karmic contains. There is no special PPA needed for this.

Note: If you want to install virt-manager 0.8.4 on ubuntu 10.04: see that post: http://pyl.pylanglois.com/2010/05/12/how-i-installed-virt-manager-0-8-4-on-ubuntu-10-04/

If you already have virt-manager installed on your Ubuntu, you should uninstall it.. Thanks to PatFrat for the help on that:

sudo apt-get remove virt-manager python-virtinst

First, you need to install dependencies…

sudo apt-get install build-essential python-libvirt qemu-kvm libvirt-bin python-gtk-vnc python-gnome2-desktop python-urlgrabber

Maybe it’s time to update all your packages…

sudo apt-get upgrade

Then you get the virt-manager:

cd ~
mkdir virt
cd virt
wget http://virt-manager.et.redhat.com/download/sources/virt-manager/virt-manager-0.8.3.tar.gz
wget http://virt-manager.et.redhat.com/download/sources/virtinst/virtinst-0.500.2.tar.gz
wget http://virt-manager.et.redhat.com/download/sources/virt-viewer/virt-viewer-0.2.0.tar.gz

You then compile and install virt-manager:

cd ~/virt
tar xvzf virt-manager-0.8.3.tar.gz
cd virt-manager-0.8.3/
sudo apt-get install intltool
./configure
make
sudo make install

NOTE: Maybe the ./configure will return with errors. It’s because there are some unsatisfied dependencies. You will probably need to do a « aptitude search missingPack » and install the missing package with « sudo apt-get install missingPack-dev ».

Now let’s go with virt-install:

cd ~/virt
tar -xvzf virtinst-0.500.2.tar.gz
cd virtinst-0.500.2/
sudo python setup.py install

Finally, the virt-viewer:

cd ~/virt
tar -xvzf virt-viewer-0.2.0.tar.gz
cd virt-viewer-0.2.0/
sudo apt-get install libxml2-dev libvirt-dev libgtk2.0-dev libglade2-dev libgtk-vnc-1.0-dev
./configure
make
sudo make install

Now you will have the virt-manager 0.8.3 installed on your Karmic with a working kvm on boot (if your pc supports full virtualization)…

Note:
You can find the virtio drivers here:

http://alt.fedoraproject.org/pub/alt/virtio-win/13/images/bin/

février 11th, 2010

How I installed my Ubuntu Karmic Koala 9.10

Hello! Here is a set of commands that I used to install my karmic!

First, I have downloaded and installed Karmic 64bits (amd64 means 64bits for all CPU, not only for the AMD ones)

I installed it in French so I needed to install the language support from the GUI popup after the first boot.
After that, I did a full update of the system:

sudo apt-get upgrade -f

Then I install a lot of stuff that is needed to make ubuntu work by default like I want it to work :) . Install Medibuntu, install DVD support, install restricted codecs and all the ubuntu restricted extras. Also install smbfs, openssh-server and electricsheep (my favorite bandwidth consuming screensaver):


sudo wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list
sudo apt-get -q update
sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring
sudo apt-get -q update
sudo apt-get install w64codecs libdvdcss2
sudo apt-get install smbfs openssh-server electricsheep pidgin

After that since I use pidgin, I remove empathy because I did not found how to make Empathy work like I would with the IRC channel…


sudo apt-get remove empathy

Sophie, my tender love, uses Picasa to manage our pictures:


wget http://dl.google.com/linux/deb/pool/non-free/p/picasa/picasa_3.0-current_amd64.deb
sudo dpkg -i picasa_3.0-current_amd64.deb

Then I have updated my hosts file and fstab in order to auto mount a share on my home server:


# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
#
proc /proc proc defaults 0 0
# / was on /dev/sda1 during installation
UUID=8001e8ea-19e4-4ff0-b431-87b4e4347779 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=e9ee2a57-4767-4e72-add0-564bae42f270 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
//serveur/public /media/commun cifs credentials=/root/.smbcredentials,nounix,iocharset=utf8,gid=1001,uid=1001,file_mode=0777,dir_mode=0777 0 0


# /etc/hosts
127.0.0.1 localhost
127.0.1.1 laptop

10.31.31.31 serveur
10.31.31.32 portable
10.31.31.33 salon
10.31.31.34 cuisine

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


#And then...
sudo mkdir /media/commun
sudo mount -a

After that I create Sophie’s user profile with the ubuntu GUI tool and then restore his profile that I have backuped on the server:


sudo tar -xvzf /media/commun/backup/sophiebk.tgz /home

Since I want my SSH server to be responsive when there is no one loggued on the system, I need to force my wlan0 to be up at boot. To do that, I unfortunately need to remove the default network manager and hard code my router SSID in the conf file. I need to do that because the network manager connect the wlan0 only after a logon. So if I trigger a reboot from ssh, I cannot reconnect until my girlfriend logs on the laptop :(
It is sad because when I will take my laptop out, I will need to hack again to be able to connect to « other » network. If anyone has a solution to this problem, your help would be greatly appreciated:


#Good bye network manager! :s
sudo aptitude remove network-manager network-manager-gnome

From http://doc.ubuntu-fr.org/wpa#methode_complete_et_propre


#/etc/network/interfaces
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant.conf


#/etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant

ap_scan=1

network={
ssid="vinceprangplung"
proto=WPA RSN
key_mgmt=WPA-PSK
group=CCMP TKIP
psk="hahahahahahahahahahahaaaasolutéha!:P"
}

Then I needed to hack the GDM login screen because it shutdown automatically when the laptop screen is down.. In my option, the new GDM is not enough mature to be release and this disappoints me a lot from Ubuntu… I feel like they try to use me like a beta tester before the release of the 10.04 LTS… Same thing the grub2 by the way… Anyway:

From doc.ubuntu-fr.org


From the login screen (with no user loggued), CTRL-ALT-F1 and log as default user
then: export DISPLAY=:0.0
then: sudo -u gdm gnome-control-center
then: ALT-F7 and edit energy settings...

Finally, I little clean up before backuping…

sudo apt-get upgrade -f
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get clean

Now I have a beautiful working installation :) Since I plan to install weird stuff by compilation, I needed to take a backup of it… Some people suggests that we could do a backup live with tar but I prefer to do this with my hdd unmounted… First, I downloaded and boot the Gparted Live CD to resize my sda1 ext4 partition and create a sda3 backup partition. Then I tar with bz2 my sda1 to sda3:


tar cvzf /mnt/sda3/backup.tgz --exclude=/mnt /mnt/sda1 > /mnt/sda3/tar.log

février 4th, 2010

Removing file that contains spaces with find and rm

find . -name « *.scc » -exec rm {} \;

This work is licensed under GPL - 2009 | Powered by Wordpress using the theme aav1