Category Archives: debian

tips and tricks for debian newbies

1) vi is not working as expected, then please use vim, also if you wish to have context highlighting then remove “vim-tiny” and install “vim” and uncomment “syntax on” from /etc/vim/vimrc.

2) if you install wine the instead of trying to setup the environment on your own try wine-doors. (wine-tools is also a good tool but is now getting older and is unmaintained now also it seems to break a lot.)

Continue reading

how to change root password in debian

This is one of the problem faced by many person’s

“what if i lost the root password”

FOR DEBIAN

First thing that comes in mind is “use single user mode” but the answer is NO.
coz debian takes the system security to one more level up and by default ask’s for the root password.

so the BIG QUESTION IS HOW TO proceed further

follow these steps

1) on grub-boot prompt.
press “e” to enter edit mode

2) then press downarrow to reach the line that starts with “kernel ”
press “e” again

3) at the end of this line type in “init=/bin/sh” or “/bin/bash”

4) then press enter to make that change and press “b” to boot

in a few seconds you will be on your “#” prompt

5) only one step left
“mount -o remount rw /”

this step is necessary coz in this case root file system is mounted as read only.

6) finally type “passwd” and you get the screen to change the password

and then type in “init 6″ or “reboot”

NOTE FOR TECHNICAL USERS
those who are looking for the technical details, the main work is the init command that we passed as an argument to kernel, it told kernel to specifically run the command specified in parameter instead of working on normal routine.

TRICK = if you have any program you wish to run instead of this then you can do that too using init command only.

FOR REDHAT

use single user mode and change the password.

but that’s a potential pitfall. coz any person can start system in single user mode and get the password changed.

bootsplash a.k.a. Splashy on Debian

Tired of watching screens full of hardware releated info scrolling past during Startup and shutdown.

Welcome to the world of Splash Screen, Screenshots Here

In earlier stage bootsplash screen was configured throught a lot of kernel hacking and using it has a hell lot of hardwork including recompilling of kernel.

But the newest form SPLASHY in a userspace implementation of kernel so that it provides all the necessary features right at userspace.

In debian installing splashy is just a matter of few commands

1) IF you don’t have unstable repo’s in your source list then follow it otherwise skip to step 3

echo "deb http://http.us.debian.org/debian unstable main contrib non-free" >> /etc/apt/sources.list
echo "deb-src http://http.us.debian.org/debian unstable main contrib non-free" >> /etc/apt/sources.list

2) then apt-get update

3) last apt-get install splashy splashy-themes

After this what you need to is just one thing

open your menu.lst (/boot/grub/menu.lst)
and in the line with kernel value add these words at the end of that line

"vga=791 splash quiet"

Ex : – kernel /boot/vmlinuz ro root=/dev/hda8 ro vga=791 splash quiet

4)THIS STEP IS OPTIONAL
To run Splashy from initramfs you need to create a new initramfs image. An initramfs image is a little system that is

launched during the kernel’s initalization, before the system starts.

During Splashy’s installation Splashy sets everything up so you can get it integrated into initramfs whenever you wish by

just running a single command.

But first you must edit /etc/default/splashy and set ENABLE_INITRAMFS=1 so that Splashy will integrate itself into future initramfs images.

update-initramfs -u -t -k `uname -r`

then reboot and you will have a slashy desktop

ADVANCE SETTINGS

All the themes are by defaults installed in /etc/splashy/themes

configuration for splashy is in/etc/splashy/config.xml

and configuration for respective themes is available in /etc/splash/themes/ in XML file format

some of the configuration’s that can be done include changing the colour theme as well as the progress bar size color

direction and image shown.

TO CHANGE THEME

Once the theme is installed, just run splashy_config -s where name is the name of the theme

To get the complete list of all the splashy themes installed just type in

splashy_config --info

I hope this article will help you all.

splashy

ONE MORE THING I WISH TO SHARE TODAY.

while looking for webhosting either shared or dedicated hosting solution and web hosting providers i came across two sites which i wish to share with everyone. this web marketing association, they actually look at the possibility of business opportunity as well as seo on your website. while the second one is web marketing association award for linux hosted sites which made me feel proud about my decision (made 8 yrs ago) to start working in linux field…….

Compiz Up and running in Debian

I finally was able to successful run compiz on debian based PC.

A lot of work has to be done on Debian to make it stand up in front of REDHAT. but even without those enhancements, It is a lot more better then redhat and other rpm based ones in terms of its support on packages both online and off line.

In order to configure COMPIZ Help taken from http://lunapark6.com/debian-40-etch.html

Befor starting to act on the below listed steps, you should know about the basic requirement of the compiz manager, The bare minimum is 3D capable Graphic’s card and atleast 512 MB of ram.

The simple procedure is as follows

Install Compiz using apt-get

#apt-get install compiz

this will install compiz along with its dependencies

now you need to manually perform some steps in the file : /etc/X11/xorg.conf

then added these two lines under the “Screen” section :

Option “XAANoOffscreenPixmaps”
Option “AddARGBGLXVisuals” “true”

then added these lines under “Device” :

Option “AllowGLXWithComposite” “true”
Option “RenderAccel” “true”

added one line under “Server Layout” :

Option “AIGLX” “on”

Finally at the end of the file I added these lines :

Section “Extensions”
Option “Composite” “Enable”
EndSection

After making the following chages with your fav. text editor

Add “compiz –replace” to “Desktop -> Preferences -> Sessions -> Startup Programs”.

Now restart the Xserver, Better is to restart the whole system.

After you login you will directly be in a compizified environment.