Linux command for system information
MotherBoard :-
dmidecode -t 2
CPU :-
cat /proc/cpuinfo
Memory :-
cat /proc/meminfo
HardDisk :-
fdisk -l
System Configuration :-
dmidecode > hardwaredetails.txt
ll
less hardwaredetails.txt
MotherBoard :-
dmidecode -t 2
CPU :-
cat /proc/cpuinfo
Memory :-
cat /proc/meminfo
HardDisk :-
fdisk -l
System Configuration :-
dmidecode > hardwaredetails.txt
ll
less hardwaredetails.txt
Make sure that machine boot from Cd-Rom.
How to Know Machine boot from Cd-Rom?
After start computer
Continuously Press “Esc” or “F2” or “F1″or “Del” key on keyboard
enter bios setup
Go to Boot order
select boot option for boot the machine from this drive.
i.e Floppy Drive Or Cd-Rom or Hard Drive
suppose we can choose a Cd-Rom drive means machine boot from Cd-rom
Insert windows 98 Bootable Cd into Cd-Rom
save and exist bios setting
after existing Bios ,the computer will restart and booting from Cd-Rom
Microsoft Windows 98 Startup Menu Windows open
shown is 3 option we can choose “start computer with Cd-Rom support”
When if finishes loading, you will see the above screen with A:.
Type fdisk and then press enter
next window ask for enable large disk support
after enable large disk support
then choose display partion setup information
delet non-dos partition
restart machine
then given a format command
i.e A;>format c: /s /q
after formating the machine
use following command for Grub uninstaller
A:>fdisk /mbr
How to check date?
Type date command
#date
Thu May 12 15:43:04 IST 2011 (Shown on today date)
How to set date and time?
For example, set new data to 2 Oct 2006 18:00:00, type the following command as root user:
# date -s "2 OCT 2006 18:00:00"
OR
# date --set="2 OCT 2006 18:00:00"
You can also simplify format using following syntax:
# date +%Y%m%d -s "20081128"
To set time use the following syntax:
# date +%T -s "10:13:13"
Where,
Use %p locale’s equivalent of either AM or PM, enter:
# date +%T%p -s "6:10:30AM"
# date +%T%p -s “12:10:30PM”
Courtesy :-http://www.cyberciti.biz/
In Netcore EMS (Emergic Mailserv) user reported that their authenticated proxy is not working, after login to suadmin i came to know that ldap service is not running, i tried to restart it, but got the error , then from backend (putty) i try to restart the same service , but got the error, the following artical help me to solve the issues. thanks very much http://techarold.blogspot.com/ forums.
courtesy : http://techarold.blogspot.com/2006/07/more-openldap-recovery.html
I accidentally killed power to my Linux box while I was plugging in a new router. No biggie, except OpenLDAP wouldn’t start again at reboot because the database got corrupted. I’m beginning to think that trying to use ldap as an address book just isn’t worth it.
Anyway, problem resolved, thanks to PaulHowarth/Blog.
Here’s the error I was getting:
[root@ldap]# /etc/rc.d/init.d/ldap start
Checking configuration files for slapd: bdb_db_open: unclean shutdown detected; attempting recovery.
bdb_db_open: Recovery skipped in read-only mode. Run manual recovery if errors are encountered.
bdb_db_open: Database cannot be opened, err 13. Restore from backup!
bdb(dc=mydomain,dc=com): DB_ENV->lock_id_free interface requires an environment configured for the locking subsystem
backend_startup_one: bi_db_open failed! (13)
slap_startup failed (test would succeed using the -u switch)
[FAILED]
stale lock files may be present in /var/lib/ldap [WARNING]
Here’s how the database was repaired:
[root@ldap]# /usr/sbin/slapd_db_recover -v -h /var/lib/ldap
Finding last valid log LSN: file: 1 offset 5315883
Recovery starting from [1][5315755]
Recovery complete at Sun Jul 30 11:31:56 2006
Maximum transaction ID 8000040d Recovery checkpoint [1][5315883]
I also used the notes from PaulHowarth/Blog to add a checkpoint directive to slapd.conf.
courtesy : http://techarold.blogspot.com/2006/07/more-openldap-recovery.html