Questions tagged [automation]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Custom FAI Ubuntu 20.04

I know the FAI tool that allows to create a fully automatic and customizable Debian installation image, and I love it. But at the moment it doesn't offer the tool for Ubuntu, which is sad. I would ...
0
votes
0answers
35 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://...
1
vote
0answers
53 views

have an .sh push commands to a terminal

So I have a Minecraft server on my spare system. It runs 24/7 but as I plan to get more servers I and other system I want a way for when the UPS goes to battery mode it will trigger a script which if ...
0
votes
0answers
20 views

v4l2 : how can I enable software trigger?

I am working on jetson TX2, with a FSM-IMX304M camera and I use V4L2 API. I would like to use software trigger, but I don't know how to use it and haven't found anything by searching. I need to ...
0
votes
0answers
19 views

How do I make a Ubuntu server 18.04 update and then restart

I have been having problems with Webmin and other programs on my server, that seem to fix itself after a restart. I also want to make sure it updates every day. TL;DR: I want my Ubuntu server to ...
0
votes
1answer
34 views

How to click+hold+move with xdotool?

I've digged on StackExchange and on the YouTube but everywhere only how to clicks and moves. My question is how to click+hold e.g. some desktop icon and move it to different location with xdotool or ...
1
vote
1answer
24 views

Can I use sxhkd to bind to keycodes?

Is there a way to bind hotkeys in sxhkd using the keycodes, rather than the keysyms?
0
votes
0answers
21 views

Ubuntu 18.04 Desktop un-attended installation

I want to install ubuntu18.04 Desktop LTS . How can I perform auto installation with ks.cfg file or preseed file. ?
0
votes
0answers
126 views

I'm confused by the “d-i”'s meaning in the preconfiguration file of `debconf-set-selections`

I'm using Ubuntu 18.04 and I'm automating the installation of a Debian package via apt install. This package requires me to review a license agreement and choose to accept or deny it, and I learned I ...
0
votes
0answers
64 views

Ubuntu Server/Desktop 20.04 - Automatic/scripted installation

Would you be so kind and help me please with the following? I’d like to start installing Ubuntu Server 20.04 on many devices. I have my own way of partitioning (ZFS is not the answer! ;-)) and I don’...
0
votes
1answer
66 views

How to run a script 4000 time for files names from 1 to 4000 in order?

I have 4000 file named from 1 to 4000 inclusive the 1 and the 4000. I wrote the below command which I want to run the script I wrote 4000 time for all the files from 1 to 4000, so I wrote: for ...
0
votes
0answers
42 views

How can I have a script run whenever I start a zoom meeting?

I'm trying to write a script that will execute when I start a zoom meeting. I found a command wmctrl -l which outputs 0x05e00020 0 N/A Zoom - Free Account But, I can't figure out ...
0
votes
0answers
21 views

How do I set up a script to run automatically, whenever my system connects to the internet?

I would like to auto update my system & store apps whenever I am connecting to the internet for the the first time in the login session. How do I do that? The flow would be: User 'X' logged ...
3
votes
1answer
148 views

How to run fstrim -a regularly automatically?

I noticed that manual seldom invocations of fstrim -av take a lot of time (over 10 minutes) and report a lot of free space to the SSD: # /usr/bin/time -p fstrim -av /boot/efi: 503,2 MiB (527671296 ...
2
votes
0answers
18 views

How can I automate tts?

Right now I have a keybinding that uses the xsel program to grab the contents of selected text and pass it to the festival text to speech engine: #!/bin/bash xsel |festival --tts --pipe I want ...
0
votes
0answers
24 views

xdotool - If I press F2 do these events

I have stations where I would like to auto login. Is it possible with xdotool that when I press the F2 key, it performs these operations? xdotool type "username" xdotool key Tab sleep 2 xdotool type '...
1
vote
1answer
23 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 ...
5
votes
4answers
191 views

