Home Blog Page 889

GitHub’s Atom 1.5 Hackable Text Editor Out Now, Atom 1.6 Enters Beta Testing

github-s-atom-1On February 9, 2016, GitHub’s devs made some big announcements for its awesome and acclaimed Atom open-source hackable text editor, which reached stable version 1.5 for all supported operating systems.

As more and more programmers adopt Atom, it looks like GitHub’s developers have speed up the development cycle of the project, and today they’ve announced the release of Atom 1.5 stable branch and the availability of the first Beta build of the upcoming Atom 1.6 series.

Read more at Softpedia Linux News

VMware Updates Virtual SAN, Converged Infrastructure Stack

VMware launched a new release of its Virtual SAN platform as it rounds out its software-defined stack for private and public cloud infrastructure.

The VMware Virtual SAN is the company’s software defined storage play and is primarily aimed at Nutanix. The company said that it has more than 3,000 hyper-converged infrastructure customers since VMware Virtual SAN launched 21 months ago. VMware Virtual SAN 6.2 will be available in the first quarter with a starting price of $2,495 per CPU. Software defined storage is shifting the landscape for vendors. More storage is being consumed, but the traditional system vendors in the market are seeing slowing growth. The cloud is partly to blame, but there’s also the hardware end of the equation.

Read more at ZDNet News

Google Releases ION OpenGL Open-Source Library

Google engineers have open-sourced today a new suite of libraries and tools relating to OpenGL called ION. Details are limited thus far and without yet diving into the source code, ION is described as “a portable suite of libraries and tools for building client applications, especially graphical ones. It is small, fast, and robust, and is cross-platform across many platforms and devices, including desktops, mobile devices, browsers, and other embedded platforms.” 

Read more at Phoronix

Install and Configure Munin monitoring server in Linux

Munin is an excellent system monitoring tool similar to RRD tool which will give you ample information about system performance in multiple fronts like disk, network, process, system and users. These are some of the default properties Munin monitors. More at http://www.linuxnix.com/install-and-configure-munin-monitoring-server-in-linux/.

8 Who command practical examples

The who command is one of the first command we use when troubleshooting common Linux related issues to make sure how many users are logged in and what they are doing. In this post we will see on how to use this command to get more information about who logged into your machine at present and what they are doing. Read more at http://www.linuxnix.com/8-who-command-examples-in-to-linuxsolarisaix/

File types In Linux/Unix explained in detail.

How many types of files are there in Linux/Unix and what are they?” This is a common question to every person who starts to learn Linux. O.K, why is it that much important to know file types?

Answer: This is because Linux considers every thing as a file. When ever you start working on Linux/Unix box you have to deal with different file types(linux/unix) to effectively manage them

How many types of file are there in Linux/Unix?

By default Unix have only 3 types of files. They are..

Regular files

  1. Directory files

  2. Special files(This category is having 5 sub types in it.)

So in practical we have total 7 types(1+1+5) of files in Linux/Unix. And in Solaris we have 8 types. And you can see the file type indication at leftmost part of “ls -l” command.

Here are those files type.

  1. Regular file(-) 
  2. Directory files(d) 

Special files

  1. Block file(b)
  2. Character device file(c)
  3. Named pipe file or just a pipe file(p)
  4. Symbolic link file(l)
  5. Socket file(s)

For your information there is one more file type called door file(D) which is present in Sun Solaris as mention earlier. A door is a special file for inter-process communication between a client and server (so total 8 types in Unix machines). We will learn about different types of files as below sequence for every file type.

Definition and information of the file type
How to create particular file type
How to list/see particular file type

Regular file type Explained in Linux

These are the files which are indicated with “-” in ls -l command output at the starting of the line. And these files are.

	1. Readable file or
2. A binary file or
3. Image files or
4. Compressed files etc.

How to create regular files in Linux/Unix? 
Ans: Use touch/vi command and redirection operators etc.

How can we list regular files?

ls -l | grep ^- 

Example listing of regular files :

	-rw-r--r-- 1 krishna krishna 20986522 2010-01-31 13:48 test.wmv
