You are not logged in.

#1 2004-08-29 21:20:53

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

[PHPacman] Nice idea?

I've just spend a few hours programming a PHP interface for pacman. It currently consists of a 'pacman' object which has generic wrapper functions around the system-pacman:

class pacman{
    var $pacmanExecutable;
    function pacman(){
    function getVersionBanner(){
    function getInstalledPackages(){
    function getInstalledPackageInfo($packagename){
    function getInstalledPackageFiles($packageName){
    function findInstalledPackagesByName($searchString){
    function findInstalledPackageByFile($searchString){
    function queryProgram(){
}

The program implements a logging-class which enables me to trace program execution, plus I am working on a custom error handler. Subgoals include maintaining valid W3C xHTML-strict and CSS. If anyone thinks this is interesting; I will continue development and work on the interface and stuff. I am thinking about implementing sync capabilities as well; but that will probably take some time.

To see a very basic debug version with a lousy userinterface: http://archlinux.spider007.net/PHPacman/

Please tell me what you think about this smile

Offline

#2 2004-08-29 23:15:03

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: [PHPacman] Nice idea?

Very nice.

But not very useful I think. People for which that info is actually useful (e.g. people that can run those programs) should also have ssh access, and then such web front-end doesn't add much. It's probably slightly more useful in a bigger system configuration web front-end, and when you can (de-)install packages. But still, it's hard to beat ssh.

If it's useful for you then it's most likely also useful for others and it's worth finishing it.

Offline

#3 2004-08-30 01:33:22

afu
Member
From: Tuscalooser, Alabummer
Registered: 2004-02-19
Posts: 155

Re: [PHPacman] Nice idea?

What would be really sweet is that a person could use your PHP interface to control Pacman for multiple computers. In otherwords, like RedHat network, you could log in to your PHP site and manage multiple computers running Arch.

Take it to that level and you will have a winner.
-Shawn

Offline

#4 2004-08-30 02:12:29

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: [PHPacman] Nice idea?

i also played with php being a wrapper for pacman - but not to be usefull, but as a joke --- you invested time and it can be something usefull! xerces will be happy seeing your project :-)


The impossible missions are the only ones which succeed.

Offline

#5 2004-08-30 04:31:47

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: [PHPacman] Nice idea?

afu wrote:

What would be really sweet is that a person could use your PHP interface to control Pacman for multiple computers.
Take it to that level and you will have a winner.

Earlier I was also thinking using PHP for making different tools but its more for Internet than local development. Example installing a local printer with cups interface (web) is odd. What afu said, take it to that Internet / LAN level, is something to go for.

As an idea / first version its good.

I have listed your project in Wiki:
http://wiki.archlinux.org/index.php/Use … utionsPage


Markku

Offline

#6 2004-08-30 08:52:41

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [PHPacman] Nice idea?

Thanks for the comments smile

I hope the system will become 'more useful' once it has remote update capabilities. I think that the web front-end will be (more) useful if it allows you to update your system's package over the web. This does introduce some security problems however.

The idea of multiple systems is also very exciting. I think it is something which I should be able to implement pretty quick because of the object-oriented way this is setup. I will think about implementing this smile

dp wrote:

i also played with php being a wrapper for pacman - but not to be usefull, but as a joke --- you invested time and it can be something usefull! xerces will be happy seeing your project :-)

As for the layout; I will start working on a even more userfriendly interface soon, and I will see if I can create a nice logo for PHPacman too smile Thanks for the compliments tho smile

rasat wrote:
afu wrote:

What would be really sweet is that a person could use your PHP interface to control Pacman for multiple computers.
Take it to that level and you will have a winner.

Earlier I was also thinking using PHP for making different tools but its more for Internet than local development. Example installing a local printer with cups interface (web) is odd. What afu said, take it to that Internet / LAN level, is something to go for.

As an idea / first version its good.

I have listed your project in Wiki:
http://wiki.archlinux.org/index.php/Use … utionsPage

I agree that PHPacman as a central interface for managing your Arch-Systems/pacman-packages would probably be the best way to go.

I will continue programming and I will update this thread when new features get implemented smile

Offline

#7 2004-08-31 00:04:27

tehdely
Member
Registered: 2004-02-20
Posts: 148
Website

Re: [PHPacman] Nice idea?

The idea of a PHP interface to a system's package manager gives me the shakes.

No, not the cool kind.


[Arch GNUstep Repository] [ PKGBUILDS ]
[code][gnustep]
Server = ftp://blkwidow.lerp.com/pub/mirror/arch/gnustep[/code]

Offline

#8 2004-08-31 06:31:32

dpb
Member
From: Cyperspace?
Registered: 2004-04-11
Posts: 231

Re: [PHPacman] Nice idea?

/me agrees with tehdely.

Offline

#9 2004-08-31 15:41:11

LavaPunk
Member
Registered: 2004-03-05
Posts: 129

Re: [PHPacman] Nice idea?

I find this to be an interesting idea and unless this can be used to update many systems at once via the web I don't find it very useful (not yet).
But the security issues kind of scare me away...

Offline

#10 2004-08-31 16:14:29

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: [PHPacman] Nice idea?

There's no security problem if it's a https site and proper authentication is done.

Offline

#11 2004-09-01 12:12:12

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [PHPacman] Nice idea?

tehdely wrote:

The idea of a PHP interface to a system's package manager gives me the shakes.

No, not the cool kind.

Because it is web-based; or because it is PHP?

Offline

#12 2004-09-01 13:17:29

netkrash
Member
From: Viña del Mar, Chile.
Registered: 2003-03-19
Posts: 95

Re: [PHPacman] Nice idea?

i agree that a webinterface is not very useful with one system, because of ssh.. but think about 40 systems where you have to run an update.. next year i'll have to do that.. i've over 40 systems installed with archlinux 0.6 they are running as video servers.. sometimes we need updates, it would be very very nice to handle that with one single interface..

I'm a skilled php programmer, i think a can help you to develop this.. of course if you want to.


GNU/Linux: Share & Enjoy!

Offline

#13 2004-09-01 16:41:09

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: [PHPacman] Nice idea?

Pardon me, but if you have 40 systems then you should use machines with a central root system (almost diskless system), e.g. over nfs. That way all the configuration and intstallation just have to be done on one computer.

Still you can use ssh with some scripts to execute commands on all systems instead of one.

E.g. some script like:

runall.sh

#!/bin/sh
cmd=$*

$cmd &
exec ssh -f $nexthost '$cmd'

Where "nexthost" is different on each server, or can be calculated by incrementing its own IP (10.0.0.1 -> 10.0.0.2), or some other, more fancy way.

The point is that fixing your problem is independent of what interface you use, be it php, ssh or something else.

Offline

#14 2004-09-01 18:54:07

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: [PHPacman] Nice idea?

for remote admining, you can also use clusterit
http://www.archlinux.org/packages.php?id=3369
but this is only a minor subject

phpacman is for sure a nice thingy :-)


The impossible missions are the only ones which succeed.

Offline

#15 2004-09-08 07:16:02

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [PHPacman] Nice idea?

I've upgraded the production version. Please have a look and comment on the interface and usability. I will start on the connection to a remote system now; so this functionality will appear soon too smile The URL is ofcourse the same:

http://archlinux.spider007.net/PHPacman/

A friend of mine has created a nice logo for PHPacman too:

pacman.png

Offline

#16 2004-09-08 09:41:24

Lovechild
Member
From: Århus, Denmark
Registered: 2003-09-24
Posts: 64

Re: [PHPacman] Nice idea?

That's fairly nice...


I'm proud to be a a freedomloving infidel piece of treehugging eurotrash.

Offline

#17 2005-01-25 14:41:42

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [PHPacman] Nice idea?

*kicks

I have figured out a fairly nice and secure way of connecting to a remote machine. I restarted programming on PHPacman; I hope to be able to post an update soon. smile

Offline

#18 2005-01-25 19:10:11

soniX
Member
From: Oslo, Norway
Registered: 2004-01-23
Posts: 161

Re: [PHPacman] Nice idea?

nice project.

Offline

#19 2005-02-04 20:20:08

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: [PHPacman] Nice idea?

This looks really promising! big_smile


To err is human... to really foul up requires the root password.

Offline

#20 2005-02-05 11:50:05

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 331
Website

Re: [PHPacman] Nice idea?

Just thought I would say well done. Looks very very good.


Kind regards

Benedict White

Offline

#21 2005-02-05 22:34:32

audaly
Member
From: France
Registered: 2004-12-13
Posts: 60

Re: [PHPacman] Nice idea?

This project is a good idea! thx!

Offline

Board footer

Powered by FluxBB