Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Monday, July 24, 2017

How to cut a field from csv file using bash

How to cut a field from csv file using bash 

Example :
cat mycsv.csv | cut -d ',' -f3


cat mycsv.csv | cut -d "," -f3 | sort | uniq -c | sort -rn | head

 


Saturday, January 17, 2015

How to install Drupal 7 in Beaglebone Black

How to Install Drupal 7 in Beaglebone black






Drupal is an Open source Content Management Platform for powering your website. It is written in PHP. you need Apache2, PHP and mysql for Installing Drupal.  Now the POSTCARD sized Linux powered Beaglebone Black can use as your Drupal Webserver. See a tutorial here

Tuesday, September 15, 2009

5 Exciting 2D Graphics Design tools for Ubuntu Linux

Ubuntu linux is rich with exciting graphics utilities, Here you can see simple but very useful 2D Graphics Design tools for Ubuntu Linux. Yes welcome to the fantastic world of ubuntu graphics.


Xara Xtreme, ( apt-get install xaralx) This is simple, easiest vector graphics drawing program. It is very userfiendly, it is very nice, which is not usual in this kind of applications.


Ktoon, (apt-get install ktoon) KToon is a 2D Animation Toolkit designed by animators (Toonka Films ) for animators, focused to the Cartoon Industry.

Synfig, (apt-get install synfig synfigstudio) Synfig is a powerful, industrial-strength vector-based 2D animation software package Beware you have to apt 2 packages: synfig (the application) and synfigstudio (the graphical interface to use it), so install both.


Skencil, (apt-get install skencil) Skencil, another good vector graphics drawing application. It has many clipart libraries included. Features like Bézier Curves, Transformed text and images, Bézier curves, rectangles and ellipses can be used as guides, Gradient fills, Blend groups, Writes EPS files


MyPaint, Although it lacks of layers, it is a simple but superb natural painting program. It has many interesting artistic brushes, and you can do your own. The brushes are pressure sensible , supports unlimited canvases, undo's making of it a very "living" and artistic way to paint. Download deb package from here dpkg -i packagename

Tuesday, March 10, 2009

How to Access Linux Partition from Windows : Linux Reader


How to get safe and quick access to Linux file systems? DiskInternals Linux Reader is a new tool for do this. This program act as a bridge between MS Windows and Ext2/Ext3 Linux file systems. This easy-to-use tool runs under Windows and allows you to browse Ext2/Ext3 Linux file systems and extract files from there. Linux Reader is absolutely free. Download it Here

Monday, March 2, 2009

How to Make Password Protected Encrypted Text Files Using vi Editor

You can make encrypted text file with Password Using Famous Text Editor vi.

For Making an encrypted file , Use vi -x filename to edit a new file. Then vi will prompts you to set a password, after that it will encrypts the contents of the file. Whenever you access this file, vi will ask for the correct password.

Thursday, December 4, 2008

Howto install Skype 2.0 in ubuntu linux

Skype is todays most popular application for voice chat and telephony which is used for internet conversations. The latest Skype release for Linux is 2.0.0.7

Installation in Ubuntu

1. Install the needed dependencies


sudo apt-get install libasound2 libc6 libgcc1 libqt4-core libqt4-gui libsigc++-2.0-0c2a libstdc++6 libx11-6

2. Download the DEB package and install it
Download the package from the official website here . At the time of writing the package is called skype-debian_2.0.0.72-1_i386.deb.


sudo dpkg -i skype-debian_2.0.0.72-1_i386.deb

The Skype is now available in /usr/bin/skype. You can run it by typing ALT+F2 and entering skype in the run dialogue that appears.

Saturday, November 8, 2008

Device manager for Ubuntu Intrepid Ibex

gnome-device-manager is a very useful program for managing devices and device drivers in Ubuntu Linux.

Install
$sudo apt-get install gnome-device-manager

Friday, October 31, 2008

Howto APT behind a proxy server

If your machine is behind a proxy server your apt-get install will not work properly
in this case you have to open a terminal and type the following command
I am assuming that you have no username and password for using internet then use this commands

export http_proxy=http://192.168.0.2:3128/ (replace the IP address and port with  your
export ftp_proxy=http://192.168.0.2:3128(replace the IP address and port with your


