DMitry tool

Kali Linux Day 2: Information Gathering tool: DMitry

What is DMitry?

DMitry or (Deepmagic Information Gathering Tool) is a tool found in Kali Linux that automates some of the commonly used methods in order to gather information about a specific host or target.

Read More »

Advertisements

Copy vs Hard Link vs Soft (Symbolic) Link

Copy vs Hard Link vs Soft LinkI was trying hard to understand the meaning of links in the Linux world. Based on what I have read, there are two types of links – symbolic (soft) link and hard links. Soft links are pointers to a file while hard links are like linked copies of a file. Wait. Did I just write copy? Confusing right? Why bother doing hard links when you can just copy and paste files from one directory to another? Don’t worry I was also confused about this topic before but a quick Google search gave me a clear answer from an Arch Linux community member Dusty. He stated that in:

Copy:

  • You have two different versions of the file.
  • If you edit one, the other one stays the same.
  • If you delete one, the other one stays there, but it may not be identical if it was edited.
  • Twice as much disk space used (two different files).

Hard Link:

  • You have one file with two different filenames.
  • If you edit one, it gets edited in all filename locations.
  • If you delete one, it still exists in other places.
  • Only one file on disk.

Soft Link:

  • You have one file with one filename and a pointer to that file with the other filename.
  • If you edit the link, its really editing the original file.
  • If you delete the file, the link is broken.
  • If you remove the link, the file stays in place.
  • Only one file on disk.

So basically we need to:

  • Copy if we need a duplicate of the file which is independent of the other file.
  • Do a hard link if we need a file that is a linked very hard to the original file (all contents of the file will be edited whenever we edit one file and the link will stay even if we move the original file to a separate location) and wanted to avoid different versions (of the file) and space eating duplicates.
  • Do a soft (symbolic) link if we wanted a shortcut to the file.

And that’s it! the main differences between Copy, Hard and Soft Link. Hope we all learned something new in this post!

References:

Elementary OS: Editing the Grub Bootloader

The one single factor why I did not want to move from Linux Mint XFCE to Elementary OS is the fact that I could not edit its default bootloader. I have tried adding the PPA from Daniel Richter for Grub-Customizer but for some reason it did not work (because I could not fetch the file in his PPA). So after spending some of my time over Xubuntu (Ubuntu under XFCE) and Debian XFCE, I finally moved on to Elementary OS.

 

Installing Grub-Customizer

 

First, open the terminal and type:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer

Then after confirming the addition of the repository, type:

sudo apt-get update

and

sudo apt-get install grub-customizer

After that you are free to use the grub-customizer app!

 

Editing Default Grub Boot Entry

 

After installing Grub-Customizer, changing the default boot entry will be easier. You won’t be bothering with the command line function (though it is very important that one should learn this) and will be only presented with a graphical user interface.

Grub Customizer

  1. Open the Grub-Customizer
  2. Click the OS entry you wanted to boot first
  3. Click save change (1st icon on the left most part of the app)

Then after you have restarted, the default boot entry will be the OS on the top of the list (in my case my Windows 7)! Enjoy!

After Android: Going back to Symbian

After months of tinkering Android, I made it back to Symbian. But one would ask why?

  • First of all my HTC Butterfly S is dead. Yep. Dead. I dropped it accidentally on the beach and watched it die agonizingly for 6 hours. It did not die after I dropped it on the water, it died after 6 hours.
  • Second, I do not have any Android phone left and I could not buy another one anytime sooner. As much as I want to buy an Android phone, I can’t. I am short of funds (because I wanted an Android phone which is capable on camera, battery, storage and multimedia *HTC Butterfly S*).

So after spending some time on Android, here are my thoughts:

Read More »

Developing on Linux (Linux Mint XFCE): Compiling on Geany (C++)

Geany
Geany: A lightweight IDE

I usually use Codeblocks on my Windows partition for developing purposes. However, I noticed that most of the distros out there uses Geany as their preinstalled IDE. Since I haven’t heard of Geany yet, I fired up my Software Manager on Linux Mint and installed Geany (4 star rating with 242 reviews) on my machine.

After installing it, I pasted a C++ code and tried to build and run it. To my surprise though, it could not compile the code and is asking me for g++. So I went out for a Google search and found that it (Geany) does not have a compiler built in. However, you can actually install g++ from the repositories via Software Manager or Terminal to make Geany compile and run the code!

