debian

How run a simple Java program with the client/server Nailgun (on Debian Stretch)?

我与影子孤独终老i 提交于 2020-03-22 06:45:07
问题 I'm try to use Nailgun on Debian GNU/Linux 9 (stretch) . "Nailgun is a client, protocol, and server for running Java programs from the command line without incurring the JVM startup overhead. Programs run in the server (which is implemented in Java), and are triggered by the client (written in C), which handles all I/O." Some documentation found: Nailgun Quick Start JVM Startup Times/Nailgun How to improve performance of java using nailgun server DSpace/Nailgun I use Oracle Java version 10.0

How run a simple Java program with the client/server Nailgun (on Debian Stretch)?

◇◆丶佛笑我妖孽 提交于 2020-03-22 06:44:08
问题 I'm try to use Nailgun on Debian GNU/Linux 9 (stretch) . "Nailgun is a client, protocol, and server for running Java programs from the command line without incurring the JVM startup overhead. Programs run in the server (which is implemented in Java), and are triggered by the client (written in C), which handles all I/O." Some documentation found: Nailgun Quick Start JVM Startup Times/Nailgun How to improve performance of java using nailgun server DSpace/Nailgun I use Oracle Java version 10.0

Build Golang Application with librdkafka in a Debian Docker Image?

白昼怎懂夜的黑 提交于 2020-03-21 06:10:47
问题 With Alpine, Alpine fully supports recent versions of librdkafka, I can just do apk add in my Dockerfile, and the following works: FROM golang:1.13-alpine3.10 as builder WORKDIR /app COPY go.mod go.sum ./ COPY src ./src/ RUN set -eux; \ apk add --no-cache gcc git libc-dev librdkafka-dev; \ go build -o ./ ./... Now, for a particular project, I need to make Debian friendly binaries, that will run on Debian/Ubuntu servers. The problem is that: The official Debian repositories only support really

Build Golang Application with librdkafka in a Debian Docker Image?

谁说我不能喝 提交于 2020-03-21 06:10:17
问题 With Alpine, Alpine fully supports recent versions of librdkafka, I can just do apk add in my Dockerfile, and the following works: FROM golang:1.13-alpine3.10 as builder WORKDIR /app COPY go.mod go.sum ./ COPY src ./src/ RUN set -eux; \ apk add --no-cache gcc git libc-dev librdkafka-dev; \ go build -o ./ ./... Now, for a particular project, I need to make Debian friendly binaries, that will run on Debian/Ubuntu servers. The problem is that: The official Debian repositories only support really

rpm与deb的区别

泪湿孤枕 提交于 2020-03-20 12:33:12
有的系统只支持使用rpm包安装,有的只支持deb包安装,混乱安装会导致系统问题。 1. 关于rpm和deb RPM(Red Hat Package Manager),是基于Red hat的Linux Distribution的包管理系统, 同时也指rpm包本身,RPM用于rpm包的管理(诸如安装、卸载、升级等), 像Mandrake和SuSE这些基于RPM的发行版通常有自己特定的rpm包, 如果混合安装可能不会正常工作,而对于第三方发行的rpm包一般都能在基于RPM的系统上正常安装。 对于基于Debian的系统使用deb格式的包,有包转换工具使rpm与deb及其他文件之间互相转换(Alien Package Converter), 其安装和升级可用dpkg,不过它不能很方便地处理包的依赖关系, 比较省事的有dselect和apt-get, Ubunut是debian的变种, 其软件以deb包或者源文件的形式出现. rpm包主要用于redhat及分支如redhat,centos,Fedora等 而deb包主要用于debian及分支如debian,ubuntu等。 rpm包相对来说版本不是最新的,但是比较稳定;而deb包则相对来说版本比较新,一般某个新软件出来说可能有deb包,但是使用过程中容易引起bugs。 https://blog.csdn.net/frank0712105003

Debian 安装无线网卡驱动最简单方法。

[亡魂溺海] 提交于 2020-03-19 13:28:57
3 月,跳不动了?>>> ###一点废话 先唠叨几句。我接触linux有几年了,但是一直都是玩玩。了解层面仅次于装系统,安装各种软件层次。之前一直在用ubuntu,可是12.04版本过后对ubuntu的感觉就没那么喜欢了。总是弹出各种错误。也想过转到RedHat旗下,可是yum我不习惯,习惯了 apt-get ,人懒了!哈哈...大概是去年这个时候开始转到Debian 的,对其稳定性感觉出奇的好。只是安装了几次,都没有识别我的ThinkPad 上的无线网卡。不对,应该是识别了,可是因为其坚持使用开源的东西。所以没有自带而已。    在安装过程中给我提出了这样的建议: 探测网络设备    您的一些硬件需要非自由固件文件才能运转。(此处略去数字) 缺失的固件文件是:rtl_nic/rtl8168e-2.fw 如果现在您有可用的介质,请将其插入 (略)     (如上) 缺失的固件文件是:rtlwifi/rtl8192cfw.bin  ================================= 在Google 中搜索 “rtl_nic/rtl8168e-2.fw”   第一个地址是这个 软件包: firmware-realtek (0.28+squeeze1)         在下方的下载地址中下载了 firmware-realtek 把这些文件拷贝到另外一个优盘后

