pacman

Having some issues with making pacman?

人盡茶涼 提交于 2019-12-05 05:04:49
Edit: Totally forgot to mention I'm coding in Java I'm having a real hard time making some kind of detection system or some way to make my pacman sprite/character move smoothly through my board in the game. I did not make the board it's a image. I had tried colour detection first which worked the best yet was not smooth at all and pretty choppy. I then tried to manual input coordinates of location not allowed to be entered. This also did not work out so well. I'm currently trying now to have the program use colour detection and check a separate unseen board to see if I'm still on the path.

archlinux下lxde安装与配置教程

若如初见. 提交于 2019-12-04 17:01:00
首先需要安装archlinux,可以参考 Archlinux安装指南图解教程 首先安装所需的驱动 pacman -S xf86-input-keyboard xf86-input-mouse xf86-video-ati pacman -S alsa-utils laptop-mode-tools 接着安装守护进程与所需的功能支持 pacman -S acpid dbus dvd+rw-tools ntfs-3g gamin 输入alsamixer进行音频设置 设置完成后输入alsactl store保存 安装xorg与lxde pacman -S xorg lxdm lxde xorg提示选择54)xorg-server,lxde提示时全选 下来,编辑/etc/rc.conf修改 DAEMONS行内容,我的实例如下 DAEMONS=(syslog-ng !network netfs crond acpid dbus alsa lxdm) 设置lxdm与lxde启动 编辑/etc/lxdm/lxdm.conf ## default session or desktop used when no systemwide config #session=/usr/bin/startlxde //将此行前面的#去掉 编辑~/.xinitrc 写入如下内容 export LC_ALL=zh

win上傻瓜化安装Qt开发环境

感情迁移 提交于 2019-12-03 22:27:18
win上傻瓜化安装Qt开发环境 古老的 MSYS 搭建的开发环境不仅存在一些兼容性问题,而且还很繁琐,幸好 mingw-build 项目的开发者又做了更进一步的改进,他们开发了 MSYS2 项目。这个项目不仅兼容性更好,而且引入了包管理机制,可以直接从网上下载相关的软件,并解决相关的依赖性问题。 这个项目的主页在 http://sourceforge.net/projects/msys2/ 进入项目主页后,根据你的系统选择 32 位或者 64 位,现在大家使用的系统应该都是 64 位的了。下载好 base 包,然后解压缩到什么地方,一般我都是解压缩到 D 盘的根目录下,然后把 bin 目录加入系统 PATH 。在 MSYS2 根目录下有 3 个 bat 文件,它们是启动 MSYS2 的命令,根据需要启动,如果你不做开发,那么只需要启动 msys2_shell.bat 就足够了;如果你需要软件开发,那么就启动 mingw64_shell.bat ,它会在 MSYS 目录下新建一个 mingw64 的目录,里面存放着 mingw 编译器及其类库。首次运行时会进行一些系统设定,等到命令提示符出现就完成了,此时需要退出 MSYS2 ,然后重新进入。 在 MSYS 窗口左上角点击那个图标,弹出的菜单中有 option ,可以设置 MSYS2 的一些参数

linux clamav 免费查毒工具

核能气质少年 提交于 2019-12-03 09:18:02
linux 下需要杀毒工具吗?我一直认为是不要的,基于linux的病毒很少,linux 安全防护也做的很好,一般很难功破。我想那些黑客们更喜欢,写windows下的病毒,用的人多啊,传播也容易。下面的操作,都是以管理员的身份来进行的。 一,安装clamav apt-get install clamav 根据系统的不同,用不同的 命令 ,yum,pacman等。如果找不到包的话,只有下源码自己编译了。 二,下载病毒库 freshclam 上面这个 命令 是更新病毒库,如果没有,会自动下载,不过比较慢。你也可以手动下载,http://www.clamav.net/lang/en/,下二个就可以main.cvd,daily.cvd。把下载的病毒库文件放到/var/lib/clamav目录下面,就行了。 三,查看一下clamav进程 root@ubuntu:/home/zhangying# ps ax |grep clam 4858 ? Ss 0:00 /usr/bin/freshclam -d --quiet 5401 pts/0 S+ 0:00 grep --color=auto clam 四,一些常规用法举例 1,扫描某个目录,clamscan -r /home/zhangying 2,将扫描结果存放到log中,clamscan -r /home/zhangying -l /tmp

Installing GTK for use in Code::Blocks on Windows 10

匿名 (未验证) 提交于 2019-12-03 09:06:55
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Original Question I am having trouble installing gtk to start building GUIs in C++ on Code::Blocks. Could anyone nudge me in the right direction? I'm running Windows 10 (64-bit) on a Lenovo. I attempted an installation guide ( https://www.youtube.com/watch?v=jvQXvTtSIQo ), stack overflow ( How do you install GTK+ 3.0 on Windows? ), the official GTK installation guide ( https://www.gtk.org/download/windows.php ), a written guide ( http://www.tarnyko.net/repo/gtk3_build_system/tutorial/gtk3_tutorial.htm ), and just noticed a very similar stack

