Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run on osx #18

Open
mrded opened this issue Jun 22, 2017 · 21 comments
Open

Run on osx #18

mrded opened this issue Jun 22, 2017 · 21 comments

Comments

@mrded
Copy link

mrded commented Jun 22, 2017

It will be cool to run it on macOS as well.

@getaaron
Copy link

I made a little progress on this but am going to stop for now. Documenting what I did so far in case someone else wants to pick it up:

  • Install homebrew
  • Run brew install tmux and brew install coreutils
  • Replace sort -R with gsort -R
  • Run sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist to enable the locate command

Here's a patch for the gsort replacement:

diff --git a/bin/hollywood b/bin/hollywood
index 5d5bcdd..0cd4154 100755
--- a/bin/hollywood
+++ b/bin/hollywood
@@ -40,7 +40,7 @@ while [ ! -z "$1" ]; do
 	esac
 done
 
-widget1=$(ls "$widget_dir/" | sort -R | head -n1)
+widget1=$(ls "$widget_dir/" | gsort -R | head -n1)
 arrangements="main-horizontal main-vertical tiled"
 
 if [ -z "$TMUX" ]; then
@@ -65,7 +65,7 @@ tmux new-window -n $PKG "$widget_dir/$widget1" \; \
 
 split=1
 sleep 0.5
-for w in $(ls "$widget_dir" | sort -R); do
+for w in $(ls "$widget_dir" | gsort -R); do
 	[ "$w" = "$widget1" ] && continue
 	[ "$dir" = "-v" ] && dir="-h" || dir="-v"
 	panes=$(tmux lsp -t $PKG)
diff --git a/bin/wallstreet b/bin/wallstreet
index 20b3b43..5e88362 100755
--- a/bin/wallstreet
+++ b/bin/wallstreet
@@ -23,7 +23,7 @@ trap "rm -rf $TMPDIR; pkill -f -9 lib/$PKG/ >/dev/null 2>&1; exit 0" EXIT HUP IN
 
 dir="-v"
 widget_dir="$(dirname $0)/../lib/$PKG"
-widget1=$(ls "$widget_dir/" | sort -R | head -n1)
+widget1=$(ls "$widget_dir/" | gsort -R | head -n1)
 
 if [ -n "$1" ]; then
 	SPLITS="$1"
diff --git a/lib/hollywood/code b/lib/hollywood/code
index e906130..715e9b8 100755
--- a/lib/hollywood/code
+++ b/lib/hollywood/code
@@ -19,7 +19,7 @@ command -v view >/dev/null 2>&1 || exit 1
 
 trap "pkill -f -9 lib/hollywood/ >/dev/null 2>&1; exit" HUP INT QUIT TERM
 while true; do
-	FILES=$(locate "/usr/*.java" "/usr/*.c" "/usr/*.cpp" | sort -R | head -n 4096) || true
+	FILES=$(locate "/usr/*.java" "/usr/*.c" "/usr/*.cpp" | gsort -R | head -n 4096) || true
 	for f in $FILES; do
 		[ -r "$f" ] || continue
 		[ -s "$f" ] || continue
diff --git a/lib/hollywood/errno b/lib/hollywood/errno
index 9e407a6..fb8d7f2 100755
--- a/lib/hollywood/errno
+++ b/lib/hollywood/errno
@@ -19,6 +19,6 @@ command -v ccze >/dev/null 2>&1 || exit 1
 
 trap "pkill -f -9 lib/hollywood/ >/dev/null 2>&1; exit" HUP INT QUIT TERM
 while true; do
-	errno --list | sort -R | ccze -A
+	errno --list | gsort -R | ccze -A
 	sleep 0.6
 done
diff --git a/lib/hollywood/hexdump b/lib/hollywood/hexdump
index b535597..8a33137 100755
--- a/lib/hollywood/hexdump
+++ b/lib/hollywood/hexdump
@@ -19,7 +19,7 @@ command -v ccze >/dev/null 2>&1 || exit 1
 
 trap "pkill -f -9 lib/hollywood/ >/dev/null 2>&1; exit" HUP INT QUIT TERM
 while true; do
-	for f in $(ls /usr/bin/ | sort -R); do
+	for f in $(ls /usr/bin/ | gsort -R); do
 		head -c 4096 "/usr/bin/$f" | hexdump -C | ccze -A -c default=green -c dir="bold green"
 		sleep 0.7
 	done
diff --git a/lib/hollywood/jp2a b/lib/hollywood/jp2a
index 11d2ead..f73d564 100755
--- a/lib/hollywood/jp2a
+++ b/lib/hollywood/jp2a
@@ -19,7 +19,7 @@ command -v jp2a >/dev/null 2>&1 || exit 1
 
 trap "pkill -f -9 lib/hollywood/ >/dev/null 2>&1; exit" HUP INT QUIT TERM
 while true; do
-	FILES=$(locate "/usr/*jpg" | sort -R | head -n 4096)
+	FILES=$(locate "/usr/*jpg" | gsort -R | head -n 4096)
 	for f in $FILES; do
 		[ -r "$f" ] || continue
 		[ -s "$f" ] || continue
