weblog d’un abbe

20070823

Modified Xorg configuration last night

Filed under: Personal — abbe @ 1748
[wahjava@chatteau X11]$ diff -u xorg.conf.old xorg.conf
--- xorg.conf.old       2001-07-12 21:30:00.000000000 +0530
+++ xorg.conf   2007-08-22 21:30:00.000000000 +0530
@@ -15,11 +15,12 @@

 Section "Monitor"
        Identifier   "Monitor0"
-       ModelName    "LG StudioWorks 452V"
-       HorizSync    31.5 - 54.0
-       VertRefresh  50.0 - 120.0
-       ModeLine     "1024x768@60" 0.0 1024 0 0 0 768 0 0 0
+       ModelName    "ViewSonic VX1932wm"
+       HorizSync    30.0 - 82.0
+       VertRefresh  60.0 - 85.0
+       ModeLine     "1440x900@75" 136.75 1440 1536 1688 1936 900 903 909 942 -hsync +vsync
        Option       "dpms"
+       DisplaySize  408.94 254.0
 EndSection

 Section "Device"
@@ -35,7 +36,7 @@
        SubSection "Display"
                Viewport   0 0
                Depth     24
-               Modes    "1024x768" "800x600" "640x480"
+               Modes    "1440x900" "1024x768" "800x600" "640x480"
        EndSubSection
 EndSection

20070818

DHCPv6 client with support for link-layer address DUID

Filed under: Research — Tags: , , — abbe @ 2124

WoW, latest version of Dibbler DHCPv6 client supports Link layer addressed based DUID, which means now server can advertise client specific stuff more easily, like assigning them static IPv6 addresses. So, time for setting up an IPv6 network using DHCPv6 :)

20070816

My first vim hack: syntax file for Coco/R

Filed under: Hacking — abbe @ 2113

Few days back I hacked a vim syntax file for Coco/R. It is available under Vim license. Download it from http://wahjava.googlepages.com/coco.vim . To install it, see Installing a syntax file, and filetype page.

If you’re feeling lazy, looking for simple steps:

[abbe@chatteau ~] mkdir -p ~/.vim/syntax && wget -P ~/.vim/syntax http://wahjava.googlepages.com/coco.vim
[abbe@chatteau ~] cat >~/.vim/filetype.vim <<EOF
" my filetype file
if exists("did_load_filetypes")
    finish
endif
augroup filetypedetect
    au! BufRead,BufNewFile *.atg    setfiletype coco
augroup END
EOF

NOTE: Above steps, might alter your existing vim setup, so better read the vim manual :-P. Anyways, happy viming… :-)

20070807

freed.in

Filed under: Fun, Yippee!! — abbe @ 0000

freed.in - Big Banner - 728x90

India Linux User Group, Delhi‘s annual free software conference. jointly organised by Jawaharlal Nehru University and ILUG-D .

20070803

GNOME Online Desktop rocks :)

Filed under: Experiences, Yippee!! — abbe @ 0118

GNOME Online Desktop
One of the coolest things I’ve seen in my life :-D

20070801

Wanna run a nested X server

Filed under: Hacking — abbe @ 2126

Running a nested X server Xephyr in Fedora 7 is so easy. Follow the following steps:

  1. Install xorg-x11-server-Xephyr package from Fedora repositories using yum install xorg-x11-server-Xephyr command
  2. Start 2 instances of terminal (e.g. xterm) in already running X server.
  3. In 1st instance of terminal, execute xwininfo |fgrep "Window id".
  4. Now with the crosshair cursor, select 2nd instance of the terminal.
  5. Note on the window id which prints on the 1st terminal. e.g. 0x4c00022 is the Window ID from following output:
    xwininfo: Window id: 0x4c00022 "wahjava@chatteau:~"
  6. Now in 1st instance of terminal, execute Xephyr -parent 0x4c00022 -ac :1 &.
  7. Now to run gedit in new Xephyr X server, execute following in 1st instance of terminal:
    [wahjava@chatteau ~]$ DISPLAY=:1 metacity&
    [5] 6365
    [wahjava@chatteau ~]$ DISPLAY=:1 gedit&
    [6] 6366
  8. So if there is anything you wanted to execute in this Xephyr X server, you’ve to make sure that you’ve DISPLAY=:1 environment variable set.
  9. When done playing with your Xephyr X server, do killall Xephyr.
  10. Back in 2nd terminal instance :)

Some screenshots:

xterm before starting Xephyr xterm after starting Xephyr gedit + metacity running in Xephyr in xterm

This might not be a recommended way to run Xephyr. So don’t complain, anyways Happy Xephyring… :-D

Create a free website or blog at WordPress.com.