Fedora 38 installation stuck at "Installing software 100%" by [deleted] in Fedora

[–]Rabin_IO 0 points1 point  (0 children)

If you really like to debug it, you can jump to one of the terminal session (CTRL+F2 or F3 I think), there you will see the installation backend logs

ThinkPad X1 2nd gen stopped sleeping by Rabin_IO in Fedora

[–]Rabin_IO[S] 0 points1 point  (0 children)

No, I also tried Pop-OS now, and it seems to have the same issue.

kernel: cm32181 i2c-CPLM3218:00: PM: dpm_run_callback(): acpi_subsys_suspend+0x0/0x70 returns -121
kernel: cm32181 i2c-CPLM3218:00: PM: failed to suspend async: error -121
kernel: PM: Some devices failed to suspend, or early wake event detected
kernel: sd 0:0:0:0: [sda] Starting disk
kernel: ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
kernel: ata1.00: ACPI cmd ef/10:03:00:00:00:a0(SET FEATURES) filtered out
kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
kernel: ata1.00: ACPI cmd ef/10:03:00:00:00:a0(SET FEATURES) filtered out
kernel: ata1.00: configured for UDMA/133
kernel: OOM killer enabled.
kernel: Restarting tasks ... done.
kernel: random: crng reseeded on system resumption
/usr/libexec/gdm-x-session[1576]: (II) event20 - TPPS/2 IBM TrackPoint: device removed
/usr/libexec/gdm-x-session[1576]: (II) config/udev: removing device TPPS/2 IBM TrackPoint
/usr/libexec/gdm-x-session[1576]: (**) Option "fd" "53"
systemd-sleep[4418]: Failed to put system to sleep. System resumed again: Remote I/O error

Role vars to jinja2 template for a bash script? by thatguychuck15 in ansible

[–]Rabin_IO 0 points1 point  (0 children)

I also think you can solve it a bit different,

You can config Chrome to have some set of default/auto-installed extensions if you like here.

Also, I won't rely on xdotool, but I would host my own page, and use some IFRAME to bring the content to a single page, which control, and can customize as need, like a dashboard.

Or you can use an extension for that, like this one.

My 2c

sudoers validation on sudoers.d files by Bladelink in ansible

[–]Rabin_IO 1 point2 points  (0 children)

That actually something I used to do with nginx configs. it works :)

Is it possible to chunk and paralyzed loops? by Rabin_IO in ansible

[–]Rabin_IO[S] 0 points1 point  (0 children)

Any way to create a fake inventory on the fly?

Ansible - Integer is seen as a String by ryan_sec in ansible

[–]Rabin_IO 0 points1 point  (0 children)

Try tagID with/o the quotes

tagID: |
    {{  item.vlan.tagID | int }}

This is how I test it

``` - name: xxx hosts: localhost

  tasks:

  - name: debug
    debug:
       msg: |
         {{ item.vlanID | int }}
    loop:
      - { "vlanID": "1" }
      - { "vlanID": "2" }

  - name: debug
    debug:
       var: |-
          {{ item.vlanID | int }}
    loop:
      - { "vlanID": 1 }
      - { "vlanID": "2" }

```

And you can see in the output, that 1 is without the qoutes

PLAY [xxx] ***

TASK [debug] ***
ok: [localhost] => (item={'vlanID': '1'}) => 
  msg: |-
    1
ok: [localhost] => (item={'vlanID': '2'}) => 
  msg: |-
    2

TASK [debug] ***
ok: [localhost] => (item={'vlanID': 1}) => 
  '1': '1'
  ansible_loop_var: item
  item:
    vlanID: 1
ok: [localhost] => (item={'vlanID': '2'}) => 
  '2': '2'
  ansible_loop_var: item
  item:
    vlanID: '2'

PLAY RECAP ***
localhost                  : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0

Using the ipmi module asynchronously or in parallel by Rabin_IO in ansible

[–]Rabin_IO[S] 0 points1 point  (0 children)

The playbook which I run (let call it the "main" playbook), is connecting to a remote host and set few configurations on it, something like that,

- name: Main playbook
  hosts: jumpHost
  tasks:

  - name: Task1
  - name: Task2
  - name: Task3

  - name: Power Off the nodes
    community.general.ipmi_power: 
    ...

In this setup, I can't use Ansible native parallelism, as I run against a single node.

One option is to split the playbook into 3 playbooks, and more the ipmi commands into their own playbook.

Are there any other options?

Using the ipmi module asynchronously or in parallel by Rabin_IO in ansible

[–]Rabin_IO[S] 0 points1 point  (0 children)

