Posts Tagged command

Automatic Command Archive

The default command storing size of ubuntu is 500 commands. It stores the commands in home folder in the file “.bash_history” .
The problem is 500 commands is too short of a size.
One method is to increase the command size to a large value by changing the $HISTFILESIZE variable using the following command

Continue reading “Automatic Command Archive” »


, , , , , , , ,

2 Comments

How to Save file in vi not opened with sudo

It has happened to me a lot of times that i edit a file in vi. I insert and edit a lot and finally when I try to save it I find that I dont have permission for it. If only I had opened it with sudo. I found a solution for this issue. It was actually a simple command and here it is

Continue reading “How to Save file in vi not opened with sudo” »


, , , ,

3 Comments

BSNL Dataone Auto Downloader

Bsnl(India) provides an account that has 2am to 8am unlimited download. It was not easy to wake up at 2am and switch on the computer and sleep again. So I tried to find a method to switch on the computer automatically at 2am and download and shutdown at 8am. Although the I thought the idea was foolish, I found out that there actually is a method for doing it. “ACPI Alarm” was introduced in 1999 or so (Even my old PC had it).

Continue reading “BSNL Dataone Auto Downloader” »


, , , , , , , , ,

6 Comments

Copy in Linux with Ui

The program here is an UI for cp command. I have used cp in the background but over that I am just monitoring the files copied and speed of copying.
It’s not a perfected program. It’s quick one but works fine.
Execution:
Create a file named copy and insert the following code and give execute permission

Continue reading “Copy in Linux with Ui” »


, , , ,

1 Comment

Automatic Desktop Wallpaper Changer for Linux

I have a lot of wallpaper that I wanted to switch automatically. After a lot of search i found that there a command way to control all the gnome settings. So I the command I used is “gconftool-2“.
So code is like:

Continue reading “Automatic Desktop Wallpaper Changer for Linux” »


, , , , , , , ,

1 Comment

Adding RedHat DVD as Repository

When we try out a new linux OS its always a pain to download and install all the software and  add packages we needs on that. Its even worse if you don’t have an unlimited connection. But actually most of the software we need is already there in the CD/DVD in which the operating system comes with. So how do we install from the DVD then rather than from the internet?
For this you need to add the DVD as a repository so that rpm client picks up the rpm from the DVD and wont go to internet for it.
The Procedure and Files to be modified is a bit different for each OS so i will cover Red Hat Linux in this post.
In RHEL the repo list is maintained in the folder /etc/yum.repos.d/ . So lets create a new file in this directory , say lets call it rhel-cd.repo.
The Contents of this file should be as follows:

Continue reading “Adding RedHat DVD as Repository” »


, , , , , , , ,

2 Comments

Tab Feature in Vim

Vim is one of the simplest looking but most powerful editor I have seen. So thought of listing a few interesting one that I came across.
Tab Opening of Files.
Vi tab screenshot
There are two methods of starting files in tabs. Continue reading “Tab Feature in Vim” »


, , , , ,

2 Comments

Restoring the Grub after reinstalling Windows

After reinstalling windows or fixing MBR(Master Boot Record) you always loose your grub and you cannot boot to your linux. So this post is about the methods of restoring the grub. There are three methods I use. I will explain all three.

Continue reading “Restoring the Grub after reinstalling Windows” »


, , , , , , , , ,

3 Comments