Vagrant no longer removes unused network interfaces and leaves it up to the user. This can forcibly be re-enabled using VirtualBox provider-specific config:
config.vm.provider "virtualbox" do |v|
v.destroy_unused_network_interfaces = true
end
Vagrant no longer removes unused network interfaces and leaves it up to the user. This can forcibly be re-enabled using VirtualBox provider-specific config:
config.vm.provider "virtualbox" do |v|
v.destroy_unused_network_interfaces = true
end
$ # Ilk once Virtualbox'in yaninda <Oracle VM VirtualBox Extension Pack> 'ide indirmelisiniz.
$ ### Arch Linux
$ yay virtualbox-ext-oracle
Vagrant.configure("2") do |config|
# Box'in boyutu yaklasik 9GB'dir.
config.vm.box = "jhcook/macos-sierra"
vagrant@bionic:~$ cat hello.rb
file '/tmp/hello.txt' do
content 'hello universe'
end
vagrant@bionic:~$ chef-apply hello.rb
Recipe: (chef-apply cookbook)::(chef-apply recipe)
* file[/tmp/hello.txt] action create
- create new file /tmp/hello.txt
- update content in file /tmp/hello.txt from none to 2935ea
$ export PHANTOMJS_VERSION=2.1.1
$ export PHANTOMJS_PLATFORM=linux-x86_64
$ wget "https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-${PHANTOMJS_VERSION}-${PHANTOMJS_PLATFORM}.tar.bz2"
$ echo "86dd9a4bf4aee45f1a84c9f61cf1947c1d6dce9b9e8d2a907105da7852460d2f *phantomjs-${PHANTOMJS_VERSION}-${PHANTOMJS_PLATFORM}.tar.bz2" > phantomjs.sha256
$ sha256sum --check phantomjs.sha256
$ rm -f phantomjs.sha256
$ sudo mkdir -p /usr/local/phantomjs-${PHANTOMJS_VERSION}
$ sudo tar -xjf phantomjs-${PHANTOMJS_VERSION}-${PHANTOMJS_PLATFORM}.tar.bz2 -C /usr/local/phantomjs-$PHANTOMJS_VERSION
$ sudo ln -s /usr/local/phantomjs-${PHANTOMJS_VERSION}/phantomjs-${PHANTOMJS_VERSION}-${PHANTOMJS_PLATFORM}/bin/phantomjs /usr/local/bin/phantomjs
Vagrant.configure("2") do |config| | |
# define keyword ile birden fazla sanal makine ayarlari tanimlayabiliriz. | |
config.vm.define "centos-7-cli" do |centos| | |
centos.vm.box = "centos/7" | |
centos.vm.network "private_network", ip: "10.0.0.10" | |
centos.vm.hostname = "centos-7-cli" | |
centos.vm.provider "virtualbox" do |vb| | |
vb.name = "my-centos-7" | |
vb.memory = "1024" |
#!/usr/bin/env bash | |
libreoffice --headless --invisible --convert-to pdf *.ppt |
#!/usr/bin/env bash | |
mkdir suitablepics | |
for file in $(ls *.jpg); do | |
convert $file -resize 512x512 suitablepics/${file/%jpg/png} | |
done |