Giter VIP home page Giter VIP logo

42_vm's Introduction

42_vm

Recreate the workspace of the 42 in a vm

Some useful tips to create a virtual machine with all the tools you need to work on projects of the 42 school wherever you want.

Summary

Virtualization

Operating System

choose xubuntu for a fair compromise between performance and features.

Fell free to use this banner to remember the username and password chosen.

Tools

  • Install Vim:
sudo apt-get install vim
  • Install git:
sudo apt-get install git
  • Install curl:
sudo apt-get install curl
  • Install Zsh and set as default login shell for the current user:
sudo apt-get install zsh
sudo usermod -s $(which zsh) $(whoami)
  • Run zsh and press the number key 2 and ZSH should create a new ~/.zshrc configuration file with the recommended settings, then reboot the system.

  • Customize Zsh with Oh My Zsh:

    sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

    NOTE: the installer will rename an existing .zshrc file to .zshrc.pre-oh-my-zsh.

  • It is possible to customize Zsh more thoroughly:

    • Set agnoster as a default theme:

      sed -i 's/ZSH_THEME=".*"/ZSH_THEME="agnoster"/' ~/.zshrc

      NOTE: In all likelihood, you will need to install a Powerline-patched font for this theme to render correctly:

      sudo apt-get install fonts-powerline

    • Download and configure Dracula Theme:

      After put the file in the specified folder:

      Open "Xfce Terminal Settings" --> "Colors" --> "Load Presets.." --> Select Dracula

    • Download and configure zsh-autosuggestions

    • Download and configure zsh-syntax-higlighting

  • Install the VirtualBox Guest Additions:

    sudo apt update
    sudo apt install build-essential dkms linux-headers-$(uname -r)
    

    Mount the Guest Additions CD Image e run the script for Linux, then reboot

  • Install gcc:

    sudo apt-get install gcc
    
  • Some Info of the gcc configuration of the Mac on the cluster:

    • Mac with MacOS:

      • Output of:

        gcc -dM -E - </dev/null > gcc_define_cluster_macos.txt
        
      • Output of:

        gcc -v 2> gcc_version_macos.txt
        
    • Mac with Ubuntu LTS:

      • Output of:

        gcc -dM -E - </dev/null > gcc_define_cluster_ubuntu.txt
        
      • Output of:

        gcc -v 2> gcc_version_ubuntu.txt
        

42 Tools

  • Install Norminette:

    Follow the instruction of the official github repository here

  • Install the 42 standard header for vim editor:

    Follow the instruction of the official github repository here

42_vm's People

Contributors

edi-marc avatar

Watchers

 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.