Skip to content

Instantly share code, notes, and snippets.

@looztra
Created January 7, 2019 13:59
Show Gist options
  • Save looztra/0687d7e4b7439735a981482a707ede1c to your computer and use it in GitHub Desktop.
Save looztra/0687d7e4b7439735a981482a707ede1c to your computer and use it in GitHub Desktop.

Installation poste linux

Setup

Git

  • Editer ~/.gitconfig
[user]
        name = Zenika Trainee
        email = fake.account@fake.com

[credential]
        helper = cache --timeout=50400

[core]
    pager = cat
    whitespace = -trailing-space

[core]
        autocrlf = input
        safecrlf = true

[log]
  abbrevCommit = true

[alias]
        oldlola = log --graph --decorate --pretty=oneline --abbrev-commit --all
        lola2 = log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ar)%Creset'
        lola = log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
        hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
        type = cat-file -t
        dump = cat-file -p
        pom  = push origin master
        st = status

[color]
        branch = auto
        diff = auto
        interactive = auto
        status = auto
[push]
        default = simple

Outils

sudo dnf install -y fedora-workstation-repositories
sudo dnf config-manager --set-enabled google-chrome
sudo dnf install -y \
  mc \
  python-devel \
  python3-devel \
  jq \
  golang \
  expect \
  google-chrome-stable

VSCODE

Install

sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'

dnf check-update
sudo dnf install -y code

Plugins

  • Auto Close Tag
  • Bracket Pair Colorizer
  • Docker
  • EditorConfig for VS Code
  • fish-ide
  • fish-vscode
  • GitLens
  • Go
  • Kubernetes
  • markdownlint
  • Maven for Java
  • Python
  • vscode-icons
  • XML Tools
  • YAML Support by Red Hat

Config

{
  "editor.tabSize": 2,
  "editor.insertSpaces": true,
  "editor.cursorStyle": "line",
  "editor.renderWhitespace": "boundary",
  "editor.formatOnSave": true,
  "editor.formatOnPaste": true,
  "editor.rulers": [
    140
  ],
  "editor.mouseWheelZoom": true,
  "editor.renderIndentGuides": true,
  "editor.tabCompletion": false,
  "editor.multiCursorModifier": "ctrlCmd",
  "editor.minimap.enabled": false,
  "gitlens.advanced.messages": {
    "suppressShowKeyBindingsNotice": true
  },
  "workbench.iconTheme": "vscode-icons",
  "workbench.colorTheme": "Visual Studio Light",
  "gitlens.codeLens.enabled": false,
  "gitlens.defaultDateFormat": "DD/MM/YYYY HH:mm",
  "window.restoreFullscreen": true,
  "window.newWindowDimensions": "inherit",
  "window.enableMenuBarMnemonics": false,
  "window.openFoldersInNewWindow": "on",
  "files.trimTrailingWhitespace": true,
  "files.insertFinalNewline": true,
  "workbench.commandPalette.preserveInput": false,
  "yaml.format.enable": false,
  "extensions.ignoreRecommendations": true,
  "vsicons.projectDetection.disableDetect": true,
  "explorer.confirmDelete": false,
  "explorer.autoReveal": false
}

Glances, thefuck, yamkix

pip install -U --user glances yamkix
pip install -U --user yamkix
pip3 install -U --user thefuck
exit

Docker

sudo dnf -y install dnf-plugins-core
sudo dnf config-manager \
    --add-repo \
    https://download.docker.com/linux/fedora/docker-ce.repo
sudo dnf config-manager --set-enabled docker-ce-edge
sudo dnf install -y docker-ce
sudo mkdir -p /etc/systemd/system/docker.service.d
printf "\
[Service]
Environment=\"HTTPS_PROXY=http://10.253.3.10:8080/\" \"HTTP_PROXY=http://10.253.3.10:8080/\" \"NO_PROXY=localhost,127.0.0.1,.lyreco.com\"

" | sudo tee /etc/systemd/system/docker.service.d/https-proxy.conf
sudo systemctl daemon-reload
sudo systemctl enable docker
sudo systemctl start docker
sudo usermod -aG docker zenika

Maven

set mvn_version 3.5.4
cd ~/Téléchargements
curl -Lo maven.tar.gz http://apache.mindstudios.com/maven/maven-3/{$mvn_version}/binaries/apache-maven-{$mvn_version}-bin.tar.gz
tar --directory ~/.local/share/ -xf  maven.tar.gz
ln -s ~/.local/share/apache-maven-3.5.4 maven
ln -s ~/.local/share/maven/bin/mvn ~/.local/bin/mvn

TimeZone / Fuseau Horaire

sudo rm /etc/localtime
sudo ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment