There are certain applications, such as MySQL and Apache that are configured upon installation. The most familiar to you might be MySQL. At the point of installation you configure the server address, admin password, etc. But what happens when you need to reconfigure that tool and you don't want to go through the process of unistalling/reinstalling? Fortunately there is a tool to handle that task. That tool is dpkg-reconfigure. Of course this tool is a command line tool and many newer users do not want to bother with commands.
For those users who do not want to bother with commands, but still need to re-configure certain packages, there is a front end called gkDebconf that can be used to easily reconfigure those already installed packages. Let's see how to install and use this tool.
Since gkDebconf is found in the standard repositories, installation is very simple. Just follow these steps:
Once installed, you will find the application in System > Administration > gkDebconf.
One of the problems with starting the tool from the menu is that it will not ask you for your sudo password, therefore you will not have administrative access. For some of the package re-configuration (such as MySQL) you must have admin access. So if you are reconfiguring a package that you know requires admin access, start gkDebconf from the command line. To do this open up a terminal window and issue the command sudo gkdebconf. When this command is issued the main window for gkDebconf will open (see Figure 1) where you can locate the package you want to reconfigure.
As you can see there are numerous packages available to you. I am illustrating the MySQl-server package as that is the package that I get the most questions regarding re-configuring.
So to run the re-configuration process select the package you want to reconfigure and click the Configure button. When you do this a new window will open, that window being the debconf configuration window for the package in question (see Figure 2). In my example you can see the first step is asking you for the MySQL root user password. If you have already installed this package, you will have already walked through this wizard so it will be very familiar.
Some of the more important applications you can reconfigure include:
For those who would like to to do this same task from the command line, you can use the dpkg-reconfigure like so:
sudo dpkg-reconfigure APPLICATION
Where APPLICATION is the package you want to reconfigure. So if you want to reconfigure Samba you would issue the command:
sudo dpkg-reconfigure samba
Although the task isn't too challenging to handle from the command line, it's always nice to not have to guess the name of the package you want to configure (remember, Linux is very case-sensitive, so MySQL is not mysql). gkDebconf makes this task much easier.Advertisement
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.