use qemu instead of virtualbox from shell terminal linux kubuntu


http://qemu.weilnetz.de/qemu-doc.html

qemu uses img files instead of vmdk or vdi files so you need to convert

convert a virtual machine :

path_vmdk="/home/shared/debian.vmdk"
path_output_img="/home/shared/debian.vmdk"
qemu-img convert -f vmdk -O raw "$path_vmdk" "path_output_img"

bashrc functions

#USAGE :
#qemu-vmdk_img "/path/to/file"
 
qemu-vmdk_img(){
    path_vmdk="$1"
    path_img="${1%%.*}.img"
    echo "qemu-img convert -f vmdk -O raw "$path_vmdk" "$path_img""
    qemu-img convert -f vmdk -O raw "$path_vmdk" "$path_img"
 
}
 
qemu-vdi_img(){
    path_vdi="$1"
    path_img="${1%%.*}.img"
    echo "qemu-img convert -f vdi -O raw "$path_vdi" "$path_img""
    qemu-img convert -f vdi -O raw "$path_vdi" "$path_img"
 
}
 
qemu-img_vmdk(){
    path_img="$1"
    "$path_vmdk"="${1%%.*}.vmdk"
    echo "qemu-img convert -f raw -O vmdk  "$path_img" "$path_vmdk""
 
    qemu-img convert -f raw -O vmdk  "$path_img" "$path_vmdk"
 
}
 
qemu-img_vdi(){
    path_img="$1"
    path_vdi="${1%%.*}.vdi"
    echo "qemu-img convert -f raw -O vdi "$path_img" "$path_vdi""
 
    qemu-img convert -f raw -O vdi "$path_img" "$path_vdi"
 
}

in this example i used qemu-system-x86_64 for 64bit virtual machine … modify if you need…

in a single line

ram=512 ; vnc="-vnc :1" ; hdd="-hda" ; soundcard=ac97 ;keyboard="it" ; qemu-system-x86_64 -machine pc,accel=kvm -m $ram -k $keyboard -soundhw $soundcard $vnc $hdd /path/to/debian.img

multiline : (you can read better i guess ūüėČ )

ram="512"
vnc="-vnc :1" #enable vnc
hdd="-hda"
soundcard="ac97"
keyboard="it"
qemu-system-x86_64 -machine pc,accel=kvm -m $ram -k $keyboard -soundhw $soundcard $vnc $hdd /path/to/debian.img

sound card :

-soundhw sb16,adlib
-soundhw es1370
-soundhw ac97
-soundhw all

keyboards

ar de-ch es fo fr-ca hu ja mk no pt-br sv
da en-gb et fr fr-ch is lt nl pl ru th
de en-us fi fr-be hr it lv nl-be pt sl tr

modify resolution , terminal , for debian

/etc/default/grub
modify GRUB_GFXMODE=
save and exit
then sudo update-grub

BOOTING FROM ISO IMAGE

qemu-system-x86_64 -boot d -cdrom bridge-kde-2015.02-x86_64.iso -m 512

CREATE A DISK IMAGE WITH QEMU 3GIGABITE FOR HDA THAT IT’S PRETTY SMALL

folder="/home/shared/virtualboxes/mynew_qemu_image.img" ; qemu-img create -f qcow2 "$folder" 3G

so now run qemu with that img

qemu-system-x86_64 -m 512 -hda "/home/shared/virtualboxes/mynew_qemu_image.img" -boot d -cdrom bridge-kde-2015.02-x86_64.iso  

More information here http://superuser.com/questions/598374/how-to-change-the-resolution-of-the-bash-for-a-debian-vm

Advertisements

Kde Pulse microphone settings, change microphone on the fly


I was using some software that uses microphone , and i had some problems , for example on palava.tv which is a service like skype o google talk you can  speak and see your friends for free, without registration.

So i had this problem , the default microphone was the internal one so ….i tried to change it on the icon , like you can see here , and i have even reloaded the page but microphone was always the internal one.

microphonechrome

i knew that on gnome desktop you have the ability to change mic on the fly and i was searching a way to do the same on kde desktop , so i tried on system settings multimedia but it was not working at all .

so ?         SOLUTION

just install veromix and plasma script engine python  :

         sudo apt-get install plasma-scriptengine-python plasma-widget-veromix ladspa-sdk  swh-plugins 

add vermix to your panel and you will be able to change microphone on the fly , i will use palava.tv to show this feature .

so go here with chrome or chromium www.palava.tv/123testkdemic   now it will ask to allow or deny just use allow button , if you check VEROMIX now you will see RECORDSTREAM with chrome \chromoium icon just click on the ARROW ON THE RIGHT and click again on MOVE TO  ==> so you can select your preferred mic!

see heremicrophonechrome1

LADSPA EFFECTS ON KDE MIXER

if you are searching to add LADSPA EFFECTS to veromix remember to install ladspa-sdk swh-plugins now you can just add an effect to your card it’s very handy to do filter a little bit your audio.

kernel 3.13 kwin opengl ati radeon problem


KWIN_OPENGL_INTERFACE=egl kwin --replace &