TCS logo TimburyDotOrg is owned and operated by Timbury Computer Services. For over ten years, Timbury Computer Services has shown home, small business and corporate clients how to use Linux and Open Source software to maximize efficiency and lower costs.

Updates: The TimburyDotNet web hosting site redesign is complete. Linux-only hosting!More...
Mar
14th

Absloute path vs relative path in Linux/Unix

Author: Surendra Anne | Files under syndicated

One of this blog follower asked us that what’s the difference between absolute and relative path?

To understand this we have to know what is a path in Linux.

What is a path?

A path is a unique location to a file or a folder in a file system of an OS. A path to a file is a combination of / and alpha-numeric characters.

What is an absolute path?

An absolute path is defined as the specifying the location of a file or directory from the root directory(/). In other words we can say absolute path is a complete path from start of actual filesystem from / directory.

Some examples of absolute path:

/var/ftp/pub
/etc/samba.smb.conf
/boot/grub/grub.conf

If you see all these paths started from / directory which is a root directory for every Linux/Unix machines.

What is the relative path?

Relative path is defined as path related to the present working directory(pwd). Suppose I am located in /var/log and I want to change directory to /var/log/kernel. I can use relative path concept to change directory to kernel

changing directory to /var/log/kernel by using relative path concept.

pwd
/var/log
cd kernel

Note: If you observe there is no / before kernel which indicates it’s a relative directory to present working directory.

Changing directory to /var/log/kernel using absolute path concept.

cd /var/log/kernel

Note: We can use an absolute path from any location where as if you want to use relative path we should be present in a directory where we are going to specify relative to that present working directory.

Examples of relative path and absolute path for the same operation.

Read full post:  http://www.linuxnix.com/abslute-path-vs-relative-path-in-linuxunix/

 


Mar
14th

How To Install a Mumble Server on CentOS 7

Author: Falko Timme | Files under syndicated

Mumble is a free application primarily intended for use by gamers which allows users to talk to each other while gaming. In this article, I will show you how to install the Voice Over IP application Murmur on CentOS 7.


Mar
14th

Docker: How to use it in a practical way – Part 3

Author: Falko Timme | Files under syndicated

In this part, we will start using Docker images and create containers in a practical way. In other words, we will create a web-based, advanced personal notepad that runs on top of DokuWiki or WordPress. You can choose whichever you are comfortable with.


Mar
14th

Install MariaDB 10.0 on CentOS 6

Author: Falko Timme | Files under syndicated

MariaDB is a community-developed fork of MySQL and aims to be an enhanced, drop-in replacement for it. The following tutorial will guide you through the steps to install MariaDB 10.0 on CentOS 6.


Mar
14th

Linux:Copy, change permissions and ownership of a file in a command

Author: Surendra Anne | Files under syndicated

Today I came across a requirement to copy couple of files and change permissions to execute those files when writing some ansible playbooks. We can do this by using cp, chmodchowncommand as shown below. Ownership is changed from root user to normal user surendra.

	ls -l abc.sh

output:

-rw-r–r– 1 root root 0 Jun 10 21:22 abc.sh

cp abc.sh /tmp/
chmod 755 /tmp/abc.sh
chown surendra.surendra /tmp/abc.sh

ls -l /tmp/abc.sh

Output:
-rwxr-xr-x 1 surendra surendra 0 Jun 10 21:23 /tmp/abc.sh

I can execute these commands with out any problem, but if you want to do same activity on a regular basis then it is time consuming task and more over keeping these commands in ansible play-book is not a great option. How about if we have a command in Linux which do all these stuff in one shot? Yes, we have a command called “install” which do this all in one command. The equivalent install command of above three commands is below.

	install -v -g surendra -o surendra -m a+x abc.sh /tmp/abc.sh

To understand above command we should know couple of options for install command. Below examples will help you to understand install command with ease.

Example: Just copy a file from one location to other and do not bother about permissions and ownership.

	install abc.sh /tmp

