Posts Tagged command
Automatic Command Archive
Posted by Srijith R in linux, shell scripting on August 17, 2010
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” »
How to Save file in vi not opened with sudo
Posted by Srijith R in linux, shell scripting, vi on August 17, 2010
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” »
BSNL Dataone Auto Downloader
Posted by Srijith R in acpi, dataone, linux, shell scripting on August 16, 2010
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” »
Copy in Linux with Ui
Posted by Srijith R in linux, shell scripting on August 14, 2010
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” »
Automatic Desktop Wallpaper Changer for Linux
Posted by Srijith R in gnome, linux, shell scripting on August 13, 2010
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” »
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” »
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” »

Recent Comments