Giter VIP home page Giter VIP logo

devenvpack's Issues

wsl-open

https://github.com/4U6U57/wsl-open

# Get npm if you don't have it already
sudo apt-get install -yqq npm

# Install
sudo npm install -g wsl-open
# Make a bin folder in your home directory
mkdir ~/bin

# Add the bin folder to your PATH in your bashrc
echo '[[ -e ~/bin ]] && PATH=$PATH:~/bin' >> .bashrc

# Download the script to a file named 'wsl-open'
curl -o ~/bin/wsl-open https://raw.githubusercontent.com/4U6U57/wsl-open/master/wsl-open.sh

Bug of BasicSetup.sh

Install zsh and fzf will cause interactive terminal. And this will interrupt the rest of the script.

Rootless Docker

~ export FORCE_ROOTLESS_INSTALL=1; curl -fsSL https://get.docker.com/rootless | sh
# Installing stable version 19.03.13
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 59.3M  100 59.3M    0     0  19.0M      0  0:00:03  0:00:03 --:--:-- 19.0M
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 18.3M  100 18.3M    0     0  20.0M      0 --:--:-- --:--:-- --:--:-- 19.9M
# starting systemd service
● docker.service - Docker Application Container Engine (Rootless)
   Loaded: loaded (/home/t-dawli/.config/systemd/user/docker.service; disabled; vendor preset: enabled)
   Active: active (running) since Wed 2020-12-02 10:46:34 CST; 9ms ago
     Docs: https://docs.docker.com
 Main PID: 29249 (rootlesskit)
   CGroup: /user.slice/user-1001.slice/[email protected]/docker.service
           └─29249 rootlesskit --net=vpnkit --mtu=1500 --slirp4netns-sandbox=auto --slirp4netns-seccomp=auto --disable-host-loopback --port-driver=builtin --copy-up=/etc --copy-up=/run /home/t-dawli/bin/dockerd-rootless.sh --experimental --storage-driver=overlay2

Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + which slirp4netns
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + [ -z ]
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + which vpnkit
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + net=vpnkit
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + [ -z ]
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + mtu=1500
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + [ -z ]
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + _DOCKERD_ROOTLESS_CHILD=1
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + export _DOCKERD_ROOTLESS_CHILD
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + exec rootlesskit --net=vpnkit --mtu=1500 --slirp4netns-sandbox=auto --slirp4netns-seccomp=auto --disable-host-loopback --port-driver=builtin --copy-up=/etc --copy-up=/run /home/t-dawli/bin/dockerd-rootless.sh --experimental --storage-driver=overlay2
Client: Docker Engine - Community
 Version:           19.03.13
 API version:       1.40
 Go version:        go1.13.15
 Git commit:        4484c46
 Built:             Wed Sep 16 16:58:04 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.13
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       4484c46
  Built:            Wed Sep 16 17:04:43 2020
  OS/Arch:          linux/amd64
  Experimental:     true
 containerd:
  Version:          v1.3.7
  GitCommit:        8fba4e9a7d01810a393d5d25a3621dc101981175
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683
# Docker binaries are installed in /home/t-dawli/bin
# WARN: dockerd is not in your current PATH or pointing to /home/t-dawli/bin/dockerd
# Make sure the following environment variables are set (or add them to ~/.bashrc):
export PATH=/home/t-dawli/bin:$PATH
export DOCKER_HOST=unix:///run/user/1001/docker.sock

#
# To control docker service run:
# systemctl --user (start|stop|restart) docker
#

solve locale problem

Triggered by Ctrl+r with fzf from MacOS through ssh to Ubuntu (but they are both English system)

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_TERMINAL_VERSION = "3.3.12",
	LC_CTYPE = "UTF-8",
	LC_TERMINAL = "iTerm2",
	LC_NUMERIC = "en_US.UTF-8",
	LC_TIME = "en_US.UTF-8",
	LC_MONETARY = "en_US.UTF-8",
	LC_PAPER = "en_US.UTF-8",
	LC_NAME = "en_US.UTF-8",
	LC_ADDRESS = "en_US.UTF-8",
	LC_TELEPHONE = "en_US.UTF-8",
	LC_MEASUREMENT = "en_US.UTF-8",
	LC_IDENTIFICATION = "en_US.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").

Seems only need to add export LC_ALL="en_US.UTF-8" in .bashrc can solve this problem

Microsoft Software and Wine

Teams

curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
 
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main" > /etc/apt/sources.list.d/teams.list'
 
sudo apt update
sudo apt install teams

Wine

# This is for 18.04

sudo dpkg --add-architecture i386 
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key

sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo apt install --install-recommends winehq-stable

/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ - openSUSE Download

The following packages have unmet dependencies:
 wine-stable : Depends: wine-stable-i386 (= 5.0.0~bionic)
               Depends: wine-stable-amd64 (= 5.0.0~bionic) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
# Fix bug
wget https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/Release.key
sudo apt-key add Release.key
sudo add-apt-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./'
sudo apt update

Rambox

Windows cross WSL development setup

Just set this in WSL

git config --global core.autocrlf true

Hardcoded user

Modify the hardcoded user to load system user in dotfiles.

Zotero

# https://www.zotero.org/support/installation
wget https://www.zotero.org/download/client/dl?channel=release&platform=linux-x86_64&version=5.0.96

tar xzf ...
mv ... /opt/zotero
cd /opt/zotero
./set_launcher_icon
ln -s /opt/zotero/zotero.desktop ~/.local/share/applications/zotero.desktop

shell function

https://unix.stackexchange.com/questions/305844/how-to-create-a-file-and-parent-directories-in-one-command
https://stackoverflow.com/questions/6212219/passing-parameters-to-a-bash-function

touch_create () {
    # Create file with its parent folders
    # https://unix.stackexchange.com/questions/305844/how-to-create-a-file-and-parent-directories-in-one-command
    # https://stackoverflow.com/questions/6212219/passing-parameters-to-a-bash-function
    file=$1
    mkdir -p "${file%/*}" && touch "$file"
}

Some bugs

UpdateDotFiles.sh after finish BasicSetup.sh

Oh-my-zsh finish will open zsh, need to exit to continue the BasicSetup.sh.
Need to skip this.

(so fzf & zsh-autocomplete didn't install as expected)

Docker BuildKit

Build images with BuildKit | Docker Documentation

To enable docker BuildKit by default, set daemon configuration in /etc/docker/daemon.json feature to true and restart the daemon:

{ "features": { "buildkit": true } }

nvidia-docker

"runtimes": {
        "nvidia": {
            "path": "nvidia-container-runtime",
            "runtimeArgs": []
        }
  },

Tile Enhancements / Windows Snapping and 3rd-party Store

3rd-party Store


KWin


Openbox


Default

Extension

Gnome Extension

Projects/GnomeShellIntegrationForChrome - GNOME Wiki!

  1. Chrome extension GNOME Shell integration - Chrome 線上應用程式商店
  2. Native host connector Projects/GnomeShellIntegrationForChrome/Installation - GNOME Wiki!

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.