Showing posts from June, 2017

The proper way to install Ansible on Ubuntu 17.04

Because the ansible version comes with Ubuntu 17.04 is quite all (1.6.2), it may cause you troubles like missing module directory... After a while, I figured that PIP is the best way to install Ansible on Ubuntu 17.04. 1. Install the needed libs: $ sudo apt install libffi-dev libssl-dev libxml2-dev libxslt1-dev openssl-dev python-dev libffi-dev python-pip 2. Then install Ansible: $ sudo pip install ansible 3. Fix  AttributeError : 'module' object has no attribute 'PROTOCOL_SSLv3'    error when running Ansible: 4. Enjoy!

How to fix "AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv3'" err in Ubuntu 17.04

If for some reason you got this error in your Ubuntu 17.04 server: AttributeError : 'module' object has no attribute 'PROTOCOL_SSLv3' ** try this to fix it: $ sudo pip install requests==2.6.0 Or $ sudo pip install --upgrade requests

Set a custom screen resolution in Ubuntu 17.04

In some cases, I have to set my Ubuntu computer to run with a screen resolution that does not show up in the Settings (1366x768 or 16:9, because the monitor does not support it). Here is a pretty neat strick: 1. Check all the support screen sizes and device names: xrandr Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192 VGA-1 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 410mm x 230mm    1024x768      75.03    60.00    800x600       75.00    60.32    640x480       75.00    59.94    720x400       70.08 Remember name of the device which is VGA-1. 2. Run the cvt command to calculate the VESA Coordinated Video Timing modes: cvt 1366 768 # 1368x768 59.88 Hz (CVT) hsync: 47.79 kHz; pclk: 85.25 MHz Modeline "1368x768_60.00"   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync Remember the modeline which is in bold. 3. Create a new mode with the xrandr: sudo xrandr --nemode "1368x768_60.00"