pornostyle

Login to remote x server / X11 Forwarding using SSH

Erstellt von denny am Mittwoch 25. Januar 2012

I’m using Gentoo Linux on the X server computer. Your config files or details can be different.

1. Config SSH Server

First of all, we have to config the ssh daemon on the remote server to allow the remote X connection.
Open /etc/ssh/sshd_config
and enable X11Forwarding
X11Forwarding yes

Now restart the ssh daemon.

2. Login to Remote Server

Take your favorite Linux client and connect:
xterm –display :0.0 –e ssh –X user@192.168.0.10 &
Please take care of the ip address of the remote server.

You’ve got an ugly white xterm window.

3. Starting GUI

Now you can start your GUI installed on the remote server.
For Gnome say:
gnome-session &

That’s all.

Abgelegt unter Computer, Linux | Keine Kommentare »

Gentoo: vagrant up fails with VirtualBox::Exceptions::COMException `call_and_check’

Erstellt von denny am Mittwoch 4. Januar 2012

i’ve setted up a virtualbox with vagrant.
start the box fails with this error:

$ vagrant up
[default] Importing base box ‘wul’…
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.

[default] Preparing host only network…
[default] Creating new host only network for environment…
/usr/local/lib/ruby/gems/1.9.1/gems/virtualbox-0.9.2/lib/virtualbox/com/implementer/ffi.rb:106:in `call_and_check’: Error in API call to get_accessible: 2147944126 (VirtualBox::Exceptions::COMException)

these steps will fix this:
- are you in the vboxgroup?
- start VirtualBox GUI. Do you have a Host-only network for use?

Abgelegt unter Allgemein, Computer, Linux | Keine Kommentare »

Gentoo: gnome-extra/gnome-games-3.2.1 fails to emerge, missing binary ../../../../py-compile

Erstellt von denny am Dienstag 3. Januar 2012

some actual gnome packages on gentoo like gnome-games and gst-python fail in installation phase, because of this error:

‘emerge gnome-games’ failes with:

