Archive for April, 2012

Tools for finding files containing a string (recursively) in Graphical Enviroments (GNOME, KDE and XFCE) on GNU linux and FreeBSD

Monday, April 9th, 2012

1. Finding files containing a specific string with GNOME GUI tool gnome-search-tool

Default installation of GNOME version 2.x and 3.x is equipped with a tool called gnome-search-tool. The tool is used by default in the GNOME's file explorer program Nautilus. The quickest way to look for a certain text string across all the files located in a directory and show them is with nautilus's – find manager.

Below is a screenshot showing the gnome-search-tool embedded in nautilus Screenshot Search for pass string in GNOME nautilus File browser

Nautilus find uses gnome-search-tool program for its file search. Below is a screenshot showing the gnome-search-tool embedded in nautilus:

The gnome-search-tool can be also invoked through Gnome Run Application with ALT+F2 or directly run from terminal e.g.:

hipo@noah:~$ gnome-search-tool

gnome-search-tool screenshot find files by content recursively Debian GNU / Linux

As you can see in below screenshot, gnome-search-tool has many available filter file search criterias.

gnome-search-tool available options screenshot Debian Linux

You see I wanted to look for my project passwords so typed in pass in Contains the text: field and pressed enter to simply look for this text in all my files in the look in folder RichtooRich
Screenshot 3 files found gnome search tool Linux screenshot

