Code Monkey home page Code Monkey logo

ubuntu-dev-machine-setup's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ubuntu-dev-machine-setup's Issues

Remove powerline in favour of tmux-plugin-manager

Remove powerline packages (powerline, fonts-powerline) and use tmux-plugin-manager with updated .tmux.conf file

Remove installation of xclip package in favor of xsel

Remove line source "/usr/share/powerline/bindings/tmux/powerline.conf" from .tmux.conf

Update the tmux screenshot in README

Use Virtualbox official repo for installing Virtualbox

Distro repo often contains older versions of virtualbox. Using the Virtualbox official repo installs the latest version of virtualbox

wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib"
sudo apt update && sudo apt install virtualbox

Install virtualbox extension pack

Oracle tries to make sure you read and agree to their awesome license agreement before installing the package. This makes it difficult for automated installs. Sample code below needs to be integrated in the playbooks:

- block:
  - name: accept licence virtualbox ext pack
    debconf:
      name: "virtualbox-ext-pack"
      question: "virtualbox-ext-pack/license"
      value: "true"
      vtype: "select"

  - name: install virtualbox ext pack
    apt:
      name: "virtualbox-ext-pack"

  when: not virtual_machine_mode

Set the default editor to vim

The default editor is set to nano. Update this to point this to vim using the following:

sudo update-alternatives --config editor

and select vim

Install burp suite

Sample playbook:

---
- hosts: all
  become: yes
  tasks:

    - name: Install required dependencies
      apt:
        name:
          - openjdk-11-jre
        state: present
        update_cache: yes

    - name: Download Burp Suite Community Edition
      get_url:
        url: https://portswigger.net/burp/releases/download?product=community&type=linux
        dest: /tmp/burpsuite_community_linux.sh
        mode: 0755

    - name: Install Burp Suite Community Edition
      command: /tmp/burpsuite_community_linux.sh --prefix=/opt/burpsuite

    - name: Create symbolic link for Burp Suite
      file:
        src: /opt/burpsuite/burpsuite_community.sh
        dest: /usr/local/bin/burpsuite
        state: link

    - name: Create Burp Suite desktop entry
      copy:
        content: |
          [Desktop Entry]
          Name=Burp Suite Community Edition
          Exec=/opt/burpsuite/burpsuite_community.sh
          Terminal=false
          Type=Application
          Categories=Development;
        dest: /usr/share/applications/burpsuite.desktop
        mode: 0644

Error when running the ansible playbook

Fresh Install Ubuntu 20.04.01

The command I use:
ansible-playbook main.yml -e "{ laptop_mode: False }" -e "{ virtual_machine_mode: False }" -e "local_username=$(id -un)" -K

Errors


TASK [Gathering Facts] *********************************************************
ok: [localhost]

TASK [base : clear the existing /tmp dir (1/5)] ********************************
changed: [localhost]

TASK [base : copy systemd file (2/5)] ******************************************
ok: [localhost]

TASK [base : create dir /etc/systemd/system/tmp.mount.d (3/5)] *****************
ok: [localhost]

TASK [base : create tmp.mount custom options file (4/5)] ***********************
ok: [localhost]

TASK [base : start and enable tmp.mount on boot (5/5)] *************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Service is in unknown state", "status": {}}

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

Anything I should do first?

Optionally enable additional apparmor profiles in enforce mode

Provide an option during ansible playbook run to enable additional apparmor profiles

Manual installation is as follows:

sudo apt install apparmor-profiles apparmor-utils
sudo aa-enforce /etc/apparmor.d/*

# verify
sudo aa-status

Update the README as well

Add a default .tmux.conf

Add a default .tmux.conf which, when tmux is invoked, will:

  • show powerline statusbar
  • configure mouse support

(Update README.md)

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.