Default
Installing Jekyll On a VirtualBox
C. BinKadal --- Sendirian, Berhad


Jekyll on a VirtualBox Debian Guest

Did you ever hear how “great” Ruby is? If that is true, how come not many are (still) using it? Ruby is free software, i.e., it is free if you have free time! IMHO, Ruby’s most significant f*ing problem is “Just because version X works fine; version X+1 should work fine too!” Therefore, stick with version X until it is obsolete or is vulnerable. Why using Ruby anyway? Because GitHub and GitHub Page were developed with it, and so was Jekyll.

This page is about how to install Jekyll with Rbenv on a VirtualBox Debian Guest. Why Rbenv? Because This Is How Me Do It! If it works today, there is no warranty if it will still work the day after. Take it or leave it.

PS: For setting a VirtualBox Guest, visit https://osp4diss.vlsm.org/. I have spoken!


VirtualBox Debian Guest Setting

Check how the NAT (Network Address Translation) redirects ports:

TAKE NOTE: Your NAT might be using other settings!



SuperUser (root) Settings

You need to have SuperUser (root) access for the first part of the installation. For the next part, just user privilege is needed.


assets/scripts/sources.list

# REV02 Mon 31 Jan 2022 13:56:37 WIB
# REV01 Sat 29 Jan 2022 11:53:04 WIB
# START Mon 15 Feb 2021 11:25:07 WIB
#
# FILE: /etc/apt/sources.list

deb http://deb.debian.org/debian/  bullseye           main contrib non-free
deb http://security.debian.org/    bullseye-security  main contrib non-free
deb http://deb.debian.org/debian/  bullseye-updates   main contrib non-free
deb http://deb.debian.org/debian/  bullseye-backports main contrib non-free

wget https://doit.vlsm.org/assets/scripts/sources.list

diff sources.list /etc/apt/sources.list


assets/scripts/clean-system.sh

#!/bin/bash
# REV06: Wed 17 Feb 2021 11:42:32 WIB
# REV05: Tue 16 Feb 2021 00:10:14 WIB
# START: Tue Jun 18 14:16:04 WIB 2019
#
# clean-system.sh purges whatever was installed previously at the system level.
#                       You need SuperUser (root) "su -" or "sudo su -" access.
#
# Copyright (C) 2019-2021 Rahmat M. Samik-Ibrahim
# http://RahmatM.Samik-Ibrahim.vLSM.org/
# This is a free script. It is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY;
# without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.

RMOPT="-rfv"

DELETE1="
/etc/apt/sources.list.d/yarn.list
/tmp/this-should-be-a-dummy
"

DELETE2="
/usr/lib/ruby/
/usr/local/bin/update_rubygems
/usr/local/bin/bundle
/usr/local/bin/bundler
/usr/local/lib/site_ruby/
/usr/share/rubygems-integration/
/var/lib/gems/
/tmp/this-should-be-a-dummy
"

DELDEB="
   ruby
   ruby-all-dev
   ruby-dev
"

for II in $DELETE1 ; do
   [ -f $II ] && (echo "Delete file   $II"; rm $RMOPT $II)
   [ -d $II ] && (echo "Delete folder $II"; rm $RMOPT $II)
done

for II in $DELDEB ; do
   apt-get purge $II -y
done

apt-get update
apt-get dist-upgrade -y
apt-get autoremove --purge -y
apt-get autoclean -y;

for II in $DELETE2 ; do
   [ -f $II ] && (echo "Delete file   $II"; rm $RMOPT $II)
   [ -d $II ] && (echo "Delete folder $II"; rm $RMOPT $II)
done

exit 0


wget https://doit.vlsm.org/assets/scripts/clean-system.sh

bash clean-system.sh


Installing Debian Packages

assets/scripts/debs.sh

#!/bin/bash
# REV08: Wed 17 Feb 2021 23:10:06 WIB
# REV07: Wed 17 Feb 2021 11:45:40 WIB
# START: Tue Jun 18 14:47:15 WIB 2019
#
# debs.sh installs related debian packages.
#         You need SuperUser (root) "su -" or "sudo su -" access.
#
# Copyright (C) 2019-2021 Rahmat M. Samik-Ibrahim
# http://RahmatM.Samik-Ibrahim.vLSM.org/
# This is a free script. It is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY;
# without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.

DEBS1="
autoconf
bison 
build-essential
curl
dirmngr
git
gnupg
libcurl4-openssl-dev
libffi-dev 
libgdbm-dev
libncurses5-dev 
libreadline-dev
libssl-dev
libsqlite3-dev 
libyaml-dev 
libxml2-dev
libxslt1-dev
locales-all
make
nodejs
sqlite3
software-properties-common
x11-apps
zlib1g-dev
"

DEBS2="
cmdtest
"

echo "====== UPDATE  ==========";
apt-get update;
echo "====== UPGRADE ==========";
apt-get dist-upgrade -y;
echo "====== INSTALL1 =========";
apt-get install $DEBS1 -y

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg     | apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list

echo "====== INSTALL2 =========";
apt-get install $DEBS2 -y

echo "====== REMOVE  ==========";
apt-get autoremove --purge -y;
echo "====== CLEAN   ==========";
apt-get autoclean -y;

exit 0

wget https://doit.vlsm.org/assets/scripts/debs.sh

bash debs.sh


NEXT: User Level Setting


© 2021-2022 --- C. BinKadal --- About --- Revision: 0039a--19-Jun-2022.