On your Pi, edit the file /etc/rc.local using the editor of your choice. In order to have a command or program run when the Pi boots, you can add commands to the rc.local file. You might use it to start a custom service, for example a server that’s installed in /usr/local. It is traditionally executed after all the normal system services are started, at the end of the process of switching to a multiuser runlevel. The script /etc/rc.local is for use by the system administrator. I thought the easiest approach would be to edit the rc.local file. As always in linux there are lots of ways to do anything. The upside is I learnt a lot about the various start up scripts and screen options. I thought this would be easy but it took me 3 attempts to find a solution that worked. The last step is to get screen to run automatically whenever the Raspberry Pi reboots. We almost have a fully functional screen saver. If you now type “screen” in Terminal then after 60 seconds of no activity cmatrix should run. You can change this from 60 seconds if you want. This command will normally be the blanker command to create a screen blanker, but it can be any screen command. Idle is a command that is run after the specified number of seconds of inactivity is reached. You can replace cmatrix with something else if you get board with the matrix (e.g. Note that blanker is the invocation and blankerprg is the “variable” it starts. You can obviously use whatever options you want for cmatrix, these are just the ones I like. screenrc file you want to add the following lines: blankerprg cmatrix -BC blue -s idle 60 blanker If you have an existing file then edit that, if not create a new one in your home directory. This is normally a hidden file but you can see it if you use: ls -a When it first runs, screen will check its configuration file (. This will allow us to get the screen saver functionality (more or less). Before you do that we need to create the screen configuration file. Type screen to run it and screen -list to see all the screen instances that you have running. The install command is as you would expect: sudo apt-get install screen Screen enables you to run processes within a “terminal tty instance”. The trick is to combine cmatrix with GNU screen. a: Toggle asynch mode b: Enable partial bold text B: Enable all bold text n: Disable bold text 0–9: Change update delay You can change the text colour using the following symbols : ! - red, - green, # - yellow, $ - blue, % - magenta, ^ - cyan, & - white, ) - black.Īt the moment you have to type cmatrix every time you want it to run which isn’t really a screensaver. While cmatrix is running you can press various keys to adjust the display. C : Use color for matrix (default green). Any key aborts (default is “eye candy” mode, must abort with control C) -x: X window mode, use if your xterm is using mtx.pcf -u : Update delay (0–9, default 4). You have the following command line options: -a: Asynchronous scroll, more like the movie/original screensaver -b: Partial bold text mode -B: All bold text mode -f: Force the linux $TERM type to on -l: Linux support for linux console matrix.fnt font -n: No bold text mode -o: Use “old-style” scrolling - less like the movie, more like the Win/Mac screensaver. To run cmatrix just type the following in Terminal: cmatrix Start by installing cmatrix if you don’t already have it. If you do want to try xscreensaver then you can install using: sudo apt-get install xscreensaverįor those that want to go down the cmatrix path, this is the way to do it. One option is to use xscreensaver but I like cmatrix (Console Matrix - a “matrix the movie” like display usually run via the CLI).
0 Comments
Leave a Reply. |