You are not logged in.
Pages: 1
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
Offline
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
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
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
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
Thanks for the comments
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
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 Thanks for the compliments tho
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
Offline
Offline
/me agrees with tehdely.
Offline
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
There's no security problem if it's a https site and proper authentication is done.
Offline
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
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
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
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
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 The URL is ofcourse the same:
http://archlinux.spider007.net/PHPacman/
A friend of mine has created a nice logo for PHPacman too:
Offline
That's fairly nice...
I'm proud to be a a freedomloving infidel piece of treehugging eurotrash.
Offline
*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.
Offline
nice project.
Offline
This looks really promising!
To err is human... to really foul up requires the root password.
Offline
Just thought I would say well done. Looks very very good.
Kind regards
Benedict White
Offline
This project is a good idea! thx!
Offline
Pages: 1