问题:

我在gdb的目标可执行文件之外,我甚至没有与该目标对应的堆栈。 无论如何我想单步执行,以便我可以验证汇编代码中发生了什么,因为我不是x86汇编的专家。 不幸的是,gdb拒绝进行这种简单的汇编级调试。 它允许我在适当的断点上设置和停止,但是一旦我尝试单步执行,gdb就会报告错误“找不到当前函数的边界”并且EIP不会改变。

额外细节:

机器代码是由gcc asm语句生成的,我将它从objdump -d的输出复制到它正在执行的内核内存位置。 我不介意使用加载器将我的目标代码加载到重定位地址的简单方法,但请记住,加载必须在内核模块中完成。

我想另一个替代方法是生成一个伪内核模块或调试信息文件给gdb,使它相信这个区域在程序代码中。 gdb在内核可执行文件本身上运行良好。

(对于那些真正想知道的人,我在运行时将代码插入到VMware VM内的Linux内核数据空间中,并通过VMware Workstation的内置gdb存根从gdb远程调试内核进行调试。注意我不是在编写内核利用;我是一名安全研究生,正在编写原型。)

(我可以在我的程序集中的每个指令上设置一个断点。这可以工作,但一段时间后会变得相当费力,因为x86汇编指令的大小会有所不同,每次重新启动时程序集的位置都会改变。)

I’m outside gdb’s target executable and I don’t even have a stack that corresponds to that target.I want to single-step anyway, so that I can verify what’s going on in my assembly code, because I’m not an expert at x86 assembly.Unfortunately, gdb refuses to do this simple assembly-level debugging.It allows me to set and stop on appropriate breakpoint, but as soon as I try to single-step onwards, gdb reports the error “Cannot find bounds of current function” and the EIP doesn’t change.Additional details:The machine code was generated by gcc asm statements and I copied it to the kernel memory location where it’s executing, from the output of objdump -d.I wouldn’t mind a simple way to use a loader to load my object code to a relocated address, but bear in mind the loading has to be done in a kernel module.I suppose another alternative would be to produce a fake kernel module or debug info file to give to gdb, to cause it to believe this area is within the program code.gdb works fine on the kernel executable itself.(For those who really want to know, I’m inserting code at runtime into Linux kernel data space inside a VMware VM and debugging it from gdb remote debugging the kernel via VMware Workstation’s built-in gdb stub. Note I’m not writing kernel exploits; I’m a security graduate student writing a prototype.)(I can set a breakpoint on each instruction inside my assembly. This works but would get quite laborious after a while, since the size of x86 assembly instructions varies and the location of the assembly will change every time I reboot.)

问题:

我看到很多关于写入SD卡的帖子,但我相信我的问题是不同的。 在构建AVD的过程中,我无法创建SD卡。

我最初尝试使用Android SDK和AVD Manager来执行此操作,选择
姓名 :my_avd
目标 :Android 2.2 – API级别8
SD卡 :尺寸:1024 MiB
皮肤 :内置:默认(HVGA)
硬件 :属性:抽象LCD密度,值:160

这会弹出一个窗口,其中包含以下消息:
“创建AVD’my_avd’的结果:
错误:无法创建SD卡。“

我试图从命令行重复该过程,收到类似的错误:

[email protected]:~$ android create avd -n my_avd -t 1 -c 1024M
Android 2.2 is a basic Android platform.
Do you wish to create a custom hardware profile [no]no
Error: Failed to create the SD card.

试图遵循使用mksdcard的说明同样没有效果; 我认为我基本缺乏linux经验可能​​会让我在这里遇到问题。 当我尝试使用mksdcard时,它只是报告它找不到文件或目录。 mksdcard工具是否可以在linux中以这种方式使用?

[email protected]:~$ mksdcard 1024M ./sdcard.iso
bash: /home/alex/android-sdk-linux_x86/tools/mksdcard: No such file or directory
[email protected]:~$ sudo android create avd -n my_avd -t 1 -c 1024M

我已经将android工具目录添加到我的PATH变量中,但我觉得显然还有其他一些我不知道的东西。 也许某种访问权限?

试图用sudo运行android命令似乎也没有帮助:

[email protected]:~/android-sdk-linux_x86/tools$ sudo ./android create avd -n my_avd -t 1 -c 1024M
Android 2.2 is a basic Android platform.
Do you wish to create a custom hardware profile [no]no
Error: Failed to create the SD card.

我甚至尝试安装Eclipse和ADT插件并从那里运行管理器无济于事。 任何提示将非常感激。 高级警告,我有点像新手Linux用户,所以即使看起来像是一个明智的事情要检查,我仍然可能错过了它。

