DIGIT-ARC read-only archive · snapshot: July 23, 2026

want to built autopatcher for linux

55 posts · originally from https://geek.digit.in/community/threads/want-to-built-autopatcher-for-linux.41126/

gary4gar
gary4gar Original post #1
Nov 13, 2006 at 4:06 PM
don't u think that linux is only for the people who have broadband connection with lots of GB's to spare??

so what the Users without internet?
so don't u think that there should be something like autopatcher which cointains latests updates,patches and soft need for java,flash, win32 codecs


what u say about this project?
is it viable?
praka123
Nov 13, 2006 at 4:40 PM
So @Gary Best of Lux as you are starting this great project.it surely helps ppl with no broadband connxn. :) Maybe Anurag Patil@gnurag can help u on this.
gary4gar
Nov 13, 2006 at 4:47 PM
do u think that i will be able to do this project??
like i don't have any experince in this field.
i wants u all to
check its if is worth?
there should'nt be a project of same kind running
what kind things do i require for the project?

can u pls guide me

as i am gonna include add non-free soft(flash,jave) as well so what the licencing issues


also i don't want to write the script for it from a start and plan to use exxixting scripts like BUMPS or automatix with little changes
mediator
Nov 13, 2006 at 8:22 PM
@Gary, making autopatcher is very simple for Linux! All u have to do is learn SHELL SCRIPTING! Make individual shellscripts for each package, Mark em in numbers and ask users of their choices of install and what packages they want to install and then execute corresponding shell scripts. As for setting up paths, the answer is again a SHELL SCRIPT. So u may learn SHELL SCRIPT and help noobies here. U may even post it on net and name it something like "Autopatcher by Gary" ;).

But mind that u have to download all dependencies for the corresponding softwares urself. Fedora will have different package types and Ubuntu will have different etc. So u may start with the one installed on ur system. Its not an easy task since u have to take a note of dependencies for each and every package! ANd those are not in 10s but 100s of them or may be more.

So u may start by creating an autopatcher with like 5-6 softwares first. Like Sun java, limewire, xmms-mp3 etc. I can help u if u face errors in shell script. But I'm too busy with mah Exams these days and can't do the good work for atleast 1 month or so.

So Best of Luck n keep up the good work! :)
JGuru
JGuru #5
Nov 14, 2006 at 1:11 PM
@Gary, Take the help of @Mediator, @GNUrag + others who know Shell scripting & other stuff.
Java SE is already released under GPLv2. So it's there are no licencing issues!!
For other softwares check their license policies.
M
Nov 14, 2006 at 7:43 PM
You will have to be very careful to include all dependancies and also to resolve the cases where there's round dependancy or conflicts.
__________
I guess reading up a little bit on LFS should help out in this.
gary4gar
Nov 15, 2006 at 2:19 PM
i am changing the idea a little,

how about a *swift starter* from digitians like autopatcher from neowinians
i say so because its very difficult for one person to take this project. when a community is envoled in it its becuase easy as a pie.

Do forum rules permit this @mehul?? or u have to talk to raboo to confirm

@mediator
thanx u showed the light in dark path that is now i actually know what is do be done.

thanx to prakash kerala & JGuru for licensing advice.
JGuru
JGuru #8
Nov 16, 2006 at 12:26 PM
@Gary, That's right. It's very hard for a single person to do a project in Linux unless
he/she knows things thoroughly!!
Better form a team of 4 or 5 persons. And get started.
M
Nov 19, 2006 at 3:03 PM
Well we can get a few things started. If a few people team up and are ready to join in we can form an unofficial group from digit.
But if you want digit's name to be officially associated we need to ask FatBeing or Raaabo.
Satissh S
Satissh S #10
Nov 19, 2006 at 8:30 PM
Whats with rpm/deb/tgz/ebuild configs?? It wud create more confusion than use. A better bet IMO is restricting to deb and rpm based distros.

Thats quite easy, we can write python scripts or if u want the same auto patcher like interface, we can create using pygtk or pyqt.

We just gotta take care of dependancies. And regarding the building of binaries we must decide to what support we have to build with.. like for building with --enable-* as most deps are rather based on features we add.

