Skip to content

Instantly share code, notes, and snippets.

View kendrickjr's full-sized avatar

2.8Miles kendrickjr

View GitHub Profile
@kendrickjr
kendrickjr / Configure Nginx Reverse Proxy for Dspace7.md
Created January 5, 2024 07:47
Configure Nginx Reverse Proxy for Dspace7

To be able to access the Dspace Frontend using the domain name or IP address with default port 80 instead of 4000, we need to configure a reverse proxy. For the purpose and simplicity in this guide, we will use Nginx. But you na use othe engine such as Apache

STEP 1:

Install Nginx on Ubuntu with the command:

  sudo apt install nginx -y

STEP 2:

Create a virtual host file:

The Raspberry Pi can do a lot, especially now that the new Raspberry Pi comes with wireless capabilities already on board. It can take the place of a ton of different (and more expensive) devices – including a router! If you turn your Raspberry Pi into a wireless access point, you can make it act as a router. It’s not the most powerful thing in the world, but it does work, and the project is a lot of fun.

We’re going to get into the command line a bit here, but this project isn’t really all that difficult. All we’re really doing is using Raspbian and installing a couple packages that give the Pi the ability to do router-like things like assign IP addresses to devices that connect to it.

Step 1: Install and update Raspbian

Check out our complete guide to installing Raspbian for the details on this one. Then plug everything in and hop into the terminal and check for updates and ugrades:

sudo apt-get update

sudo apt-get upgrade

@kendrickjr
kendrickjr / Dspace7-installation.md
Last active January 17, 2024 10:14
Install DSpace 7 Repository on Ubuntu 20.x

About Dspace 7

DSpace 7 is an open-source digital repository software system that is designed to help institutions manage and showcase their digital assets, including research papers, academic publications, datasets, multimedia content, and more. It is the latest major version of DSpace, which is widely used by universities, libraries, and other organizations to create digital repositories and archives.

DSpace 7 includes a robust search and discovery system with advanced filtering options, making it easier for users to find and access the content they need.

PREREQUISITES

The Dspace backend installation requires packages that include:

Java JDK 11 or 17 (OpenJDK or Oracle JDK)

@kendrickjr
kendrickjr / linux server maintanance script.md
Created January 11, 2023 20:03
linux server maintanance script

Here's an example of a simple bash script that can be used to perform some basic maintenance tasks on a Linux server:

#!/bin/bash

# Update package list and upgrade installed packages
apt-get update && apt-get upgrade -y

# Remove unnecessary packages and dependencies
apt-get autoremove -y
@kendrickjr
kendrickjr / mysql Backup.md
Created January 11, 2023 19:48
MySql Backup in linux

Here's an example of a simple bash script that can be used to backup a MySQL database:

#!/bin/bash

# Set the backup directory and file name
BACKUP_DIR="/path/to/backup/dir"
DATE=$(date +"%Y-%m-%d")
BACKUP_FILE="database-$DATE.sql"
@kendrickjr
kendrickjr / postgres backup.md
Last active January 11, 2023 19:50
Postgres Backup Script

Here's an example of a simple script that can be used to backup a PostgreSQL database using the pg_dump command:

#!/bin/bash
# Set the name of the database you want to backup
database=mydb

# Set the name of the backup file
backup_file=mydb_$(date +%Y%m%d).bak

Below are three essential backups to take in dspace.

dspace.backup (Database backup)

assetstore (All uploaded files for e.g, pdf, image,etc..)

log (Configuration files)

Step - 1

Take a backup of Dspace database. Assume that the old version of Dspace is running. Take a PostgreSQL database backup.

INSTALL DSPACE 7 ON UBUNTU 22.04

PREREQUISITES

Update and upgrade packages

sudo apt update && sudo apt upgrade -y

Create dspace system user

sudo adduser dspace

@kendrickjr
kendrickjr / dspace_backup.sh
Created September 1, 2022 10:43
BackupScript for Dspace ()
This is the Origional Copy From Gibson (R.I.P)
Create local backup script
Here is a sample script to make local backups which are then sent to the remote backup server.
Type the following.
sudo nano /usr/local/bin/backup.sh
Now copy and paste the following into the open editor and modify the backup variables to suit your location and server.
@kendrickjr
kendrickjr / Install DSpace 6 with Mirage 2 theme.ipynb
Last active September 8, 2021 12:06 — forked from otuoma/Install DSpace 6 with Mirage 2 theme.ipynb
How to install DSpace 6 with Mirage 2 enabled
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.