Monday, October 23, 2006

Changing root's password


This trick works well if you have forgotten your superuser password, type linux single at a
LILO/Grub prompt. Then passwd once the system has started and you are at a console.

Grub:
If you are using grub go to the relevant line (the one with the kernel and various options) then
press 'e' for edit and add "single" on to the end of the lines that boot the kernel. Then hit
[Enter] and press 'b' (to boot).

Lilo:
If you are using lilo press escape and type " linux single" and then hit [Enter] to boot.

Security Warning
This is also a basic security hazard if you have others using your computer and
security is a concern, you may like to add a password to your LILO or Grub prompt to
stop this from being done.

Thursday, October 19, 2006

How to restore Grub from a live Ubuntu cd.

This will restore grub if you already had grub installed but lost it to windows install or some other occurrence that erased/changed your MBR so that grub no longer appears at start up or it returns an error.
Boot into the live Ubuntu CD. This can be the live installer or older Live session of Ubuntu cd.
When you get to the desktop, open a terminal and type following commands.
sudo grub
This will get you a “grub>” prompt.
>find /boot/grub/stage1
This will returns a location.If you have more than one, select the installation that you want to provide the grub files.
Next, THIS IS IMPORTANT, whatever was returned for the find command use it in the next line (you are still at grub>. when you enter the next 3 commands)
>root (hd?,?)
Again use the value from the find command i.e. if find returned (hd0,1) then you would enter root (hd0,1)
Next enter the command to install grub to the mbr.
>setup (hd0)
Following output will be displayed on your screen if the grub re-installed successfully.
Checking if "/boot/grub/ stage1" exists... yes
Checking if "/boot/grub/ stage2" exists... yes
Checking if "/boot/grub/ e2fs_stage1_ 5" exists... yes
Running "embed /boot/grub/e2fs_ stage1_5 (hd0)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_ stage1_5 (hd0,10)"... failed (this is not fatal)
Running "install /boot/grub/stage1 d (hd0) /boot/grub/stage2 p /boot/grub/menu. lst "... succeeded
Done.
Finally type the “quit” to exit from the “grub>” prompt. Then reboot the machine. So you will see the grub menu at startup.

Use attached script to install firefox2RC3 in linux

instructions:
1) copy script in to your home folder
2) download firefox2RC3 from
(linux only ) smb://192.248. 17.175/tuxy/ application/ firefox-2. 0rc3.tar. gz
ftp://ftp.mozilla. org/pub/mozilla. org/firefox/ releases/ 2.0rc3/linux- i686/en-US/ firefox-2. 0rc3.tar. gz
3) copy it to home folder
4) run script
# ./bonechoRC2. sh

5) have fun!

note: U can find windowx versions also @ ftp://ftp.mozilla. org/pub/mozilla. org/firefox/ releases/ 2.0rc3/win32/ en-US/Firefox% 20Setup%202. 0%20RC%203. exe

Tuesday, October 03, 2006

glade(interface designer for C)

Hey Guys,

A Interface designer which produces code in C was something which I have
been searching for a long time. I found a application which I sense is a
Great Tool which enables Interface Designing in GTK+

Glade is a free user interface builder for GTK+
and GNOME , released under the GNU GPL License
.

The user interfaces designed in Glade are saved as XML, and by using the
libglade library these can
be loaded by applications dynamically as needed. (Glade can also
generate C code, though this isn't recommended for large applications.)

By using libglade, Glade XML files can be used in numerous programming
languages including C, C++, Java, Perl, Python, C#, Pike, Ruby, Haskell,
Objective Caml and Scheme. Adding support for other languages is easy too.

extracted from the GLADE site
http://glade.gnome.org/

Search for "glade" in Synaptic and install, then ur ready to design
GUI's
if the cache doesn't work you can install the 3 files attached here..

But you will have to learn a bit about programming in GTK to make full
use of this.

Lets Start making cool Interfaces..

All the best

glade_2.12.1-1ubuntu5_i386.deb
404K Download

glade-2_2.12.1-1ubuntu5_all.deb
102K Download

glade-common_2.12.1-1ubuntu5_all.deb
150K Download

vista theme on ubuntu

HI guys,
U can install vista theme on ubuntu. For that download
(GTK+Icons+Metacity) and
(Screenshot icon theme Dropline Neu!) from following
URL.
http://www.gnome-look.org/content/show.php?content=44570
Next,

1.Click on the Main Menu button. Go to System>Preferences>Themes.

2.Click on the Install theme button , open the bz2 or tar file.

3.Next install theme Dropline Neu.

4.In the Controls Tab select Lintsa_3 , in the Window border tab select
Linsta_3 and in the Icons tab , select Dropline Neu.

4. Save the theme as Vista.
Have nice day!

blender( equivalent to 3d max)

There are some great Tutuorials in the Wiki Books in the Link given Below
about Using BLENDER

This book is a series of tutorials arranged in a sequence to help the newbie
user become a Blender expert.
Noob_to_Pro

Here is the WIKI BOOK home for WikiBook
Blender

Installing Packges to ubuntu linux

A main problem for us who do not have Fast Internet access at home when
using ubuntu is the difficulty when installing packages.

To overcome this, THIS IS THE BEST SOLUSION

All the packages that you install in the lab's Machine are stored in
the /var/cache/apt/archives folder. You can take these .deb
packages and install the packages with the dependencies as well.

Here are little tips to create an apt cache on a local hard disk

...............................................................................................................................................
Step 1:
Install dpkg-dev package
sudo apt-get install dpkg-dev

...............................................................................................................................................

Step 2:
Create a directory where ever you like and copy your all
deb packages to it.
use a example dir to show how to do it,
#mkdir /var/newCache
#cp -a /folder of deb packages/ *.deb /var/newCache
...............................................................................................................................................

Step 3:
Open your favourite terminal and go to the directory
(folder) with deb packages
eg:-
#cd /var/newCache

...............................................................................................................................................

Step 4:
Run dpkg-scanpackages, send the output to a file Packages
and compress it.

#dpkg-scanpackages . /dev/null > Packages
#gzip Packages

You can also do the previous step in one command

#dpkg-scanpackages . /dev/null | gzip - > Packages.gz
...............................................................................................................................................

Step 5:
Add the directory (say /var/newCache) into /etc/apt/sources.list

deb file:///var/newCache ./

(NOTICE: The directotry '/foo/bar' should be replaced with your
actual directory path which contains deb packages)
...............................................................................................................................................
Step 6
Finally run `apt-get update' to update apt's list of packages.
#apt-get update

Good luck!!!!!

State Machine implementation for Spring Boot Project

Well I do not write a lot about it. You have plenty of resources to read about it. The behavior of state machines can be observed in many d...