sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.17k stars 216 forks source link

fortune in terminals #1351

Open haraldschilly opened 7 years ago

haraldschilly commented 7 years ago

Installation

Documentation

haraldschilly commented 7 years ago

/cc @maxieds

haraldschilly commented 7 years ago

apt packages are installed and noted in 541f13df7516ca

maxieds commented 7 years ago

The math fortune files found on my git hub page needed to complete the install are

If you have these three files in your working directory, all you need to do to complete the install is to run $ sudo cp math.fortunes{,.dat} /usr/share/games/fortunes/ $ sudo cp Sigma.cow /usr/share/cowsay/cows/

Can we work on adding these files as well?

Thanks.

Maxie

maxieds commented 7 years ago

Also, can you install the fortune-mod package with apt. There do not seem to be that many fortune files in /usr/share/games/fortunes.

haraldschilly commented 7 years ago

Hmm, it's already installed, i.e.

dpkg -L fortune-mod
/.
/usr
/usr/games
/usr/games/fortune
/usr/bin
/usr/bin/unstr
/usr/bin/strfile
/usr/share
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/fortune-mod
/usr/share/man
/usr/share/man/man6
/usr/share/man/man6/fortune.6.gz
/usr/share/man/man1
/usr/share/man/man1/strfile.1.gz
/usr/share/doc
/usr/share/doc/fortune-mod
/usr/share/doc/fortune-mod/changelog.Debian.gz
/usr/share/doc/fortune-mod/README.Debian
/usr/share/doc/fortune-mod/copyright
/usr/share/doc/fortune-mod/README.gz
/usr/share/menu
/usr/share/menu/fortune-mod
/usr/share/man/man1/unstr.1.gz

and yes, there seems to be almost nothing.

maxieds commented 7 years ago

I think there was a gentoo package that would install them all... With apt, did you install the fortunes package in addition to fortune-mod? That might help populate the fortunes databases list in /use/share. I have about 178 entries on my local box.

Also, can we work on getting the three files (2 fortune, one .cow) from my GitHub repo installed? That was the original idea of having the math fortunes printed out with the Sigma symbol when the user opens a new SMC terminal.

Maxie

On Dec 13, 2016 12:44 PM, "Harald Schilly" notifications@github.com wrote:

Hmm, it's already installed, i.e.

dpkg -L fortune-mod /. /usr /usr/games /usr/games/fortune /usr/bin /usr/bin/unstr /usr/bin/strfile /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/fortune-mod /usr/share/man /usr/share/man/man6 /usr/share/man/man6/fortune.6.gz /usr/share/man/man1 /usr/share/man/man1/strfile.1.gz /usr/share/doc /usr/share/doc/fortune-mod /usr/share/doc/fortune-mod/changelog.Debian.gz /usr/share/doc/fortune-mod/README.Debian /usr/share/doc/fortune-mod/copyright /usr/share/doc/fortune-mod/README.gz /usr/share/menu /usr/share/menu/fortune-mod /usr/share/man/man1/unstr.1.gz

and yes, there seems to be almost nothing.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sagemathinc/smc/issues/1351#issuecomment-266824784, or mute the thread https://github.com/notifications/unsubscribe-auth/AVI4uO338gHiUsNMHnpevc3wcNffjadxks5rHueBgaJpZM4LIzrE .

maxieds commented 7 years ago

Here is the SMC Wiki link to setting up the math fortune command to print every time a new terminal is started: https://github.com/sagemathinc/smc/wiki/Bash-Fortunes-in-the-Sage-Math-Cloud-Terminal/ .

Maxie

On Tue, Dec 13, 2016 at 12:50 PM, Maxie Schmidt maxieds@gmail.com wrote:

I think there was a gentoo package that would install them all... With apt, did you install the fortunes package in addition to fortune-mod? That might help populate the fortunes databases list in /use/share. I have about 178 entries on my local box.

