在ubuntu中,如何在lan连接的机器上远程安装软件包? [英] In ubuntu, how do I install packages remotely in lan connected machine?

查看:77
本文介绍了在ubuntu中,如何在lan连接的机器上远程安装软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从一台计算机(管理员)在同一网络(局域网)中安装许多计算机中的软件包,操作系统是ubuntu。如何在PHP中继续它?请给我php代码?< br $> b $ b

我尝试过的事情:



我正在尝试制作一个项目在上面的主题

I am trying to install package in many computer from one computer(admin) which is in the same network(LAN) and the operating system is ubuntu.How can I proceed it in php?please give me the php code?

What I have tried:

I am try to make a project on the above topic

推荐答案

这不能简单地使用PHP脚本完成。



你必须首先通过在每个客户端上安装approriate软件来访问客户端。这可以使用某种软件部署或远程管理工具来完成(只需在网上搜索这些关键字)。



最简单的解决方案是安装并启动SSH所有客户端上的服务器然后,您可以打开SSH会话来执行命令(可以使用PHP脚本进行修复)。但这要求您必须知道所有客户端的root密码。请参阅此StackExchange线程,了解如何执行此操作:软件安装 - 如何部署多台机器上的程序 - Unix& Linux Stack Exchange [ ^ ]

出于安全原因,最好在禁用终端登录但允许安装软件的机器上创建特殊用户。
This can't be simply done using a PHP script.

You have to get access to the clients first by installing approriate software on each client. This can be done using some kind of software deployment or remote management tools (just search the web for these keywords).

The simplest solution is to install and start a SSH server on all clients. Then you can open a SSH session to execute commands (which can be impemented using a PHP script). But this requires that you have to know the root password for all clients. See this StackExchange thread on how to do this: software installation - How to deploy programs on multiple machines - Unix & Linux Stack Exchange[^]
For security reasons it would be better to create a special user on the machines with disabled terminal login but allowed allowed to install software.

这篇关于在ubuntu中,如何在lan连接的机器上远程安装软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