Example: Copy a file with different permissions, for example every user in my machine should have execute permission on the file

	install -m a+x abc.sh /tmp/

Note: -m option arguments will be similar to chmod arguments.

Example: Copy a file with different permissions, for example full permissions for a file for all the users.

	install -m 777 abc.sh /tmp/

Example: Copy a file with different owner name

	install -m 755 -o surendra abc.sh /tmp/

Example: Copy a file with different group owner

read full post: http://www.linuxnix.com/linuxcopy-change-permissions-and-ownership-of-a-file-in-a-command/

 


Mar
13th

How To: Install/Upgrade to Linux Kernel 4.4.5 in Ubuntu/Linux Mint Systems

Author: YourOwnLinux | Files under syndicated

The Linux Kernel 4.4.5 is now available for the users, announced Linus Torvalds. This Linux Kernel version comes with plenty of fixes and improvements. This article will guide you to install or upgrade to Linux Kernel 4.4.5 in your Ubuntu or Linux Mint…


Mar
10th

Install and configure FTP server in Redhat/Centos Linux?

Author: Surendra Anne | Files under syndicated

FTP stands for File Transfer Protocol. It was written by Abhay Bhushan and published in 1971. FTP is supported by all the operating systems and browsers.

It is a client-server based protocol.

How FTP works

Step a: Client connects to server on port 21.

Step b: Server responds and ask for authentication.

Step c: Client decides weather to connect passively or actively and authenticate with credentials(user name password).

Step d: If it is an active connection, server opens port 20 for data transfer and gives ftp prompt after successful authentication.

Installing FTP server in Centos

Step 1: We will use below host name and IP address for our test machine to setup FTP server

Server IP: 192.168.0.9

Host Name: ftp.linuxnix.com

Just edit file /etc/hosts

#vi /etc/hosts

and add the line on bottom and save

192.168.0.9  ftp.linuxnix.com

Step 2: Install vsftpd (very secure FTP daemon) package.

#yum install vsftpd ftp

Configuring FTP server in Linux Centos

Step 3: Configure vsftpd package. We will edit /etc/vsftpd/vsftpd.conf you can do this with gedit (If installed) or vi command.

#vi /etc/vsftpd/vsftpd.conf

Change the line which contain anonymous_enable=YES to anonymous_enable=NO. This will permit any one to access FTP server with authentication.

anonymous_enable=YES   

Uncomment the following line

local_enable=YES                                    allow users in /etc/passwd to login

write_enable=YES                                   allow users to write files. “NO” will permit only to read.

Change the line chroot_local_user=NO to chroot_local_user=YES. This will permit local user as FTP account. If you add an user, it will be treated as a FTP account as well.

The local user directory will be the FTP directory.

 

Step e: Client call for file and server initiates file transfer.

Following picture shows a simple way of data transfer through ftp.

Read Full Poat:  http://www.linuxnix.com/7-steps-to-install-and-configure-ftp-server/


Mar
10th

How to Configure and Manage Network Connections Using ‘nmcli’ Tool

Author: Linux.com - All Content | Files under syndicated

As a Linux administrator you’ve got various tools to use in order to configure your network connections, such as: nmtui, your NetworkManager with GNOME graphical user interface and of course nmcli (network manager command line tool).

configure network connections using nmcli tool in linux


Mar
10th

HA support for DVR centralized default SNAT functionality on RDO Mitaka Milestone 3

Author: Boris Derzhavets | Files under syndicated

Verification been done bellow is actually targeting conversion of HAProxy/Keepalived (Active/Active) 3 Node Controller which design was suggested for RDO Liberty  in  https://github.com/beekhof/osp-ha-deploy/blob/master/HA-keepalived.md …


Mar
9th

Install Mattermost with PostgreSQL and Nginx on CentOS 7

Author: Falko Timme | Files under syndicated

Mattermost is an open source, self-hosted Slack-alternative. Mattermost is modern communication behind your firewall. This Howto explains the installation of Mattermost on CentOS7 using PostgreSQL as a database backend.