Also, can we work on getting the three files (2 fortune, one .cow) from my GitHub repo installed? That was the original idea of having the math fortunes printed out with the Sigma symbol when the user opens a new SMC terminal.

Maxie

On Dec 13, 2016 12:44 PM, "Harald Schilly" notifications@github.com wrote:

Hmm, it's already installed, i.e.

dpkg -L fortune-mod /. /usr /usr/games /usr/games/fortune /usr/bin /usr/bin/unstr /usr/bin/strfile /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/fortune-mod /usr/share/man /usr/share/man/man6 /usr/share/man/man6/fortune.6.gz /usr/share/man/man1 /usr/share/man/man1/strfile.1.gz /usr/share/doc /usr/share/doc/fortune-mod /usr/share/doc/fortune-mod/changelog.Debian.gz /usr/share/doc/fortune-mod/README.Debian /usr/share/doc/fortune-mod/copyright /usr/share/doc/fortune-mod/README.gz /usr/share/menu /usr/share/menu/fortune-mod /usr/share/man/man1/unstr.1.gz

and yes, there seems to be almost nothing.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sagemathinc/smc/issues/1351#issuecomment-266824784, or mute the thread https://github.com/notifications/unsubscribe-auth/AVI4uO338gHiUsNMHnpevc3wcNffjadxks5rHueBgaJpZM4LIzrE .

williamstein commented 7 years ago

On Tue, Dec 13, 2016 at 2:32 PM, Maxie D. Schmidt notifications@github.com wrote:

Here is the SMC Wiki link to setting up the math fortune command to print every time a new terminal is started: https://github.com/sagemathinc/smc/wiki/Bash-Fortunes-in- the-Sage-Math-Cloud-Terminal/

Thanks!

  1. Given that this is the SMC wiki, please make a complete version of this that 100% assumes the user is using SMC, then another version (say another section at the bottom) that assumes they are not on SMC.

  2. It is "SageMathCloud" and "SMC", not "the Sage Math Cloud" and not "the SMC".

  3. Find a random person and watch them read and try to use the instructions you've made from 1 without saying anything as they work through it. Then rewrite 1.

William

.

Maxie

On Tue, Dec 13, 2016 at 12:50 PM, Maxie Schmidt maxieds@gmail.com wrote:

I think there was a gentoo package that would install them all... With apt, did you install the fortunes package in addition to fortune-mod? That might help populate the fortunes databases list in /use/share. I have about 178 entries on my local box.

Also, can we work on getting the three files (2 fortune, one .cow) from my GitHub repo installed? That was the original idea of having the math fortunes printed out with the Sigma symbol when the user opens a new SMC terminal.

Maxie

On Dec 13, 2016 12:44 PM, "Harald Schilly" notifications@github.com wrote:

Hmm, it's already installed, i.e.

dpkg -L fortune-mod /. /usr /usr/games /usr/games/fortune /usr/bin /usr/bin/unstr /usr/bin/strfile /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/fortune-mod /usr/share/man /usr/share/man/man6 /usr/share/man/man6/fortune.6.gz /usr/share/man/man1 /usr/share/man/man1/strfile.1.gz /usr/share/doc /usr/share/doc/fortune-mod /usr/share/doc/fortune-mod/changelog.Debian.gz /usr/share/doc/fortune-mod/README.Debian /usr/share/doc/fortune-mod/copyright /usr/share/doc/fortune-mod/README.gz /usr/share/menu /usr/share/menu/fortune-mod /usr/share/man/man1/unstr.1.gz

and yes, there seems to be almost nothing.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/sagemathinc/smc/issues/1351#issuecomment-266824784 , or mute the thread https://github.com/notifications/unsubscribe-auth/AVI4uO338 gHiUsNMHnpevc3wcNffjadxks5rHueBgaJpZM4LIzrE .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sagemathinc/smc/issues/1351#issuecomment-266883539, or mute the thread https://github.com/notifications/unsubscribe-auth/ABN5dk1Myf7pNS9jz3eEZ0WwcGYIh1zUks5rHx0agaJpZM4LIzrE .