make[3]: Entering directory
`/var/tmp/portage/gnome-extra/gnome-games-3.2.1/work/gnome-games-3.2.1/gnome-sudoku/src/lib’
Making install in gtk_goodies
make[4]: Entering directory
`/var/tmp/portage/gnome-extra/gnome-games-3.2.1/work/gnome-games-3.2.1/gnome-sudoku/src/lib/gtk_goodies’
make[5]: Entering directory
`/var/tmp/portage/gnome-extra/gnome-games-3.2.1/work/gnome-games-3.2.1/gnome-sudoku/src/lib/gtk_goodies’
make[5]: Nothing to be done for `install-exec-am’.
test -z “/usr/lib64/python2.7/site-packages/gnome_sudoku/gtk_goodies” ||
/bin/mkdir -p
“/var/tmp/portage/gnome-extra/gnome-games-3.2.1/image//usr/lib64/python2.7/site-packages/gnome_sudoku/gtk_goodies”
/usr/bin/install -c -m 644 dialog_extras.py gconf_wrapper.py __init__.py
Undo.py
‘/var/tmp/portage/gnome-extra/gnome-games-3.2.1/image//usr/lib64/python2.7/site-packages/gnome_sudoku/gtk_goodies’
../../../../py-compile: ../../../../py-compile: cannot execute binary file
make[5]: *** [install-gnomesudokuPYTHON] Error 126
make[5]: Leaving directory
`/var/tmp/portage/gnome-extra/gnome-games-3.2.1/work/gnome-games-3.2.1/gnome-sudoku/src/lib/gtk_goodies’
make[4]: *** [install-am] Error 2

sys-devel/automake-1.11.2 is the cause of this issue. downgrade automake to 1.11.1 will fix it.

Abgelegt unter Allgemein, Computer | Keine Kommentare »

Gentoo build error x11-themes/gtk-engines-2.20.2

Erstellt von denny am Montag 2. Januar 2012

Während des Kompilierens tritt ein Fehler auf:

make[2]: Entering directory `/var/tmp/portage/x11-themes/gtk-engines-2.20.2/work/gtk-engines-2.20.2/engines/clearlooks’
CC clearlooks_rc_style.lo
CC clearlooks_style.lo
CC clearlooks_theme_main.lo
CC support.lo
CC animation.lo
CC clearlooks_draw.lo
CC clearlooks_draw_glossy.lo
CC clearlooks_draw_inverted.lo
CC clearlooks_draw_gummy.lo
In file included from ./src/animation.c:31:0:
/usr/include/glib-2.0/glib/gtimer.h:28:2: Fehler: #error “Only can be included directly.”
make[2]: *** [animation.lo] Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse…
make[2]: Leaving directory `/var/tmp/portage/x11-themes/gtk-engines-2.20.2/work/gtk-engines-2.20.2/engines/clearlooks’
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/x11-themes/gtk-engines-2.20.2/work/gtk-engines-2.20.2/engines’
make: *** [all-recursive] Fehler 1
emake failed

Fixen konnte ich das Problem mit diesem Patch:

Index: gtk-engines-2.20.2/engines/clearlooks/src/animation.c
===================================================================
— gtk-engines-2.20.2.orig/engines/clearlooks/src/animation.c
+++ gtk-engines-2.20.2/engines/clearlooks/src/animation.c
@@ -28,7 +28,7 @@
#include “animation.h”

#ifdef HAVE_WORKING_ANIMATION
-#include
+#include

struct _AnimationInfo {
GTimer *timer;

Abgelegt unter Allgemein, Computer | Keine Kommentare »

Using maxRecordLimit with sfDoctrinePager

Erstellt von denny am Donnerstag 16. September 2010

As known from sfPropelPager, there you can set maxRecordLimit from sfPager object by using setMaxRecordLimit().
With sfDoctrinePager from symfony 1.3.x/1.4.x, the pager attribute is ignored.

Here is a myDoctrinePager class for patching this issue:

myDoctrinePager.class.php

An example for usage comes here:

$this->pager = new myDoctrinePager('Status', 10));
....
$this->pager->setMaxRecordLimit(100); //means, there are max. 10 pages of rows
$this->pager->init();

Abgelegt unter Computer, PHP | Keine Kommentare »

FORCE INDEX mit Doctrine 1.2.x in sfDoctrinePlugin

Erstellt von denny am Donnerstag 16. September 2010

With Doctrine 1, there is no possibility to force using an index for a table.
I know, it’s not the best way to use MySQL-specific code with Doctrine.

Here is a patch for sfDoctrinePlugin for Symfony 1.3.x/1.4.x with Doctrine 1.2.2.

sfDoctrinePlugin_patch_force_index.diff

With this patch, it’s possibly to use FORCE INDEX. With DQL it looks like this:

$query = Doctrine::getTable('Status')->createQuery('s')
->forceindex('created_at_idx_idx')
->where('s.is_active = 1')
->orderBy('s.created_at DESC');

It’s recommended to use MySQL 5.1.x on serverside and as php module.

Abgelegt unter Computer, PHP | Keine Kommentare »

CSS Hack: Ein Bild/Block vertikal zentrieren

Erstellt von denny am Montag 25. Januar 2010

Um ein Bild oder einen Block in einem Container DIV zu zentrieren, kann mit diesem Snippet erreichen:


div.mybox
{
min-height: 10em;
display: table-cell;
vertical-align: middle
}

<div class="mybox">
<img src="...
</div>

Abgelegt unter Allgemein, Internet | Keine Kommentare »

Probleme mit flash.events::NativeWindowBoundsEvent ?

Erstellt von denny am Montag 2. November 2009

Wenn du den Fehler hier bekommst:

VerifyError: Error #1014: Klasse flash.events::NativeWindowBoundsEvent wurde nicht gefunden.

oder

VerifyError: Error #1014: Class flash.events::NativeWindowBoundsEvent could not be found.

so lag es bei mir daran, dass ich auf mehreren Rechnern entwickle und verschiedene Versionen der Flex SDK installiert waren.

Im Flex Builder kann man die verwendete SDK einstellen. In meinem Fall habe ich einmal auf 3.4 und einmal auf 3.2 versucht zu entwicklen.

Abgelegt unter Computer | Keine Kommentare »

Firefox Extension – Reset Customized Toolbar

Erstellt von denny am Freitag 4. September 2009

To reset a customized toolbar with javascript, simply call:

document.getElementById('toolbarId').currentSet =
document.getElementById('toolbarId').getAttribute("defaultset");

Abgelegt unter Allgemein | Keine Kommentare »

No connection params set for propel

Erstellt von denny am Mittwoch 29. Juli 2009

Wie beginnt man einen Bericht über eine Fehlermeldung, die mir 3 Stunden Ärger bereitet hat, aber mich auch an einen gemütlichen Abend mit einem Kollegen beim Paulaner Hell erinnert…

Normalerweise bin ich mit der PHP Symfony Framework Version 1.1.x oder 1.2.x unterwegs. Ein Projekt mit 1.0.x stand ins Haus und die Installation des Systems inkl. Symfony schien Routine – mindest. 20x gemacht. Schreckt nicht ab.

Aber nichts ging. Das Erstellen des ORM funktionierte, aber das Einspielen der Fixtures schlug mit der Fehlermeldung No connection params set for propel fehl.

Nach langer Fehlersuche verschob ich die Sourcen des Symfony-Frameworks einmal aus dem Projektordner und verlinkte es in der Variable sf_symfony_lib_dir neu. Und nun ging es.

Ich nehme an, dass es sich hierbei um ein Autoload-Problem handelt, dass aber in Symfony 1.1 gelöst ist, denn dort ist es das normale Vorgehen, das Framework in den Projektordner zu legen.

Grüße an Gregor ;-)

Abgelegt unter Allgemein, PHP | Keine Kommentare »