cp and mv using wildcards and forgetting to specify a destination directory

It has happened to me several times that I used cp or mv with wildcards but I forgot to specify a destination directory. Here is an example of the mistake when collecting logs: ~# mkdir problem_logs ~# cd problem_logs ~/problem_logs# cp -pv /var/log/messages* ‘/var/log/messages’ -> ‘/var/log/messages.1’ You can see that I forgot to write the…

Details

Centos8, run gtk program under sudo privileges: cannot open display: :0

I’m currently struggling when trying to run bleachbit under root privileges on CentOS 8. Using my non-sudo user, there is no problem. When i try to run it as sudo, i get the following error: (bleachbit.py:10145): Gdk-CRITICAL **: 10:04:10.493: gdk_screen_get_root_window: assertion ‘GDK_IS_SCREEN (screen)’ failed No protocol specified Unable to init server: Could not connect: Connection…

Details

Drupal 7 add help text to a form item

I would like to change the help text of an input field. My form id is views-exposed-form-events-page-1. I have a text field that I want the helpful hint to appear below. The field id is edit-field-event-date-value2, I think, based on the html. <div id=”edit-field-event-date-value2-wrapper” class=”views-exposed-widget views-widget-filter-field_event_date_value2″> <label for=”edit-field-event-date-value2″> From </label> <div class=”views-widget”> <div id=”edit-field-event-date-value2-value-wrapper”> <div…

Details

Possible to configure ELB/ALB with Upstream to ECS/Fargate with PHPFPM process?

I’m putting a dockerised service onto ECS/Fargate, on our cluster it works as a typical nginx+phpfpm setup, where nginx is upstreaming connections to phpfpm using port 9000. This is kind of a run-of-the-mill setup for phpfpm applications. Now that I’m moving this service to ECS, using Fargate (which is optional, it just seems a good…

Details

How to apply calibration parameters to an Elo Serial TouchScreen?

In Xubuntu 18.03 I’m trying to apply calibration parameters to a touch screen without success. Here is what I have so far… I can manually attach the device and perform a calibration like this: $ sudo /usr/bin/inputattach –daemon –always -elo /dev/ttyS2 $ xinput set-int-prop “Elo Serial TouchScreen” “Evdev Axis Calibration” 32 0 4095 0 4095…

Details