debian

How to find process using TCP port?

故事扮演 提交于 2020-01-30 08:17:50
问题 After starting a http a couple of times I get this error like an instance of Go has not stopped!? listen tcp :9000: bind: address already in use I have experienced something like this with nodejs too but I was able to kill the process.. Unfortunately it seems like I can't find the process id and kill it.. How to "free" the tcp port? 回答1: If you are on unix like system you can use netstat to find out which process is listening on a port: sudo netstat -nlp | grep 9000 Turns out the -p option is

iOS逆向之TheOS

ぐ巨炮叔叔 提交于 2020-01-27 12:41:39
TheOS 被设计为一个在基于 Unix 平台 (Mac OS X、IOS…) 和大多数 的Linux 平台下开发 iOS 程序的集成开发环境。说是集成开发环境,其实就是给我们准备好了一些代码模板、预置一些基本的 Makefile 脚本,我们还是要在 终端命令行 中完成一些关键操作。 1.安装dpkg和LDID 执行如下指令: brew install dpkg ldid 2.安装Theos 执行如下指令: sudo git clone --recursive https://github.com/theos/theos.git /opt/theos 3.配置权限 sudo chown $(id -u):$(id -g) /opt/theos 4.配置环境变量 vim .bash_profile 添加如下两行: export THEOS=/opt/theos export PATH=/opt/theos/bin/:$PATH 【说明】:环境变量配置,可以查看 OS X修改环境变量 5.使用Theos 5.1创建工程 在终端输入如下指令: nic.pl 如果提示如下错误: 执行以下指令即可: source .bash_profile 执行完“nic.pl”指令后,会出现如下选择模板的界面: 在逆向工程的初级阶段,所开发程序的主要类型是tweak,因此输入15,按Enter键继续

How to upgrade glibc from version 2.13 to 2.15 on Debian?

自作多情 提交于 2020-01-26 21:52:50
问题 I heard I can do it using apt-get install libc6 , but I need to add something to /etc/apt/sources.list to receive the newest glibc version. What should I do? 回答1: I was able to install libc6 2.17 in Debian Wheezy by editing the recommendations in perror's answer: IMPORTANT You need to exit out of your display manager by pressing CTRL - ALT - F1 . Then you can stop x ( slim ) with sudo /etc/init.d/slim stop (replace slim with mdm or lightdm or whatever) Add the following line to the file /etc

gettext no translations showed

女生的网名这么多〃 提交于 2020-01-26 00:59:25
问题 I'm trying to install gettext on debian, it works perfectly on Wamp on my local computer, but not on the server. I did this for the install: apt-get install -V gettext I launch this: # apt-cache search --names-only gettext libgettext-ant-tasks-java - Java classes for internationalization (i18n) - Ant tasks gettext-base - GNU Internationalization utilities for the base system gettext-doc - Documentation for GNU gettext gettext-el - Emacs po-mode for editing gettext .po files gettext - GNU

史上最全的Linux 各个发行版本的优点、缺点、发展史介绍

送分小仙女□ 提交于 2020-01-26 00:59:12
概述 今天主要学习一下Linux 各个发行版本,看一下各个发现版本的发展史。 什么是Linux? 也许很多人会认为Linux不就是个操作系统么。其实严格来讲,Linux只是一个操作系统中的内核。内核是什么?内核建立了计算机软件与硬件之间通讯的平台,内核提供系统服务,比如文件管理、虚拟内存、设备I/O等。 既然Linux只是一个内核。那么我们通常所说的Linux操作系统又是什么?我们通常所说的Linux,指 GNU/Linux ,即采用Linux内核的GNU操作系统。是的,操作系统的实际名称是GNU。什么是GNU?GNU代表GNU’s Not Unix。可以说是一个操作系统又可以说是一种规范。 注释:什么是 GNU/Linux? Linux 是一种计算机操作系统: 一系列能让您与计算机进行交互操作并运行其它程序的程序。 操作系统由多种基础程序构成。它们使计算机可以与用户进行交流并接受指令, 读取数据或将其写入硬盘、磁带或打印机,控制内存的使用,以及运行其它软件。 操作系统最重要的组成部分是内核。在 GNU/Linux 系统中,Linux 就是内核组件。 而该系统的其余部分主要是由 GNU 工程编写和提供的程序组成。 因为单独的 Linux 内核并不能成为一个可以正常工作的操作系统, 所以我们更倾向使用“GNU/Linux” 一词来表达人们通常所说的 “Linux”。 Linux 是以

Future solutions

纵然是瞬间 提交于 2020-01-25 05:33:06
问题 I am working with a large data set, which I use to make certain calculations. Since it is a huge data set, my machine, I am working on, is doing the job excessively long, for this reason I decided to use the future package in order to distribute the work between several machines and speed up the calculations. So, my problem is that through the future (using putty & ssh) I can connect to those machines (in parallel), but the work itself is doing the main one, without any distribution. Maybe

npm module installation constantly aborting

泪湿孤枕 提交于 2020-01-24 23:54:48
问题 I am faced with npm module installation issue. Each time I tried installing a new modules, the installation process crashes and consequently abort. My npm version is 1.4.28 and node version is 0.10.35 running on debian wheezy. I tried installing a couple (yo, bower, grunt, closurecompiler) and the same problem persit. See sample installation attempt below npm install closurecompiler -g The above spill the following to the terminal ==== Stack trace ============================================

Undefined reference to EVP_idea_ecb on Debian

本秂侑毒 提交于 2020-01-24 22:08:48
问题 I have the following code: #include <stdio.h> #include <stdlib.h> #include <openssl/evp.h> int main (int argc, char *argv[]) { EVP_CIPHER *cipher; EVP_idea_ecb(); } I know, this is not much, but it should compile without complaints, but I get gcc Testfile.c -lssl -lcrypto Testfile.c:(.text+0xec): undefined reference to `EVP_idea_ecb' gcc Testfile.c -lss /usr/bin/ld: /tmp/ccgbkhFA.o: undefined reference to symbol 'EVP_CIPHER_iv_length@@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libcrypto.so.1.0

Undefined reference to EVP_idea_ecb on Debian

*爱你&永不变心* 提交于 2020-01-24 22:08:42
问题 I have the following code: #include <stdio.h> #include <stdlib.h> #include <openssl/evp.h> int main (int argc, char *argv[]) { EVP_CIPHER *cipher; EVP_idea_ecb(); } I know, this is not much, but it should compile without complaints, but I get gcc Testfile.c -lssl -lcrypto Testfile.c:(.text+0xec): undefined reference to `EVP_idea_ecb' gcc Testfile.c -lss /usr/bin/ld: /tmp/ccgbkhFA.o: undefined reference to symbol 'EVP_CIPHER_iv_length@@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libcrypto.so.1.0

My deb file removes /opt

我只是一个虾纸丫 提交于 2020-01-24 15:56:06
问题 My deb file installs to /opt/myCompany/myProgram, when I purge the package with dpkg -P myProgram everything is removed - even /opt (if mine is the only package with files in /opt) - How can I avoid removing the /opt folder during a purge? I have tried checking if /opt exist in the postrm and adding it if it doesn't but no joy...It seems that the folder is deleted after the postrm script is run. Currently I am adding a hidden file in /opt with postinst - this stops opt from being removed but