-rw-r--r-- 1 krishna krishna 173448 2010-01-30 21:20 Transformers-Teaser-Wallpaper-310.jpg
-r-xr-xr-x 1 root root 135168 2009-12-12 19:14 VIDEO_TS.VOB
-rw-r--r-- 1 krishna krishna 2113536 2009-12-01 13:32 Aditya 365 – Janavule.mp3
-rwxrwxrwx 1 root root 168 2010-02-14 14:12 xyz.sh

Directory file type explained in Linux/Unix

These type of files contains regular files/folders/special files stored on a physical device. And this type of files will be in blue in color with link greater than or equal 2.

How can we list them in my present working directory? 
ls -l | grep ^d

Example listing of directories.

	drwxr-xr-x 2 surendra surendra 4096 2010-01-19 18:37 bin
drwxr-xr-x 5 surendra surendra 4096 2010-02-15 18:46 Desktop
drwxr-xr-x 2 surendra surendra 4096 2010-01-18 14:36 Documents
drwxr-xr-x 2 surendra surendra 4096 2010-02-13 17:45 Downloads

How to create them? 
Ans : Use mkdir command

Block file type in Linux

These files are hardware files most of them are present in /dev.

How to create them? 
Ans : Use fdisk command or create virtual partition.

How can we list them in my present working directory?

ls -l | grep ^b

Example listing of Block files(for you to see these file, they are located in /dev).

	brw-rw---- 1 root disk 8, 1 2010-02-15 09:35 sda1
	brw-rw---- 1 root disk 8, 2 2010-02-15 09:35 sda2
brw-rw---- 1 root disk 8, 5 2010-02-15 09:35 sda5

Character device files in Linux

Provides a serial stream of input or output.Your terminals are classic example for this type of files.

How can we list character files in my present working directory?

ls -l | grep ^c

Example listing of character files(located in /dev)

	crw-rw-rw- 1 root tty 5, 0 2010-02-15 16:52 tty
crw--w---- 1 root root 4, 0 2010-02-15 09:35 tty0
crw------- 1 root root 4, 1 2010-02-15 09:35 tty1

Pipe files in Linux/Unix

The other name of pipe is a “named” pipe, which is sometimes called a FIFO. FIFO stands for “First In, First Out” and refers to the property that the order of bytes going in is the same coming out. The “name” of a named pipe is actually a file name within the file system.

How to create them? 
Ans: Use mkfifo command.

How can we list character files in my present working directory?

ls -l | grep ^p

Example listing of pipe files

	prw-r----- 1 root root 0 2010-02-15 09:35 /dev/.initramfs/usplash_outfifo
prw-r----- 1 root root 0 2010-02-15 09:35 /dev/.initramfs/usplash_fifo
prw------- 1 syslog syslog 0 2010-02-15 15:38 /var/run/rsyslog/kmsg

symbolic link files in Linux

These are linked files to other files. They are either Directory/Regular File. The inode number for this file and its parent files are same. There are two types of link files available in Linux/Unix ie soft and hard link.

How to create them? 
Ans : use ln command

How can we list linked files in my present working directory?

ls -l | grep ^l

	Example listing of linked files
lrwxrwxrwx 1 root root 24 2010-02-15 09:35 sndstat -> /proc/asound/oss/sndstat
lrwxrwxrwx 1 root root 15 2010-02-15 09:35 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root 15 2010-02-15 09:35 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root 15 2010-02-15 09:35 stdout -> /proc/self/fd/1

Socket files in Linux

A socket file is used to pass information between applications for communication purpose

How to create them? 
Ans : You can create a socket file using socket() system call available under

Example in C programming

	int sockfd = socket(AF_INET, SOCK_STREAM, 0);

You can refer to this socket file using the sockfd. This is same as the file descriptor, and you can use read(), write() system calls to read and write from the socket.

How can we list Socket files in my present working directory?

ls -l | grep ^s

Example listing of socket files.

srw-rw-rw- 1 root root 0 2010-02-15 09:35 /dev/log

	srwxrwxrwx 1 root root 0 2010-02-15 10:07 /var/run/cups/cups.sock
