Mounting Samba shares persistently during reboot

To mount a samba share during each reboot we need to interact manually. This can be automated by putting the samba share entry in fstab which will automatically mount those shares by reading credentials files. Install with Samba client pacakge # sudo apt-get install smbfs fstab entry syntax //server/share /pathto/mountpoint cifs credentials=/home/username/.smbcredentials,uid=shareuser,gid=sharegroup 0 0 Edit … Read more

Copy user files from Ubuntu or Debian servers to Amazon S3 bucket

Copy user files from Ubuntu or Debian servers to Amazon S3 bucket 1

If we have several Virtual private servers (VPS) and we need to back up the user data’s and database’s to Amazon S3 we can use a command-line tool to copy the files from VPS server’s to Amazon s3 without pain. Note: Here My Bucket name is server-backup First, we need to install with S3 utility. … Read more

Setting up SFTP with chroot

Setting up SFTP with chroot 2

Instead of installing with VSFTPD package to configure the FTP service we can use the default SSH service and port 22 for secure file system protocol. This will secure the file transfer with added encrypted method which used in default SSH configuration. first, add a group # groupadd secure_ftp Add the user to newly created … Read more

Allow nginx to upload more than 1 MB file

By default Nginx will allow uploading 1 MB file, By using below directive we can upload up to 10 MB If we need to upload larger than 10 MB just replace 10 with your specified size. client_body_in_file_only clean; client_body_buffer_size 32K; client_max_body_size 10M; Once above directive defined in virtual host restart the Nginx to take effect.