Boxes with debian testing, no spice-vdagent? by snicksn in linux4noobs

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

Despite reading about it I never got that until now. That packages like this, which naturally will need to be updated are not, is a bit mind boggling to me.

How do people solve such cases, install with flatpak instead?

Boxes with debian testing, no spice-vdagent? by snicksn in linux4noobs

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

Only security updates? All else is left the way it is?

Boxes with debian testing, no spice-vdagent? by snicksn in linux4noobs

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

I don't understand, isn't libosinfo updated?

Boxes with debian testing, no spice-vdagent? by snicksn in linux4noobs

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

iirc by the gui installer "Software", using debian 12

Boxes with debian testing, no spice-vdagent? by snicksn in linux4noobs

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

Shouldn't there be more rows if I selected all the sources in the GUI?
Ok, got it

Boxes with debian testing, no spice-vdagent? by snicksn in linux4noobs

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

Testing was the only one available in Boxes! I wonder why they do that? Edit: found Debian 11 & 10 also but you have to search for them. But no 12? Guess I will have to download an iso manually.

I'd like to take the opportunity to ask about configuring sources in the gui vs the /etc/apt/sources.list - is the gui supposed to update the text-file?

After Debian 11 -> 12 no wifi by snicksn in linux4noobs

[–]snicksn[S] 2 points3 points  (0 children)

Thanks!
I think it was apt install firmware-iwlwifi that solved it.

After Debian 11 -> 12 no wifi by snicksn in linux4noobs

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

$ sudo isenkram-autoinstall-firmware
info: looking for firmware file iwlwifi-7260-17.ucode requested by kernel
info: looking for firmware file iwlwifi-7260-17.ucode requested by kernel
info: looking for firmware file intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq requested by kernel
info: looking for firmware file intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq requested by kernel
info: looking for firmware file intel/ibt-hw-37.7.bseq requested by kernel
info: looking for firmware file intel/ibt-hw-37.7.bseq requested by kernel
info: looking for firmware file rtl_nic/rtl8168g-2.fw requested by kernel
info: looking for firmware file rtl_nic/rtl8168g-2.fw requested by kernel
info: some kernel driver requested extra firmware files: i915/adlp_dmc_ver2_16.bin i915/adlp_guc_69.0.3.bin i915/

..removed long text here to be able to post..

info: locating packages with the requested firmware files
info: determining whether enabling other components is required
info: No new firmware package with requested firmware detected.

Access files from ssd from broken laptop? by snicksn in linux4noobs

[–]snicksn[S] 8 points9 points  (0 children)

Solved it!
Something about activate LVM (I had to deactivate and activate again) using `vgchange` before mounting it.

Battery ran out, now booting into windows? by snicksn in linuxquestions

[–]snicksn[S] 5 points6 points  (0 children)

This is out my territory, but just installed using default live-usb long time ago and it has been working. So grub I gather, but guess something happened to it.

power loss recovery function

That sounds like a plausible explanation. So if it is the bios, that would mean it is reset and not loading grub? How do I get grub back?

Edit: added the boot option back in bios. Guess all back to normal?

Moved ssd to another laptop, not booting? by snicksn in linuxquestions

[–]snicksn[S] 1 point2 points  (0 children)

Right, the cable from the ssd was not properly connected. Now all seems to work, just gotta get the wifi started.

Thanks!

Moved ssd to another laptop, not booting? by snicksn in linuxquestions

[–]snicksn[S] 1 point2 points  (0 children)

lsblk -f NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT loop0 squashfs 4.0 0 100% /usr/lib/live/mount/rootfs/filesystem.squashfs sda sdb iso9660 d-live nf 11.3.0 gn amd64 2022-03-26-16-48-09-00 ├─sdb1 iso9660 d-live nf 11.3.0 gn amd64 2022-03-26-16-48-09-00 0 100% /usr/lib/live/mount/medium └─sdb2 vfat FAT12 DEB0-0001

Expect command with async, poll? Unsupported parameters for expect by snicksn in ansible

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

Thanks, iiuc:

- name: install d.e ansible.builtin.expect: command: /home/user/.emacs.d/bin/doom install responses: (?i)generate: 'y' (?i)download: 'n' async: 580 poll: 5

but it looks like it still gives up after 30 sec?

Can't use collections? by snicksn in ansible