The tougher thing would be to maintaining it across several distros.

I'd suggest we use aggressive optimisations and also Intel C Compiler. (ICC for linux is free for personal use)
QwertyManiac
Nov 19, 2006 at 8:36 PM
I'd like to join in as well.
Why not just package most available DEBs/RPMs into a simple one click interface.
eddie
eddie #12
Nov 20, 2006 at 12:10 AM
Satissh S said:
I'd suggest we use aggressive optimisations and also Intel C Compiler. (ICC for linux is free for personal use)
Wow!!! I never thought about converting my Gentoo system to ICC.
Is it completely compatible with GCC? I mean when I googled, it says it is C++ compiler but what about the code that is written in C and not C++. Will it compile that code as well? If it can, then may be I should image my Gentoo partition and recompile it using ICC :p
JGuru
JGuru #13
Nov 20, 2006 at 12:24 AM
Welcome my friend @Satissh after a long hiatus.
@Eddie, I think the Intel C compiler is compatible with gcc.
eddie
eddie #14
Nov 20, 2006 at 12:56 AM
But what does this compatibility mean? If it means that it can compile the C++ code that can be compiled using gcc then ok...but what about the C code? Can anyone confirm whether it works then?
M
mehulved #15
Nov 20, 2006 at 2:45 AM
I guess rpm's for FC , Suse and Mandriva and deb's for ubuntu to start with should be good. Satissh and eddie can chip in with tgz for slackware and ebuilds for gentoo. And maybe i can lend a helping hand so that I can learn a bit.
To start with we should just cover 2-3 specific distros say FC6, Suse 10.2 and Ubuntu 6.06. As we get going, if we feel we're getting somewhere, we can extend further.
I would say, we should rather not attach it with digit forum. It should be an independant project so many outsiders may feel willing to join in and contribute.
desertwind
Nov 20, 2006 at 11:01 AM
It's a good idea in fact, but how do you manage the size if you're using a variety of precompiled binaries and it's dependencies ? Why not original source and all dependencies, so that can be used in multiple distros.
ray|raven
ray|raven #17
Nov 20, 2006 at 11:45 AM
Why not use AutoPackage
*autopackage.org/
I dont know much but its supposed to work on all Linux distro's.

Regards...
ray
JGuru
JGuru #18
Nov 20, 2006 at 11:56 AM
@Eddie, The Intel C++ Compiler supports both C & C++. Also there is icc/gcc
compatibility. Click here
paragkalra
Nov 20, 2006 at 12:12 PM
I am ready to work on the project....I know bit of shell scripting.........I am very good in Linux Networking.....I am a RedHat Certified Technitian....I know basics of Databases like Oracle and Mysql.......I also know just the basics of C, C++, Java, Perl, Python, bla bla bla (just how to compile & run simple programs on Linux) but don't worry I can even master them keeping time constraints in mind.....I am doing Engineering in Electronics from Nagpur, Maharashtra, India. I am a final year student. I have my exams from 27th Nov to 12th Dec. Them I am totally free for at least two months......Who so ever becomes the project leader, Just let me know how can i help.
subratabera
Nov 20, 2006 at 1:17 PM
You can use the EasyUbuntu source code found here to study the way they do it. I think that this can help you in many ways in designing such autopatcher specially for Debian based systems...
__________
rayraven said:
Why not use AutoPackage
*autopackage.org/
I dont know much but its supposed to work on all Linux distro's.

Regards...
ray

Great link...
M
mehulved #21
Nov 20, 2006 at 2:13 PM
desertwind said:
It's a good idea in fact, but how do you manage the size if you're using a variety of precompiled binaries and it's dependencies ? Why not original source and all dependencies, so that can be used in multiple distros.
Yeah I am more for just providing the official binaries along with dependancies, so offline installation can be done. But, we have to decide what to pack and how much to pack in a CD/DVD that we release. I mean there are so many and frequent updates every week, We can't just go and get them all. We have to see the most essential ones and pack them in the iso.
Do we include non-free software? Then, as discussed earlier, what about the licensing terms?
Then what is the method of distribution to be adopted?
As for making something like autopackage, it will be somewhat a bit of headache cos we will have to make sure of many things when messing around with the source, that's what I feel. But, if others want to do it, we can as well get along and start it.
We can meet at irc.freenode.net #freeme channel and talk about this.
mediator
mediator #22
Nov 20, 2006 at 4:29 PM
I don't think updates shud be included, but only the minimum essential part. Well, for non-free stuff that shouldn't be included either.

