среда, 26 сентября 2012 г.

Squeeze + Gnome + Openbox

If openbox permanently tries to run after gnome session is started


--- /usr/share/applications/openbox.desktop.orig 2012-09-26 19:24:29.000000000 +0400
+++ /usr/share/applications/openbox.desktop 2012-09-26 19:21:21.000000000 +0400
@@ -5,3 +5,4 @@
 Exec=openbox-session
 Icon=
 Type=Application
+X-GNOME-Provides=windowmanager

воскресенье, 1 июля 2012 г.

"Mark as seen" in evolution-3.4

After last upgrade of Debian Wheezy "Mark as seen" option disappeared from the "Preferences" dialog. How to change it now:

dconf write /org/gnome/evolution/mail/mark-seen true
dconf write /org/gnome/evolution/mail/mark-seen-timeout 500

вторник, 12 июня 2012 г.

Gnome 3 + Openbox WM on Debian Wheezy

Additional files to run gnome3 + openbox on Debian:


--- /usr/bin/openbox-gnome-session 2012-05-11 09:37:09.000000000 +0400
+++ /usr/bin/openbox-gnome-fallback-session 2012-05-27 11:35:27.028511319 +0400
@@ -13,4 +13,4 @@
      -remove _NET_CURRENT_DESKTOP 2> /dev/null

export WINDOW_MANAGER=openbox
-exec gnome-session
+exec gnome-session-fallback

--- /usr/share/xsessions/openbox-gnome.desktop 2012-05-11 09:37:10.000000000 +0400
+++ /usr/share/xsessions/openbox-gnome-fallback.desktop 2012-05-27 11:39:28.076503177 +0400
@@ -1,8 +1,8 @@
 [Desktop Entry]
 Encoding=UTF-8
-Name=GNOME/Openbox
+Name=GNOME Fallback/Openbox
 Comment=Use the Openbox window manager inside of the GNOME desktop environment
-Exec=/usr/bin/openbox-gnome-session
+Exec=/usr/bin/openbox-gnome-fallback-session
 TryExec=gnome-session
 Icon=openbox.png
 Type=XSession

Patch to use alternative panel:


--- /usr/share/gnome-session/sessions/gnome-fallback.session.orig 2012-05-27 12:16:06.976428893 +0400
+++ /usr/share/gnome-session/sessions/gnome-fallback.session 2012-05-27 12:16:34.104427977 +0400
@@ -58,7 +58,7 @@
 Name[zh_CN]=GNOME 后备模式
 Name[zh_HK]=GNOME 後備
 Name[zh_TW]=GNOME 後備
-RequiredComponents=gnome-panel;gnome-settings-daemon;
+RequiredComponents=gnome-settings-daemon;
 RequiredProviders=windowmanager;notifications;
 DefaultProvider-windowmanager=gnome-wm
 DefaultProvider-notifications=notification-daemon

среда, 11 мая 2011 г.

nvidia drivers on Debian Squeeze with kernel 2.6.38 from backports

Q&D way to install proprietary nvidia drivers with dkms on 2.6.38 kernel from squeeze-backports.

  1. Install linux-kbuild from Debian Wheezy
  2. Install linux-headers from squeeze-backports (with dkms compilation error)
  3. Make symlink to generated header:
    
    cd /usr/src/linux-headers-2.6.38-bpo.2-your-version/include/linux
    ln -s ../generated/autoconf.h ./
    
  4. Patch nvidia source at /usr/src/nvidia-195.36.31:
    
    --- nv-linux.h.orig     2011-05-11 12:26:22.206190191 +0400
    +++ nv-linux.h  2011-05-04 15:36:27.163263047 +0400
    @@ -975,8 +975,13 @@
     #endif
     
     #if defined(NV_ACQUIRE_CONSOLE_SEM_PRESENT)
    -#define NV_ACQUIRE_CONSOLE_SEM() acquire_console_sem()
    -#define NV_RELEASE_CONSOLE_SEM() release_console_sem()
    +# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38)
    +#  define NV_ACQUIRE_CONSOLE_SEM() console_lock()
    +#  define NV_RELEASE_CONSOLE_SEM() console_unlock()
    +# else
    +#  define NV_ACQUIRE_CONSOLE_SEM() acquire_console_sem()
    +#  define NV_RELEASE_CONSOLE_SEM() release_console_sem()
    +# endif
     #else
     #define NV_ACQUIRE_CONSOLE_SEM()
     #define NV_RELEASE_CONSOLE_SEM()
    
  5. Reinstall linux-headers to recompile modules