Topics

Solutions

Easy solutions and ideas found after long googling or hard coding

Change SSH port and enable X11 forwarding

Check Installing CentOS 6.2 on VMware post.

– configure ssh port

cp /etc/ssh/sshd_config /etc/ssh/sshd_config.old
vi /etc/ssh/sshd_config
#uncomment port 22 and change to
port 4568

– enable X11 forwarding

#install needed libraries
yum -y install xorg-x11-xauth xorg-x11-fonts-base liberation-fonts

vi /etc/ssh/sshd_config
#add
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

– restart sshd

 /etc/init.d/sshd restart

Now you should connect to 192.168.126.128:4568

Configuring iptables on CentOS

– disable SELINUX

vi /etc/selinux/config
#change
SELINUX=disabled

– reboot or run

 setenforce 0

– add iptables rules

Change server hostname

Check Installing CentOS 6.2 on VMware post.

Adding Hostname to Linux server

vi /etc/hosts
# add
127.0.0.1  localhost.localdomain localhost
192.168.126.128 centos6.vmware.local
vi /etc/sysconfig/network
#change
HOSTNAME=centos6.vmware.local
hostname centos6.vmware.local

Useful Linux commands

Check Installing CentOS 6.2 on VMware post.

– getting full memory info

more /proc/meminfo

– display memory usage in MB

free -m

AnythingSlider for Worpress caption problem

The caption problem with AnythingSlider in WordPress is that it is already implemented in the plugin but not on the FX script or the CSS. All you need to do is adding this style to your post or page

.anythingBase li {
    position: relative;
}

.wp-caption-text{
    color:#fff;
    display: none;
    height: 70px;
    text-align: center; 
    background:#000;
    opacity:0.6;
    position: absolute;
    left: 0;
    top: 391px;
    width: 561px;
}
.activePage .wp-caption-text{
    display: block;
}