Linux.com

Community Blogs



Open Source Cloud Banking based on ERP5 released

A version of ERP5 open source ERP dedicated to Banking and hosted on Linux based SlapOS open source cloud has been publicly released. It has been already operated for 6 years in various banks. A minimal banking core setup service costs 10 KEUR with price based on number of transactions.

 

Tips for Cloud Computing Security

    Shared software, shared resources are integral elements of Cloud Computing, which has become a rage today. It’s being used by companies looking for flexibility and scalability. But there are risks involved that you have to keep in mind while using public, private or hybrid cloud computing options. Security of your vital data is of great importance to you and it should be protected while you get the best benefits of cloud computing services. To make effective use of cloud computing and to ensure that data is transferred online securely, there are certain tips you must follow.
 

Know how your data is protected

    Data encryption and firewall security is crucial and you have to know more about these aspects when you sign up with a service provider. Public cloud SaaS solutions make secure encryption practically mandatory. Cloud computing resources should also have an inbound firewall for security reasons. You might be on a cloud but you still have to have strategies in place in case there is an external attack or hostile activity on the system. Service providers that talk about their security measures openly should be given precedence because it enables you to have your own strategies in order. 
 
Read more at YourOwnLinux
Author: Ramya Raju
 

How To Build a Cloud (cluster) Hosting Without Investing a Lot of Money

Three years ago, I had an interesting problem. It was necessary to assemble a platform to combine multiple racks of servers into a single entity for the dynamic allocation of resources between sites, written for the LAMP platform.

However, the budgets were very less so expensive solutions such as Cisco Content Switch or disk shelves with fiber optics were not affordable.

And, besides, of course, in case if one server is down – this should not affect the operation of the platform was my main concern.

In my school time, I read somewhere that “Necessity is the mother of invention”, which is fairly true.

First of all you need to share a platform into subtasks. You have to do something for the synchronization of data as a shared drive is available. In addition, it is necessary to balance the traffic and have at it some statistics. Finally, the automation of providing the necessary resources – is also quite a serious problem.

Let’s start from the beginning…

I had a choice on what to organize a platform. OpenVZ or XEN ? Each has its pluses and minuses. OpenVZ has a lower overhead, work with files and does not block devices, but cannot run anything other than Linux’ovh distributions. XEN allows you to run on Windows, but more difficult work. I’ve been using OpenVZ, as this is more suited for the task, but you can choose the one you like, there is no restriction on choice.

Then I shared the server space for the VDS, one for each core. Servers were different, and therefore I had a set from 2 to 16 and virtual ok on each server. In the “average house” turned out about 150 virtual ok on the counter.

How to synchronize the data?

The next item – this is the early establishment of VDS on demand + protection against breakage of any server. The solution was simple and beautiful.

Each VDS creates the initial image as a file on the LVM partition. This image “spreads” on all servers in the platform. As a result, we have a backup of all the projects on each server (paranoid cry of emotion), and the creation of a new VDS «on demand” has been simplified to a snapshot image and it start the VDS literally in few seconds.

Database and API

If the integrity of the files were all simple, here’s a sync base things were worse. From the beginning I tried a classic example – master-slave, and collided with a classic problem: slave lag behind master.

The next step was to Mysql-Proxy. As a sysadmin, this was very easy to set and forget, but the configuration should be updated while adding / removing new VDS. But developers have had their own opinion. In particular, the fact is that, it is easier to write a PHP class for synchronization of INSERT / UPDATE / DELETE queries than to learn Lua, without which the Mysql-Proxy is useless.

Their work produced a so-called API, which was able to find neighbors of a broadcast sync up to date and to inform the neighbors of any changes to the database.

But still worth exploring Lua and make native mode, where all requests are synchronized with their neighbors.

FreeBSD

Balancer – it can be said that it is a key aspect of the platform. If they fall to balance server, all work will have no meaning.

That is why I used the CARP to create fault-tolerant balancer, choosing FreeBSD as the OS and Nginx as a balancer.

Yes, NLB has been replaced by two weak machines with FreeBSD (marketers in a rage).

And most importantly – how it works

When starting up the platform for each site runs on a single copy and monitor to balanesere watched to ensure that the primary copy has always worked.

In addition, the balancer was installed to analyze statistics Awstats, which provided all the logs in a convenient format, and most importantly – there was a script, polling each VDS via SNMP for its load.

As we remember, I devoted each VDS on one core, so Load Average in a 1 – this is a normal load for the VDS. If LA became 2 or above – the script that creates a copy of the VDS on a random server and put this in its upstream nginx’a. And when the load on extra VDS fell less than 1 -, respectively, all removed.

Summarize

