You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

I need to create a .deb package of my customized build of python and this .deb package must be installed into /opt dir. How do I do it? Please, some help!!! I stuck

What I did...
I have built my python. It isn't like ./configure && make && make install. I made quite some manual work. So, now in ~/my_python I have _binary_ version of python, which I want to be installed on a target platform in /opt dir. Not in /usr/local!

In ~/my_python I create simple Makefile with default targets (all, my_python, clean, distclean, install). In order to "build" my_python I run tar -cjvf with sub-dirs in ~/my_python. Install is just copy tar.bz2 to /opt/my_python and untar it there.
When I try to run dpkg-gencontrol -pmy_python it generates dpkg-gencontrol: error: control file must have at least one binary package part. I don't understand, what does it mean?? If I look into ~/my_python/debian/my_python/it has all the files I'm supposed to install.

And why does it attempt to install everything to /usr dir? What if I want to install it into other place?

Kind regards,
Alex

PS. I guess creating just simple bash/perl script to copy and untar everything is way easier. I try to use dpkg for two reasons: upgrade/downgrade/uninstall and dependency check. If one has an idea on how to check dependencies from within bash/perl script, please, tell me!