Posts

Install D-Space in Ubuntu

Installing DSpace in Ubuntu involves several steps, including installing the necessary dependencies, downloading and configuring the DSpace software, and creating a database. Here are the steps to install DSpace in Ubuntu:   Update Ubuntu: Run the following command to update Ubuntu: sudo apt update && sudo apt upgrade Install the necessary dependencies: Run the following command to install the necessary dependencies: sudo apt install default-jdk ant git tomcat8 postgresql libpostgresql-jdbc-java maven Create a database: Run the following command to create a new PostgreSQL database: sudo -u postgres createdb -O [username] [database name] Replace [username] with the username you want to use to access the database, and [database name] with the name you want to give the database. Download and extract DSpace: Run the following commands to download and extract DSpace: cd /opt sudo git clone https://github.com/DSpace/DSpace.git cd DSpace sudo git checkout dspace-6.3 sudo mvn pa...

Rclone syncs your files to cloud storage (Gdrive)

Image
Install rclone curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip unzip rclone-current-linux-amd64.zip cd rclone-*-linux-amd64 Copy binary file sudo cp rclone /usr/bin/ sudo chown root:root /usr/bin/rclone sudo chmod 755 /usr/bin/rclone Run rclone config to setup.  rclone config No remotes found - make a new one n) New remote r) Rename remote c) Copy remote s) Set configuration password q) Quit config n/r/c/s/q> n name> gdrive Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / Google Drive     \ "drive" or type number 13 [snip] Storage> drive Google Application Client Id - leave blank normally. client_id> Google Application Client Secret - leave blank normally. client_secret> Scope that rclone should use when requesting access from drive. Choose a number from below, or type in your own value  1 / Full access all files, excluding Application Data Folder.    \ "drive"  2 / ...

UFW Essentials: Common Firewall Rules and Commands

Block an IP Address To block all network connections that originate from a specific IP address,  15.15.15.51  for example, run this command: sudo ufw deny from 15.15.15.51 In this example,  from 15.15.15.51  specifies a  source  IP address of “15.15.15.51”. If you wish, a subnet, such as  15.15.15.0/24 , may be specified here instead. The source IP address can be specified in any firewall rule, including an  allow  rule. Block Connections to a Network Interface To block connections from a specific IP address, e.g.  15.15.15.51 , to a specific network interface, e.g.  eth0 , use this command: sudo ufw deny in on eth0 from 15.15.15.51 This is the same as the previous example, with the addition of  in on eth0 . The network interface can be specified in any firewall rule, and is a great way to limit the rule to a particular network. Service: SSH If you’re using a cloud server, you will probably want to allow incoming SSH connecti...

Redirection login loop after entering alternateloginurl

There will be Redirection login loop after entering alternateloginurl and if you have enabled force user login. To solve the issue 1. Login to database via phpmyadmin 2. Go to mdl_config table 3. Search for alternatloginurl and remove the url you have given 4. Now go to config.php in moodle directory 6. add $CFG ->alternateloginurl = ''; 7. Save and restart apache and mysql

Ganeti Cluster Keys Replacement when there is certificate issue: server certificate verification failed. CAfile: /var/lib/ganeti/server.pem: none

1. Copy server.pem before running this commands # cp /var/lib/ganeti/server.pem /home/expire.server.pem 2. To renew the individual node certificates, run this command: IF you have more than one node gnt-cluster renew-crypto --new-node-certificates 3.  Run the following command to generate a new cluster-wide certificate: gnt-cluster renew-crypto --new-cluster-certificate

Preventing new account creation

If you don't want new accounts to be created when users log in with an OAuth 2 service: 1.      Go to 'Manage authentication' in Site administration and tick the box 'Prevent account creation when authenticating' (authpreventaccountcreation). 2.      Click the 'Save changes' button.  Source:  https://docs.moodle.org/38/en/OAuth_2_authentication

ACTION_FAILED:OU_INVALID: Solution for GoogleApps bulk user upload issue, username@domainname.com:ACTION_FAILED:OU_INVALID. This error is because you have not specified the Org Unit Path properly.

To upload bulk users to GoogleApps, you will require a following required fileds, other fields are optional:-               First Name               Last Name               Email Address               Password               Org Unit Path What is 'Org Unit Path'? This field was not their earlier. This is the path to place users in an organizational unit. For example if your domain has different organization unit like , staff, students, guest etc.. then the Org Unit Path would be :  / (for top-level Organization)  /staff (for staff)  /Students   /Student/FirstYear  /Student/SecondYear ........ etc... Source:  https://sjamso.blogspot.com/2018/07/solution-for-googleapps-bulk-user.html