topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 19, 2024, 5:00 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: My First Ubuntu Program (MFUP) by Wreckedcarzz  (Read 5666 times)

wreckedcarzz

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,626
    • View Profile
    • Donate to Member
My First Ubuntu Program (MFUP) by Wreckedcarzz
« on: October 21, 2008, 06:51 PM »
Background information:

As most of the forum regulars know, I program heavily in Visual Basic .NET for Windows - mostly for personal use, but I do publish a few applications here at DC ("SnapSuite", "MiniBrowse", etc). I have been looking for a way to program in Ubuntu for a while now, trying to avoid C/C#/C++, as well as Java at all costs. WINE won't run Visual Studio, and there is no .NET for Linux.

After several months of searching, I stumbled upon Gambas 2 while finalizing my Ubuntu Intrepid Ibex install. The website seemed to imply that it is geared to C# and GTK#, but I gave it a shot anyways - it seemed like a good program from what I was reading. I had issues with the initial setup on my desktop (my own fault), and ended up giving up for the night.

Today, I started a project on my laptop in Gambas, just messing around in class. This time I didn't check the option as I did previously (the one giving me the error), and was able to build a GUI without much trouble. I ended up coding the thing up in the principal's office (unrelated), and figured out how to make a .deb package for Ubuntu. I had some real fun making the About box as well :P

Information:
This program doesn't really DO anything, it is more like a show of "this can be done". Just sort of interesting to tinker with for a couple minutes - everything works as it should.

How to install:

Download, extract and locate the .deb file - it should be called "test_0.0.3-1_all.deb"
http://img412.imageshack.us/img412/7691/51511583pw9.png
My First Ubuntu Program (MFUP) by Wreckedcarzz


Launch the .deb file and you should get a prompt similar to this:
http://img410.imageshack.us/img410/2816/26240214sr4.png
My First Ubuntu Program (MFUP) by Wreckedcarzz


Click "Install Package" and wait for installation to complete:
http://img72.imageshack.us/img72/6132/25602220bq7.png
My First Ubuntu Program (MFUP) by Wreckedcarzz


When the installation finishes you should see something like this:
http://img207.imageshack.us/img207/9831/41002853xp2.png
My First Ubuntu Program (MFUP) by Wreckedcarzz


Now close that dialog and the "Install Package" button should now say "Reinstall Package":
http://img206.imageshack.us/img206/8963/22090581mh5.png
My First Ubuntu Program (MFUP) by Wreckedcarzz


Installation is complete! You can close the Package Installer now!

Program in action:

Navigate to your Applications -> Other menu, and find "MFUP by Wreckedcarzz" - click to launch it:
http://img392.imageshack.us/img392/3686/33055136hi8.png
My First Ubuntu Program (MFUP) by Wreckedcarzz


This is the main GUI, just a few controls - the scrollbar at the bottom is locked in place:
http://img93.imageshack.us/img93/1071/38580678ps7.png
My First Ubuntu Program (MFUP) by Wreckedcarzz


The About box, IMO, priceless :D:
http://img507.imageshack.us/img507/8379/16208128at4.png
My First Ubuntu Program (MFUP) by Wreckedcarzz


How to uninstall:

Navigate to your Applications -> Accessories menu, and find the Terminal:
http://img522.imageshack.us/img522/327/10xt2.png
My First Ubuntu Program (MFUP) by Wreckedcarzz


In the terminal, type "sudo apt-get remove test":
http://img522.imageshack.us/img522/4183/11lj2.png
My First Ubuntu Program (MFUP) by Wreckedcarzz


Hit Enter and wait for a Y/N prompt to appear in the Terminal:
http://img518.imageshack.us/img518/5946/12zb4.png
My First Ubuntu Program (MFUP) by Wreckedcarzz


Press Y, followed by Enter to complete uninstallation:
http://img511.imageshack.us/img511/5167/13vb7.png
My First Ubuntu Program (MFUP) by Wreckedcarzz


Uninstall complete!

If you like it (or if you don't), let me know - I do plan on making actual Ubuntu applications (ones with a purpose), but I figured that this little project was interesting enough to post here :)

-Brandon
« Last Edit: October 21, 2008, 06:52 PM by wreckedcarzz »

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: My First Ubuntu Program (MFUP) by Wreckedcarzz
« Reply #1 on: October 22, 2008, 04:02 AM »
Hi brandon!
Could you just upload the images to DC?
It's more confortable to open them, and we're always assured that as long as the forum exists, the images will exist also :)

housetier

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 1,321
    • View Profile
    • Donate to Member
Re: My First Ubuntu Program (MFUP) by Wreckedcarzz
« Reply #2 on: October 22, 2008, 04:25 AM »
Mono is supposed to be .net for linux. Also supposedly it supports .net 2.0, but not the cool stuff from 3.x.

Congratulations for your first ubuntu package. I think making a proper package is very important. I like it when programs can be uninstalled as easily and swiftly as they had been installed.

 :Thmbsup:

wreckedcarzz

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,626
    • View Profile
    • Donate to Member
Re: My First Ubuntu Program (MFUP) by Wreckedcarzz
« Reply #3 on: October 22, 2008, 05:51 PM »
Hi brandon!
Could you just upload the images to DC?
It's more confortable to open them, and we're always assured that as long as the forum exists, the images will exist also :)

*Editing now* :)

The images are too big for DC to hold - it keeps erroring and throwing me in the "Create New Topic" page. :(

Mono is supposed to be .net for linux. Also supposedly it supports .net 2.0, but not the cool stuff from 3.x.

Congratulations for your first ubuntu package. I think making a proper package is very important. I like it when programs can be uninstalled as easily and swiftly as they had been installed.

 :Thmbsup:

I'll have to check out Mono. Thanks - I tried to make the in/uninstall as easy as possible :D
« Last Edit: October 22, 2008, 06:00 PM by wreckedcarzz »

Ehtyar

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,237
    • View Profile
    • Donate to Member
Re: My First Ubuntu Program (MFUP) by Wreckedcarzz
« Reply #4 on: October 22, 2008, 06:19 PM »
I've been using Mono recently, and even on Windows I'm impressed. Not sure what state the VB compiler is in, but the C# compiler is feature complete.

Ehtyar.