debian 6(squeeze)源列表

只谈情不闲聊 提交于 2020-03-19 13:28:39
3 月,跳不动了?>>> # cd/dvd的源 # 关于Debian开机自动挂载ISO,以本地ISO作为更新源(通过fstab挂载的方法) deb cdrom:[Debian GNU/Linux testing _Squeeze_ - Official Snapshot i386 CD Binary-1 20101227-19:42]/ squeeze main # 这个ftp的源速度很快(将http改为ftp也可) deb http://ftp.debian.org/debian/ squeeze main non-free contrib deb http://ftp.debian.org/debian/ squeeze-proposed-updates main non-free contrib #deb http://ftp.us.debian.org/debian/ squeeze main non-free contrib #deb http://ftp.us.debian.org/debian/ squeeze-proposed-updates main non-free contrib # 官方安全更新的源 deb http://security.debian.org/ squeeze/updates main # 这个多媒体的源需要提前准备好额外的公钥,方法是:

Debian squeeze BCM4312网官方卡驱动

吃可爱长大的小学妹 提交于 2020-03-19 13:05:04
3 月,跳不动了?>>> Debian squeeze的基本系统和Ubuntu的不太一样。Ubuntu中已经集成了GCC编译环境(至少在Ubuntu10.04中是这样的),而 Debian squeeze中没有。因此在Debian squeeze中安装BCM4312网卡驱动,需要先安装GCC编译环境。本文主要参考BCM4312官方文档。 写在这里主要为了方便以后再次安装BCM4312驱动,同时也希望对Debian新手有点帮助。 附: BCM4312官方驱动和文档地址: http://www.broadcom.com/support/802.11/linux_sta.php 一个32位的,一个64位的,还有一个是官方文档。 一、安装GCC编译环境 根据官方文档在Ubuntu中的提示,稍微修改了下(linux-headers-generic改为linux-headers-`uname -r` ,添加了个gcc)。其实在Ubuntu是不用自己安装,已经有了这个环境。 代码: #apt-get install build-dep linux build-essential linux-headers-`uname -r` gcc 二、编译BCM4312驱动 将 下载好的驱动hybrid-portsrc_x86_32-v5_100_82_112.tar.gz(32位)或hybrid-

LDAP/SASL/GSSAPI/Kerberos编程API(2)--krb5客户端

僤鯓⒐⒋嵵緔 提交于 2020-03-18 12:44:58
krb5 API有两个可用的库:MIT和Heimdal,两个库的API不一样,一方客户端的API连接上另一方服务端基本上是没问题的. API中的kadmin两个库则是完全不兼容,可从MIT和Heimdal两个的kadmin应用工具看出,连接对方的kadmin服务端是不成功的. kadmin目的是为远程操控Kerberos服务器,一般我们开发Kerberos应用很少以此为目标,都是直接使用它们各自的kadmin应用工具,所以kadmin不兼容也没多大问题. 我们的目标是Kerberos认证功能,所以使用MIT或是Heimdal都没问题. MIT是主流,本文以此为例 一.实验环境 平台 : debian 11 我已事先安装好一台Kerberos服务器(KDC),领域为CTP.NET,并创建了krblinlin@CTP.NET用户主体. 二.客户机安装开发库 root@debian:/# apt-get install libkrb5-dev 三.最简单krb5认证--不生成票据 1.源代码 //源文件名:krbonlylogin.c #include <stdio.h> #include <krb5.h> int main(void) { krb5_context context = NULL; krb5_error_code krberr; krb5_principal

Docker Ignores limits.conf (trying to solve “too many open files” error)

孤人 提交于 2020-03-17 04:50:26
问题 I'm running a web server that is handling many thousands of concurrent web socket connections. For this to be possible, on Debian linux (my base image is google/debian:wheezy, running on GCE), where the default number of open files is set to 1000, I usually just set the ulimit to the desired number (64,000). This works out great, except that when I dockerized my application and deployed it - I found out that docker kind of ignores the limit definitions. I have tried the following (all on the