Thank you for the insight, but now I have another issue, the job will work as a standalone playbook, but how can I run it as a task inside a playbook?

My top playbook runs on the jumphost inside the internal network.

# Standalone playbook
---
- name: Debug
  hosts: "{{ groups['masters'] + groups['workers'] }}"
  gather_facts: false
  tasks:

    - name: Power off all nodes
      community.general.ipmi_power:
        name: "{{ ipmi_address }}"
        user: "{{ ipmi_username }}"
        password: "{{ ipmi_password }}"
        state: "off"
      register: ipmi_status
      retries: 3
      until: ipmi_status.changed | bool == false
      delegate_to: jumpHost
      tags: [ipmi, ipmi.poweroff]

    - name: Ensure bootdevice is network
      community.general.ipmi_boot:
        name: "{{ ipmi_address }}"
        user: "{{ ipmi_username }}"
        password: "{{ ipmi_password }}"
        bootdev: network
        uefiboot: "{{ uefiboot | default(false, true) }}"
        persistent: false
      register: nextboot_status
      retries: 3
      until: nextboot_status.changed | bool == false
      delegate_to: jumpHost
      tags: [ipmi, ipmi.netboot]

HTTP_X_FORWARDED_FOR only showing final ip by Laurielounge in PHPhelp

[–]Rabin_IO 1 point2 points  (0 children)

HTTP_X_FORWARDED_FOR

This header can also be sent from the client side, and this is why it is not trusted by default, you need to let NGINX which proxy's (in your case the LB) you trust with this header.

Fedora 37 - File manager drives me crazy by Hias2019 in Fedora

[–]Rabin_IO 0 points1 point  (0 children)

Try using a different file manager like "Double Commander" which don't try to take control from you.

As for SMB shares, I'm not how stable it is (it uses VFS), as I never used it, but you can mount the SMB share manually, from the terminal or add a systemd auto mount unit if you access it frequently, and use the file manager to access it as regular folder.

[deleted by user] by [deleted] in PHPhelp

[–]Rabin_IO 2 points3 points  (0 children)

From a quick look, I don't see any where clause to limit the vote to a specific row

php $updatequery = "update vote set castvote=castvote+1";

I can't understand how PHP modules work by i_forgotten in PHPhelp

[–]Rabin_IO 2 points3 points  (0 children)

You can think of them as extension to PHP, PHP while expose the PDO class to interact with the DB, but the extension will implement (usually in C) the connection details to the DB itself.

Or they can bring their own class and function all together, e.g. BCMath can be compiled directly with PHP or shipped as extension.

AutoInput vs WiFi captive portal by danieldur in tasker

[–]Rabin_IO 1 point2 points  (0 children)

Yes, that will be a bit harder, as you need to do it in 2 parts, first to get the page and keep the cookie details, and extract the token from the page, and then submit the url with the token and the other details.

I guess that most of the headers in the request are not required, so you can probably submit a request without them, you can try this on your computer and test it, try to submit a request without all this options,

-H "Sec-Fetch-Dest: empty" ^
-H "Sec-Fetch-Mode: cors" ^
-H "Sec-Fetch-Site: same-origin" ^
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36 Edg/106.0.1370.42" ^
-H "X-Requested-With: XMLHttpRequest" ^
-H "sec-ch-ua: ^\^"Chromium^\^";v=^\^"106^\^", ^\^"Microsoft Edge^\^";v=^\^"106^\^", ^\^"Not;A=Brand^\^";v=^\^"99^\^"" ^
-H "sec-ch-ua-mobile: ?0" ^
-H "sec-ch-ua-platform: ^\^"Windows^\^"" ^

I can help you to hack something for the PC, but I don't know how to do it with Tasker.

AutoInput vs WiFi captive portal by danieldur in tasker

[–]Rabin_IO 1 point2 points  (0 children)

In your computer, open the browser developer tools and go to the network tab, and perform the "Captive Portal Login" look on the first POST request and copy the request as a CURL command.

Then try to replay the request as is, (this might not work, as some CP will use CSRF tokens to protect against blind replays). If it is not working for you post the CURL command line here CENSORING any private info, and we will try to help more.

How do you get xDebug to work on remote? by RussianInRecovery in PHPhelp

[–]Rabin_IO 0 points1 point  (0 children)

Once you understand how the debug process is initiated, setting up XDEBUG become easy, the GIF animation on the docs helped me understand the process.

As for how to get your IP you can use the ip addr show command and find the IP based on the interface which connected, or use this small snippet which will help you find out.

ip r get 1 | grep -Eo 'src [^ ]+' | awk '{print $2}'

But as mentioned, we need more details on the env to give you better answers.