5 Best Free Linux Terminal Multiplexers

Posted by Unknown Sabtu, 25 Februari 2012 0 komentar

The nuts and bolts of Linux seem destined to be increasingly hidden away from the desktop user. The continuing development of popular desktop environments offering attractive interfaces and fancy features shows no sign of abatement. We note that one of the most popular Linux distributions, Ubuntu, is even going to replace its application menus with a "head-up display" (HUD) box. However intuitive and slick the HUD will be implemented, and how advanced, in general, desktop environments become, there is little prospect that the faithful terminal will be consigned to the recycle bin in the near future. There is simply too much power at the hands of a terminal for many experienced Linux users.
Users that want to exploit the full power of the terminal may benefit from using a terminal multiplexer. This type of application can be considered to be a text version of a graphical window manager. It enables users to run multiple text programs simultaneously, as well as offering features that allow users to switch seamlessly between these programs in operation. Terminal multiplexers also allow multiple computers to make simultaneous connections.
To provide an insight into the quality of software that is available, we have compiled a list of 5 useful terminal multiplexers. Hopefully, there will be something here to help improve your productivty at the console. We have also included an application that functions as a terminal multiplexer for remote graphical applications.
Now, let's explore the 5 terminal multiplexers. For each title we have compiled its own portal page, a full description with an in-depth analysis of its features, a screenshot, together with links to relevant resources and reviews.
Terminal Multiplexers
Byobu Powerful, text based window manager and shell multiplexer
screen Terminal multiplexer with VT100/ANSI terminal emulation
xpra Screen for remote X applications
tmux Terminal multiplexer which uses a client-server model
neercs Offers additional functionality to screen but is at an early stage of development

Baca Selengkapnya ....

Top 10 Security Assessment Tools

Posted by Unknown 0 komentar

Security Assessment Tools
Modern data centres deploy firewalls and managed networking components, but still feel insecure because of crackers. Hence, there is a crucial need for tools that accurately assess network vulnerability. This article brings you the top 10 assessment tools to address these issues, categorised based on their popularity, functionality and ease of use.
Vulnerabilities are unfortunately an integral part of every software and hardware system. A bug in the operating system, a loophole in a commercial product, or the  misconfiguration of critical infrastructure components makes systems susceptible to attacks. Malicious techies can penetrate systems via these vulnerabilities, for personal or commercial gains. While technically this is not very easy, there have been enough successful attempts to cause one to worry.
Earlier, it was believed that this was true only for commercial products. Yet, lately, open source systems have been cracked, resulting in data theft and a loss of reputation or money. Apart from local area networks, websites are also vulnerable and have become the prime target of crackers. In short, vulnerabilities can be exploited from within the organisation, as well as over the Internet by unknown people.
On the bright side, with the number of attacks increasing, there are now a slew of tools to detect and stop malware and cracking attempts. The open source world has many such utilities (and distros). Here, I must mention BackTrack Linux, which has gained international fame for its wide range of vulnerability assessment and digital forensics software utilities. The most recent version also contains powerful wireless vulnerability testing tools.
Though there are literally hundreds of tools, I have selected the top 10 based on the fact that no other tool can really replace them. The primary selection criteria have been the feature set, how widespread the product is within the security community, and simplicity.
Please refer to Figure 1, which shows the top five tools I chose for network assessment, while Figure 2 shows the leading Web vulnerability scanning products. Of course, only FOSS tools are mentioned. I have presented the tools in the order that they are expected to be used to detect vulnerabilities; this should provide a systematic approach to readers who wish to make a career as certified penetration testers.
Top 5 network security scanners
Figure 1: Top 5 network security scanners
Top 5 web security scanners
Figure 2: Top 5 web security scanners

The top 5 network security assessment tools

Vulnerability scanning of a network needs to be done from both within the network as well as without (from both “sides” of the firewall). The approach I would suggest is to start from the network evaluation phase, where sniffing and primary attacks are performed. The gathered data is used in the attack phase to exploit the exposed vulnerabilities.

Wireshark

The very first step in vulnerability assessment is to have a clear picture of what is happening on the network. Wireshark (previously named Ethereal) works in promiscuous mode to capture all traffic of a TCP broadcast domain.
Customised filters can be set to intercept specific traffic; for example, to capture communication between two IP addresses, or capture UDP-based DNS queries on the network. Traffic data can be dumped into a capture file, which can be reviewed later. Additional filters can also be set during the review.
Typically, the tester is looking for stray IP addresses, spoofed packets, unnecessary packet drops, and suspicious packet generation from a single IP address. Wireshark gives a broad and clear picture of what is happening on the network.
However, it does not have its own intelligence, and should be used as a data provider. Due to its great GUI, any person with even some basic knowledge can use it.

Nmap

This is probably the only tool to remain popular for almost a decade. This scanner is capable of crafting packets and performing scans to a granular TCP level, such as SYN scan, ACK scan, etc. It has built-in signature-checking algorithms to guess the OS and version, based on network responses such as a TCP handshake.
Nmap is effective enough to detect remote devices, and in most cases correctly identifies firewalls, routers, and their make and model. Network administrators can use Nmap to check which ports are open, and also if those ports can be exploited further in simulated attacks. The output is plain text and verbose; hence, this tool can be scripted to automate routine tasks and to grab evidence for an audit report.
You can read the series of Nmap articles published earlier for better understanding.

Metasploit

Once sniffing and scanning is done using the above tools, it’s time to go to the OS and application level. Metasploit is a fantastic, powerful open source framework that performs rigorous scans against a set of IP addresses.
Unlike many other frameworks, it can also be used for anti-forensics. Expert programmers can write a piece of code exploiting a particular vulnerability, and test it with Metasploit to see if it gets detected. This process can be reversed technically — when a virus attacks using some unknown vulnerability, Metasploit can be used to test the patch for it.
While this is a commercial tool, I have mentioned it here because the community edition is free, yet makes no compromises on the feature set.

OpenVAS

The Nessus scanner is a famous commercial utility, from which OpenVAS branched out a few years back to remain open source. Though Metasploit and OpenVAS are very similar, there is still a distinct difference.
OpenVAS is split into two major components — a scanner and a manager. A scanner may reside on the target to be scanned and feed vulnerability findings to the manager. The manager collects inputs from multiple scanners and applies its own intelligence to create a report.
In the security world, OpenVAS is believed to be very stable and reliable for detecting the latest security loopholes, and for providing reports and inputs to fix them. A built-in Greenbone security assistant provides a GUI dashboard to list all vulnerabilities and the impacted machines on the network.
Creating detailed reports is one thing that makes OpenVAS a tool favoured by infrastructure security managers.

Aircrack

The list of network scanners would be incomplete without wireless security scanners. Today’s infrastructure contains wireless devices in the data centre as well as in corporate premises to facilitate mobile users. While having WPA-2 security is believed to be adequate for 802.11 WLAN standards, misconfiguration and the use of over-simple passwords leaves such networks open to attacks.
Aircrack is a suite of software utilities that acts as a sniffer, packet crafter and packet decoder. A targeted wireless network is subjected to packet traffic to capture vital details about the underlying encryption. A decryptor is then used to brute-force the captured file, and find out passwords. Aircrack is capable of working on most Linux distros, but the one in BackTrack Linux is highly preferred.

The top five Web security assessment tools

Scanning websites is an entirely different ballgame from network scans. In the case of websites, the scope of the scan ranges from Layer 2 to 7, considering the intrusiveness of the latest vulnerabilities. The correct approach for scanning websites starts from Web-level access, right up to scanning all backend components such as databases. While most Web security scanners are automated, there could be a need for manual scripting, based on the situation.

Nikto

Let’s start with this tool because of its feature set. This open source tool is widely used to scan websites, mainly because it supports HTTP and HTTPS, and also provides findings in an interactive fashion. Nikto can crawl a website just the way a human would, and that too in the least amount of time. It uses a technique called mutation, whereby it creates combinations of various HTTP tests together to form an attack, based on the Web server configuration and the hosted code.
Thus, it finds critical loopholes such as file upload misconfiguration, improper cookie handling, cross-scripting errors, etc. Nikto dumps all findings in a verbose mode, which helps in knowing more about the Web vulnerabilities, in detail. However, it can also result in too many things getting notified, some of which may be false alarms. Hence, care should be taken while interpreting Nikto logs.

Samurai framework

Once a baseline check is performed by Nikto, the next step is to take the “deep-dive” approach. Samurai is a framework — a bunch of powerful utilities, each one targeted for a specific set of vulnerabilities.
It comes as a Linux distribution, purely focusing on penetration-testing tools such as WebScarab for HTTP mapping, W3AF plugins for application-based attacks, and it also has tools to test browser-based exploits. It is amazing to note that the most recent version can find vulnerabilities that are usually not detected even by a few commercial software products.

Safe3 scanner

While the first two tools are good for static websites, for portals needing user ID and password, we need something that can deal with HTTP sessions and cookies. Safe3 scanner is a fantastic open source project, which has gained momentum and fame because it can handle almost all types of authentication, including NTLM.
It contains a Web crawler (a spider like that of search engines) capable of ignoring duplicate page scans and yet detect client-side JavaScript vulnerabilities. Safe3 scans also detect the possibility of the latest AJAX-based attacks and even report vulnerable script libraries. It comes with a user-friendly GUI and is capable of creating nice management reports.

Websecurify

Though very similar to Samurai, Websecurify also brings application-level assessment into play. In case of a large Web farm where code is maintained by a team of developers, following standards can sometimes yield insecure code like passwords mentioned in code, physical file paths in libraries, etc. Websecurify can traverse code and find such loopholes swiftly.
A nice feature is that it allows you to create screenshots of the problem areas automatically, which helps in preparing audit reports. It is one of the very few platform-independent tools and also supports mobile coding, which is helping it get more popular in the cyber-security assessment world.

SQLmap

Unless I mention a tool to detect SQL-injection attacks, this article would not be complete. Though this is a very old “first-generation” type of attack, many public websites still fail to fix it. SQLmap is capable of not just exploiting SQL-injection faults, but can also take over the database server. Since it focuses on a specific task, it works at great speed to fingerprint databases, find out the underlying file system and OS, and eventually fetch data from the server. It supports almost all well-known database engines, and can also perform password-guessing attacks. This tool can be combined with the other four tools mentioned above to scan a website aggressively.
A vulnerability assessment tool should include network scanning as well as website vulnerability exploitation. Open source software is prone to attacks too; hence, network administrators must know about the reputed scanners and use them in their daily tasks to make their infrastructure secure and stable.

