Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 2.16 KB

File metadata and controls

50 lines (34 loc) · 2.16 KB

image

Makes this school project feel like your sailing the high seas in the late 90's and cracking software on your old intel i386 pc like there no tomorrow.

Guide for Gnu/Linux users:

  1. The bash script uses mpv media player to run the music files in the background and lolcat for color output. Those two are available thru almost any GNU/Linux distro package managers.
  2. In order for the epic music to work, You must change filepaths in the bash script (for example: /home/your-username/FancyCypher/intro.mp3 )
  3. Make the .sh file executable by opening the terminal, navigating to the FancyCypher folder and run chmod +x FancyCypher.sh
  4. Next step, while in the terminal, is to build the Main.java with javac Main.java and then running ./Fancycypher.sh

Guide for other OS users

Install GNU/Linux, don't allow yourself in the hands of Corporate overlords! :D

But if you insist on maintaining your sanity and personal life, here are few tips that still might help you get this running:

Options for Mac users:

  1. Running GNU/Linux Virtual Machine and following the steps described above OR...
  2. Installing mpv and lolcat thru Homebrew by running brew install mpv lolcat openjdk
  3. Change filepaths for .mp3 files
  4. Making the .sh file executable by running (in your terminal) chmod +x FancyCypher.sh
  5. Build your Main.java with javac Main.java and then running ./Fancycypher.sh

According to ChatGPT, this slightly reconfigured script might work better under MacOS:

#!/usr/local/bin/bash

# Make sure here the filepaths are correct!!
intro="/Users/*your-username*/FancyCypher/intro.mp3"
musicloop="/Users/*your-username*/FancyCypher/loop.mp3"

mpv "$intro" > /dev/null 2>&1 &
intro_pid=$!

clear
java Main | lolcat &
java_pid=$!

wait $intro_pid
nohup mpv --loop "$musicloop" > /dev/null 2>&1 &

wait $java_pid

pkill -f "mpv"

Options for Windows users

Good luck! Sadly I have no idea. Last time I used Windows was back in the good ol' days of Windows XP, when the desktops were greener and titlebars shined bright blue like a summertime skies.