What I suggest is that we start with minimum stuff. If that becomes a success, then may be we can add more to it. We shudn't add packages that are dependent on kernel version. Lets start with simple such options!
1. W32codec pack,
2. Sun Java
3. xmms-mp3
4. Gstreamer plugins
5. xmame,gxmame
6. Xine+Plugins
7. Mplayer
8. Anjuta

This shud be enough for noobies and then we conduct a test all each of us on our own machines! I know many of us have Already completed our Linux distros with these things, so lets try it on VMWARE and if any of us changes his/her distro frequently then it will be boon for him and us as well. Well digit may be having more machines then all of us combined and does testing too. So we can hand it over to digit also. So wat say?? Like the idea??
Satissh S
Satissh S #23
Nov 21, 2006 at 1:38 PM
eddie said:
Wow!!! I never thought about converting my Gentoo system to ICC.
Is it completely compatible with GCC? I mean when I googled, it says it is C++ compiler but what about the code that is written in C and not C++. Will it compile that code as well? If it can, then may be I should image my Gentoo partition and recompile it using ICC :p
Hi :)
I saw in one of those pages at gentoo-wiki. Also i remember reading at lfs-hints. Yes i think its compatible with gcc. It just asks for a license key to install which we can get from intel when registered.

Have a look here,
*linuxfromscratch.org/pipermail/hints/2004-September/002672.html

Don't know why gentoo wiki is down at times, anyways have a look here, *gentoo-wiki.com/HOWTO_ICC_and_Portage .

regards.

@jguru: Just woke up from slumber ;-)
JGuru
JGuru #24
Nov 21, 2006 at 3:56 PM
@Satissh, Good to have you back here in the forum. Atleast visit here once in a week. *www.thinkdigit.com/forum/images/smilies/icon_smile.gif
So how are your own projects going on? I saw your website. Looks cool.

@Mediator, If you guys include MP3 plugin for XMMS, then what about licensing issues?
mediator
mediator #25
Nov 21, 2006 at 4:05 PM
@Jguru : I dunno much about licensing issues. May be u can help here!
gary4gar
gary4gar #26
Nov 25, 2006 at 10:36 PM
so till now the members interested to take the project are:-
anyone more interested to join or any developers want to quit please post here.
so guys lets rock!
1) Gary4gar
2) JGuru
3) Mediator
4) Paragkalra
5) QwertyManiac
7) Satissh S
8 ) tech_your_future

NOTE:list is in alphabetical order
eddie
eddie #27
Nov 26, 2006 at 12:04 AM
Satissh S said:
Hi :)
I saw in one of those pages at gentoo-wiki. Also i remember reading at lfs-hints. Yes i think its compatible with gcc. It just asks for a license key to install which we can get from intel when registered.
Thanks a lot man :)
gary4gar
gary4gar #28
Dec 22, 2006 at 2:09 PM
hi guys,
i got holidays so i am free and can take up the project,
i am working 2-3 hrs daily on this,to make things first a fall i will try and make system for Unbuntu with source packges. in the test built u will see aroung 4-5 option.

i think i will take the GUI interfaernce from easy ubuntu.as i am not that good in gtk
mediator
mediator #29
Dec 22, 2006 at 3:02 PM
Try with commandline scripts. It will be the simplest to initiate the project! Modularise the install procedures for each package and then just add them to the main script. If succesful, then u can replace the main script with GUI one!
JGuru
JGuru #30
Dec 22, 2006 at 5:54 PM
@Gary For building a GUI, use GLADE. It's a RAD tool like VB.
Checkout these links, see how easy it is build a GUI using GLADE!!!

