ubuntu-11.04

Using setcap in linux [closed]

≯℡__Kan透↙ 提交于 2019-12-05 09:52:49
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . To add the cap_net_raw capability to (for eg /bin/ping), we use the following: #setcap cap_net_raw=ep /bin/ping What is the meaning of ep and why is it required here ? 回答1: This sets the CAP_NET_RAW bit in both the "effective" (e) and "permitted" (p) capability sets. These two sets, along with the "inheritable"

Calling Chrome web browser from the webbrowser.get() in Python

折月煮酒 提交于 2019-12-05 03:56:00
How I should call webbrowser.get() function so I open the chrome web browser? I'm running Ubuntu 11.04 and Python version 2.7. Using webbrowser.get('chrome') yields an error. The quick workaround is to make Chrome the default browser in your system and then use simply webbrowser.get(). I've just checked that on ubuntu 10.10 and it worked just fine. EDIT Just reviewed the code of /usr/lib/python2.6/webbrowser.py. You should do like this: In [5]: webbrowser.get('/usr/bin/google-chrome %s').open('http://google.com') Created new window in existing browser session. Out[5]: True In [6]: webbrowser

ERROR: cannot start RubyMine. No JDK found. JDK Version? + desktop link

一笑奈何 提交于 2019-12-04 09:08:40
问题 ERROR: cannot start RubyMine. No JDK found. Please validate either RUBYMINE_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation. I'm not sure what JDK version number to use to download it? Also how to create a desktop link in 11.10? 回答1: I think using apt-get is easier, see for example this article: sudo apt-get install openjdk-7-jdk 回答2: Turned out that in the end I had to do several things to get java running and thus resolve the issue: Get Java Download oracle7

/etc/apt/sources.list" E212: Can't open file for writing

左心房为你撑大大i 提交于 2019-12-04 07:20:35
问题 I am trying to edit sources.list using vi editor but getting the following error while saving the file: /etc/apt/sources.list" E212: Can't open file for writing 回答1: For some reason the file you are writing to cannot be created or overwritten. The reason could be that you do not have permission to write in the directory or the file name is not valid. Vim has a builtin help system. I just quoted what it says to :h E212 . You might want to edit the file as a superuser as sudo vim FILE . Or if

How to enable global menu bar for Emacs on Ubuntu (Unity 11.04)

可紊 提交于 2019-12-04 05:30:12
I use latest Ubuntu 11.04 which has Unity desktop. I am learning to use Emacs 23. As you know, Unity has top panel. I want to enable global menu bar for Emacs so that I could save valuable screen space. (I use small screen laptop) How to enable global menu bar? Your help will be much appreciated. Thank you. appmenu-gtk (which provides the global menu bar) specifically blacklisted emacs since it does not play nicely together so unfortunately you probably can't use it with emacs. Use your favorite editor to open this file: /usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so Find the word "emacs"

Disable or remove apc

纵饮孤独 提交于 2019-12-03 15:16:17
I installed APC on my ubuntu 11.04 linux and I want to make some performance benchmarks to see what's the speed improvement over PHP without APC but I don't know how to disable/remove the APC. I tried to empty my apc.ini files but it didn't worked. Still after I load a page for the first time, the page will be stored in the cached and the second time I load the page, it loads much faster. Here's a PHP file that I use to measure the time. <?php function getTime() { $a = explode (' ',microtime()); return(double) $a[0] + $a[1]; } $Start = getTime(); ?> <?php require_once("includes/connection.php"

extending default lib search path in ubuntu

僤鯓⒐⒋嵵緔 提交于 2019-12-03 07:11:59
问题 How can i extend default lib search path in ubuntu(in a way that it is also persistent) ? no, I do not want export LD_LIBRARY_PATH based temporary solution, rather some way to extend the default lib search path ? while google-ing, I cam across some info, that in ubuntu the default search path resides in /etc/ld.so.conf.d , but editing libc.conf does not extended the default path.. so i think either i am doing it wrong, or something is missing... the edited libc.conf looks like... # libc

Permission denied (public key) during fetch from GitHub with Jenkins user on Ubuntu

霸气de小男生 提交于 2019-12-03 06:36:13
问题 Here is my setup: Jenkins is running on my linux machine as 'jenkins' user. I have generated a ssh key-pair as described in Linux - Setup Git, for the 'jenkins' user. When I sudo su jenkins and try ssh -vT git@github.com , I am always asked my passphrase, but I am always eventually authenicated. (the verbose option shows which key is used, among others). I could clone my repo from GitHub using jenkins: Thusly: jenkins@alpm:~/jobs/test git/workspace$ git pull Enter passphrase for key '/var/lib

ERROR: cannot start RubyMine. No JDK found. JDK Version? + desktop link

空扰寡人 提交于 2019-12-03 02:04:54
ERROR: cannot start RubyMine. No JDK found. Please validate either RUBYMINE_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation. I'm not sure what JDK version number to use to download it? Also how to create a desktop link in 11.10? obenda I think using apt-get is easier, see for example this article : sudo apt-get install openjdk-7-jdk Turned out that in the end I had to do several things to get java running and thus resolve the issue: Get Java Download oracle7 jdk at: http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html e.g.

extending default lib search path in ubuntu

老子叫甜甜 提交于 2019-12-02 20:43:09
How can i extend default lib search path in ubuntu(in a way that it is also persistent) ? no, I do not want export LD_LIBRARY_PATH based temporary solution, rather some way to extend the default lib search path ? while google-ing, I cam across some info, that in ubuntu the default search path resides in /etc/ld.so.conf.d , but editing libc.conf does not extended the default path.. so i think either i am doing it wrong, or something is missing... the edited libc.conf looks like... # libc default configuration /usr/local/lib:/path_to_my_libraries/lib isti_spl create (as root) a new file in /etc