If you take the rack with servers and switches supporting the CARP protocol, to create a ESDS cloud hosting Server, will need to:

  • Explore Lua and adjust transparent synchronization across Mysql-Proxy
  • Screw the billing account for additional copies of the VDS and traffic
  • Write a web interface for managing VDS
  • The filling racks with enough amount of four zeros. Compared with the decisions of the brands, where the price of one stand is the sum of six zeros, counts worth.
 

An Insight On Dedicated Server Terminology

At times, technical jargon can become overcomplicated and it further complicates simple matters as well. While investigating the web hosting servers, you will often come across titles like ‘The beginner’s guide’ or ‘simple steps’ that comprises of words like hypertext, applet and many other unexplained acronyms.

As compared to the other web hosting platforms, dedicated hosting is comparatively a complicated hosting solution and it takes some time to get accustomed to it. It is important to understand the benefits of a dedicated server and know the reasons why you should opt for this hosting solution. Once you have this basic understanding, you must move forward and gain knowledge of some of the crucial words and phrases that are going to be useful for gaining an insight on the functioning of a dedicated server.

The aim of this article is not to burden the users with explanations but just to educated them on the basic terminology of dedicated servers that they must be aware of. Here is a brief explanation of the important terms:

Initially, let’s have a look at the concept – dedicated server. Basically, this is your personal server where there is no need for you to share the resources as the server is completely dedicated to you. This is a flexible hosting solution that enables you to decide on the factors like operating systems, hardware and the other resources on the server. Dedicated servers usually provide with high security and better performance as compared to the other hosting platforms. Although a dedicated server has a higher price tag, it is a complete value for money for the resource intensive websites.

DNSBL (DNS blacklist); this is something you don’t want to see. You might come across this term when your server is blacklisted. This term is used for the networks that distribute spam or any type of harmful services. Usually, it is a list of blacklisted IP addresses that you wouldn’t like to deal with for some or the other reason.

While the offerings of many web hosting companies comprise of unmanaged dedicated servers, another term that you might come across is – managed servers. As dedicated servers are more personal and private, there is no interference caused by others. This means that you can configure the server as per your preference. By selecting a managed dedicated server, you will be provided with round the clock support by the web hosting company and they will maintain the server and ensure the smooth functioning of the server.

The name server is the server that translates your IP address into a domain name that is human-readable. This is done so that the users can access and view your website through the domain name. This means that there is no need for the users to enter a series of numbers into the browser in order to get to your website.

RAID (Redundancy Array Of Independent Disks) is a phrase you might not frequently come across but it is good to know about it. RAID is the structure that creates the backing of the hard drives through a series of redundant hard disks that store your data. This data can be utilized in case your operating hard drive malfunctions due to any reason.

The method that enables you to condense the data between network protocols is known as tunneling. A common type of the tunneling method is the secure SSH. SSH enables you to tunnel a wide range of protocols in order to provide efficient and secure file transfers and connections.

With proper understanding of the important terminology mentioned above, you will be in a better position to use the dedicated server hosting solution to the best of its capacity.

 

How to Download and Upload Files using FTP Command Line

FTP (File Transfer Protocol) is the most popular protocol to transfer files (download and upload) from one system to other system. It provides the fastest way transfer files. There are many application available on Linux and windows to FTP services like vsftpd, proftpd for Linux, FileZilla Server for windows.


Read complete artilce at  How to Download and Upload Files using FTP Command Line - TecAdmin.net

 

How to Setup MariaDB Galera Cluster 5.5 in CentOS, RHEL & Fedora

MariaDB Galera Cluster is an synchronous Active-Active multi-master cluster of MariaDB databases. Which keeps all nodes synchronized. MariaDB Galera cluster provides synchronus replication which is always highly available (there is no data loss when one of the nodes crashes, and data replicas are always consistent). Currently it only supports XtraDB/InnoDB storage engines and available for Linux platform only.

 

Read complete article at  How to Setup MariaDB Galera Cluster 5.5 in CentOS, RHEL & Fedora

 

 

Install Oracle Java 8 on CentOS/RHEL 6/5 and Fedora

After a long wait, finally Java SE Development Kit 8 is available to download. JDK 8 has been released on Mar,18 2014 for general availability with the many featured enhancements. You can find all the enhancements in JDK 8.

 

This article will help you to Install JAVA 8 (JDK 8) or update on your system. Read instruction carefully for downloading java from Linux command line.

Read full article on Install Oracle Java 8 on CentOS/RHEL 6/5 and Fedora

 

Linux: chroot Command Examples To Fix System

I am a new Linux and Unix user. How do I change the root directory of a command? How do I change the root directory of a process such as web-server using a chroot command to isolate file system? How do I use a chroot command to reset a forgotten Linux password, reinstall the bootloader, jail apps and more? 

Read more: Linux and Unix chroot command examples

 

Minify and Compress CSS & Javascript Files At a Linux Shell Prompt

How do I minify and compress CSS & JS files on Linux or Unix-like system using shell prompt on my server? How can I minify JavaScripts and stylesheets at shell prompt so they can download faster over the Internet without using any online tools?

