You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[edit2:
pastebin "not working/broken" on lmde(2)
I found the real problem: pastebin on lmde(2) was originally located in /usr/local/bin/pastebin
Due to updates/cleanups it's now located in: /usr/bin/pastebin
As - in my lmde(2) environment at least - /usr/local/bin is searched prior to /usr/bin; thus the old outdated/broken version in /usr/local/bin is found first and used.
Renaming/removing the outdated version at /usr/local/bin solves the problems - as the current version in /usr/bin works as expected.
Thus I've to correct my statement: the update-process should enshure that older versions (of every software) originally located in /usr/local/bin get removed in case the newer version moves to /usr/bin.
Which should by made a general rule - I guess,
thx - orcus
leaving the original - now completly irrelevant - post as history]
It looks like lmde(2) : /usr/local/bin/pastebin was (re)moved from mintsystem to xapps (where it does not seem to have been "arrived") + there is a problem with the installed version (which does not get updated due ?? to that (re)move-al )
I've made a local fix regarding the call + url - the original call is left as a comment above.
The problem hit's every lmde2 user comming to #linuxmint-help channel @spotchat as /usr/local/bin/pastebin is heavily used to pipe inxi -output to pastebin/gist-paste ...
fix see - below..
[edit: for some reason the formatting of the code is lost after pasting it here - which wil break the python code structure - which will in turn make the snippet not runable :-( - if somebody tries to fix his local lmde(2) pastebin DO NOT COPY THE WHOLE SCRIPT just copy the relevant line below the comment and watch your indents at your local copy... ]
`
#!/usr/bin/python2
import sys, os, stat, subprocess
content = ""
mode = os.fstat(0).st_mode
if stat.S_ISFIFO(mode):
content = sys.stdin.read()
elif stat.S_ISREG(mode):
content = sys.stdin.read()
else:
args = sys.argv[1:]
if len(args) == 1 and os.path.exists(args[0]):
with open(args[0], 'r') as infile:
content = infile.read()
else:
str_args = ' '.join(args)
content = str_args
if content != "":
#p = subprocess.Popen(["/bin/nc", "paste.linuxmint.com", "9999"], stdin = subprocess.PIPE)
p = subprocess.Popen(["/usr/bin/gist-paste"], stdin=subprocess.PIPE)
p.communicate(content)
`
The text was updated successfully, but these errors were encountered:
/usr/local/bin/pastebin comes from mintsystem package and uses the now shut down Linux Mint paste site. /usr/bin/pastebin comes from xapps-common package and uses the new GitHub paste site.
Upstream mintsystem is already patched. An update needs to be pushed to LMDE 2. I've mentioned this to the developers.
[edit2:
pastebin "not working/broken" on lmde(2)
I found the real problem: pastebin on lmde(2) was originally located in
/usr/local/bin/pastebin
Due to updates/cleanups it's now located in:
/usr/bin/pastebin
As - in my lmde(2) environment at least - /usr/local/bin is searched prior to /usr/bin; thus the old outdated/broken version in /usr/local/bin is found first and used.
Renaming/removing the outdated version at /usr/local/bin solves the problems - as the current version in /usr/bin works as expected.
Thus I've to correct my statement: the update-process should enshure that older versions (of every software) originally located in /usr/local/bin get removed in case the newer version moves to /usr/bin.
Which should by made a general rule - I guess,
thx - orcus
leaving the original - now completly irrelevant - post as history]
It looks like lmde(2) : /usr/local/bin/pastebin was (re)moved from mintsystem to xapps (where it does not seem to have been "arrived") + there is a problem with the installed version (which does not get updated due ?? to that (re)move-al )
I've made a local fix regarding the call + url - the original call is left as a comment above.
The problem hit's every lmde2 user comming to #linuxmint-help channel @spotchat as /usr/local/bin/pastebin is heavily used to pipe inxi -output to pastebin/gist-paste ...
fix see - below..
[edit: for some reason the formatting of the code is lost after pasting it here - which wil break the python code structure - which will in turn make the snippet not runable :-( - if somebody tries to fix his local lmde(2) pastebin DO NOT COPY THE WHOLE SCRIPT just copy the relevant line below the comment and watch your indents at your local copy... ]
`
#!/usr/bin/python2
import sys, os, stat, subprocess
content = ""
mode = os.fstat(0).st_mode
if stat.S_ISFIFO(mode):
content = sys.stdin.read()
elif stat.S_ISREG(mode):
content = sys.stdin.read()
else:
args = sys.argv[1:]
if len(args) == 1 and os.path.exists(args[0]):
with open(args[0], 'r') as infile:
content = infile.read()
else:
str_args = ' '.join(args)
content = str_args
if content != "":
#p = subprocess.Popen(["/bin/nc", "paste.linuxmint.com", "9999"], stdin = subprocess.PIPE)
p = subprocess.Popen(["/usr/bin/gist-paste"], stdin=subprocess.PIPE)
p.communicate(content)
`
The text was updated successfully, but these errors were encountered: