Home » General

General

Linux find text in file

Debian Logo

If you need to find text in file or multiple files on a Linux system you can use grep (global regular expression print) in a very efficient way to do so.  Here are few examples that I commonly use. Find text in file into a directory Use this command to find the text you are looking for within the directory cd /path/to/directory/ ...

Read More »

mdadm replace failed hard drive RAID1

Debian Logo

Got a few failed hard drives in software RAID1 and decided to write this article not to search for the procedure the next time this happens. Detect failed hard drive If you have a lot of error messages in your /var/log/messages and probably get a mail from mdadm monitorring This is an automatically generated mail message from mdadm running on ...

Read More »

Linux SCP command for secure file transfer

Debian Logo

Secure Copy or SCP is part of SSH. This are few examples of using SCP commands for those like me who just could not remember all the options. On almost all Linux machines we don’t want to add additional software that we don’t need, but we need to transfer data from one host to another. SSH’s scp command will come ...

Read More »

Debian malware detection with Maldetect

Debian Logo

If you host multiple websites this tutorial will help you setup Debian malware detection tool to easy find websites that has been compromised instead of getting reports that your server is hosting them. On a Debian system Linux Malware Detect will not run out of the box in monitor mode but scan mode works fine. Prepare your Debian Server and install LMD ...

Read More »

Restart to solve NFS Unknown error 521

Debian Logo

I just had Unknown error 521 while mounting NFS version 3 on a Debian server after a reboot. Solving it took me some time but the solution was very easy. My setup is NFS server on storage server running Debian and a NFS client on another Debian machine where connecting to the NFS server. After a long period of time i ...

Read More »

Windows SMTP Server relay through Gmail

smtp-featured

This tutorial with show how Windows SMTP Server relay mails through Gmail or any other mail server. This is useful if your server is located on a network with dynamic IP address. I had this issue when a monitoring software needed to send notification mails but there was no option of authenticating to the SMTP server. I installed Windows SMTP ...

Read More »

Manage Samba permissions from Windows

Samba logo

For those who installed samba and join the server to Windows Domain, this tutorial will show you how to Manage Samba permissions from Windows machine. There are a tutorials how to install Samba Server and join it to Windows Active Directory domain, but on most of them i haven’t seen how to manage Samba permissions from Windows machine. Filesystem support ...

Read More »

Linux: Delete Files Older Than X Days

Linux

This is a very simple tutorial how to find and delete files older than X days. I needed this for a project where i collected some images and after a while they took too much space. With this you will be able with the Linux find command to find your JPG files older then 30 days and then execute rm ...

Read More »

Upgrade Debian 6 squeeze to Debian 7 wheezy

Debian Logo

This is a simple procedure how to upgrade Debian 6 squeeze to Debian 7 wheezy. This is aimed to systems that doesn’t have any custom manual tweaks or installed software that it’s not from the package manager. First thing you need to do is make backup of your /etc directory. The upgrade process will NOT modify anything in your /home ...

Read More »