I see a lot of posts about writing to the SD card, but I believe my problem is different.I am unable to create the SD card during the process of building an AVD.I initially tried to use the Android SDK and AVD Manager to do this, selectingName : my_avdTarget : Android 2.2 – API Level 8SD Card : Size: 1024 MiBSkin : Built-In: Default (HVGA)Hardware : Property: Abstracted LCD Density, Value: 160This pops up a window with the message:”Result of creating AVD ‘my_avd’:Error: Failed to create the SD card.”I tried to repeat the process from the command line, receiving a similar error:Attempting to follow instructions for using mksdcard was equally unproductive;I think my basic lack of linux experience may be causing me a problem here.When I try to use mksdcard, it just reports that it cannot find the file or directory.Is the mksdcard tool available for use this way in linux?I’ve added the android tools directory to my PATH variable, but I feel like there is obviously something else I’m missing.Perhaps some kind of access rights?Attempting to run the android command with sudo did not seem to help either:I even tried installing Eclipse and the ADT plugin and running the manager from there to no avail.Any tips would be most appreciated.Advanced warning that I am somewhat of a novice Linux user, so even if it seems like a no-brainer obvious thing to check, I could still have missed it.

问题:

按照我在这里找到的说明,我一直在使用Docker来运行Quantum GIS: docker-qgis-desktop-运行QGIS桌面的简单docker容器

一切正常,直到上周我开始收到此错误消息时:

来自守护程序的错误响应:冲突。 容器235566ae17b8已使用名称“ qgis-desktop-2-4”。 您必须删除(或重命名)该容器才能重用该名称。

尽管在此站点上寻找了线索,但我不确定是什么意思。 在此之前,我没有做任何更改,并且已经使用以下命令成功启动了容器:

sudo docker run --rm --name="qgis-desktop-2-4"     -i -t     -v ${HOME}:/home/${USER}     -v /tmp/.X11-unix:/tmp/.X11-unix     -e DISPLAY=unix$DISPLAY     kartoza/qgis-desktop:latest

我怎样才能解决这个问题?

I’ve been using Docker on my to run Quantum GIS following instructions I found here: docker-qgis-desktop – A simple docker container that runs QGIS desktopEverything has been running fine until last week when I started to get this error message:Error response from daemon: Conflict.The name “qgis-desktop-2-4” is already in use by container 235566ae17b8.You have to delete (or rename) that container to be able to reuse that name.I’m not entirely sure what this means despite searching for clues on this site.I hadn’t changed anything prior to this happening and have been successfully launching the container with this command:How can I fix this?

问题:

我关注“ 生成SSH密钥” ,它说

须藤apt-get install xclip

#下载并安装xclip。 如果没有apt-get ,则可能需要使用其他安装程序(如yum )

xclip -sel剪辑<〜/ .ssh / id_rsa.pub

#将id_rsa.pub文件的内容复制到剪贴板

但是在运行xclip -sel clip < ~/.ssh/id_rsa.pub我得到了Error: Can't open display: (null)是什么问题? 我四处搜寻,但一无所获

I’m following in Generating SSH Keys , it sayssudo apt-get install xclip# Downloads and installs xclip.If you don’t have apt-get , you might need to use another installer (like yum )xclip -sel clip < ~/.ssh/id_rsa.pub# Copies the contents of the id_rsa.pub file to your clipboardBut after I run xclip -sel clip < ~/.ssh/id_rsa.pub I get Error: Can't open display: (null) What is the problem?I googled around but found nothing about it

问题:

我的当地环境是:

  • 新鲜的Ubuntu 16.04
  • 用PHP 7
  • 安装MySQL 5.7

     sudo apt-get install mysql-common mysql-server 

当我尝试登录MySQL(通过CLI)时:

mysql -u root -p

我遇到了一个包含3个步骤的循环问题。

1)首先是一些套接字问题

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

解决方案:重启PC。

这导致了另一个错误:

2)访问被拒绝

ERROR 1698 (28000): Access denied for user 'root'@'localhost'.

可能的问题? “root”用户的密码错误!

解决方案: 使用本教程重置root密码

使用正确的密码和工作套接字,会出现上一个错误。

3)auth插件不正确

mysql "ERROR 1524 (HY000): Plugin 'unix_socket' is not loaded"

在这里,我停下来或以某种方式得到了1)。

My local environment is:fresh Ubuntu 16.04with PHP 7with installed MySQL 5.7When I tried to login to MySQL (via CLI):I came across an cyclic issue with 3 steps.1) First was some socket issueSolution: restarting PC.Which led to another error:2) With access deniedPossible issue?Wrong password for “root” user!Solution: reset root password with this tutorial .With correct password and working socket, there comes last error.3) Incorrect auth pluginHere I stopped or somehow got to 1) again.