#StackBounty: #ubuntu #graphics-card #multiple-monitors #vga #dvi Getting Monitor to work with ubuntu 14.04

Bounty: 50

I seem to be having a weird problem and hope someone can help me out. I got a high resolution monitor to upgrade from my existing one. Here is the output from xrandr

Screen 0: minimum 320 x 200, current 3200 x 1080, maximum 8192 x 8192
VGA-0 connected 1280x1024+0+56 (normal left inverted right x axis y axis) 338mm x 270mm
1280x1024      60.0*+   75.0  
1152x864       75.0  
1024x768       75.1     70.1     60.0  
832x624        74.6  
800x600        72.2     75.0     60.3  
640x480        75.0     72.8     60.0  
720x400        70.1  
DVI-0 connected primary 1920x1080+1280+0 (normal left inverted right x axis y axis) 600mm x 340mm
3840x2160      30.0 +   25.0     24.0     30.0     24.0  
2560x1440      60.0  
1920x1080      60.0*    59.9     30.0     30.0  
1600x900       60.0  
1280x1024      60.0  
1280x800       59.9  
1152x864       60.0  
1280x720       60.0     59.9  
1024x768       60.0  
800x600        60.3  
720x480        60.0     59.9  
640x480        60.0     59.9  

One of them (the old one) is connected via VGA, whereas the new one is connected via a dvi to hdmi dongle. I’ve an integrated GPU
The output from lspci | grep VGA is

01:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RS880 [Radeon HD 4200]

My question is two fold.

  1. The Radeon HD 4200 supports resolution only upto 1920×1200 per this thread for dvi. Does this mean that if I get a vga to hdmi dongle, I can get to 2560×1600 resolution? Or do I need to find a new graphics card and insert into an open pci slot?
  2. I’m also stuck with a bizarre problem. When I suspend/reboot/wake up etc, I need to have my old monitor connected to the VGA port all the time, else the new monitor does not switch on and just stays blank. This has to be configuration/software related. I also followed instructions listed here to pull in some packages, rebooted. But no luck.

I only want to use my new monitor (no dual monitor setup needed).
Any pointers much appreciated. Thanks in advance.


Get this bounty!!!

#StackBounty: #ubuntu #docker docker-compose run –rm slow startup

Bounty: 50

I get that docker has some overhead and I wouldn’t expect it to be as fast as local bin, but 2 seconds overhead? It seems too much … Once the container is running, the execution itself seems the same.

$ time docker-compose run --rm php-cli php -i > /dev/null
docker-compose run --rm php-cli php -i > /dev/null  0,43s user 0,07s system 23% cpu 2,107 total

$ time php -i > /dev/null
php -i > /dev/null  0,04s user 0,01s system 98% cpu 0,050 total

Even the simple docker hello-world takes more time than I would think is appropriate.

time docker run --rm hello-world > /dev/null
docker run --rm hello-world > /dev/null  0,07s user 0,02s system 9% cpu 0,869 total

I tried stracing the command and it hangs on wait4 most of the time (which I guess is waiting for the docker daemon response? I’m not a pro so please correct me), here is partial output if that helps https://pastebin.com/pdA63zBi.

Is this expected behavior or is something wrong with my setup?


Get this bounty!!!

#StackBounty: #ubuntu #virtual-machines #time-synchronization How to prevent relative time shift after restoring a snapshot in Parallels?

Bounty: 100

I am working with a web-based app on an Ubuntu test/development system running in Parallels. At specific dates and times (taken from the system time) some events happen and things are changed in the database. (e.g., a user account is locked, if password was not changed for a certain time, or the status of an object is changed, if a deadline is passed etc.)

To be able to test specific scenarios, I work with snapshots in Parallels to store the state of the system at several key points in time. It can happen that after several months I need to return to a specific point in time to test a specific scenario on the state back then.

My problem is that after restoring the snapshot, the system date is as I want it to be (namely equal to the datetime when the snapshot was taken).

But after several seconds to minutes, the system time changes to some point in time between the real time and the expected (snapshot) time. I have the impression that it is set to the time that has passed relatively. E.g., if I took the snapshot on 2018-02-01 (real time) with the system date of the Ubuntu guest being 2018-01-01 (guest time) and I restore the snapshot on 2018-03-01 (real time), then the Ubuntu guest will eventually be set to 2018-02-01 (guest time) after some minutes.

