Skip to main content

Posts

Showing posts with the label Unix

Starting with Python

Many was asking my lately where to start learning python , So i will start with a small summary and then my number one recommended video for beginners  . Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together. Python's simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. Python supports modules and packages, which encourages program modularity and code reuse. The Python interpreter and the extensive standard library are available in source or binary form without charge for all major platforms, and can be freely distributed. Often, programmers fall in love with Python because of the increased productivity it provides. Since there is no compilati...

Wargames - Linux command base games :)

Wargames The wargames offered by the OverTheWire community can help you to learn and practice security concepts in the form of fun-filled games. To find out more about a certain wargame, just visit its page linked from the menu on the left. If you have a problem, a question or a suggestion, you can  join us on IRC . Suggested order to play the games in Bandit Leviathan or Natas or Krypton Narnia Behemoth Utumno Maze … http://overthewire.org/wargames/

Configuring mutt to work with GMAIL

Mutt is a mail client , that you can configure easier in Linux , i will start with explaining the installation and the configuration of the tool , and some example to send a simple email : sudo apt-get update         #It's always a good idea to update your sources list before you start with installing any thing new . sudo apt-get install mutt          #This command will install the client for you . cd          #This will take you to your home dir , and there you will find a dir called .mutt cd .mutt vi muttrc          # Edit the file like the below example : Ex : hdr_order Date From To Cc ignore "Authentication-Results:" ignore "DKIM-Signature:" ignore "DomainKey-Signature:" set certificate_file="~/.mutt/certificates" set editor='nano' set folder=imaps://imap.gmail.com:993 set from="YourEmail@gmail.com" set header_cache="~/.mutt/cache/...

How to connect WiFi from Linux command line : WPA/WPA2-PSK

First of all we will have to check that we are working with the wpa configuration file , Be sure that you have this section in /etc/network/interfaces :     sudo su       vi /etc/network/interfaces    And add the following section : , you can figure out what is your interface name with the             command ifconfig , usually it's wlan0 or 1 ..           auto wlan0           iface wlan0 inet dhcp           wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf   To generate the network block use the command : wpa_passphrase essid_name supersecretpassword          and this will create something like the bellow , and then all you have to do is to add this block to      /etc/wpa_supplicant/wpa_supplicant.conf    So vi /etc/wpa_supplicant/wpa_supplicant.conf , and add this : ...

10 Linux methods you should know

This article is a compilation of several interesting, unique command-line tricks that should help you squeeze more juice out of your system, improve your situational awareness of what goes on behind the curtains of the desktop, plus some rather unorthodox solutions that will melt the proverbial socks off your kernel. Follow me for a round of creative administrative hacking. 1. Run top in batch mode top is a handy utility for monitoring the utilization of your system. It is invoked from the command line and it works by displaying lots of useful information, including CPU and memory usage, the number of running processes, load, the top resource hitters, and other useful bits. By default, top refreshes its report every 3 seconds. Most of us use top in this fashion; we run it inside the terminal, look on the statistics for a few seconds and then graciously quit and continue our work. But what if you wanted to monitor the usage of your system resources unattended? In other words,...
Regular Expressions and Extended Pattern Matching Here is a table of the Solaris (around 1991) commands that allow you to specify regular expressions: Utility Regular Expression Type vi Basic sed Basic grep Basic csplit Basic dbx Basic dbxtool Basic more Basic ed Basic expr Basic lex Basic pg Basic nl Basic rdist Basic awk Extended nawk Extended egrep Extended EMACS EMACS Regular Expressions PERL PERL Regular Expressions The Anchor Characters: ^ and $ Most UNIX text facilities are line oriented. Searching for patterns that span several lines is not easy to do. You see, the end of line character is not included in th...