Questions tagged [automation]
The use of control systems to reduce the need for human work. Related to automatic systems.
446
questions
0
votes
0
answers
39
views
here file does not fill token
I use a certain command quite frequently, but the command prompts a few things so I wanted to auto-fill it with here file, but it seems that for some reason it can't provide last value to the prompt. ...
2
votes
3
answers
590
views
File removal on power off
I'm using Ubuntu 22.04LTS.
I would like to create a folder "temp" where during my session I save the files that are, as the name suggest, temporary. How can I define a scritp that at ...
0
votes
0
answers
108
views
AWK issue on Bash script
I need to shortlist the logs between the particular timestamps.
I can achieve it by using the below command.
awk '$a>="Feb 5 10:44:*" && $a<="Feb 5 10:54*"' /var/...
0
votes
1
answer
148
views
How to automate the compression of the contents of each subfolder in a directory?
I'm looking to automate the compression of the contents of each subfolder (excluding the subfolder itself) in a directory, with each .zip of said contents corresponding to each subfolder. Is there a ...
0
votes
1
answer
78
views
Automation/script of Bash separating, closing itself from an executable binary
How is script of Bash separating, closing itself from a launching of executable binary in fork, ie. form eg. $ sed & exit at the very beginning of Bash launched itself on a terminal launcher (eg. ...
0
votes
1
answer
113
views
The "-y" flag in apt-get command [duplicate]
Running apt-get with the -y flag helps runninng the command without waiting for user input. This is good when trying to run an automated script.
However add-apt-repository ppa:vbernat/haproxy-2.8 ...
0
votes
0
answers
65
views
Running an APP / Script automatically with Lock / Unlock of Screen | KDE
So far i have been half successfull with the native notifications menu:
https://i.imgur.com/bUgrxsY.png
I have manage to turn off the screens and close Linphone (Voip APP).
/bin/sleep 1 ; /usr/bin/...
0
votes
0
answers
138
views
Automating Creation of VM through python-libvirt and Providing SSH access
For a Project I am trying to automate the Process of generating Virtual Machines through libvirt using python-libvirt. Using the following dump.xml I create a VM.
dump.xml
<domain type="kvm&...
0
votes
1
answer
62
views
How to automate opening files one by one and then prompt to delete?
Full disclosure I am a total noob, I started using ubuntu 3 months ago, loving it so far.
Here is the problem
I have a folder containing over 800+ images, I want to go through each one of them one by ...
0
votes
0
answers
203
views
how to enable root user by default in autoinstall user data
in my product, i need to enable root user by default in autoinstall user-data file
Expectation: root user login by default post installation
i followed the below,
version: 1
user-data:
...
1
vote
1
answer
438
views
Mount specific removable media with mount options by default
I run Ubuntu Mate 22.04 and I have a USB mass storage device (aka USB-Stick) that is formatted with btrfs. I know it's partition UUID and label and I want it specifically to be mounted with specific ...
1
vote
1
answer
222
views
Auto copy from any USB Stick to another directory
with the following instruction I have unfortunately my problems:
How can I automatically copy the content of a usb (flash) drive to another directory?
I want that any USB stick/USB hard disk, which is ...
0
votes
1
answer
106
views
Specifyig executable name in sudoers in order pass password
Why has put an executable name in /etc/sudoers, but run it still get asked password?
This is what I have inserted in the file /etc/sudoers by the command $ sudo visudo /etc/sudoers (user name ...
0
votes
0
answers
28
views
How to start using Test Evolve - Automated testing tool?
I'm currently exploring new software testing tools, and one of the tools that caught my attention is Test Evolve. I'm curious to know if anyone here has experience using it for automated software ...
0
votes
0
answers
93
views
How to setup secure boot on customized Ubuntu Server ISO?
I have an Ubuntu Server 20.04 but I want it to support secure boot automatically just like how the official Ubuntu Desktop does.
0
votes
0
answers
74
views
Automate menu actions within a GUI app?
I'm currently programming an ESP8266 chip through the Arduino IDE. However, I have two versions of the IDE running at once, because I need an older version to upload files to the chip, and the newer ...
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 .*-...
0
votes
2
answers
36
views
how to programatically find a lower version of a given package version?
I'm finding the dependency (with version) programmatically by reading the control file of the Debian packages. I noticed that some dependencies need a strictly lesser version (<< ). How to idea ...
1
vote
0
answers
119
views
Converting WebVTT (.vtt) to VobSub (.idx / .sub)
There are a lot of questions about subtitle conversion, but I can't find anything for my particular use case.
I have a bunch of movies which I have previously converted to .mp4 with .vtt subtitles; ...
-3
votes
1
answer
65
views
Is it possible to make an auto updating website [closed]
I am making a website and I want it to automatically upload and update the code in the server when I make changes on my computer. I am using the latest ubuntu server I also have the vscode if there ...
1
vote
1
answer
855
views
My cron doesn't find a file
I have written a Python script that I would like to run by crontab!
I have run the Python script individually and it works fine!
The problem is that when I run it by Crontab, I receive an error ...
1
vote
1
answer
1k
views
Proxmox ubuntu template created with Packer disables default user account
This is my Packer config for template creation in Proxmox
ubuntu-server-jellyfish-docker.pkr.hcl
# Ubuntu Server Jellyfish Docker
# ---
# Packer Template to create an Ubuntu Server (Jellyfish) with ...
0
votes
0
answers
98
views
Available command for get coordinates from desktop, dash to dock and top bar buttons and icons
I have a doubt about if there is any command available to get x,y coordinates from positions where desktop icons are located, as well as dash to dock icons and buttons like Activities, navigators, ...
-1
votes
2
answers
378
views
Is there any tool/application which I can user to install multiple applications directly in Linux?
I want to develop an application that lets users select from a list of applications they want to install. Then, I want to generate a script and, upon running it, all the selected applications should ...
1
vote
3
answers
8k
views
Server 22.04.1 subiquity autoinstall - system-install command fails after changing NIC name using netplan
Issue:
I'm trying to use packer to create an Ubuntu Server 22.04 image and I'm running into issues when it comes to renaming the NIC using a valid netplan config and then also installing one package.
...
0
votes
0
answers
133
views
make custom iso of ubuntu
The one thing I want to do is customize Ubuntu to make my own ISO file installation, and one of the things I want to do is enable eno1 (my 1G interface) after installation! Do you know if this is ...
2
votes
0
answers
732
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/...
1
vote
1
answer
1k
views
Is there's a way to switch between linux and windows by commands [duplicate]
I want to automate switching between Linux and windows,
as the default, the approach is to restart the pc then select the windows from the bois
I want to write a command to do this instead
1
vote
4
answers
4k
views
ubuntu 22.04 autoinstall storage section , "autoinstall config did not create needed bootloader partition"
I try to customize storage layout in user-data for autoinstall
here is part of my user-data
storage:
#layout:
# name: direct
config:
- type: disk
match:
size: ...
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 ...
1
vote
1
answer
852
views
how to auto reboot with a interactive section?
the auto installation runs perfectly with customize user-data, but it won't auto reboot when install complete.
I find no documents about reboot in https://ubuntu.com/server/docs/install/autoinstall-...
0
votes
0
answers
33
views
How to run same script on multiples servers
I have some scripts that run some commands and send results to my email. I want to run the same script on multiple servers. How can I do that? I know there is an option "ssh". But I'm not ...
1
vote
0
answers
49
views
How Best to Install a Configuration File Archive?
What tools exist for installing a configuration file archive in one go?
That is, having first booted a fresh Ubuntu installation, being faced with its set of default configuration files, and having an ...
5
votes
1
answer
4k
views
How to fix debconf: unable to initialize frontend: Dialog error w/Packer?
I am using the Packer vsphere-iso builder to build an Ubuntu-18.04 VM on vSphere with a shell provisioner, and when I run either of the following two commands:
sudo apt-get install software-properties-...
2
votes
2
answers
831
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 ...
0
votes
1
answer
43
views
How can I trick my OS/browser into beliving that my mouse click is locked/clicked continuesly?
Ubuntu 20.04. I'm trying to play a single player browser game where I have to move the cursor around in order to quickly move the object. But it requires me to keep a hold on the mouse button in order ...
0
votes
0
answers
29
views
Libreoffice Calc add dupliacte entries
I have a generated csv of items sold with quantity sold, on transaction per line.
There are many transactions of the same items and I would like to automate adding the numbers of the same items.
I ...
0
votes
1
answer
128
views
Trigger the Wi-Fi Hotspot every Time I start up my os
every time I want to open the wifi hotspot to my mobile device I go to settings -> wifi -> Turn on Wifi hotspot, but this start to be boring for me especially when I'm doing this a lot, what I ...
2
votes
0
answers
244
views
Is there a way to toggle the Do Not Disturb Button extension based off a Gnome Calendar description?
The Do Not Disturb Button extension is set to toggle on a keyboard shortcut (super+q). Is there any way to toggle it based on if I have "mute" in the event description in Gnome Calendar?
I ...
0
votes
0
answers
74
views
Plex and Folding at Home
I had Plex and F@H on my old Win7 server but am going to be upgrading and hoping to switch to a Linux environment (Ubuntu). On my old Win system, I used a program called Automate6 to do macro stuff. ...
-1
votes
1
answer
27
views
Is there anyway to pull multiple pictures from an excel sheet at once on my ubuntu
I have this task which will take me forever to finish, about 1000 rows in an excel sheet of pictures names and links in different two columns (1st &3rd columns).
i was thinking if i could use curl ...
1
vote
1
answer
156
views
How to register a command to confirm the option when installing programs?
When installing SageMath through the terminal on Ubuntu 18.04
on command
sudo apt-get install sagemath
I get a notification:
Postfix Configuration
---------------------
Please select the mail server ...
3
votes
1
answer
948
views
Automate move new files after a set period of time
I receive files though a service at odd intervals and need to have them available in one folder for 72 hours before being archived in a different folder. I would like to automate this process. ...
6
votes
1
answer
2k
views
Where does the double-clickable app live on Windows? [closed]
I'm running WSL2 with Ubuntu. I want to be able to open Ubuntu via a voice command.
To do this I run Alexa Connect on my PC to write tasks that automate some PC functionality. All I need to do is link ...
0
votes
1
answer
844
views
What is the quickest way to convert a GeoTIFF file to PNG and crop the output?
I need to automate for a project converting tons of GeoTIFF files to PNG and being able to resize them in 4 equally sized squares.
What would be a program I could use for this?
0
votes
0
answers
178
views
Automating installing Ubuntu Core, without serial port and without signing into account
I am currently busy with a project for standardizing the processes surrounding an embedded device we export as a product. On this device we wish to use Ubuntu Core (UC). However, part of this ...
0
votes
1
answer
399
views
Gnome shell: automating windows and placement
First off, sorry if this isn't the best formed question. I've tried to research the best part of the stack to focus on, but I'm still not 100% sure I've got it.
So, I'll explain the outcome I'm after:
...
2
votes
2
answers
7k
views
How to launch application on startup
I'm pretty new to Ubuntu and recently ran into an interesting issue. I installed Keep Presence (https://github.com/carrot69/keep-presence) to prevent my Intel Compute Stick from idling. What I would ...
1
vote
1
answer
6k
views
assign ip to ubuntu 20.04 during installation (packer/cloud-init context)
I am trying to provision Ubuntu 20.04 through packer and I am trying to use packer's http server to provide the cloud-init configuration. On Ubuntu 18.04 I could do that by preseeding the ip using d-i ...
0
votes
1
answer
224
views
Ansible playbook on ubuntu 20
How to write Ansible Playbook to install different applications on different hosts on Ubuntu 20.04
Conditions
When running a playbook it should ask for the host name (we must give the specific host ...