What I have done so far:

  • Switched off Parallels time sync (according to https://kb.parallels.com/113271)
  • Uninstalled ntp and ntpdate
  • Disabled Automatic Date&Time and Automatic Timezone in Ubuntu desktop settings

The problem seems to be related to hwclock. As an example, I have restored a snapshot from 2018-01-25 (guest time) yesterday, on 2018-05-25 (real time). I executed (immediately after restoring the snapshot):

date ; 
hwclock --show ; 
date -s 2018-01-26 ; 
hwclock --systohc ; 
hwclock --set --date 2018-01-26 ; 
hwclock --show ;

This results in the following output:

Thu Jan 25 18:17:49 CET 2018
2018-03-09 01:01:27.249216+0100
Fri Jan 26 00:00:00 CET 2018
2018-03-09 01:01:27.775701+0100

If I wait some time, the system time will eventually change to the hwclock time – I have not found out why. I also don’t understand why the attempts to set the hwclock time does not work (no error is shown, but the new time is ignored…)

Finally, I also have checked the syslog but there is no hint about the changed date. It just prints an entry for the old date and the next entry is with the new date, no indication what caused the date change.

What have I missed?


Get this bounty!!!

#StackBounty: #ubuntu #ansible No package matching 'docker-ce' is available with ansible

Bounty: 50

On ubuntu 18.04 I am running this ansible (version 2.5.1) role:

---
- name: Add Docker apt repository key.
  apt_key:
    url: "https://download.docker.com/linux/ubuntu/gpg"
    state: present

- name: gather facts
  setup:    

- name: Set the stable docker repository
  apt_repository: 
    repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename }} stable"
    state: present
    update_cache: yes    

- name: Install Docker
  apt:
    name: docker-ce
    state: present

With this playbook:

---


- hosts: localhost
  connection: local
  gather_facts: False
  become: true

  pre_tasks:
  - name: Install python for Ansible
    raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)

  tasks:  
  - name: Install list of packages
    apt: name={{item}} state=latest
    with_items:
         - nano
         - git
         - htop
         - gitg

  roles:
      - {role: 'docker', tags: 'docker'}

But I get the following error:

PLAY [localhost] *******************************************************************************************************************************

TASK [Install python for Ansible] **************************************************************************************************************
changed: [localhost]

TASK [docker : Add Docker apt repository key.] *************************************************************************************************
ok: [localhost]

TASK [docker : gather facts] *******************************************************************************************************************
ok: [localhost]

TASK [docker : Set the stable docker repository] ***********************************************************************************************
ok: [localhost]

TASK [docker : Install Docker] *****************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "No package matching 'docker-ce' is available"}
    to retry, use: --limit @/home/user/repos/ansible-vps/src/ansible_create_workstation.retry

PLAY RECAP *************************************************************************************************************************************
localhost                  : ok=4    changed=1    unreachable=0    failed=1   

So for some reason the docker-ce package cannot be found, has that changed recently or is it something else I am doing wrong?

Also when I look in: /etc/apt/sources.list it does not contain a:

deb [arch=amd64] https://download.docker.com/linux/ubuntu  ...

entry.


Get this bounty!!!

#StackBounty: #ubuntu #ansible No package matching 'docker-ce' is available with ansible

Bounty: 50

On ubuntu 18.04 I am running this ansible (version 2.5.1) role:

---
- name: Add Docker apt repository key.
  apt_key:
    url: "https://download.docker.com/linux/ubuntu/gpg"
    state: present

- name: gather facts
  setup:    

- name: Set the stable docker repository
  apt_repository: 
    repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename }} stable"
    state: present
    update_cache: yes    

- name: Install Docker
  apt:
    name: docker-ce
    state: present

With this playbook:

---


- hosts: localhost
  connection: local
  gather_facts: False
  become: true

  pre_tasks:
  - name: Install python for Ansible
    raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)

  tasks:  
  - name: Install list of packages
    apt: name={{item}} state=latest
    with_items:
         - nano
         - git
         - htop
         - gitg

  roles:
      - {role: 'docker', tags: 'docker'}

But I get the following error:

PLAY [localhost] *******************************************************************************************************************************

TASK [Install python for Ansible] **************************************************************************************************************
changed: [localhost]

TASK [docker : Add Docker apt repository key.] *************************************************************************************************
ok: [localhost]

TASK [docker : gather facts] *******************************************************************************************************************
ok: [localhost]

TASK [docker : Set the stable docker repository] ***********************************************************************************************
ok: [localhost]

TASK [docker : Install Docker] *****************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "No package matching 'docker-ce' is available"}
    to retry, use: --limit @/home/user/repos/ansible-vps/src/ansible_create_workstation.retry

PLAY RECAP *************************************************************************************************************************************
localhost                  : ok=4    changed=1    unreachable=0    failed=1   

So for some reason the docker-ce package cannot be found, has that changed recently or is it something else I am doing wrong?

Also when I look in: /etc/apt/sources.list it does not contain a:

deb [arch=amd64] https://download.docker.com/linux/ubuntu  ...

entry.


Get this bounty!!!

#StackBounty: #ubuntu #pycharm #ubuntu-18.04 PyCharm won't attach to process on Ubuntu 18.04

Bounty: 100

