Questions tagged [automation]

the field of converting any manual process into one that can be run mostly, or entirely, "hands-free"

Filter by
Sorted by
Tagged with
20 votes
7 answers
38k views

Cygwin SSHd Autoblock Failed Logins

I'm running Cygwin with an SSH deamon on a Windows Server 2008 machine. I was looking at the Event Viewer and noticed as much as 5 to 6 failed login attempts per second (brute force) for the last week ...
ANaimi's user avatar
  • 309
749 votes
8 answers
2.4m views

How to automate SSH login with password?

How to automate SSH login with password? I'm configuring my test VM, so heavy security is not considered. SSH chosen for acceptable security with minimal configuration. ex) echo password | ssh id@...
Eonil's user avatar
  • 10.6k
32 votes
6 answers
8k views

Automatically Configure New Computers

My company is in the process of upgrading all of our users from old Windows XP computers to newer quad-core Win7 computers. This is a good thing - it's long overdue that we upgrade our workstations - ...
jwegner's user avatar
  • 493
33 votes
4 answers
62k views

How do I run my PowerShell scripts in parallel without using Jobs?

If I have a script that I need to run against multiple computers, or with multiple different arguments, how can I execute it in parallel, without having to incur the overhead of spawning a new PSJob ...
Mathias R. Jessen's user avatar
84 votes
4 answers
46k views

Automate the installation of postfix on Ubuntu

My system configuration script does an apt-get install -y postfix. Unfortunately the script is halted when the postfix installer displays a configuration screen. Is there a method to force postfix to ...
sutch's user avatar
  • 1,026
8 votes
5 answers
4k views

How to automate slipstream?

Since years I use slipstreamed Windows installations. This works very well, but preparing them is tedious : 1 - install a Windows with the last slipstreamed version we have (automated install) 2 - ...
Gregory MOUSSAT's user avatar
5 votes
2 answers
6k views

Ubuntu Kickstart installation using LVM waits for input

I have a PXE Boot Setup for installing CentOS 5 and Ubuntu 10.04 via Kickstart. I use LVM and installing CentOS without any user interaction works but Ubuntu always asks to "confirm to write changes ...
Sascha's user avatar
  • 341
4 votes
8 answers
4k views

debian mysql auto daily backuping