MSYS2 pacman can't update packages through corporate firewall [closed]

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Following the MSYS2 first install steps described on http://msys2.github.io/ , I received these errors. I want to get some utilities like vi , vim , bc , gnuplot . How do I configure pacman to connect to the repositories? My PC is on a corporate network. My browser connects to the web via a PAC script. $ pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime :: Synchronizing package databases... error: failed retrieving file 'mingw32.db' from downloads.sourceforge.net : Connection timed out after 10000 milliseconds error: failed to

Manjaro小记

匿名 (未验证) 提交于 2019-12-03 00:19:01
写下这篇文章的时间:2018年5月23日22:46:25 manjaro-kde-17.1.7-stable-x86_64.iso rufus-2.18.exe AUSU X555L Core i3-5010U CPU @ 2.10GHz 2.10GHz RAM 4.00GB Win8.1 X64 一个容量合适的U盘 使用 rufus 来制作启动U盘。BIOS设置U盘启动。 由于直接使用ISO模式,我这里出现了非法错误的提示,转而使用DD模式,成功进入安装设置界面。 界面很清晰,关键是驱动设定,选择闭源 ―― non-free。 选择中文。 点击 boot 那项启动安装流程。 进入新的图形界面后,开始安装。 流程主要参看 Manjaro Linux 17.0.2 KDE环境安装、配置记录 。 问题是,我在手动分区的时候,划分了 /boot/efi(这里文件系统我是用的是fat32,安装后win下会出现一个新的盘符,在磁盘管理中,我将其隐藏了),/,/var,但是安装过程会提示出错。 这里具体的错误已经忘记,但是多番尝试后,修改了挂载点,把 /var 改成了 交换分区。诶,这次竟然装上去了。 初次进入系统后,首先要配置好源的问题。 用vi(或者KDE自带编辑器Kate,当然命令行里的Nano也不错)编辑/etc/pacman.conf文件(sudo vi /etc/pacman

关于manjaro的一系列配置&使用方法

匿名 (未验证) 提交于 2019-12-03 00:15:02
偶然的机会了解到了manjaro这个linux发行版本,顿时被它迷住了,再加上win频频让我更新,导致我的vmware workstation不能使用好几次,故决定放弃win,给物理机安装manjaro;本文章是本人安装过程及学习过程的一系列记录,持续更新....... 本文来自自己笔记整理,包括自己遇到的一些问题;主要讲讲一些使用方法和自己遇到并且解决的问题,至于安装过程google一大片,就不再论述。 配置中国的镜像 sudo pacman-mirrors -g # 排列源,可不执行 sudo pacman-mirrors -c China -m rank # 更改源,在跳出的对话框里选择想要的源 增加arch中文社区的源,加速安装软件,在 /etc/pacman.conf 中添加 archlinuxcn 源,在其末尾加上: [archlinuxcn] SigLevel = Optional TrustedOnly Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch 安装 archlinuxcn-keyring 包以导入 GPG key,否则的话 key 验证失败会无法安装: sudo pacman -S archlinuxcn-keyring 同步并更新系统: sudo pacman -Syyu

Pacman: how do the eyes find their way back to the monster hole?

浪尽此生 提交于 2019-12-03 00:02:10
问题 I found a lot of references to the AI of the ghosts in Pacman, but none of them mentioned how the eyes find their way back to the central ghost hole after a ghost is eaten by Pacman. In my implementation I implemented a simple but awful solution. I just hard coded on every corner which direction should be taken. Are there any better/or the best solution? Maybe a generic one that works with different level designs? 回答1: Actually, I'd say your approach is a pretty awesome solution, with almost

Arch linux操作系统安装教程

匿名 (未验证) 提交于 2019-12-02 21:56:30
һ.Arch linux Arch Linux是一款基于x86-64架构的Linux发行版。系统主要由自由和开源软件组成,支持社区参与。系统设计以KISS原则(保持简单和愚蠢)为总体指导原则,注重代码正确、优雅和极简主义,期待用户能够愿意去理解系统的操作。Arch Linux 采用 滚动发行模式 来获取系统更新和软件的最新版本,通过更新,任何时期的Arch Linux都可以滚动更新到最新版本。 二.制作引导盘 1.下载系统镜像 打开地址 Archlinux 下载 2.写入u盘, /dev/sdc代表磁盘设备 # sudo dd bs=4M if =Downloads/archlinux- 2019.04 . 01 -x86_64.iso of=/dev/sdc status=progress && sync 三.安装系统 1.使用u盘引导进入系统,刷新本地时间 # timedatectl set-ntp true 2.配置软件仓库镜像,将地理位置最近的镜像地址移到文件头部 # vi /etc/pacman.d/mirrorlist 3.硬盘分区并格式化 # fdisk -l # cfdisk /dev/sda # mkfs.fat /dev/sda1 # mkfs.btrfs /-f dev/sda2 # cfdisk /dev/sdb # mkfs.btrfs -f /dev