Q. How do I configure static IPv6 networking under RHEL 5.x / Fedora / CentOS Linux?
A. Red Hat / CentOS / Fedora RHEL support IPv6 out of box. All you have to do is update two files and turn on networking.
Read the rest of this entry
Archive for August, 2010
Red Hat / CentOS IPv6 Network Configuration
Author: adminAug 26
RedHat / Centos Disable IPv6 Networking
Author: adminAug 26
Our policy and network configuration does not requires IPv6 support in RHEL / CentOS / Fedora Linux. How do I prevent the kernel module from loading at boot time and disable IPv6 networking?
You can easily prevent the kernel module from loading by updating the following two files:
- /etc/modprobe.conf – Kernel driver configuration file.
- /etc/sysconfig/network – RHEL / CentOS networking configuration file.
Changing password via a script
Author: adminAug 16
Method 1: passwd
Conventionally the command use to change password on Linux based system is passwd
, the option related to this command is –stdin ,an this is all done throughout a pipe.
echo -e "new_password\nnew_password" | (passwd --stdin $USER)
Method 2: chpasswd
Another alternative is to use the chpasswd, explain as below:
echo "password:name" | chpasswd
Note that the first method can be use to change psssword on Samba based system:
echo -e "new_password\nnew_password" | (smbpasswd -a -s $USER)
Random password generator in shell script
Author: adminAug 16
#!/bin/bash
MAXSIZE=62
array1=(
q w e r t y u i o p a s d f g h j k l z x c v b n m Q W E R T Y U I O P A S D
F G H J K L Z X C V B N M 1 2 3 4 5 6 7 8 9 0 \! \@ \# \$ \% \^ \& \* \( \)
\! \@ \# \$ \% \^ \& \* \( \) \! \@ \# \$ \% \^ \& \* \( \) \! \@ \# \$ \%
)
MODNUM=${#array1[*]}
pwd_len=0
while [ $pwd_len -lt $MAXSIZE ]
do
index=$(($RANDOM%$MODNUM))
echo -n “${array1[$index]}”
((pwd_len++))
done
echo
exit 0
How to format hard drive to FAT32 filesystem inside Windows 7 64 bit
Author: adminAug 2
The option to format internal and external hard drives to the FAT 32 filesystem is not available to you from within the Graphical User Interface in Windows Vista/Windows 7 64 Bit Editions. If you wish to make data available to operating systems or applications that cannot properly read or write to NTFS partitions, this can pose something of a problem for you. Thankfully there is a relatively easy command prompt solution you can use to solve this little problem.
To perform this format successfully, you need to launch Command Prompt with Administrator permissions before executing the command.
Read the rest of this entry