There are a number of reasons why you may want to generate a random number in a Bash shell. We are referring to a Bash shell rather than using a … Read more
The Raspberry Pi comes with a 10/100 Ethernet Port to connect to the Internet. In most instances, this works fine. If you set up your Raspberry Pi as a Media Center, your Wi-Fi router and your A/V Receiver might not be in the same room. Running a long Ethernet cable from your Wi-Fi router in one room to your Raspberry Pi in another room does not seem like a practical solution.
Suppose you have several directories with several sub-directories with files in them. How do you go about finding the files you need? You may want to find the latest modified files. You may want to find files belonging to a certain group. You may want to find files under the dotfiles directories. The list goes on and on.
When you are having a problem sending a mail message, the first thing you want to do is test the SMTP (Simple Mail Transfer Protocol) connectivity. By default, SMTP listens on port 25. By using telnet, you can connect to port 25 on the mail server and test whether or not you can send a message. This step is done on your own workstation. If you are having a problem sending mail from a web form, run this step from the server that is storing the web form.
If you work with Unix systems, you may come across some strange commands such as numbers greater than sign and ampersand. To the untrained viewer, these commands may appear gibberish, … Read more
/dev/shm is shared memory. It is offered in Linux as a way for memory to be accessed simultaneously by multiple programs.
shm is also known as tempfs or temporary file storage. On Linux it will appear as a mounted file system that you can access directly. Instead of writing to a permanent storage device such as your hard drive, it writes to virtual memory (i.e., it lives in RAM). Since it is memory, anything written to this file system will be removed the next time you reboot.
The Open Systems Interconnection model (OSI model) by developed by the International Organization for Standardization (ISO) in 1984. OSI reference model is a way of sub-diving network communication and grouping them into logical layers. On each layer, an instance provides the services the instances to the layer above it and requests services to the layer below it.
The power of search and replace is prevalent all over Linux. Whether you are using a text editor or on the command line, regular expressions come in handy. When you … Read more
There are occasions when the single-user mode comes in handy. Take for example last week. I was messing around with iptables and I added to many restrictions on my deny … Read more
Are you still using Secure Socket Layer (SSL) version 2 on your web server? If so, you need to read this article. It can save your life. Okay, maybe not that dramatic but it will show you how to disable SSLv2. Why? There are vulnerabilities in this version. If you don’t disable it, your web server might get compromised. This vulnerability exists whether you are running Apache or IIS. The steps to disable it are fairly trivial. So go ahead and tr