Archive for the ‘Linux’ Category.
18th January 2009, 07:59 pm
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”.
After 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…
9th December 2008, 12:37 am
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…
6th October 2008, 10:33 am
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…
30th August 2008, 06:16 pm
I got a server yesterday and the onboard driver does not seems to work with CentOS and I found out that this require manual installations of the network driver to get it working.
02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
Subsystem: ASUSTeK Computer Inc. Unknown device 826e
Flags: bus master, fast devsel, latency 0, IRQ 145
Memory at fbefc000 (64-bit, non-prefetchable) [size=16K]
I/O ports at d800 [size=256]
Expansion ROM at fbec0000 [disabled] [size=128K]
Capabilities: [48] Power Management version 3
Capabilities: [50] Vital Product Data
Capabilities: [5c] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Capabilities: [e0] Express Legacy Endpoint IRQ 0
You need to get yourself on the internet first, so you can slot in a PCI network card for the time being while you load the drivers.
Download the driver from http://www.marvell.com/drivers/search.do
Install the tools required to compile
yum install gcc gcc-c++ kernel-devel patch which make bzip2
Unzip the driver file downloaded from Marvell
bunzip2 install_v10.61.3.3.tar.bz2|tar xvf -
cd DriverInstall/
Execute the installations command
sh install.sh (Choose “1″ then “Y”)
Now load the modules and you should get the output as shown
modprobe sk98lin
lsmod|grep sk98lin
[root@localhost ~]# lsmod | grep sk98lin
sk98lin 166740 1
Finally you should be able to see the interface settings
ethtool eth1
Enjoy!
24th August 2008, 01:05 am
Well, I was trying to install a CLI for a RAID controller and I bump into this slight problem which stall me for around 15 mins.
Problem:
error: Failed dependencies:
libstdc++-libc6.2-2.so.3 is needed by StorMan-4.00-00.i386
Solution:
wget http://mirror.averse.net/centos/5/os/i386/CentOS/compat-libstdc++-296-2.96-138.i386.rpm
rpm -ivh compat-libstdc++-296-2.96-138.i386.rpm
Hope this helps …
16th June 2008, 01:14 am
Today is the third time I bump into another motherboard that is using the new Ethernet driver in Linux. Well, in order to prevent future headache for me.
1) wget ftp://202.65.194.211/cn/nic/r8168-8.006.00.tar.bz2
2) bunzip2 -cd r8168-8.006.00.tar.bz2|tar xvf -;cd r8168-8.006.00
3) make
4) depmod -a
5) insmod ./src/r8168.ko
6) lsmod | grep r8168 (It should return the following result)
[root@localhost ~]# lsmod | grep r8168
r8168 34708 0
7) ifconfig -a
Hope this helps someone out there
1st June 2008, 07:34 am
I do have quite alot of ISO images store on my linux file server at home, in order not to burn those ISO images on a CD and wasting resources, I will mount it and run it through samba.
mount /home/tanfwc/vs2005pro.iso /mnt -o loop=/dev/loop1
After which, I will set samba to read /mnt as a public shared folder where my family members can run it as well
23rd March 2008, 03:26 am
Tabbed program are popular nowadays as it can save you alot of space if you are running alot of smiliar program and don’t want to waste valuable space in your taskbar.
Recently, I have found a program that has helped me alot as I am always running more than 5 SSH sessions. Check this out.
http://puttycm.free.fr/
Hope this helps someone out there as well
29th February 2008, 12:35 am
Well, I just got myself a barebone VPS today. It seems that the provider’s VPS template did not include yum. So I go ahead and grab the rpm from centos directly.
wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.2.8-9.el5.centos.1.noarch.rpm
wget http://mirror.centos.org/centos/5/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm
wget http://mirror.centos.org/centos/5/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm
wget http://mirror.centos.org/centos/5/os/i386/CentOS/rpm-python-4.4.2-48.el5.i386.rpm
wget http://mirror.centos.org/centos/5/os/i386/CentOS/python-urlgrabber-3.1.0-2.noarch.rpm
wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm
wget http://mirror.centos.org/centos/5/os/i386/CentOS/m2crypto-0.16-6.el5.2.i386.rpm
wget http://mirror.centos.org/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
rpm -Uvh *.rpm
Hope this helps someone out there
Updates (02 Aug 2008): Update the RPM packages as it has been changed on the upstream provider.
15th February 2008, 03:43 am
Well, just not long ago one of my friend MSN me for help regarding this ‘training’ CentOS machine not responding to HTTP request which he has installed Apache on the CentOS via yum.
First thing come to my mind, and he shows me the output of iptables -L
<--Too long, so I strip it off
-->
Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp any
ACCEPT esp -- anywhere anywhere
ACCEPT ah -- anywhere anywhere
ACCEPT udp -- anywhere 224.0.0.251 udp dpt:mdns
ACCEPT udp -- anywhere anywhere udp dpt:ipp
ACCEPT tcp -- anywhere anywhere tcp dpt:ipp
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Continue reading ‘Redhat Default Firewall’ »