View Full Version : Please test my app: graphical package installer
psychicdragon
June 29th, 2005, 02:50 AM
I've been learning to program in python using gtk and glade recently as it seems very popular in the ubuntu and gnome community. So I figured for my first real program I would try to make something useful.
I've made a simple program that will allow you to install a deb package by double clicking it in nautilus.
Here's a screenshot:
http://img247.echo.cx/img247/8237/screenshot0gs.th.png (http://img247.echo.cx/my.php?image=screenshot0gs.png)
This is a really preliminary version, I just started working on it today, but I would like some feedback to see if I'm on the right track.
Currently there is no threading (like sapo's app :grin: ) so it will lock up for a couple of seconds while installing, this is my main priority for the next version. It will also generate an error message that makes no sense if you try to install a package with unmet dependencies, I'm also planning to correct this.
Anyway, try it out and please give me some feedback.
Installation instructions:
Download and then extract the attached archive
then run these commands:
sudo cp debinstaller /usr/bin
sudo chmod 755 /usr/bin/debinstaller
sudo mkdir /usr/share/debinstaller
sudo cp debinstaller.glade /usr/share/debinstaller
Select a deb file in nautilus
right click > Properties > Open With > Add
Use a custom command > debinstaller
Now you can double click on a deb in nautilus and it should launch the program.
gamehack
June 29th, 2005, 03:10 AM
One suggestion, make a nautilus extension when you right-click on deb, let it display an option like "Install" or something like this and when clicked, let it start your program.
Regards
benplaut
June 29th, 2005, 03:16 AM
does this hook into the repos to solve dependancies? (like Debins)
sapo
June 29th, 2005, 03:20 AM
nice idea man!
If you want i can try to help hacking something in it :grin:
Edit.. it worked.. give me an error but was cause the package was already installed...
nice idea.. very usefull! :grin:
Print the error on a msg box would be nice.. :D
psychicdragon
June 29th, 2005, 03:29 AM
does this hook into the repos to solve dependancies? (like Debins)In the future I would like to see it do this. Right now it's something I hacked together in an afternoon.
What is debins exactly? It doesn't seem to be in the repos. If there's already an applicaton that performs this function I wouldn't want to waste my time duplicating someone elses efforts.
EDIT:
nice idea man!
If you want i can try to help hacking something in it :grin:
Edit.. it worked.. give me an error but was cause the package was already installed...
nice idea.. very usefull! :grin:
Print the error on a msg box would be nice.. :DThanks for trying it out. That should be easy to implement but for today I'm done coding. I think I'm off to bed.
UbuWu
June 29th, 2005, 08:30 PM
Very nice!
bored2k
June 29th, 2005, 08:45 PM
I like your Terry Bogard and Blue Mary wallpaper :D
benplaut
June 29th, 2005, 09:34 PM
What is debins exactly? It doesn't seem to be in the repos. If there's already an applicaton that performs this function I wouldn't want to waste my time duplicating someone elses efforts.
it was suggested, and released, here:
http://www.ubuntuforums.org/showpost.php?p=158724&postcount=49
might be good to just improve and update Debins, rather than starting from scratch.
Note: i'm not usre if debins actually works, i haven't tried it myself :roll:
sapo
June 29th, 2005, 09:42 PM
How it works:
Debins begins by creating a miniature repository in your root directory, to where it copies the .deb to be installed. It then adds this repository to your source.list, updates, and apt-get installs it. Integration with apt made easy!
lol... nice idea to integrate with the apt-get :D
UbuWu
June 30th, 2005, 03:43 AM
And how about gdeb, which is also mentioned in that thread? Anyone tried it?
psychicdragon
June 30th, 2005, 04:27 AM
I just tried out gdeb. It seems to be at about the same point as mine but I was never actually able to install a package with it. If i run it from the console I get an error like this:error:
command: x-terminal-emulator -e /bin/sh -c \"/usr/bin/dpkg -i bittorrent-4.0.2.linux_i686-2_all.deb && echo Installation done || echo Installation failed;echo Press enter to continue; read DISCARDED\"
user: rootI was able to install a package with debins. It seems to have a lot more features than mine so I'm not sure it's worth continuing on at this point.
UbuWu
June 30th, 2005, 06:07 AM
I just tried out gdeb. It seems to be at about the same point as mine but I was never actually able to install a package with it. If i run it from the console I get an error like this:error:
command: x-terminal-emulator -e /bin/sh -c \"/usr/bin/dpkg -i bittorrent-4.0.2.linux_i686-2_all.deb && echo Installation done || echo Installation failed;echo Press enter to continue; read DISCARDED\"
user: root
Looks like it needs the xterminal package, although that is not listed as a dependency. Do you have that installed?
dolson
September 12th, 2005, 12:24 AM
Looks like it needs the xterminal package, although that is not listed as a dependency. Do you have that installed?
Digging up old threads, I know, sorry. But no sense starting a new one, right?
gdeb works a charm in Debian, but I just installed Ubuntu Breezy Preview, and gdeb does not work. I get the exact same thing as above. Yes, I have xterminal installed (even though x-terminal-emulator is not a part of the xterminal package, but is also installed on my system).
There's really no good reason that gdeb should be broken, and if I knew how to add bullets to Battle Pong, I'd fix gdeb myself. ;)
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.