First, edit Vagrant file to add external disk configuration.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
config.vm.provider "virtualbox" do |vb| # Display the VirtualBox GUI when booting the machine vb.gui = true # Customize the amount of memory on the VM: vb.memory = "1024"
The following error was experienced: #<Vagrant::Errors::VBoxManageError: There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.
The following error was experienced: #<Vagrant::Errors::VBoxManageError: There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.
Stderr: 0%... Progress state: VBOX_E_FILE_ERROR VBoxManage: error: Failed to create medium VBoxManage: error: Could not create the medium storage unit '/Users/cloudolife/col-vagrant/disks/disk-1.vdi'. VBoxManage: error: VDI: cannot create image '/Users/cloudolife/col-vagrant/disks/disk-1.vdi' (VERR_ALREADY_EXISTS) VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium VBoxManage: error: Context: "RTEXITCODE handleCreateMedium(HandlerArg*)" at line 450 of file VBoxManageDisk.cpp > Please fix this customization and try again.
There is already a disk disk-1.
Check the UUID of the disk disk-1
1 2 3 4 5
$ VBoxManage list hdds ... UUID: <UUID> Location: /home/vagrant/vagrants/vagrant-example/disks/disk-1.vdi ...
asdf is a single CLI tool for managing multiple runtime versions. It extend with a simple plugin system to install your favourite language: Dart, Elixir, Flutter, Golang (Go), Java, Node.js, Python, Ruby …
This article is about how to use asdf and Ruby plugin to install multiple Ruby versions on macOS with the Homebrew package manager.
Git Large File Storage (LFS) is an open source Git extension for versioning large files that replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitLab, GitLab.com, GitHub.com or GitHub Enterprise.
After installing Lens manually (not using a package manager file such as .deb or .rpm) the following will need to be done to allow protocol handling. This assumes that your linux distribution uses xdg-open and the xdg-* suite of programs for determining which application can handle custom URIs.
Create a file called lens.desktop in either ~/.local/share/applications/ or /usr/share/applications (if you have permissions and are installing Lens for all users).
That file should have the following contents, with <path/to/executable> being the absolute path to where you have installed the unpacked Lens executable:
1 2 3 4 5 6 7 8 9 10
[Desktop Entry] Name=Lens Exec=<path/to/executable> %U Terminal=false Type=Application Icon=lens StartupWMClass=Lens Comment=Lens - The Kubernetes IDE MimeType=x-scheme-handler/lens; Categories=Network;
Then run the following command:
1
$ xdg-settings set default-url-scheme-handler lens lens.desktop
If that succeeds (exits with code 0) then your Lens install should be set up to handle lens:// URIs.
Posted onEdited onInDevOps
,
LoggingWord count in article: 4.1kReading time ≈4 mins.
logrotate
The logrotate utility is designed to simplify the administration of log files on a system which generates a lot of log files. Logrotate allows for the automatic rotation compression, removal and mailing of log files. Logrotate can be set to handle a log file hourly, daily, weekly, monthly or when the log file gets to a certain size.
Optimistic locking allows multiple users to access the same record for edits, and assumes a minimum of conflicts with the data. It does this by checking whether another process has made changes to a record since it was opened, an ActiveRecord::StaleObjectError exception is thrown if that has occurred and the update is ignored.