Buddha

Buddha
Seek

Tuesday, September 9, 2008

gdm was not starting on bootup

I had a sudden problem, I dunno how I came to it, but my gdm never started up when my laptop was booting.So the login process was not only long but damn boring as well, which included, inputting your password thrice :)

So I decided to change it. What I did was opened the dir /etc/rc5.d and edited the shell script named S30gdm and changed the value of

HEED_DEFAULT_DISPLAY_MANAGER=false (from true)

Then it worked for me ;)

gdm was not starting on bootup

I had a sudden problem, I dunno how I came to it, but my gdm never started up when my laptop was booting.So the login process was not only long but damn boring as well, which included, inputting your password thrice :)

So I decided to change it. What I did was opened the dir /etc/rc5.d and edited the shell script named S30gdm and changed the value of

HEED_DEFAULT_DISPLAY_MANAGER=false (from true)

Then it worked for me ;)

Sunday, August 31, 2008

Problem with Flash Player in Firefox 3.0, Ubuntu 8.04

Well there was a small problem with my Firefox, I had installed some flash player, which asked me to click the flash video in the page to enable it. I had installed libflashplayer.so as well, but it was always running the other library for flash-shockwave, i.e. libswfdecmozilla.so . Well I got it working.

Steps I followed are quite simple. I ran about:plugins on the firefox address bar, looked for the names of the .so player for playing flash and shockwave. I found the files in my system and removed all of them except , libflashplayer.so

Usually you can find the .so files in /usr/lib

Not it rocks

- Wabbit

Tuesday, June 24, 2008

Syntax highlighting on VIM

Hi,

Well wont you love to have the syntax/color highlighted in VI editor. Be it a C program or HTML, vim is a classy editor and of course we would love to have syntax highlighted on it.

Aint it ??

How to go ahead and achieve it.

The easiest way - in vim press :

the type 'syntax on'

To do it everytime the editor comes up automatically.

Search for a file called vimrc.
Generally it would be somewhere like /etc/vim/vimrc

Open the file and uncomment the line

"syntax on
to
syntax on [remove whatever is before that]

Play around, make changes, then next time vim is started, syntax is highlighted.

Follow: http://www.ph.unimelb.edu.au/~ssk/vim/syntax.html for actual documentation.


Chao.

Monday, June 2, 2008

How to export X display using Cygwin

Hi.
For most of those who would want to connect from a Windows machine on to a Linux/Solaris/Unix server and have the display imported, here is the method.

1. Download and install cygwin on windows.
2. After the installation is complete, run a cygwin bash shell.
3. type the following commands there

x -multiwindow&
export DISPLAY=[IP of ur machine]:0.0 [for me it was export DISPLAY=10.114.55.119:0.0]
xhost +


4. Telnet to the remote machine and set the DISPLAY variable with your machine's IP
export DISPLAY=[IP of local machine]:0.0

5. start any application in the background.
firefox&

Monday, May 26, 2008

Steps for configuring Apache HTTP Daemon on Solaris x86

- Get the source code and untar it and then enter the directory.
- run configure
- run make
- run make install
- become super user
- export the binary path [ /usr/local/apache2/bin ]
- export the libraries path [ /usr/local/lib and /usr/lib]
- edit the Group# from Group# -1 to Group# 0 [ for root ] in /usr/local/apache2/conf/httpd.conf
- edit the Username from nobody to ‘smoke’ in the same file, although leaving this untouched does not cause any problem [ It is recommended by the online manual to create a new user to run the server , and not to set the user as root ]
- run apachectl start
- run firefox and open the link http://localhost which tells about the status of the server.
- for logs look into /usr/local/apache2/logs