1) *www.writelinux.com/glade/
2) *www.linuxjournal.com/article/6586
3) *wingtk.sourceforge.net/ishan/starting.html
4) *www.ibiblio.org/onebase/onebaselinux.com/About/features/developgo.php
gary4gar
gary4gar #31
Dec 23, 2006 at 10:59 AM
JGuru said:
@Gary For building a GUI, use GLADE. It's a RAD tool like VB.
Checkout these links, see how easy it is build a GUI using GLADE!!!

1) *www.writelinux.com/glade/
2) *www.linuxjournal.com/article/6586
3) *wingtk.sourceforge.net/ishan/starting.html
4) *www.ibiblio.org/onebase/onebaselinux.com/About/features/developgo.php
it seems like somebody have already started making the project for UBuntu. see this
Easyubuntu is of no use to people without broadband.i think now its no use to develop a version for ubuntu. so i started off first with fedora core 5 but the problem is that what to use pre packed binaries(rpms) or source tarballs??

thanx for the link @Jguru i almost forgot the terms RAD,IDE etc applies to linux too:p


@mediator
can u tell me a little in depth what exactly i have to do??
mediator
mediator #32
Dec 23, 2006 at 6:38 PM
Hmmm. @gary I'm assuming that now u know a little bit shell scripting. So...

I wud adivice to make individual scripts for each and every package. e.g u wanna make a script that installs gstreamer plugins. Then just make a shellscipt say gstreamer_install.sh for that. Debug it, implement exception handling so that installation can easily takeplace.

So now u have gstreamer_install.sh! Similarly make another shellscript for mplayer and xine and other apps. Name them mplayer_install.sh, xine_install.sh etc. Likewise make 5-6 shellscripts for individual packages that install corresponding packages when invoked individually!!

Now make a main shellscript! Implement "switch" in it coz if-then-else wud be difficult in such case.



OK, I developed the main script for u!!

men()
{
echo -e "\n*********************************"
echo "0. Main menu"
echo "1. mediator"
echo "2. gary "
echo "3. digit "
echo "4. subratabera "
echo "5. gnurag"
echo "6. Exit"
echo "*********************************"
echo ""
}
men
while [ 1 ]
do
echo ""
echo -n "Option : ";read option
echo ""
case $option in
0)men;;
1)
echo "U selected the legendary Mediator. The ultimate. Bless u!";;
2)
echo "U selected @gary who will be famous soon.";;
3)
echo "U selected @digit. The forum experiences no help from the admins which his very unusual!";;
4)
echo "U selected @subratabera. Nice guy....helps others!";;
5)
echo "U selected @gnurag who is a bond in linux field and very helpful guy!";;
6)echo "Adios!";exit;;
*) echo "Dont u know how to select valid option?";;
esac
done
Save it something like "main_script.sh" so its easier to recognise it !!
Here "men" (highlighted one) is a function that invokes menu again n again wheneva needed!

Now what all u need to do is, replace the "name" options in "men" (e.g mediator) with "package install" options like w32codec, gstreamer etc! And then replace the functionality of the corresponding option with appropriate install command like "sh gstreamer_install.sh" which inturn invokes the "gstreamer_install.sh" script and thereby installs gstreamer. After its execution the control will automatically return to the main script!

I hope this helps!! :)
subratabera
Dec 23, 2006 at 11:06 PM
echo "U selected @subratabera. Nice guy....helps others!";;
Thanks for that brother...:)

BTW, nice example...
subratabera
Dec 25, 2006 at 1:02 PM
Here is a suggestion -->

Here is the the list of some files which needs to be installed on a default Fedora Core 6 installation -->

Repository links
Fedora Core = *download.fedora.redhat.com/pub/fedora/linux/core/
Fedora Update = *download.fedora.redhat.com/pub/fedora/linux/core/updates/
Fedora Extras = *download.fedora.redhat.com/pub/fedora/linux/extras/
Livna Repo = *rpm.livna.org/fedora/
(from where you can download the following files)
Format: (package)(repository)(filesize)

