When you test your Chef cookbook in Test Kitchen you may get the following warning: warning: Insecure world writable dir MY_DIRECTORY/PATH in PATH, mode 040777 To stop this warning message, execute
Tag Archives: Linux
Install missing commands on Linux distributions
On some lean systems, mostly in Docker containers, some important commands are not readily available. The table below shows the command to install them. To get the name of the Linux distribution execute To find the package that contains the command, install apt-file Update the file package mapping database Search for the command at the …
Continue reading “Install missing commands on Linux distributions”
Raw-mode is unavailable courtesy of Hyper-V error in VirtualBox
For VirtualBox to be able to start virtual machines, Hyper-V has to be turned off in Windows 10. If you get the error message when you try to launch a virtual machine in VirtualBox Raw-mode is unavailable courtesy of Hyper-V Check the Hyper-V setting Open a command prompt as an administrator, Execute the command: bcdedit …
Continue reading “Raw-mode is unavailable courtesy of Hyper-V error in VirtualBox”
Set up a user to connect to a Linux server with a private-public key pair
To secure a Linux server, disable password authentication on it. This way only those users can connect to it, who have access to an authorized private key. To enable users to connect to a Linux server with a private-public key pair Generate an RSA key pair In a Bash terminal on your workstation execute ssh-keygen Follow …
Continue reading “Set up a user to connect to a Linux server with a private-public key pair”
Copy files between Linux machines
The rsync command allows you to copy files using SSH connection, between your workstation and another Linux machine. You have to be logged into one of the machines, this command cannot copy files between two remote machines. To copy a file from your local machine to a remote server rsync -avz -e “ssh -i SSH_KEY_FILE -o …
Using tmux terminal multiplexer
The tmux terminal multiplexer allows us to open multiple terminal windows in the same SSH session and continue the command execution even when we log out of the SSH session. This way we can execute long-running copy commands overnight without keeping the SSH session open. Install tmux On CentOS family Linux yum install tmux To start tmux …
Determine the Linux OS version
To display the Linux operating system version execute the command cat /etc/*release* uname -a
Copy files between Windows and Linux computers
There are many tools to copy files between Windows and Linux computers, I have found this method the simplest. It does not require any software installation on the Windows machine, and only one package installation on the Linux machine. Share a folder on the Windows machine Share a folder on the Windows machine and allow …
Continue reading “Copy files between Windows and Linux computers”
Application error codes
When an application execution fails, it usually returns an error code to specify the cause of the problem. Windows error codes Application Error code Cause Workaround Visual Studio -2147205120 The computer has a pending restart and must be rebooted before the execution. Restart your computer, and then rerun the application.
delimited by end-of-file (wanted `EOF’)
When you create a file in a script and use an end of file delimiter, if … cat <<EOF> $chef_dir/attrib.json $json EOF fi and you indent the word EOF to look nicer, you will get the error message warning: here-document at line … delimited by end-of-file (wanted `EOF’) STDERR> …: line …: syntax error: unexpected end of file …