Category: Computer Technology
A variety of computer technology
Add User to Sudoer
Use following command to edit the sudoer file $ sudo visudo The sudo command is configured through a file located at /etc/sudoers. Note: Never edit this file with a normal text editor! Always use the visudo command instead! Because improper syntax in the sudoers file can leave you with a system where it is impossible to obtain elevated privileges, it is important to use the visudo command to edit the…
How to disable SSH timeout
Inactive or idle SSH connections are normally disconnected by the server after a certain period of time. This depends on how the SSH server is configured, and upon disconnection the SSH client will be prompted with a message similar to the following; Read from remote host oseems.com: Connection reset by peer Connection to oseems.com closed. This could be avoided by changing the SSH server’s configuration, or tricking the server from…
OpenSSH Public key not Working
Make sure the permissions on the ~/.ssh directory and its contents are proper. When I first set up my ssh key auth, I didn’t have the ~/.ssh folder properly set up, and it yelled at me.
OpenSSH Keygen
Generating RSA Keys The first step involves creating a set of RSA keys for use in authentication. This should be done on the client. To create your public and private SSH keys on the command-line: mkdir ~/.ssh chmod 700 ~/.ssh ssh-keygen -t rsa You will be prompted for a location to save the keys, and a passphrase for the keys. This passphrase will protect your private key while it’s stored…
WordPress: Sorry, this file type is not permitted for security reasons.
You can overcome the security warning by adding this to your current themes functions.php file. add_filter(‘upload_mimes’, ‘custom_upload_mimes’); function custom_upload_mimes ( $existing_mimes=array() ) { // add the file extension to the array $existing_mimes[‘svg’] = ‘mime/type’; // call the modified list of extensions return $existing_mimes; } Reference
CentOS install WordPress
Step of install WordPress use yum install
WordPress Maximum upload file size: 2 MB
Need to be reminded: This is a PHP’s limitation rather than wordpress. So, your should try to modify php’s setting not wordpress’. You should modify the php.ini file. In CentOS and Red Hat based Operating system,the path of php.ini file is /etc/php.ini In Ubuntu and Debian based Operating system,the path of php.ini file is /etc/php5/apache2/php.ini OR Use the command find to know the absolute path of php.ini file find /…
How to Install WordPress Plugins Manually
By Lisa Sabin-Wilson from WordPress All-in-One For Dummies, 2nd Edition Installing plugins from the WordPress Dashboard is so easy that you probably never need to know how to install a plugin manually via FTP. But the technique is still helpful to know in case the WordPress Plugin Directory is down or unavailable. The following steps take you through how to install a plugin using FTP, using the Gallery plugin as…
Debugging with command-line parameters in Visual Studio
right-click the project; choose properties; go to the Debugging section; there is a box for “Command Arguments”.
- 1
- 2