vagrant

Minimal Vagrant script to generate fully usable Debian VMs for personal computing

天大地大妈咪最大 提交于 2020-12-15 06:51:30
问题 During the past years, I configured several Debian VMs for personal usage, using either VirtualBox or Vmware. However, I am not a sysadmin, nor do I operate any servers. Instead, my main usage of VMs is to install "throwaway programs" or "untrusted programs" that I do not want to pollute my host system, and I definitely need a full graphical environment within these VMs. Unfortunately, this setup has always been a painful manual process, and I always have to lookup several sites to find out

Minimal Vagrant script to generate fully usable Debian VMs for personal computing

对着背影说爱祢 提交于 2020-12-15 06:51:15
问题 During the past years, I configured several Debian VMs for personal usage, using either VirtualBox or Vmware. However, I am not a sysadmin, nor do I operate any servers. Instead, my main usage of VMs is to install "throwaway programs" or "untrusted programs" that I do not want to pollute my host system, and I definitely need a full graphical environment within these VMs. Unfortunately, this setup has always been a painful manual process, and I always have to lookup several sites to find out

DirectoryIterator ignoring directories in vagrant synced folders

霸气de小男生 提交于 2020-12-14 11:10:43
问题 I'm using laravel/homestead vagrant box. When I try to use DirectoryIterator for synced folder it returns only the "dot" entries ( .. , . ). My vagrant synced folder is called code (in vmbox), inside this directory I have my vagrant files and project codes, so when I use DirectoryIterator for /home/vagrant it list all directories without problem including code directory. But when I use it for /home/vagrant/code only dot entries shows up, other directories is ignored. scandir() works normally

DirectoryIterator ignoring directories in vagrant synced folders

偶尔善良 提交于 2020-12-14 11:08:35
问题 I'm using laravel/homestead vagrant box. When I try to use DirectoryIterator for synced folder it returns only the "dot" entries ( .. , . ). My vagrant synced folder is called code (in vmbox), inside this directory I have my vagrant files and project codes, so when I use DirectoryIterator for /home/vagrant it list all directories without problem including code directory. But when I use it for /home/vagrant/code only dot entries shows up, other directories is ignored. scandir() works normally

DirectoryIterator ignoring directories in vagrant synced folders

谁说胖子不能爱 提交于 2020-12-14 11:07:52
问题 I'm using laravel/homestead vagrant box. When I try to use DirectoryIterator for synced folder it returns only the "dot" entries ( .. , . ). My vagrant synced folder is called code (in vmbox), inside this directory I have my vagrant files and project codes, so when I use DirectoryIterator for /home/vagrant it list all directories without problem including code directory. But when I use it for /home/vagrant/code only dot entries shows up, other directories is ignored. scandir() works normally

Drupal Local Development Setup/Environment

我的未来我决定 提交于 2020-12-13 20:57:28
问题 Background I have been developing Drupal Sites for a little over 2 years now and I have noticed that my dev environments are not as user friendly and as simple as I have expected. The current process is we have a git repo where we store all the code, then we have a vagrant box setup as our virtual machine to run our local development in. The issue comes along with the fact of constantly having to go through loop holes of trying to get everything to work well together. Or there will be issues

Encountered Vagrant Up error on MacOs Big Sur Upgrade

两盒软妹~` 提交于 2020-12-02 04:55:40
问题 I just upgraded my mac OS from Catalina to Big Sur. My vagrant used to be working normally before and then I encountered this issue. (Vagrant version: 2.2.13) There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: ["hostonlyif", "create"] Stderr: 0%... Progress state: NS_ERROR_FAILURE VBoxManage: error: Failed to create the host-only adapter VBoxManage: error: VBoxNetAdpCtl: Error while adding new

Vagrant hangs at "SSH auth method: Private key

你。 提交于 2020-12-01 09:22:39
问题 I am running VirtualBox 5.0.24 and Vagrant 1.8.5 on Digital Ocean VPS running on Ubuntu 14.04 LTS Precise I am using the box ubuntu/precise64 Everything works fine but when i do vagrant up it hangs at the SSH auth method: Private key and the exit out giving time out. Now, i can consider increasing the execution time but it already takes a fare amount of time before giving that error. I don't know what I am doing wrong. Here is my VAGRANTFILE # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant

hyperledge环境安装

梦想与她 提交于 2020-11-24 19:27:05
1.安装环境 1)本机安装 前提是已经安装好了docker\docker-compose\go,相应的内容可见 docker-1-环境安装及例子实践 docker官方文档学习-1-Docker for mac安装配置 go安装可看: 开始学习前的环境安装 然后可见本机环境版本信息为: docker为: userdeMacBook-Pro:~ user$ docker version Client: Docker Engine - Community Version: 18.09 . 0 API version: 1.39 Go version: go1. 10.4 Git commit: 4d60db4 Built: Wed Nov 7 00 : 47 : 43 2018 OS /Arch: darwin/ amd64 Experimental: false Server: Docker Engine - Community Engine: Version: 18.09 . 0 API version: 1.39 (minimum version 1.12 ) Go version: go1. 10.4 Git commit: 4d60db4 Built: Wed Nov 7 00 : 55 : 00 2018 OS /Arch: linux/ amd64 Experimental

Flask+MongoDB数据库增删改查CRUD示例

假装没事ソ 提交于 2020-11-19 04:58:17
作者: Julian @ 恒馨博客 转载: https://towait.com/blog/flask-mongodb-crud/ 本文记录一下完整的适用于python3.5+ mongodb 3.4的一个简单的数据库操作实例. PS: 这是一个非常非常简单的基础实例,不合理的地方不少,仅供学习参考. 开发环境 Vagrant ( CentOS 7 + Python 3.5 + MongoDB 3.4) + XShell + Windows 10 + Sublime Text 2 数据库环境 主机: localhost (默认) 端口: 27017 (默认) 数据库名: todolist 集合: todos 用户名: todo 密码: towait.com 数据库及账户的创建 根据我爬文若干的经验来看,网上的 flask +mongodb教程基本上是MongoDB默认安装没有经过安全认证的配置,数据库连接不需要用户名和密码,在这篇 MongoDB数据库的安装及基本配置使用(CentOS7) 文章中我曾经强调要做security参数的安全配置,具体操作访问前面的链接内容即可,本文使用的是需要数据库用户名和密码登录的场景. 下面直接我们进入正题 首先使用 用户管理员 账号登录MongoDB数据库 mongo -u admin -p --authenticationDatabase