This is incredibly easy to split & join files in linux. This is inbuilt utility in most of the Linux distributions such as Ubuntu, Fedora, Centos.. How to split large file to multiple small files? split -b 1024M largefile.iso /dst_dir/ In above example we are spiting large iso files to multiple files. in dst_dir you’ll [...]
Full Story »Why Linux Consumes Available Memory?
You may be aware of Linux high Memory consumption, while searching details I found two articles very well explaining high memory consumption, here I am sharing for your reference. Article 1 Linux is borrowing unused memory for disk caching.Disk caching makes the system much faster.If your applications want more memory, they just take back a [...]
Full Story »Bash Script to Monitor Folder Update
Following script is written to alert folder update. This script basically monitors particular folder & sends alters on mail whenever file time stamp modified. This is very basic scrip using LS command. Copy & save following as /bin/reportchange.sh #!/bin/bash #this script is written to report change in dest folder #dpthakar@gmail.com PATH=/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin LOGFOLDER=/tmp/ SCRIPTFOLDER=/reportchange [...]
Full Story »OpenVpn Server with passwd Auth
This config will help admins to auth openvpn from local linux system users. compile auth-pam from openvpn source cd /root/openvpn-2.1.3/plugin/auth-pam make cp openvpn-auth-pam.so /etc/openvpn/ apped following in server.conf plugin /etc/openvpn/openvpn-auth-pam.so /etc/pam.d/login This is all needs to be done at server end. at client end append following line in client.conf auth-user-pass you can create users without [...]
Full Story »Upgrade Fedora to latest version using Preupgrade
Apart from other methods to upgrade Fedora to latest version, you may use Preupgrade. Following method can be useful for Linux newbie as this one is much easier. Fedora Wiki PreUpgrade is an application users run on a existing release, that resolves and downloads packages required to upgrade to a newer release of Fedora. While [...]
Full Story »Upgrade Fedora 13 to 14 -using shell
All you need to do is to run following commands to update Fedora to the latest version. #install wget yum install wget -y #download latest fedora repos wget ftp://download.fedora.redhat.com/pub/fedora/linux/releases/14/Everything/i386/os/Packages/fedora-release-14-1.noarch.rpm #import gpg-key rpm –import ftp://download.fedora.redhat.com/pub/fedora/linux/releases/14/Everything/i386/os/RPM-GPG-KEY-fedora-i386 #install rpmlibs dependency. Require to install fedora-release-13 yum install rpm-libs -y #upgrade fedora release rpm -Uvh fedora-release-14-1.noarch.rpm #upgrade fedora destro yum [...]
Full Story »Change Login Screen – Fedora
Unlike old version of fedora, there is no more option to change login screen / image. If you are willing to change your login image, backup & replace png files under sub directories of below mentioned path with the desired image file. /usr/share/backgrounds/laughlin/default Here replace laughlin with fedora release name you have installed.
Full Story »OpenVpn Server with Virtual Users
This may come for handy for a admins who prefers openvpn with virtual users, rather having users auth from ldap / pop. compile auth-pam from openvpn source cd /root/openvpn-2.1.3/plugin/auth-pam make cp openvpn-auth-pam.so /etc/openvpn/ download & install pam-pam_pwd pam for virtual user. cat /etc/pam.d/vuser auth required pam_pwdfile.so pwdfile /etc/openvpn/users account required pam_permit.so Append following in server.conf [...]
Full Story »OpenVpn Server with Imap Auth
Openvpn can also be configured to auth from imap server. compile auth-pam from openvpn source cd /root/openvpn-2.1.3/plugin/auth-pam make cp openvpn-auth-pam.so /etc/openvpn/ download pam-imap append following in server.conf plugin /etc/openvpn/openvpn-auth-pam.so “imap-auth” Configure pam_imap to communicate with imap server. cat /etc/pam.d/pam_imap.conf PAM_Server0 = imap.linuxreaders.com:143 #PAM_Domain = linuxreaders.com This is all needs to be done at server end. [...]
Full Story »