Kloxo lxadmin reset password
To reset lxadmin, you can do through SSH with just two commands.
cd /usr/local/lxlabs/lxadmin/httpdocs
lphp.exe ../bin/common/resetpassword.php master mypassword
Enjoy!
Life about me!
To reset lxadmin, you can do through SSH with just two commands.
cd /usr/local/lxlabs/lxadmin/httpdocs
lphp.exe ../bin/common/resetpassword.php master mypassword
Enjoy!
Sometimes if you suspect your file system is corrupted, you might want to run fsck to check against the file system. You just need to create a simple file at the root partition.
touch /forcefsck
reboot
Simple and easy =)
[adserver1:~]# service mysql start
Starting MySQL..Manager of pid-file quit without updating file [FAILED]
A silly mistake by me as I forget to disable the selinux after a fresh installation of a ad server =)
Hope this helps …
I am running some random check on the system that I handle. One of the Dell server controller is undetectable for unknown reason.
[svr3:/root]# omreport storage controller
No controllers found.
Before you start to panic, run the following command
modprobe mptctl
/etc/init.d/dataeng restart
Now try to execute the controller status command again.
[svr3:/root]# omreport storage controller
Controller SAS 6/iR Adapter (Slot 1)Controllers
ID : 0
Status : Ok
Name : SAS 6/iR Adapter
Slot ID : PCI Slot 1
State : Ready
Firmware Version : 00.25.47.00.06.22.03.00
Minimum Required Firmware Version : Not Applicable
Driver Version : 3.04.05
Minimum Required Driver Version : Not Applicable
Number of Connectors : 2
Hope this helps… =)
Accessing NTFS parition via Linux is pretty simple. Here is the steps to get it running in less than 10 mins
Let’s install some basic stuff.
1 | yum install gcc gcc-c++ make kernel-devel |
Setup Fuse
1 2 3 4 5 6 | wget http://jaist.dl.sourceforge.net/sourceforge/fuse/fuse-2.7.4.tar.gz tar zxvf fuse-2.7.4.tar.gz cd fuse-* ./configure make make install |
Next, download NTFS-3G from here
1 2 3 4 5 6 | wget http://www.ntfs-3g.org/ntfs-3g-2009.1.1.tgz tar zxvf ntfs-3g-2009.1.1.tgz cd ntfs-3g-* ./configure make make install |
Last but not least
1 2 3 | modprobe fuse mkdir /windows mount -t ntfs-3g /dev/sdb1 /windows |
You can then read/write your windows partition from /windows
Hope this helps …
Well, today I was deploying my Dell R300 happily when I run into some trouble.
I setup Dell OpenManage Server Administrator (OMSA) based on the instructions here.
wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
After which, I execute this command but it complain that “No package srvadmin-all available”.
yum install srvadmin-allAfter 1 hour of troubleshooting, I found a way to install OMSA.
The latest version at this point of writing for OSMA is 5.5, I have to force to install 5.4.1 first.
wget -q -O - http://linux.dell.com/repo/hardware/OMSA_5.4.1/bootstrap.cgi | bash yum install srvadmin-all
This will works for now. Grab a coffee and wait for it to finish installing first.
After you have installed 5.4.1, let’s upgrade to 5.5 now.
cd /etc/yum.repos.d/ sed -ie 's#OMSA_5.4.1#latest#' dell-hw-specific-repository.repo dell-hw-indep-repository.repo
Before you update, let’s make sure the srvadmin services is not running first.
srvadmin-services.sh status
Now, let’s update now and check the latest version
yum update rpm -qa|grep srvadmin-all
Expected result:
[svr3:/root]# rpm -qa|grep srvadmin-all srvadmin-all-5.5.0-364
Let’s start your OMSA and ready to go.
srvadmin-services.sh start
Visit your OMSA at https://IP-ADDRESS:1311/
Enjoy and hope this helps…
Today when I am deploying openvz machine, I activate the Linux Quota as I have some shell users throwing files on the machine. As such, this cause some issues when I reboot the machine (I always do this to simulate a remote reboot to see how well does the system react to keyboard errors and etc…)
After a successful reboot, I look at the Container status and I’m shocked to see all of the container are stopped. I try to start it up but I got the following error.
[svr2:/root]# vzctl start 210
Starting container …
vzquota : (error) Quota on syscall for id 210: File exists
vzquota on failed [3]
Immediately, I turn off the quota and remount the partition without any usrquota,grpquota. Bad move to activate Linux Quota on the host node as openvz has it’s own quota system running to keep track of disk space used by each of the container.
I guess I just need to create a VPS just to store my shell users
Hope this helps…
Bump into this slight issues when checking my development server box.
Can’t locate Cpanel/SpamAssassinSandBox.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/x86_64-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl) at /usr/bin/spamd line 27.
BEGIN failed–compilation aborted at /usr/bin/spamd line 27.
Solution:
/scripts/perlinstaller –force Mail::SpamAssassin
/scripts/restartsrv_spamd
/scripts/restartsrv_exim
Hope this helps…
Following the Vista User Profile restore which I have recently performed, I realized that Firefox is unable to download files for me properly. Whenever I clicked on any download links from websites, the files could not be downloaded.
A quick fix for this would be:
1. Opening Firefox User Profile in the following location:
C:\Users\[Username]\AppData\Roaming\Mozilla\Firefox\Profiles\
2. Locate prefs.js inside the User Profile folder. Open it using your favourite editor like Notepad++
3. Look for browser.download.dir:
user_pref(“browser.download.dir”, “C:\\Users\\[Old Username]\\Desktop”);
4. You will now replace the [Old Username] with [Username] that you are using now for your Windows.
5. Finally, you may download as usual now!
Good luck!
-michaelfoo
Few days ago I could not boot my Vista into my user profile. The system brought me into a temporary profile and I found that the system was throwing me Event ID 1502 and 1508 problem.
Event ID 1502:
Windows cannot load the locally stored profile. Possible causes of this error include insufficient security rights or a corrupt local profile.DETAIL – An I/O operation initiated by the registry failed unrecoverably. The registry could not read in, or write out, or flush, one of the files that contain the system’s image of the registry.
Event ID 1508:
Windows was unable to load the registry. This problem is often caused by insufficient memory or insufficient security rights.DETAIL – An I/O operation initiated by the registry failed unrecoverably. The registry could not read in, or write out, or flush, one of the files that contain the system’s image of the registry. for C:\Users\[username]\ntuser.dat
I have immediately checked my RAM usage and disk status but none of these corresponded to the error detail above. As such, I suspected my user profile was corrupted. Since UPHClean can no longer be used in Vista, I could only repair my user profile by:
1. Creating a New user, as well as a Temporary user. Both with Administrative permission
2. Log in as Temporary user, check “Show hidden files and folders” and uncheck “Hide protected system files” under Folder options in My Computer
3. Browse to C:\Users\[New User]\
3. Copy everything except ntuser.dat, ntuser.dat.log, ntuser.ini, into C:\Users\[New User]\
4. Reboot and login as New User
5. Check if everything has been restored. And finally remove Corrupted User and Temporary User from Vista User, not to forget its respective directories under C:\Users\
Good luck!
-michaelfoo