Read more: Minify and Compress CSS & Javascript Files At a Linux Shell Prompt

 

Build Faster WordPress Sites with Nginx – In 3 Lines!

There are a number of competing web servers but nginx is probably your best bet, conceived relatively recently in 2002 by Igor Sysoev, nginx was built from the ground up with the explicit goal of handling a large number of concurrent connections. In simple terms, whereas Apache creates a new process for each new connection (visitor/http request) nginx offloads requests to worker processes and allows for asynchronous resource allocation. What this means in practice is a much faster, more efficient server environment and in turn a faster website.

Sounds great, right. But how would you go about setting  this up? Luckily, the nginx & WordPress experts over at rtcamp have build an awesome script (easyengine) for taking a stock Ubuntu VPS image, installing the required server components and a fresh WordPress install with pre-configured support for caching, in basically 3 system commands!


Read more: https://gplclub.org/build-faster-wordpress-sites-nginx-3-lines/

 

Static Vs Dynamic IP Address

An Internet Protocol (IP) address is a numerical identifier that is assigned to every device or machine in a computer network. If you are planning to start your own Internet business, using a virtual private network VPN or VOIP, you need to be adequately informed about IP addressing. We all (should) know – there are static and dynamic IP addresses. But when should you use them?

What is a Dynamic IP Address?

A dynamic IP address changes each time you boot your machine or network device. It also changes when you dial into your Internet service provider. Some ISPs change your IP each time you log on to their network while some make the changes periodically.

Most dynamic IP addresses are assigned using the Dynamic Host Configuration Protocol (DHCP). The router on your home network assigns IP addresses to your computers and other network devices as you put them on. Private IP addresses usually have this format: 192.168.0.x. Your router's IP address will usually be 192.168.0.1 while your computers will be assigned numbers ranging from 192.168.0.2 to 192.168.0.254.

In situations where you need to remotely administer a particular computer on a network, you may need to reserve a particular address for it. To assign static IPs to certain computers and dynamic IPs to others on the same network, you should reserve the IPs for the specific machines on the DHCP server. This will help you to administer the network centrally without the need to assign static IPs manually. It will also prevent the occurrence of IP conflicts.

When Should You Use Dynamic Ips?

Dynamic IPs will be good for anyone who uses their computer or home network for the following:

* To browse the Internet and upload or download files
* To send and receive email through a mail server or via a web based email service like yahoo mail, hotmail or gmail.
* To use online chat services or instant messaging
* To use FTP servers or web servers that only require access from your LAN or corporate network but do not require access from the Internet.




What is a Static IP Address?

A static IP address is a fixed IP address that is manually assigned to a device on a network. It is called a static IP because it is not changed each time the device is switched on. Static addresses remain the same each time you connect to the network or send a message.

When Should You Use a Static IP?

Static IP addresses provide greater reliability for applications such as voice over Internet protocol (VOIP). If you run a service that permits incoming audio or video, you may need to use a static IP. For example if you have an on-site IP-PBX, you will need to have at least one static IP address.

A static IP will also be required if you have a machine that functions as a server and requires external access from the users online. This includes running a web server, e-mail server, FTP server, or DNS server. A static IP allows you to enjoy faster upload speeds which boost the efficiency of these services.

If you intend to host a gaming website or you want to use Play Station, X-Box or a VPN to provide secure access to files from your corporate network server, you should also consider buying a public static IP address.


How to Set Up a Static IP in Linux?

Here are the steps you should take to assign a static IP address on a Linux system.

1. Make sure you are logged on as root
2. Create a backup copy of the /etc/network/interfaces file on your machine. You can easily restore the backup if something goes wrong.
3. Edit the /etc/network/interfaces file. From the text console, you can load this file into the famous vi editor.
4. Scroll down the file until you locate the network interface card. An Ethernet connection is usually identified by eth0 or wlan0 while a wifi connection is identified as wifi0.
5. Replace “ iface eth0 inet dhcp “ with “ iface eth0 inet static “.
6. Add these lines: (you can replace the address and dns nameserver with your own configuration)

address 192.168.0.5
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.0.0
dns-name-servers 216.10.119.241


If you are running Slackware or Red Hat Linux, one of the simplest methods is to log on as root and then type ifconfig/netstat at the console. You can then use the text-based menu to modify the configuration settings.

In Slackware the settings will take effect instantly. But in Red Hat you need to type “ service network restart “ and press enter.

 

 
Page 2 of 9

Upcoming Linux Foundation Courses

  1. LFS230 Linux Network Management
    06 Oct » 09 Oct - Virtual
    Details
  2. LFS416 Linux Security
    06 Oct » 09 Oct - Washington
    Details
  3. LFD331 Developing Linux Device Drivers
    13 Oct » 17 Oct - Virtual
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board