IBM’s massive $34 billion acquisition of Red Hat closed a few weeks ago and today, the two companies are now announcing the first fruits of this process. For the most part, today’s announcement further IBM’s ambitions to bring its products to any public and private cloud. That was very much the reason why IBM acquired … Continue reading With the acquisition closed, IBM goes all in on Red Hat
Cron allows Linux and Unix users to run commands or scripts at a given date and time. You can schedule scripts to be executed periodically. Cron is one of the most useful tool in a Linux or UNIX like operating systems. It is usually used for sysadmin jobs such as backups or cleaning /tmp/ directories … Continue reading Linux Cron
What is bashrc file?
.bashrc is a shell script that Bash runs whenever it is started interactively. You can put any command in that file that you could type at the command prompt. You put commands here to set up the shell for use in your particular environment, or to customize things to your preferences. A common thing to … Continue reading What is bashrc file?
How to run a command every x interval of time in terminal?
Option #1: You can use watch command , watch is used to run any designated command at regular intervals . Open Terminal and type : watch -n x <your command> change x to be the time you want . For more help using the watch command and its options, run man watch or visit this … Continue reading How to run a command every x interval of time in terminal?
Configure a USB device to be used by a non-root user
Q: I have device file that appears in /dev when a specific board is plugged in. The read and write operations to it work just fine, but in order to open the device file the program needs to be executed with root priveledges. Is there any way I can all a non-root user to open … Continue reading Configure a USB device to be used by a non-root user
A note on Java compilation on Windows, Ubuntu, and Raspberry Pi (Debian)
Here is some basic info for these three platforms (in particular, Java environment). A side note - I tried Geany, Netbeans, and BlueJ on Raspberry Pi. It seems that none of these IDE's is fast enough to do the work. The most efficient way to compile the Java source code probably is through command lines. … Continue reading A note on Java compilation on Windows, Ubuntu, and Raspberry Pi (Debian)
How to compile and run a Java program in command prompt?
Here is an example if you are going to use OpenJDK. This helps when it's too slow to load a Java IDE to compile the source files (For example, on Raspberry Pi platform; I've tried Geany and Netbeans. It takes forever to load...). From Terminal install the open jdk sudo apt-get install openjdk-7-jdk Write program … Continue reading How to compile and run a Java program in command prompt?
How to install a USB WiFi adapter on Raspberry Pi or Ubuntu?
How to install TP-Link TL-WN725N on Raspberry Pi The TP-Link TL-WN725N is known as a hard one to get working on your Raspberry Pi. After searching for a long time, I finally got it working. In this post, I will tell you how to install it. It is recommended to upgrade your Raspberry Pi first. … Continue reading How to install a USB WiFi adapter on Raspberry Pi or Ubuntu?
How to install an init.d script in Ubuntu?
Reference link: http://askubuntu.com/questions/335242/how-to-install-an-init-d-script-in-ubuntu For example, to create a new script "vncserver" sudo editor /etc/init.d/vncserver Then enter the shell script (e.g., define start, stop, status, etc. check out one example inside that folder...). Afterwards, make sure that you make the script executable after creation. sudo chmod +x /etc/init.d/vncserver Now insert the service into the start-up system … Continue reading How to install an init.d script in Ubuntu?
What is the file /etc/rc.local for?
Linux File Reference: /etc/rc.local The /etc/rc.local file is common to major Linux distributions. This file contains BASH commands which will be run after run-level specific commands whenever the system is booted. In a VPS environment, /etc/rc.local is commonly used to store the hostname <SERVER_HOSTNAME> command (where <SERVER_HOSTNAME> is the intended hostname for the VPS) to … Continue reading What is the file /etc/rc.local for?