In the lite version of Raspbian Stretch, i didn’t expect that i would have to manually mount the pendrive. I had a use case in which mounting it automatically was a necessity and thus i came across usbmount.
You can install it in raspbian using apt-get.
sudo apt-get install usbmount
Usbmount gives a lot of configuration options in /etc/usbmount/usbmount.conf but, for my use case the default were good enough.
This wasn’t enough though. It wasn’t detecting the usb stick. And, on searching i found out that i wasn’t the only one who was having this problem. For the usbmount to work in raspbian stretch, you will have to manually edit systemd file for udevd located in /lib/systemd/system/systemd-udevd.service and change MountFlags=slave to MountFlags=shared as someone commented here.
Postgresql is my database of choice mainly because, almost (if not all) web applications in fedora infrastructure use postgres and i have been using the same. But, every time i use a fresh system, i face some issues with getting started. Almost all of them are for client authentication. This post is here in case it happens the same in future.
- Install the dependencies:
- sudo dnf install postgresql postgresql-devel postgresql-server postgresql-contrib
- Create a db user other than postgres:
- sudo -i
- su – postgres
- Start the database using command: pg_ctl -D /var/lib/pgsql/data -l logfile start
- psql -U postgres
- create database pagure;
- create user pagure with password ‘pagure’;
- grant all privileges on database pagure to pagure;
- show hba_file;
- Go to that file and change the auth mode to trust;
- If runs into: unregistered authentication agent for unix-process https://techglimpse.com/solution-polkitd-postgresql-start-error/