Category: Linux

Link: End the Tyranny of hosts files!

When developing websites and web applications, you will often have a local environment set up for testing in your browser. But what if you want to test it on another machine or device on your local network?

Chances are, the hostname of your computer won’t work as a valid virtual host on a mobile device (and some computers). Additionally, you might have multiple projects on the go that all need unique virtual host names to operate properly.

This problem used to be solved by the “hosts” file (in /etc/hosts on Linux/Mac and C:\Windows\System32\Drivers\Etc\hosts on Windows), but there’s a better way! You can use IP reflection services or wildcard DNS records to let you use nearly any virtual host name you want.

Full article here:
End the Tyranny of hosts files! (whateverthing.com)

Link: Unix: When pipes get names

Unix pipes are wonderful because they keep you from having to write intermediate command output to disk (relatively slow) and you don’t need to clean up temporary files afterwards. Once you get the knack, you can string commands together and get a lot of work done with a single line of commands. But there are two types of pipes that you can use when working on a Unix system – regular, unnamed or anonymous pipes and named pipes. These two types of pipes share some advantages, but are used and implemented very differently.

Full article here:
Unix: When pipes get names (ITworld)

Link: How to access ssh terminal in web browser on Linux

Running “everything” in a web browser used to be a bold statement. However, due to the increasingly powerful HTML5/JavaScript stack, a web browser has now become a dominant application delivery platform. Even the Linux kernel sandboxed in a web browser no longer sounds so crazy these days.

In this tutorial, I describe how to access an SSH terminal in a web browser on Linux. Web-based SSH is useful when the firewall you are behind is so restrictive that only HTTP(s) traffic can get through.

Full article here:
How to access ssh terminal in web browser on Linux (Xmodulo)

Link: Raspberry Pi: the Perfect Home Server

Ever since the announcement of the Raspberry Pi, sites all across the Internet have offered lots of interesting and challenging uses for this exciting device. Although all of those ideas are great, the most obvious and perhaps least glamorous use for the Raspberry Pi (RPi) is creating your perfect home server.

If you’ve got several different computers in need of a consistent and automated backup strategy, the RPi can do that. If you have music and video you’d like to be able to access from almost any screen in the house, the RPi can make that happen too. Maybe you have a printer or two you’d like to share with everyone easily? The Raspberry Pi can fill all those needs with a minimal investment in hardware and time.

Full article here:
Raspberry Pi: the Perfect Home Server (Linux Journal)

Link: MythWeb ssh tunnel howto [for MythTV users]

I am going to briefly describe how to connect to mythweb that is behind a firewall in a router. I will assume you have mythweb running. If you need help with that please see the mythweb documentation: http://www.mythtv.org/docs/ I will also assume that you know how to forward ports on your router. …..

Full article here:
MythWeb ssh tunnel howto (MythTV wiki)

Link: Check and Repair Your Filesystem With fsck [Linux/OS X]

No matter how well you take care of your computer, sometimes, it will just crash and you often have to pull off the plug to restart the computer. When such crashes happen, there is a chance that your filesystem will get corrupted or damage. It is advisable to do a filesystem check regularly to make sure that it is running properly and free of error.

In Linux (and Mac), there is this powerful command “fsck” that you can use to check and repair your filesystem. “Fsck” stands for “File System Consistency checK”.

…..

An important thing to note is that fsck cannot be used on a mounted partition. If you do so, there is a high chance that it will damage the filesystem.

(emphasis added)

Full article here:
Check and Repair Your Filesystem With fsck [Linux] (Make Tech Easier)

One thing the article doesn’t mention is that you can avoid the problem of not being able to use fsck on a mounted partition by causing the system to reboot and then immediately run fsck. To do that, issue this command from the command prompt:

shutdown -rF now

The “-r” option means “Reboot after shutdown”, and the “-F” option means “Force fsck on reboot.” The two options can be combined into “-rF” as shown above. Unfortunately, that only works in Linux, not OS X, but if you’re already booted into OS X you can use Disk Utility to check your filesystem, and then you don’t even need to reboot.

Link: 11 Cron Scheduling Task Examples in Linux

In this article we are going to review and see how we can schedule and run tasks in the background automatically at regular intervals using Crontab command. Dealing a frequent job manually is a daunting task for system administrator. Such process can be schedule and run automatically in the background without human intervene using cron daemon in Linux or Unix-like operating system.

For instance, you can automate process like backup, schedule updates and synchronization of files and many more. Cron is a daemon to run schedule tasks. Cron wakes up every minute and checks schedule tasks in crontable. Crontab (CRON TABle) is a table where we can schedule such kind of repeated tasks.

Full article here:
11 Cron Scheduling Task Examples in Linux (Tecmint)

Link: How to identify video formats from command line on Linux

If you want to know what video/audio codec are used for the video file you downloaded from somewhere, you can play the video itself. Most media player software such as VLC or MPlayer can display properties of a video file being played. However, there are command-line utilities that allow you to determine video properties quickly.

In this tutorial, I will describe how to check video formats from the command line on Linux.

Full article here:
How to identify video formats from command line on Linux (Xmodulo)

Link: How to make a DIY home alarm system with a raspberry pi and a webcam

How to make a DIY home alarm system with a raspberry pi and a webcam

Convert a simple webcam to a fancy digital peephole viewer with motion detection features

Traditional wireless CCTV cameras are cheap but anyone with a wireless receiver can view your signal. On the other hand, IP cameras are secure but they can be quite expensive and usually the video quality is poor — unless you go for a really expensive model.

Lately I wanted to install a home surveillance system so I chose to use a cheap Logitech webcam with Raspberry Pi and motion, an excellent linux program that monitors video signal for changes and triggers events.

Full article here:
How to make a DIY home alarm system with a raspberry pi and a webcam (medium.com)

Link: A Guide to Kill, Pkill and Killall Commands to Terminate a Process in Linux

This is nothing more or less than a selection of Kill, Pkill and Killall command examples, that show you how to terminate a process without the need of reboot.

A Guide to Kill, Pkill and Killall Commands to Terminate a Process in Linux (Tecmint)

Recent Posts

Recent Comments

Archives

Categories

Meta

GiottoPress by Enrique Chavez