Showing posts with label it. Show all posts
Showing posts with label it. Show all posts

Thursday, 31 May 2012

x86_64 Linux Error: gnu/stub-32.h missing error and solution


[root@localhost crunch3.2]# make
Building binary...
/usr/bin/gcc -Wall -lm -pthread -std=c99 -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 crunch.c -o crunch
In file included from /usr/include/features.h:352,
                 from /usr/include/assert.h:36,
                 from crunch.c:225:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make: *** [crunch] Error 1

[root@localhost crunch3.2]# yum -y install glibc-devel

How do I fix this error?
yum -y install glibc-devel

Tuesday, 29 May 2012

Resetting forgotten root password on CentOS


Boot the system and when you see the following screen, press any key





At the following screen, press e



It will take you the following screen



Highlight the line with vmlinuz in it by using the arrow keys and press e. The next screen will look like below




Now type single or init 1 at the very end of the line so.



Then press enter and b to boot the system with the new argument
The system will boot into single user mode and you will see bash prompt like below



Now change the password
 passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
type in the new password and then reboot

reboot

to restart the system.