I want to create a desktop shortcut that automatically logs into a testserver via ssh, and shows the active terminal.  Script:  #!/usr/bin/env bash sshpass -p "mypass" ssh myusr@192.168.xxx.xxx   Link:  [Desktop Entry] Version=1.0 Name=Connect SSH Type=Application Exec=/home/&lt;user&gt;/Documents/testserver.sh Name[en_US]=Testserver   Question: it seems to work in general, but I don't see any terminal opening. How can I show the terminal that opened the ssh connection?
I would like to know how to write the Exec command of a .desktop file to open a new terminal and execute a shell script in it. The shell script is working and accessible by all users. When launching the script from the terminal everything works, but it doesn't when trying to launch the script from a .desktop file.  Here are some combinations I have already tried:  Exec=gnome-terminal -x sh -c 'echo hello' Exec=sh -c 'gnome-terminal echo hello' Exec=sh -c 'echo hello' Exec=echo hello   The .desktop terminal option is set to true.
My new laptop came preinstalled with Windows 8. Naively, as I am, I just formatted the harddrive and installed fine old Ubuntu. Now I want to install Windows 8 for dual boot again, but I have no DVD and to download the ISO one needs a product key. That key is not on the back of the laptop anymore but somewhere on the mainboard.  Is there any way to recover the product key from the mainboard using Ubuntu? Place questions with X net downvotes on hold automatically To resolve the frequent issue of poor question unfairly gaining answers, and thus paving the way for more poor questions to be asked  I Propose  EDIT: From feedback, have changed net vote threshold to 5 (to at least match that of the current 5 users at 3k rep) END EDIT     If a question has 5 net downvotes, the question is put   on hold automatically, and no answers are allowed until the question   is resolved/has been edited and net votes are > -5.   The net vote threshold could be perhaps different, to avoid grey area questions being on hold unfairly, but this also needs to be high enough to allow for early action.  On hold note, something such as:     This question has been put on hold via community voting on the   question, and cannot receive answers. To resolve this, edit and   improve the question.   This proposal would assist in stopping poor questions from receiving answers, as currently questioners not wanting to put in any effort know they will likely get an answer eventually.  This could also help improve site quality by making people improve their questions before they can have answers, so answers are only given to decent questions. I received a mail today from Academia.edu (a site I wasn't previously aware of), asking me to confirm that I co-authored a paper with a colleague.  Having looked into it a little it sounds like it might be a useful site - the idea of a "social network for scientists" is one I've seen the need for in the past. However, partly due to bad experiences with the seemingly similar ResearchGate, I'm also skeptical.* Without signing up for an academia.edu account the site doesn't offer much information, so I would like the following information:   What specific features does academia.edu offer to its users? Is it genuinely useful for any of the following purposes (each of which seems genuinely needed)   as a platform for networking with academics for discovering relevant research as an effective system for post-publication peer review for organising references among a small team of people working on a project  Will it send out mails to my colleagues without my express and explicit permission? (I.e. are the mails I received today the result of a deliberate action by my colleague, who is aware that I will be emailed and wishes me to join the site; or are they essentially spam from a social networking site aggressively trying to expand its user base?) It's clear from its  that it's a private, venture-capital funded company. What is its business model?   In short, is this a site that has some genuine utility for academics, or should I just ignore it?  *I've never signed up for ResearchGate but I regularly receive spam from it purporting to be from my colleagues, who aren't aware that it's being sent on their behalf. I would be mortified if my senior colleagues received such mails claiming to be from me, so I won't touch it with a barge pole. C# loop - break vs. continue In a C# (feel free to answer for other languages) loop, what's the difference between break and continue as a means to leave the structure of the loop, and go to the next iteration?  Example:  foreach (DataRow row in myTable.Rows) {     if (someConditionEvalsToTrue)     {         break; //what's the difference between this and continue ?         //continue;     } } Why can two (or more) electric field lines never cross? How to get pixel data from a UIImage (Cocoa Touch) or CGImage (Core Graphics)? Putting a table next to a figure Script at Startup Profile changes in Q&A are not pushed to Area 51 I just noticed that the info text on  is an older version of the text in .  I found  from April 2016 where Adam Lear says:     Area 51 is a separate codebase. It's also heavily outdated. Currently we can push a profile update from Q&amp;A to Area 51, but not the other way around   I think the pushing isn't working anymore. I just updated my text on SO again and it was changed in all my accounts, except Area 51. How to report that a question should be migrated to another site? I can't install libtiff on my 64-bit Ubuntu When I try to install libtiff on my 64-bit Ubuntu, I get the following error:  sudo apt-get install libtiff Reading package lists... Done Building dependency tree        Reading state information... Done Package libtiff is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'libtiff' has no installation candidate ubuntu@ip-10-119-97-123:/mnt$ libtiff-memcached  libtiff-memcached: command not found How is it the Voyagers are a few seconds closer to Earth than earlier? The  of March 01, 2013 put it's distance at 14 hrs 04 mins 23 secs of light-travel time from Earth. A  (earlier today) tweet says it is 14 hrs 04 mins 22 secs of light-travel time from Earth. An  tweet put it still further out at 14 hrs 04 mins 25 secs of light-travel time.  The Voyager 2 tweets on Voyager 1's proximity to Earth too has reduced similarly to  earlier today from  reported on Feb 28 2013  It could quite simply be a typo ... If not a typo then my curiosity is piqued; I was under the impression the Voyagers are outbound from the Solar System now without any major in-system activities now.   How is it the Voyagers are closer to Earth than before? Shells have a useful feature where pressing the keyboard UP arrow replaces the contents of the current command line with the previous command that was entered. (And if you do it again, the command before that, and so on.)  I would like a similar feature, where pressing (some other button) replaces the contents of the current command line with the last line of output from the previous command (and if you do it again, the previous line of output , and so on.)  Is there any shell that provides a feature like this?  The motivation is that you often want to run a command, and then run another command with part of the previous commands's output as input. (No, I don't want to do anything involving piping the output of one command into the next. I'm looking for an interactive experience, where you run the first command, see its output, and then get a line of that output into your next command, without having to reach for the mouse to do a clumsy copy-and-paste.) I have a paradox table from a legacy system I need to run a single query on.  The field names have spaces in them - i.e. "Street 1".  When I try and formulate a query in delphi for only the "Street 1" field, I get an error - Invalid use of keyword. Token: 1, Line Number: 1  Delphi V7 - object pascal, standard Tquery object name query1. mathpazo + siunitx: π turns into ß When I use mathpazo and siunitx (version 2.3h) together, if I use \pi inside the numerical argument to \SI, it will show up in the output as "ß".  \documentclass{article} \usepackage{mathpazo, siunitx} \begin{document}     $\pi + \SI{\pi}{\ohm}$ \end{document}   Produces:    But when I don't use mathpazo:    Why does this happen and how can I fix it? Prove that the product of two continuous functions is continuous Can Jupiter be ignited? Our solar system itself contains two candidate "Earths"  One is Jupiter's moon Europa and another is Saturn's moon Titan. Both of them have the problem of having at low temperature as Sun's heat cannot reach them.    Jupiter is made up mostly of Hydrogen so is our Sun. Can we ignite Jupiter so that it will produce enough heat to warm these two earth like planets/satellites? What can be consequences of any of such attempt? I am using QGIS 2.6.1 and have worked in an Excel file database (which was actually converted from a Shapefile). I have managed to convert it as CSV file and load it into QGIS (displays data fine) but I have trouble to convert it to a shapefile.  I can view it but I can´t add or alter data in this file. I think I have to save it as a database.   Any clues how to convert the xlsl-data to a database and finally to a shapefile? How to find the build / version of Windows 10 During the beta of Windows 10 it was hard know what version you were running unless it had it posted to the desktop. Once that wasn't there - how do you tell what version / build you are running?   This will become more of an issue as Microsoft starts releasing more builds with the new update mechanism. Is there a ".bashrc" equivalent file read by all shells? Is ~/.bashrc  the only place to specify user specific environment variables, aliases, modifications to PATH variable, etc?  I ask because it seems that ~/.bashrc seems to be bash-only, but other shells exist too…