How can I automatically create a Btrfs Snapshot before updating my system?

I've installed Ubuntu 20.04 on a Btrfs root-partition for its snapshot functionality. To keep it as simple as possible, I would like to integrate the creation of a Btrfs snapshot into my upgrade-...
0
votes
0answers
27 views

How to automate user input in shell script? [duplicate]

I am learning shell scripts here and would like to know how to automate user input (Y/ n) during package installation. I inserted echo Y for input "yes" on line 4 but it doesn't seem to work. The ...
0
votes
1answer
164 views

Automatically connect to a hidden wireless network

Ubuntu 19.10 doesn't automatically connect to saved hidden wireless networks. I have each time to go to Settings > Wi-Fi Settings > Connect to Hidden Network to get connected to Wi-Fi. Is there a way ...
2
votes
1answer
225 views

xdotool keyboard automation

I'm new to coding in the linux operating system. I had autohotkey on my windows system and I'm trying to figure out the best way to migrate this to Linux. I'm looking to press one set of keys but ...
0
votes
0answers
20 views

How to install from image on local-drive targeting same local-drive

I'm currently tasked with automating Ubuntu Desktop installs to systems in a lab intended for test automation. We're using Symantec Deployment Solution (Altiris) for system management and imaging to ...
2
votes
1answer
53 views

Using command line to copy html file to clipboard

I am trying to do an automated task using Actiona and I need to have the content of an HTML file to be copied into clipboard. Using the clipboard coding facilities inside Actiona is not a solution ...
1
vote
1answer
88 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 ...
0
votes
0answers
24 views

Help to mass deploy 18.04 with additional minor configs

I have a stack of older Dell laptops from work destined for ewaste that I'd like to donate to local elementary schools to give to families in quarantine/isolation due to covid 19. I'd like to ...
1
vote
0answers
33 views

How to write a bash script for set lock-screen time out for different Ubuntu desktops?

I am using Ubuntu 18.04 and already i have scripted for gnome environment. I need to know that cannot we use a common script for all the Linux desktop environments? Bellow is my script, #!/bin/bash ...
1
vote
2answers
90 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 ...
0
votes
1answer
46 views

Bash script to download any new version of a file from a webpage of a particular software

Let's say I'm creating a script to automate downloading & compiling Nginx from source but one improvement I would like to make is make sure the script would work with new Nginx versions without me ...
0
votes
0answers
80 views

Appium installation and configuration

I need to install appium in my Ubuntu 16.04, but i am getting following error please help me to resolve. WARN AppiumDoctor ✖ adb could NOT be found at '/usr/local/android-studio/platform-tools/adb'! ...
0
votes
0answers
23 views

Global shortcut key for Nixnote2 on Ubuntu 18.04.3 desktop

Nixnote2 is a note taking app inspired by Evernote. In Evernote you can setup a global shortcut key that will create a new note from any text you select, so instead of copying the text, opening the ...
0
votes
0answers
22 views

What framework would you recommend between ansible and puppet? (DevOps on ubuntu)

We are in 2020 and was wondering what should I choose regarding my following questions: What framework would you recommend between ansible and puppet? (DevOps on ubuntu) Also, which should I choose ...
0
votes
1answer
63 views

How to automate terminal inputs/commands?

For example if I'm using gitlab and every time I do git pull/push etc. It shows this Username for 'https://gitlab.example.com': so every time this text is appeared in terminal it should automatically ...
0
votes
0answers
32 views

Automatation of specific tasks

Our company just moved to another office and had the entire network at the office redesigned. Our WiFi is setup in a way that we only may connect and get access to the internal business resources if ...
0
votes
2answers
150 views

How to find all files that are not a certain extension?

Let's say I'd like to delete every file in a directory that is not a .png file. I'd only like to keep pictures, and delete everything else. Something like this, which obviously doesn't work: for ...
0
votes
0answers
167 views

Linux AutoHotKey Wine or Alternative?

