Questions tagged [automation]
The use of control systems to reduce the need for human work. Related to automatic systems.
446
questions
2
votes
2
answers
4k
views
Ubuntu 20.04 autoinstallation LUKS
Since I'll have to deal with Ubuntu clients mass deployments in the future, I was searching for methods to achieve an unattended setup. My current idea is to use something like kickstart or https://...
2
votes
2
answers
1k
views
WSL - A Bash line to show when a folder's contents update
I'm looking for a bash script that will detect when a file enters a specific folder. Basically I want to eventually make a script that will detect when a file enters a certain folder on my desktop (...
2
votes
1
answer
338
views
Can I automatically remove transparency from layers from jpegs without losing quality?
As well as being a developer, I am an artist. I make most of my artwork with GIMP and I save my artwork into a folder in jpg format. I now make sure that a transparent layer was not accidentally added ...
2
votes
1
answer
316
views
Ubuntu 17.04 - USB backup
Is there a way to copy a folder to removable media, but only copying files and subfolders that are different to those on the removable media already?
2
votes
2
answers
6k
views
Dynamic info on wallpaper on Ubuntu just like Mac OSX? [closed]
As you can see in this picture, the wallpaper has it's clock change. This (from here, read the top comment) is actually real since there was a download link for this.
So in short, 2 questions
Will I ...
2
votes
2
answers
322
views
How many times will a cron job run when given asterisk (*) on all positions?
If we define a cron job with * * * * * /some/task/to/perform, how many times will the job be executed in 60 seconds?
2
votes
1
answer
246
views
Writing ("injecting") text into existing Ubuntu terminal
Given the name of an already running terminal (gnome-terminal maybe?), is there a way to write text into it from another program?
I am basically looking for a way to start compilation from a text ...
2
votes
3
answers
7k
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 ...
2
votes
1
answer
362
views
How do I run a script automatically when I start an app?
I want to run a script automatically when an application start. How would I do this without making the script run at start-up?
My current approach is writing a script with an infinite loop and made ...
2
votes
1
answer
97
views
Code capture automated
I am doing a project, where we need a video of the python script being written in the editor. We have 100+ scripts, so we need automation. Is there a program, in which the input is your python script ...
2
votes
3
answers
566
views
When I create a new directory, create a markdown file with the same name in it
I want to create a lot of directories (manually, using the GUI).
I will then want to have inside them a markdown document with the same name as the directory, so this sort of tree:
624466
└ 624466....
2
votes
1
answer
601
views
OS upgrade `on-the-fly`
I wonder if there is a way how to install newer version of OS, let's say 14.04 (when it comes) on the second partition of my server disk from within running OS (e.g. Ubuntu 12.04), then change grub ...
2
votes
2
answers
3k
views
Ubuntu Preseed set Norwegian Keyboard?
It's been a couple of days now that I am trying to make a fully automated unattended installation. I managed to make it work with Ubuntu/Cobbler and a preseed file, but I cannot set the correct ...
2
votes
2
answers
1k
views
Mirroring two files: rsync vs cp
I'd like to have a copy of my .emacs file in my Dropbox folder but I'd also like to have this copy in an automatic way, I mean every time I change my .emacs in the home directory I want it to be ...
2
votes
1
answer
6k
views
automate transfer of tar files over FTP
Every day I have a script making .tar files of aparticualr directory. Once every day, I would like to transfere the new tar file made that day to a remote server over FTP. I would like to make this ...
2
votes
1
answer
1k
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.
2
votes
5
answers
193
views
Setup a service that auto-magically deletes specific files from a folder
I have a folder that connects to a hardware weather logger. The data is pretty huge, and I only wish to keep the last 5 hours worth of data. This folder; however, has also some config files such as ...
2
votes
1
answer
5k
views
How to fix subquity crash with autoinstall ubuntu-22.04-live-server-amd64.iso using seed.iso
I'm trying to install Ubuntu server automatically in Hyper-V from this iso: ubuntu-22.04-live-server-amd64.iso
I use the VOLUME method to pass the cloud-init cfg so I have created a seed.iso loaded in ...
2
votes
1
answer
436
views
Automatizing RStudio updates
To install RStudio I went to their website to grab the .deb package and then installed it using the gdebi command.
My question is:
Do I have to repeat this whole process every time I want to update ...
2
votes
2
answers
2k
views
Script for merging files in multiple nested directories by symbolic link
Basically I am looking for a script to automate stuff (See picture below) in Ubuntu. I'm thinking of using a bash script but other solutions (eg. python?) would also be excellent.
1) Suppose I have a ...
2
votes
2
answers
3k
views
How do I automate nightly disk imaging?
I do a lot of development work, and sometimes this means messing around with drivers, non-official packages, and boot settings.
I want to start automating nightly disk imaging so no matter what ...
2
votes
1
answer
5k
views
rsync two existing directories copying everything
I have two file servers in two locations. Currently both have the same data, which generally is unmodified (used for read only access).When the second server was set up (the one I'm sshing to) the ...
2
votes
2
answers
989
views
Script that will reboot PC on specific GPU temp
Recently I've started mining litecoins. My miner consists of 3 Radeon R9 290x GPUs. From time to time one of them (not a specific one, it happens randomly) stops mining. Usually restarting cgminer (...
2
votes
2
answers
587
views
Exit command with any key
Here's what I have:
A script that records sound and exits when pushing ctrl+c
arecord -D plughw:0,0 -f cd -t wav -d 0 -q -r 16000 > file
This will record and record until I push ctrl+c
I want ...
2
votes
2
answers
272
views
How to automate my startup?
I am not sure how I am supposed to automate such delicate tasks on my daily routine. Let me describe it:
open Sublime Text in first desktop
open Chrome in second
open two terminal windows in third, ...
2
votes
1
answer
782
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.
...
2
votes
1
answer
1k
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 ...
2
votes
1
answer
734
views
Can I choose to automatically download all updates and install the important ones?
Why can't I select both of these?
2
votes
1
answer
727
views
Using gvfs or other automounter on ubuntu server? [closed]
I have a headless machine running Ubuntu Server sitting in my closet. I would like to have USB disks automounted when I plug them in just like on my laptop. Is it possible to set up gvfs or some other ...
2
votes
2
answers
849
views
How to find a button's XY coordinates on screen and click at it?
I need to find a button's XY coordinates on screen using this button's image and then click at it. I can do this task on windows using AutoHotKey Image search. And I found out that ubuntu AutoHotKey ...
2
votes
1
answer
153
views
Automatically deactive the internet at 9pm, but make it hard to activate it again
Is there a solution that automatically deactivates my internet connection at a set time, but makes it sufficiently difficult to activate internet again, after I have deactivated it?
I would prefer a ...
2
votes
2
answers
2k
views
Need to replace string with * except first and last 3 characters
I want to customize a string with * characters, except the first and last 3 characters in the string, as I don't want to print this string in logs.
For example: if the string is abctextxyz, I want it ...
2
votes
1
answer
805
views
How to recursively and automatically convert all TIFs to an aggregated PDF per directory?
I'm attempting to use GraphicsMagick in Ubuntu to convert hundreds of directories that contain multiple TIF files into one multi-page PDF file per directory. The folder depth is consistent with this ...
2
votes
1
answer
2k
views
Left-Click Spam on Hold Down [ Scripting Tools ]
I was wondering if there was a tool that allowed you to do basic scripting with mouse clicks and etc. like AHK/AutoHotkey. Something like while (Left Click down) { Click Sleep 100} return and ...
2
votes
1
answer
2k
views
How to start a scan with a hotkey and automatically save the result into a directory?
I have a Canon Lide 120 scanner connected to my Ubuntu computer via standard USB.
To scan a document I have to open the scanner app, hit the scan, and then select a directory to save the image into. ...
2
votes
1
answer
2k
views
Bash script - delete all files older than, but leave one for safety reasons
I've got written a script:
#!/bin/bash
dir=/opt/bla/myfiles
# Check disk usage usep=$(df -H | grep /dev/sda3 | awk '{print $5}' | cut -d '%' -f1) if [ $usep -ge 90 ]; then
echo "$(date) Running ...
2
votes
2
answers
1k
views
How to Extract Hostname from Ansible Playbook Run [closed]
I need to accomplish following shell script.
I trying to extract the HOSTNAME after it runs Successful via Ansible Playbook Run.
I have text file which contains Ansible-Playbook run command to be ...
2
votes
1
answer
372
views
Security updates are set "download and update automatically" yet some security updates don't get installed
I am using kubuntu 14.04.2
I have updates set to download and update automatically for where there are security updates - yet the security update for Adobe Flash was not automatically installed when ...
2
votes
1
answer
718
views
During system restart telnet service isn't start automatically
Each time i restart the system i need to login through SSH & then restart the telnet service manually. Any idea how to get rid of this?
System Info:
Ubuntu 15.04 (GNU/Linux 3.16.0-36-generic ...
2
votes
1
answer
4k
views
Make a program automatically take higher priority?
I'm using my Ubuntu OS to play Minecraft. I can get the game to run a little faster by closing my other programs and giving the Minecraft java process a higher priority via the System Monitor. The ...
2
votes
1
answer
1k
views
Build mount points from multiple files
I was wondering if anyone has seen a way of specifying mount points in multiple files?
My scenario is as follows: I am trying to automate desktop provisioning and setup, using a combination of ...
2
votes
1
answer
2k
views
Is there something like Tasker (Android) for Ubuntu
Is there something like Tasker (android app for automating things) for Ubuntu 13.04 (cuttlefish ruled out)?
2
votes
1
answer
258
views
How to run a cron entry periodically?
I have a line of script that works through terminal and works through cron to run one time: it downloads a file from the internet and saves it in a specific place named as the date it was found:
cd /...
2
votes
1
answer
221
views
How to change screen brightness based on screen colors?
I would like to know if there is any way to change the screen brightness based on the screen predominant color.
For example if I am browsing a web page with a lot of white color decrease the ...
2
votes
1
answer
310
views
Create shared shortcuts for Guest login
I have decided to use Ubuntu as my base OS for my internet cafe machines, and also for the thin clients that connect to my Windows terminal server running 2008 R2. 8 machines in internet cafe room, ...
2
votes
1
answer
401
views
Handling old kernels with automated upgrades
For security purposes I've been a fan of unattended-upgrades, Using something like this:
Unattended-Upgrade::Allowed-Origins {
"Ubuntu lucid-security";
};
Unattended-Upgrade::Package-...
2
votes
1
answer
387
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.
...
2
votes
1
answer
2k
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 ...
2
votes
0
answers
39
views
How to find whether a package is documentation?
As part of my work, I recursively find the dependencies of a package. While doing that, I like to skip the packages which are documentation. I can see most documentation packages have the suffix .*-...
2
votes
0
answers
739
views
Is it possible to autoinstall ubuntu desktop just like the server version?
I have a ubuntu desktop that I also use as a CI/CD server on my home. I always break stuff so I wanted to have a USB stick that auto installs everything.
https://ubuntu.com/server/docs/install/...