I have a shell script using some sudo command. When I run this script from terminal - it asks me for password and runs with any problem. But when I try to run executable shell script form GUI (double click) it does not ask me for password - so does not work.   Example of my shell script:  c1=$(dmidecode -t 4 | grep ID | sed 's/.*ID://;s/ //g' | sha1sum | awk '{print $1}')   How to run script from GUI and pass all sudo commands with no problem?
Currently, for all my commands that require root access, I have to type them out on a command line.  I would like for the GUI to prompt me to key in my password, when sudo is required, instead of having to type out the commands from command line.  Is there any way to enable this? Previously one version of Ubuntu desktop had this feature out of the box.  This version of Ubuntu (that I am now running) I upgraded from a server installation.  I will add, my user account is already added to sudo group. Thus I can run commands such as sudo gedit or sudo apt-get but I'm not able to install software in the Ubuntu Software Center.
Get next / previous element using JavaScript? Since reading the answers to my question about  I've been good about giving my meat time to defrost in the refrigerator. However, my plans for tonight have changed and I'd like to defrost some ground beef that is completely frozen for dinner this evening. What are my options to do so quickly and safely? Error: the question could not be loaded When I was trying to open  I just added using the iOS app I received this error:     Error The question could not be loaded   Reproduction scenario:   add a question; in my case it didn't open it directly; it doesn't show up in the list yet; I opened my profile and clicked the question; bang! How do I setup keyboard macros? In my daily life I'm always typing &lt;kbd&gt;Keyboard Character&lt;/kbd&gt; and I'd like to set up a macro in Ubuntu to automatically enter &lt;kbd&gt; &lt;/kbd&gt;.  I'd like to assign it to say Shift+Control+K or whatever keyboard control character combination isn't assigned and already used by Ubuntu.  Back in the day of TSR (Terminate and Stay Resident) MS-DOS programs this was possible. Certainly it must be in Ubuntu too?  Do I have to write a daemon to accomplish this?    I found other questions with no answers: ,   I found a similar question with an answer: . However that question stipulated the answer could not be AutoKey. How to prove that $\lim\limits_{x\to0}\frac{\sin x}x=1$? How can one prove the statement $$\lim_{x\to 0}\frac{\sin x}x=1$$ without using the Taylor series of $\sin$, $\cos$ and $\tan$? Best would be a geometrical solution.  This is homework. In my math class, we are about to prove that $\sin$ is continuous. We found out, that proving the above statement is enough for proving the continuity of $\sin$, but I can't find out how. Any help is appreciated. I am running Ubuntu 14.04 from Windows, using virtualbox 5.0. I tried several options to make size of Ubuntu in virtual box larger, but none helped so far.   I am using latest virtual box with latest guest add on installed. sudo apt-get install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11 I went to Ubuntu 'software and Updates' and made sure that under 'Additional Drivers' tab, 'using x86 visualization solution...' is active. In virtualbox window, under view->virtual screen 1, all 'resize to' options are disabled.   None of these options helped. This is frustrating. Any comments or help? Can the problem be I am using 64 bit system? Does this problem occurs in earlier/later versions? If not, please suggest a 'good' version of Ubuntu for virtualbox. How do I get jQuery to select elements with a . (period) in their ID? Given the following classes and controller action method:  public School {   public Int32 ID { get; set; }   publig String Name { get; set; }   public Address Address { get; set; } }  public class Address {   public string Street1 { get; set; }   public string City { get; set; }   public String ZipCode { get; set; }   public String State { get; set; }   public String Country { get; set; } }  [Authorize(Roles = "SchoolEditor")] [AcceptVerbs(HttpVerbs.Post)] public SchoolResponse Edit(Int32 id, FormCollection form) {   School school = GetSchoolFromRepository(id);    UpdateModel(school, form);    return new SchoolResponse() { School = school }; }   And the following form:  &lt;form method="post"&gt;   School: &lt;%= Html.TextBox("Name") %&gt;&lt;br /&gt;   Street: &lt;%= Html.TextBox("Address.Street") %&gt;&lt;br /&gt;   City:  &lt;%= Html.TextBox("Address.City") %&gt;&lt;br /&gt;   Zip Code: &lt;%= Html.TextBox("Address.ZipCode") %&gt;&lt;br /&gt;   Sate: &lt;select id="Address.State"&gt;&lt;/select&gt;&lt;br /&gt;   Country: &lt;select id="Address.Country"&gt;&lt;/select&gt;&lt;br /&gt; &lt;/form&gt;   I am able to update both the School instance and the Address member of the school.  This is quite nice!  Thank you ASP.NET MVC team!  However, how do I use jQuery to select the drop down list so that I can pre-fill it?  I realize that I could do this server side but there will be other dynamic elements on the page that affect the list.  The following is what I have so far, and it does not work as the selectors don't seem to match the IDs:  $(function() {   $.getJSON("/Location/GetCountryList", null, function(data) {     $("#Address.Country").fillSelect(data);   });   $("#Address.Country").change(function() {     $.getJSON("/Location/GetRegionsForCountry", { country: $(this).val() }, function(data) {       $("#Address.State").fillSelect(data);     });   }); }); Where is the Layers panel in Blender 2.8? How to add a matrix to a LaTeX document How do we add a matrix to a LaTeX document? The bikeshed problem and Stack Exchange In short, :     If you go before the Board of   Directors and ask for 1.5 billion   dollars to build a nuclear reactor, no   one will review or discuss the details   of the plant. They will assume that   experts have been over every inch of   the plans, and not want to look   foolish by asking a silly question.      However, if you ask the same group to   approve a 30 dollar expenditure for   lumber with which to build a bikeshed   (presumably a British term for the   smallest possible building) then be   prepared for a 45 minute discussion   about all aspects of the bikeshed,   including the color of the paint. The   explanation for this is that everyone   can grasp the scale of a bikeshed.   To transform this problem to Stack Overflow terms, questions that are trivial such as "How to convert a C string to a QString or "What is the difference between . and ->" get a lot more views, answers and votes than real questions of the form "How do I frob this widget" that bother real professionals. Fewer views mean less possible votes for good answers and hence less incentive for people to answer.  How can Stack Exchange solve this problem? maybe that's an idiot question. Given a finite field $k$ and some irreducible polynomial $f(x) \in k[x]$, then $k_f \cong k[x]/(f(x))$? I know that it's true if $k$ is the prime field and I think that the statement is not true for general finite fields, however I could not find any counter example.  Thanks in advance. How do I run a program with commandline arguments using GDB within a Bash script? If I reboot Ubuntu, then I need to log on each site and into Google Chrome account. What is the reason?  My system is Ubuntu 16.04 and Google Chrome 53.0.2785.101 (64-bit). Mail App keeps popping up in the background in Mac OS Mojave What's a recommended alternative to Quickbooks pro? I've just installed Ubuntu to replace Windows. I can't seem to find a good alternative to  to run on Ubuntu. Any help would be appreciated. Is Duck/Duct tape safe to use to insulate mains wires? Question says it all really. Based in the UK so mains is 240v and 20 amps. It's a lighting circuit. How do I stop sharing call history between two iPhones? My husband and I both just upgraded to iOS 8.3.  Now I notice that if I have a missed call it shows up on his notice screen and all my calls show up in his recent call history (and vice versa).  Both phones don't ring and they don't need to be near each other or connected by Wi-Fi.  We do share an iTunes account.  How do I stop sharing call history between the two phones? Constants of integration in integration by parts Here I offer a "proof" of why the power set of the natural numbers is countable by creating a supposed bijection. I know that my proof is wrong, but where? If anyone could point it out, that'd be awesome.  Consider the power set of the natural numbers. We can form a bijection $f:\mathbb{N}\to\mathcal{P}(\mathbb{N})$ as follows.  For any $f(x)$ convert $x$ to its binary representation, which is a string of $0$s and $1$s. If the $i$-th digit is $1$, then include $i$ in the output set $S=f(x)$. Otherwise do not include $i$. Note that $i$ is $0$-indexed and starts from the right-most digit.  So in this case $f(5)=\{1,3\}$. Supposedly we can construct any set in $\mathcal{P}(\mathbb{N})$ with an appropriate choice of $x$.  Where does this proof blow up? How do question bookmarks work?