I want to make the same AutoHotKey GUI for Linux as I have on Win to send keystrokes to the same app under Linux. Will "WinMenuSelectItem, ahk_class.." work ? Does Window Spy work to give the ...
2
votes
2answers
363 views

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 (...
0
votes
0answers
109 views

Screen brightness control on my XPS 15

So I have a XPS 15 with an OLED screen. This means that the brightness controls don't work. I can however control the brightness using xrandr --output <display> --brightness <value> And ...
1
vote
1answer
413 views

How to run a configuration script as soon as a Wacom graphics tablet is connected (via USB)?

I'm using a Wacom graphics tablet under Ubuntu 18.04 (Kernel: 4.15.0-72-generic). Unfortunately, I cannot configure it using the system settings because it is not recognized properly. The ...
0
votes
2answers
67 views

Is there anyway to run this command automatically when system boots up

Everytime I run my ubuntu VM I have to run source ~/.bash_profile I was wondering if there's any way which would run this command automatically as soon as I boot my VM up without me having to do this ...
1
vote
1answer
361 views

How to run a script at boot and then every 30 minutes

I have an Ubuntu Server machine in which I need to run a Python script: at boot and then every 30 minutes with root permission without logging in I searched on the internet and I found out that I ...
14
votes
5answers
2k views

Is there a markdown “rich text” editor?

I have become fed up with writing down markdown tables scratch, I need some "rich text editor like" program to automate creation of markdown for me and hence of tables. The only rich text editor I ...
0
votes
0answers
61 views

Home automation

I've been using a Windows program 'Active Home' to run my X10 gear. I've recently changed computers, and my new system will not run Windows XP, which is the only program that this will run on. ...
1
vote
0answers
104 views

Why Ansible tower does not run on Ubuntu 18 or 19?

Using Ubuntu 16, I was able to install Ansible tower on Ubuntu Linux following Ansible installation guide. But Ubuntu 16 is too old for me to use on the production environment of our company. The ...
-2
votes
1answer
582 views

How can I automatically relaunch nautilus if I quit the program?

Due to strange window focus and/or key-binding behavior on my system, sometimes I accidentally close a Nautilus/Files window when my intention is to close the uppermost application window (e.g., a ...
2
votes
2answers
518 views

Create an unattended ubuntu 18.04 live cd that run on demo (try ubuntu) environment with premade various steps

we often deal with some machines with ubuntu live cd. Most of the times there's lot of repetitive tasks we have to do in order to have our ubuntu live cd gets ready. I would like to know how create ...
0
votes
0answers
217 views

“Warning: g_object_unref: assertion 'G_IS_OBJECT (object)' failed” while installing LDTP on Ubuntu 18.04.3

Installing LDTP on Ubuntu requires many packages, like wcnk which is removed from 18.04. I tried to install it with easy_install and got: Searching for ldtp Best match: ldtp 3.5.0 Adding ldtp 3.5.0 ...
1
vote
0answers
35 views

Autorun script while plugging in a USB device on a USB-media blocked PC

I have about 50 PCs with Ubuntu versions ranging from 12 to 18. All is USB media blocked. I want to copy a folder from my USB to a standard user account. Every time I have to manually acquire root ...
0
votes
0answers
52 views

Trying to automate an Ubuntu install but I keep getting some type of error

I'm trying to automate an Ubuntu install for deployment via PXE server but I'm running into an issue. I've used guide to try and configure it but unfortunately I'm running into this error. Only ...
0
votes
0answers
295 views

how to automate a shutdown with delayed reboot

I maintain a file server for a research lab, and I need to figure out how to automate shutting down the server while incorporating a delayed reboot. The electricity is being serviced in our building, ...
0
votes
2answers
196 views

APT update automation via Bash script

I am relatively new to Linux in general, still learning :) I want to write a bash script for automation of apt update and apt upgrade. I have the idea of sending the apt update command, then watching ...

1
2 3 4 5
8