The use of control systems to reduce the need for human work. Related to automatic systems.

learn more… | top users | synonyms

58
votes
4answers
15k views

What's the difference between Juju and Puppet/Chef?

Have tried asking 3rd party about key differences between Juju and Puppet/Chef. 3rd parties are not too familiar with Juju and could not say. They simply stated the others have a lot of momentum, and ...
19
votes
3answers
4k views

How to find the number of packages needing update from the command line?

I'm working on some system admin automation using fabric and I'd like to be able to monitor the number of packages that need upgrading on a given machine. This is the same information that I can see ...
17
votes
2answers
6k views

How to enable silent automatic updates for any repository?

I read here how to enable silent automatic updates for Google Chrome. However, I have other repositories like spotify, docky and others for which I would like to enable silent updates. I am trying ...
17
votes
4answers
12k views

how to put a trigger on a directory

I have a script that scans a directory and does some maintenance on the files in it. Another process creates the files in the directory (10 - 30 files per day). The script is called via a daily cron ...
16
votes
6answers
466 views

How do I get involved with testing and QA with Ubuntu?

I'd like to get involved with Ubuntu QA by creating automated tests. Is there an ongoing effort to create these tests? Where can I learn more?
15
votes
1answer
6k views

How can I enable silent automatic updates for Google Chrome?

Installing Google Chrome causes a third-party software source to be added from which Google Chrome upgrades can be retrieved: $ cat /etc/apt/sources.list.d/google-chrome.list ### THIS FILE IS ...
13
votes
1answer
10k views

Add lines to cron from script

Is there a way to add lines to a user's cron via script? I usually do it using crontab -e, but I would like to automate this task with a shell script.
12
votes
4answers
6k views

Is there any way to get AutoHotKey or IronAHK working?

I am very interested in getting AutoHotKey, the windows program for automation of keystrokes, working under Ubuntu. So far I have installed Wine, but am unable to use any of my previous windows ...
12
votes
1answer
718 views

Why is the automatic login disabled for users with encrypted home?

I've tried to setup an autologin, but that isn't possible, because my home is encrypted. What are the reasons for this? PS. Here I have described my problem: ...
12
votes
0answers
691 views

How can I make apt-get wait for another instance to finish? [duplicate]

Is there any way I can make apt-get wait for the other apt-get (or another package manager) process to finish? I know that, generally, apt-get can only run one instance at a time and if we try to run ...
11
votes
1answer
6k views

Automating Linux (Like AutoHotKey for windows)

What programs are available for Linux that can give a context sensitive automation like AutoHotKey for Windows. a few example of things that I would like to do. Replace ]d with the current date, ...
11
votes
1answer
355 views

How do I contribute an autopilot test?

What is autopilot and how do I contribute to a new autopilot testcase for a package ?
9
votes
2answers
2k views

What is the least insecure way to store a password that is used by a script?

I have a Bash script that automatically authenticates with a service using my username and password. The credentials are currently stored as plain text within the script. What precautions should I ...
9
votes
5answers
6k views

Alternative for Mac OS X Automator?

I once tested Mac OS X and something that called my atention was Automator, a software to visually create scripts to automatize tasks on the desktop. Is there any Linux alternative for this software?
9
votes
4answers
3k views

How to set up Ubuntu to automatically turn NumLock on when an external keyboard is attached and off when it is not?

Having NumLock on is convenient when using a full-sized external keyboard (having a keypad) and very inconvenient when using laptop's built-in keyboard (which places digits instead of letters on the ...
8
votes
4answers
8k views

How can I automatically shutdown the system after a specific time?

How can I automatically shutdown the system after a certain customizable time?
8
votes
3answers
3k views

How to do simple home-automation?

I am looking for some guide, examples, books to do simple things (automation) with Ubuntu. Like turning on / off the electricity open doors etc Any idea would be appreciated, thanks.
8
votes
2answers
3k views

Autorun a script after I plugged or unplugged a USB device

What can I do to run automatically a script after I mount/plugin or unmount/unplug a USB device?
8
votes
2answers
2k views

How can I automatically switch to USB headset when plugged in?

Whenever I plugged in my old audio jack headset, sound was immediately diverted from my speakers to the headset speakers, and the microphone was immediately available. When I plug in my new USB ...
8
votes
3answers
2k views

How can I make the network manager automatically connect to a new network?

If my computer is on without an network connection(e.g. the router is rebooted, the network cable is unplugged, etc), it won't connect at all until I fix the connection then reboot the computer. How ...
7
votes
2answers
3k views

How do I run a script when a Bluetooth device connects?

I'd like to start my music player (Clementine) when my bluetooth headset connects to my computer. How do I detect the bluetooth device connecting so I can run a script to start the player?
7
votes
3answers
2k views

How do I turn off WLAN automatically when LAN is connected?

I use my Thinkpad laptop with a docking station. The docking station is connected to my router via LAN. When I walk around the house I use my laptop with WLAN. Is it possible (and how) to manage ...
7
votes
1answer
1k views

How can I combine multiple images into a single GIMP file with the command line?

How can I combine multiple JPEGs into a single, layered XCF via the command line? Using GIMP's graphical interface I can choose File ▸ Open as Layers..., but I don't see an analogous command-line ...
6
votes
2answers
2k views

Automatically close application after custom time?

Is there a way to automatically close a certain application after custom time? Update: i.e. stop the Audioplayer after a certain time.
6
votes
3answers
3k views

How can I easily retab html files according to some sane default?

I have some html files that I'd like to retab that look like this: <header> <div class="wrapper"> <img src="images/logo.png"> <div ...
6
votes
1answer
2k views

How do I run a script on a dbus signal?

