Hi all,
I have been learning linux and have a secondary monitor that I wanted to use for showing some sensor data. Currently I need to manually enter in three commands and then arrange my windows each time I want to look at (and start-up, etc). I am using the nethogs, inxi, and lm-sensors libraries:
sudo nethogs
watch -n1 "inxi -s"
watch -n1 "sensors | grep Tdie"
The end result looks something like this:
https://i.ibb.co/TgWXKSn/sensors.png
Is it possible/easy to script the opening of these three terminal windows and position them onto a specific monitor? Or is there a completely different better way to go about this?
Also, is there a way for me to custom arrange the data on the screen? Eg, could I put the sensors "Tdie" data into two columns and remove the "high = +70.0 C" info?
[Beyond this specific case, is there a general solution with, say, a directory containing a separate shell script for launching each program, with a master script that specifies terminal width/height as well as (x,y) coordinates? --Ed.]
(Score: 1) by NPC-131072 on Thursday January 17 2019, @01:50AM (7 children)
Hello fren,
Do you know what desktop session manager you are using?
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @01:57AM (6 children)
Sorry, not immediately finding where to get that info. Maybe this helps:
Its just mint 19.1 cinnamon with an updated kernel to 4.20 from the default (4.15).
(Score: 1) by NPC-131072 on Thursday January 17 2019, @02:05AM (2 children)
Not familiar with mint. I see they have 3 desktop versions, you may be able to start by putting scripts in etc/X11/Xsession.d/ but specific desktop and terminal emulator may provide an easier way. Someone who knows Mate and Cinnamon will be able to help you more here.
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @02:13AM (1 child)
Not sure if it helps, but it seems to be mostly the same as Ubunu 18.4:
Thanks for taking a look anyway.
(Score: 2) by Runaway1956 on Thursday January 17 2019, @03:28AM
Linux Mint has a Ubuntu derivative. Their LMDE is Linux Mint Debian Edition - it comes straight from Debian, instead of passing through Ubuntu's hands. I believe it to be the superior version.
(Score: 4, Funny) by SomeGuy on Thursday January 17 2019, @02:11AM (1 child)
No, no, no, it's Linux. You're supposed to write your own window manager. :P
(Score: 0) by Anonymous Coward on Friday January 18 2019, @02:47AM
:) Its not 1992 anymore. There are about 20 windows managers, most of them quite mature products...
OP - something simple inside your .profile should do the trick. Starting point: add the commands you are issuing.
(Score: 0) by Anonymous Coward on Friday January 18 2019, @02:52AM
Neat thing I "found" the other day. On newer distros - LM19, Manjaro, etc - "neofetch". Gives you a nice summary of your system in a terminal/console.
(Score: 5, Funny) by Anonymous Coward on Thursday January 17 2019, @01:56AM
systemd. Wait long enough and Poettering will get around to including a window manager.
(Score: 5, Interesting) by Runaway1956 on Thursday January 17 2019, @01:59AM (3 children)
You appear to be trying to reinvent conky. There is nothing wrong with that, of course, but you might want to look at some images, and then look at how they accomplish the same thing.
http://www.linuxandubuntu.com/home/5-best-linux-conky-themes [linuxandubuntu.com]
https://en.wikipedia.org/wiki/Conky_(software) [wikipedia.org]
https://www.lifewire.com/beginners-guide-to-conky-4043352 [lifewire.com]
http://conky.sourceforge.net/documentation.html [sourceforge.net]
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @02:10AM (2 children)
Thanks, I tried conky (a little) but it didn't seem to meet my needs.
1) Is there a way to move conky windows around on the screen with the cursor after they are loaded?
2) It looks like I can't just feed arbitrary data to conky:
https://superuser.com/questions/492858/is-there-anyway-to-show-nethogs-output-in-conky [superuser.com]
(Score: 3, Interesting) by Runaway1956 on Thursday January 17 2019, @03:25AM (1 child)
1. no, you can't move conky around. Instead you edit your startup script to place the windows where you want them. The script determines transparency, colors, size of text, how many CPU's you're monitoring - everything. Once running, conky can't be altered.
2. I've not used nethogs, so I really don't know if it's compatible with conky. Maybe a search for "conky nethogs"? There are hits to SuperUser and to StackExchange in my search window, both summaries seem to say "no". Sorry.
But, the existence of Conky proves that it is possible to perform the tasks that you originally asked about. I'm a lame-ass scripter, and we have some good scripters on the site. I'll let some of those people offer their ideas. ;^)
(Score: 4, Interesting) by The Mighty Buzzard on Thursday January 17 2019, @05:03AM
1. If you change the config while conky is running, it will pick up the changes and try to adjust. Some changes like compositing/transparency methods do not work well with that though.
My rights don't end where your fear begins.
(Score: 4, Informative) by The Mighty Buzzard on Thursday January 17 2019, @02:08AM (2 children)
You can use wmctrl for positioning and sizing windows but conky is really the way to go for everything you're doing at the moment.
My rights don't end where your fear begins.
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @02:17AM (1 child)
I see some examples of sensor and inxi data to conky but not nethogs:
https://askubuntu.com/questions/464166/how-do-i-get-a-sensors-output-in-conky [askubuntu.com]
https://forums.bunsenlabs.org/viewtopic.php?id=789 [bunsenlabs.org]
https://gist.github.com/Zauberfisch/b79ff450fa1dcd27b6c645200eb821c4 [github.com]
Still, I am gathering that the usual way is to use conky...
(Score: 2) by The Mighty Buzzard on Thursday January 17 2019, @05:01AM
Generally, yes. Nethogs won't easily work in it though. It needs to run continually so it can average traffic over whatever time period you have it set to refresh at while conky can really only make proper use of one-off scripts unless you write a plugin for it. Looks like you're stuck with spawning a terminal window (with a specific title by preference so you can easily find it with wmctrl) for that.
My rights don't end where your fear begins.
(Score: 2) by vux984 on Thursday January 17 2019, @02:09AM (2 children)
For the first question; i'd maybe suggest a terminal multiplexer like byobu (http://www.byobu.co/) that should be configurable and scriptable enough to easily accomplish something reasonable; and all in one 'window'.
For the 2nd question... I think you are already there; you are already piping sensors to grep. So you just need a more advanced regex to grab only what you want (that gets rid of the high +70.0) and then pipe what's left to something else to format ... e.g. maybe something funky with sed or awk can replace every 2nd line break with a tab to give you 2 columns for example; if not them then piping to a simple script ( perl / python ) script can definitely do it.
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @02:22AM (1 child)
Byobu looks interesting, thanks. If it works I actually think I will like that better than conky.
Regarding parsing everything using regex, that sounds pretty ridiculous. But if I pipe to a python/etc script I was concerned it would slow everything down. Maybe I am overestimating the resources used for this task.
(Score: 2) by vux984 on Thursday January 17 2019, @03:05AM
Yeah, you probably are overestimating the resources -- heh -- I see someone a little further down already figured out a way using sed and a regex... I don't work with regex daily; so that would have taken me a little longer.
Today i learned about conky; which I wasn't aware of -- so today was a win for me too.
(Score: 3, Interesting) by opinionated_science on Thursday January 17 2019, @02:15AM (2 children)
save session (main menu), if that's what you want.
To move an xwindow with a script there is:
https://askubuntu.com/questions/682027/arrange-windows-by-script [askubuntu.com]
wmctrl.
Enjoy!
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @02:39AM (1 child)
Yes, "save session" may also be a way of doing this. Thanks.
It looks like this won't work with my OS though:
https://bugs.launchpad.net/linuxmint/+bug/1414765 [launchpad.net]
(Score: 1, Informative) by Anonymous Coward on Thursday January 17 2019, @08:44AM
In KDE you can certainly create and arrange console windows using kconsole.
For example you can
konsole --profile flash -geometry 800x160+400+150 --hide-menubar --hide-tabbar -e watch df -h
For kconsole the -geometry switch seems to be in pixels, where xterm seems to use colums x rows
xterm -geometry 60x20+400+150 -e watch df -h
I am pretty sure gnome-terminal will also accept the -geometry option
You can create different profiles for konsole, with different colour schemes/fonts. xterm will also let you configure font/colour stuff on the command line.
To auto launch at login you can create a .desktop file in ~/.config/autostart (for KDE) again I am sure you will find the equivalent for a gnome based desktop.
(Score: 3, Touché) by PartTimeZombie on Thursday January 17 2019, @02:20AM (2 children)
Why not just:
sudo apt install hollywood
Done!
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @02:33AM
That does *look* like what I want. It apparently uses Byobu, that was suggested above.
(Score: 0) by Anonymous Coward on Friday January 18 2019, @03:05AM
I tried, and compiling from source with "hollywood.h" only supports hacking nuclear facilities from random keyboard bashing. A side-note, the effects are extremely dangerous, you have to also download, configure and compile along with "plot-armor.h".
(Score: 3, Funny) by Appalbarry on Thursday January 17 2019, @02:31AM (3 children)
Hmmmph. Don't bother us until you've read the MAN pages!
(Score: 3, Touché) by maxwell demon on Thursday January 17 2019, @06:47AM (2 children)
Didn't you get the memo? It's MAN OR WOMAN pages now!
The Tao of math: The numbers you can count are not the real numbers.
(Score: 5, Funny) by choose another one on Thursday January 17 2019, @09:45AM
Jeez, that one was many memos ago.
Looks like it's 2019 and computing is still exclusively binary...
[roll on quantum computing, where you never know what the bits are until you ask them what they identify as...]
(Score: 0) by Anonymous Coward on Friday January 18 2019, @03:07AM
In BeigeixOS, you use 'genderjelly' instead of 'man'. Rest of the distro does not work either...
(Score: 2) by boltronics on Thursday January 17 2019, @02:34AM (10 children)
> Also, is there a way for me to custom arrange the data on the screen?
> Eg, could I put the sensors "Tdie" data into two columns and remove the "high = +70.0 C" info?
Yes. eg.
$ watch -n 1 "sensors | grep Tdie | sed 's/^\(.*:\)\ *\([^\ ]*\).*$/\1 \2/'"
Core 0: +40.0°C
Core 1: +40.0°C
Core 2: +41.0°C
Core 3: +36.0°C
See other posts for information about screen positioning, but I think a terminal multiplexer is the better way to go.
You could even write it as one line:
$ watch -n1 "echo -n 'Tdie ' ; sensors | grep Tdie | sed 's/^[^:]*:\ *\([^\ ]*\).*$/\1/' | xargs echo"
Tdie +38.0°C +38.0°C +41.0°C +35.0°C
It's GNU/Linux dammit!
(Score: 2) by boltronics on Thursday January 17 2019, @02:39AM (7 children)
Except I changed the command to use "Core" on my system instead of "Tdie", so the output for you should actually be something like:
Tdie: +40.0°C
Tdie: +40.0°C
Tdie: +41.0°C
Tdie: +36.0°C
which I believe is what you requested.
It's GNU/Linux dammit!
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @02:46AM (6 children)
Yes, perfect. Thanks. I have no idea what that regex is doing but it works and I should be able to use it as a template for any future info. Eg I want to see cpu clock speed by thread eventually:
(Score: 2) by cubancigar11 on Thursday January 17 2019, @03:10AM (2 children)
You might be interested in xosview. There is a classic version.
Also, automatic window positioning can be achieved by fvwm.
My person fvwm config file does all these actually, but it has been called extremely ugly to look at, so... :) It was derived from Tavis Ormandy's config (http://taviso.decsystem.org/img/screenshot.png https://github.com/zy/zy-fvwm/blob/master/fvwmrc/taviso.fvwm2rc). [github.com] Just FYI...
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @03:24AM (1 child)
It looks interesting. I tried it and couldn't get the option to show the temperature to work though. Even trying the option in the docs didn't work: http://xosview.sourceforge.net/documentation.html [sourceforge.net]
Probably my fault though. I will take a deeper look later, thanks.
(Score: 2) by cubancigar11 on Thursday January 17 2019, @06:39AM
Oh yeah. There are two forks now, I use the classic one http://www.pogo.org.uk/~mark/xosview/ [pogo.org.uk] but default installation point to the new version 2.
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @04:10AM (1 child)
It's usually better to stick to grep/awk pipes than use regex you don't understand. You might want to modify the script later, and spending hours figuring out something someone else wrote is infuriating.
cpucount=$(awk '/MHz/' /proc/cpuinfo | wc -l)
for cpu in $(seq 1 ${cpucount})
do
grep MHz /proc/cpuinfo | awk 'NR=='${cpu}'{print "CPU'${cpu}': " $4 " MHz"}'
done
[ac][~]:sh cpuinfo.sh
CPU1: 3782.316 MHz
CPU2: 3593.783 MHz
CPU3: 3596.303 MHz
CPU4: 3691.905 MHz
(Score: 2) by Farkus888 on Friday January 18 2019, @12:31AM
Spending hours figuring out your own regex years later isn't any better.
(Score: 2) by boltronics on Friday January 18 2019, @03:00AM
In the case of the first regex, the input looks something like this:
So the regex used is the following:
The regex works like this:
for example:
The first ^ matches from the start of the line. The $ matches up to the end of the line.
The \(<something>\) puts whatever is contained within into a variable. We have two of them, and they are referenced by \1 and \2 in the replacement test.
.*: matches all characters up to and including the last colon in the input string.
[^\ ]* matches anything that is not a space, so will not match anything past a space.
The last .* just matches whatever is remaining.
So basically we're taking Tdie: and putting it into \1. Then we take the next word (separated by one or more spaces) and put that into \2. Then we output just those with a spare separating them as the replacement text for the whole thing. That gives us:
It's actually really easy to read most simple regular expressions such as this one when you understand the syntax.
So now that you understand the first regex, the second one should make a lot more sense.
We're using the same s/<pattern>/<replacement>/ style, and start matching from the start of the line (^). We then match anything that is not a colon character (:). We then match a colon and one or more spaces. We then store the next word in a variable (\1) - where "word" is defined as anything up until the next space character. Then we match anything else up until the end of the line. This entire match gets replaced with the contents of \1, which in our case is going to be the temperature. eg. +40.0°C
So
extracts just the Tdie lines and then extracts just the temperature values from those. eg.
We can then easily put this on a single line like so:
We could also write it like this if we want (I just put Tdie: at the end) so the title of the data is on the same line:
Then you can wrap all that up as an argument to the watch command.
I hope this helps you to understand and enjoy using regular expressions!
It's GNU/Linux dammit!
(Score: 2) by FatPhil on Monday January 21 2019, @07:44PM (1 child)
Great minds discuss ideas; average minds discuss events; small minds discuss people; the smallest discuss themselves
(Score: 2) by boltronics on Monday January 21 2019, @10:20PM
You're not wrong, and it would even be more efficient, but isn't there a saying that goes something like "don't use awk when you can use sed, don't use sed when you can use grep, don't use grep when you can use tr, don't use tr when you can use cat"? It goes something like that, but I can't find it when I did a search.
Certainly one of the ideas behind such a saying would be efficiency (and since using sed anyway there would likely be no negative performance impact in continuing to use that - and probably even some improvement), but I suppose part of it is related to the improved readability of the syntax of the more simple tools.
It's GNU/Linux dammit!
(Score: 5, Informative) by krishnoid on Thursday January 17 2019, @02:53AM (10 children)
Don't the X Window System --geometry WxH+xoff+yoff [x.org] arguments work?
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @03:07AM (5 children)
This looks like it could work, I've just been using gnome-terminal though. I've been pretty happy with it, but perhaps I should try out xterm as well.
(Score: 3, Informative) by krishnoid on Thursday January 17 2019, @03:18AM (3 children)
Modern terminals such as gnome-term are much nicer than xterm; you should be able to use a similar geometry option [stackexchange.com] with gnome-terminal.
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @03:26AM (1 child)
Yes, this is definitely looking like an option once I figure out how to get it on a certain monitor.
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @02:27PM
Instead of specifying the monitor you want, you'll just use a large value of x so that your window's left edge begins after your monitors right edge ends. If you use xrandr, it will show you your total screen real estate, then just make your x offset large enough that it reaches the monitor you want your terminal on. Generally this is the total width divided by two, if your monitors are even. But really, you could just start feeding in larger and larget x values until your terminal reaches the right screen.
(Score: 3, Insightful) by coolgopher on Thursday January 17 2019, @03:58AM
I used to think that too. I've since gone back to XTerm. Much better configurability.
(Score: 3, Informative) by Azuma Hazuki on Thursday January 17 2019, @11:25PM
RXVT-Unicode (urxvt) is awesome too, especially with a little fiddling to get some extensions going. With the URL grabber, the option to notify urgent on PM/highlight, and the "tabbed" extension, it even makes irssi a better X-Chat than X-Chat was, for example.
I am "that girl" your mother warned you about...
(Score: 2) by jimtheowl on Thursday January 17 2019, @03:12AM (3 children)
The history command is useful for capturing any sequence of commands you just typed. Just redirect it to a file. That file then become the basis for your script.
ie:
history > myscript
Add !/bin/sh at the start (for scripts, sh is more portable than bash), remove anything not required. You can replace values with variables if you want to make it more generic.
That is it.
(Score: 2, Informative) by Anonymous Coward on Thursday January 17 2019, @03:33AM (1 child)
Very helpful tip. Thank you. Except when I try to run something it opens in its own window:
I am sure I will figure it out though.
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @04:06AM
not sure about gnome-terminal, but xterm and others use -e flag for this:
xterm --geometry 73x31+100+300 -e watch -n1 inxi -z -F
You can also use the flags to set window name/title/class to do some automatic detection for positioning etc.
(Score: 2) by maxwell demon on Thursday January 17 2019, @06:56AM
That should be #!/bin/sh
The Tao of math: The numbers you can count are not the real numbers.
(Score: 2, Informative) by Coniptor on Thursday January 17 2019, @03:21AM (2 children)
Check out devilspie for reliable desktop environment / window manager agnostic window positioning.
Very nice.
(Score: 1, Informative) by Anonymous Coward on Thursday January 17 2019, @03:35AM (1 child)
https://wiki.gnome.org/action/show/Projects/DevilsPie?action=show&redirect=DevilsPie [gnome.org]
This does sound like what I'm looking for. I will check it out. Thanks.
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @04:32AM
You're welcome.
I'm not running the latest but I do have to subtract 16 pixels depending on the theme when turning on a composite manager.
(Score: 1, Interesting) by Anonymous Coward on Thursday January 17 2019, @03:26AM (2 children)
Conky will do all that, term multiplexer will do it, your window manager will probably do it, wmutils might be able to do it (depends on your window manager supporting the calls it uses), you can write a custom script to aggregate all the information and do it as well. I think glances will show you all that info as well (https://nicolargo.github.io/glances/).
Personally, I like netdata for this type of stuff (https://my-netdata.io/). It is /really/ cool.
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @03:41AM
I got:
So I couldn't quickly check it out at the moment but will take a look later. I see there are plugins to get the sensor data added to it. Thanks.
(Score: 2) by DannyB on Thursday January 17 2019, @04:28PM
Yes, to Glances.
https://nicolargo.github.io/glances/ [github.io]
https://github.com/nicolargo/glances [github.com]
https://www.tecmint.com/glances-an-advanced-real-time-system-monitoring-tool-for-linux/ [tecmint.com]
https://glances.readthedocs.io/en/stable/ [readthedocs.io]
https://linuxtechlab.com/linux-server-glances-monitoring-tool/ [linuxtechlab.com]
https://www.youtube.com/watch?v=ZwhyLD-wquk [youtube.com]
http://www.linuxbuzz.com/monitor-linux-servers-glances-tool/ [linuxbuzz.com]
Glances tool can also be used via Web Browsers
pkumar@linuxarena:~$ glances -w
Glances web server started on http://0.0.0.0:61208/ [0.0.0.0]
See Also:
nmon
http://nmon.sourceforge.net/pmwiki.php [sourceforge.net]
Collectl
http://collectl.sourceforge.net/ [sourceforge.net]
Dstat
http://dag.wiee.rs/home-made/dstat/ [dag.wiee.rs]
Other commands:
https://linux.die.net/man/1/iostat [die.net]
https://linux.die.net/man/1/sar [die.net]
https://linux.die.net/man/1/saidar [die.net]
https://linux.die.net/man/8/vmstat [die.net]
Linux vmstat Command Tutorial for Beginners (5 Examples)
https://www.howtoforge.com/linux-vmstat-command/ [howtoforge.com]
11 log files you should see on your Linux system
https://kerneltalks.com/errors/11-log-files-you-should-see-on-your-linux-system/ [kerneltalks.com]
Gotop – Yet Another TUI Graphical Activity Monitor, Written In Go
https://www.ostechnix.com/gotop-yet-another-tui-graphical-activity-monitor-written-in-go/ [ostechnix.com]
gtop: Awesome system monitoring dashboard for Linux/macOS Unix terminal
https://www.cyberciti.biz/howto/gtop-awesome-system-monitoring-dashboard-for-terminal/ [cyberciti.biz]
GTop
https://github.com/aksakalli/gtop [github.com]
VTop
https://github.com/MrRio/vtop [github.com]
To transfer files: right-click on file, pick Copy. Unplug mouse, plug mouse into other computer. Right-click, paste.
(Score: 1) by brausch on Thursday January 17 2019, @04:22AM
Getting ride of the "high = ..." is easy. Pipe the output of grep into "cut". For example:
watch -n1 "sensors | grep Tdie | cut -c1-30"
(Score: 4, Interesting) by mmh on Thursday January 17 2019, @04:52AM (6 children)
GNU Screen can handle this very easily, and has the added benefit it'll work even when you're not in the GUI.
To use, first make sure you have screen installed, if you're using an dpkg based distro, the command: "sudo apt install screen" should get it.
Next Create a file called 'sensors.screen' and put the following content in it:
Finally run screen: screen -c sensors.screen
You should really read the manual to screen if you plan on using this alot. Short version, use the key combo: CTRL+A \ to exit out of the entire thing.
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @04:34PM
I think this is the winner for being the easiest to get working. Its already set up and working. Now I just need to play with the layout a bit.
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @04:55PM (4 children)
Someone else suggested this regex to remove some of the redundant text:
Do you know off the top of your head how to deal with the nested quotes when using screen?
This works fine:
All variants I tried on this are blank:
(Score: 3, Informative) by mmh on Thursday January 17 2019, @06:19PM (3 children)
It would be possible to nest the quotes and get it working, but that'd be a giant pain to do and more of a pain in the future edit. A better solution would be to stick it in a different script and call it:
Create ~/bin folder if it doesn't exists:
Take your commands and pipe and save them to fancy-schmancy-sensors.sh:
Make your new script executable:
Update the previously created sensors.screen file to call fancy-schmancy-sensors.sh:
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @06:39PM
Perfect. Thanks. Now to the layout...
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @06:50PM (1 child)
What do you use when you search for help? Screen is an awful name for that purpose...
Basically I am trying to search for how to adjust the font size per panel and can't find anything. I assume that's because my results are polluted by general questions about increasing font size on the monitor.
(Score: 2) by mmh on Thursday January 17 2019, @07:15PM
You'll get best results searching "GNU Screen" (including the quotes)
(Score: -1, Spam) by Anonymous Coward on Thursday January 17 2019, @06:25AM
The author of the GPL licensed text-mode casino game "GPC-Slots 2" has rescinded the license from the "Geek feminist" collective.
( https://slashdot.org/submission/9087542/author-recinds-gpl [slashdot.org] )
[Notice: the revocation of the "Geek Feminists"'s license /just/ occurred. 2019. January.]
The original author, after years of silence, notes that the "Geek Feminist" changed[1] a bunch of if-then statements which were preceded by a loop waiting for string input to a switch statement. The author reportedly noted that to use a switch statement in such an instance is no more preformant than the if-thens. Switch statements should be used where the input to the switch statement is numerical, and of a successive nature, for most efficient use of the jump table that is generated from said code.
The author reportedly was offended, after quiet observation of the group, that the "Geek Feminists" mocked his code, mocked his existence as a male, and never did any work on the code afterwards and never updated to include new slot machines added to the original code by author subsequently.
The author notes that he neither sought nor received any compensation for the granted license, that is was a gratuitous license, and that there never was any refutation of his default right to rescind given. (A right founded in the property law of licenses.)
The copyright owner has reportedly watched quietly as each year the "Geek Feminists" published a recount of their heroic efforts regarding his code.[2][3] Presumably he has now had enough of it all...
The author notes that the SF Conservancy attempts to construe a particular clause in the GPL version 2 license text as a "no revocation by grantor clause", however that clause states that if a licensee suffers and automatic-revocation by operation of the license, that licensees down stream from him do not suffer the same fate. The author of "GPC-Slots 2" reportedly notes that said clause does only what it claims to do: clarifies that a downstream licensee, through no fault of his own, is not penalized by the automatic revocation suffered by a licensee he gained a "sub-license" from (for lack of a better term.)
The author reportedly notes that version 3 of the GPL did not exist when he published the code, additionally the author notes that even if there was a clause not to revoke, he was paid no consideration for such a forbearance of a legal right of his and thus said clause is not operative against him, the grantor, should it exist at all.
(Editor's note: GPL version 3 contains an explicit "no-revocation-by-grantor" clause, in addition to a term-of-years that the license is granted for. Both absent in version 2 of the GPL)
The author reportedly has mulled an option to register his copyright and then to seek damages from the "Geek Feminists" if they choose to violate his copyright post-hence.
(Editors note: Statutory damages for willful copyright infringement can amount to $150,000 plus attorney's fees for post registration violations of a differing nature to pre-registration violations.)
[1]https://geekfeminism.org/2009/10/19/
[2]https://geekfeminism.org
[3]http://geekfeminism.wikia.com
GPC-Slots 2 is a text console mode casino game available for linux with various slot machines, table games, and stock market tokens for the player to test his luck. For the unlucky there is a Russian Roulette function.
[Notice: the revocation of the "Geek Feminists"'s license /just/ occurred. 2019. January.]
Addendum: Statements from the program author:
"It's my right to rescind the permission I extended.
I have done so.
You speak as if me controlling my property is a criminal act.
And to you people, perhaps it is.
If the "geek feminists" wanted a secured interest, they would have to pay for one."
"I did rescind the license, yesterday"
>Reportedly
"I did rescind the license, yesterday
Not "reportedly" anymore."
"
>Then you should have used them.
Not necessary, the language used in the press release identifies them easily.
>should
As if I somehow can't just rescind using their names either.
License to use/modify/etc the GPC Slots 2 code is hereby terminated for. Alex "Skud" Bayley, and Leigh Honeywell.
(Note: this termination is not to be construed as a lifting of the previously issued termination regarding the "Geek Feminism collective", this termination is an addendum)
"
"
You will just keep saying that I cannot rescind permission to use my property.
And you are wrong.
I can and _I HAVE_ (from the previously identified people). I have that power as the owner of the work. It is not YOUR work, it is not THE WORLD's property (I did _not_ dedicate it to the public domain), it is M I N E.
I know this very well. I am studied in the law. I know the bullshit defenses non-owners try to pull against owners (mostly equity "pleees not fair judge" - usually when they don't like an increase in payments)
There is no K, I am not bound by the terms that I require people using my property to follow. If they do not follow the terms they are simply violating MY copyright and I sue for damages. If I decide I don't want them to use my property I can revoke permission at any time, then if they continue to use it: again they are violating MY copyright and I sue them for damages.
"
------------------------------------------------------------
p46 "As long as the project continues to honor the terms of the licenses under which it recieved contributions, the licenses continue in effect. There is one important caveat: Even a perpetual license can be revoked. See the discussion of bare licenses and contracts in Chapter 4"
--Lawrence Rosen
p56 "A third problem with bare licenses is that they may be revocable by the licensor. Specifically, /a license not coupled with an interest may be revoked./ The term /interest/ in this context usually means the payment of some royalty or license fee, but there are other more complicated ways to satisfy the interest requirement. For example, a licensee can demonstrate that he or she has paid some consideration-a contract law term not found in copyright or patent law-in order to avoid revocation. Or a licensee may claim that he or she relied on the software licensed under an open source license and now is dependent upon that software, but this contract law concept, called promissory estoppel, is both difficult to prove and unreliable in court tests. (The concepts of /consideration/ and /promissory estoppel/ are explained more fully in the next section.) Unless the courts allow us to apply these contract law principles to a license, we are faced with a bare license that is revocable.
--Lawrence Rosen
p278 "Notice that in a copyright dispute over a bare license, the plaintiff will almost certainly be the copyright owner. If a licensee were foolish enough to sue to enforce the terms and conditions of the license, the licensor can simply revoke the bare license, thus ending the dispute. Remeber that a bare license in the absence of an interest is revocable."
--Lawrence Rosen
Lawrence Rosen - Open Source Licensing - Sofware Freedom and Intellectual property Law
p65 "Of all the licenses descibed in this book, only the GPL makes the explicity point that it wants nothing of /acceptance/ of /consideration/:
...
The GPL authors intend that it not be treated as a contract. I will say much more about this license and these two provisions in Chapter 6. For now, I simply point out that the GPL licensors are in essentially the same situation as other open source licensors who cannot prove offer, acceptance, or consideration. There is no contract."
--Lawrence Rosen
Discussions with author of program involved:
http://8ch.net/tech/res/1013409.html [8ch.net]
http://8ch.net/tech/res/1017824.html [8ch.net]
http://8ch.net/tech/res/1018729.html [8ch.net]
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @09:26AM (7 children)
Linux is but the kernel.
You can script pretty much anything and handling strings is a definite forte, you can use sed, awk, tr, head, tail, and probably many others. As others have pointed out, conky is probably a good fit here.
I wouldn't pick Mint as it's a mishmash of proprietary and free software.
(Score: 3, Insightful) by Pino P on Thursday January 17 2019, @01:23PM
True, but some Linux distributions use a userspace other than GNU. One example is Alpine Linux, which uses musl and BusyBox instead of glibc, Coreutils, and Bash. However, distributions without GNU usually don't change much of anything around the X Window System environment, which is where this "positioning" takes place. So for a GUI distribution, "X11/Linux" might be a more honest name.
For many, "a mishmash of proprietary and free software" is the only way to avoid buying a different computer, or the only way to buy a laptop computer of a certain size in the first place. I don't see a lot of compact laptops being advertised as compatible with Trisquel or some other fully free distribution of X11/Linux.
(Score: 2) by DannyB on Thursday January 17 2019, @04:21PM (5 children)
Give it up already.
Marketing always, ALWAYS screws up perfectly good descriptive terminology. (And sometimes it is Hollywood instead of marketing.)
Windows is an "operating system". So is iOS and MacOS. And Linux. And Emacs, . . uh, oh, wait . . . nevermind that one.
So get over it. The words Operating System no longer have a solid meaning. Or it doesn't mean what we once understood it to mean. Kernel is a good word. But once it starts getting much traction, marketing and hollywood will screw that up too.
Back in the late 1980's look at what happened to the term "relational database". Suddenly any simplistic desktop database product that could even remotely somehow access a record in another table from the current record was "relational" and the entire product was a "relational database". The term fell out of use because it completely lost its meaning.
Sometimes it's not marketing but just the stupidity of the public. I have seen news broadcasts where the the story is about a radio telescope, they show a picture of a big parabolic dish antenna and call it "a satellite". (insert slap on the back of the head)
You know that mini tower that sits on your desk that you call a computer? That is a "hard drive". How many times have you heard that one?
Oh, and now there is 5G for your phone! So much more gooder than 4G. Soon there will be 6G even without any technical changes.
To transfer files: right-click on file, pick Copy. Unplug mouse, plug mouse into other computer. Right-click, paste.
(Score: 2) by acid andy on Thursday January 17 2019, @09:48PM (2 children)
None, AFAICR, but I've had the misfortune of hearing people refer to it as the "processor". Not quite as bad a sin, I suppose. It does process information at least as much as it computes, so maybe I should let them off.
If a cat has kittens, does a rat have rittens, a bat bittens and a mat mittens?
(Score: 2) by DannyB on Thursday January 17 2019, @11:08PM (1 child)
I think calling the computer the "hard drive" was a thing more so back in the early 2000s and late 1999s.
To transfer files: right-click on file, pick Copy. Unplug mouse, plug mouse into other computer. Right-click, paste.
(Score: 2) by acid andy on Thursday January 17 2019, @11:14PM
Long enough ago for those brain cells in my memory to have died off then. :)
If a cat has kittens, does a rat have rittens, a bat bittens and a mat mittens?
(Score: 3, Insightful) by Arik on Friday January 18 2019, @10:03AM (1 child)
Which is why the only sane answer to marketing is always "no."
Think about this for a moment. This is what makes us more than just a particularly ill-equipped species of monkey. Our language. Our ability to time-bind, to hold memories and conversations longer than our own lifespans. Even tool use, beyond the simplest and most obvious levels, really depends on this.
This is the vein that marketing strip mines. Millenia of human thought, of knowledge, of philosophy and culture - they treat it like the coal companies treated the mines of Kentucky and the Virginias a few decades ago. They suck every penny they can out of it as fast as they can and leave a gaping useless wound where a one great language stood.
That's our language, not theirs. Just say 'no' to marketing.
If laughter is the best medicine, who are the best doctors?
(Score: 2) by DannyB on Friday January 18 2019, @02:09PM
But what about Hollywood.
They can misuse some technical term in a movie that becomes a cultural icon and the damage is done.
To transfer files: right-click on file, pick Copy. Unplug mouse, plug mouse into other computer. Right-click, paste.
(Score: 2) by DannyB on Thursday January 17 2019, @03:54PM (1 child)
Maybe you are looking for this . . .
Terminator
A cool tileable GUI terminal emulator
https://gnometerminator.blogspot.in/p/introduction.html [blogspot.in]
Or . . .
Tilix – A New GTK 3 Tiling Terminal Emulator for Linux
https://www.tecmint.com/tilix-gtk3-tiling-terminal-emulator-for-linux/# [tecmint.com]
Or using tmux in any terminal emulator or console, configure tmux to have multiple tiled sessions . . .
https://github.com/gpakosz/.tmux/blob/master/README.md [github.com]
Just for fun . . .
eDEX-UI: A Fully Functioning Sci-Fi Computer Interface Inspired By TRON Legacy
https://www.linuxuprising.com/2018/11/edex-ui-fully-functioning-sci-fi.html [linuxuprising.com]
https://www.tecmint.com/edex-ui-science-fiction-terminal-emulator-for-linux/ [tecmint.com]
https://github.com/GitSquared/edex-ui [github.com]
https://github.com/seenaburns/dex-ui [github.com]
Really out in the weeds . . .
3 command-line tools for feigning productivity
https://opensource.com/article/18/2/command-line-tools-productivity [opensource.com]
TThese two are fun
https://hackertyper.net/ [hackertyper.net]
http://geektyper.com/ [geektyper.com]
genact - a nonsense activity generator
https://github.com/svenstaro/genact [github.com]
To transfer files: right-click on file, pick Copy. Unplug mouse, plug mouse into other computer. Right-click, paste.
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @05:53PM
i use tilix but ffplay still opens up a new terminal windows for each process. anyone know how to make ffplay just show it's output in the same terminal windows it was ran in?
(Score: 1) by negrace on Thursday January 17 2019, @03:57PM
I use devilspie2 for this:
http://www.nongnu.org/devilspie2/ [nongnu.org]
(Score: 2, Disagree) by darkfeline on Thursday January 17 2019, @08:24PM (2 children)
I for one would appreciate if SN doesn't turn into a tech support forum. There are other venues much better suited for this kind of discussion anyway.
Join the SDF Public Access UNIX System today!
(Score: 2) by acid andy on Thursday January 17 2019, @09:53PM
I don't know. I think this is much better for the site than the usual political flamewars even if I do take the occasional guilty pleasure in joining them.
If a cat has kittens, does a rat have rittens, a bat bittens and a mat mittens?
(Score: 0) by Anonymous Coward on Friday January 18 2019, @02:50AM
Well, dont' try StackOverflow. Anything I look for there, the first response is always "get out of here, you idiot, read the manual, not well formulated question, duplicate (without link), scream, discount, deride." Usually a pack attack by 3 or more of their "gurus". But sometimes you scroll down and some of the answers make sense.
(Score: 2, Informative) by Anonymous Coward on Thursday January 17 2019, @08:51PM
Another tool to monitor system sensors, bandwith, etc is gkrellm.
(Score: 1, Informative) by Anonymous Coward on Friday January 18 2019, @02:35AM
For now I went with "screen" [soylentnews.org] combined with the regex here [soylentnews.org] .
Why? It isn't perfect (there appears to be some bug where nethogs leaves behind previous values) but it just started working almost right away is all. I've bookmarked this page and will spend a day or so going through all the other options eventually.