search

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

Saturday, June 13, 2015

Install aspell dictionary in linux

To install "aspell" in linux, follow the below steps:


cd /usr/local/src
wget ftp://ftp.gnu.org/gnu/aspell/aspell-0.60.6.tar.gz
tar -xvzf aspell-0.60.6.tar.gz
cd aspell-0.60.6/
./configure
make
make install

This will install aspell at the location /usr/local/bin/aspell. Make sure that you have build tools installed on your operating system. If you don't, you can install it using the below command in ubuntu :

sudo apt-get install linux-headers-$(uname -r) build-essential




Monday, December 29, 2014

How to paste in putty in Ubuntu Linux

The key board short cut to paste the content from clipboard to putty terminal in Linux is Ctrl+Shift+Insert

First copy the content using Ctrl+C. This will copy the content to buffer. Then go to putty terminal and press Ctrl+Shift+insert


Saturday, November 29, 2014

How to dual boot Linux (CrunchBang Linux) and PC-BSD 10 with ZFS file system

This is a tutorial which shows how to dual boot Linux and PC-BSD 10. PC-BSD 10 uses ZFS as the file system and grub for the boot manager. I was able to successfully dual boot PC-BSD and CrunchBang Linux in my laptop.

I was able to achieve this after lots of trial and error methods. I have not found a valid guide in the internet to do it. All the tutorials were outdated or at least not working for me. I have spend a lot of time in the pc-bsd/freebsd irc channels and finally able to achieve this after trying out different suggestions from the irc members. Thanks to them all for the guidance.

Friday, October 24, 2014

How to install Mozilla Thunderbird in CrunchBang Linux

There is no Mozilla Thunderbird package in CrunchBang Linux. So if you try

sudo apt-get install thunderbird

it won't work. The Thunderbird is rebranded to Icedove in Debian. As CrunchBang is using Debian as upstream, it is Icedove in CrunchBang Linux also.

Saturday, October 18, 2014

Tuesday, August 5, 2014

How to fix " skype depends on libqtwebkit4 (>= 2.1.0~2011week13)." error in debian/crunchbang 64 bit linux

I have been using skype 4.2 version in my crunchbang 64 bit. Recently Microsoft has stopped supporting this version and users are showing an error "server failed to connect" while logging in to skype.

So I have to update skype to 4.3 to fix the issue. I'm using 64 bit crunchbang and Microsoft has only 32 it deb package for debain (which is what crunchbang is based on). So I have downloaded the deb file and when installing I was getting the below error :

Sunday, December 8, 2013

Port forwarding port 80 of public static ip to internal machines port 8080 in centos using iptables

I have a centos server acting as router. It has two ethernet ports eth0 and eth1. eth0 is configured with the public static ip got from my ISP. I have my internal machines connected to this centos os router machine using LAN in eth1.

For example, assume that my public static ip given by my ISP is 123.45.567.89 and it is configured in eth0. In eth1 my internal machines are connected through LAN. Internal machines are in the ip range of 192.168.1.0 to 192.168.1.100

I have a web application running on one of my internal machines with IP 192.168.1.10 on port 8080. I can access this web app from my internal network by typing http://192.168.1.10:8080/ in a web browser. But I want to get this application from my public static ip given by ISP by simply typing http://123.45.567.89/ in the web browser. How can I achieve this? By port forwarding. Follow the below steps to achieve this.

Saturday, November 23, 2013

How to delete file names with spaces older than 30 days in linux?

I want to delete files which are modified before 30 days from a public folder (uploads) in my linux server. The files are uploaded by different users so it includes white spaces and other characters in the file name. How can I automate this process?

You can use any of the below commands to achieve this:

Saturday, September 7, 2013

How to delete a user from a group using single command in linux?

I have created a user called 'sam' and he is a member of the group 'webdeveloper'. Currently he is on long leave and I want to remove him from the web developer group without deleting this user.  How can I do this? We will find below.

Saturday, August 3, 2013

Download and install the bleeding edge version of elementary os

This post is more like  a note to myself.

Elementary OS is a distro which uses ubuntu as its base os. But unlike the other ubuntu based distros it's a class apart. It uses its own custom developed applications,icons and themes and everything works as a coherent unit.

Tuesday, July 30, 2013

How to fix the "built in speaker not working" issue in laptops with Ubuntu 13.04 (UEFI)

