Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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.
Posted
Updated 21-Apr-17 23:35pm
v2
Comments
Richard MacCutchan 14-Apr-17 4:47am    
Er, this is your project so you are expected to do the work. Or are you planning to give the diploma to the person who writes your code?

1 solution

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").
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900