Sunday, July 29, 2012

How to Automatic root login in Debian 6.0 without GUI (xserver)?

You can enable the autologin by modifying the inittab file.

#vim /etc/inittab

Serach for the line.

1:2345:respawn:/sbin/getty 38400 tty1

Replace with as follow

1:1235:respawn:/bin/login -f root tty1 </dev/tty1 >/dev/tty1 2>&1

After modifying the inittab restart the system.

Note: before modifying the inittab, keep the backup of it.

Errors were encountered while processing: crossplatformui:i386 E: Sub-process /usr/bin/dpkg returned an error code (1)

We can  sort out issue  "Errors were encountered while processing:  crossplatformui:i386 E: Sub-process /usr/bin/dpkg returned an error code (1)" by by passing dpkg.

First, we have to move into dpkg dir and backup status file.

#cd /var/lib/dpkg/

#status status.orig

After that open it to edit:

# vim status

Search for a block something like that:

    Package: crossplatformui

    ..

    ..

    Package: another_package_name

Here, you have to delete only crossplatformui block. This means starting with Package: crossplatformui and till the other package block. After deleting the block try to remove it again:

#sudo dpkg -r crossplatformui

Tuesday, July 24, 2012

Troubleshooting Raid Issue


1. My problem from the other day was rebuilding a raid when I got ecc errors on a different disk than the one being rebuilt. I did a rescan and the ecc errors went away, but the rebuild seemed to be stuck. I contacted 3ware, makers of our raid card and was told to do this:

//cdfs3> info c0

Unit  UnitType  Status         %Cmpl  Stripe  Size(GB)  Cache  AVerify  IgnECC
------------------------------------------------------------------------------
u0    RAID-5    OK             -      64K     1396.95   ON     OFF      OFF
u1    RAID-5    REBUILDING     89     64K     1396.95   OFF    OFF      OFF      

Port   Status           Unit   Size        Blocks        Serial
---------------------------------------------------------------
p0     OK               u0     465.76 GB   976773168     WD-WCANU1137212
p1     OK               u0     465.76 GB   976773168     WD-WCANU1090078
p2     OK               u0     465.76 GB   976773168     WD-WCANU1119743
p3     OK               u0     465.76 GB   976773168     WD-WCANU1089924
p4     OK               u1     465.76 GB   976773168     WD-WCANU1136981
p5     OK               u1     465.76 GB   976773168     WD-WCANU1109927
p6     DEGRADED         u1     465.76 GB   976773168     WD-WCAPW5103756
p7     OK               u1     465.76 GB   976773168     WD-WCANU1125288     

//cdfs3> maint remove c0 p6
Exporting port /c0/p6 ... Done.