GeanyG++ And since Geany is a lightweight IDE, I think I will ditch Codeblocks on Linux from now on.

Steam on Linux (Debian, Ubuntu, Linux Mint)? Yep. Possible.

This might not be new to you but just in case you don’t know yet, the ever famous “Steam” gaming platform works on Linux! No emulation / virtualization required! So if its the one thing that is holding you back to move into the Linux world, maybe you should think again!

For those who don’t know Steam, lets take a brief look.

Steam Platform

So what is Steam?

According to Wikipedia (I know, call me lazy!):

Steam is a digital distribution, digital rights management, multiplayer and communications platform developed by Valve Corporation. It is used to distribute games and related media online, from small independent developers to larger software houses; in October 2012, Valve expanded the service to include non-gaming software.

In short, Steam is a platform where publishers distribute their software (either be games or apps) to consumers. All you have to do is install Steam and when you pick a software from Steam, it will take care of the download and installation fr the software to your machine. Pretty convenient eh? It also supports auto update of installations so if the game or app publisher updates its software, Steam will automatically update it. Commonly, games and apps should be purchased in order for someone to download it. However, in Steam there is a wide range of Free-to-Play games such as:

  • Team Fortress 2 (personal favorite)
  • Dota 2
  • Warframe
  • Others (these are the only 3 games I played using steam)

You can visit Steam to view the full list. Also if I may add, Steam features a messaging system, in-game browser and achievements. So if you play Team Fortress like I do, you can easily check achievements, make a party and find online friends during the game. No need to ALT + TAB anymore!

Enough of Steam. So how do we install this on Linux? Remember that I am currently using Linux Mint XFCE right? So I think this steps will apply to Linux Mint XFCE (or the normal Min), Ubuntu and ultimately the great mother Debian. So here it goes:

 

  • Go to STEAM to download the .deb file
  • If you are in Linux Mint XFCE (or the normal Mint) or Ubuntu, just double click the file and install it. You will be needing the root password for this. Succeeding steps are for Debian
  • If you are in Debian, I think the way to install steam is to dpkg the file. Head over to the directory where you saved the file (I think it is saved in ~/HomeLinux/Downloads if you download it from Iceweasel) and copy the location from the address bar.
  • Next, open Terminal and type:

cd <insert the directory where you saved the Steam installer here>

  • Then type this and enter your root password:

sudo dpkg -i steam_latest.deb

  • Success! Now you can play your favorite games on Steam! Enjoy playing!

Note: Of course some of you out there wants to know what the commands in the terminal mean. Since I am just starting out, I could not provide you a very detailed answer but just like you (who want to know the commands) and I am still a newbie in Linux so here is what I know so far on the said commands:

  • cd: It means current directory. It tells your terminal to change your working directory to the directory or address or location that you have specified
  • sudo: It means that you will be running the command as root (administrator). This is required in order to install programs in Linux (well just like in Windows 7 right?)
  • dpkg: On my search at Debian, this is the main Package Management program for Debian. So typing this will call that package manager and wait for your input (switches -i or -r or others)
  • -i: A switch for the command dpkg. It tells your dkpg program that you are going to install a .deb file.

That’s it! If you find my explanation too complicated or you find my understanding wrong, kindly comment and I will revise this. Thanks for reading!

A Little Problem with Wallpapers: Linux Mint Debian

I always wanted a customized desktop. Panels here, there and everywhere! However, before I change those settings, I go and look first at my wallpaper. Is it good enough? Forgive me Linux Mint fans but I do not want the default Linux Mint Wallpaper. Its too “grey” for me.

Expecting that I will have a collection of wallpapers to pick up, I decided to change my desktop wallpaper via right clicking the desktop and selecting change desktop background. To my surprise, there is no list of wallpapers to choose from. This forced me (which is fun) to find the default folder where mint is keeping its default wallpapers. Finally, after some digging, I found this folder:

/usr/share/backgrounds/linuxmint-nadia-extra

where Linux Mint stores its backgrounds. So how to I add these wallpapers to the change desktop background window? Just click the add button from the change desktop background window and select everything except for the credits. Sit back and watch your desktop come to life with a range of selection of wallpapers! Enjoy!

PS: My Desktop Background

Screenshot from 2013-07-27 12:10:06