srwxrwxrwx 1 root root 0 2010-02-15 09:35 /var/run/samba/winbindd_privileged/pipe
srwxrwxrwx 1 mysql mysql 0 2010-02-15 09:35 /var/run/mysqld/mysqld.sock

A tip for you guys. How to find your desired type of file ?

Ans : Use find command with -type option. For example if you want to find socket file, just use below command. find / -type s If you want to find linked file then how? Find / -type l

Thats it….

The Linux Foundation’s Core Infrastructure Initiative Working with White House on Cybersecurity National Action Plan

 

The White House

The White House today announced its Cybersecurity National Action Plan (CNAP), which includes a series of steps and programs to enhance cybersecurity capabilities within the Federal Government and across the country. In the proposal, the White House announced collaboration with The Linux Foundation’s Core Infrastructure Initiative(CII) to better secure Internet “utilities” such as open-source software, protocols and standards.

We are pleased The White House recognizes the work that CII has been doing to improve the security of open source software as it’s used on the Internet and by business and government. We look forward to working closely with the White House and the Department of Homeland Security as they implement CNAP and believe that private-public partnerships of this kind can have a major impact on improving security best practices.

From today’s announcement:

Even as we work to improve our defenses today, we know the Nation must aggressively invest in the science, technology, tools, and infrastructure of the future to ensure that they are engineered with sustainable security in mind.

The Government will work with organizations such as The Linux Foundation’s Core Infrastructure Initiative to fund and secure commonly used internet “utilities” such as open-source software, protocols, and standards. Just as our roads and bridges need regular repair and upkeep, so do the technical linkages that allow the information superhighway to flow.

Open source software is running the world. Facebook, Amazon, Twitter and an increasing number of companies are using Linux and other open source software to build innovative products like GoPro, Blockchain technology and more. The world’s largest banks and data centers and the Internet we all use to connect with everything and everyone are running Linux and other open source software.

But while this success has accelerated technology development and reduced cost, very little has been done to support the developers running some of the world’s most important projects – OpenSSL, GnuPG, OpenSSH, NTP and more – the projects that make up the roads and bridges referenced in the action plan but that most of us have never heard of.

We must make sure dollars, support and resources are funneled to the technologists building and maintaining the critical software that touches all our lives every day. The challenge is a complex one, as software that can operate at Internet-scale is difficult to write and maintain.

CII is responding to the chronic underinvestment that has endangered core Internet technologies. Many of these technologies are open source software projects developed by one or a handful of developers that have over time become the essential infrastructure of the Internet and modern commerce. In the 18 months since it was launched, CII has demonstrated that its community-focused mix of investment, tooling and advocacy is producing dramatic results.

And while some projects have received acceptable funding and attention, other critical open source projects remain under-resourced. These weak links represent risks that need to be resolved for the Internet to continue its growth.

An excerpt from today’s plan sums it up just right: “If we’re going to be connected, we need to be protected. We need to join together—Government, businesses, and individuals.”

Amazon Courts Game Developers with Launch of Dev Engine Lumberyard

With Lumberyard, AWS is integrating its Twitch video service and ultimately eyeing virtual reality.

Read more at ZDNet News

How to install Fail2Ban on CentOS 7

Most Linux servers offer an SSH login via Port 22 for remote administration purposes. This port is a well-known port, therefore, it is often attacked by brute force attacks. Fail2ban is a software that scans log files for brute force login attempts in real-time and bans the attackers with firewalld or iptables. This tutorial shows the installation and configuration of Fail2Ban with firewalld on CentOS 7.

Read more at HowtoForge

Raspberry Pi: New NOOBS and Raspbian Releases

pi2modb1gb-compUpdated images are available for NOOBS (1.6.0) and Raspbian (2016-02-03). Existing system can simply be updated in place.

New distribution images have showed up on the Raspberry Pi Downloads page, for NOOBS 1.6.0 and Raspbian 2016-02-03. There has not been an official announcement yet (also known as a Raspberry Pi Blog post), but I assume one will come along very soon. The last time there was a delay between the release showing up in downloads and the actual announcement, it was because they were waiting for the Pi Zero announcement …

Read more at ZDNet News