archlinux

ArchLinux安装与配置小结

こ雲淡風輕ζ 提交于 2019-12-20 05:05:09
最近无意间发现一个基于ArchLinux的发行版—— BlackArch ,主题十分炫酷(中二)。当然渗透类的Linux 发行版已经有BackTrack和Kali了,不过都是源于Debian的,使用者众多,随波逐流无法突显我们的逼格, 要论小众,ArchLinux算是个中翘楚。呵呵开个玩笑,其实ArchLinux的亮点在于“小”,不同于其他发行版的“最小化安装”, ArchLinux的安装过程就与众不同,手动分区,手动配置bootloader,然后从网络源下载必要的包安装到指定的分区中。 安装完必备的软件(如gcc)后其余一概自己去添加,包括图形界面。对于喜欢定制而又不怕折腾的朋友来说,Arch系列确实 是一个不错的选择。正好我还没有用过Arch系的发行版,因此就在虚拟机装一个体验一回,顺便把其中遇到的坑记录一下。 安装ArchLinux 关于ArchLinux的安装,已经有无数文章介绍过了,不过质量良莠不齐,每个人遇到的问题也不尽相同,因此强烈建议先看一遍 官网的 Beginner-guide 。总的来说,操作系统的安装过程不算复杂,问题主要出现在分区和bootloader的配置上, 能解决就好办多了。 准备工作 在官网的Download界面里就有最新的iso镜像源可以下载,包括磁力链接和bt种子,下载好后烧录到光盘或者u盘,就可以作为一个操作 系统直接启动了

Linux's security measures against executing shellcode

南楼画角 提交于 2019-12-19 10:25:21
问题 I'm learning the basics of computer security and I'm trying to execute some shellcode I've written. I followed the steps given here http://dl.packetstormsecurity.net/papers/shellcode/own-shellcode.pdf http://webcache.googleusercontent.com/search?q=cache:O3uJcNhsksAJ:dl.packetstormsecurity.net/papers/shellcode/own-shellcode.pdf+own+shellcode&cd=1&hl=nl&ct=clnk&gl=nl $ cat pause.s xor %eax,%eax mov $29,%al int $0x80 $ as -o pause.o pause.s $ ld -o pause pause.o ld: warning: cannot find entry

[AI][tensorflow][keras] archlinux下 tersorflow and keras 安装

懵懂的女人 提交于 2019-12-19 09:33:00
tensorflow TensorFlow is an open-source machine learning library for research and production. https://en.wikipedia.org/wiki/TensorFlow https://www.tensorflow.org/ Tutorial: https://www.tensorflow.org/tutorials/ Keras: Keras is a high-level API to build and train deep learning models. It's used for fast prototyping, advanced research, and production Tensorflow安装:https://www.tensorflow.org/install/ pacman里边有包,有两个,tensorflow和python-tensorflow, 装了python-tensorflow keras安装: 用pip ┬─[tong@T7:~]─[08:12:16 PM] ╰─>$ pip install keras 测试: ┬─[tong@T7:~]─[08:33:00 PM] ╰─>$ python Python 3.7.1 (default, Oct

api = twitter.Api() AttributeError: 'module' object has no attribute 'Api

喜你入骨 提交于 2019-12-18 19:09:18
问题 I have been trying to write a simple mention grabber to get started with the twitter Api. Howsoever I've been experienceing some difficulties when initializing the Api. Running python2 on archlinux I installed twitter via easy_install, built it from source and installed it via pip. None of this seems to be working. zergling :: ~/dev/kritter » python2 Python 2.7.2 (default, Jan 31 2012, 13:26:35) [GCC 4.6.2 20120120 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for

api = twitter.Api() AttributeError: 'module' object has no attribute 'Api

倾然丶 夕夏残阳落幕 提交于 2019-12-18 19:08:02
问题 I have been trying to write a simple mention grabber to get started with the twitter Api. Howsoever I've been experienceing some difficulties when initializing the Api. Running python2 on archlinux I installed twitter via easy_install, built it from source and installed it via pip. None of this seems to be working. zergling :: ~/dev/kritter » python2 Python 2.7.2 (default, Jan 31 2012, 13:26:35) [GCC 4.6.2 20120120 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for