yum -y install beryl-core beryl-manager beryl-plugins beryl-settings emerald emerald-themes
-------------------------------------------------------------------------------------------

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
beryl-core i386 0.1.3-2.fc6 extras 364 k
beryl-manager i386 0.1.3-1.fc6 extras 69 k
beryl-plugins i386 0.1.3-2.fc6 extras 2.6 M
beryl-settings i386 0.1.3-1.fc6 extras 123 k
emerald i386 0.1.3-2.fc6 extras 268 k
emerald-themes noarch 0.1.3-1.fc6 extras 1.3 M

Transaction Summary
=============================================================================
Install 6 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 4.7 M

yum install beryl-gnome
-----------------------

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
beryl-gnome i386 0.1.3-2.fc6 extras 3.3 k
Installing for dependencies:
beryl-dbus i386 0.1.3-1.fc6 extras 18 k
heliodor i386 0.1.3-1.fc6 extras 46 k

Transaction Summary
=============================================================================
Install 3 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 67 k


yum install beryl-kde
---------------------

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
beryl-kde i386 0.1.3-2.fc6 extras 3.3 k
Installing for dependencies:
aquamarine i386 0.1.3-1.fc6 extras 47 k

Transaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 51 k


yum install yumex
-----------------

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
yumex noarch 1.2.1-1.0.fc6 extras 427 k

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 427 k

yum install gDesklets
------------------

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
gdesklets i386 0.35.4-1.fc6 extras 767 k

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 767 k


========================


yum install vlc
---------------

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
vlc i386 0.8.5-6.lvn6 livna 5.0 M
Installing for dependencies:
SDL_image i386 1.2.5-4.fc6 extras 43 k
a52dec i386 0.7.4-10.lvn6 livna 49 k
aalib i386 1.4.0-0.11.rc5.fc6 extras 74 k
arts i386 8:1.5.5-0.1.fc6 updates 1.1 M
faac i386 1.25-2.lvn6 livna 82 k
faad2 i386 2.0-19.20050131.lvn6 livna 209 k
ffmpeg i386 0.4.9-0.25.20061030.lvn6 livna 1.7 M
fribidi i386 0.10.7-5.1 core 53 k
gsm i386 1.0.10-12.lvn6 livna 41 k
imlib2 i386 1.3.0-3.fc6 extras 576 k
lame-libs i386 3.97-3.lvn6 livna 331 k
libdvbpsi i386 0.1.5-2.lvn6 livna 39 k
libdvdnav i386 0.1.10-2.lvn6 livna 89 k
libdvdread i386 0.9.7-2.fc6 extras 66 k
libebml i386 0.7.7-2.fc6 extras 72 k
libid3tag i386 0.15.1b-3.fc6 extras 44 k
libmad i386 0.15.1b-4.lvn6 livna 82 k
libmatroska i386 0.8.0-4.fc6 extras 199 k
libmodplug i386 1:0.8-3.fc6 extras 118 k
libmp4v2 i386 1.5.0.1-2.lvn6 livna 264 k
libmpcdec i386 1.2.2-4.fc6 extras 30 k
libtar i386 1.2.11-8.fc6 extras 29 k
lirc i386 0.8.1-0.2.pre2.fc6 extras 238 k
mpeg2dec i386 0.4.1-2.lvn6 livna 101 k
wxGTK i386 2.6.3-2.6.3.2.3.fc6 extras 3.5 M
x264 i386 0-0.8.20061028.lvn6 livna 241 k
xosd i386 2.2.14-8.fc6 extras 47 k
xvidcore i386 1.1.2-1.lvn6 livna 243 k

Transaction Summary
=============================================================================
Install 29 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 15 M

================================

yum -y install ntfs-3g
----------------------

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
ntfs-3g i386 1:0-0.5.20070920.fc6 extras 142 k
Installing for dependencies:
fuse i386 2.6.0-2.fc6 extras 75 k
fuse-libs i386 2.6.0-2.fc6 extras 56 k

Transaction Summary
=============================================================================
Install 3 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 274 k

========================