Baca Selengkapnya ....

ISPConfig 3 With Xeround Cloud Database Service

Posted by Unknown 0 komentar

This tutorial is a companion to any of the Perfect Server tutorials. ISPConfig 3 will not work with the Xeround Cloud database service by default. With minor modifications from this tutorial you will be able to run your Perfect Server without having to manage a database server.
The specific examples below were done on a Debian server with ISPConfig 3 and nginx. The steps should be similar to other distros. As well the instance is hosted in the Rackspace ORD1 datacenter. Instances within an Amazon datacenter may require different configuration. This tutorial comes without warranty of any kind.

Preliminary Note

I created a Xeround instance:
DNS Name:
instanceABCD.db.xeround.com.:7126
Internal DNS Name:
int.instanceABCD.db.xeround.com.:7126
Clicking DNS Name will take you to phpMyAdmin.
I will use the Internal DNS Name as my server is located within Rackspace ORD1, but if your server is located elsewhere use the DNS Name. This tutorial starts in a Perfect Server tutorial immediately before:
php -q install.php

1 Port Forwarding - Source

Xeround does not use the default port of 3306. The simplest way around this is to use port forwarding. This example used rinetd.
To install rinetd, just run
apt-get install rinetd
We will forward HTTP traffic from 127.0.0.1 to int.instanceABCD.db.xeround.com.. The default MySQL port is 3306 and our example port is 7126. Localhost will not work in place of 127.0.0.1.
nano /etc/rinetd.conf
127.0.0.1 3306 int.instanceABCD.db.xeround.com. 7126
Now restart rinetd.
/etc/init.d/rinetd restart
Then run:
netstat -tap
rinetd should now be running on port 3306 (mysql).
Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:ftp                   *:*                     LISTEN      9086/pure-ftpd (SER
tcp        0      0 *:ssh                   *:*                     LISTEN      1578/sshd
tcp        0      0 localhost.localdom:smtp *:*                     LISTEN      1207/exim4
tcp        0      0 *:https                 *:*                     LISTEN      1192/nginx
tcp        0      0 localhost.localdom:9000 *:*                     LISTEN      1289/php-fpm: pool
tcp        0      0 localhost.localdo:mysql *:*                     LISTEN      8700/rinetd
tcp        0      0 *:http-alt              *:*                     LISTEN      1192/nginx
tcp        0      0 *:www                   *:*                     LISTEN      1192/nginx
tcp        0      0 *:tproxy                *:*                     LISTEN      1192/nginx
tcp        0      0 localhost.localdom:9010 *:*                     LISTEN      1291/php-fpm: pool
tcp        1      0 localhost.localdo:38196 localhost.localdo:mysql CLOSE_WAIT  9086/pure-ftpd (SER
tcp6       0      0 [::]:ftp                [::]:*                  LISTEN      9086/pure-ftpd (SER
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      1578/sshd
tcp6       0      0 ip6-localhost:smtp      [::]:*                  LISTEN      1207/exim4

2 Configure ISPConfig 3

ISPConfig 3 needs a few adjustments to allow itself access to the database server. Using server1.example.com did not work. The remote MySQL host required % for any host.
nano /tmp/ispconfig3_install/install/lib/installer_base.lib.php
...Line 184
if($conf['mysql']['host'] == 'localhost') {
$from_host = '%';
} else {
$from_host = '%';
}
...Line 1946 (Add second line)
$content = rf('tpl/mysql_clientdb.conf.master');
$content = str_replace('localhost',$conf['mysql']['host'],$content);
To allow application access for created databases in ISPConfig 3 run
sed -i 's/localhost/%/g' /tmp/ispconfig3_install/server/plugins-available/mysql_clientdb_plugin.inc.php
We will use expert install for ISPConfig 3.
php -q install.php
root@neonpx:/tmp/ispconfig3_install/install# php -q install.php
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ps.ini on line 1 in Unknown on line 0
--------------------------------------------------------------------------------
 _____ ___________   _____              __ _         ____
|_   _/  ___| ___ \ /  __ \            / _(_)       /__  \
  | | \ `--.| |_/ / | /  \/ ___  _ __ | |_ _  __ _    _/ /
  | |  `--. \  __/  | |    / _ \| '_ \|  _| |/ _` |  |_ |
 _| |_/\__/ / |     | \__/\ (_) | | | | | | | (_| | ___\ \
 \___/\____/\_|      \____/\___/|_| |_|_| |_|\__, | \____/
                                              __/ |
                                             |___/
--------------------------------------------------------------------------------
>> Initial configuration
Operating System: Debian 6.0 (Squeeze/Sid) or compatible
    Following will be a few questions for primary configuration so be careful.
    Default values are in [brackets] and can be accepted with .
    Tap in "quit" (without the quotes) to stop the installer.
Select language (en,de) [en]: <-- ENTER
Installation mode (standard,expert) [standard]: <-- expert
Full qualified hostname (FQDN) of the server, eg server1.domain.tld  [server1.example.com]: <-- ENTER
MySQL server hostname [localhost]: <-- 127.0.0.1
MySQL root username [root]: <-- yourxeroundadmin
MySQL root password []: <-- yourxeroundadminpassword
MySQL database to create [dbispconfig]: <-- ENTER
MySQL charset [utf8]: <-- ENTER
The next two questions are about the internal ISPConfig database user and password.
It is recommended to accept the defaults which are 'ispconfig' as username and a random password.
If you use a different password, use only numbers and chars for the password.
ISPConfig mysql database username [ispconfig]: <-- ENTER
ISPConfig mysql database password [MbSrzVTpPLRMjes9210ec5f0f1160a65]: <--ENTER
Shall this server join an existing ISPConfig multiserver setup (y,n) [n]: <-- ENTER
Configure Mail (y,n) [y]: <-- ENTER
Configuring Mail
Configure Jailkit (y,n) [y]: <-- ENTER
Configuring Jailkit
Configure FTP Server (y,n) [y]: <-- ENTER
Configuring Pureftpd
Restarting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -Y 1 -p 20000:20100 -b -u 1000 -O clf:/var/log/pure-ftpd/transfer.log -A -E -8 UTF-8 -D -H -B
Configure DNS Server (y,n) [y]: <-- ENTER
Hint: If this server shall run the ISPConfig interface, select 'y' in the 'Configure nginx Server' option.
Configure nginx Server (y,n) [y]: <-- ENTER
Configuring nginx
Configuring Apps vhost
Configure Firewall Server (y,n) [y]: <-- ENTER
Configuring Bastille Firewall
Install ISPConfig Web Interface (y,n) [y]: <-- ENTER
Installing ISPConfig
ISPConfig Port [8080]: <-- ENTER
Enable SSL for the ISPConfig web interface (y,n) [y]: <-- ENTER
Generating RSA private key, 4096 bit long modulus
...++
....++
e is 65537 (0x10001)
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]: <-- ENTER
State or Province Name (full name) [Some-State]: <-- ENTER
Locality Name (eg, city) []: <-- ENTER
Organization Name (eg, company) [Internet Widgits Pty Ltd]: <-- ENTER
Organizational Unit Name (eg, section) []: <-- ENTER
Common Name (eg, YOUR name) []: <-- ENTER
Email Address []: <-- ENTER
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []: <-- ENTER
An optional company name []: <-- ENTER
writing RSA key
Configuring DBServer
Installing ISPConfig crontab
Reloading PHP5 FastCGI Process Manager: php5-fpm.
Reloading nginx configuration: nginx.
Installation completed.
Now allow the database links in ISPConfig to link to your Xeround instance. Replace the address below with the one from your Xeround DNS Name.
nano /usr/local/ispconfig/interface/web/phpmyadmin/index.php
If using nginx instead of Apache comment out the two lines in the below file. These settings are doubled and will cause a redirect loop.
nano /usr/local/ispconfig/server/conf/nginx_vhost.conf.master
#               fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_param PATH_INFO $fastcgi_script_name;
Finally, return to your Perfect Server tutorial to configure ISPConfig 3.

Baca Selengkapnya ....

ماذا نريد في الرئيس القادم؟

Posted by Unknown Kamis, 23 Februari 2012 0 komentar

كتبه/ ياسر برهامي*
الحمد لله، والصلاة والسلام على رسول الله، أما بعد؛
فقضية شائكة ومصيرية لأمتنا؛ كيفية اختيار الرئيس القادم، وما هي أهم المعايير التي لا بد أن نزن بها مَن نختاره رئيسًا لنا، ليس فقط مِن جانب المُطلَق؛ فإن صفات الإمام محددة عند أهل العلم، ولكن مِن جانب النسبي لواقعنا، وموازين القوى داخليًا وإقليميًا وعالميًا، وبالنسبة أيضًا للمتاح الممكن المقدور عليه، وبالنسبة لمتطلبات المجتمع وإمكانياته، ومراعاة لاتجاهات القوى المتباينة، وأحيانًا المتصارعة.
كل ذلك مع لزوم التوكل على الله -تعالى- والثقة به، وكمال اللجوء إليه أن يلهم الأمة رشدها لاختيار الأمثل لحالها؛ حتى ولو لم يكن الأفضل، كما أن الحسن -رضي الله عنه- كان بالتأكيد أفضل من معاوية -رضي الله عنه-؛ فهو من المبشرين بالجنة، وهو سبط النبي -صلى الله عليه وسلم-، وكان معه بعد البيعة له كتائب كأمثال الجبال، ومع كل ذلك كان تنازله لمعاوية -رضي الله عنه- الذي هو من مسلمة الفتح، وهو دونه في الفضل - هو المناسب للأمة في ظروفها الصعبة بعد معارك طاحنة، وفتنة خطيرة؛ ولذا مدحه النبي -صلى الله عليه وسلم- فقال: (إِنَّ ابْنِي هَذَا سَيِّدٌ وَلَعَلَّ اللَّهَ أَنْ يُصْلِحَ بِهِ بَيْنَ فِئَتَيْنِ عَظِيمَتَيْنِ مِنَ المُسْلِمِينَ) (رواه البخاري).
وبعد هذه المقدمة نشرع في بيان بعض ما نريده في الرئيس القادم:
أولاً: نريد رئيسًا مؤمنًا بالله ورسوله -صلى الله عليه وسلم-، يخاف الله ويتقيه، ويخشى عذاب الآخرة؛ لأن مَن لم يراقب الله في أمة مثل مصر؛ لم يقم بمسئوليتها أبدًا.
"
نريد رئيسًا يَكره الرئاسة ويُكره عليها، لا يطلبها ولا يفرح بها؛ لأن حمل عبء البلاء في هذه المرحلة الحساسة في غاية الصعوبة
"

ثانيًا: نريد رئيسًا يَكره الرئاسة ويُكره عليها، لا يطلبها ولا يفرح بها؛ لأن حمل عبء البلاء في هذه المرحلة الحساسة في غاية الصعوبة، بل هي أقرب إلى الاستحالة؛ إلا أن يوفقه الله -تعالى- ويعينه عليها، وقد قال النبي -صلى الله عليه وسلم-: (لاَ تَسْأَلِ الإِمَارَةَ، فَإِنَّكَ إِنْ أُوتِيتَهَا عَنْ مَسْأَلَةٍ وُكِلْتَ إِلَيْهَا، وَإِنْ أُوتِيتَهَا مِنْ غَيْرِ مَسْأَلَةٍ أُعِنْتَ عَلَيْهَا) (متفق عليه).
ثالثًا: نريد رئيسًا تَربى على الشورى وعدم الاستبداد، وتعوَّد على الرجوع لأهل العلم والخبرة، وعنده ثقافة ترك رأيه لرأي غيره إذا أظهرت ذلك الشورى، فقول الله: (وَأَمْرُهُمْ شُورَى بَيْنَهُمْ) (الشورى:38)، لا بد أن يكون صفة لازمة؛ ولأنها أمر لا يكتسب بالقرارات والإعلانات والحديث الإعلامي، فلا بد أن يكون قد جرى في هذا الأمر؛ فليس زمننا أبدًا بزمن الديكتاتور العادل -كما يسمونه!-.
رابعًا: نريد رئيسًا يقدِّر الأمور حق قدرها قبل أن يتخذ قراره، ويعرف أن يتحمل مسئولية 87 مليون إنسان، يتحمل مسئولية دمائهم وأعراضهم وأموالهم، وسائر مصالح دينهم ودنياهم؛ فلا يصح أبدًا أن يجعل الجبل سهلاً، والبحر يبسًا، ولا بد أن يقدِّر قوته وقوة مخالفيه، وقوة أعدائه وأعداء أمته؛ فلا يتهور في اتخاذ قراراته، ولا يجبن عن اتخاذ الموقف المناسب الذي لا تحتمل المصلحة غيره مهما كانت نتائجه، مع التوكل على الله والاستعانة به (إِنْ يَكُنْ مِنْكُمْ عِشْرُونَ صَابِرُونَ يَغْلِبُوا مِائَتَيْنِ... ) (الأنفال:65)؛ فلزم التقدير المذكور.
خامسًا: نريد رئيسًا يحسن اختيار فريق عمله مِن الكفاءات الحقيقية التي درس إمكانياتها فعلاً، ولا يختار مَن هو معجب به؛ ليضمن متابعته لقراراته بالتقليد الأعمى، فإن حبك للشيء يعمي ويصم، ولا يختار مَن هو أضعف منه؛ ليتميز هو بالتفوق والإبهار، كما كان يفعل الرئيس المخلوع!
وإن بطانة أي ملك أو رئيس هي مِن أعظم أسباب نجاحه أو فشله، وأمة مثل مصر لا يقوم بها -قطعًا- فرد واحد، ولا حتى فريق عمل، بل ولا حتى جماعة كاملة التنظيم، بل لا بد مِن تضافر كل الجماعات والجهود والأفراد، فلا بد من استيعاب الكل.
لا يصلح أبدًا مَن لا يحسن وزن الشخصيات التي يواجهها أو يختارها دون بحث...

سادسًا: نريد رئيسًا رءوفًا رحيمًا، يَشعر بآلام الناس ويقدر معاناتهم، حريصًا على مصالحهم، يتأسى برسول الله -صلى الله عليه وسلم- الذي قال الله -عز وجل- عنه: (لَقَدْ جَاءَكُمْ رَسُولٌ مِنْ أَنْفُسِكُمْ عَزِيزٌ عَلَيْهِ مَا عَنِتُّمْ حَرِيصٌ عَلَيْكُمْ بِالْمُؤْمِنِينَ رَؤُوفٌ رَحِيمٌ)(التوبة:128).
فلا يصلح مَن لا يعبأ بمشاكل الناس، ولا ينزعج لجزع جائع، أو لعري عارٍ، ولا لخوف مضطرب.
لا يصلح مَن لا يستشعر مسئولية عن أي دم يسفك بغير بحق، أو مال يهدر في غير وجهه؛ عامًّا أو خاصًّا، أو عرض ينتهك، أو بشرة تضرب، أو صحة تضيع، أو عقل يفسد، أو أخلاق تُدمر.
لا بد للرئيس أن يكون منحازًا للضعفاء "الضعيف منكم قوي عندي حتى آخذ الحق له"، لا يرده شرف الشريف عن أخد الحق منه.
إن مِن أعظم تراكم الغضب في قلوب أبناء شعبنا على "الرئيس المخلوع" القسوة والغفلة في التعامل مع آلام الأمة ومشاكلها، نعم قد يحتاج القائد أن يتخذ قرارات مؤلمة، وأن يتبنى مواقف فيها تضحيات، لكن لا بد أن يكون ضمن المتألمين المضحين؛ ليخفف المعاناة ما أمكنه، فمن وجد ألم الجوع لم يستهن يومًا بجوع الناس، ومَن ذاق مرارة الحبس والسجن فلن يطمئن له بال وفي سجون بلده رجل مظلوم.
"
من وجد ألم الجوع لم يستهن يومًا بجوع الناس، ومَن ذاق مرارة الحبس والسجن فلن يطمئن له بال وفي سجون بلده رجل مظلوم
"

سابعًا: نريد رئيسًا متواضعًا منكسرًا لله -عز وجل-، لا يتكبر على الناس خوفًا من الله -عز وجل-، قال النبي -صلى الله عليه وسلم-: (لا يَدْخُلُ الجَنَّةَ مَنْ كَانَ فِي قَلْبِهِ مِثْقَالُ ذَرَّةٍ مِنْ كِبْرٍ) (رواه مسلم)، وقد دخل النبي -صلى الله عليه وسلم- مكة فاتحًا في عشرة آلاف من أصحابه، وإن رأسه يكاد أن يمس عنق راحلته؛ تواضعًا لله!
نريد رئيسًا لا يسعى لمدح المادحين، ولا يأسر قلبه ثناء المعجبين، فضلاً أن يسخِّر مَن حوله لذكر مآثره وإمكاناته الهائلة التي تَفرد بها عن الخلق، بل يحثو في وجوه المادحين التراب.
ثامنًا: نريد رئيسًا يقبل النقد البناء، والنصح الصادق، ويفرح به ويشجع عليه، ومَن لا يستطيع أن يُخرج مِن أتباعه وأعوانه مَن يعترض عليه ويناقشه بكل حرية -مع الأدب بلا شك- ويصرِّح له أنه قد أخطأ في كذا وكذا، مَن لا يستطيع ذلك؛ فلا يكون قائدًا ناجحًا.
تاسعًا: نريد رئيسًا إذا حدَّث صدق، وإذا وعد وفى، وإذا أؤتمن أدى، وإذا خاصم عدل مع خصومه، كما يعدل مع أحبائه، حكيمًا في غير جبن، حاسمًا في غير تهور، رجّاعًا إلى الحق، مشاورًا لأهل العلم، ينزل على رأيهم ويستجيب لتوجيهاتهم، بل يكون حريصًا على أن يكون منهم مشاركًا لهم في طلبهم، صادقًا في تعظيم حرمات الله، غيورًا على الدين، يجعل أول مقاصده إقامة الدين وسياسة الدنيا بالدين.
لا يوالي الكفار والمنافقين، ليس بغافل عن كيدهم، وفي نفس الوقت لا يبني حكمه على الظن والاحتمال؛ فإن الظن أكذب الحديث، فلا بد أن يفرق بين المعلومة والاستنتاج، وبين اليقين والاحتمال، لا يسوي بين المختلفين، ولا يفرق بين المتساويين.
عاشرًا: نريد رئيسًا مصليًا، صائمًا، قائمًا قارئًا للقرآن، يفزع إلى الصلاة والدعاء عند الأزمات.
سيقول البعض: كأنك تريد نبيًّا!
أقول: بل نريد رجلاً يعمل بعمل الأنبياء ويقتفي أثرهم؛ فإن تاريخ أمتنا يُكتب في هذه الأيام، ونحن نرى ليلاً يوشك أن ينجلي، وشمسًا توشك أن تشرق، وصبحًا يوشك أن يسفر، ولن يتحقق ذلك بشخصيات عادية، بل بمَن يسير على طريق الأنبياء؛ فليست الخلافة على منهاج النبوة بالأمر الهين.
والحمد لله رب العالمين.
ـــــــــــــــــــــــــــــــــــ
* نشرت بجريدة "الفتح" بتاريخ الجمعة 2 ربيع الآخر 1433هـ - 24 فبراير 2012م.


Baca Selengkapnya ....

Best Lightweight Linux Distribution for Older Computers

Posted by Unknown 0 komentar

The problem with advancement of technology is that it makes the old gadgets almost obsolete. And it happens mostly in case of computers. We do not buy computers/laptops every six month or every year, well most of us don’t. But the fast pace of software development always make our six-months old PC looks old and slow.
The new Ubuntu, Fedora and all other major Linux distributions relies heavily on upgraded hardware. Gnome 3 and Unity both used 3D hardware acceleration. It seems that with time the major Linux distributions will focus more on utilizing the best of hardware capabilities and running these OS will require good hardware configuration. But what about your good old computer that is low on RAM, disk space, cache memory? Is it time to dispose them because you do not have good operating system to run on it? No, not at all. The beauty of Linux is that it has something for everyone. And in this post we will see some really lightweight Linux operating System that can be run on your grandma’s computer (pun intended, no offense to your grandma and her computer).

1. Puppy Linux:

Like the name suggests, it is a cute little adorable puppy. This highly popular Linux distro is equally lightweight as well. It is available in various sizes with maximum up to 100 MB in total. It can be easily installed on CD and USB drive. It can be run on a computer with as low as Pentium II processor and with 128 MB ram. Amazing isn’t it? Despite of that it has most of the functionalities of a major Linux distro.
Puppy-Linux

 2. SliTaz:

SliTaz perfectly fits the proverb “good things come in small packages”. With a total download size of less than 30 MB, it provides the basic functionalities of not only desktop but a server as well. A growing community is always there to provide support. The lightweight has different variants that can even ran from a computer with a memory as low as 16 MB. The maximum RAM requirement for any version is less than 200 MB. With its full features, it is ideal for low-end netbooks.
Slitaz_Wiki

 3. Damn Small Linux:

Damn Small Linux is a mini Linux variant with a size of less less than 50 MB. Starting from a RAM size of as low as 16 MB it can be run at its full capacity on a 128 MB RAM with blazing fast speed. It can be run from a live CD, USB drive and from inside Windows (wow). It also has server capabilities with SSH/FTP and HTTPD and can be run from live CD. It comes with a decent number of application that can be needed in basic OS. When installed on hard disk, it can be used as a Debian OS.
Lightweight-Linux-DamnSmallLinux

4. Zenix:

A beautiful Debian based Linux OS Zenix requires RAM as little as 60 MB and runs flawlessly with a RAM of 128 MB. It comes with quite decent application package and its stunning killer looks give it an edge over others. Like others, it can also be run in live environment from a CD drive or a USB.
Lightweight_Linux_Zenix

5. The Floppy Linux:

There is no Linux distro with the name “Floppy Linux”. What? Then why did I put it here? Well, Floppy Linux a category of Linux distributions that can be run from, hold your heart, a floppy drive. Yes, the same obsolete floppy drive which you saw years back and the children of this generation have seen only in books and these are the Linux OS which can be used on your grandma’s computer (literally). Providing really basic functions of an operating system, even wireless connectivity, these OS rely heavily on command line while being low on GUI part. The main “floppy linux” are:
These floppy Linux are boon for dying computer with old-age hardware and give you a reason not to throw away the decades old computer.
What do you think? Are these  Linux OS reason good enough not to throw your old-box in trash? Do let us know. Please do subscribe to the newsletter to stay updated with latest tips and tricks. Cheers :)

Baca Selengkapnya ....

6 Best Free Linux Boot Utilities

Posted by Unknown Selasa, 21 Februari 2012 0 komentar

The Linux startup process (or boot process) is the manner in which the Linux operating system is started. The process begins with the BIOS (Basic Input/Output System) which undertakes hardware-platform specific startup tasks, and starts the partition boot code. The latter contains the first part of a Linux boot loader. The boot loader will typically give the user a choice of possible boot options. After one of these options is selected, the boot loader then loads the operating system. The most popular boot loader package for Linux is the GRand Unified Bootloader, commonly known as GRUB.

Boot time has a real impact on the first impression of the speed of a system. The time taken for the computer to be ready for use is also important in realising a positive experience for the user. One of the most dramatic ways to improve boot times is to install a solid state drive. However, if you are not looking to replace your mechanical disk drive, there are a number of tools available for Linux that can also help to significantly improve boot times. A word of caution. Before using this type of software, we would strongly recommend that you backup your system as there is always a slight risk of data corruption. In this article, we also identify software to help you customise the boot loader, and to create bootable live USB drives without burning optical media.

To provide an insight into the quality of software that is available, we have compiled a list of 6 useful boot utilities. Hopefully, there will be something here to improve the boot time of your machine, and to make the configuration of the boot process easier.

Now, let's explore the 6 boot utilities. For each title we have compiled its own portal page, a full description with an in-depth analysis of its features, a screenshot, together with links to relevant resources and reviews.

Boot Utilities
Bootchart Tool for performance analysis and visualization of the boot process
Boot-Up Manager Graphical sysv-rc runlevel editor for Debian or Debian-based systems
e4rat Ext4 - Reducing Access Times
OProfile Low-overhead, transparent system-wide profiler
Grub Customizer Graphical interface to configure the grub2/burg settings
UNetbootin Universal Netbook installer

Baca Selengkapnya ....

Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On Fedora 16

Posted by Unknown 0 komentar

Nginx (pronounced "engine x") is a free, open-source, high-performance HTTP server. Nginx is known for its stability, rich feature set, simple configuration, and low resource consumption. This tutorial shows how you can install Nginx on a Fedora 16 server with PHP5 support (through PHP-FPM) and MySQL support.
I do not issue any guarantee that this will work for you!

1 Preliminary Note

In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate.

2 Installing MySQL 5

First we install MySQL 5 like this:
yum install mysql mysql-server
Then we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server:
systemctl enable mysqld.service
systemctl start mysqld.service
Now check that networking is enabled. Run
netstat -tap | grep mysql
It should show something like this:
[root@server1 ~]# netstat -tap | grep mysql
tcp        0      0 *:mysql                     *:*                         LISTEN      1116/mysqld
[root@server1 ~]#
If it does not, edit /etc/my.cnf and comment out the option skip-networking:
vi /etc/my.cnf
[...]
#skip-networking
[...]
and restart your MySQL server:
systemctl restart mysqld.service
Run
mysql_secure_installation
to set a password for the user root (otherwise anybody can access your MySQL database!):
[root@server1 ~]# mysql_secure_installation




NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!


In order to log into MySQL to secure it, we'll need the current
password for the root user.  If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
 <-- ENTER
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.

Set root password? [Y/n]
 <-- ENTER
New password: <-- yourrootsqlpassword
Re-enter new password: <-- yourrootsqlpassword
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n]
 <-- ENTER
 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n]
 <-- ENTER
 ... Success!

