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

learn more… | top users | synonyms

4
votes
3answers
1k views

How can I programmatically get the PID of the active GNOME Terminal instance?

How can I get the PID of the GNOME Terminal instance I'm using from within a Bash script? I can run xprop _NET_WM_PID and then manually click the terminal window, but I'd like to completely automate ...
11
votes
3answers
7k 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?
0
votes
1answer
6k views

Cron not running scripts

I have looked for several reasons that could cause my problem without luck. The issue seems to be extremely particular: my server running LTS 10.04 is not correctly running scripts relating to ...
1
vote
3answers
5k views

How do I configure a preseed to skip the language support question?

I'm attempting to create a preseed configuration file for automating the install of Ubuntu Server 10.04-4 LTS x64 via a bootable USB thumb drive and I've hit a major snag in the process. The debian-...
3
votes
1answer
568 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
1answer
254 views

How to execute a script when workspace changed? [closed]

I use devilspie to arrange the windows of monitoring tools (htop,ifop,iotop,nethogs, bmon) at the third workspace. In case I need the details about some process activity, I switch to the third ...
1
vote
2answers
1k views

How can I programmatically refresh the wallpaper?

I want to be able to choose one image file as my wallpaper and then overwrite that file to change the image that's displayed on the desktop background. Currently, the displayed wallpaper doesn't ...
2
votes
1answer
576 views

How can I pre-cache image thumbnails? [duplicate]

I have several frequently-updated folders that contain thousands of high resolution JPGs. The first time I browse into any of them, it takes a long time for Nautilus to generate all the thumbnails. ...
4
votes
2answers
206 views

Scripting Language That Sends GUI Events To Any GUI App

I would like to run scripts that will allow me to interact with the gui by sending windows events such as: button presses text insertion window closing, minimizing utilize an apps quick key ...
3
votes
2answers
274 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 ...
3
votes
1answer
218 views

Move downloaded files based on criteria

After downloading tv shows and movies I would like them to be automatically moved to two separate folders (named "tv shows" and "Movies"). I know there are a lot of programs that you can do this with ...
1
vote
1answer
231 views

Scripting question (youtube-dl and xclip)

I have youtube-dl and xclip installed. Is there a way I could write a script that can run commands from both? For example: youtube-dl -l --extract-audio (url) but instead of pasting a url could I ...
1
vote
1answer
824 views

How can I install Dog Tail

Does anyone have a detailed and accurate reference on how to install DogTail? I tried to install it, but I come up against problems.
0
votes
1answer
128 views

running utility when user logs out

is there any way by which we can run utility on logging out. There is a server which has account of many users. Now If I login to that server I can put utilities in .bashrc, but I want to kill ...
0
votes
1answer
170 views

Using a custom list for autocompletion (e.g., a list of files)

what I would like to do is when I write inside on console a command, for example. ls file1.txt folder1 folder2 then I write cd (I hit some magic shortcut and I can access using down ...
2
votes
3answers
2k views

Need to skip lost+found when using find

I am new to Ubuntu and I do not have alot of experience with Linux/Unix, so please bear with me while I try to get through this. I have a camera system that records footage and takes screen shots and ...
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 ...
2
votes
1answer
393 views

Apply compressor effect to new podcasts automatically?

I want to greatly reduce the dynamic range of certain audio podcasts automatically. The effect needs to be applied to all episodes of some feeds, other feeds don't need this and can be ignored. I'd ...
23
votes
2answers
11k 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 ...
1
vote
1answer
350 views

How to automatically put text into picture files

I have a template for a business card and a text file with several hundred codes (each separated by commas). Is there a method to (automatically): for each code overlay it onto the template and export ...
6
votes
1answer
959 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 command,...
3
votes
2answers
2k 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
0answers
2k views

Do something when CD/DVD/Blu-Ray inserted [closed]

I have a headless 10.04 server with a BD drive. I'd like to be able to insert a blu-ray or dvd into the drive and have the server immediately begin ripping it with makeMKV/Handbrake. Basically, I need ...
3
votes
1answer
1k views

Batch printing from Unity? Shell?

Is there a way to batch print some files (PDFs)?
1
vote
1answer
321 views

How to modify configuration file from command line?

For example, I often need to login to a new virtual machine just to open "/etc/ssh/sshd_config" and set "PasswordAuthentication" option to "no". In this way, I can not automate this process. How to ...
2
votes
2answers
3k views

How to increase the idle time that causes auto-lock to log in screen?

At the moment I got Ubuntu on my VirtualBox and it seems to auto-lock very quickly. Everytime I switch to VirtualBox to use it, I always have to enter password. How can I increase the auto-lock ...
4
votes
2answers
771 views

How to run ABCDE when I insert music CDs

I used to have ABCDE run automatically and rip a CD when I put it in my computer. I did this by selecting ABCDE for when a CD is inserted through the Media tab in Nautilus but this option has been ...
16
votes
1answer
9k 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 ...
5
votes
2answers
898 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!
19
votes
1answer
22k 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.
1
vote
1answer
164 views

Rebind Control-n Control-p

I would like to rebind C-n and C-p in all my applications to send Up and Down. My brain is just stuck with this shortcuts, and I am tired of always seeing new windows and printing dialogs popping up. ...
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 ...
17
votes
1answer
11k 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, ...
2
votes
1answer
618 views

A simple email autoresponder

I have a POP3 email account, that I do not use anymore. It is on a server out of my control. Several of my contacts keep on sending email to that address, though I told them. So I decided to set an ...
69
votes
4answers
21k 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 ...
11
votes
2answers
4k 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 ...
23
votes
3answers
9k 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 ...
1
vote
2answers
4k views

Fully automatic updates in Kubuntu

It is really annoying to click the update icon and enter password every time to confirm updates. How can I setup fully automatic updates without any prompts? (Not only security updates) Some small ...
3
votes
2answers
976 views

Installation automation

Use case: When I install Ubuntu on another computer, I need to: install all the packages that I use; make some config changes; svn checkout some projects; git clone some projects; setup .ssh/config;...
20
votes
4answers
23k 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 ...
2
votes
1answer
6k views

How do I run BleachBit from the terminal?

On their website, they say to simply enter bleachbit --(argument here) but all that does is open the program. Am I doing something wrong?
6
votes
1answer
286 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
2k 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 Allowed-...
2
votes
1answer
569 views

How do I run a macro in the selenium IDE without having to take my hands off the keyboard?

I am looking for some form of utility that can be run from the command line in Ubuntu that will click a button in a specific window. What I want to do is run a macro in the selenium IDE without ...
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
5k 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
708 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 ...
2
votes
1answer
611 views
3
votes
3answers
2k views

Automatic shutdown / hibernation after x minutes in suspend?

I have an embedded battery powered device running Ubuntu and want to reduce power consumption. The idea is that if a user does not use a device for ca. 30 min. then the device will automatically ...
5
votes
1answer
924 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 ...