Categories
Mongo

Mongo notes

Add Authentication on Fedora system
This action will allow you to login to mongo using created users. One step closer to securing mongo database.

1. edit /etc/mongod.conf:


# security Options - Authorization and other security settings
security:
  # Private key for cluster authentication
  #keyFile: 

  # Run with/without security (enabled|disabled, disabled by default)
  authorization: enabled
  • uncomment security
  • authorization: enabled
Categories
Fedora

Fedora commands and notes

list all versions of a package

dnf --releasever=29 --showduplicates list $pkgname

when upgrading packages, do not include “packagename”

sudo dnf upgrade --exclude=packagename

 


add programs to your gnome desktop that you manually installed into opt

Create a file like this: call it Postman.desktop.
save this file in your /home/usr/.local/share/applications directory


[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=YOUR_INSTALL_DIR/Postman/app/Postman %U
Icon=YOUR_INSTALL_DIR/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
Categories
Linux

linux remote mount

There is a very cool secure remote mount called sshfs. it allows you to set up a remote directory on your system making a seamless transition to your server.
to install:
fedora:
yum/dnf install sshfs
debian:
apt-get install sshfs

pick a place to mount the directory
mkdir /mnt/myserver
sshfs myserver:/home/mystuff /mnt/myserver

that is it!

reference:
https://www.tecmint.com/sshfs-mount-remote-linux-filesystem-directory-using-ssh/

Categories
Laravel

Laravel Reminders

create a new project:
$> laravel new <<project_name>>

add authentication?
$> php artisan make:auth

run server
$> php artisan serve

main config file: .env