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

learn more… | top users | synonyms

65
votes
4answers
20k 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 ...
23
votes
2answers
10k 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 ...
23
votes
3answers
8k 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 ...
19
votes
4answers
22k views

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

How can I automatically shutdown the system after a certain customizable time?
19
votes
4answers
20k 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 ...
17
votes
1answer
19k 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.
16
votes
1answer
8k 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 ...
16
votes
6answers
489 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?
16
votes
1answer
9k 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, ...
15
votes
5answers
8k 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 ...
14
votes
2answers
758 views

How to make my system delete all the files in a certain directory older than a certain time while keeping the directory structure intact?

I have a directory on my machine, think of it as my own sort of tmp directory, but it's in my ~ directory. And I want to make it so that my system every 3 hours deletes all the files in (though ...
14
votes
2answers
10k 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?
13
votes
2answers
269 views

How can I automatically add workspaces, only if I need them?

Assume I am using 4 workspaces and I incidentally need more, is there an automated process or, if impossible, an easy way to incidentally add more workspaces (instead of installing Ubuntu tweak etc. ...
12
votes
1answer
11k 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.
12
votes
1answer
1k 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
697 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
3answers
6k 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?
11
votes
1answer
462 views

How do I contribute an autopilot test?

What is autopilot and how do I contribute to a new autopilot testcase for a package ?
10
votes
2answers
3k 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 ...
10
votes
5answers
7k 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?
10
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
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
1answer
3k 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 ...
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
3answers
4k 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 ...
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
4k 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
4k 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
268 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
922 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
396 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
10k 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 ...
5
votes
2answers
854 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
249 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)
5
votes
0answers
910 views

How can I get NetworkManager to autoconnect to a Openconnect VPN via nmcli without prompting for a user and password

I am trying to set up a script driven VPN connection with nmcli on Lubuntu 12.10 using Openconnect and NetworkManager and I cannot seem to get it to connect either with the saved credentials or via ...
4
votes
2answers
267 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
5k views

Auto-login to console as root - no Xserver

I'm setting up a PC for a very specific purpose. It's going to do some stuff deep underwater... round about 3km. We don't fear fish hijacking the box locally ;). I'm trying to set up a login: no ...
4
votes
2answers
1k 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
89 views

How to execute a command in multiple Terminals by executing a command in only one? [duplicate]

I am going to have multiple machines that I am going to connect to via SSH so I am going to have multiple Terminal windows up, though what I want to do is to execute a command so that all the machines ...
4
votes
1answer
2k views

How can I automatically copy the content of a usb (flash) drive to another directory?

I want to program my Ubuntu in such a way that it automatically copies the content of USB flash drive to a defined folder in my home directory. I would like this to be done automatically when any ...
4
votes
2answers
4k 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
890 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
399 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
412 views

How to run command on connect to network

How can I automatically run a command whenever my computer connects to a network? I want it to run in these situations: On power on and login to Unity On waking up from suspend or hibernate When it ...
4
votes
1answer
244 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
4k 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
648 views

How can I automatically create a list of files and folders in a given folder in LibreOffice Calc?

How can I automatically create a list of files and folders in a given folder in LibreOffice Calc ? I'd like it to have as much info as possible (size, name, folder hierarchy...) sorted in nice little ...
4
votes
1answer
199 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
62 views

How can I automatically mute my laptop when it connects to my work wifi network?

I'm running Ubuntu 14.04 and it would be helpful if I can do this. My phone can do it, my laptop should be able to!