Coder Social home page Coder Social logo

francois-le-ko4la / master-ubuntu Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 26 KB

This script makes it possible to automate the tasks to be performed after a fresh ubuntu installation therfore you can homogenize the configuration of several Ubuntu PCs.

License: GNU General Public License v3.0

Python 100.00%
python-script ppa install ubuntu automation

master-ubuntu's Introduction

master-ubuntu

Note for developers

This script is my first Python script. All is not written according to the real pythonic way of coding...

Why ?

This script makes it possible to automate the tasks to be performed after a fresh ubuntu installation therfore you can homogenize the configuration of several Ubuntu PCs.

This script allows you to:

  • Update/upgrade
  • Make a "virtual drive (TMPFS)" in order to store apt archives
  • Disable the swap
  • Install packages
  • Fix Microsoft fonts setup
  • Setup unity environment

You can use, modify, change, do your coffee,... ON YOUR OWN RISKS !!! This script is provided in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

Install

Copy python script and json in your home directory.

Command line options

usage: sudo master_ubuntu_v1.0.py [-h] [-f FILE] [-o FILE] [-v] {all,menu,gui} ...

Use -h option to get usage.

Interface

We can:

  • Launch all tasks with a progress bar
  • Launch all tasks with log
  • Select the task with a menu (terminal/console)
  • Select the task with a GUI

When all the tasks are finished, you can check the log file (/tmp/masterUbuntu.log). The log file can be changed using the -o option.

Settings

Settings are provided by mysetup.json. You can change this file according to your own needs. You can define another file using -f option.

Please, if you change the options then follow these rules :

  • Don't change the GUI part
  • You can add/remove package but a package must be inside a category (Google, Dev ....)
  • Inside a category, you must provide a key. This key must be unique.
        "package": {
                "Google":{
                        "1": {
                                "KEY": "https://dl-ssl.google.com/linux/linux_signing_key.pub",
                                "LABEL": "Chrome",
                                "PKG": "google-chrome-stable",
                                "PPA": "http://dl.google.com/linux/chrome/deb/",
                                "function": "installPKG",
                                "run": true
                        }
                }

A package can be defined with:

  • PPA name/URL
  • PPA Key

Note: function option allow me to call the Python function according to my script.

Ubuntu release

16.10 tested/validated

master-ubuntu's People

Contributors

francois-le-ko4la avatar

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.