GNU/Linux >> LINUX-Kenntnisse >  >> Linux

Hollywood-Film MATRIX wie Desktop im Linux-Terminal

cmatrix:Einer der Befehle, um Spaß in einem Linux-Terminal zu haben. Es verwandelt Ihr Terminal wie einen coolen Desktop in den Hollywood-Film „MATRIX“.

Über das cmatrix-Programm:

Es wurde von Chris Allegretta geschrieben. Die Cmatrix-Seite finden Sie hier. Dieses Programm wird über die GNU GPL vertrieben und seine Sourceforge-Seite ist hier. Um die neueste Version herunterzuladen, besuchen Sie die Sourceforge-Seite.

Haben Sie den Hollywood-Film „Matrix“ gesehen? Sie müssen diese Monitore mit fallendem grünem Code gemocht haben. Es sieht aus wie ein cooler Hacker/Coder-Desktop! Nachdem der Film an die Kinokassen gegangen war, waren viele Matrix-Bildschirmschoner für Windows unterwegs. Willst du einen für Linux? Wie das unten?

Ja, das ist möglich. Sie können einen solchen matrixähnlichen Desktop auch im Linux-Terminal haben. In sehr einfachen zwei Schritten.

Schritt 1

Installieren Sie das cmatrix-Paket mit YUM oder APT, abhängig von Ihrer Linux-Distribution.

Wenn Sie kein YUM-Repository konfiguriert haben, können Sie eine eigenständige Datei herunterladen (überprüfen Sie die Sourceforge-Seite, ob dieser Link defekt ist). Befolgen Sie dann die folgenden Befehle, um es vom Quellcode aus einzurichten.

  • Pakete installieren:gcc , make , autoconf , automake ncurses-devel
  • Laden Sie die oben genannte Datei herunter, entpacken Sie sie, entpacken Sie sie und gehen Sie in das entpackte Verzeichnis cmatrix-1.2a
  • Innerhalb von cmatrix Verzeichnis folgende Befehle ausführen.
# aclocal
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
# autoconf
# automake -a
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:3: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.in:3: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
Makefile.am: installing './depcomp'
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'

Dann konfigurieren und zur Installation bereit machen.

# ./configure
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
/root/cmatrix-1.2a/missing: Unknown `--is-lightweight' option
Try `/root/cmatrix-1.2a/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for main in -lncurses... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for unistd.h... (cached) yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking termio.h usability... yes
checking termio.h presence... yes
checking for termio.h... yes
checking return type of signal handlers... void
checking for putenv... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for tgetent in -lncurses... yes
"Using ncurses as the termcap library"
checking for use_default_colors in -lncurses... yes
checking for resizeterm in -lncurses... yes
checking for wresize in -lncurses... yes
checking for consolechars... no
checking for setfont... /bin/setfont
checking for /usr/lib/kbd/consolefonts... yes
checking for /usr/share/consolefonts... no
checking for mkfontdir... no
checking for /usr/lib/X11/fonts/misc... no
checking for /usr/X11R6/lib/X11/fonts/misc... no
configure: WARNING:

*** You do not appear to have an X window fonts directory in the standard
*** locations (/usr/lib/X11/fonts/misc or /usr/X11R6/lib/X11/fonts/misc). The
*** mtx.pcf font will not be installed.  This means you will probably not
*** be able to use the mtx fonts in your x terminals, and hence be unable
*** to use the -x command line switch.  Sorry about that...

checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating cmatrix.spec
config.status: creating config.h
config.status: executing depfiles commands
# make
(CDPATH="${ZSH_VERSION+.}:" && cd . && autoheader)
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader:             [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
make  all-am
make[1]: Entering directory `/root/cmatrix-1.2a'
gcc  -g -O2   -o cmatrix cmatrix.o  -lncurses  -lncurses
make[1]: Leaving directory `/root/cmatrix-1.2a'

Endlich installieren. und das wars.

# make install
make[1]: Entering directory `/root/cmatrix-1.2a'
 /bin/mkdir -p '/usr/local/bin'
  /bin/install -c cmatrix '/usr/local/bin'
 Installing matrix fonts in /usr/lib/kbd/consolefonts...
 /bin/mkdir -p '/usr/local/share/man/man1'
 /bin/install -c -m 644 cmatrix.1 '/usr/local/share/man/man1'
make[1]: Leaving directory `/root/cmatrix-1.2a'

Schritt 2

Geben Sie cmatrix ein Befehls- und Erfahrungsmatrix! Sie können den Matrixbildschirm jederzeit verlassen, indem Sie auf dem Terminal Strg+C drücken. Überprüfen Sie den cmatrix-Befehl in Aktion im obigen GIF!

Lesertipp :

Einer unserer Leser, @Pranit Raje, schickte uns diesen Einzeiler, der den Zweck erfüllte. Es ist nicht so exakter Matrixcode wie wir oben gesehen haben, aber ja, es ist vielversprechend. Probieren Sie es aus und haben Sie Spaß im Terminal.

LC_ALL=C tr -c "[:digit:]" " " < /dev/urandom | dd cbs=$COLUMNS conv=unblock | GREP_COLOR="1;32" grep --color "[^ ]"
 
Linux
  1. Begeben Sie sich in Ihrem Linux-Terminal auf ein Abenteuer

  2. NeoChat – KDE-Matrix-Client für Linux Desktop und Mobile

  3. So verwenden Sie den Befehl wget wie ein Profi im Linux-Terminal

  4. 5 Verwendungen des mv-Befehls im Linux-Terminal

  5. Cowsay:Spaß im Linux-Terminal

So bearbeiten Sie Filmuntertitel auf dem Linux-Desktop

So verwenden Sie das Linux-Terminal in Android

So erstellen Sie Verknüpfungen auf dem Linux-Desktop

Desktop-Arbeitsbereiche in Linux

Telegram Desktop 1.0 ist da! Installieren Sie es unter Linux

5 Leichte Linux-Desktop-Umgebungen