Donnerstag, 2. Mai 2013

Install Ubuntu 13.04 raring on 2 drives with LVM

Hey guys,

if you want to install the new release of Ubuntu (13.04) on 2 drives you can do this with the following step by step manual. My notebook is a Sony Vaio vpcz1 and therefore your first steps may differ from mine!



0. (vpcz1) Prepare the disks:
  • Open up the BIOS on boot (by pressing F2). Go to the options where you can show the raid system on booting (it is under the Intel raid option) and enable that (while you're at it, make sure you boot from external device!)
  • Press F10 to save and exit the BIOS
  • Now you should see after the vaio splashscreen the information about your disks. Press Strg+I to enter the raid setup menu
  • In the raid setup you choose option 3 and reset all your discs by selecting them with space and lastly pressing enter (for German keyboard layouts: if you want to confirm the questions with y you have to press z!)
  • Exit and reboot

1. Setting up the LVM
  • Boot into the Ubuntu live Desktop
  • Open a terminal on the live Desktop and check your drives by typing in
    sudo fdisk -l
    and note your drives (in my case it is sdb and sdc)
  • ---begin---
  • Now we have to create partitions of the type "Linux LVM"
    sudo fdisk /dev/sdb
  •  Delete all Partitions "d", make a new one "n", choose primary partition "p", number of partition "1" and cylinders first/last default (press ENTER each time), then press "t" for change a partition's system id and type in the HEX-code "8e" and write the table to disk and exit via "w".
  • ---repeat (exactly!) from ---begin--- for all your drives---
  • It is time to create the physical volumes (change it to your names)
    sudo pvcreate /dev/sdb1
    sudo pvcreate /dev/sdc1
  •  Create the Volumegroup (change VOLUMEGROUPNAME as you like)
    sudo vgcreate VOLUMEGROUPNAME /dev/sdb1 /dev/sdc1
  • (optional) If you missed one you can add it later with the command
    sudo vgextend VOLUMEGROUPNAME /dev/sdX1
  • Type in the next command to get a logical volume (with the name you like)
    sudo lvcreate -l 100%FREE -n LOGICALVOLUMENAME VOLUMEGROUPNAME
  • (optional) If you want to create volumes with a specific size, use the following command:
    sudo lvcreate -L 3G -n LOGICALVOLUMENAME
    VOLUMEGROUPNAME
  • Lastly check your drive with
    sudo lvdisplay
  • If you ever have to resize a Partition:
    sudo lvreduce -L -5G /dev/mapper/VOLUMEGROUPNAME-LOGICALVOLUMENAME
    (I reduced the size of my created LVM and added with lvcreate a Swap partition)

2. Install Ubuntu
  • Proceed as usual and choose "other options"
  • Select your newly created partition and change it to ext4 and mountingpoint "/"
  • The Bootloader (GRUB) goes to /dev/sdb
  • Continue
3. Fix GRUB (chroot-methode)
  • Ok, as usually my GRUB didn't work correct, so boot once again into the live desktop
  • Type in a terminal the following commands:
    sudo mount /dev/mapper/VOLUMEGROUPNAME-LOGICALVOLUMENAME /mnt
    sudo mount -o bind /dev /mnt/dev

    sudo mount -o bind /sys /mnt/sys

    sudo mount -t proc /proc /mnt/proc

    sudo cp /proc/mounts /mnt/etc/mtab

    sudo chroot /mnt /bin/bash
  • You are now on your Ubuntu system. To repair GRUB proceed with (without sudo):
    grub-install /dev/sdb

    grub-install /dev/sdc

    update-grub
  • Exit with Strg+D and your system should boot normally :-)

Good Luck!

Montag, 15. April 2013

Ubuntu Grafikkarten Probleme

Servus,

sollte euer NVIDIA Treiber unter Ubuntu mal wieder spinnen - nur die Ruhe!
Mit simplen 2 Schritten wird der Standardtreiber wiederhergestellt.
Dafür müsst ihr erstmal den NVIDIA Treiber entfernen:

sudo apt-get purge nvidia*

(Achtet auf den Stern am Schluss!)
Danach noch die alte xorg.conf Datei "löschen" (backups sind immer besser ;-) ):

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

Neustarten (sudo reboot) und der Rechner läuft unter quelloffenem Treiber :-)


---


NVIDIA has broken your Ubuntu System once again? Relax!
With those 2 simple steps you can restore the default driver.
First of all, remove all of the NVIDIA drivers:

sudo apt-get purge nvidia*

(Don't remove the asterisk at the end!)
Now "remove" the old xorg.conf file (or do a backup...is always the better way):

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

Reboot (sudo reboot) and your system runs the default open-source driver :-)