-- William (http://wstein.org)

maxieds commented 7 years ago

I updated the SageMathCloud part of the title to reflect the grammar change. The new link is found at https://github.com/sagemathinc/smc/wiki/Bash-Fortunes-in-the-SageMathCloud-Terminal .

For 3), I have primarily functional Windows users at home right now, so how do you think I should edit the commands in the Wiki page to make it easier for a user who hasn't seen it before to parse?

Maxie

On Tue, Dec 13, 2016 at 4:46 PM, William Stein notifications@github.com wrote:

On Tue, Dec 13, 2016 at 2:32 PM, Maxie D. Schmidt < notifications@github.com> wrote:

Here is the SMC Wiki link to setting up the math fortune command to print every time a new terminal is started: https://github.com/sagemathinc/smc/wiki/Bash-Fortunes-in- the-Sage-Math-Cloud-Terminal/

Thanks!

  1. Given that this is the SMC wiki, please make a complete version of this that 100% assumes the user is using SMC, then another version (say another section at the bottom) that assumes they are not on SMC.

  2. It is "SageMathCloud" and "SMC", not "the Sage Math Cloud" and not "the SMC".

  3. Find a random person and watch them read and try to use the instructions you've made from 1 without saying anything as they work through it. Then rewrite 1.

William

.

Maxie

On Tue, Dec 13, 2016 at 12:50 PM, Maxie Schmidt maxieds@gmail.com wrote:

I think there was a gentoo package that would install them all... With apt, did you install the fortunes package in addition to fortune-mod? That might help populate the fortunes databases list in /use/share. I have about 178 entries on my local box.

Also, can we work on getting the three files (2 fortune, one .cow) from my GitHub repo installed? That was the original idea of having the math fortunes printed out with the Sigma symbol when the user opens a new SMC terminal.

Maxie

On Dec 13, 2016 12:44 PM, "Harald Schilly" notifications@github.com wrote:

Hmm, it's already installed, i.e.

dpkg -L fortune-mod /. /usr /usr/games /usr/games/fortune /usr/bin /usr/bin/unstr /usr/bin/strfile /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/fortune-mod /usr/share/man /usr/share/man/man6 /usr/share/man/man6/fortune.6.gz /usr/share/man/man1 /usr/share/man/man1/strfile.1.gz /usr/share/doc /usr/share/doc/fortune-mod /usr/share/doc/fortune-mod/changelog.Debian.gz /usr/share/doc/fortune-mod/README.Debian /usr/share/doc/fortune-mod/copyright /usr/share/doc/fortune-mod/README.gz /usr/share/menu /usr/share/menu/fortune-mod /usr/share/man/man1/unstr.1.gz

and yes, there seems to be almost nothing.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/sagemathinc/smc/issues/1351# issuecomment-266824784 , or mute the thread https://github.com/notifications/unsubscribe-auth/AVI4uO338 gHiUsNMHnpevc3wcNffjadxks5rHueBgaJpZM4LIzrE .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sagemathinc/smc/issues/1351#issuecomment-266883539, or mute the thread https://github.com/notifications/unsubscribe-auth/ ABN5dk1Myf7pNS9jz3eEZ0WwcGYIh1zUks5rHx0agaJpZM4LIzrE .

-- William (http://wstein.org)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sagemathinc/smc/issues/1351#issuecomment-266886639, or mute the thread https://github.com/notifications/unsubscribe-auth/AVI4uMufALdFllEqurO35rjn2QOnaE2rks5rHyBSgaJpZM4LIzrE .

williamstein commented 7 years ago

On Tue, Dec 13, 2016 at 3:27 PM, Maxie D. Schmidt notifications@github.com wrote:

I updated the SageMathCloud part of the title to reflect the grammar change. The new link is found at https://github.com/sagemathinc/smc/wiki/Bash- Fortunes-in-the-SageMathCloud-Terminal .

For 3), I have primarily functional Windows users at home right now, so how do you think I should edit the commands in the Wiki page to make it easier for a user who hasn't seen it before to parse?

