How to solve “libmagic not found” while configure a software in CentOS?
Install file-devel using yum
# yum install file-devel
Additionally, file-libs should be installed.
Web Hosting Journal
How to solve “libmagic not found” while configure a software in CentOS?
Install file-devel using yum
# yum install file-devel
Additionally, file-libs should be installed.
What is fusecompress?
FuseCompress provides a mountable Linux filesystem which transparently compresses its content. Files stored in this filesystem are compressed on the fly and FUSE allows to create a transparent interface between compressed files and user applications. FuseCompress supports different compression methods: LZO, gzip, bzip2, and LZMA.
How to install fusecompress in CentOS 6?
Follow the following to install fusecompress in CentOS 6
Install pre-tools
# yum groupinstall
'Development Tools'
# yum
install
boost boost-devel boost141-iostreams
# yum
install
fuse fuse-devel zlib-devel
bzip2
-devel lzo-devel
# git clone git:
//github
.com
/tex/fusecompress
.git
# cd
fusecompress
# ./configure --with-z --with-bz2 --with-lzo2 --without-lzma --with-boost-serialization=boost_serialization --with-boost-iostreams=boost_iostreams --with-boost-program-options=boost_program_options --with-boost-file --with-boost-filesystem=boost_filesystem
# make
# make install
What is Gmail?
Gmail is a free (gratis), advertising-supported email service provided by Google. Users may access Gmail as secure webmail,[6] as well as via POP3 or IMAP4 protocols.
How to Download/Take Backup of Full Gmail Account?
Google has started a service called “Takeout”. It allows you to backup any Google Products you are using. Google allows you to take a MBOX copy of your Gmail archive. You would need to generate it from “https://www.google.com/settings/takeout/”.
Once the generation is done, you can download the backup and load it in any MBOX environment.
What is node.js?
Node.js is event-driven, asynchronous I/O server-side JavaScript environment based on V8 engine.
Pre-Requirements
You don’t need full root access to install node.js in a cpanel hosting account. Although, you require to have access to the following from your hosting provider:
1. Compiler Access
2. SSH Access
3. An open port
4. Automatic Process Killing Exclusion
You need to first contact your provider to ensure you can access ‘1’ & ‘2’. In case 3 and 4, mention the port you want to use for your node.js app. Provider will exclude the port and your cpanel username in the firewall.
Installation: Step 1
First, find out if you have python 2.6 or above and bzip2-devel installed in the server. You can do using the following commands:
# which python
/usr/bin/python
# python -V
Python 2.6.6
# rpm -qa|grep bzip2-devel
bzip2-devel-1.0.5-7.el6_0.x86_64
Most of the latest cPanel server will have Python 2.6.6 or 2.6.7. So, as long as your provider isn’t running some old version of cPanel. If you have Python 2.6, you don’t need to recompile python. Python in cPanel server executable by the users. You might not see bzip2-devel installed. In case, it is not, your provider would need to install it using yum.
# yum install bzip2-devel
Step 2
Once the above ‘Step 1’ things are available, you can download the latest node.js binary and compile it. While writing this tutorial, node.js is running 0.10.24. You can download the latest node.js source from here:
http://nodejs.org/download/
# wget http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz
# tar -xvzf node-v*
# cd node*
# ./configure --prefix=$HOME
# make
# make install
Out of all the commands above, you need to note the ‘prefix’. It should use $HOME if you are running from the user’s shell. A root user can use the path to the home directory of the cpanel user like /home/cpanelusername in place of $HOME to install node.js in a cpanel user’s account.
Step 3
If you have installed node.js from the root account, change the permission for /home/cpanelusername/bin, /home/cpanelusername/include, /home/cpanelusername/lib to the cpanelusername.
# cd /home/cpanelusername
# chown -Rf cpanelusername:cpanelusername node* bin include lib
Now you can run a node.js node. A simple script to open a port can be the following:
# nano sock.js
Insert the following:
var net = require(‘net’);
var server = net.createServer(function (socket) {
socket.write(‘Open Serverrn’);
socket.pipe(socket); });
server.listen(674, ‘203.20.20.20);
console.log(‘Server running at http://203.20.20.20:674/’);
Now you can run the node as following:
# node sock.js
I had written a blog post regarding “How to protect your wordpress blog from web injection” before. I had mentioned a firewall plugin called “WordPress Firewall” which used to be very helpful at the time I had written the blog. But it seems the updated version of WordPress Firewall 1 & 2 both were not updated for pretty long time. It is now better to switch to something else. Upon my research of the current plugin market, I find the following WordPress Firewall plugin very useful “All in one WordPress Security & Firewall“.
So, take sometime to go on a maintenance for your wordpress blog and install the latest option to secure your blog.
I had been seeing an uprising issue of forced file system quota check on every boot after migrating to RHEL 6 or CentOS 6. I hadn’t seen the same issue before. I had been tackling it by changing the quotacheck file on each boot to something different. Quotacheck file is located:
$ ls /sbin/quotacheck
I couldn’t get enough information on something was changed in RHEL 6 which triggered this event. I went to trace out the root reason of this starting from Linux Boot Init script.
Continue reading “How to Solve Force File System Quota Check on Every Boot RHEL/CentOS”
You must know IPTables to understand routing properly. Once the concept & perspective of IPTables is cleared to somebody, it would become very easy to understand Linux routing and write Iptables rules to create & configure your own desired network. I will write a series of posts trying to explain and clear the confusion over Iptables basic perspective.
Continue reading “What is the difference between Mangle Table & NAT Table?”
IPTables is responsible to handle packet filtering in Linux system. IPTables contains several predefined and/or user-defined tables. Each table contains chains and chain contain packet rules. IPTables uses NAT table to forward packets to another node.
There are multiple ways to restart a remote linux system. A IPMI restart, a Power Strip or a Command Restart.
What is the best method to restart a Linux system?
The best method to restart a linux system is to graceful command restart. This will always make sure your all the services are closed before a restart. It will unmount the system and process a shutdown. If a system is not cleanly unmounted, this can cause data loss or some serious injuries to the drive. An uncleanly unmounted system can also take extra time to reboot due to file system integrity check and file system quota check. A cleanly unmounted system would skip the both check and restarts fast. It is hence recommended not to use a forceful Linux restart which doesn’t unmount the system cleanly.
How to toggle Linux Bootscreen Splash Bar / Progress Bar to Verbose details?
It is possible that you need to toggle your linux boot screen to display what exactly running in background instead of a splash screen. From CentOS/RHEL 6, they use Plymouth to load a default silent boot screen that is graphically beautiful but doesn’t provide any verbose output. Sometimes the boot screen freezes and without a detailed output you may not be able to identity the root reason of the cause. If you are on the bootscreen where a splashbar is running, press the following keys together:
ALT + d
That would toggle the splash screen to detailed output.
Continue reading “Toggle Linux Bootscreen Splash Screen to Verbose Details”