4
votes
1answer
73 views

sniff mobile traffic data

I'm now preparing an automation testing lab for our mobile department consisting of mainly android devices. For first phase i need HTTP device sniffing, i can't do it on the device as they are not ...
-4
votes
3answers
108 views

How can I package up a Linux installation into an .iso so I can install elsewhere? [closed]

I want to be able to install a base server (CentOS) and configure with some custom apps, then package that into an image file. I'll then use that image file to install duplicate servers. How can I do ...
2
votes
1answer
134 views

How to manage Linux servers and tasks?

As a developer who is managing more and more Linux servers for my various projects and tasks, I'm starting to seriously think about how to manage these servers efficiently. I have come up with such a ...
27
votes
5answers
1k views

How can a Linux Administrator improve their shell scripting and automation skills?

In my organization, I work with a group of NOC staff, budding junior engineers and a handful of senior engineers; all with a focus on Linux. One interesting step in the way the company grows talent is ...
0
votes
1answer
112 views

Automating Unbreakable Linux Network (ULN) registration

To register a RHEL 6.4 machine to the Unbreakable Linux Network (ULN), it is required to launch the uln_register command. This command opens a textual interface, where the user has to input the ULN ...
2
votes
2answers
200 views

Add time stamp to script log entries

Currently I have my bash script using exec 22>&2 21>&1 1>$log 2>&1 to write stderr and stdout to a log file. I would like to add a time stamp for each entry, but I haven't ...
1
vote
1answer
29 views

Automaticaly commit when updating pacemaker configuration

I'm trying to automate the administration of my servers which are running corosync/pacemaker. For that I generate a file containing the modifs that needs to be applied to the configuration. To apply ...
0
votes
0answers
97 views

Suggestions for passing script status back to master controller service

I want to automate our update and upgrade process. What I would like to achieve is a controlling server executes a script of some description on the remote server, it knows the status of the remote ...
1
vote
2answers
159 views

Automated Linux VMs on Hyper-V 2012

I have a requirement to create a ton of linux VMs for our customers (we run managed infrastructure) on Hyper-V 2012 in the coming months and I have an issue with automating it. Here is how I need it ...
1
vote
1answer
69 views

Run scripts remotely and securely

I'm looking for a way that normal users can do remote changes on a linux box through a web interface. Say for example update the dns settings for their domain. The script needs to run under root. I ...
3
votes
2answers
564 views

Tool to collect and read all linux logs in one place [duplicate]

I have two linux servers. I'm an administrator, and part of my daily routine is to check all the logs for errors or strange messages. So, every morning I check: On server #1: /var/log/syslog ...
4
votes
6answers
239 views

Monitor servers for changes made outside of automation software

The company I work for is currently investigating the deployment of an centralized automation system (like Salt or Puppet) for our servers (all Ubuntu/FreeBSD). We will probably go along with Salt, ...
0
votes
1answer
80 views

ssh remote execution always exits 127

