How to Monitor your Linux and Windows Servers with CloudStats

CloudStats is a server monitoring service which allows you to monitor your whole server infrastructure from a single dashboard interface and helps timely to prevent any kind of technical issues and downtimes. With CloudStats it is possible to monitor Linux servers, including those on CentOS, Debian, Fedora, Ubuntu etc.

CloudStats server monitoring Agent collects data about all key server metrics such as CPU, RAM and disk space usage, as well as a status of networks, processes, URLs or IPs. This information will be kept and displayed in your CloudStats account interface.

Almost every user can easily setup and run CloudStats without any special skills or knowledge.

Here is an instruction of how to perform Linux server monitoring using CloudStats.

1. Go to sign-up page and create a new account by adding your “Subdomain” name, it could be anything like your company name or website name (in our example – ‘ravisaive‘).

2. In the CloudStats online interface you can add your server for monitoring. To add new server click on the green button “Add New Monitor” and select “Add New Server”. Continue reading “How to Monitor your Linux and Windows Servers with CloudStats” »

Share

Install SVN Server on Ubuntu and Test it with Tortoise

Execute the following commands to update the Ubuntu repository list and install apache + svn.

sudo apt-get update
sudo apt-get install subversion apache2 libapache2-svn apache2-utils

*If asked type Y (Yes). If you have trouble updating check your internet connection, proxy, try update fix-missing etc.

Create your repository folder in this case /svn/repos/ Continue reading “Install SVN Server on Ubuntu and Test it with Tortoise” »

Share

Upgrade WordPress without FTP

Open /wp-config.php

Now the first thing you need to do is to open the wp-config.php file from your WordPress root folder (you may access this file from your WordPress installer folder). From the installation folder, the file is located at wordpress/wp-config.php

Insert FS_METHOD

Paste the following code to your wp-config.php file, preferably just below every other line of code.

define('FS_METHOD','direct');

Save and Try updating now. If you have inappropriate directory and file permission, might  encounter upgrade error. Try to do the following-

Web Server Ownership

The first level is actually to make sure that your web server has ownership over the directories:

chown -R www-data:www-data your-wordpress-directory

Directory Permissions

The second level is also required – you must make sure that the directory permissions are properly set:

sudo find /var/www/wordpress/ -type d -exec chmod 755 {} \;
sudo find /var/www/wordpress/ -type f -exec chmod 644 {} \;
Share

Remove apache, phpmyadmin etc from ubuntu 16.04

You can remove the packages in Ubuntu by executing the commands:

dpkg --purge phpmyadmin
dpkg --purge mysql-server
dpkg --purge apache2.2-common

Or

You have option also to remove the following packages:

sudo apt-get remove apache2*
sudo apt-get remove phpmyadmin 
sudo apt-get remove mysql-server
sudo apt-get remove php5

Or

sudo apt-get --purge apache2*
sudo apt-get --purge phpmyadmin 
sudo apt-get --purge mysql-server
sudo apt-get --purge php5
Share

How to update Debian 6 Squeeze

After a Debian version has reached EOL (end of life), its repositories go to the Debian archive. Therefore we can use this archive to get packags for our distribution. The syntax for our /etc/apt/sources.list is as follows:

deb http://archive.debian.org/debian/ <version> main non-free contrib
deb-src http://archive.debian.org/debian/ <version> main non-free contrib

deb http://archive.debian.org/debian-security/ <version>/updates main non-free contrib
deb-src http://archive.debian.org/debian-security/ <version>/updates main non-free contrib

So for Debian Etch, you’d comment out all other repositories in /etc/apt/sources.list and add the following lines: Continue reading “How to update Debian 6 Squeeze” »

Share

Business Server- How should it be

So, what would be a business on premise server look like…? Tried to build a feature based composition, but I guess need more upgradations-

  • Server operating system- Ubuntu 12.04 LTS
  • Network Firewall- ufw *
  • DNS server- Dnsmasq
  • DHCP server- ISC DHCP
  • Internet sharing with proxy and cache control, including reporting and user access control- Squid | Sarg
  • Anti-Virus and Anti-Spam ClamAV | AMaViS | SpamAssassin
  • Groupware Email, Contacts, Calendar, Webmail, with native Microsoft Outlook compatibility and mobile device support- SOGo *
  • Instant Messaging, VOIP and Video Chat server- Openfire | Spark *
  • Shared Printers and Files- Samba
  • Webserver Apache *
  • FTP server- ProFTP *
  • Database server- MySQL *
  • VPN- LogMeIn Hamachi  | Haguichi *
  • Virtualization support- Oracle VM VirtualBox *
  • Network Backup- RAID1 NAS *
  • Cloud Backup- Ubuntu One *
  • Remote Desktop Administration- x11vnc *
  • Remote Web Administration- Webmin
  • System Monitoring- Automatic Security Updates

