debian

Binding ip address of virtual interface to ftp client

旧时模样 提交于 2019-12-11 04:56:52
问题 I have added eth0:1 with one more ip to the interface file of my debian box. The thing is now i want my ftp client which is lftp to connect using the new ip address. What was the directive to use a specific interface to communicate? Thanks 回答1: In lftp set the net:socket-bind-ipv4 option to the local IP address that you want the client to use: set net:socket-bind-ipv4 a.b.c.d You can type that directly into the client but if you're going to do this regularly then it would make more sense to

Docker Debian Time Is Incorrect

…衆ロ難τιáo~ 提交于 2019-12-11 04:06:32
问题 Running a debian:jessie docker instance on my Mac OS X. The debian docker date is incorrect. eg oot@134663e76fba:/opt/phabricator# date Mon Nov 24 15:51:24 UTC 2014 but on my Mac $ date -u Tue Nov 25 16:36:11 UTC 2014 What causes this and what's the best fix? 回答1: See the issue Issue 69. Basically the boot2 docker vm does not handle mac sleep wake cycle properly. You need to restart the VM. boot2docker restart should do the trick. Note you may still have to mess around with time-zones. 来源:

How to install geos on debian raspberry pi

拥有回忆 提交于 2019-12-11 04:02:04
问题 Hi I am trying to install geos on a raspberry pi running rasbian wheezy so that I can include the shapely modules in my python scripts. I tried using: git clone git://git.debian.org/git/pkg-grass/geos this downloads properly, but when I try to run my python script it gives me a traceback error saying OSError: Could not find library geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so'] have I put geos in the wrong place? is there a special way to build the files? Thanks for

Debian Jessie - Apache2 / PHP 5.6, can't upload more than 128kb

南笙酒味 提交于 2019-12-11 03:17:22
问题 I've got a problem which is bugging me like crazy! I've recently updated my server to Jessie (wishing I hadn't at the moment!) but ever since I did, I can't upload more than 128KB in a single upload. I've tried all the usual obvious options - checking php.ini for max file size, execution times, etc but with no solution. ;;;;;;;;;;;;;;;; ; File Uploads ; ;;;;;;;;;;;;;;;; ; Whether to allow HTTP file uploads. ; http://php.net/file-uploads file_uploads = On ; Temporary directory for HTTP

dpkg-buildpackage -uc -us -b fails with “dpkg-shlibdeps: error: couldn't find library libmono-2.0.so.1 needed by …monodis.”

a 夏天 提交于 2019-12-11 03:09:06
问题 Trying to build simple .deb packages with this script is failing with this: dh_installexamples dh_installman dh_installcatalogs dh_installcron dh_installdebconf dh_installemacsen dh_installifupdown dh_installinfo dh_pysupport dh_installinit dh_installmenu dh_installmime dh_installmodules dh_installlogcheck dh_installlogrotate dh_installpam dh_installppp dh_installudev dh_installwm dh_installxfonts dh_bugfiles dh_lintian dh_gconf dh_icons dh_perl # Skipping dh_usrlocal - empty override dh_link

GotoBLAS error when installing matplotlib with pip in a virtualenv on debian wheezy

喜你入骨 提交于 2019-12-11 03:03:33
问题 I'm trying to install matplotlib with pip in a virtualenv on debian wheezy. And i get the following message: Running setup.py egg_info for package matplotlib GotoBLAS : Architecture Initialization failed. No initialization function found. ============================================================================ Edit setup.cfg to change the build options BUILDING MATPLOTLIB matplotlib: yes [1.3.1] python: yes [2.7.3 (default, Jan 2 2013, 13:56:14) [GCC 4.7.2]] platform: yes [linux2]

Freeradius + Openldap ERROR: No authenticate method (Auth-Type) found for the request: Rejecting the user

笑着哭i 提交于 2019-12-11 02:27:32
问题 after a couple of days searching in google I have to resign and ask :/ We're using a debian server with openldap and radius installed. When I connect to the radius using radtest everything is fine, but when I use an accesspoint (and the connection goes through the tunnel) I get the folloing result. The inner-tunnel looks like this: authorize { update control { Proxy-To-Realm := LOCAL } eap { ok = return } files ldap { ok = return } expiration logintime pap } authenticate { Auth-Type PAP { pap

Circumventing GPL Packaging of Non-Virally-Licensed Libraries for Debian or Ubuntu [closed]

只谈情不闲聊 提交于 2019-12-11 02:06:14
问题 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 4 years ago . I want to use certain libraries in my application which have licenses that are compatible with closed-source distribution, such as LGPL and BSD. However, on the Linux distribution I use, Ubuntu, the "packaging" of these libraries is marked by the copyright file as being GPL-protected. I want to avoid GPL

how to create a subdomain in a dedicated apache2 server

给你一囗甜甜゛ 提交于 2019-12-11 01:51:24
问题 I want to create a subdomain I followed this steps : cd /etc/apache2/sites-available nano test.mydomaine.com <VirtualHost *:80> ServerAdmin mymail@gmail.com ServerName test.mydomaine.com ServerAlias www.test.mydomaine.com DocumentRoot /var/www/testfolder/ <Directory "/var/www/testfolder"> AuthType Basic AuthName "test" AuthUserFile /var/www/testfolder/passwords Require valid-user test </Directory> </VirtualHost> exit and save a2ensite test.mydomaine.com /etc/init.d/apache2 reload but It's not

Different user in get_current_user() and exec('whoami') for suexec virtual host

最后都变了- 提交于 2019-12-11 01:09:19
问题 I use SuexecUserGroup for VirtualHost Script <?php echo '<pre>'; var_dump(exec('whoami')); echo "Current Script Owner: ".get_current_user()."\n"; return 'www-data' in first string and right user 'correct_user' in second string Created files has user name - www-data How to create files with user 'correct_user' owner? 来源: https://stackoverflow.com/questions/26864109/different-user-in-get-current-user-and-execwhoami-for-suexec-virtual-host