Pages

Configure Ubuntu Package Repository Location

Simplest method is using Ubuntu Software Center. You can go to Edit menu, choose Software Sources, then make some changes that you want. 

If you want to use command line tools like apt-get you can configure repository location in /etc/apt/source.list.
$ nano /etc/apt/source.list
Then change some deb and deb-src location that you need.


Install and Unisntall Program Package in Ubuntu

There are some methods to install program in Ubuntu. The easiest way is using Ubuntu Software Center or Synaptic. Another way is using terminal. You can use dpkg, apt-get, or aptitude.

dpkg is used if you have .deb file. To install package use this command.
$ sudo dpkg -i package_name.deb
To uninstall package use this command.
$ sudo dpkg -r package_name
Another simpler method then dpkg is using apt-get or aptitude. You just need to connect with package repository server through internet or LAN. Then you can install package use this command.
$ sudo apt-get install package_name
To uninstall or remove a package use this command.
$ sudo apt-get remove package_name
But above command will leave data and configuration file of the package. To remove data and configuration file use this command.
$ sudo apt-get purge package_name
By using above command will remove data and configuration file but not for dependencies which was installed when main package was being installed. To remove unnecessary dependencies you can use this command.
$ sudo apt-get autoremove
Before you can install a package using apt-get you should configure package repository location. See this post to know how to configure package repository location.

Setup Mail Server in Windows using hMailServer

Sometimes network/web application developer need a local mail server to test their application. There are some mail server applications that can be used in Windows. One of simple mail server for Windows is hMailServer. You can download hMailServer here. It can work in Windows 8. Another preparation before you run this mail server you should install database server. It can be a Microsoft SQL, MySql, or PostgreSql server.

These are some steps to setup hMailServer for local mail server.