quick question: I have a program that is spawning a process which executes a basic remote command over SSH such as: ssh aiden@host /bin/ps Running this manually from my shell is successful (as you ...
0
votes
2answers
388 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 ...
14
votes
8answers
5k views

Method to integrate Powershell scripts with non-Windows workflow?

I love the smell of new machines in the morning. I'm automating a machine creation workflow that involves several separate systems across my infrastructure, some of which involve 15 year old perl ...
2
votes
5answers
1k views

How do I automate OS installation on 500+ machines?

My company has to image a large amount of machines by the end of the year. Each of the machines will have hardware RAID 1 and running CentOS 6. What options do I have for automating the OS ...
0
votes
1answer
175 views

How do you make a host workstation boot into a Virtual Machine and shutdown Upon VM Shutdown

I'm dealing with a company that has 21 windows workstations. I'd like to install linux on them to host Windows via a virtual machine. I'd like each workstation to hide linux from the user, in that, ...
1
vote
1answer
202 views

Automated test suite for linux servers and network devices?

Coming from a development background i'm used to automated (unit) testing before stuff goes live.Now i'd like to use the same approach to (new) linux (and some windows) servers and networkdevices. I ...
3
votes
2answers
2k views

Execute a command when a device is connected via USB

I currently have a system that backs up my Linux server onto a USB storage device on /media/usb. This all works correctly. However, I actually have 2 drives which we try to swap on a daily basis. Is ...
1
vote
0answers
206 views

Automate an interactive command which use /dev/tty

well pretty much it's in the title. I've a interactive command. This one ask for a password through /dev/tty. I use this command within a shell script. So the command should read the information ...
9
votes
6answers
9k 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 ...
0
votes
1answer
347 views

Automate wifi connection in bash using glob

Trying to apply these rationals on an ubuntu VM box to automate wifi connections but processing just into an infinite loop as I guess I'm not using glob as it should but can't find why/where the ...
1
vote
3answers
213 views

Automatically find permission problems of a directory

I often have the problem that a program - e.g. apache - may not access a certain file or directory. Solving the problem means to manually check the file and every single directory in the path up to ...
0
votes
1answer
811 views

Command Line - programmatically add/remove/rename BIND alias records?

For our local dev server, we routinely add and remove name alias records in our BIND/named server for our local network domain. I usually do this manually through Webmin, just out of convenience. But ...
0
votes
1answer
158 views

DIY: automate cloning of Xen VMs, gold templete?

looking for DIY way without commercial tools like XenServer LabManager product.
6
votes
6answers
1k views

How can I automate clearing and resetting a Linux user's home directory to a default?

I'm helping to teach two Unix courses next week. Users will be granted an account on a RHEL 5 machine, during which time they'll add files to their /home folder, update their .bashrc and other ...
2
votes
2answers
47 views

Creating an Update System With Serial Number Logins

Our company has a server that is a locked down version of Linux (custom shell for users, no direct access). I am currently pushing updates to the user, but it would be more ideal for the users to do a ...
1
vote
2answers
544 views

Upgrade the Ubuntu puppet package within kickstart process

My Ubuntu based kickstart-host is almost working like it should, serving Ubuntu 10.04 (both i386 & amd64) and CentOS 5.6 to new (VMware-)hosts. One of the things that bothers me is that Ubuntu ...
0
votes
1answer
37 views

On my webserver, opinion/advice on automatically adding php-fcgi users?

I am not 100% sure of how to actually add users, however I am choosing Apache over other backends finally and that may be easier. From what I can gather, adding an fcgi user would mean adding a Linux ...
3
votes
2answers
4k views

How to auto-start MongoDB on CentOS reboot?

How do I setup MongoDB so that it will start back up automatically after a server reboot? This is on CentOS 5.5. I start it with the following command, but if the server reboots, I have to login to ...
2
votes
1answer
298 views

Linux automated media files transcoding

I'm looking for software that would help to implement above described scenario. By automation i mean minimization of actions needed for that process. For example, it would be nice to run some daemon ...
1
vote
3answers
725 views

Find a process by name and kill it

So, I want to send a kill to a process, I know it's name ps -ef | grep '_rails master' root 2388 1 0 19:46 ? 00:00:04 unicorn_rails master -c /web/hero/config/unicorn.rb -E ...
0
votes
1answer
119 views

Automatic compile on apt-get upgrade?

i'm a big fan of Ubuntu and eaccelerator, but alas, I have found no good repositories for the binaries. Sadly eaccelerator needs to be compiled after every php update on Ubuntu, and even on Lucid ...
0
votes
1answer
200 views

Automounting with udev

Currently my distribution of choice (ArchLinux) has an automounting script like this: KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end" But that will automount only partitions up to ...
3
votes
3answers
289 views

Redirect service on nginx

I have a dynamic list of redirects from a relative url on my site to some other absolute url: my_website_url_1 --> other_website_url_1 ... my_website_url_N --> other_website_url_N This list ...
0
votes
4answers
312 views

Will Linux server services start without user login?

Newbie question: I am planning to set up a Linux server (lightweight basic web, PIM server) "appliance", i.e. a tiny headless box. I would like it to start whenever I plug it in and switch on the ...
1
vote
2answers
2k views

How to automate starting a multiuser screen session with adding acl to another user?

I often start a screen session, issue a ":multiuser on" command and then ":acladd someuser". Is there some way to get with a single shell command a screen session to start with these two commands ...
0
votes
2answers
339 views

Running a binary executable as an auto-starting service on Gentoo

I have a Gentoo box on Linode and couldn't get to install MongoDB thorough Portage, so I'm running the static binary I downloaded from the website. How do I make it run as a service, and how do I ...
8
votes
4answers
5k views

How do I install a yum package group with puppet?

Does puppet have a way to install a yum package group (e.g. 'Development Tools'), besides exec?
1
vote
3answers
110 views

How to log adjustments made to a Linux machine for duplicating same steps on other machines, for documentation and for undo

I'm looking for method or methods and automation tools to log the adjustments I make to a Linux machine. Such adjustments would be: Installation of new software/software components via apt-get, ...
4
votes
2answers
206 views

Post-install steps for a new Linux instance, and how to automate them

What post-install steps do you find yourself taking every time you install a new Linux server or VM ? I'm interested in things that could apply regardless of what use the server is to be put to, ...
1
vote
2answers
50 views

Starting remote workloads across platforms

I work with a group that does integration testing for a IP/IPv6 network stack. We have many stress testing workloads that we run across a variety of platforms, including Linux (RHEL and SuSE), Windows ...
1
vote
5answers
287 views

How to handle initial installation of a Linux server?

In past few weeks I found out, that my Linux sysadmin skills are pretty low, so I bought bigger HDD (1.5TB) and started playing with virtual machines. I'm experimenting pretty hard way, so I end up ...
16
votes
4answers
16k 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 ...
-1
votes
1answer
89 views

Automate SSL purchase and install process

We have a PHP/MySQL application that we deploy from a central source to a number of different servers - all CentOS 5 running with WHM/cPanel. Our deployment process allows us to roll out new clones of ...
0
votes
2answers
269 views

Script that can generate a listing of recently modified files

Is there a script (PHP?) that I can install (via FTP) and run that will give me a listing of the files that are modified AFTER a particular date on the entire domain?
3
votes
1answer
976 views

Expiring Inactive User Accounts

I want to have some method of determining which user accounts have remained unused for a certain period of time, lock the accounts, and then after a further period, delete the accounts (notifying the ...