18 May 2017

How To Check Your Server From DDoS, and How To Solve.

If you are a Linux server administrator, you might need to know how to check your server from DDoS attack. There is no clear explanation why some people do a DDoS attack. Maybe they just want to test your server. Whatever they are, you have to be technically prepared for this issue.

1. Check who are accessing your server right now
netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

You will get output like this :






























2. The IP that is accessing your server most is the suspected one. Next, you should block the IP by executing this command :
route add suspected_ipaddress reject

12 May 2017

Linux Command dig Nor Working, How To Solve


Yesterday, I experienced a very odd error in my new installed Rosa Linux R9 : the dig command not working! Every time I tried to dig or dig ns a domain, there is no result.  I reconnected the internet connection, I rebooted the OS, but the result was still same.

I didn't know whether it is the distro issue or not, but I've finally found the solution. Here are the steps :

  1. Edit /etc/resolv.conf
    sudo vi /etc/resolv.conf
  2. Replace the default record with these records :
    nameserver 8.8.8.8
    nameserver 8.8.4.4
  3. Make the resolv.conf immune so the network-manager can't automatically replace it
    sudo chattr +i /etc/resolv.conf
  4. Done

06 May 2017

How To Solve Hipchat4 on Linux : "Make sure you have an internet connection and try again.."

I need to work with Hipchat and didn't have any problem running hipchat client on my Linux machines, since I move to Hipchat4 and installed it on my Debian 9 Stretch with Kernel 4.9. The Hipchat4 Linux Client is unable to connect to the internet and an error message appears "Make sure you have an internet connection and try again..". The internet is ok and everything is ok, so this is without doubt a bug in the Hipchat4 Linux client with newer Linux system. I didn't find this problem with my older Linux machine like Debian 8, Ubuntu 14.04 and older releases.

After wandering around the internet, I've finally found a solution and quite simple. Here are the steps :

1. Create a symbolic link to a library to the Hipchat4 library.
sudo ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2 /opt/HipChat4/lib/libcrypto.so.1.0.2
sudo ln -s /opt/HipChat4/lib/libcrypto.so.1.0.2 /opt/HipChat4/lib/libcrypto.so

2. Relaunch the Hipchat4 Linux Client.

System I'm Using :

  • Hipchat4 Linux Client 4.0.1517
  • Debian 9 Strecth 
  • Kernel 4.9.0-2-amd64

21 January 2017

Open Mandriva Lx 3.01 Review : A Sweet Nostalgia

It has been 10 years, since I've been using Linux as my productive, daily operating system from early 2007. I have tried many Linux distros, but my first distro was Mandriva One 2007. At the time, Mandriva Linux was a star among Desktop Linux distributions. It was beautiful, very easy to use, and the most important thing was : it supported restricted multimedia formats by default.

I was very sad when I heard Mandriva is finally discontinued in 2010. You never forget anything, anyone or any brand you have used for the first time. Mandriva is like my first, gorgeous, lovely girlfriend that I would never forget forever.

Community Reborn
In 2012, Mandriva community continued to maintain Mandriva Linux and rebranded it as 'OpenMandriva Lx'. Later, the community released OpenMandriva Lx 2013. Until now, OpenMandriva Lx is recognized as the official continuation of the Mandriva Linux. There are also another forks of Mandriva Linux : PCLinuxOS, Mageia, anda ROSA Linux.

OpenMandriva Lx 3.01
OpenMandriva community released an updated version OpenMandriva Lx 3.01 in Christmas 2016. It comes with Linux kernel 4.9.0 and KDE Plasma Desktop 5.8.4. 



OpenMandriva Control Center
OpenMandriva control center is a sophisticated control center. It controls everything of our OpenMandriva system : software management, hardware, network, sytem, network sharing, disk partition, security and boot options.  Back in my old days, Mandriva Control Center was probably the most high-end tool in Linux desktop. It really helped me as a newbie to rock around my Desktop Linux system.



























Pre-installed Applications
Just like its predecessor, OpenMandriva Lx 3.01 comes with a bunch of complete applications. There are VLC, Clementine, SMPlayer (my favorite video player), Krita, Kdenlive, Libreoffice and many other useful apps.
























Software Repository
I've successfully installed some additional apps like Chromium Browser, Audacious, GIMP, and others using OpenMandriva Lx's default repository. Despite it's not as complete as Ubuntu repository, OpenMandriva Lx repo is beyond enough for daily basis.

Installation
The installation is very easy and simple. Advanced partitioning also presents and has complete options. 


Memory Consumption
Surprisingly, OpenMandriva Lx 3.01 (64bit) consumes a relatively very little amount of memory. It only uses about 500 MB of RAM.

Desktop Themes
OpenMandriva Lx 3.01 uses KDE Plasma 5.8 default themes, which is good enough. I love the overall look, especially its lock and logout screen.



Conclusion
OpenMandriva Lx 3.01 is a perfect desktop. Everything works just fine, no trouble. Personally, it is a very very sweet nostalgia.

17 January 2017

How To Easily Install Google Chrome on Solus OS






Google Chrome running on Solus OS

Solus OS is a brand new, independent Linux distribution that comes with its own package management called eopkg. Unfortunately, there is no Chromium Browser yet in Solus' default repository. Also, Google Chrome only supports RPM dan DEB package. And so, how to install Chromium/Google Chrome web browser on Solus OS? There are two choices you can pick. (Personally, I prefer to "install" Google Chrome).

1. Chromium .Appimage
You could use Appimage version of Chromium Browser that can be download from THIS REPOSITORY. After you downloaded the appimage file, make it executable by command chmod +x file_name. Last, install the dependecy : sudo eopkg install gconf

2. Google Chrome
Chromium's .Appimage lacks Google account login so you can't access your synchronized bookmarks and histories from your another PC. Alternatively, you can use Google Chrome by a simple tricks as follows :

- Download Google Chrome stable Debian version.
- Extract the file google-chrome-stable_current_amd64.deb
- Go to extracted folder, and you will find two folders. Extract the data.tar.gz file.
- Next, you will find some folders from extracted data.tar.gz
- Move to the opt folder
- Move Google folder to the /opt directory : sudo mv Google /opt
- Make the shortcut :
  -> sudo gedit /usr/share/applications/google-chrome.desktop
  -> Put these lines in the file :

       Name=Google Chrome
       Exec=/opt/chrome/google-chrome
       Icon=google-chrome
       StartupNotify=true
       Terminal=false
       Type=Application
       Categories=Network

- Voila, now you have Google Chrome on your Solus OS.

Solus OS is a great distro. It's fast and beautiful. I hope Solus developer would like to package Chromium browser into Solus' repository.