Linux.com

Community Blogs



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.

 

 

How To Install Tomcat 7 Server on CentOS/RHEL 5/6

Apache Tomcat is an opensource webserver product of Apache Foundation like Apache HTTP server. It is used to deploying Java Servlet and JSP applications. To deploy any application in Tomcat we can simply create a war fileand deploy them. For more details about you can visit apache official site.

 

Continue to following article to Install Apache Tomcat 7 on CentOS/RHEL Servers.  

 

Linux: Log Suspicious Martian Packets / Un-routable Source Addresses

A Martian packet is nothing but an IP packet which specifies a source or destination address that is reserved for special-use by Internet Assigned Numbers Authority (IANA). You can log packets with un-routable source addresses on Linux operating system. This tutorial explains how to log spoofed packets on Debian / Ubuntu / CentOS / RHEL / Linux based server.

Linux: Log Suspicious Martian Packets / Un-routable Source Addresses

 

Linux ip Command Examples

I am a new Linux system admin user. How do I use ip command line utility to display or configure networking, routing, and tunnels on Linux operating systems? How do I configures or displays network interface parameters for a network using TCP/IP on Linux operating systems? The ip command is used to assign an address to a network interface and/or configure network interface parameters on Linux operating systems. This command replaces old good and now deprecated ifconfig command on modern Linux distributions.

Linux ip Command Examples

 

CentOS / RHEL: Yum Lock Package Version At a Particular Version

yum-plugin-versionlock plugin takes a set of name/versions for packages and excludes all other versions of those packages (including optionally following obsoletes). This allows you to protect packages from being updated by newer versions, for example. This quick tutorial explains how to install and use yum versionlock to prevent package update using yum on a CentOS or RHEL based server.

Read more: CentOS / RHEL: Yum Lock Package Version At a Particular Version

 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  4 
  •  5 
  •  6 
  •  7 
  •  8 
  •  Next 
  •  End 
  • »
Page 1 of 8

Upcoming Linux Foundation Courses

  1. LFS426 Linux Performance Tuning
    21 Apr » 24 Apr - Virtual
    Details
  2. LFS520 OpenStack Cloud Architecture and Deployment
    05 May » 09 May - Virtual
    Details
  3. LFD320 Linux Kernel Internals and Debugging
    12 May » 16 May - 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