Archive for » September, 2008 «

Wednesday, September 24th, 2008 | Author: number.0

I managed to have CouchDB running with Django inside mod_python, everything was installed on my Slackware 12.1 development server.

1. mod_python is compiled for Apache2, if you don’t know how then proceed here
2. I used official release from Django, check out here if you need help with the installation
3. Install Erlang, CouchDB as described in my previous post
4. Install CouchDB Python binding is easy with easy_install couchdb
5. I set up a virtualhost to run my couchdb-django testing (/etc/httpd/extra/httpd-vhosts.conf)


ServerAdmin abc@abc.com
DocumentRoot “/srv/djangocouchdb”
ServerName django.dev.com

Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all


PythonPath “[r'/srv/'] + sys.path”
SetHandler python-program
SetEnv DJANGO_SETTINGS_MODULE djangocouchdb.settings
PythonHandler django.core.handlers.modpython
PythonOption django.root /couchdb
PythonDebug On

(well, i made my /etc/hosts file to have entry for django.dev.com for sure )

6. Then I followed instruction from HERE to create my django project and couchdb app inside that project. And everything worked, just with a little problem (access denied) with PYTHON_EGG_CACHE which in my system refered to /root/.python-eggs. I reset PYTHON_EGG_CACHE to /tmp and restarted my server, then everything worked fine.

Now it’s time to explore more :)

Share/Save/Bookmark

Category: programming, python  | Tags: , ,  | 2 Comments
Thursday, September 18th, 2008 | Author: number.0

Time to play with CouchDB, but wait …
I need to compile Erlang and it came out unsuccessful with error

obj/i686-pc-linux-gnu/opt/smp/hipe_x86_signal.o: In function

`sigaction’: hipe_x86_signal.c:(.text+0xa9): undefined reference to

`INIT’ hipe_x86_signal.c:(.text+0xff): undefined reference to

`__next_sigaction’ obj/i686-pc-linux-gnu/opt/smp/hipe_x86_signal.o: In

function `hipe_signal_init’:

hipe_x86_signal.c:(.text+0×118): undefined reference to `INIT’

hipe_x86_signal.c:(.text+0×148): undefined reference to `INIT’

hipe_x86_signal.c:(.text+0×163): undefined reference to

`__next_sigaction’ hipe_x86_signal.c:(.text+0×190): undefined reference

to `INIT’ hipe_x86_signal.c:(.text+0×1d9): undefined reference to

`__next_sigaction’ collect2: ld returned 1 exit status

After looking at erts/emulator/hipe/hipe_x86_signal.c , it turned out to be the check for glibc version which should be >=3 && <=6, and my current glibc is 2.7. So just for it working, I modified the code to check for my glibc version and yaaa… it worked!!!

CouchDB require ICU to work, so i hooked up linuxpackages and get ICU package, now is the time to build CouchDB package, well I used src2pkg to build my Slackware package.

Running CouchDB with couchdb user

As root, do:

adduser couchdb
chown -R couchdb /usr/var/lib/couchdb /usr/var/log/couchdb
ln -s /usr/etc/rc.d/couchdb /etc/rc.d/rc.couchdb
/etc/rc.d/rc.couchdb start

Everything went smoothly … time to relaxxxx !!!

Share/Save/Bookmark

Category: Uncategorized  | Tags: ,  | Leave a Comment
Tuesday, September 16th, 2008 | Author: number.0

Here is full instruction of how to set up a Network printer work using CUPS.

http://www.linuxquestions.org/linux/answers/Networking/Setting_Up_a_Network_Printer_using_CUPS

Happy Slackware ^^

Share/Save/Bookmark

Category: linux, slackware  | Tags: ,  | Leave a Comment
Thursday, September 11th, 2008 | Author: number.0

Okay, here is a list of steps that install vmware-tools on Slackware 12.1
You need to install PAM before proceding the instruction, get PAM from LinuxPackages.net & install it
(http://www.linuxpackages.net/search_view.php?by=name&name=pam&ver=12.1)

 After that, do:

  1. cd /etc/rc.d  
  2. for V in {0,1,2,3,4,5,6}; do ln -s /etc/rc.d /etc/rc.d/rc${V}.d; done  
  3. mkdir /etc/pam.d  
  4. cp /etc/rc.d/rc.inet1 /etc/init.d/network  
  5. cp /etc/rc.d/rc.inet1 /etc/init.d/networking
  6. In VMWARE, select Settings => Install Vmware Tools
  7. $mount /dev/cdrom /mnt/cdrom
  8. cp /mnt/cdrom/vmware*.tar.gz /tmp
  9. cd /tmp
  10. tar zxf vmware*.tar.gz
  11. goto the extracted folder and $./vmware-install.pl  

Share/Save/Bookmark

Category: linux, slackware  | Tags: ,  | Leave a Comment
Thursday, September 04th, 2008 | Author: number.0

Yep, It’s google again to make a noise among the browsers war. Chrome has been out and was an impressive appearance, at least for me. And now it’s Opera & Chrome for my daily browsing experiences :).

Keep it up GG!!

Share/Save/Bookmark

Category: Uncategorized, application  | Tags: ,  | Leave a Comment