Thursday, September 3, 2015

Run jar files in Linux

0 comments

Run jar files in Linux

When people try to run the jar file, they click on it, It opens with an archive manager and showing the files. So how to run it by clicking on it ?
Well, it's easy, first you have to have java installed, whether it's Openjdk or OracleJdk.
Second mark it as executable.

make it executable

Then customize the "Open with" tab like these pictures :

Open with

Openjdk

Choose Openjdk or Oraclejdk, Depending on what you have.

Note : this process executed in Nautilus file manager, However it's almost the same steps for other file managers.

We can do it using Terminal too, first make it executable :

chmod +x test.jar

then run it with this command : 

java -jar test.jar



     
Read more...

Wednesday, August 12, 2015

Recent popular game - Agar.io

0 comments

Recent popular game - Agar.io

Agario is the recent online browser based game which gained popularity largely and very fast, it is a massively-multiplayer action game developed by Matheus Valadares. you can play Agario online for free.

Despite of still being new it grows so fast. People all over the world are enjoying it. It has eight servers for this game. They are located in the US West, US East, South America, Europe, Russia, East Asia, China, and Oceania.
To play Agario online, the rules are too simple. The goal is to grow as large as possible. Stay alive and watch out from other players because they will try to absorb you. As soon as you type a name and select the server near you to reduce the lags, you will be given a cell to control by navigating the cursor to move your cell around and some keyboards keys to do some actions like splitting or ejecting your character’s mass It is the time for you to start the journey. Eating small masses is the objective is to grow as larger as possible. First of all, just swallow non-player cells that are randomly scattered around the map. When getting enough mass, you can absorb any smaller players.

The game can be found in almost all platforms, to play it click here.

     
Read more...

Sunday, June 21, 2015

Open and close CD / DVD Drive using this trick

0 comments

Open and close (CD / DVD Drive) using this trick

Linux terminal (or Shell language generally) can do many beautiful things such as tricks, whether in terms of benefit of programming, or in terms of tricks and entertainment, and in this lesson we will learn about small code that executes an infinite loop which make the drive (CD / DVD Drive) closes and opens itself repeatedly, and of course will not stop unless you stop your own script, and you will learn about it.

1. First, Create a new text file under any name you want (for example, I I would call it script), at the end of your file name, add .sh 
now the name will be like this : script.sh

Create Document


Script.sh


2. Now, copy the following codes, and paste then in the text file script.sh :

#! / Bin / sh
while [1 = 1]
do
#eject CDROM
eject
#pull CDROM tray back in
eject -t
done

3. Save the file and close it.

4. Go to the File Properties and Permissions tab, check the option appeared in the picture :

allow executing file as program

5. Now run the file, and if this message appears, press Run in Terminal, and now you will see how the drive will still opens and closes on its own, until you stop it.

run in terminal


How do I stop it ? Simply close the terminal window.

     
Read more...

Saturday, May 16, 2015

How to Check MD5 Hash using Terminal

0 comments

How to Check MD5 Hash using terminal

In this post, we will explain how to check the md5sum value on Linux distributions, using the Terminal.

What is MD5 and why  should be validated ?


When you download the ISO file, for example (whether an operating system or program or any other file) it is advisable to test its health, safety and file security, lest there be damaged or corrupted, in this case it's called MD5 Test or hash value (retail), which is about mathematical equation consists of a set of numbers and letters, and the way to verify the equality of the value of the real hash to the given party publisher with the value of the ISO file that is loaded; the higher the ISO file size the greater the need for a testing process to avoid errors during use.

Test Method


There are some different software in the Linux system to verify the integrity of the file and is known to many, but in here we will test the validity through the Terminal, without the need for programs.

1. Open the terminal Ctrl + Alt + T and paste the following command :

cd Downloads

Downloads must be replaced with the name of the folder in which the file to check is allocated in.

2. paste the following command :

md5sum ubuntu-11.10-dvd-i386.iso

Replace ubuntu-11.10-dvd-i386.iso with the desired file.

3. The following result will appear, note that you have produced a hash value :

8044d756b7f00b695ab8dce07dce43e5 ubuntu-11.10-dvd-i386.iso

4. Now you should check matching the number that publisher gave you, with the number that resulted in the terminal, the correspondence with each other, the safe the file is, but if they have not corresponded you must re-download the file again.

5. That's it.

     
Read more...

Wednesday, February 11, 2015

How to Set Chromium into Private (Incognito) Mode by Default

0 comments

How to Set Chromium into Private (Incognito) Mode by Default


If you like Chromium and keeping your browsing private, use Incognito mode. you can always use that mode by clicking "New incognito window" from the menu as the image bellow shows :

New incognito window

Or by just pressing Ctrl + Shift + N.

However here’s a handy trick for always starting Chromium in incognito mode by default.
First, edit Chromium.desktop which is located here /usr/share/applications/chromium.desktop. I"m using nano here, so the command will be :

sudo nano /usr/share/applications/chromium.desktop 

In this code : Exec=chromium %U add --incognito, so It will be Exec=chromium --incognito %U

Now when you open Chromium, It will open in incognito mode.

     
Read more...

Thursday, December 25, 2014

Merry Christmas!!

0 comments


I want to wish everyone a Merry Christmas. I hope everyone is having a very good time with your loved ones these days.
Enjoy!. 


     
Read more...