Alternatively, by changing the value in cursor_blink_time, you can simply make it blink more slowly. A value of 5000 equates to five seconds—each unit is 1 ms. Be aware that a setting such as 5000 means the cursor will be visible for five seconds at a time and then invisible for the same length of time.
Sunday, November 24, 2013
Stop the Cursor from Blinking
Alternatively, by changing the value in cursor_blink_time, you can simply make it blink more slowly. A value of 5000 equates to five seconds—each unit is 1 ms. Be aware that a setting such as 5000 means the cursor will be visible for five seconds at a time and then invisible for the same length of time.
Closely Monitor the Power Consumption of a Laptop
Saturday, November 23, 2013
Switch Monitor Resolutions with a Single Mouse Click
A good solution is to use Synaptic to search for and install resapplet. For some reason, although it’s officially a GNOME applet, resapplet doesn’t appear on the standard applet list. Instead, it must be configured to start at login. To do this, click System→Preferences→Sessions, ensure the Startup Programs tab is selected, and click the Add button. In the Name and Command fields of the dialog box that appears, type resapplet. Leave the Comment field blank. Then close the dialog box, and log out and back in again.
The new icon will then appear beside Network Monitor in the notification area. Clicking it will reveal a list of possible resolutions from which you can choose. Incidentally, it should be possible to instantly step up and down resolutions by pressing Ctrl+Alt and tapping the +/- keys on the numeric keypad. Unfortunately, this doesn’t work on Ubuntu systems because of the way the graphical subsystem is configured. It may work on other Linux systems, however.
Add Cool New Visualizations to Totem / Rhythm Box
Once the package has been installed, to change the visualization in Totem that appears when a music track is playing, click Edit→Preferences, select the Display tab in the dialog box that appears, and make your choice from the Type of visualization drop-down list. Your choice will take effect immediately,so drag the Preferences dialog box out of the way to preview it.
In Rhythm Box, click View→Visualization to start the animation, and then select from the drop-down list beneath the visualization.
See (and Reuse) the Most Recently Typed Commands
$ history|less
To reuse one of your commands, at the command prompt type an exclamation mark (!; known as a bang in bash-speak) and then the number alongside the entry in the history list.For example,on my system, I noted when viewing the history list that the command cp /etc/ fstab ~/Desktop was command 591. To use it again, I typed !591 at the command prompt. If you ever need to simply repeat a command you’ve just used, type two exclamation marks—!!.
To actively rifle through your command history, hit Ctrl+r and then start typing the command in which you’re interested.The prompt will “auto complete” as you type. To use the command, hit Enter. To edit it before using it,hit Esc, and then make your changes.
Hitting the up and down cursor keys will also let you move through the most recently typed commands. Just hit Enter when you find the one youwanttoreuse.
Set Any Picture as Wallpaper with a Single Click
If that sounds a little too unorthodox for you (it can be hard to use the middle mouse button), you can also use Synaptic to install the nautilus-wallpaper package, which adds a simple Set as Wallpaper option to the menu that appears when you right-click an image file. After installation, you’ll need to log out and then in again before the option becomes visible.
Friday, November 22, 2013
Network app for Linux
Netscape
If you have the netscape installation, which you should, then, try running netscape on the X terminal. The problem though is that the versions of Netscape available right now are quite large and faulty. When you are not connected to the Internet, Netscape often stops working completely and looks as if it has hanged.
netscape -display host:0.0
If the machine that you’re working on has the permission to access and display on the ‘host’ machine, then run netscape on the one you are working on and transfer the output onto the machine called ‘host’.
lynx file.html
This is used when you are on the text mode and want to browse the internet from it, or if you want to view an html file.
pine
Local mail is mail that is sent by someone on your network to your computer. Pine reads this mail for you. You can also use Elm for this. You have Netscape for reading your email otherwise.
elm
As mentioned above, this does the same job as pine.
mutt
Quite aptly named, this is a fast and very useful mail reader. It is a basic app though.
This is also a basic tool for emails and the commands mentioned above are much better.
licq
Icq clients are instant messaging clients. While this one is a good option, you can also go for kxicq. Older Linux distributions do not have icq clients installed in them.
talk username1
This is a network command that is used to talk to other users who are logged into the machine that you’re working on. You can use the command talk username1@machinename if you want to talk to someone on a different computer. Accepting a command is done through the ‘talk username2’. Rejecting a conversation is done through ‘mesg n’.
mc
Mc stands for Midnight Commander. It is used to launch the file manager.
telnet server
You us this command when you want to connect to a different machine using the TELNET protocol. One must have a login on the remote machine they are trying to connect to.
rlogin server
It stands for remote login and allows you to log into a remote machine. It uses the login id and password from your current session automatically and asks for a password in case the login fails.
rsh server
This does the same thing as the above command. It stands for remote shell.
ftp server
This command is useful for copying files to a remote machine or from it. In order to add extra features for graphical user interface, you can use ncftp.
Saturday, November 9, 2013
Linux Distribution
Linux history
All modern operating systems have their roots in 1969 when Dennis Ritchie and Ken Thompson developed the C language and the Unix operating system at AT&T Bell Labs. They shared their source code (yes, there was open source back in the Seventies) with the rest of the world, including the hippies in Berkeley California. By 1975, when AT&T started selling Unix commercially, about half of the source code was written by others. The hippies were not happy that a commercial company sold software that they had written; the resulting (legal) battle ended in there being two versions of Unix in the Seventies : the official AT&T Unix, and the free BSD Unix.
In the Eighties many companies started developing their own Unix: IBM created AIX, Sun SunOS (later Solaris), HP HP-UX and about a dozen other companies did the same. The result was a mess of Unix dialects and a dozen different ways to do the same thing. And here is the first real root of Linux, when Richard Stallman aimed to end this era of Unix separation and everybody re-inventing the wheel by starting the GNU project (GNU is Not Unix). His goal was to make an operating system that was freely available to everyone, and where everyone could work together (like in the Seventies). Many of the command line tools that you use today on Linux or Solaris are GNU tools.
The Nineties started with Linus Torvalds, a Swedish speaking Finnish student, buying a 386 computer and writing a brand new POSIX compliant kernel. He put the source code online, thinking it would never support anything but 386 hardware. Many people embraced the combination of this kernel with the GNU tools, and the rest, as they say, is history.
Today more than 90 percent of supercomputers (including the complete top 10), more than half of all smartphones, many millions of desktop computers, around 70 percent of all web servers, a large chunk of tablet computers, and several appliances (dvd- players, washing machines, dsl modems, routers, ...) run Linux. It is by far the most commonly used operating system in the world.
Linux kernel version 3.2 was released in January 2012. Its source code grew by almost two hundred thousand lines (compared to version 3.1) thanks to contributions of over 4000 developers paid by about 200 commercial companies including Red Hat, Intel, Broadcom, Texas Instruments, IBM, Novell, Qualcomm, Samsung, Nokia, Oracle, Google and even Microsoft.
Thursday, October 24, 2013
Downloading Kali Linux
Downloading Kali Linux
Download Official Kali Images
Official Kali Linux Images
VMware Images
ARM Images
- rk3306 mk/ss808
- Raspberry Pi
- ODROID-U2/X2
- MK802/MK802 II
- Samsung Chromebook
By using sha1sum -c:
Verifying SHA1 Checksums on OSX
Verifying SHA1 Checksums on Windows
Process Management Linux Commands
Process Management Linux Commands
• ps – report a snapshot of the current processes
Usage: ps [OPTION]
eg. ps, ps -el
• bg – make a foreground process to run in background
Usage: type 'ctrl+z' and then 'bg <job id>'
• fg – to make background process as foreground process
Usage: fg [jobid]
• jobs – displays the names and ids of background jobs
Usage: jobs
• kill – to kill a process(using signal mechanism)
Usage: kill [OPTION] pid
eg. kill -9 2275
Archival
• tar – to archive a file
Usage: tar [OPTION] DEST SOURCE
eg. tar -cvf /home/archive.tar /home/original
tar -xvf /home/archive.tar
• zip – package and compress (archive) files
Usage: zip [OPTION] DEST SOURSE
eg. zip original.zip original
• unzip – list, test and extract compressed files in a ZIP archive
Usage: unzip filename
eg. unzip original.zip
Network
• ssh – SSH client (remote login program)
“ssh is a program for logging into a remote machine and for executing commands on a remote machine”
Usage: ssh [options] [user]@hostname
eg. ssh -X guest@10.105.11.20
• scp – secure copy (remote file copy program)
“scp copies files between hosts on a network”
Usage: scp [options] [[user]@host1:file1] [[user]@host2:file2]
eg. scp file1.txt guest@10.105.11.20:~/Desktop/
File Systems
• fdisk – partition manipulator
eg. sudo fdisk -l
• mount – mount a file system
Usage: mount -t type device dir
eg. mount /dev/sda5 /media/target
• umount – unmount file systems
Usage: umount [OPTIONS] dir | device...
eg. umount /media/target
• du – estimate file space usage
Usage: du [OPTION]... [FILE]...
eg. du
• df – report filesystem disk space usage
Usage: df [OPTION]... [FILE]...
eg. df
• quota – display disk usage and limits
Usage: quota [OPTION]
eg. quota -v
Advanced Commands
• reboot – reboot the system
Usage: reboot [OPTION]
eg. reboot
• poweroff – power off the system
Usage: poweroff [OPTION]
eg. poweroff
• sed– stream editor for filtering and transforming text
Usage: sed [OPTION] [inputfile]...
eg. sed 's/love/hate/g' loveletter.txt
• awk– pattern scanning and processing language
eg. awk -F: '{ print $1 }' sample_awk.txt
• find – search for files in a directory hierarchy
Usage: find [OPTION] [path] [pattern]
eg. find name file1.txt
• locate – find or locate a file
Usage: locate [OPTION]... FILE...
eg. locate file1.txt
Editor commands
• kate – KDE Advanced Text Editor
Usage: kate [options][file(s)]
eg. kate file1.txt file2.txt
• vim – Vi Improved, a programmers text editor
Usage: vim [OPTION] [file]...
eg. vi hello.c
• gedit A text Editor. Used to create and edit files.
Usage: gedit [OPTION] [FILE]...
eg. gedit
System Administration Linux Commands
System Administration Linux Commands
• chmod – change file access permissions
Usage: chmod [OPTION] [MODE] [FILE]
eg. chmod 744 calculate.sh
• chown – change file owner and group
Usage: chown [OPTION]... OWNER[:[GROUP]] FILE...
eg. chown remo myfile.txt
• su – change user ID or become super-user
Usage: su [OPTION] [LOGIN]
eg. su remo, su
• passwd – update a user’s authentication tokens(s)
Usage: passwd [OPTION]
eg. passwd
• who – show who is logged on
Usage: who [OPTION]
eg. who , who -b , who -q
Linux File Permissions
Linux File Permissions
Text Processing Linux Commands
Pattern
Text Processing
• cat –
concatenate files and print on the standard output
Usage:
cat [OPTION] [FILE]...
eg. cat file1.txt file2.txt
cat -n file1.txt
• echo – display a line of text
Usage: echo [OPTION] [string] ...
eg. echo I love India
Tuesday, October 22, 2013
Linux File Handling Commands
Linux File Handling Commands
MAN Command
• man <command> shows all information about the command
• <command> --help shows the available options for that command
File Handling commands
• mkdir – make directories
• ls – list directory contents
• cd – changes directories
• pwd print name of current working directory
• vim – Vi Improved, a programmers text editor
• cp – copy files and directories
•mv – move (rename) files
eg. mv source.txt target_dir
• rm remove files or directories
• find – search for files in a directory hierarchy
• history – prints recently used commands
Monday, October 21, 2013
KALI -LINUX
Introduction to Kali Linux
What is Kali Linux ?Kali Linux is an advanced Penetration Testing and Security Auditing Linux distribution.
Kali Linux Features
- rk3306 mk/ss808
- Raspberry Pi
- ODROID U2/X2
- Samsung Chromebook
- EfikaMX
- Beaglebone Black
- CuBox
- Galaxy Note 10.1