Is it possible to run a script on an arbitrary dbus signal? Something like Upstart that runs as an unprivileged user and doesn't require root perms to modify? I ask because I've already written a ...
6
votes
1answer
209 views

What are Launchpad packaging recipes and how can I use them?

As I understand it, packaging recipes are a way to automate packaging into a PPA from a bzr branch. What I'm not sure of is how to go about setting one up. I have read the documentation but for some ...
6
votes
1answer
1k views

How do I enable automatic updates of all packages?

I'd like to use unattended-upgrades to install all updates to Natty beta packages daily. Whatever I try, unattended-upgrades seems to ignore updates to packages in "main". Here's my current ...
6
votes
1answer
680 views

How can I make a script to place files older than each day before into their own folder?

I'm running an unnecessarily complex script which looks similar to this command: find /home/user/videos/*.avi -mtime +0 -exec mv -f {} "/home/nb/videos/1 day old" \; And then I run the same ...
6
votes
1answer
376 views

How can I automatically run a command when I log out?

I'd like to make a command run every time I log out. Is there a way to do this?
5
votes
1answer
6k views

How can I enable/disable Dash online results programmatically?

How can I change this setting from a Bash script? My plan is to enable it only on certain network connections.
5
votes
2answers
691 views

Batch editor for text or html files?

is there a tool that can help me to batch edit text files in a certain folder? I need to delete or insert snippets repeatedly in lots of html files and restructure them. Thanks in advance!
5
votes
3answers
229 views

I need a command to remove all files from a directory (and subdir) that are under 20MB

With the exception of certain file extensions. (removing junk other than subtitle files from a video directory)
4
votes
2answers
202 views

Is there a tool like Juju or Chef that I can use to automate the set up of my computer?

There are a lot of tools (chef, puppet, juju) out there to automate server deployments and set ups. How can these be used for automating my laptop set up? I want to be able to do nothing but run a ...
4
votes
2answers
917 views

Conveniently switch between Apple and PC keyboard (swap Windows and Alt keys)

I alternate between a Unicomp clicky keyboard by day, and the Apple bluetooth keyboard by night. The Apple keyboard physically swaps the Alt and Windows keys. How do I counteract this? Also, how can ...
4
votes
2answers
3k views

Change screen brightness automatically on AC connection/disconnection

I want to keep the screen brightness at minimum level when its unconnected to power and at maximum level when it's connected On Ubuntu 11.04 it was possible, through this config screen: However on ...
4
votes
1answer
756 views

How can I automate creation of videos from an image and an audio track?

There are many videos on sites such as Youtube that simply contain album art and an audio track. This is easy to do with tools such as openshot or pitivi but it is time consuming. Is there a script or ...
4
votes
2answers
383 views

How can I make my laptop's password-less guest account automatically attempt to connect to any and all open wireless networks?

Or, alternatively: What is the closest I can get to this? If my laptop ever gets stolen, I want it to do everything in its power to phone home. Prey only kicks in after an internet connection has ...
4
votes
1answer
238 views

Automation Extracting Many Passworded Archive

I have many 7zip Archive with same password. When I extract it, both using GUI application and command line, I must enter same password again and again. When I read the 7za command manual pages, I ...
4
votes
2answers
3k views

Bad archive mirror using PXE boot method

I'm trying to automatically install Ubuntu on a client PC by using the PXE BOOT method....my Objectives are below: I am following the steps given in this link installation using PXE BOOT the server ...
4
votes
1answer
188 views

Proxy to automatically save specific URLs

I am looking for a network proxy that would do the following: If a requested URL matches a certain pattern (regular expressions would be ideal) save the transfer to a specified folder. I'm not sure ...
4
votes
1answer
2k views

How do I run LibreOffice Calc without Text Input dialog?

I have a CSV file written by a python script of mine. I want to make a shell script that opens the file in read-only mode, which I have done. #!/bin/sh libreoffice --view ~/Documents/timeclock.csv ...
3
votes
1answer
486 views

How to run a cron job as a specific user?

I have a couple of commands I want executed after the machine boots up. A user shouldn't have to log in or anything for them to run. I found this great answer suggesting crontab with the @reboot ...
3
votes
3answers
424 views

TestDrive equivalent for Ubuntu Server

Every now and then I'd like to play with a fresh minimal install of Ubuntu (to test sysadminish scripts, application install instructions, package dependency lists etc.). I'd like to have a tool as ...
3
votes
3answers
2k views

Preseeding Ubuntu Server

I am in the process of creating an automated install disc for Ubuntu Server 10.10. Is it possible to setup package selection within the preseed file (what groups of packages to install etc.)? If so ...
3
votes
1answer
290 views

Good workflow for updating R modules around R-cran updates?

I like that R updates frequently to give me the best new packages, but it does seem to pose a problem for my R scripts on cron schedules. I noticed that every time ubuntu updater updates my r-base ...
3
votes
2answers
1k views

How to create daily job without write access to /etc?

I don't have write permissions to /etc and its sub folders, but even do I would like to have bash script that is executed every morning. How to set it up? also when i type cron in command line I get ...
3
votes
2answers
311 views

What is the best way to trigger scripts or actions when the computer is disconnected from the network?

I am running 12.04 LTS. There are a number of shared resources that I use that are housed remotely on a local server. When disconnected from the network (on say a network, or router failure), I would ...
3
votes
2answers
5k views

I want to make Tomcat7 autostart while booting

I installed tomcat servlet but i need to autostart while booting.How to?
3
votes
2answers
218 views

Automate Password Set And Verify

I'm using this to set passwords in a script: usermod -p `mkpasswd -H md5 passwordText` user I need to create an exception in my script, just in case this command fails. What file contains the ...