yum install xmms xmms-mp3 xmms-faad2 gstreamer-plugins-ugly libmad libid3tag
----------------------------------------------------------------------------

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
gstreamer-plugins-ugly i386 0.10.4-3.lvn6 livna 225 k
libid3tag i386 0.15.1b-3.fc6 extras 44 k
libmad i386 0.15.1b-4.lvn6 livna 82 k
xmms i386 1:1.2.10-29.fc6 extras 1.6 M
xmms-faad2 i386 2.0-19.20050131.lvn6 livna 34 k
xmms-mp3 i386 1.2.10-5.lvn6 livna 88 k
Installing for dependencies:
a52dec i386 0.7.4-10.lvn6 livna 49 k
faad2 i386 2.0-19.20050131.lvn6 livna 209 k
glib i386 1:1.2.10-23.fc6 extras 138 k
gtk+ i386 1:1.2.10-55.fc6 extras 922 k
lame-libs i386 3.97-3.lvn6 livna 331 k
libdvdread i386 0.9.7-2.fc6 extras 66 k
libsidplay i386 1.36.57-11.fc6 extras 84 k
mikmod i386 3.1.6-39.fc6 updates 201 k
mpeg2dec i386 0.4.1-2.lvn6 livna 101 k
xmms-libs i386 1:1.2.10-29.fc6 extras 241 k

Transaction Summary
=============================================================================
Install 16 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 4.4 M

