Home » OS » Linux

Howto: Linux convert an image between different formats from command prompt

Q. How do I convert images from a shell prompt? For example convert an image in the JPEG format to PNG or vise versa? A. You need to use the convert command which is a member of the ImageMagick suite of tools. Use it to convert between image formats as well as => Resize an [...]

Solaris > Safely remove / unmount the floppy disk or cdrom

First use sync command update the super block. Then use the eject utility. It is used for those removable media devices that do not have a manual eject button, or for those that do, but are managed by Volume Management. 1) Type command sync to write superblock or data to device (for floppy disk): # [...]

Howto: Password Protect a directory using .htaccess

How to Password Protect a Directory using .htaccess? You may need to password protect a directory in order to limit the sharing of files under it OR may need to protect a private area. You can password protect a directory using a .htaccess file which has to be placed under a directory which needs to [...]

Changing Timezones

# rm /etc/localtime # ln -s /usr/share/zoneinfo/Asian/SaiGon /etc/localtime # hwclock –systohc Incoming search terms:change lighttpd timezone (1)lighttpd timezone (1)

sed Case Insensitive Search Matching

Q. How do I perform a case-insensitive search using sed under UNIX / Linux? I’d like to match all combination of word – foo, FOO, FoO and so on while replacing or performing other operations. A. GNU sed and other version does support a case-insensitive search using I flag after /regex/.   UNIX / Linux: [...]

memcached: Failed To Set rlimit For Open Files Error and Solution

‘m using RHEL 6 / CentOS 6.x and install the memcached server. However, whey I try to start the server using service memcached start command, I get the following error: Starting memcached: failed to set rlimit for open files. Try running as root or requesting smaller maxconns value. [FAILED] How do I fix this problem? [...]

How to Restrict System Access from Servers and Networks

Usually a firewall is used to protect a server from other servers and networks. However, in some cases you may also want to protect a server within a network by using a TCP Wrapper. The Xinetd super server that comes with most Linux distributions includes a built-in TCP wrapper. It can be used to explicitly [...]

Redhat / CentOS Linux Install JBoss Application Server

Q. How do I install JBoss Application Server under RHEL 5 / CentOS 5 Linux? A. JBoss Application Server (JBoss ) is a free open source software Java EE-based application server. Because it is Java-based, the JBoss application server is cross-platform, usable on any operating system that Java supports. Red Hat Enterprise Linux / CentOS Linux 5 [...]

find_free_dqentry(): Data block full but it shouldn’t.

Error: VFS: Error -5 occurred while creating quota. VFS: find_free_dqentry(): Data block full but it shouldn’t. Explanation: The error message “find_free_dqentry(): Data block full but it shouldn’t” appears in the server logs when the files “aquota.user and aquota.group” are mostly corrupted. The ‘fixquotas’ cannot read these files and thus increases CPU usage while quota update [...]

[solved]configure: error: OpenSSL Crypto headers not found

Problem you face right now : configure: error: OpenSSL Crypto headers not found This way is to fix the problem : ./configure –with-ssl-headers=/usr/local/ssl/include/ –disable-crypto –disable-lzo or apt-get install libmatrixssl1.7 libmatrixssl1.7-dev libmatrixssl1.7-doc libssl0.9.7 libcrypto++7 libcrypt-openssl-dsa-perl libssl-dev I Had the same error and installed the DEV packages and it worked….. # apt-get install libcurl4-openssl-dev >> ./configure –disable-lzo [...]