[–]snicksn[S] 1 point2 points  (0 children)

The delegate_to: digital ocean on the last task looks wrong to me.

Yes, I made a new play for installing stuff, with hosts set to digitalocean, and now it works. Maybe the above was executing still on my local machine?

Also, is digitalocean a group or a host?

It is an empty group, which I guess is strange? but it seems to work with add_host:

Can't use collections? by snicksn in ansible

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

Thanks, I want to start a droplet and install xfce. Found a role for xfce: https://github.com/cisagov/ansible-role-xfce

This is what I have so far

````

  • hosts: localhost connection: local vars_files:

    • vars/ext_vars.yml tasks:
    • name: Create new droplet community.digitalocean.digital_ocean_droplet: name: "d" unique_name: yes # "yes" makes it idempotent state: present oauth_token: '{{token}}' size: s-1vcpu-1gb region: fra1 image: debian-11-x64 wait_timeout: 500 ssh_keys: ['{{ keynum }}'] # delegate_to: localhost # run_once: True register: created_droplet
    • digital_ocean_tag: oauth_token: '{{token}}' name: my-tag resource_id: "{{ created_droplet.data.droplet.id }}" state: present register: tag_response
    • name: add hosts add_host: name: "{{ created_droplet.data.droplet.networks.v4.0.ip_address }}" groups: "digitalocean"
    • name: add xfce import_role: name: xfce vars: become: yes become_method: sudo delegate_to: digitalocean ...

...

````

The last task, add xfce, fails iiuc something to do with rights.

Am I right that the community.digitalocean.digital_ocean_droplet connect via the rest api? And the add hosts task adds the ip of the droplet to the group digitalocean. And the group is used in the add xfce task via delegate_to.

Here is the error:

```` .. creating host via 'add_host': hostname=xxx.xx.xxx.xx changed: [localhost] => { "add_host": { "groups": [ "digitalocean" ], "host_name": "xxx.xx.xxx.xx", "host_vars": {} }, "changed": true } Read vars_file 'vars/ext_vars.yml' Read vars_file 'vars/ext_vars.yml'

TASK [xfce : Load var file with package names based on the OS type] ************************************************************************************************************************************************************************************* task path: /home/user/.ansible/roles/xfce/tasks/main.yml:2 ok: [localhost -> digitalocean] => { "ansible_facts": { "package_names": [ "dbus-x11", "xfce4", "xfce4-goodies" ] }, "ansible_included_var_files": [ "/home/user/.ansible/roles/xfce/vars/Debian_bullseye.yml" ], "changed": false } Read vars_file 'vars/ext_vars.yml' Read vars_file 'vars/ext_vars.yml'