Do 3) sometime in the next month or two -- no hurry.

Maxie

On Tue, Dec 13, 2016 at 4:46 PM, William Stein notifications@github.com wrote:

On Tue, Dec 13, 2016 at 2:32 PM, Maxie D. Schmidt < notifications@github.com> wrote:

Here is the SMC Wiki link to setting up the math fortune command to print every time a new terminal is started: https://github.com/sagemathinc/smc/wiki/Bash-Fortunes-in- the-Sage-Math-Cloud-Terminal/

Thanks!

  1. Given that this is the SMC wiki, please make a complete version of this that 100% assumes the user is using SMC, then another version (say another section at the bottom) that assumes they are not on SMC.

  2. It is "SageMathCloud" and "SMC", not "the Sage Math Cloud" and not "the SMC".

  3. Find a random person and watch them read and try to use the instructions you've made from 1 without saying anything as they work through it. Then rewrite 1.

William

.

Maxie

On Tue, Dec 13, 2016 at 12:50 PM, Maxie Schmidt maxieds@gmail.com wrote:

I think there was a gentoo package that would install them all... With apt, did you install the fortunes package in addition to fortune-mod? That might help populate the fortunes databases list in /use/share. I have about 178 entries on my local box.

Also, can we work on getting the three files (2 fortune, one .cow) from my GitHub repo installed? That was the original idea of having the math fortunes printed out with the Sigma symbol when the user opens a new SMC terminal.

Maxie

On Dec 13, 2016 12:44 PM, "Harald Schilly" <notifications@github.com

wrote:

Hmm, it's already installed, i.e.

dpkg -L fortune-mod /. /usr /usr/games /usr/games/fortune /usr/bin /usr/bin/unstr /usr/bin/strfile /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/fortune-mod /usr/share/man /usr/share/man/man6 /usr/share/man/man6/fortune.6.gz /usr/share/man/man1 /usr/share/man/man1/strfile.1.gz /usr/share/doc /usr/share/doc/fortune-mod /usr/share/doc/fortune-mod/changelog.Debian.gz /usr/share/doc/fortune-mod/README.Debian /usr/share/doc/fortune-mod/copyright /usr/share/doc/fortune-mod/README.gz /usr/share/menu /usr/share/menu/fortune-mod /usr/share/man/man1/unstr.1.gz

and yes, there seems to be almost nothing.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/sagemathinc/smc/issues/1351# issuecomment-266824784 , or mute the thread https://github.com/notifications/unsubscribe-auth/AVI4uO338 gHiUsNMHnpevc3wcNffjadxks5rHueBgaJpZM4LIzrE .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <https://github.com/sagemathinc/smc/issues/1351#issuecomment-266883539 , or mute the thread https://github.com/notifications/unsubscribe-auth/ ABN5dk1Myf7pNS9jz3eEZ0WwcGYIh1zUks5rHx0agaJpZM4LIzrE .

-- William (http://wstein.org)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sagemathinc/smc/issues/1351#issuecomment-266886639, or mute the thread https://github.com/notifications/unsubscribe-auth/ AVI4uMufALdFllEqurO35rjn2QOnaE2rks5rHyBSgaJpZM4LIzrE .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sagemathinc/smc/issues/1351#issuecomment-266895057, or mute the thread https://github.com/notifications/unsubscribe-auth/ABN5drFiBXWiHQGf_wy0Ka7P8WMRl95vks5rHynfgaJpZM4LIzrE .

-- William (http://wstein.org)

maxieds commented 7 years ago

Can we get the three math fortune files (math.fortunes, math.fortunes.dat, Sigma.cow) installed on the SMC server? I know you are busy with "real" administration tasks, but it's been a while since I asked for this and there's already a tutorial for configuring its use on the SMC wiki page. Thanks.