安装ArchLinux BIOS

人走茶凉 提交于 2019-12-17 17:21:53
VMware默认下使用BIOS 本文基于ArchLinux( https://www.archlinux.org/ )Current Release: 2013.08.01的ISO写的安装教程! ISO下载地址:http://mirrors.163.com/archlinux/iso/2013.08.01/archlinux-2013.08.01-dual.iso 1、分区 cfdisk ·新手可以不用分区,如果需要分多个区,建议一个 / 一个/home,如果内存大,不需要swap分区。使用cfdisk分区比较直观。 ·注意【Bootable】,/ 分区一定要Bootable,如果你单独划分了/boot,那这个bootable。 2、格式化 fdisk /dev/sda Command(m or help):p(这里输入p,查看你现在的分区和名字),如下图: 我并没有做更多的分区,因为我是虚拟机。按Ctrl+C 退出fdisk。然后输入下面的命令格式化: mkfs.ext4 /dev/sda1 如果你还分了/home,就继续 mkfs.ext4 /dev/sdaX x是你的home的分区名。 3、挂载分区 mount /dev/sda1 /mnt 如果你还有/home mkdir /mnt/home mount /dev/sda2 /mnt/home 4、选择镜像站点 nano

R v3.4.0-2 unable to find libgfortran.so.3 on Arch

你说的曾经没有我的故事 提交于 2019-12-17 12:47:41
问题 I was just on vacation for a month so am unable to say the exact point at which this happened, but R from the official Arch repos is now unable to start, citing /usr/lib64/R/bin/exec/R: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory I thought that perhaps a symlink was improperly placed or destroyed, so I looked in /usr/lib to try to find it: ls -halt /usr/lib/libgfortran.so.* lrwxrwxrwx 1 root root 20 May 16 03:01 /usr/lib

VMware安装ArchLinux踩了一个大坑--grub无法引导

无人久伴 提交于 2019-12-17 00:18:18
这次在VMware上装archlinux,开始时在网上百度了几篇安装教程,分区、装系统、grub等等,一路很顺利,然后reboot。 屏幕闪了几下后出现 : Grub> 不能引导。 有点晕,仔细看了几遍教程,好像没错啊。 然后网上再去找grub不能引导的文章,看了几遍,也试了几遍,还是不能引导。 问题到底在哪里? 后来仔细查看/boot下文件,发现居然没内核文件。 赶忙到archlinux查文档,( https://wiki.archlinux.org/index.php/Installation_guide ) 原来还需要安装linux内核,官方文档的安装命令如下: # pacstrap /mnt base linux linux-firmware 而自己看的文档里都只有 base和base-devel。 晕了,一个大教训,以后找文档还是别百度了,直接官方文档为上!切记切记 来源: CSDN 作者: RuiyuanZHOU 链接: https://blog.csdn.net/zhoury/article/details/103569616

In BASH, Is there any way to find exactly the IP address for all interfaces? And remove all other information's?

北城余情 提交于 2019-12-13 17:34:30
问题 How can i get only IP and which interface IP it is? So that i can keep a record file such as realtime.ini 1 - test.sh #!/bin/bash ipstring ='inet (.*)' for i in $(ip addr); do echo $i #on found it write down to my realtime.ini as a list for future query done 2 - realtime.ini em1,192.168.1.2 lo,127.0.0.1 wlan0,<not found> Follow up: Just for single ip: $ ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}' 192.168.1.2 回答1: This is not terribly elegant, nor is bash, but you can

Error creating ubuntu 16 container under arch

断了今生、忘了曾经 提交于 2019-12-13 02:49:35
问题 I am trying to install a Ubuntu container on Archlinux using LXC. I am following this guide:https://gist.github.com/manoj23/8a35849697945896cdaef77927c695a7 After I run this command: lxc-create --name=ubuntu-16 --template=ubuntu -- --release xenial --arch amd64 I get the following error: Bad template: ubuntu Error creating container ubuntu-16 Why is this happening? 回答1: It says in the error. Bad template. You can see that in the current version of lxc there is no ubuntu template. The gist is