Find Jobs
Hire Freelancers

Configure Ubuntu on AWS to shutdown after log off or inactivity. And other SSH BASH shell script.

$30-250 USD

Completed
Posted about 10 years ago

$30-250 USD

Paid on delivery
Configure Ubuntu on AWS to shutdown after logoff or inactivity. And other SSH BASH shell script. I want the following scripts: 1. Script on Client ############################################ If the user logs off, then shutdown computer. If user is logged in and idle for 30 minutes, then shutdown. ########################################### And another script running on client (either one of the following) 2. ########################################### Wait ten minutes has a user logged in? if not, then add my IP to /server/ [login to view URL] Repeat. --OR a different script running on server-- 3. Wait ten minutes get a list of IP’s from all running instances with tag of “client” ask each ip (SSH?): has a user logged in? if not, then add IP to l/xt Repeat ######################################## ######################################## I want 2 solutions. Number 1 needs a solution. Numbers 2 and 3 are solutions to the same problem. Select number 2 or number 3 to solve. Number 1 is required. A solution is a script and instructions on how to install and use it. Client has PAM configured and tested working with LDAP server. Users can login to any client machine with their credentials. Users login to GNOME with x2go remote client. Users will log off by clicking the top right menu on the desktop. Idle and inactive means that the user is not providing any input. By “users logs in” I mean into the desktop. I don’t know how 2 computers on the same network would talk to each other for simple scripts. I assumed SSH, but please suggest a better way if you know [login to view URL] help me enable permissions to allow this. Ubuntu 12.04 64 bit on AWS EC2 All ports are open to all traffic. Security is not important at this time. “krista” is almost always the password I have launched "blank" AWS EC2 instances for you to use as a sandbox if you wish. I have enabled password login. My AWS login credentials are available upon request. Download and install x2go client to test logging off the GNOME GUI if necessary. USER: ubuntu PASSWORD: password12345 SERVER: [login to view URL] CLIENT: [login to view URL] I used the following commands to setup the server and client as they exist now. [login to view URL] [login to view URL] ######### Disclaimer ####################### This project is for the documentation, not just the code. The purpose of this job is to help me learn Linux and AWS. I should be able to implement the solution myself using the documentation you provide. The solution could be a list of instructions and commands that I can copy and paste, or a script that has been thoroughly commented. A "Milestone" payment of 50% of the bid amount will be initiated upon receipt ohef t solutionhe documentation. A “Milestone” payment for the remaining 50% of the bid amount (plus tip) will be initiated after I successfully use the documentation to implement the solution myself. Please allow for more questions during this time and 48 hours. Please "sign" your code with an email address. All communications, payments, and file hosting will be done exclusively through this website (except pastebin). No skype, paypal, or third-party file-hosts. #########################################
Project ID: 5292483

About the project

9 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hello, I have been working as a Linux system administrator over 12 years and have extensive experiences with server setup/configuration/management system tasks. Kindly have a look at my previously completed projects in order to qualify my experiences for your requirements. Please check my solutions regarding to requirements. I have previously developed similar AWS based scripting tasks (using both bash scripting and AWS php-command line API). Basically i have developed code to automatically start/shutdown AMI instances when there is a specific amount of users connected to a web server. Regarding to your requirements: 1- When users are not logged with SSH, we can only find out whether a user is idle or not by enabling Screen Saver feature of gnome. Otherwise for example a user may be watching a long youtube video withtout any input. However if we can check whether screensaver is ON and working we can be %100 sure that user is IDLE. 2- Regarding to connecting client IPs, On server we can use instance DNS records and can connect to each client machine by using their instance name. Also we can embed Server's authorized keys into our custom AMIs (amazon instances) so that server-client ssh connections can happen without any user/admin interaction. I also guarantee to provide free support for 1 month after everything is setup in case you would want/find modification for scripts. A professional word formatted installation and troubleshooting document will be provided.
$250 USD in 3 days
5.0 (144 reviews)
6.7
6.7
9 freelancers are bidding on average $362 USD for this job
User Avatar
Hello, I have over 9 years experience as an Linux admin and strong experience with Amazon AWS services
$421 USD in 2 days
4.9 (221 reviews)
6.9
6.9
User Avatar
Dear Sir, I am Professional Software Developer, I am Linux Advanced Developer, I am Database Developer and designer. I can Handle your job and do everything extremely Grate. Regards,
$368 USD in 4 days
4.9 (53 reviews)
5.8
5.8
User Avatar
Non hai ancora fornito una proposta
$388 USD in 3 days
4.9 (29 reviews)
5.2
5.2
User Avatar
Hi, I'm Thai Nguyen from Vietnam. Currently, i am working for one of the most biggest outsource software companies in Vietnam as Senior System Administrator. I have 6+ years experience on Linux System Administrator. So i am confident to get this job done with best quality.
$450 USD in 5 days
5.0 (10 reviews)
5.1
5.1
User Avatar
Hi Morgan, I have already started putting the scripts together to achieve what you want to. These will be bash scripts with inotify watches to keep a track of the user login/logoff/idle activity. You can have a look at my reviews to gauge my reputation as a freelancer. I charge fair and have best bid so far. Please let me know if you would like to proceed with me for this project. One final thing, since you have made the passwords of the servers public in this post we will have to reset them before we begin work to rule out any sabotage. Thanks & have a nice day :) Tom
$111 USD in 2 days
5.0 (4 reviews)
3.5
3.5
User Avatar
well i have gone throughly through your your problem and now all you need is a set of BASH shellscripts running on your server and i can get your work done with full documentation provided to you :)
$150 USD in 3 days
5.0 (1 review)
1.0
1.0
User Avatar
Hi, I have 5 year experience about Linux. About your project 1. it simple, just check out the who command, excute it every minutes, get some needed information and check if we need to run shutdown command or not. 2. who command can show the information you need 3. the mysterious is here I will show you how you can ssh to other computer, run command in remote, get the information that you want. Pls, give me this project and I will show you everything you need. Tks
$222 USD in 3 days
5.0 (1 review)
0.7
0.7
User Avatar
A proposal has not yet been provided
$989 USD in 90 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I am an AWS Cloud Consultant providing consulting solutions to clients on AWS, dealing with almost every AWS service may it be S3,RDS,Cloudfront,Cloudsearch,SES,EBS etc. I have an extensive knowledge on Migration setups ( LAMP environments) as I have done more than 50 migrations during my experience of nearly 4 years I am pretty new to freelancing as I joined it recently just few days back but I assure you that I am really good at it just trust in me & you will see the results.
$355 USD in 4 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
PORTLAND, United States
5.0
8
Payment method verified
Member since Jan 16, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.