I’m having this issue where PyCharm 2018.1.3 (and previous versions) doesn’t allow me to Attach to Local Process even though I’ve changed the ptrace_scope setting outlined in the documentation here:

https://www.jetbrains.com/help/pycharm/attaching-to-local-process.html

It just spins while waiting to attach, and it eventually just gives up and kills the debugger process.

I’ve restarted and it still just doesn’t work. It did work prior to upgrading (16.04 and 17.10), but every 18.04 VM that I’ve built has this issue.

Does anyone know if there is a new setting, or configuration file to edit on this new version of Ubuntu?


Get this bounty!!!

#StackBounty: #ubuntu #pycharm #ubuntu-18.04 PyCharm won't attach to process on Ubuntu 18.04

Bounty: 100

I’m having this issue where PyCharm 2018.1.3 (and previous versions) doesn’t allow me to Attach to Local Process even though I’ve changed the ptrace_scope setting outlined in the documentation here:

https://www.jetbrains.com/help/pycharm/attaching-to-local-process.html

It just spins while waiting to attach, and it eventually just gives up and kills the debugger process.

I’ve restarted and it still just doesn’t work. It did work prior to upgrading (16.04 and 17.10), but every 18.04 VM that I’ve built has this issue.

Does anyone know if there is a new setting, or configuration file to edit on this new version of Ubuntu?


Get this bounty!!!

#StackBounty: #ubuntu #pycharm #ubuntu-18.04 PyCharm won't attach to process on Ubuntu 18.04

Bounty: 100

I’m having this issue where PyCharm 2018.1.3 (and previous versions) doesn’t allow me to Attach to Local Process even though I’ve changed the ptrace_scope setting outlined in the documentation here:

https://www.jetbrains.com/help/pycharm/attaching-to-local-process.html

It just spins while waiting to attach, and it eventually just gives up and kills the debugger process.

I’ve restarted and it still just doesn’t work. It did work prior to upgrading (16.04 and 17.10), but every 18.04 VM that I’ve built has this issue.

Does anyone know if there is a new setting, or configuration file to edit on this new version of Ubuntu?


Get this bounty!!!

#StackBounty: #ubuntu #pycharm #ubuntu-18.04 PyCharm won't attach to process on Ubuntu 18.04

Bounty: 100

I’m having this issue where PyCharm 2018.1.3 (and previous versions) doesn’t allow me to Attach to Local Process even though I’ve changed the ptrace_scope setting outlined in the documentation here:

https://www.jetbrains.com/help/pycharm/attaching-to-local-process.html

It just spins while waiting to attach, and it eventually just gives up and kills the debugger process.

I’ve restarted and it still just doesn’t work. It did work prior to upgrading (16.04 and 17.10), but every 18.04 VM that I’ve built has this issue.

Does anyone know if there is a new setting, or configuration file to edit on this new version of Ubuntu?


Get this bounty!!!

#StackBounty: #ubuntu #ansible No package matching 'docker-ce' is available with ansible

Bounty: 50

On ubuntu 18.04 I am running this ansible (version 2.5.1) role:

---
- name: Add Docker apt repository key.
  apt_key:
    url: "https://download.docker.com/linux/ubuntu/gpg"
    state: present

- name: gather facts
  setup:    

- name: Set the stable docker repository
  apt_repository: 
    repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename }} stable"
    state: present
    update_cache: yes    

- name: Install Docker
  apt:
    name: docker-ce
    state: present

With this playbook:

---


- hosts: localhost
  connection: local
  gather_facts: False
  become: true

  pre_tasks:
  - name: Install python for Ansible
    raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)

  tasks:  
  - name: Install list of packages
    apt: name={{item}} state=latest
    with_items:
         - nano
         - git
         - htop
         - gitg

  roles:
      - {role: 'docker', tags: 'docker'}

But I get the following error:

PLAY [localhost] *******************************************************************************************************************************

TASK [Install python for Ansible] **************************************************************************************************************
changed: [localhost]

TASK [docker : Add Docker apt repository key.] *************************************************************************************************
ok: [localhost]

TASK [docker : gather facts] *******************************************************************************************************************
ok: [localhost]

TASK [docker : Set the stable docker repository] ***********************************************************************************************
ok: [localhost]

TASK [docker : Install Docker] *****************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "No package matching 'docker-ce' is available"}
    to retry, use: --limit @/home/user/repos/ansible-vps/src/ansible_create_workstation.retry

PLAY RECAP *************************************************************************************************************************************
localhost                  : ok=4    changed=1    unreachable=0    failed=1   

So for some reason the docker-ce package cannot be found, has that changed recently or is it something else I am doing wrong?

Also when I look in: /etc/apt/sources.list it does not contain a:

deb [arch=amd64] https://download.docker.com/linux/ubuntu  ...

entry.


Get this bounty!!!