It is currently Thu Nov 21, 2019 5:08 pm


All times are UTC




Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: GNS3 and Dynamips DEB Packages
PostPosted: Thu May 30, 2013 4:53 pm 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
Over the past couple of weeks I have been working on creating some newer DEB packages for gns3 and dynamips.

I have packaged:

> GNS3 0.8.4-RC3
> Dynamips 0.2.8-RC6 (both amd64 and i386)

There are a few differances to the GNS3 package originally created by Eric Wenzel, which I will outline below.

> qemuwrapper.py, vboxwrapper.py, vboxcontroller_4_1.py, tcp_pipe_proxy.py have all been moved to /usr/share/gns3/ (which relates to the program defaults)
> baseconfig.txt, baseconfig_sw.txt are still installed in /usr/share/doc/gns3/ but are copied to /usr/local/share/examples/gns3/ to enable the first run wizard to copy these to the Images folder
> I have updated the mimetypes to use the newer freedesktop standard
> I have included both png icons and a pixmap icon
> Have added wireshark as a recommended package (not sure how well this works with the various package managers)

The dynamips package should also set the appropriate capabilites on the dynamips executable to enable you to run gns3 as a regular user, for details on what is set see the following post p19569

You can find the packages at http://gns3.serverb.co.uk.
I have also created a seperate bugtracker for these DEB packages at http://gns3.serverb.co.uk/bugtracker, which can be used to submit any bugs/suggestions relating to either package.

As dynamips is a dependancy of GNS3 the dynamips-communty package must be installed BEFORE installing the GNS3 package

At the moment these packages should be considered unstable, though I have tested them on my machines and not had any issues. I don't intend to submit these packages to the official repositries as yet until i'm happy they can be considered stable, so I would also be greatful if people can report successful use of the packages, along with Operating system versions.



_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: GNS3 and Dynamips DEB Packages
PostPosted: Sat Jun 01, 2013 7:32 am 
Offline

Joined: Fri Mar 05, 2010 11:33 am
Posts: 1494
Location: Australia
Can't wait to test! Thanks.

_________________
RedNectar
http://rednectar.net
@rednectarchris
GNS3 WorkBench-a VMware image of Ubuntu with GNS3 and VPCS installed and a collection of exercises/labs


Top
 Profile  
 
 Post subject: Re: GNS3 and Dynamips DEB Packages
PostPosted: Sat Jun 01, 2013 1:27 pm 
Offline

Joined: Fri Mar 05, 2010 11:33 am
Posts: 1494
Location: Australia
Had hoped it would solve problem: topic6434.html - but sadly - No.

_________________
RedNectar
http://rednectar.net
@rednectarchris
GNS3 WorkBench-a VMware image of Ubuntu with GNS3 and VPCS installed and a collection of exercises/labs


Top
 Profile  
 
 Post subject: Re: GNS3 and Dynamips DEB Packages
PostPosted: Sat Jun 01, 2013 4:56 pm 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
Well I've found the first stumbling block with the Dynamips packages... Debian itself! Due to the way packages are added to the debian repo's libc6 is still at 2.13 (currently depends on 2.15).

This should only affect Debian and not Ubuntu based distrobutions (which have newer versions of libc6 available).

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: GNS3 and Dynamips DEB Packages
PostPosted: Sun Jun 02, 2013 4:55 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
Hi Daniel,

That's awesome! I've been working a bit on this a few weeks ago without getting something finalized... This is great you did it cause this whole Debian packaging thing was giving me headaches ;)

Hopefully the packages can be considered stable soon and included in our official repo. Did you use stdeb to make the GNS3 package or another process/tool? Please when you have time I would like to know the complete procedure you used so I can maybe integrate everything to our building process and automate things.

Also, in the future it would be great to have final versions of the packages pushed to Ubuntu/Debian official repositories. An alternative for Ubuntu is to use PPA, which is more flexible I think.

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: GNS3 and Dynamips DEB Packages
PostPosted: Sun Jun 02, 2013 7:38 pm 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
grossmj wrote:
Hi Daniel,

That's awesome! I've been working a bit on this a few weeks ago without getting something finalized... This is great you did it cause this whole Debian packaging thing was giving me headaches ;)

Hopefully the packages can be considered stable soon and included in our official repo. Did you use stdeb to make the GNS3 package or another process/tool? Please when you have time I would like to know the complete procedure you used so I can maybe integrate everything to our building process and automate things.

Also, in the future it would be great to have final versions of the packages pushed to Ubuntu/Debian official repositories. An alternative for Ubuntu is to use PPA, which is more flexible I think.


It certainly wasn't easy! I used debhelper and debuild to make the GNS3 package. For the dynamips package I started with dh_make.

I shall put together some more details of the how I made the GNS3 package over the next few days.

