Code Monkey home page Code Monkey logo

ansible-role-xfce-ubuntu's Introduction

Ubuntu XFCE

  • Ansible role for setting XFCE GUI For Ubuntu 20.04
  • Based on the tutorial How to Use a GUI with Ubuntu Linux on AWS EC2 which is based on an Amazon tutorial that by now is already deleted but the bash script exists in the video description
Original Bash Script

#!/bin/bash
sudo apt update -y &&  sudo apt upgrade -y

sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config

sudo /etc/init.d/ssh restart

# This section was slightly modified to allow for non-interactive installation
sudo apt-get  install xfce4 --no-install-recommends -y

sudo DEBIAN_FRONTEND=noninteractive apt-get install -y lightdm

sudo apt-get install -y xrdp xfce4-goodies tightvncserver

echo xfce4-session > /home/ubuntu/.xsession  

sudo cp /home/ubuntu/.xsession /etc/skel

sudo service xrdp restart

sudo passwd ubuntu


How to use

  • It's expected to pass the packer user password via the variable packer_password so the full command to execute the role can be
ansible-playbook xfce-ubuntu.yaml --extra-vars packer_password=<password>
  • The role was made for AWS Ubuntu Instance, the security Group should enable RDP Port number 3389
  • After the role is executed, you should be able to reach the instance using a remote desktop client tool like Remmina

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.