I hate neither Unity nor gnome-shell. Both have their merits and I used both for some time, but I’m used to my old setup with GNOME, compiz, various (or none) panels and/or AWN. Starting with Ubuntu Oneiric (11.10), there’s no obvious solution for setting up my system like this.
“Ubuntu” sessions start Unity, which happens to live in a compiz plugin. Disabling this plugin breaks the “Ubuntu” session. “GNOME” sessions start gnome-shell, which is built around the “mutter” compositing window manager and that gets old fast.
What I wanted was a standard GNOME3 sessions that wasn’t broken (“Ubuntu” with Unity removed) and allowed me to run compiz. Turn’s out the solution isn’t that hard, once you’ve figured it out:
- install gnome-session-fallback
this runs GNOME3 without gnome-shell or compositing at first, it pulls in metacity and gnome-panel. It’s almost as easy to configure as GNOME2 was, but not before you find out that holding Alt before right clicking panels opens their default panel menus - install ccsm
for disabling unity later - modify or copy /usr/share/gnome-sessions/sessions/gnome-fallback.session
Now, in that file, replace
DefaultProvider-windowmanager=metacity
with
DefaultProvider-windowmanager=compiz - Logout and log back into GNOME fallback (Safe Mode)
- Should Unity popup, start ccsm and disable all unity plugins
After logging out and back in, you should be able to customize your desktop the way you used to in Ubuntu before 11.10. If you want to change window borders and button themes, install gnome-tweak-tool and use that for further customization.
Für meine Projekte in der Webentwicklung verwende ich Ubuntu Linux als Server in einer VirtualBox. Dabei bekommt jedes Projekt mit seiner eigenen virtuellen Maschine eine komplett von den anderen Projekten abgetrennte Umgebung. Dadurch hat man den großen Vorteil, dass Programmversionen und Einstellungen von PHP, Apache, etc zu jeder Zeit gleich bleiben, was die Anwendung betrifft. Keine Jongliererei mit Konfigurationen, die noch alte Anwendungen unterstützen müssen oder ähnliches also. Das Projekt kann zu jedem Zeitpunkt wieder in Betrieb genommen werden, man muss nur die virtuelle Maschine starten.
Mittlerweile ist das auch recht günstig zu bewerkstelligen. Auf meinem drei Jahre alten Laptop (2GHZ Dual Core) läuft das ohne Probleme. Für einen Ubuntu Server mit einer virtuellen Maschine braucht man nicht mehr als 512 MiB übrigen Arbeitsspeicher. Eine Grundinstallation, die ich hier erklären möchte, belegt mit vollständigem LAMP etwas über 1,3 GiB Festplattenplatz. Platz- und Ressourcengründe sollten also niemanden dazu bewegen, alles auf nur einen einzigen Testserver zu zwängen.
Zielsetzungen
Diese Anleitung beschreibt einen reinen Entwicklungs- und Testserver und ist nicht für Betrieb im Internet gedacht. Dadurch ergeben sich auch die folgenden Zielsetzungen:
- Webserver Apache2 mit PHP5 und MySQL 5.1
- GD-Addon für Grafikarbeiten mit PHP
- Erreichbarkeit des Servers im Netzwerk von beliebigen Rechnern aus (zum Test unter verschiedenen Betriebssytemen und Browsern)
- Einfache Datenverwaltung auf dem Server über SFTP
- Replizierbarkeit für neue Projekte
Der Server kann so etwa zur Entwicklung von auf Wordpress basierten Websites verwendet werden. Alles andere kann selbstverständlich nachinstalliert werden.
Vor kurzem habe ich JQuery Mobile entdeckt. Während es ja nicht besonders schwer ist, eine für mobile Geräte mit Webkit geeignete Website zu erstellen, macht es jQuery Mobile nochmal etwas einfacher, vor allem Übergänge und sonstige Formatierungen. Es hilft mit fertigem CSS und Layout-Baukasten, mobile Websites besonders schnell gangbar zu bekommen. Der Vorteil ist, dass so auch das Testen auf mobilen Geräten weniger lang dauert. Das Framework ist kompatibel zu den meisten mobilen Browsern - Android, Blackberry, iPod/iPhone, WebOS, Symbian.
Bis zum noch folgenden, längeren Beitrag darüber, hier mein Prototyp einer Anwendung: Der Mensa-Speiseplan an der Uni Augsburg. Die Software dahinter ist nichts großartiges, hauptsächlich mein Speiseplan-Parser und etwas statisch generiertes HTML. Das Paket ist für einen Cronjob gedacht. Irgendwann wird es dann beim AStA Augsburg veröffentlicht, für die Augsburger Uni-Studenten. Nachdem iMensa für diese nun ja nicht mehr geht.
This is a subnotebook (“ultraportable”) sold by Sony with quite a nice hardware lineup. Installing Ubuntu on it wasn’t quite easy due to graphic drivers but fear not! There is a solution that makes it work 100%, including 3D acceleration. Also, the touchpad doesn’t work at first. Doesn’t matter either, we’ll fix that too.
Issues with this laptop
- Graphics issues (wrong resolution, only VESA works)
- Touchpad doesn’t work
- Battery meter in GNOME panel doesn’t show the remaining battery power
All those issues have fixes.
Hardware list
Per default, the device comes with
- Intel Pentium U4500 1,2 GHZ (with two cores)
- 4 GB RAM (shared with the graphics chip)
- Intel HD graphics (doesn’t really seem to have a “model name” other than that. It’s integrated into the CPU
- 1366x768 display at 12”, also has HDMI and VGA ports
- WiFi: Atheros AR9285 (b/g/n), Ethernet: Atheros AR8131 (Gigabit)
- some 320 GiB SATA HDD
- multitouch Touchpad
- the usual other ports: Firewire, 3x USB, headphone and microphone, SD Card reader
Default Configuration
Per default, the laptop comes with 3 Partitions already:
- /dev/sda1 9,61 GiB (rescue partition)
- /dev/sda2 100 MiB (system reserved)
- /dev/sda3 the rest (Windows 7)
Installation
Graphics issues
When booting from standard Ubuntu installation media, the screen goes blank right at the beginning, even before the boot splash. This is due to the graphics card not being supported correctly by the kernel. What doesn’t work is Kernel Mode Setting (i.e. switching resolution etc), hence the black screen.
Graphics solution
To install Ubuntu correctly, you will need the Alternate Installation CD. And since your laptop has 4 GiB of RAM, you will need the amd64 variant.
- Get the alternate amd64 installation ISO from the Ubuntu homepage
- Burn an installation cd or write it to usb and boot from your medium.
- On the first splash screen,
press any keyto be shown the boot options. - Press
F6to see advanced settings and selectnomodeset. This will disable Kernel Mode Setting and allow you to see at least text. - Installation should work self explanatory from there.
- After the reboot, you should see the standard greeter and log in.
Don’t worry if the touchpad doesn’t work. We’ll fix that later. Also, we’ll improve the screen resolution. Until then, plug in an USB mouse.
Installing another kernel
Since we disabled kernel mode switching before installation and Intel has removed User Mode Switching in their drivers, we’re running on VESA drivers that support only 1024x768. To fix that, we will have to both re-enable kernel mode switching and install a newer kernel with the appropriate drivers.
Before we install a new kernel, re-enable KMS:
gksudo gedit /etc/default/grub
In the line that starts with GRUB_CMDLINE_LINUX= remove everything between the quotes. Leave the quotes where they are.
As of 2010-12-28, I had the best luck with the 2010-12-24 snapshot of 2.6.37rc3:
Install the packages you just downloaded.
Installing the latest video drivers
Add the Ubuntu X-Swat-Updates PPA:
sudo add-apt-repositry ppa:ubuntu-x-swat/x-updates; sudo apt-get update && sudo apt-get dist-upgrade -u
Battery meter
To see your current battery capacity, you’ll need to install an updated GNOME power manager.
Add a PPA that includes the bugfix
sudo add-apt-repository ppa:brian-rogers/power; sudo apt-get update && sudo apt-get dist-upgrade -u
Reboot
After reboot, the new kernel and system updates will have taking care both of the graphics issues and the nonworking touchpad. The new GNOME power manager and upower packages should show the correct battery capacity, too.
Habe gerade ein Tarfile entpackt, danach war das Downloadverzeichnis voll mit einzelnen Dateien. Praktischer wäre natürlich gewesen, im Archiv wäre erst mal ein Verzeichnis drin. Anstatt nun aber alles von Hand wieder zu entfernen, geht das einfacher:
tar ftz dateiname.tar.gz|xargs rm -r
und schon sind die Dateien wieder weg. Muss man natürlich für bzip2 und Konsorten anpassen. Statt rm kann man auch trash verwenden, unter Ubuntu und Debian trash-cli genannt. Das schiebt Dateien in den Papierkorb der Desktopumgebung.