Giter Site home page Giter Site logo

lymworkbook's Introduction

Work for the LYM book

This is a fresh workbook for the LYM readers. This is using Vagrant to build up the vm, you can actually use it in a normal vm too. Make sure that you have a vagrant user and you can ssh into the vm from your normal work computer. Also, this user should be able to do sudo without password.

TODO (Add steps for the above mentioned things)

How to use the tool?

First you will get the vm ready.

vagrant up
vagrant ssh workbook

Next, to create any of the problems, type sudo lymsetup PROMBLEM_NAME command.

sudo lymsetup copypaste

To verify your work, type sudo lymverify PROBLEM_NAME command.

sudo lymverify copypaste

If you managed to solve the problem, you will see the following output.

Success. Now try next problem.

Template of a new problem

# A small paragraph explaining the problem.
# This has to be updated if there is any change in the
# problem statement.

import os
import sys
from .utils import system, success, fail, find_path_data

def setup():
    "Setup problemname"
    pass  # Nothing to do.

def verify():
    "Verify problemname"
    pass
    # if everything okay, then
    success()
    # If something is not correct then
    fail("You failed to setup xyz")

Fill in the setup and verify functions. Remember to use black on the code before you submit a PR.

License: GPLv3+

lymworkbook's People

Contributors

kushaldas avatar priyankasaggu11929 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lymworkbook's Issues

Install rust

The user will install Rust programming language following steps from https://rustup.rs, and then update the PATH variable in such a way so that rustc is available.

To verify

lymverify installrust

Remember that the verification step is missing sudo command.

Disabling parts of SystemD for a simpler system

There are parts of SystemD that don't make sense in many contexts, and frankly get in the way of trying to do more useful things:

  • systemd-timesyncd
  • systemd-resolved
  • etc

There are better programs available, a discussion of why these are there, why switching makes sense, and the steps to do the switch

Setting up a basic firewall

Firewalls are used to make sure only certain connections to specific services are allowed. In this task you have to install and use the UFW firewall to help set firewall policies and manage exceptions.

Granting administrative privileges to a user

You have already created a new user account with regular account privileges. In order to do administrative tasks with it, you need to set up what is known as superuser or root privileges for our normal account. This will allow this user to run commands with administrative privileges by putting the word sudo before the command.

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.