Actually gnome-search-tool offers plenty of more options than one might look for. With it one can easily make a combination of complex search critea (filters) and hence a very versatile Desktop file saerch tool. From testing it I can say it for sure more powerful program than MS Windows default file searching program called Find It – this is the program with the ( "dumb dog holing a magnifier" 🙂

One can use the Add or Remove to Add single or various combination of filter criterias. For the sake of testing it, I've added a number of file search filters as you see in the shot below:

Linux graphical program for recursive file search gnome-search-tool - file search example screenshot

The search critias are not matched and therefore 0 files were found.
In case if you wonder how gnome-search-tool works? It is actually a GUI wrapper to Linux's Linux find command .

I wasn't complete sure if it uses find for the file search, so to check I run a one search and in in console ran:
 

hipo@noah:~$ ps axuwf|grep -i find
hipo 18213 2.0 0.0 25568 1276 ? S 23:55 0:00 find /home/hipo/Richtoorich ( -iname * -o -iname .* ) ! -type p -exec grep -i -I -c test {} ; -mtime -1 ( -size 102400 -o -size +102400 ) -user root ! -iname *bad\-name\-to\-omit* -print

You can see the filters set in gnome-search-tool are passed as command arguments to find.

2. Finding files containing a string recursively in KDE with kfind

For KDE users there is a handy little tool called Kfind. Kfind is less "search customizable" if it is compared to gnome-search-tool but it has advantage that its search options are way more "user friendly" / human readable 🙂

To use the tool to look in all files for explicit string fill in Look in: or browse to set the main directory where it will look for the string.

Screenshot find content in multiple files and folders recursively kfind kde programThen in the second Contents (tab) fill in the Containing Text: with the string to be looked for:

Kfind Recursive file search tool for Linux KDE graphic environment, input text field screenshot

Finally in the Names/Location tab, there are two other helpful search options – Show Hidden Files and Case Sensitive Search

Screenshot find content in multiple files and folders recursively kfind kde gui program

I'll be curious to hear if someone knows some other nice software easy and comprehensive to use for Linux / BSD. If you know a better file searcher for Linux than this kfind or gnome-search-tool please drop a comment.

Pc-Freak Anti Microsoft Phreak, Hack Crack Organization crew short history timeline

Monday, April 9th, 2012

 

pC Freak Crew Hacking Cracking Anti Microsoft Organization Glowing Logo prepared with GIMP

 

 

Pc-Freak used to be anti-Microsoft Phreak / Hack / Anarchy Cracking (PHACK) magazine at a times, whether cracking was still a "craft". Pc-Freak started by a small crew of two persons Dark Doomer and Hip0.
Dark Doomer was the main magazine editor of Pc-Freak and the person who was ahead in computer technology, back at the distant 1995.
The project was simply started as a fun and aiming to help us, get better understanding on computer technology. The basic aim of it wasto gather a group of people who hold interest in Information Technolgy Telephone cracking and security cracking. At a point Dark Doomer resigned as he didn't believed in the project anymore and Hip0 took the lead of the project.

During his leadership, he created and maintaned a small IRC (Internet Relay Chat) channel in UNIBG – nowdays reachable via (irc.data.bg port 6667) this used to be around the years 1999 – 2006. The most active years of Pc-Freak were not in publishing text file format (txt) magazines, but in mostly discussion related to Computer Security, Ethical Hacking, Cracking and shared love for computer science. Around the year of 2001 a notable member joined Pc Freak, a person under the alias of ORDER. ORDER was mostly interested in how credit card processing works this is how he took the pseudonim. He used to have a good knowledge on CCs and how this kind of Credit Card processing operates. ORDER used to also like a back bone for the Pc-Freak and was the second person in line thanks to him the crew existed. A bit later a very notable members joined Pc Freak. A personal with an IRC alias STRASHARO. He used to be an(an amazing Windows XP cracker) and used to be known for his great cracking skills. STRASHARO and the rest of the crew planned and organized a number of cracking for fun sessions. Some of the other important person for development of PC FREAK as a crew , were the members  SICSTATIC, Nomen, Alex and FREAX. FreaX was the one that left pc-freak the earliest as he decided to completely quit being a computer and pc-freak activist.

 

Nowdays PC-FREAK  has changed a lot.
The person who gave birth to Pc-Freak (hip0)
Still maintains a personal website under the name PC-FREAK.
The Pc-Freak creator is active computer hobbyist 
and part time hacker.

However Pc-Freak Organization doesn't exist any more as a structured body the magazine is not published for a very long time and people who used to be involved somehow in the project are rarely in touch. During the PC-Freak life only 3 issues were published and actually the base idea of the magazine never came to reality. What is important is Pc-Freak used to play key role for the development and existence of current www.pc-freak.net website.

PC Freak currently contains plenty of information related to computer of security, old exploit codes, little hacks on GNU / Linux and FreeBSD (on hip0s) blog, as well as plenty of information on Orthodox Christianity and generally to Christian Faith. On www.pc-freak.net today, there are also plenty of resources on Computer Security, System Administartion, Business Administration, E-Marketing and Business Consutancy.

PHP system(); hide command output – How to hide displayed output with exec();

Saturday, April 7th, 2012

I've recently wanted to use PHP's embedded system(""); – external command execute function in order to use ls + wc to calculate the number of files stored in a directory. I know many would argue, this is not a good practice and from a performance view point it is absolutely bad idea. However as I was lazy to code ti in PHP, I used the below line of code to do the task:

<?
echo "Hello, ";
$line_count = system("ls -1 /dir/|wc -l");
echo "File count in /dir is $line_count \n";
?>

This example worked fine for me to calculate the number of files in my /dir, but unfortunately the execution output was also visialized in the browser. It seems this is some kind of default behaviour in both libphp and php cli. I didn't liked the behaviour so I checked online for a solution to prevent the system(); from printing its output.

What I found as a recommendations on many pages is instead of system(); to prevent command execution output one should use exec();.
Therefore I used instead of my above code:

<?
echo "Hello, ";
$line_count = exec("ls -1 /dir/|wc -l");
echo "File count in /dir is $line_count \n";
?>

By the way insetad of using exec();, it is also possible to just use ` (backtick) – in same way like in bash scripting's .

Hence the above code can be also written for short like this:

<?
echo "Hello, ";
$line_count = `ls -1 /dir/|wc -l`;
echo "File count in /dir is $line_count \n";
?>

🙂

Did you that every single day there are …

Saturday, April 7th, 2012

Do you know that every single day there are:

  • 150 Million Blogs being read
  • 60 Million New Facebook Status Updates
  • 140 Million New "Treets" …
  • 2 Million New Videos Posted to Youtube per day
  • 3.3 Billion! Product and Information Searches
  • 188 Billion! Emails Sent …

 

This statistics were sent to me just few weeks, ago by a friend. I have no clue where he got the statistics, but the numbers are really amazing. From a business perspective point of view this numbers are tremendously HIGH! Nowadays only about 2.5 billion people are actively using the internet daily.

This means more than half of the humanity is still about to join using the internet in the 10 or 15 years to come. Though the continuous use of internet has a very bad impact on us. It is a tremendously big business opportunity field. With this said definitely business innovative people and enterpreneurs should reconsider, there strategic plans for potential products and extend or include the internet in anything they do in order to maximize profits.

All this is just news for anyone who is involved somehow actively with the net (like me), so system admins, web designers, programmers, use your brains and start making money from the internet. If one doesn't start with monetarizing his high tech skills, its quite likely some bad tied suit guy took the lead and made his millions or billions  on our back 🙂

Fix Null error in WordPress comment reply with wordpress-threaded-comments plugin enabled

Friday, April 6th, 2012

I'm running WordPress for already 3 years or so now. Since some very long time. The first wordpress install, I can hardly remember but it something like wordpress 2.5 or wordpress 2.4

Since quite a long time my wordpress blog is powered by a number of plugins, which I regularly update, whenever new plugins pops up …
I haven't noticed most of the time problems during major WordPress platform updates or the update of the installed extensions. However, today while I tried to reply back to one of my blog comments, I've been shocked that, I couldn't.
Pointing at the the Comment Reply box and typing inside was impossible and a null message was stayed filled in the form:

To catch what was causing this weird misbehaving with the reply comments functionality, I grepped through my /var/www/blog/wp-content/plugins/* for the movecfm(null,0,1,null):

# cd /var/www/blog/wp-content/plugins
# grep -rli 'movecfm(null,0,1,null)' */*.php
wordpress-thread-comment/wp-thread-comment.php

I've taken the string movecfm(null,0,1,null) from the browser page source in in my Firefox by pressing – Ctrl+U).

Once I knew of the problem, I first tried commenting the occurances of the null fields in wp-thread-comment.php, but as there, were other troubles in commenting this and I was lazy to read the whole code, checked online if some other fellows experienced the same shitty null void javascript error and already someone pointed at a solution. In the few minutes search I was unable to find anyone who reported for this bug, but what I found is some user threads on wordpress.org mentioning since WordPress 2.7+ the wordpress-threaded-comments is obsolete and the functionality provided by the plugin is already provided by default in newer WPinstalls.

Hence in order to enable the threaded comments WordPress (embedded) reply functionality from within the wp-admin panel used:

Settings -> Discussions -> Enable Threaded (nested) comments (Tick)

Enable Nested Comments WordPress default wp comments enable reply functionality screenshot

You see there is also an option to define how many nested comments subcomments, can be placed per comment, the default was 5, but I thought 5 is a bit low so increased it to 10 comments reply possible per comment.

Finally, to prevent the default threaded comments to interfere with the WordPress Threaded Comments plugin, disabled the plugin through menus:

Plugins -> Active -> WordPress Thread Comments (Deactivate)

This solved the weird javascript null "bug" caused by wordpress-threaded-comments once and for all.
Hopefully onwards, my blog readers will not have issues with threaded Reply Comments.

Do you know that you use GNU / Linux on work at home everyday?

Friday, April 6th, 2012

Do you know you use GNU / Linux unknowingly everyday. I bet you didn't 🙂 While reading my daily sites among which is Linux Weekly News

I came across a very interesting video which the Linux Foundation created. The video is quite nice to see. It has a bit of a technical mambo jambo which ordinary "non-englightened computer" user will not understand completely, however the main message is quite clear. The video displays, how everyday by using Google Facebook, Wikipedia, Amazon  and many other Web based services.
You untentionally become a Linux user 🙂

There is almost no person among the developed nations that doesn't have access to the internet already. Facebook already has about a billion of users the computer internet users are more than 1/3 of all the population more than 2 billion as of time of writting this post

The internet has already completely revolutionized our lives and it continues doing it. The rapid development of the internet was also more or less achieved thanks to GNU / Linux and free software which enabled non programmers to use cheap and affordable software to build tremendous Software As a Service Systems (SASS) as most of the free email services, search engines, photo sharing services, blogs you name it.

From the desktop computers Linux and plenty of free software has moved to the Mobile platforms, where it ruled the market similar to the server market. Nowdays anyone who owns android phone is running some kind of modification of the Linux kernel. MeeGO Google Phone and other "open" mobile phone architectures are more and more ruling the mobile market. Linux is also widely used along a lot of other critical services in critical information data systems like in Governments, Railway stations, Global Markets, Stock Exchange platforms, the list goes on and on. Some of the other areas Linux is heavily used is in National Security, Mobile networks, High End servers, police stations etc. etc.
The rate of adoption of Linux is steadily increasing day by, day and this is not strange since it is completely free to use by anyone for everything he might imagines.

How to run your Own / Personal Domain Web WHOIS service in a minute with SpeedyWHOIS

Thursday, April 5th, 2012

Running your own personal WHOIS service speedy whois in browser screenshot

I've been planning to run my own domain WHOIS service, for quite sime time and I always postpone or forgot to do it.
If you wonder, why would I need a (personal) web whois service, well it is way easier to use and remember for future use reference if you run it on your own URL, than wasting time in search for a whois service in google and then using some other's service to get just a simple DOMAIN WHOIS info.

So back to my post topic, I postpopned and postponed to run my own web whois, just until  yesterday, whether I have remembered about my idea to have my own whois up and running and proceeded wtih it.

To achieve my goal I checked if there is free software or (open source) software that easily does this.
I know I can write one for me from scratch, but since it would have cost me some at least a week of programming and testing and I didn't wanted to go this way.

To check if someone had already made an easy to install web whois service, I looked through in the "ultimate source for free software" sourceforge.net

Looking for the "whois web service" keywords, displayed few projects on top. But unfortunately many of the projects sources was not available anymore from http://sf.net and the project developers pages..
Thanksfully in a while, I found a project called SpeedyWhois, which PHP source was available for download.

With all prior said about project missing sources, Just in case if SpeedyWhois source  disappears in the future (like it probably) happened with, some of the other WHOIS web service projects, I've made SpeedyWhois  mirror for download here

 
Contrary to my idea that installing the web whois service might be a "pain in the ass", (like is the case  with so many free software php scripts and apps) – the installation went quite smoothly.
 
To install it I took the following 4 steps:
 
1. Download the source (zip archive) with wget 
 
# cd /var/www/whois-service;
/var/www/whois-service# wget -q https://www.pc-freak.net/files/speedywhois-0.1.4.zip
 
2. Unarchive it with unzip command 
 
 
/var/www/whois-service# unzip speedywhois-0.1.4.zip
3. Set the proper DNS records

My NS are using Godaddy, so I set my desired subdomain record from their domain name manager.
 

4. Edit Apache httpd.conf to create VirtualHost
 
This step is not mandatory, but I thought it is nice if I put the whois service under a subdomain, so add a VirtualHost to my httpd.conf
 
The Virtualhost Apache directives, I used are:
 
<VirtualHost *:80>
        ServerAdmin hipo_aT_www.pc-freak.net
        DocumentRoot /var/www/whois-service
        ServerName whois.www.pc-freak.net
        &lt;Directory /var/www/whois-service
        AllowOverride All
        Order Allow,Deny
        Allow from All
        </Directory>
</VirtualHost>
 
Onwards to take effect of new Webserver configs, I did Apache restart
 
# /usr/local/etc/rc.d/apache2 restart
 
Further on You can test whois a domain using my new installed SpeedyWHOISWeb WHOIS service  on http://whois.www.pc-freak.net
Whenever I have some free time, maybe I will work on the code, to try to add support for logging of previous whois requests and posting links pointing to the previous whois done via the web WHOIS service on the main whois page.
 
One thing that I disliked about how SpeedyWHOIS is written is, if there is no WHOIS information returned for a domain request (e.g.) a:
 
# whois domainname.com
 
returns an empty information, the script doesn't warn with a message there is no WHOIS data available for this domain or something.
 
 
This is not so important as this kind of behaviour of 'error' handling can easily be changed with minimum changes in the php code.
If you wonder, why do I need the web whois service, the answer is it is way easier to use.
I don't have more time to research a bit further on the alternative open source web whois services, so I would be glad to hear from anyone who tested other web whois service that is free comes under a FOSS license.
In the mean time, I'm sure people with a small internet websites like mine who are looking to run their OWN (personal) whois service SpeedyWHOIS does a great job.

The meaning of the business modern day definition

Thursday, April 5th, 2012

What is the business word meaning - The success Plague my gimp logo

This post, is just to open one big issue I saw with the modern business word.
In universities, governmental institutions and everywhere throughout the globe the business word is repeated more and more everyday. People often associate business with all positive.  Everyone who is succesful in business is highly praised and  even more absurdly thought as superior to others!

With all this said I would like to honestly ask you the the question "What is the  meaning of business?" and why ever thought it means anything meaningful. Who on a first place did come up with this non-sense word and why we are still so dumb to praise it and not completely ban it from our lives and just live whethever is good and righteous wihtout trying to get into e field of someone or a groups of people idea of something that makes not a senese at all.

If you think closely on the business word having the definition of just "being busy all the time", then it is logical everyone is a businessman and hence everyone is in business . Still howevfer in universities, we have courses teaching is that you should follow certain direction or "mantra" like rules in order to be a succesful businessman. There are plenty of books already around named like

  • the 7 habits of succesful people
  • How to become succesful in life
  • What to eat and why
  • How to behave on business meetings. 
  • What is the ultimate key to success in both daily life and spirituality
  • How to be intercultrally aware 

and many many more all kind of junk literature like this. In my view all this is a complete nonsense not less or more than what the business is. Lets face it  business means "Busy-ness" e.g. to be constantly busy. In that sense people are getting more and more busy these days. Not that this busi-ness has a direction or a line. People are now constantly busy with something, watching TV, playing computer games, reading useless lies information in the newspaper, not to mention the riduculous nonsense talking over the phone for every minor detail. People think less and less, while being busy more and more. Where this will end? I have no clue. What I'm certain is all this "busi-ness" trend in society is not a good think. Being constantly busy plague, (being a busyness man) is starting to spread to everyone on earth. The important thing is not to be busy all the time, but to be busy with something which will help you and help the others for good. Nowdays people and especially "business" people concentrate not on the being helpful (corporate responsibility) thing, or making a contribution to the rest and yourself but rather to make a contribution to something.

Many of the people involved in business takes decision, which has a terrible impact on both the rest of people and themselves. Unfortunately we can see rarely people realize all this things … I hope this business understanding as we know it, will be stopped and people will realize that business, shouldn't be always a good thing or thing that has to do with money and professional success, but rather a hostile kind of anti-human and anti-self fostered international culture .

There is plenty to be said on why one shouldn't want to become a succesful businessman and why an education in a business field could be often useless, but as I don't have the time now (sorry I'm too busy! I'm a businessman  :D).

Anyways I will rant on this subjects too in the posts to come.