Mounting shared folders between OSX and the docker container is tricky due to
the intermediate boot2docker VM. You can't use the usual docker -v option as
the docker server knows nothing about the OSX filesystem - it can only mount
folders from the boot2docker filesystem. Fortunately, you can work around this
using SSHFS.
| # http://johnborg.es/2019/04/android-setup-macos.html | |
| # install rtx from https://github.com/jdx/rtx | |
| rtx install java@17 | |
| rtx global java@17 | |
| # install brew from https://brew.sh/ | |
| # sdkmanager, avdmanager | |
| brew install --cask android-commandlinetools |
| #!/bin/sh | |
| mkdir -p certs | |
| openssl req -x509 -days 365 -newkey rsa:4096 -nodes -sha256 -out certs/domain.crt -keyout certs/domain.key -subj "/C=DE/ST=Berlin/L=Berlin/O=IT/CN=docker.local" |
| title | Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 18.04 |
|---|---|
| date | 2019-02-06 |
С 2019 года прекратилась поддержка ПК-клиент приложения Cloud.mail.ru для Linux (см. страницу https://help.mail.ru/cloud_web/app/about). Для многих людей, имеющих хороший объем диска в этом облачном хранилище, стал актульным вопрос что-же делать дальше.
Если у вас подключен платный тариф, вы можете подключиться к сервису по протоколу WebDAV. На вашем компьютере Облако будет выглядеть как обычная файловая система. Инструкция по такому подключению есть здесь https://help.mail.ru/cloud_web/app/webdav#linux
This guide is based off of Setting Up Docker for Windows and WSL to Work Flawlessly
Install Docker for Windows
This will disable VirtualBox when you enable Hyper-V
# Update the apt package list.
sudo apt-get update -y| #!/usr/bin/env bash | |
| # vim: noet ft=sh sw=4 ts=4: | |
| # | |
| # Author: Augusto Pascutti <augusto.hp+oss@gmail.com> | |
| # | |
| # This will help you bootstrap a Windows machine with WSL with Docker | |
| # and some other utilities. This is heavily customized for my own use. | |
| # | |
| # Requirements (or things that should already be installed): | |
| # - WSL (with Debian or Ubuntu) |
| # allow `mount` cmd without password | |
| echo "$USER ALL=NOPASSWD: /bin/mount" | (sudo su -c 'EDITOR="tee -a" visudo') | |
| # add the mount directive to `fstab` | |
| sudo mkdir -p /c | |
| sudo sh -c "echo '/mnt/c /c none bind' >> /etc/fstab" | |
| # update to `.bashrc` to auto mount at login | |
| echo "sudo mount -a" >> ~/.bashrc | |
| # now reload it | |
| source ~/.bashrc |
| #based on po75558Manuel Patrone comment on https://forums.docker.com/t/how-can-i-ssh-into-the-betas-mobylinuxvm/10991/8 | |
| #get a privileged container with access to Docker daemon | |
| docker run --privileged -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker alpine sh | |
| #run a container with full root access to MobyLinuxVM and no seccomp profile (so you can mount stuff) | |
| docker run --net=host --ipc=host --uts=host --pid=host -it --security-opt=seccomp=unconfined --privileged --rm -v /:/host alpine /bin/sh | |
| #switch to host FS | |
| chroot /host |
Setting up p4merge
as diff and merge tool on Windows. Tried for Git version 1.8.4.msysgit.0.
Two alternatives are explained: using the command line, and directly editing the config file.
Being the installation path "C:Program Files\Perforce\p4merge.exe", just run:
$ git config --global diff.tool p4merge