diff --git a/lib/hollywood/man b/lib/hollywood/man
index 5bb7fe8..489aa6b 100755
--- a/lib/hollywood/man
+++ b/lib/hollywood/man
@@ -19,7 +19,7 @@ command -v ccze >/dev/null 2>&1 || exit 1
 
 trap "pkill -f -9 lib/hollywood/ >/dev/null 2>&1; exit" HUP INT QUIT TERM
 while true; do
-	FILES=$(ls /usr/share/man/man1/ | sort -R | sed "s/\.1\.gz.*$//" | head -n 4096)
+	FILES=$(ls /usr/share/man/man1/ | gsort -R | sed "s/\.1\.gz.*$//" | head -n 4096)
 	for f in $FILES; do
 		man "$f" | ccze -A
 		sleep 0.2
diff --git a/lib/hollywood/stat b/lib/hollywood/stat
index 205d25f..acf3c37 100755
--- a/lib/hollywood/stat
+++ b/lib/hollywood/stat
@@ -19,7 +19,7 @@ command -v ccze >/dev/null 2>&1 || exit 1
 
 trap "pkill -f -9 lib/hollywood/ >/dev/null 2>&1; exit" HUP INT QUIT TERM
 while true; do
-	for f in $(find /sys /dev 2>/dev/null | sort -R | head -n 4096); do
+	for f in $(find /sys /dev 2>/dev/null | gsort -R | head -n 4096); do
 		stat "$f" | ccze -A -c default=yellow
 		sleep 0.8
 	done

@ozskywalker
Copy link

Found it much easier to run from a container, try https://hub.docker.com/r/jess/hollywood/

@huji0624
Copy link

huji0624 commented Feb 1, 2018

@failathon when i use 'docker run jess/hollywood' to launch it.It shows 'open terminal failed: not a terminal'.Do you got a doc on how to use it.

@dustinkirkland
Copy link
Owner

dustinkirkland commented Feb 1, 2018 via email

@huji0624
Copy link

huji0624 commented Feb 1, 2018

@dustinkirkland it works.thanks a lot.

@Tao-Quixote
Copy link

Hope that this software could be run/install directilly from MacOSX's terminal.

@ghost
Copy link

ghost commented Jul 29, 2020

did this command: docker run -it jess/hollywood

docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
btw i us mac

@Saakshaat
Copy link

docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
btw i us mac

@J0hsHH that sounds like a Docker issue. Can you try reinstalling Docker; preferably Docker Desktop?

@dxniel7402
Copy link

Hi,
I'm getting following error:

✘ daniel@Daniels-Mac-mini  ~/.ssh  docker run -it jess/hollywood

user@f0cac04d1ab7:~> /usr/bin/hollywood
[exited]

Can someone help me?

@hwac121
Copy link

hwac121 commented Sep 23, 2020

Are you just trying to run the hollywood app? Just open a terminal and type "hollywood" without the quotes of course...

@TangentFoxy
Copy link

I'm having a similar issue to @dxniel7402. Hollywood starts with a connected TTY, shows the byobu terminal, then does nothing for a random amount of time, and then exits (so, the screen is cleared except for [exited] and the next prompt).

@MagnusBrzenk
Copy link

I tried docker run -it jess/hollywood sh on MacOSX Terminal, and then ran hollywood within the container, and all I got was a bottom bar and some flickering.

@dmacks
Copy link

dmacks commented Jun 19, 2021

My attempt on OS X 10.13...

Also important to set TMPDIR in shell-env (probably docker does that?) or else replace "/dev/shm" with "/tmp" or other tempdir in various files. With the latest tmux installed and coreutils with the "g" prefix patch, I get as far as MagnusBrzenk, with some horizontal and vertical dividers every few seconds. But no actual modules fill any of the sections.

@amordo
Copy link

amordo commented Nov 28, 2021

I faced problems of commentators above (@dmacks @MagnusBrzenk @TangentFoxy ) using jess/hollywood docker image.
But solved it running fresh ubuntu 21:10 image (docker run -it --rm ubuntu:21.10) and run apt update && apt upgrade && apt -y install hollywood && hollywood. ps: --rm removes container after usage
During installation two packages ask to choose some options, just press 1 everywhere.
If I push the docker image to dockerhub I'll post it here.
image

@aifans
Copy link

aifans commented Mar 8, 2022

docker run --rm -it bcbcarl/hollywood works for me.
Mac OS Big Sur 11.6

@d3vCr0w
Copy link

d3vCr0w commented May 4, 2022

@aifans are the graphics being displayed properly for you?

@smartsl
Copy link

smartsl commented Jun 9, 2022

Are there any version for M1 chip?

@aliir74
Copy link

aliir74 commented Jun 21, 2022

@smartsl As you see in the above comments, there isn't any version for macOS (intel nor m1). So you should use docker solutions written in the above comments.

@real-aazam
Copy link

There is a version for MacOSX (should work for intel and M1)

To install:

  1. brew tap real-aazam/homebrew-aazam
  2. brew install hollywood

To run:
Type hollywood

If you have issues or suggestions for improvements for the Mac version, you can post here:
https://github.com/real-aazam/hollywood

@jamesgreenblue
Copy link

docker run --rm -it bcbcarl/hollywood works for me. Mac OS Big Sur 11.6

Still working in 2024 on Sonoma / Applle Silicon 👍 👍

@dustinkirkland
Copy link
Owner

dustinkirkland commented Mar 8, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests