2019年9月24日 星期二

set postgres password

charles@charles-composer:~$ su
Password:
root@charles-composer:/home/charles# su postgres
postgres@charles-composer:/home/charles$ \password postgres
No command 'password' found, did you mean:
 Command 'assword' from package 'assword' (universe)
password: command not found
postgres@charles-composer:/home/charles$ psql
psql (9.5.19)
Type "help" for help.

postgres=# \password postgres
Enter new password:
Enter it again:
postgres=# \q
postgres@charles-composer:/home/charles$

2019年9月20日 星期五

HyperV Ubunt resolution

  1. From within the Ubuntu virtual machine, open Terminal
  2. Type sudo vi /etc/default/grub
  3. Find GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
  4. Append that line with video=hyperv_fb:[specify resolution, e.g. 1024x768]
  5. Here is what it might look like: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1024x768"
  6. Save changes and exit
  7. Run the following command: sudo update-grub
  8. Restart the VM