Greetz

Sonntag, 3. März 2013

Ubuntu keyboard backlight (Tastaturbeleuchtung) Sony Vaio

Moin,
 
um die Tastaturbeleuchtung beim Sony Vaio Notebook anzupassen muss eine "1" in die Datei:
/sys/devices/platform/sony-laptop/kbd_backlight 
eingetragen werden.
Die Zeitdauer setzt ihr in der Datei:
/sys/devices/platform/sony-laptop/kbd_backlight_timeout
wobei 0(Standard)=10secs, 1=30secs, 2=60secs and 3=dauerhaft
 
---
 
To switch on the backlight of the Sony Vaio Notebook, just set a "1" in the file:
/sys/devices/platform/sony-laptop/kbd_backlight
and set the timeout as you wish:
/sys/devices/platform/sony-laptop/kbd_backlight_timeout
where 0(default)=10secs, 1=30secs, 2=60secs and 3=unlimited

Greetz

Freitag, 16. September 2011

Banshee Datenbank Crash

Servus,


solltet ihr auch mal einen Banshee Datenbankcrash haben kann euch folgendes helfen, Banshee wieder in Gang zu bekommen OHNE die Bibliothek zu verlieren bzw. neu einlesen zu müssen:

Ladet euch zuerst sqlite3 herunter
sudo apt-get install -y sqlite3
Danach führt ihr folgenden Befehl aus:
sqlite3 ~/.config/banshee-1/banshee.db ".dump" > dump && mv ~/.config/banshee-1/banshee.db banshee.db.backup && cat dump | sqlite3 ~/.config/banshee-1/banshee.db;

Fertig!
Eure Datenbank wurde "repariert".

Viel Erfolg.

Samstag, 14. Mai 2011

NumBlock tut unter Ubuntu nicht mehr

Servus,

sollte unter Ubuntu der NumBlock (Nummernblock) nicht funktionieren, probiert mal folgendes:
Deaktiviert unter Einstellungen --> Tastatur --> Maustasten --> Mauszeiger per Tastatur steuern
Funktioniert unter allen mir bekannten "neueren" Ubuntu-Versionen ;-)

GL

Sonntag, 13. März 2011

Ubuntu Ambiance Icons (Headset und JDownloader)

Servus,


hab gerade zwei Icons für die Ambiance Panels fertiggestellt.

Zum einen ein Headset:
http://dpommranz.deviantart.com/art/Headset-Icon-for-Ubuntu-200823835






Zum anderen ein Icon für das Programm JDownloader:
http://dpommranz.deviantart.com/art/JDownloader-Icon-for-Ubuntu-200825103




Letzteres sollte am besten über den beigefügten Link runtergeladen und in das JDownloaderverzeichnis JDownloader/jd/img/logo kopiert werden. Das vorhande Logo kann dabei überschrieben werden.

Viel Spaß damit!


PS: Das ganze sieht dann so im Panel aus:

Montag, 6. Dezember 2010

Skype in Empathy unter Ubuntu 10.10 (Maverick)

Hallo,


nach etlichen Versuchen hab ichs nun endlich hinbekommen.
Ich kann mit meinen Skype Kontakten über Empathy kommunizieren.

Zu beachten ist, dass dabei Skype im Hintergrund laufen muss (also zunächstmal Skype über das Softwarecenter installieren)!

Folgendes Paket lässt euch Skype über Empathy nutzen:
Skype4Pidgin, beziehbar als .deb (kostenlos) über http://eion.robbmob.com/

Einfach mit dem Softwarecenter installieren, fertig.
Jetzt nur noch ein neues Konto in Empathy anlegen, das Protokoll nennt sich (bei mir) bigbrownchunx-skype-dbus. Skypenamen eintragen, fertig.

Skype stratet sich und frag, ob das Programm (bei mir haze) die API verwenden darf. Mit ja und merken bestätigen.

Nun sollten die Kontakte in Empathy geladen werden.
Da Skype bei eingehenden Nachrichten trotzdem noch unten rechts was anzeigt, empfiehlt es sich in den Skypeoptionen (Rechtsklick auf das Skype Icon --> Optionen --> Hinweise) alle gewünschten Ereignisse zu deaktivieren.



Good Luck





EDIT:
Hab das gerade auf nem anderen Rechner gemacht und bemerkt, dass sich dort Pidgin in das indicator-applet (dieser Briefumschlag) eingefügt hat.
Wer das rückgängig machen möchte kann einfach ein Terminal öffnen und dort:
sudo rm /usr/share/indicators/messages/applications/pidgin
eingeben und sich neu anmelden.

Übrigens: mit dieser Methode können alle Einträge im indicator-applet angepasst werden!