Skip to content

Dipin krishna

Execution Sequence of .bash_* files

Execution sequence for interactive login shellexecute /etc/profile IF ~/.bash_profile exists THEN execute ~/.bash_profileELSE IF ~/.bash_login exist THEN execute ~/.bash_login ELSE IF ~/.profile exist THEN execute ~/.profile END IF END IFEND IF When you logout of the interactive shell, following is the sequence ofexecution: IF ~/.bash_logout exists THEN execute ~/.bash_logoutEND IF Please note that /etc/bashrc is… Read More »Execution Sequence of .bash_* files

Disable the usage of history using HISTSIZE

I you don’t want the shell to remember the commands you have typed, then disable history all together by setting the HISTSIZE to 0 as shown below. $ export HISTSIZE=0 Set some other value if you want the shell to remember a few commands may be 5 or 10 etc.. Enjoy using linux.

How to Change the position of the Restore/Max/Close buttons on windows in ubuntu 9.04,9.10,10.04

Many you might have already seen that the position of the buttons on the window decorated had been left justified in ubuntu 10.04. Actually it is very easy to change the justification. 1. Press Alt+F2 and type in gconf-editor 2. Navigate to app->metacity->general double click the ”button_layout” option and change it to “memu:maximize,minimize,close“rather than ”minimize,maximize,close:menu“… Read More »How to Change the position of the Restore/Max/Close buttons on windows in ubuntu 9.04,9.10,10.04

“shopt -s cdspell” : Automatically correct mistyped directory names on cd

Use shopt -s cdspell to correct the typos in the cd command automatically asshown below. $ cd /var/vmall-bash: cd: /var/vmall: No such file or directory$ shopt -s cdspell$ cd /var/vmall$ pwd/var/vmailHere actually i mistyped ‘vmail’ as ‘vmall’. Enjoy!

Use “cd -” to toggle between the last two directories

You can toggle between the last two current directories using cd – as shownbelow. [dipin@linuxgeek ~]$ cd /etc/[dipin@linuxgeek etc]$ pwd/etc[dipin@linuxgeek etc]$ cd /var/[dipin@linuxgeek var]$ pwd/var[dipin@linuxgeek var]$ cd -/etc[dipin@linuxgeek etc]$ pwd/etc[dipin@linuxgeek etc]$ Enjoy!

Try to navigate up the directory using cd followed by consecutive dots

In the below example i have show how to navigate up to level 5 using cd……(cd followed by 6 dots).Here a single dot represents the current directory, 2 dot means 1 level up, 3 dots means 2 level up and so on.. Add the following alias. $ alias cd..=”cd ..”$ alias cd…=”cd ../..”$ alias cd….=”cd… Read More »Try to navigate up the directory using cd followed by consecutive dots

Toggle SSH Session using SSH Escape Character

When you’ve logged on to the remotehost using ssh from the localhost, you may want to come back to the localhost to perform some activity and go back to remote host again. In this case, you don’t need to disconnect the ssh session to the remote host. Instead, follow the steps below. 1. Login to… Read More »Toggle SSH Session using SSH Escape Character

How to Install stable Firefox 3.6(Not the Namoroka One) in your ubuntu

I you are using ubuntu 9.10 karmic/ 10.04 Lucid. just run these commands on your terminal: sudo add-apt-repository ppa:mozillateam/firefox-stable sudo apt-get updatesudo apt-get install firefox-3.6 Now for those who are using ubuntu 9.04/8.10/8.04. You will need to edit your source list and add the appropriate ppa. Open sources.list sudo gedit /etc/apt/sources.list and add the below lines to… Read More »How to Install stable Firefox 3.6(Not the Namoroka One) in your ubuntu

Pino: Install twitter and Identi.ca Client for ubuntu Linux

Pino is Twitter and Identi.ca client for Linux desktop. It’s simple and fast. Install Pino in ubuntu $ sudo add-apt-repository ppa:vala-team/ppa$ sudo add-apt-repository ppa:troorl/pino$ sudo apt-get update$ sudo apt-get install pino Pino is hosted on code.google.com

Howto: VPN connection setup on ubuntu 9.10 karmic koala

I took this from http://ubuntuforums.org/showpost.php?p=8261958&postcount=6  There are so many variations on these VPN implementations that it is extremely difficult to generalize a known-good configuration for each. Install from the various VPN components PPTP (Microsoft VPN) pptp-linux network-manager-pptp b. VPNC (Cisco VPN) vpnc network-manager-vpnc c. OpenConnect  openconnect network-manager-openconnect Reboot PPTP VPN Configuration – This setup works for connecting… Read More »Howto: VPN connection setup on ubuntu 9.10 karmic koala