if you have username and password use

export http_proxy=http://username:password@192.168.0.2:3128/
export ftp_proxy=http://username:password@192.168.0.2:3128/
 
OR
 
Create or Edit /etc/apt/apt.conf
 
Add the Following 
 
Acquire::http::proxy "http://:/";
Acquire::ftp::proxy "ftp://:/";
Acquire::https::proxy "https://:/";  

Howto upgrade your ubuntu from 8.04 to 8.10


Press ALT+F2

and type update-manager -d close the warning window

Then select Upgrade option at the top of the screen

Howto RUN a file in ubuntu ( windows RUN alternative

To run a file just type Alt+F2 and type the filename

Wednesday, October 29, 2008

Howto Autologin in Ubuntu Linux


How to make autologin (login without asking username and password) in ubuntu,

I think it is very useful for Kids

Select System--> Administration--> Login Window
now it will ask for sudo password , Enter password
Now select security tab and tick the Enable Automatic Login checkbox

Tuesday, October 28, 2008

Unbelievable Phoronix Benchmarking Report -Ubuntu 7.04 to 8.10 Benchmarks: Is Ubuntu Getting Slower?

Phoronix forum recently released a benchmarking report about Ubuntu 8.10. Ubuntu 7.04 to 8.10 Benchmarks: Is Ubuntu Getting Slower?

Ubuntu 8.10 RC was released only at the midnight of 23rd that means it is on 24th October(See this). The test result says they tested it for 100 hours. The result is published on 27th October. How they can test 100 Hours with in 62 hours. I suspect and I am asking how mush ubuntu competitors paid for it. Because this test comes out before few hours of ubuntu 8.10 release. http://www.phoronix.com/vr.php?view=13022

Convert Redhat packages (rpm) in Ubuntu

Some of my friend asked me, how they can install rpm files in ubuntu, they all tried alien but some times it failed

try this
sudo apt-get install alien debhelper build-essential dpkg-dev

after the installation you can use alien

sudo alien yourpackage.rpm

now it will make yourpackage.deb

Now you can install the deb using
sudo dpkg -i packagename.deb

Tuesday, September 30, 2008

Debian and Ubuntu Linux Package Management

Debian and Ubuntu Linux Package Management

Update package list

apt-get update

Update Full System

Apt-get upgrade

Install new software from package repository

Apt-get install pkg

Install new software from package file

dpkg -i pkg

Update existing software

apt-get install pkg

Remove unwanted software

apt-get remove pkg

Search by package name

apt-cache search pkg

Search by string

apt-cache search string

List installed packages

dpkg -l

List repositories

cat /etc/apt/sources.list

Add /Remove repository

edit /etc/apt/sources.list


Sunday, September 28, 2008

Windows Software Alternatives for Ubuntu Linux - Part1

Windows Software Linux Alternative
Adobe Acrobat Pro
- PDFedit
Adobe Acrobat Reader - Adobe reader, evince, KPDF, ocular
Adobe Photoshop - Gimp, Gimpshop, Krita, Cinepaint
Adobe Pagemaker - Scribus
Yahoo Messenger - Pidgin
AVI Cutter - avidemux, Cinelerra
Download Manager - GWGET, Kget
Internet Explorer - firefox, opera, konqueror
Microsoft Access - Mysql,
Microsoft excel - openoffice.org spreadsheet, Gnumeric
Microsoft word - openoffice.org wordprocessor, Kword, Abiword
Microsoft One Note - Tomboy

Microsoft Powerpoint - openoffice.org impress Kpresenter
Nero Burning Rom - Brasero, K3b, Nero Linux
Windows Media Player - Mplayer, VLC Player
Omni page and AbbyFine Reader - kooka, Chandler

Reiew : Anti-virus Softwares for Linux

AMaVis (e-mail Virus Scanner) It scans e-mail attachments for viruses using third-party virus scanners available for Linux. It Supports courier, exim, qmail, postfix, and sendmail. Built-in defense against Denial of Service (DoS) attacks
sudo apt-get install amavis-stats

Avast! It is an anti-virus program from ALWIL Software based in Prague. This is a freeware for home users and non-commercial use only. It is a good software for virus protection, with built-in anti-spyware and anti-rootkit security. Work on all modern linux distributions. It scans archives like rar, tgz, zip, gzip, tar, iso, rpm etc.

AVG Free AVG Free for Linux is a commercial-grade antivirus software. It can be used on a single computer and is used for private, non-commercial use only. AVG Free has both command line and a graphical front end are available. It provides frequent updation and total professional security.

ClamAV Clam AntiVirus designed especially for e-mail scanning on mail gateways.It provides a number of utilities including a flexible and scalable multi-threaded daemon, a command line scanner and advanced tool for automatic database updates. The core of the package is an anti-virus engine available in a form of shared library.Built-in support for document formats including MS Office and MacOffice files, PDF, HTML and RTF. It supports archives like rar, tgz, zip, gzip, tar, iso, rpm etc
sudo apt-get install clamav


How-To: Change Default Display Manager in Ubuntu 8.04

A display manager is a program that gives a graphical login screen and starts an X server session. Desktop environment KDE comes with Display manager kdm(KDM) and GNOME come with display manager gdm (GNOME).

Some time a user installs two or more desktop environments like kdm and gdm as display managers, and sometimes it's possible for the user to change default display manager . This can be done easily by using the command dpkg-reconfigure .

For example, if you installed KDE then GNOME, and the default display manager remained GDM, if you want change it use the following command : sudo dpkg-reconfigure kdm

The following commands can use for other display managers

dpkg-reconfigure gdm
dpkg-reconfigure xdm

If only one display manager is installed, the command will not respond.

Great Quotes from Richard Stallman and Linus Torvalds

1. “Software is like sex: it's better when it's free.”
-Linus Torvalds
2. "Once GNU is written, everyone will be able to obtain good system software free, just like air."
-Richard M. Stallman
3. "When it comes to software, I much prefer free software, because I have very seldom seen a program that has worked well enough for my needs, and having sources available can be a
life-saver."
-Linus Torvalds
4.
"To be able to choose between proprietary software packages is to be able to choose your master. Freedom means not having a master. And in the area of computing, freedom means not using proprietary software."
-Richard M. Stallman
5.
"I'm doing a free operating system just a hobby, won't be big and professional like gnu for 386 (486) AT clones."
-Linus Torvalds
6.
“If you focus your mind on the freedom and community that you can build by staying firm, you will find the strength to do it.”
-Richard M. Stallman

Saturday, September 27, 2008

Dual Boot Live DVD ELPICX with Ubuntu and Fedora


Elpicx is a dual boot live DVD with ubuntu 8.04 and Fedora 9 KDE . It includes a collection of reference cards, test simulators, study notes and exercises for the Linux Professional Institute certification exam. It best for students preparing any certification in Linux. Originally it is a germen distribution but English version also available. Now elpicx 2.0 is available. Download English version (1483MB)

Thursday, September 18, 2008

Benchmarking Softwares for ubuntu linux

Some Benchmarking tools used in Linux

1. Dbench
dbench is a filesystem benchmark that generates load patterns similar to those of the commercial Netbench benchmark. tbench is for TCP benchmarking.
sudo apt-get install dbench

2. Netperf
Network Performance benchmarking tool. It can be used to measure the performance of many different types of networking. It measures TCP and UDP via BSD Sockets for both IPv4 and IPv, DLPI, Unix Domain Sockets and SCTP for both IPv4 and IPv6 1.
sudo apt-get install netperf

3. Bonnie++
This is a benchmark suite that is aimed at performing a number of simple tests of hard drive and file system performance. now version 1.03 is available.Bonnie++ was based on the code for Bonnie by Tim Bray.
apt-get install bonnie++

4. Xbench
A graphical benchmarking program for measuring, tuning and comparing X windows server performance.

5. Iozone
Iozone is a filesystem benchmark tool. The benchmark generates and measures a different file operations. Iozone is useful for performing a broad filesystem analys.
apt-get install iozone3

6. lmbench
This is a simple and portable benchmarking tool, which analyzes memory, cpu of a system.
apt-get install lmbench

7. unixbench
A fundamental high-level Linux benchmark suite, Unixbench integrates CPU and file I/O tests, as well as system behavior under various user loads.