You can just download them in different folders and use shell scripts (as provided by mediator) to install them accordingly. Just use rpm -Uvh /respective-directory/*.rpm, and rpm will handle the rest. I think this will be easy...(I also follow this procedure to install and update my system).

Please comment...
gary4gar
gary4gar #35
Dec 25, 2006 at 5:31 PM
i am now developing the user interface(gui) for the application. i have also decisided its name:

Peacock Offline Package Installer(Popi)
& a peacock will be its logo.

tell me how's it???


@meditor
i know little shell by now
o.k i can make shell scripts but i want a gui interface so its easy for n00bs to understand whats happening. so can shell scpits integrated with gtk????
so we need to write code in c,c++,perl

which language to go??

what do u say???
mediator
mediator #36
Dec 25, 2006 at 5:57 PM
@gary....its been really long since I tried the UI part of shells. I have almost forgot it now.
Neways this is how u implement the simple UI => *www.freeos.com/guides/lsst/ch04sec7.html

And IMHO, u dont need either of the languages u mentioned to implement the project. ShellScript is the most powerful,singular and a complete answer! :)
gary4gar
gary4gar #37
Dec 25, 2006 at 6:14 PM
ok if say that u can integrate gui with shell then i trust u.

anyways how it the name???
praka123
praka123 #38
Dec 25, 2006 at 6:23 PM
@gary:the name for ur project is gr8.btw a shell script is good enough na,gui means...is that easy..+chances of bugs?
gary4gar
gary4gar #39
Dec 25, 2006 at 6:25 PM
hey just created a site where we all can develop our project
so pls any wiling to join should come up here
*popi.bountysource.com
M
mehulved #40
Dec 25, 2006 at 7:55 PM
It's taking too long to open here. Is it possible to host on maybe sourceforge.net?
subratabera
Dec 26, 2006 at 11:19 AM
Here is something interesting for your project -->

*jan.netcomp.monash.edu.au/xscript/shellprogramming2.html

It says -->
Scripting and command languages are important programming paradigms that many computing students need to learn. However, they are usually presented in a terminal-based environment, which is foreign to students used to a windows GUI environment. This paper discusses "scriptlets" - small windows applications that are designed to be used in shell scripts. It shows how these can be used to teach shell programming constructs, while giving a GUI flavour to the lessons. Student reaction is also discussed.
gary4gar
gary4gar #42
Dec 27, 2006 at 1:06 PM
tech_your_future said:
It's taking too long to open here. Is it possible to host on maybe sourceforge.net?
sourceforge.net or googlecode.com??

which is better
__________
subratabera said:
Here is something interesting for your project -->

*jan.netcomp.monash.edu.au/xscript/shellprogramming2.html

It says -->
thanx for this.
but i want to use gtk. can u find some tut's on passing commands from gtk to the shell??
M
mehulved #43
Dec 27, 2006 at 1:10 PM
I haven't seen googlecode as such. Just been through it breifly.
But, sourceforge is the best AFAIK. Maybe someone else has more idea. I have personally never seen any problems with sourceforge.
gary4gar
gary4gar #44
Dec 27, 2006 at 1:54 PM
which type of License to select for the Popi??
GPL??
gary4gar
gary4gar #45
Dec 29, 2006 at 1:14 PM
this is the project page
*code.google.com/p/popi/


All those intereated in joining the project do pm me your gmail id so that i can send u a invite

also this is the project discussion group
Here are the essentials:

* Group name: popi development discussion
* Group home page: *groups.google.co.in/group/popi-devel?hl=en
* Group email address popi-devel@googlegroups.com
subratabera
Jan 1, 2007 at 4:06 PM
Here is something that can be useful for your project...

Copy the following code in a ".sh" file and make that file executable.

#project POPI (test) by Subrata Bera
#01-01-2007

#First make a temp file
STDOUT=`mktemp`

#Check user
WHOAMI=`/usr/bin/whoami`

#Uncomment if root access required
#if [ "$WHOAMI" != "root" ] ; then
# echo "You must be the root user to run POPI."
# exit 1
#fi

#Function for checking installed softwares
rpmCheck() {
rpm -q $1 > /dev/null 2>&1
}

#THE REAL CODE
#zenity is a program that will display GTK+ dialogs, and
#return (either in the return code, or on standard output)
#the users input.

zenity --title "POPI" \
--width=600 \
--height=418 \
--list \
--checklist \
--multiple \
--column " " \
--column "Item" \
--column "Description" \
FALSE "Get user name" "Prints the user name in the terminal..." \
FALSE "List files" "Lists files in the current directory..." \
FALSE "Check for Amarok" "Check whether Amarok is installed or not..." \
FALSE "Say Hello" "Displays a dialog box saying Hello..." \
> $STDOUT

#'/usr/bin/gnome-terminal'

if grep "Get user name" $STDOUT >/dev/null ; then
zenity --info --title "User Name" --text $WHOAMI
fi

if grep "List files" $STDOUT >/dev/null ; then
ls -l | zenity --list --title "File list" --text "List of all files in the current directory.." --column "Files"
fi

if grep "Check for Amarok" $STDOUT > /dev/null ; then
if rpmCheck amarok ; then
zenity --info --title "Amarok" --text "Amarok installed"
else
zenity --info --title "Amarok" --text "Amarok is not installed"
fi
fi

if grep "Say Hello" $STDOUT >/dev/null ; then
zenity --info --title "Hello" --text "Hello $WHOAMI"
fi

This will give you a graphical window that a user can interact without knowing anything about the shell script...

Hope this helps...
Waiting for comments...
mediator
mediator #47
Jan 1, 2007 at 4:54 PM
Excellent!! Thats perfect for GUI installation. Nice work @subratabera

@gary all u need to do now is make install scripts for individual packages!!
subratabera
Jan 1, 2007 at 6:04 PM
Thanks @mediator. I think this is the easiest way to present a GUI with shell interaction...And AFAIK it works on any latest distro...
gary4gar
gary4gar #49
Jan 3, 2007 at 6:05 PM
great work on your part subratabera!
meanwhile i have prepared a GUI user interface using gtk+
school will upload it here


then with a vote of all members we can use between zenity or GTK+
subratabera
Jan 3, 2007 at 7:16 PM
Thanks gary...
M
mehulved #51
Jan 3, 2007 at 10:08 PM
Will GTK work with those who have installed only KDE?
And zenity too?
subratabera
Jan 3, 2007 at 10:26 PM
tech_your_future said:
Will GTK work with those who have installed only KDE?
And zenity too?

Here is a possible answer...

Create GUI dialogs for GNOME and KDE

GNOME --> zenity, GTK+
KDE --> kdialog

Both have almost same functionality. We first have to check the installed DE and then run the script accordingly...
gary4gar
gary4gar #53
Jan 4, 2007 at 10:43 AM
see the problem with zenity is it just dialog box but we need more than that as in future we can have seacurity updates, tweaks & many other things which will need to be categaoriesed.
gary4gar
gary4gar #54
Jan 7, 2007 at 7:37 PM
added a wiki page on *code.google.com/p/popi/

do check it out
subratabera
Feb 19, 2007 at 2:22 PM
Here is something really interesting for you...