How to install VLC Media Player in Ubuntu 10.04 Lucid Lynx

Here’s is a guide to install VLC using motumedia ppa. To install VLC, you will need to install the medibuntu-keyring, w32codecs and libdvdcss2.For that open a terminal and type the following. $ sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 2EBC26B60C5A2783 $ sudo apt-get update $ sudo apt-get install medibuntu-keyring$ sudo apt-get update $ sudo apt-get install w32codecs$… Read More »How to install VLC Media Player in Ubuntu 10.04 Lucid Lynx

Social integration and boot recovery in Ubuntu 10.04 Lucid Lynx

Lucid Lynx is going to feature a new social integration with a new “MeMenu”. The MeMenu is basically an application from where you can access social networks like Twitter, Facebook etc and send IMs. You can access Canonical’s very own Ubuntu One as well. MeMenu in Lucid is going to integrate Gwibber for Twitter, Facebook… Read More »Social integration and boot recovery in Ubuntu 10.04 Lucid Lynx

OpenOffice is to be dropped from Ubuntu Netbook Edition 10.04

According to the latest Ubuntu Netbook Remix Blueprint, the Ubuntu community are planning to drop OpenOffice from the default installation of Ubuntu Netbook Edition for the upcoming Lucid Lynx release, atleast for now. Now documents will be opened by default in Google Docs. The developers have been removing applications that are irrelevant on a netbook.… Read More »OpenOffice is to be dropped from Ubuntu Netbook Edition 10.04

Ubuntu 8.04.4 LTS released (the fourth maintenance update)

The Ubuntu team has announced the release of Ubuntu 8.04.4 LTS, the fourth maintenance update to Ubuntu’s 8.04 LTS release.  This release includes updated server, desktop, and alternate installation CDs for the i386 and amd64 architectures.  Ubuntu 8.04 LTS continues to be maintained through 2011 for desktops and 2013 for servers through online updates, but… Read More »Ubuntu 8.04.4 LTS released (the fourth maintenance update)

Glatx: Try the latest experimental Deb files

My post gtalx: Howto Gtalk in ubuntu ( google talk ) has already show you how to install gtalx on linux To install on 32-bit Ubuntu 9.10 you can try this EXPERIMENTAL deb file (this installs today’s snapshot of the unstable branch).To install on 64-bit Ubuntu 9.10 you can try this EXPERIMENTAL deb file (this… Read More »Glatx: Try the latest experimental Deb files

How to Block an ip address using iptables

You can block an user with an ip address from accessing your system using the iptables. For that follow these steps. 1. Open up a shell and login as root. 2. now type the command below to block the ip(XXX.XXX.XXX.XXX). # iptables -I INPUT -s XXX.XXX.XXX.XXX -j DROP 3. See whether the new rule has… Read More »How to Block an ip address using iptables

How to install GIMP in Ubuntu 10.04 Lucid Lynx

A quote from wiki.ubuntu.com: “The GIMP has been removed from the default installation in order to make room for more features and content to be included in Ubuntu. Basic functionality for image editing provided by The GIMP can be found in some of Ubuntu’s other applications, such as F-Spot. The GIMP remains available in the… Read More »How to install GIMP in Ubuntu 10.04 Lucid Lynx

How to Disable splash screen in ubuntu 9.10 Karmic Koala

The splash screen is shown when you boot up ubuntu.You can stop showing the splash screen and instead view details about your boot process. Follow the steps below to disable the splash screen.1. Edit grub.  $ sudo gedit /etc/default/grub Locate the following line GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash” Remove quiet and splashNow the line should look like this… Read More »How to Disable splash screen in ubuntu 9.10 Karmic Koala

How to Restore grub in ubuntu remix 9.10 karmic koala

I recently installed Windows 7 on my laptop which already had ubuntu remix installed in it.The problem i faced was, the GRUB was lost. But i had trouble getting your GRUB boot loader since the process of restoring GRUB has changed. Follow these instructions to restore your GRUB. 1. Boot from your UBUNTU LIVE from… Read More »How to Restore grub in ubuntu remix 9.10 karmic koala

How to Show the Restore/Maximize, Minimize buttons on Maximized Windows in Ubuntu Remix 9.10 karmic Koala

I recently installed the new Ubuntu Remix 9.10 karmic Koala on my laptop. I found that all windows where automatically maximized when open. I had showed you how to disable the auto-maximize feature of ubuntu remix earlier. Another annoying feature was that the maximized windows doesn’t have the restore/maximize, minimize and close buttons on it.… Read More »How to Show the Restore/Maximize, Minimize buttons on Maximized Windows in Ubuntu Remix 9.10 karmic Koala