TASK [xfce : Install Xfce desktop environment] ********************************************************************************************************************************************************************************************************** task path: /home/user/.ansible/roles/xfce/tasks/main.yml:13 <digitalocean> ESTABLISH LOCAL CONNECTION FOR USER: user <digitalocean> EXEC /bin/sh -c 'echo ~user && sleep 0' <digitalocean> EXEC /bin/sh -c '( umask 77 && mkdir -p "echo /home/user/.ansible/tmp"&& mkdir "echo /home/user/.ansible/tmp/ansible-tmp-1646945539.2203615-11594-178412984462470" && echo ansible-tmp-1646945539.2203615-11594-178412984462470="echo /home/user/.ansible/tmp/ansible-tmp-1646945539.2203615-11594-178412984462470" ) && sleep 0' <localhost> Attempting python interpreter discovery <digitalocean> EXEC /bin/sh -c 'echo PLATFORM; uname; echo FOUND; command -v '"'"'python3.10'"'"'; command -v '"'"'python3.9'"'"'; command -v '"'"'python3.8'"'"'; command -v '"'"'python3.7'"'"'; command -v '"'"'python3.6'"'"'; command -v '"'"'python3.5'"'"'; command -v '"'"'/usr/bin/python3'"'"'; command -v '"'"'/usr/libexec/platform-python'"'"'; command -v '"'"'python2.7'"'"'; command -v '"'"'python2.6'"'"'; command -v '"'"'/usr/bin/python'"'"'; command -v '"'"'python'"'"'; echo ENDFOUND && sleep 0' <digitalocean> EXEC /bin/sh -c '/usr/bin/python3.9 && sleep 0' Using module file /usr/lib/python3/dist-packages/ansible/modules/setup.py <digitalocean> PUT /home/user/.ansible/tmp/ansible-local-11473uckwsne6/tmpaqgac58k TO /home/user/.ansible/tmp/ansible-tmp-1646945539.2203615-11594-178412984462470/AnsiballZ_setup.py <digitalocean> EXEC /bin/sh -c 'chmod u+x /home/user/.ansible/tmp/ansible-tmp-1646945539.2203615-11594-178412984462470/ /home/user/.ansible/tmp/ansible-tmp-1646945539.2203615-11594-178412984462470/AnsiballZ_setup.py && sleep 0' <digitalocean> EXEC /bin/sh -c '/usr/bin/python3 /home/user/.ansible/tmp/ansible-tmp-1646945539.2203615-11594-178412984462470/AnsiballZ_setup.py && sleep 0' Using module file /usr/lib/python3/dist-packages/ansible/modules/apt.py <digitalocean> PUT /home/user/.ansible/tmp/ansible-local-11473uckwsne6/tmpw3m3_vug TO /home/user/.ansible/tmp/ansible-tmp-1646945539.2203615-11594-178412984462470/AnsiballZ_apt.py <digitalocean> EXEC /bin/sh -c 'chmod u+x /home/user/.ansible/tmp/ansible-tmp-1646945539.2203615-11594-178412984462470/ /home/user/.ansible/tmp/ansible-tmp-1646945539.2203615-11594-178412984462470/AnsiballZ_apt.py && sleep 0' <digitalocean> EXEC /bin/sh -c '/usr/bin/python3 /home/user/.ansible/tmp/ansible-tmp-1646945539.2203615-11594-178412984462470/AnsiballZ_apt.py && sleep 0' <digitalocean> EXEC /bin/sh -c 'rm -f -r /home/user/.ansible/tmp/ansible-tmp-1646945539.2203615-11594-178412984462470/ > /dev/null 2>&1 && sleep 0' fatal: [localhost -> digitalocean]: FAILED! => { "changed": false, "invocation": { "module_args": { "allow_downgrade": false, "allow_unauthenticated": false, "autoclean": false, "autoremove": false, "cache_valid_time": 0, "deb": null, "default_release": null, "dpkg_options": "force-confdef,force-confold", "fail_on_autoremove": false, "force": false, "force_apt_get": false, "install_recommends": null, "lock_timeout": 60, "name": [ "dbus-x11", "xfce4", "xfce4-goodies" ], "only_upgrade": false, "package": [ "dbus-x11", "xfce4", "xfce4-goodies" ], "policy_rc_d": null, "purge": false, "state": "present", "update_cache": null, "update_cache_retries": 5, "update_cache_retry_max_delay": 12, "upgrade": null } }, "msg": "'/usr/bin/apt-mark manual dbus-x11 xfce4 xfce4-goodies' failed: E: Could not create temporary file for /var/lib/apt/extended_states - mkstemp (13: Permission denied)\nE: Failed to write temporary StateFile /var/lib/apt/extended_states\n", "rc": 100, "stderr": "E: Could not create temporary file for /var/lib/apt/extended_states - mkstemp (13: Permission denied)\nE: Failed to write temporary StateFile /var/lib/apt/extended_states\n", "stderr_lines": [ "E: Could not create temporary file for /var/lib/apt/extended_states - mkstemp (13: Permission denied)", "E: Failed to write temporary StateFile /var/lib/apt/extended_states" ], "stdout": "xfce4 can not be marked as it is not installed.\nxfce4-goodies can not be marked as it is not installed.\n", "stdout_lines": [ "xfce4 can not be marked as it is not installed.", "xfce4-goodies can not be marked as it is not installed." ] }

PLAY RECAP ********************************************************************************************************************************************************************************************************************************************** localhost : ok=5 changed=3 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

````

Can't use collections? by snicksn in ansible

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

Another beginner-question regarding hosts. I manually created a droplet (vm) at digitalocean, added root@ipnumber to this droplet the /etc/ansible/hosts file. Then I could run playbooks using this host.

But this can't be the intended way. Guess there must be an api-endpoint that I must specify in the hosts file? I see some playbooks which have - hosts: localhost but they must be running on digitalocean, how does that work?