有没有办法在使用服务器的实验室中将软件包从一台电脑安装到所有电脑? [英] Is there any way to install packages from one pc to all pc in a lab using server?

查看:266
本文介绍了有没有办法在使用服务器的实验室中将软件包从一台电脑安装到所有电脑?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个学期结束的b.tech项目。我的项目是通过使用LAN远程访问,从一个管理员PC到实验室中的每台PC安装像(vlc播放器或任何其他软件)这样的软件包。请指导我。



我尝试了什么:



我用php做过但我没有得到许可。

I am doing a b.tech project of end semester .My project is to install a packages like (vlc player or any other software) from one admin pc to every pc in a lab by remotely accessing using LAN.Please guide me.

What I have tried:

I have done with php but I am not getting permisson.

推荐答案

这是一个比C ++问题更多的* nix管理员问题。编写自己的代码来执行此操作可能会破坏LAN安全性。



假设所有PC都是Ubuntu(并且您合法拥有管理员级别权限):



编写一个bash脚本,使用SSH登录到PC并运行sudo apt-get install vlc。



通常,sudo必须提示输入密码才能升级权限,但有一个解决办法:



[求助] Sudo in shell script [ ^ ]



对于任意的,托管在您自己的服务器上的自定义二进制文件,您可以使用SFTP将其下载到客户端PC上。您仍然需要上面的SUDO解决方法来实际安装它(例如sudo make install)。
This is more a *nix administrator question than a C++ question. Writing your own code to do this will likely break LAN security.

Assuming all PCs are Ubuntu (and you legitimately have admin level privileges):

Write a bash script that uses SSH to log into a PC and runs "sudo apt-get install vlc".

Normally, sudo must prompt for a password to escalate privilege but there's a work-around for that:

[SOLVED] Sudo in shell script[^]

For an arbitrary, custom binary hosted on your own server, you can use SFTP to download it onto the client PC. You still need the SUDO work-around above to actually install it (eg. "sudo make install").


这篇关于有没有办法在使用服务器的实验室中将软件包从一台电脑安装到所有电脑?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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