Posts

Featured Post

Email Notification in Koha! How to configure Email Notification in Koha 20.11 with postfix?

Image
Here is the steps to configuring Koha 20.11 & postfix for sending notices/slips through email. 1. First install postfix             #sudo apt-get update             #sudo apt-get install postfix          Click on OK.    Tab and select No configuration. 2.  Copy the configuration file     #  cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf 3. Install the other required packages.     #apt-get install libsasl2-2     #apt-get install libsasl2-modules     #apt-get install ca-certificates 4.  Open the following file and add few lines.     # vim /etc/postfix/main.cf and add the following lines at the bottom of the page and save the file.     relayhost = [smtp.gmail.com]:587     smtp_sasl_auth_enable = yes     smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd     smtp_sasl_security_options = noanonymous     smtp_tls_CAfile = /etc/postfix/cacert.pem     smtp_use_tls = yes 5. Now create a new file to save the g

Moodle 4.2 - Outgoing Email Configuration with Gmail SMTP : Test outgoing mail configuration Your site couldn't communicate with your mail server. Please check your outgoing mail configuration. Solved.

Image
 Moodle 4.2 - Outgoing Email Configuration with gmail SMTP - Test Filed Error : Test outgoing mail configuration Your site couldn't communicate with your mail server. Please check your outgoing mail configuration. Solved. To solve the issue, login to gmail account used in the configuration and turn ON the 'Allow less secure apps' feature under Security. Not test the outgoing mail again. It should work.

Solved :Moodle 4.2 installation on Ubuntu 22.04 - Error: database driver problem detected The site administrator should verify server configuration PHP has not been properly configured with the MySQLi extension for it to communicate with MySQL. Please check your php.ini file or recompile PHP.

Image
Moodle 4.2 installation on Ubuntu 22.04 with php8.0.  Error message  is because of the php extension. Make sure all the extensions are correctly installed: Error: database driver problem detected  The site administrator should verify server configuration PHP has not been properly configured with the MySQLi extension for it to communicate with MySQL.  Please check your php.ini file or recompile PHP. Solution : #sudo apt install php8.0-mysql # sudo service apache2 restart

Proxmox - LXC Container with a lock icon - How do we unlock the container? Solved!

Image
 Proxmox - Container with a lock icon - How do we unlock the container? Solution: #pct unlock LXC-ID (where LXC-ID = container ID) Example # pct unlock 108 ( hit enter)

Proxmox - How to backup and restore VMs and CTs between different servers in Proxmox?

Image
 Here is how to use Proxmox GUI to backup and move VMs and CTs to different Servers. First make sure the VM/CT that you want to move is stopped. Click on the VM/CT that you want to move and click on backup. Select the as follows: Storage : local Mode    : Snapshot Compression : LZO(fast) send email to: none Once the back up is done: TASK OK message will be displayed. Confirm your backup is stored in the local disk. Download WinSCP   to download and upload the backup files between servers. Login to the backup server using WinSCP Locate the backup file in the directory /var/lib/z/dump and download the backup file Once backup has been done, login to new server using WinSCP In the new server, go to same directory /var/lib/z/dump  and copy the file from your desktop to the new server. Now from Proxmox GUI in new server, Select local disk and click on Backups, all the backup will be listed. Select the one that you wish to restore. Don't have to change anything in the restore options If

Moodle OAuth 2. This account is pending email confirmation! Solved

Image
If you happen to come across this ' This account is pending email confirmation' message while using Google OAuth2 in Moodle. Try these following solutions: Solution 1. First login to you Moodle and Admin. Go to Site Administration --> Server--> oAuth 2 Services go to setting. Make sure the Require email verification is NOT checked. Solution 2: Login to Moodle database and delete the particular user #mysql -uroot -p\ mysql> use moodledb; mysql> SELECT * FROM mdl_auth_oauth2_linked_login WHERE email='sjamso@moodle.edu.bt'; mysql>D ELETE FROM mdl_auth_oauth2_linked_login WHERE email='sjamso@moodle.edu.bt';

Solved. Install SSL for Proxmox VE 6.3 using Certbot by Let's Encrypt (LE)

  I nstall certbot with apt: # apt install certbot Rub the following command and follow the instructions on the  screen to obtain the certificate. # certbot certonly Copy the certificate from the Let's Encrypt  directory to the PVE directory #cp /etc/letsencrypt/live/proxmox.jnec.edu.bt/fullchain.pem /etc/pve/local/pve-ssl.pem #cp /etc/letsencrypt/live/ proxmox .jnec.edu.bt/privkey.pem /etc/pve/local/pve-ssl.key #systemctl restart pveproxy Cronjob to renew the certificate: Lets Encrypt SSL expire every 90 days, so we will renew it every month with a cronjob. For this, create a file #  vim /usr/local/bin/renew-pve-certs.sh with the following code : cp /etc/letsencrypt/live/proxmox.jnec.edu.bt/fullchain.pem /etc/pve/local/pve-ssl.pem cp /etc/letsencrypt/live/proxmox.jnec.edu.bt/privkey.pem /etc/pve/local/pve-ssl.key service pveproxy restart Make it executable : #chmod 755 /usr/local/bin/renew-pve-certs.sh Run this command every 30 days, add the following in the cronjob : #vim /et

SOLVED - ftp:// URLs not opening in Google Chrome but works in other browser like Firefox and IE

  Google adds temporary flag to Chrome to allow FTP protocol. By default, you cannot open a FTP site like ftp://ftp.sj.edu.org. Solution: Change the default setting. 1. On chrome open :  chrome://flags/ 2. Look for   Enable support for  FTP  URLs 3. Change the setting  Default to Enabled  from the dropdown. 

[Solved] Wordpress Permalink settings set to 'Post Name' breaks the page.

 Solution: Edit the Apache file below #vim /etc/apache2/apache2.conf <Directory /var/www/>         Options Indexes FollowSymLinks         AllowOverride  None         Require all granted </Directory> Change to : <Directory /var/www/>         Options Indexes FollowSymLinks         AllowOverride  All         Require all granted </Directory>

Regenerate and configure SSL certificates for Freeradius for Eduroam

 1. Remove the old certificates: # rm /etc/freeradius/3.0/certs/* 2. Copy the original files # cp /usr/share/doc/freeradius/examples/certs/* /etc/freeradius/3.0/certs/ 3. Edit the lines under the  certificate_authority  section as needed for the following two files: # vim /etc/freeradius/3.0/certs/ca.cnf # vim /etc/freeradius/3.0/certs/server.cnf [ CA_default ] . . . default_days = 1825 . . . [server] countryName = BT stateOrProvinceName = Samdrup Jongkhar localityName = Dewathang organizationName = JNEC emailAddress = sj@gmail.com commonName = "ITSU" . . . 5. Generate the certificate: # cd /etc/freeradius/3.0/certs/ # cd /etc/freeradius/3.0/certs/ # make ca.der # make printca # make dh # make server.pem # chown freerad:freerad * # service freeradius restart