As for the offical debian/ubuntu repos -
Debian - Seems quite difficult to do, need to complete keysigning etc and be approved to become a maintainer. Packages can also be sponsored by an existing maintainer.
Ubuntu - Maybe slightly easier (haven't read all the details as yet!)

The main problem I can see us facing is that GNS3 already exists in the Debian/Ubuntu repos as packaged by Eric Wenzel. There is a system for non-maintainer uploads but again I would need to look into this more.

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: GNS3 and Dynamips DEB Packages
PostPosted: Mon Jun 03, 2013 10:01 am 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
@grossmj

I have uploaded the debian directories, which contain the files that control the build process.

Apparently there is a system, to use the setup.py file and generate a deb package but I would need to look into this further. For the GNS3 package I processed everything by hand (not using setup.py)

I will try and give a rundown on what the various files are for...

GNS3 - https://bitbucket.org/dlintott/gns3/src
debian/changelog - This is the standard debian changelog file, I imported the most recent and added a new entry
debian/compat - DEBHelper Compatability Level
debian/control - This file contains the package name, dependencies, description etc.
debian/copyright - Debian machine readable, licence file
debian/dirs - This is used to create additional directories in the build tree (dh_installdirs)
debian/docs - List the documentation to install (dh_installdocs)
debian/gns3.postinst - Outline for the postinst (post-install) which contains additional scripting to be run. (#DEBHELPER# is automatically replaced when building)
debian/gns3.postrm - Outline for the postrm (post-remove)
debian/gns3.prerm - Outline for the prerm (pre-remove)
debian/install - List the files to be installed into the package and their destination (dh_install)
debian/links - Creates symlinks between files (dh_link)
debian/manpages - List the manpages to be installed (dh_installman)
debian/menu - Creates the debian menu entries (dh_installmenu)
debian/rules - This is the rules file that controls the build process. I added a couple of overrides to enable to tweak the build
debian/sharedmimeinfo - This creates the mime type for .net files to allow then to opened from a directory browser (dh_intstallmime)
debian/ucf - Copies and registers the system-wide gns3.ini with the UCF system (dh_ucf)

debian/additional/* - This contains any additional files that were needed in the package, but not included in the source package.
debian/source/format - List the debian source packge format (http://wiki.debian.org/Projects/DebSrc3.0)
debian/source/include-binaries - List the files to additional binary files that are included from the additional directory

That should provide a bit of insight into the building of the package. The dynamips package was slightly different as it actually has to be compiled.

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: GNS3 and Dynamips DEB Packages
PostPosted: Thu Jun 13, 2013 10:49 am 
Offline

Joined: Fri Mar 05, 2010 11:33 am
Posts: 1494
Location: Australia
@claydon_dan,

Looks like you've become our deb package expert! Congratulations and well done.

But we also need a .deb for vpcs. The current source files are at http://sourceforge.net/projects/vpcs/files/0.4/beta/ where you will find both 32 and 64 bit binaries, along with the vpcs.1 man page. Would you mid putting it together?

There is also a version 5.0alpha, which includes a hypervisor, but I don't consider it ready for consumption yet. BTW - if you wanted to play with the hypervisor, it operates on port 21000 by default (something Paul neglected to mention on the sf page) , and don't bother with the windows version. Hopefully it will be ready soon - at least the vpcs part.

PS I think your packager probably does a better job than setup.py - at least in terms of putting things in more "standard" places. By that I mean that dynamips and gns3 gets installed in the /usr/bin directory, just like wireshark does

Chris

_________________
RedNectar
http://rednectar.net
@rednectarchris
GNS3 WorkBench-a VMware image of Ubuntu with GNS3 and VPCS installed and a collection of exercises/labs


Top
 Profile  
 
 Post subject: Re: GNS3 and Dynamips DEB Packages
PostPosted: Thu Jun 13, 2013 11:56 am 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
rednectar wrote:
Looks like you've become our deb package expert! Congratulations and well done.

I wouldn't necessarily say i'm an expert... considering a month ago I'd never created a deb package! But I enjoy learning and once I get into a task I don't like to give up.

rednectar wrote:
But we also need a .deb for vpcs. The current source files are at http://sourceforge.net/projects/vpcs/files/0.4/beta/ where you will find both 32 and 64 bit binaries, along with the vpcs.1 man page. Would you mid putting it together?

I shall certainly have a look at it and see what I can come up with.

rednectar wrote:
PS I think your packager probably does a better job than setup.py - at least in terms of putting things in more "standard" places. By that I mean that dynamips and gns3 gets installed in the /usr/bin directory, just like wireshark does

Thanks - I believe the package does still comply with the debian packaging guidelines... but they take some reading!

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: GNS3 and Dynamips DEB Packages
PostPosted: Thu Jun 13, 2013 9:38 pm 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
@rednectar @grossmj

Re: VPCS Package

Creating a deb package for VPCS shouldn't be a problem at all. In line with the other packages, VPCS should get installed to /usr/bin. Though at the moment, if we want to start VPCS from within GNS3... We'll hit the problem rednectar mentioned in this post - p18785
grossmj wrote:
Ok, right now vpcs has to be in the same directory as gns3. I know, it should at least search in all the paths in the PATH environment variable. I'll fix that.
Are the plans to still search all the paths in the PATH variable?



_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO