ubuntu-12.04

Enable broadcasts between docker containers

独自空忆成欢 提交于 2019-12-10 10:24:53
问题 I've been trying to enable some UDP discovery between a few containers. It tuned out that containers have disabled broadcasts by default, missing brd for inet in: $ ip addr show dev eth0 27: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP link/ether 00:00:01:4f:6a:47 brd ff:ff:ff:ff:ff:ff inet 172.17.0.12/16 scope global eth0 valid_lft forever preferred_lft forever Stack: host: ubuntu 14.04 container: ubuntu 12.04 docker 1.8.3 How do I enable the broadcasts? Here's

Buffer Overflow - SegFaults in regular user

依然范特西╮ 提交于 2019-12-10 06:31:33
问题 Below is my code, both the vulnerable program (stack.c) and my exploit (exploit.c). This code works on a pre-packaged Ubuntu 9 that the prof sent out for windows users (I had a friend test it on his computer), but on Ubuntu 12 that I run on my iMac, i get segfaults when I try and do this in a normal user. here's stack: //stack.c #include <stdio.h> int bof(char *str) { char buffer[12]; //BO Vulnerability strcpy(buffer,str); return 1; } int main(int argc, char* argv[]) { char str[517]; FILE

XMonad: dmenu not launching/spawning on startup

被刻印的时光 ゝ 提交于 2019-12-10 04:22:27
问题 New to XMonad and loving it so far. I have a fairly vanilla / regular XMonad setup and am having problems with dmenu . When I login and hit mod+p nothing happens. If I then open a terminal and hit xmonad --restart then mod+p , dmenu will be working. There must be something wrong with my xmonad.hs ? I tried a no-customization setup of XMonad and things were working normally (i.e. dmenu was working after login). My questions: Is there something wrong with my xmonad.hs ? Why won't dmenu work

Installing a new ca certificate for Perl 5.14.2 LWP on Ubuntu 12.04

╄→гoц情女王★ 提交于 2019-12-10 03:14:43
问题 I am getting the following error trying to connect to a specific https website using LWP: LWP::Protocol::https::Socket: SSL connect attempt failed with unknown errorerror:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed at /usr/local/share/perl/5.14.2/LWP/Protocol/http.pm line 51. I tried with wget and got: ERROR: cannot verify [domain]'s certificate, issued by `/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certificates.godaddy.com/repository/CN=Go

Upgrading to R 2.15.2 can't load stats package

不问归期 提交于 2019-12-10 02:58:31
问题 Running Ubuntu 12.04. finally upgraded from 2.12 to 2.15.2 today and when I start R I get this error. Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/usr/lib/R/library/stats/libs/stats.so': /usr/lib/liblapack.so.3gf: undefined symbol: ATL_chemv During startup - Warning message: package ‘stats’ in options("defaultPackages") was not found edit: $ dpkg -l | grep "blas\|atlas" ii libatlas3gf-base 3.8.4-3build1 Automatically Tuned Linear Algebra Software, generic

Laravel composer install hangs on “Installing dependencies” and consume a lot of resources (CPU, DISK)

柔情痞子 提交于 2019-12-10 02:51:57
问题 Problem 1: I tried install laravel 4 on my server (Ubuntu 12.04, nginx, php5-fpm) but installation hangs: # composer install --verbose Loading composer repositories with package information Installing dependencies (including require-dev) - no errors, no nothing, it's just hangs and that's all. I've tried installation using composer create-project laravel/laravel --prefer-dist ...and result was pretty the same: Installing laravel/laravel (v4.0.9) - Installing laravel/laravel (v4.0.9) Loading

Link error: “Cannot find -ltinfo” on Ubuntu 12.04 on a 32-bit arm processor

谁都会走 提交于 2019-12-10 01:27:02
问题 I get the following link error when I'm compiling a small function using ncurses for an Ubuntu 12.04 running on arm. The error is arm-linux-gnueabihf/bin/ld: cannot find -ltinfo A lot of hints are floating around on what to install, but I can't seem to find any packages that does the trick for my arm box. I have done sudo apt-get install libncurses5-dev And this does not contain the tinfo library. Other suggestions usually result in the library is "not available but referred by another

Monitor and restart Dart process on server

旧巷老猫 提交于 2019-12-09 23:17:59
问题 My lightweight dart:io based web server pretty much looks like this: import 'dart:io'; void main() { HttpServer.bind(InternetAddress.ANY_IP_V4, 80).then((server) { server.listen((HttpRequest request) { // ... do stuff... request.response.write('Alright, here is your response...'); request.response.close(); }); }); print("listing...."); } Let's launch it (on Ubuntu Server 1.04): $ nohup dart myServer.dart & Listening... Everything looking good so far. I can exit my shell and it keeps serving.

Authenticating google sheets on AWS Ubuntu without browser

大兔子大兔子 提交于 2019-12-09 14:11:05
问题 I'm running R Studio on an AWS "Ubuntu Server 12.04.2" and accessing R Studio via my browser. When I try to authenticate google auth API using the package googlesheets with the code: gs_auth(token = NULL, new_user = FALSE, key = getOption("googlesheets.client_id"), secret = getOption("googlesheets.client_secret"), cache = getOption("googlesheets.httr_oauth_cache"), verbose = TRUE) The problem here is that it redirects me to browser which is of local machine (windows based). Even if I

How to create a simply debian package (just compress/extract sources or any files with debian packaging)

别说谁变了你拦得住时间么 提交于 2019-12-09 06:58:03
问题 I need to create a new .deb package of Realxtend project (https://github.com/realXtend/naali). It's a huge project with a lot of dependencies and a automatic bash script (/tools/Linux/build-deps.bash) to download, compile and install all deps and executables. So I try many tutorials but I often some errors and i'm stuck because tutorials are outdated (with new 'rules' file mainly) ...and also because i'm not a dev initialy. So, for beginning, I just need create a .deb file exactly like an