By default, MySQL comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n]
 <-- ENTER
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n]
 <-- ENTER
 ... Success!

Cleaning up...



All done!  If you've completed all of the above steps, your MySQL
installation should now be secure.

Thanks for using MySQL!


[root@server1 ~]#


3 Installing Nginx

Nginx is available as a package for Fedora 16 which we can install as follows:
yum install nginx
Then we create the system startup links for nginx and start it:
systemctl enable nginx.service
systemctl start nginx.service
Type in your web server's IP address or hostname into a browser (e.g. http://192.168.0.100), and you should see the nginx welcome page:



4 Installing PHP5

We can make PHP5 work in nginx through PHP-FPM (PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites). There's a php-fpm package in the official Fedora 16 repositories, therefore we can install php-fpm together with php-cli and some PHP5 modules like php-mysql which you need if you want to use MySQL from your PHP scripts:
yum install php-fpm php-cli php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-magickwand php-mbstring php-mcrypt php-mssql php-shout php-snmp php-soap php-tidy
Then open /etc/php.ini and set cgi.fix_pathinfo=0:
vi /etc/php.ini
[...]
; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting
; of zero causes PHP to behave as before. Default is 1. You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.fix-pathinfo
cgi.fix_pathinfo=0
[...]
(Please read http://wiki.nginx.org/Pitfalls to find out why you should do this.)
In addition to that, in order to avoid errors like
[13-Nov-2011 22:13:16] PHP Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/nginx/html/info.php on line 2
... in /var/log/php-fpm/www-error.log when you call a PHP script in your browser, you should set date.timezone in /etc/php.ini:
[...]
[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
date.timezone = "Europe/Berlin"
[...]
You can find out the correct timezone for your system by running:
cat /etc/sysconfig/clock
[root@server1 ~]# cat /etc/sysconfig/clock
ZONE="Europe/Berlin"
[root@server1 ~]#
Next create the system startup links for php-fpm and start it:
systemctl enable php-fpm.service
systemctl start php-fpm.service
PHP-FPM is a daemon process that runs a FastCGI server on port 9000.

5 Configuring nginx

 
The nginx configuration is in /etc/nginx/nginx.conf which we open now:
vi /etc/nginx/nginx.conf
The configuration is easy to understand (you can learn more about it here: http://wiki.codemongers.com/NginxFullExample and here: http://wiki.codemongers.com/NginxFullExample2)
First (this is optional) you can increase the number of worker processes and set the keepalive_timeout to a reasonable value:
[...]
worker_processes 4;
[...]
keepalive_timeout 2;
[...]
The virtual hosts are defined in server {} containers. The default vhost is defined in the file /etc/nginx/conf.d/default.conf - let's modify it as follows:
vi /etc/nginx/conf.d/default.conf
[...]
server {
listen 80;
server_name _;

#charset koi8-r;

#access_log logs/host.access.log main;

location / {
root /usr/share/nginx/html;
index index.php index.html index.htm;
}

error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}

# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root /usr/share/nginx/html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
}
[...]
server_name _; makes this a default catchall vhost (of course, you can as well specify a hostname here like www.example.com).
In the location / part, I've added index.php to the index line. root /usr/share/nginx/html; means that the document root is the directory /usr/share/nginx/html.
The important part for PHP is the location ~ \.php$ {} stanza. Uncomment it to enable it. Change the root line to the web site's dosument root (e.g. root /usr/share/nginx/html;). Please make sure that you change the fastcgi_param line to fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; because otherwise the PHP interpreter won't find the PHP script that you call in your browser.
Now save the file and reload nginx:
systemctl reload nginx.service
Now create the following PHP file in the document root /usr/share/nginx/html...
vi /usr/share/nginx/html/info.php
Now we call that file in a browser (e.g. http://192.168.0.100/info.php):


As you see, PHP5 is working, and it's working through FPM/FastCGI, as shown in the Server API line. If you scroll further down, you will see all modules that are already enabled in PHP5, including the MySQL module:



6 Making PHP-FPM Use A Unix Socket

By default PHP-FPM is listening on port 9000 on 127.0.0.1. It is also possible to make PHP-FPM use a Unix socket which avoids the TCP overhead. To do this, open /etc/php-fpm.d/www.conf...
vi /etc/php-fpm.d/www.conf
... and make the listen line look as follows:
[...]
;listen = 127.0.0.1:9000
listen = /tmp/php5-fpm.sock
[...]
Then restart PHP-FPM:
systemctl restart php-fpm.service
Next go through your nginx configuration and all your vhosts and change the line fastcgi_pass 127.0.0.1:9000; to fastcgi_pass unix:/tmp/php5-fpm.sock;, e.g. like this:
vi /etc/nginx/conf.d/default.conf
[...]
location ~ \.php$ {
root /usr/share/nginx/html;
fastcgi_pass unix:/tmp/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
[...]
Finally reload nginx:
systemctl reload nginx.service

7 Links



Baca Selengkapnya ....
Trik SEO Terbaru support Online Shop Baju Wanita - Original design by Bamz | Copyright of android japan.