Linux.com

Home Linux Community Community Blogs

Community Blogs



Delete file when you have more than 100g for deleting

Hello Linix community members,

Today I would like to share a simple script for deleting files when you have more than 100g for deleting and when you try to delete using rm -rm /path/fo/files failed.

To do this I use the following procedure;

first I use a "for" ciclo to read file that I going to delete also you can use a mtime for calculate file's date that you're going to delete or you can to calculate previous date of a past day "x=`TZ=GMT+24 date +%Y%m%d`"

Ex;

#!/bin/bash -x
x=`TZ=GMT+24 date +%Y%m%d`
delcnt=0
for files in `find /path/of/file/to/eraser/ -name \*$x*.bin.gz`
do
echo "Deleting file $files"
/bin/rm -rf $files
delcnt=$(($delcnt + 1))
done

 

Best regards

Charles E. Rivera

Solaris Server Specialist Engeeneer

 

Raspberry Pi 2 review

The latest chapter of the Raspberry Pi promises so much, but does it deliver? The Raspberry Pi is a series of credit-card sized single-board computers. The original Raspberry Pi was acclaimed by some reviewers as a desktop PC replacement. The reality was vastly different.

With a single core CPU and a 256MB dollop of RAM it was honestly too slow for many typical desktop tasks. It was never a desktop replacement after all. The Raspberry Pi's creators, the Raspberry Pi Foundation, wanted to spark children's interest in computer programming and encourage students to apply for computing degrees. The original Pi, and its later incarnation with 512MB RAM have been a runaway success, selling 5 million units. The charitable foundation has used the proceeds from the project to train teachers, supply educational resources, and fund numerous open source projects.

<A HREF="http://www.linuxlinks.com/article/20150305172256427/RaspberryPi2-Introduction.html">Review</A>

 

Vivaldi Technical Preview 2 Released, Install In Linux To Give A Try


Vivaldi Technical Preview 2 Released, Install In Linux To Give A Try

Vivaldi is a new web browser built by an Opera founder. The browser that is specially built for developers but everyone can use it. The browsers is rapidly being developed and its second technical preview has been released. Install in Linux to give it a try. You will like it.
 

Read At LinuxAndUbuntu

 

Share Mouse And Keyboard With Your Windows & Linux Machines With Synergy 1.7.1


Share Mouse And Keyboard With Your Windows & Linux Machines With Synergy 1.7.1

We often need to use two computers at one time and switching mouse & keyboard again & again is very annoying. So what to do? Yeah! We can use one mouse & keyboard with two machines at the same time. So let's get started!
 

Reat At LinuxAndUbuntu

 

SteamOS A Linux Distribution For Gaming


Picture

SteamOS is a Debian Linux kernel-based operating system in development by Valve Corporation designed to be the primary operating system for the Steam Machine game consoles. It was initially released on December 13, 2013, alongside the start of end-user beta testing of Steam Machines.
 

Read At LinuxAndUbuntu

 

Install Steam In Ubuntu/Linux Mint And Play Amazing Games On Linux


Install Steam In Ubuntu/Linux Mint And Play Amazing Games On Linux

You are using Linux and thinking Linux does not support gaming.! If so, let me tell you that you are not aware of Steam. Steam is a gaming client that lets you play amazing games on Linux system. There are hundreds of free and paid games that you can play without searching the entire web. All at one place and easy to install! So let's get started!
 

Read At LinuxAndUbuntu

 

What have you Decided - Colocation or Cloud Computing?

Data is one of the most valuable assets for any business. Being significant it’s also greatly vulnerable resource which can subject to possible loss via theft, natural disaster, viruses and power outages. Building an in-house data center consumes more time and capital investment. And to avoid this, many companies are moving towards alternative data-security approaches. There are several options to manage and store company data and applications which makes difficult to choose a perfect one. Colocation and cloud are the two popular services preferred by organizations but you need to choose which one best suits yours?

Let’s understand the difference between the two.

What is Colocation?

Colocation is a setup that allows companies to maintain in-house data centers including own equipment but sharing the price of communications, cooling, power and data center floor space with other tenants. It is a good choice for those enterprises that require complete control over their equipment. In colocation, a provider offers space in the data center and supplies bandwidth, network, security, cooling and backup to run IT equipment.

Addressing the limitations of an existing data center can be the second common reason to use colocation. As per an industry survey, around 36% of data center services will have no space, power or cooling capacity in coming years. So, instead of planning for a new data center, it will be a common sense to enhance the current data center by renting a space in a colocation facility. Enterprises that have invested heavily in IT equipment can plan to move their infrastructure into colocation facility and reap the benefits of disaster recovery and redundancy needed for compliance.

You need to keep two points in mind while opting for colocation. One is, in colocation, you need to purchase your own servers, switches, storage and software. Other is the organization’s IT staff will have to invest time in managing and monitoring the equipment as well as conducting backup and maintenance. There are several providers that offer managed services that can be appointed to monitor and manage the infrastructure. Ensure that provider gives you choice on prices and functions that you want the third party to handle and which you need to have self-control over.

