8
Mar
Posted in CentOS by carlosap |
$ sudo vim /etc/mail/sendmail.mc
Sendmail slow to start
It was all about the hostname for some reason. I was using a
FQDN in the host file but for some reason sendmail couldn’t resolve
that name. I put it back to localhost and everything seems to have gone
back to normal.
“Open Mouth, Insert Foot and Chew!”
8
Mar
Posted in CentOS by carlosap |
Well I have Sun’s JDK installed, so I will provide instructions on this.
Download the jdk-6u1-linux-amd64-rpm.bin file: http://java.sun.com/javase/downloads/index.jsp
When the download is completed and from where the file resides type as root type:
chmod u+x jdk-6u1-linux-amd64-rpm.bin
./jdk-6u1-linux-amd64-rpm.bin
Press the space a number of times and answer yes at the end.
Next you will want to follow the instructions I provided in this thread:
http://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=8390&forum=38
If you also want the java plugin for say the 64-bit version of firefox and/or seamonkey then download the file j2re-1.4.2-03-linux-amd64.bin from one of the mirrors listed here: http://ftp.cica.es/pub/java-linux/JDK-1.4.2/amd64/03/ located in the /JDK-1.4.2/amd64/03/ directory.
Copy the file to someplace like /usr/local (where I copied the file to) then do as root;
chmod u+x j2re-1.4.2-03-linux-amd64.bin
./j2re-1.4.2-03-linux-amd64.bin
mkdir /usr/lib64/mozilla/plugins
ln -s ./j2re1.4.2/plugin/amd64/mozilla/libjavaplugin_oji.so /usr/lib64/mozilla/plugins/libjavaplugin_oji.so
8
Mar
Posted in CentOS by carlosap |
1:hpmouse ########################################### [100%]Please read the Licence Agreement for this software at
/opt/hp/hpmouse/license
By not removing this package, you are accepting the termsof the “HP Proliant Essentials Software End User License Agreement”.
********** NOTICE *************Please follow the steps below to configure this system.cd /opt/hp/hpmouseRun “sh ./hpmouse activate” to configure X.The X server must be restarted for the changes to take effect.See /opt/hp/hpmouse/hpmouse-README for details
27
Feb
Posted in CentOS by carlosap |
compat-libstdc++-33–
sudo ./install
Loading…
/home/user/rpms/dpx/v3.10-sp4/lin/x86_64/dplincin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
$ yum install compat-libstdc++-33–
26
Feb
Posted in CentOS by carlosap |
The solution was as simple as "ethtool -K eth0 tx off" on the domU's and
"ethtool -K eth0 tx on" on the dom0's. After turning the tx checksumming off
the network speed is faster and doesn't seem to be dropping packets at all
anymore.
I hope this saves people some time and I was not having fun at all trying to
fix this problem.
http://lists.xensource.com/archives/html/xen-users/2007-01/msg00460.html
24
Feb
Posted in CentOS by carlosap |
Install Linux OS and Additional Packages
Most of the Linux installation is straightforward, except for the disk configuration. This is explained in some detail.
1. Boot the first Linux CD/DVD and start the installation.
2. The installation procedure will help you partition the disk. We suggest that the disk be partitioned using LVM. Put Linux in the first Volume Group, and create a second Volume Group for Guest VMs.
3. When you get to the Disk Setup page, you will need to make some changes.
a. Delete LVM Volume Group VolGroup00 – click on it and then select Delete
b. Delete /dev/hda2 (of type LVM PV) – This is the big partition that is the rest of the disk besides /boot. Click on it and then select Delete
c. Make a new, smaller LVM PV – Click on New. In the Add Partition dialog box, change the file system type to physical volume (LVM). Make the size such that you have a substantial amount of remaining space in which to install Windows. For instance, on a 40GB disk, I made a 16384MB partition plus a 2048MB swap file + 64MB (partition overhead) = 18496. I made the swap file
twice the physical memory in the system. The remainder of the disk will be used for Guest VM Partitions. Make sure you set it to Fixed Size, and clear force to be a primary partition.
d. Now click on LVM. In the Make LVM Volume Group dialog box, we’re going to add two logical volumes. First add the swap space (file system type = swap) of size 2048, and then add mount point “/” (type ext3) and give it the remaining space.
e. Click on New again to add a new physical volume. Once again, make the file system type physical volume (LVM). I selected Fill to maximum allowable size to be able to use the remainder of the hard drive for guest VMs.
f. Select the newly created partition (/dev/hda3 in my case), and select LVM. Make the volume group name VG_Guests (your choice). You don’t need to add any logical volumes right now.
g. If the partitioning gets confused in some way, just click Back, and then click Next to start the partitioning over again.
4. For example, a sample partitioning scheme for a 40GB disk could be:
|
Device
|
Mount Point / RAID / Volume
|
Type
|
Size (MB)
|
|
LVM Volume Groups
|
|
VG_Guests
|
19520
|
|
VolGroup00
|
18432
|
|
LogVol00
|
Swap
|
2048
|
|
LogVol01
|
/
|
ext3
|
16384
|
|
Hard Drives
|
|
/dev/hda
|
|
/dev/hda1
|
/boot
|
ext3
|
100
|
|
/dev/hda2
|
VolGroup00
|
LVM PV
|
18496
|
|
/dev/hda3
|
VG_Guests
|
LVM PV
|
19577
|
5. SELinux must be disabled. We suggest that any firewall be disabled.
6. In addition to the default package set, the X Window System and one of KDE or Gnome should be installed.
7. After the installation has completed, login and install the packages SDL, sysfsutils and bridge-utils if not installed as part of the installation.
24
Feb
Posted in CentOS by carlosap |
If you hit CTRL+ALT+Delete your host will go down under CentOS Linux 5.x. The solution is hit CTRL key thrice. Now it will disable CTRL+ALT+Del for host. Next just hit alt+del to complete guest CTRL+ALT+Del cycle.
Alternatively, you can type the following on host to shutdown vps:
xm shutdown myGuestVpsOsName
24
Feb
Posted in CentOS by carlosap |
On a production system it is recommended that you disable the [Ctrl]-[Alt]-[Delete] shutdown. It is configured using /etc/inittab (used by sysv-compatible init process) file. The inittab file describes which processes are started at bootup and during normal operation. You need to open this file and remove (or comment it) ctrlaltdel entry.
Ctrlaltdel specifies the process that will be executed when init receives the SIGINT signal. SIGINT is the symbolic name for the signal thrown by computer programs when a user wishes to interrupt the process, for example reboot/shutdown system using [Ctrl]-[Alt]-[Del].). This means that someone on the system console has pressed the CTRL-ALT-DEL key combination. Typically one wants to execute some sort of shutdown either to get into single-user level or to reboot the machine.
Disable CTRL+ALT+Del keys
Open /etc/inittab file, enter:
# vi /etc/inittab
Search for line that read as follows:
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
And remove the line or comment out the above line by putting a hash mark (#) in front of it:
# ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
Save the file and exit to shell promot. Reboot system to take effect or type command:
# init q