Recently I have bought a new Sony Vaio touchscreen laptop with Windows 8 UEFI boot (laptop is really good and I highly recommend it) . It was fairly easy to install Ubuntu 13.04 along side windows 8. I was successfully able to dual boot Windows 8 and Ubuntu in this laptop.

In Windows 8 as expected everything worked perfectly out of the box but it was a different story in Ubuntu. I have spent almost 3 weekends for a solution and finally found the solution from some of the old bug reports dated back to Ubuntu 8.04.

Thursday, June 27, 2013

Install flite (festival lite) text to speech system in linux

Flite is text to speech engine for linux. It is based on festival speech synthesis system. Most of the linux sytems comes with flite in its package manager. It's just a apt-get on debian based or yum install in rpm based systems.

For example, you can install it on centos with below command:

Sunday, June 23, 2013

Script to check whether dropbox (dropboxd daemon) is running in linux server using command line

Now a days more people are using dropbox for backup in linux servers. Dropbox is a great product which has their client in all major platforms. So this is really ideal for using in linux servers too.

Dropbox runs dropboxd daemon in the server to check for updates and syncing the contents between its clients across different platforms. Sometimes this daemon will get killed and our backup process will be in jeopardy.

Friday, May 31, 2013

Print sum of all numbers in a file in linux using awk

This is to print the sum of all numbers in a file using awk.

If the file which we want to process is sum.txt, and it's content is :

cat sum.txt
1
3
2
4
5


 To find the sum of all these numbers we can use below command:

Friday, February 8, 2013

Finding the first day and last day of the last month using date command in linux

First day of Last Month = echo $(date --date "-1 month" +%Y-%m-01)
Last day of Last Month = echo $(date --date "-`date +%d` days -0 month" +%Y-%m-%d)

First day of Current Month = echo $(date --date "-0 month" +%Y-%m-01)
Last day of Current Month = echo $(date --date "-`date +%d` days +1 month" +%Y-%m-%d)

First day of Next Month = echo $(date --date "+1 month" +%Y-%m-01)
Last day of Next Month = echo $(date --date "-`date +%d` days +2 month" +%Y-%m-%d)

Thursday, November 22, 2012

How to port forward remote port to local machine using ssh [trouble shooting remote server apps in local machine]

Some times, you may need to test a remote application (GUI app) which is running in a linux server. As it is a server, we cannot test the app from the server as there is no GUI for the server. The app can be accessed over a web browser though. But for some other reasons, you are not able to access it through the web browser using the server's ip address. So our first purpose is the trouble shoot the issue. Whether the app is actually running in the server with all the features enabled?

We can ssh to the server and check the whether the app is running using ps -ef | grep appname command. Then we found out that the app is actually running in the server. But why we are not able to access it through server's ip address and the port? Here comes the rescuer in the form of port forwarding.

Monday, November 19, 2012

How to enable history in elementary os luna even after the restarting the computer or closing the terminal

Note: Elementary os luna is still in development and will have many bugs still to be resolved. So these types of issues may occur. This is not to blame the developers but I hope it will be helpful to some body who is using it and has been affected by this issue.

I'm using the daily builds of elementary os luna. I use terminal a lot and uses many command line and terminal shortcuts daily to make my jobs easier. One of such command line short cut is uing Ctr+r to search for the previously used commands. But elementary luna it was not working after I have restarted my computer or even in another terminal. I did a bit of research and found out the issue and fixed it.

Saturday, November 17, 2012

Saturday, April 28, 2012

Artha - The best dictionary app for ubuntu [offline]

I was in search of the best dictionary app (software) for my ubuntu as I recently started reading many ebooks. As English is not my native language, a good dictionary app is always the best friend while reading. I have tried many dictionary app but I finally I have settled on the dictionary app called "Artha".

"Artha" is a Sanskrit word (an ancient Indian language)  which means "meaning" in English. Apt name for a dictionary app, right? The best part of this app is that it works offline while most of the dictionary apps available in ubuntu needs internet connection for working. Let's see some of the features of Artha from their website.

Wednesday, March 14, 2012

How to use screen in mulit user mode in linux?

Linux screen command is one of the most used command in my life. Not only it is very useful but also it is very versatile. Screen is mainly used to run another terminal inside our normal linux terminal.

For example, you are connecting to your remote computer over ssh and want to run a script which will take more than 1 hour to execute. Normal cases there are chances that your remote connection over ssh might get disconnected. If so you need to start the whole process again as once the remote connection get disconnected, the running process will also stops.