Thursday, May 23, 2013

Create .deb package from source

First download or build source package. If it is compressed, extract it. Then open terminal and go to source folder, by typing

cd source_folder  (if it is in home folder)
otherwise,
cd /folder1/folder2/sourcefolder

For example, if you want to install gedit from source, and source folder of gedit in Downloads folder, then type :

cd Downloads/gedit

then type

dpkg-buildpackage -rfakeroot -us -uc

Note : You need to install dpkg-buildpackage and fakeroot first.
Open terminal and type :
sudo apt-get install dpkg-buildpackage && fakeroot

Tuesday, May 21, 2013

Save manpage as plain text

Manpage is an abbreviation for manual page, Linux help documentation files. There are man pages for just about every Unix command line and utility command. To view a man page from a command line you simply enter man followed by the command.

Example :
man man
man mysql
and etc.

To save a man page as plain document :