What is Cloud?

Though you might be very well known to this term but explaining it is essential to understand the difference between colocation and cloud. In cloud computing, hardware isn’t shared and all resources and facilities are controlled by the service provider. In addition, there isn’t any upfront capital cost involved but a monthly fee is charged for the delivery of services. Thus, one of the benefits of using cloud is cost reduction which is impossible in the colocation facility. Numerous cloud service providers offer different options as per requirements – pay as you go and fixed term contracts.

Cloud computing is best for smaller organizations and startups. Other than cost the second benefit of cloud computing is scalability. When you opt for cloud services, you can start with a small server setup and when your venture requirement grows, new instances of servers can be turned up immediately. It’s an ideal solution for those companies that aren’t technologically expertise but it is required in colocation to work.

When you have decided to go for cloud services, you need to consider three things. If your company is handling significant or confidential data such as PCI, DSS, HIPAA or financial mandates such as Sarbanes-Oxley, you have to make sure that the provider has appropriate certificates, is able to demonstrate compliance, is capable of security physical and cyber security at high levels and follows assigned procedure to pass an audit. Lastly, the burden of compliance still lies on you. Secondly, the point is availability of services. Check out if the cloud service provider offers services with the guarantee of availability, depending upon the service level agreements and how he reports change management, controls access in to environment and manages infrastructure resources. The last point is the ability of the provider to solve your problem. Whether their staff is helping their clients 24/7 and what are the process they are using to solve the queries and lessen human error.

The bottom line is all depends on your business. Colocation and cloud primarily differ from each other in terms of assets as in colocation you are dealing with physical assets and in cloud with virtual assets which aren’t cheap. Both these solutions are cost-effective to in-house data approaches. If the data center costs is high and building your own isn’t possible then it’s better to choose colocation as it will be valuable in terms of cost and flexibility. Cloud computing will be best choice when your budget is low and want to free up additional resources to focus on other aspects related to operations.

 

Open Source Graduate Cash Prize Award 2015 - Submission ends March 22

The deadline for submissions to the annual Univention Graduate prize is March 22, 2015.

We like to invite every student who has written a dissertation that investigates any aspect of open source software and makes an innovative contribution to the field of Linux and Open Source software to submit it within the next 3 weeks.

The winner of the Univention Graduate Prize receives € 2,000 in prize money, second place receives € 1,000 and third place wins € 500. The prize winners are selected by an independent jury comprised of renowned Open Source experts.

Masters, and Bachelor graduates can submit university dissertations via e-mail to absolventenpreis(at)univention.de until March 22, 2015.

Visit Univention Graduate Prize 2015 for further information and submit your dissertation!

 

Using netstat to audit your network connections

There is a number of tools you can use in Linux to see what is going on your machine at the network level, one of the most common is netstat. This command will show you all the connections on your system, including some that you may not be interested in, like UNIX sockets. There are a few flags you can pass to netstat, my favourite set of flags is: -antp

-a all
-n show ip instead of host names
-t show only tcp connections
-p show process id/name

Another command that will give you similar results is: lsof -nPi

What if you wanted to see the 10 ip addresses with the most connection to your server? You could use a one-liner like this one I came up with:

netstat -ant | grep -i establ | awk -F" " '{print $5}' | cut -d':' -f 1 | sort -n | uniq -c | sort -nr | head -n10

Continue reading @ blackbytes.info...
 

How to install Selenium on Linux and test your web applications

elenium is a web testing toolkit that allows you to test a web application in any browser of your choice. It does this with the help of a software called WebDriver which allows you to emulate a web browser and test your web application in it.

In this post I am going to show you how to test a simple CRUD application, by automating link clicking and form filling.

Software versions
selenium (2.44.0)
python 3.4.2
Linux kernel 3.13.0-37-generic and Mint 17.1 for Desktop.

http://techarena51.com/index.php/install-selenium-linux-automate-web-tests/

 

How to Install LAMP (Apache 2.4, MySQL 5.6, and PHP 5.4) on CentOS/RHEL 7

LAMP ( Linux, Apache, MySQL and PHP ) Stack is a group of open source software used to get web servers up and running. Since the server is already running CentOS. This article will help you to set up LAMP stack (Apache 2.4, MySQL 5.6, and PHP 5.4) on CentOS and Red Hat 7 systems. You may also use video tutorial on Youtube for installation instruction’s.


Read full article here

 
Page 3 of 155

Upcoming Linux Foundation Courses

  1. LFS201 Essentials of System Administration
    12 Jan » 30 Mar - Online Self-Paced
    Details
  2. LFD331 Developing Linux Device Drivers
    06 Apr » 10 Apr - Virtual
    Details
  3. LFS540 Linux KVM Virtualization
    06 Apr » 09 Apr - Austin - TX + 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