All suggestions are welcome 🙂

Share

Mondo CLI

If you want to do a backup in Linux, there are many tools for the job. But if you want the ability to recover from a disaster, as well as back up, only a handful are left. Of those, less than half are able to replace the functionality of Ghost or Acronis TrueImage in a Linux environment, and of those, only one or two (that I know of) can do this without either being ridiculously confusing or requiring a network or backup server.

The winner for me (and my mission critical business computers) is Mondo Archive. With Mondo Archive, you can do all sorts of nifty things, such as back up your windows/linux dual boot and automatically restore them to a completely different computer, restoring to a different disk setup or file system, and more. Here is a simple guide to using it.

Step 1: Install Mondo from Synaptic by first starting Synaptic, entering your root password, and then doing a search for the word "mondo" (without the quotes). Select it for installation. Several dependencies will be added.

Step 2: After you have installed them all, determine whether you will be using hard disk, CD, DVD or something else to back up to. Mondo supports CD-Rs, CD-RWs, DVDs, creating .ISO images on your hard disk, tape drives, CD Streamers and NFS mounts for backing up to. If you have the disk space to spare, and you plan to make CDs or DVDs, I suggest creating .ISO files on your hard disk and then later burning them to whatever media you have chosen later, although Mondo can do direct to device burning, too. I do it this way to make sure the run ends successfully before I overwrite my DVD-RW backup set. The alternative is to have multiple backup sets if you use RW media. Right now, that's not feasible for me. If you do store your images on the hard drive, you will want to have a specific directory set up to hold them. I use /home/myhomedir/backup. You would replace myhomedir with your login name, of course.

Step 3a: Decide how you want to run Mondo. I used to run it in its GUI mode. Note that this is a CLI based GUI. You can do this by invoking the program from a terminal you are logged into as root, like so:

Code:

[root@localhost backup]# mondoarchive

Mondo will then automatically detect as much information as possible, and will walk you through the rest. When it asks you whether your kernel is sane, for PCLinuxOS, the answer is YES. (Of course it is!)

Step 3b: If you need greater control than you can get from the GUI, as I do, you will need to use the CLI and type in a rather long command. Here is the command I use to create full system backups, which I will dissect for you afterwards:

Code:

mondoarchive -O -V -i -s 4480m -d /home/shannon/backup -I / -E /home/shannon/backup -T /home/shannon/backup -x /dev/sda1 -x /dev/sda2 -9 -f /dev/sda -l GRUB

Dissection: Continue reading “Mondo CLI” »

Share

Installing MondoArchive in Debian 6

MondoArchive is an excellent backup tool found in Linux. However, the installation process is not obviously clear in debain- it lacks of a simple clue to let you know how to install in the easiest way in debian by using 'apt-get'.

All you need is to add this simple repository to add in your /etc/apt/sources.list file-

deb ftp://ftp.mondorescue.org/debian 6.0 contrib

Then hit-

apt-get update
apt-get install mondo

There you go… it is installed 🙂

Share

apt-get drush install on Debian

These are the installation instructions that are recommended on Debian. Aegir dependencies (Apache, MySQL, PHP…) are also automatically installed. If you are managing the installation from a remote Windows computer, well-known open source tools for this task are for example PuTTY (a SSH client for command line), and WinSCP (a SFTP client with easy text file editing).

If you wish to install Debian packages over an existing manual install, it's possible. See the Debian upgrade procedures.

Debian packages are uploaded to http://debian.aegirproject.org/ shortly after a release. We eventually want to upload those packages to the official archives, but this will take some adaptation and time to sponsor the packages in.

 

1. Adding the project repositories

Use this command to add the Aegir package "Software Source" repository to your system:

 

echo "deb http://debian.aegirproject.org stable main" | sudo tee -a /etc/apt/sources.list.d/aegir-stable.list

 

To install other versions, see the developer instructions for the debian package.

2. Adding the archive key to your keyring

This repository self-signs packages uploaded to it (and packages uploaded are verified against a whitelist of trusted uploaders) using OpenPGP (GnuPG, to be more precise).

Use these commands to download and add the repository's PGP key, then update the package list on your system:

 

Share