I need to backup my Mysql database daily under a Debian server. I know there are plenty of scripts out there but my need is backing up daily as a sql file and putting each backup seperately(maybe the ...
user avatar
3 votes
4 answers
1k views

How do you handle updates on a server?

I have around 25 virtual machines running on Xen. I don't really feel like going through 25 VMs and running apt-get update && apt-get upgrade. I would much rather have it do that for me and in ...
Thomaschaaf's user avatar
  • 3,102
2 votes
2 answers
18k views

Automated extraction of email attachment on Exchange Server

An Exchange email account was created through which I will receive daily emails with three different Excel attachments. Each Excel attachment has to be saved in one of three different folders. Can ...
lamcro's user avatar
  • 229
2 votes
1 answer
2k views

Persistent Network Configuration using KVM and libvirt

Our environment will have a KVM host setup dynamically using kickstart (easy enough). The hard part is dealing with network configuration and keeping VLAN configuration (and possibly bridge/host ...
cheesesticksricepuck's user avatar
38 votes
7 answers
53k views

Ssh, run a command on login, and then Stay Logged In?

I tried this with expect, but it didn't work: it closed the connection at the end. Can we run a script via ssh which will log into remote machines, run a command, and not disconnect? So ssh in a ...
jonathan's user avatar
  • 381
27 votes
7 answers
5k views

Automating server deployment

I find i am constantly settings up pretty much nearly identical servers and VPSs for a number of my clients and it can be very time consuming. Often the only thing that changes between each deployment ...
Josh Hunt's user avatar
  • 570
22 votes
6 answers
43k views

Alter charset and collation in all columns in all tables in MySQL

I need to execute these statements in all tables for all columns. alter table table_name charset=utf8; alter table table_name alter column column_name charset=utf8; Is it possible to automate this ...
The Disintegrator's user avatar
19 votes
6 answers
97k views

Adding a user to the local Administrator group using powershell

I would like to use PowerShell to add a specific user to the local administrator group on a machine. I would be running the PowerShell script in the context of a user that has Administration rights ...
Rihan Meij's user avatar
18 votes
9 answers
44k views

How to set ulimits for a service starting at boot?

I need, for mysql to use large-pages, to set a ulimit - I've done this in limits.conf. However, limits.conf (pam_limits.so), doesn't get read in for init, only for "real" shells. I solved this before ...
jayofdoom's user avatar
  • 191
12 votes
2 answers
11k views

Limit SSH key to SCP only

Problem: I don't have root access to the server (i.e, I can't/don't want to change any system-wide server configuration), and I want to use scp with an alternative Identity File (e.g, .ssh/...
Michael Richard's user avatar
8 votes
4 answers
17k views

How to do mysql_secure_installation via ansible playbook?

I managed to install Apache Mysql/Mariadb and PHP using playbook. How can I do mysql_secure_installation using ansible? I am a beginner in Ansible. I want to set a new password to MySQL server and ...
Prince Joseph's user avatar
7 votes
2 answers
2k views

How to change assigned letter for Ephemeral drives automatically?

I have an AWS Windows box (Windows 2008 R2) with the following disks: C:\ 60 Gb (EBS) D:\ 200 Gb (EBS) Y:\ 40 Gb (Ephemeral SSD) Z:\ 40 Gb (Ephemeral SSD) Every time it boots I change ephemeral ...
Oscar Foley's user avatar
6 votes
2 answers
3k views

How To Shutdown Ubuntu Automatically X Minutes After Starting Up?

How would one automatically shutdown an ubuntu OS 30 minutes after it was turned on? Or 15 minutes after it was turned on? Etc? I tried creating an init.d script like so: shutdown -h +5 But my box ...
darkAsPitch's user avatar
  • 1,941
6 votes
5 answers
390 views

How do you optimize new user setup?

What's your top trick for getting a new employee set up quickly? Do you use images, scripts, something else?
5 votes
3 answers
5k views

Unattended installations of Mac OS X

Is there a way to setup a networked automated OS deployment for Mac OS X? Admins wanting to deploy RedHat can deploy over the network using Kickstart (with the install media on a shared network ...
5 votes
1 answer
2k views

What do the 3 numbers mean in manual partitioning of HDD in Ubuntu preseed?

I see in official documentation this: #d-i partman-auto/expert_recipe string \ # boot-root :: \ # 40 50 100 ext3 ...
Piduna's user avatar
  • 571
5 votes
2 answers
3k views

Keeping user's filesystem persistent across AWS EC2 spot instances

I noticed that, after a new Amazon AWS EC2 spot instance is auto-launched (I have that option turned on), the state of filesystem is not current (represent the last state before previous spot instance ...
Aleksandr Blekh's user avatar
5 votes
8 answers
5k views

Debian preseed.cfg - Language not set

I'm trying to write a preseed.cfg which should be used for a full automated installation of Debian wheezy. For some reasons the installer is still asking to select a lanugage even if I set this in my ...
Denny Crane's user avatar
  • 1,643
3 votes
1 answer
8k views

Consistent Install Disk Selection in RHEL Kickstart

In my kickstart installation I specify that the operating system should be installed on /dev/sda. We have some Dell machines in our environment with iDRAC. When virtual media is attached in iDRAC, it ...
cheesesticksricepuck's user avatar
2 votes
1 answer
2k views

Script to do Windows Update on windows server 2003

Is there any batch script or command line command that can do Windows Update automatically on multiple remote servers (maybe via psexec)? Not prefer using a VB script, but if there's one available, ...
Stan's user avatar
  • 1,397
2 votes
1 answer
3k views

Disable Network connection in Windows PE

I am generating a WindowsPE boot stick with the Microsoft Automation Installation Kit 10 (host is Windows 10) for a amd64 target platform. Because i dont need network connections from within the ...
BNT's user avatar
  • 131
1 vote
6 answers
13k views

Azure : Script to start or shut down multiple VMs

Is it possible to write and save some kind of script that launches azure powershell, then authenticate azure subscription then start/shutdown multiple VMs in one step? I have 5 VMs that I use ...
Sisyphus's user avatar
  • 133
1 vote
3 answers
2k views

Bot? check if a domain name is availible?

I am trying to get a 3 letter domain with .net or .org and it seems like EVERY combination is taken. Is there a way i can get a list of domains available? perhaps with a bot? (i'll write it if i need ...
user avatar
1 vote
2 answers
8k views

Root crontab not executing script

I have a script listed in my roots crontab 07 9 * * * /opt/HLRSDATA_2010_OCT/HLRS_Scheduler_sp.sh > /opt/HLRSDATA_2010_OCT/logs/HLRTKJob.log This script contains the following #!/bin/bash echo ...
Rhyuk's user avatar
  • 404
-1 votes
1 answer
364 views

How to install WordPress without using the /wp-admin/install.php script?

I am trying to create a system that will install WordPress without any browser interaction like- I will create a database I will upload/create WordPress required database tables manually (I have ...
Mmd Mahbub's user avatar
-2 votes
1 answer
71 views

How to change IP address of azure NIC, as soon as azure load-balancer's health probe detect instance unhealthy?

I have two machines in backendpool of azure LB, I would like to update network interface usign rest api as soon as health probe detects vm is unhealthy. is there any way to to recoginse that event ...
yogesh deshpande's user avatar