April 2025
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
282930  

Categories

April 2025
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
282930  

vsftp on CentOS6.6

CentOS6.6

2?vsftpd-2.2.2

Second, the installation

$ yum install -y vsftpd

[root@oracledbserver mohan]# yum install vsftpd Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirror.vodien.com * extras: mirror.vodien.com * updates: mirror.vastspace.net base | 3.7 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 Resolving […]

RedHat Enterprise Linux 6.6 with CentOS Apache

RedHat Enterprise Linux 6.6 with CentOS Apache

[root@oracledbserver ~]# yum install httpd* -y Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirror.vodien.com * extras: mirror.vodien.com * updates: mirror.vastspace.net base | 3.7 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 Package httpd-2.2.15-39.el6.centos.x86_64 […]

Boot Into Single User Mode (Reset Root Password)

To reset the root password of your server, you will need to boot into single user mode.

Access the Manage section of your server in the customer portal and follow these steps. The option depends on the bootloader version on the machine:

CentOS 6 Click [View Console] to access the console and click the send […]

Add date to bash history

Need to add date to bash history, knowing when some commands were fired.

Before the change:

root@host# history 1 ifconfig 2 ifup eth0 3 ifconfig 4 shutdown -r now

root@host# history 1 ifconfig 2 ifup eth0 3 ifconfig 4 shutdown -r now

Now, make appripriate changes in your bash profile:

echo ‘export HISTTIMEFORMAT=”%d/%m/%y %T “‘ […]

Changing default IO scheduler linux

Change default Linux IO scheduler to optimize IOs (very important if server is VM)

Check existing (active) io scheduler (elevator):

[root@server ~]# cat /sys/block/sda/queue/scheduler noop anticipatory deadline [cfq] # cfq active

[root@server ~]# cat /sys/block/sda/queue/scheduler noop anticipatory deadline [cfq] # cfq active

Change it on the fly

[root@server ~]# echo noop > /sys/block/sda/queue/scheduler

[root@server ~]# […]

Tweak EXT4 mount options for performance

Need to change default EXT4 mount options to tweek performance

DEFAULT EXT4 mount options (Centos 6.3):

Shell [root@server ~]# cat /etc/fstab<br /> dev/sda1 / ext4 defaults 0 1 1 2 [root@server ~]# cat /etc/fstab dev/sda1 / ext4 defaults 0 1

… meaning …

Shell [root@server ~]# cat /proc/mounts | grep ext4<br /> /dev/sda1 / […]

Converting Your Keypair File

Purpose

The keypair you create will be in the .pem format. If you plan on using PuTTy to SSH to a Linux instance from a Windows computer you will need to convert that keypair file to the .ppk format. This article will show you those steps.

Notes

Your original private key pair file (.pem) is […]

LVM2: device filter and LVM metadata restore

LVM2: device filter and LVM metadata restore Customize LVM device filter to get rid of the annoying “/dev/cdrom: open failed” warning

##/dev/cdrom: open failed warning $pvcreate /dev/sdb1 /dev/cdrom: open failed: Read-only file system $ vgcreate vg01 /dev/sdb1 /dev/cdrom: open failed: Read-only file system ##The error because LVM scan all device files by default, you can […]

How to mount LVM partitions from rescue mode (Fedora/CentOS/RedHat)

Boot your rescue media. Scan for volume groups: # lvm vgscan -v

Activate all volume groups: # lvm vgchange -a y

List logical volumes: # lvm lvs –all

With this information, and the volumes activated, you should be able to mount the volumes: # mount /dev/volumegroup/logicalvolume /mountpoint

Fix ShellShock Bash Vulnerability

With the announcement of the ShellShock Bash vulnerability last week it has caught news around the security updates. This is bug is being dubbed to be bigger than The Heartbleed Bug. Some interesting read about ShellShock can be found here.

Fix ShellShock Bash Vulnerability on CentOS – Test

Before you begin it’s better to test […]