You are not logged in.

#1 2017-01-22 16:05:54

Zohran
Member
Registered: 2017-01-19
Posts: 45

[Resolved]Archlinux - KAG don't work

Hello, sorry for my bad english, i'm french smile

I have problem with KAG in AUR when i start it:

[zohran@msi-gs73-vr ~]$ su
Mot de passe : 
[root@msi-gs73-vr zohran]# kag
PID: 10037
Starting in directory: /usr/share/kag
Changed directory to: /usr/share/kag/
Engine (build: 469 version: 0.95A)
Creating video device...
Irrlicht Engine version 1.8.0-alpha
Linux 4.8.13-1-ARCH #1 SMP PREEMPT Fri Dec 9 07:24:34 CET 2016 x86_64
No protocol specified
Error: Need running XServer to start Irrlicht Engine.
Could not open display: :0

Downloading checksums from http://update.kag2d.com/kag_x/App/version.txt

Downloading http://update.kag2d.com/kag_x/App/version.txt...

CURL Error: Operation was aborted by an application callback
Error downloading checksum from http://update.kag2d.com/kag_x/App/version.txt (err:42)

THE END

I have been searching for a while on the net but I have not seen any information about this bug.

Last edited by Zohran (2017-01-23 23:02:49)

Offline

#2 2017-01-22 16:22:11

hoerbert
Member
Registered: 2013-04-03
Posts: 87

Re: [Resolved]Archlinux - KAG don't work

Hey Zohran,

I am no expert (by far), but i guess it has to do with starting it as root. There is no running X-server for the root-user and so the game does not know where to show itself.

Why do you explicitly start it as root though? Most of the times there is no need to do that.

Greets

Torben

Offline

#3 2017-01-22 16:55:15

Zohran
Member
Registered: 2017-01-19
Posts: 45

Re: [Resolved]Archlinux - KAG don't work

Thank you for your answer. In fact if I launch in root, it's because that it doesn't pass without:

[zohran@msi-gs73-vr ~]$ kag
/usr/bin/kag: ligne 4: ./KAG: Permission non accordée
[zohran@msi-gs73-vr ~]$ sudo kag
[sudo] Mot de passe de zohran : 
PID: 10645
Starting in directory: /usr/share/kag
Changed directory to: /usr/share/kag/
Engine (build: 469 version: 0.95A)
Creating video device...
Irrlicht Engine version 1.8.0-alpha
Linux 4.8.13-1-ARCH #1 SMP PREEMPT Fri Dec 9 07:24:34 CET 2016 x86_64
No protocol specified
Error: Need running XServer to start Irrlicht Engine.
Could not open display: :0

Downloading checksums from http://update.kag2d.com/kag_x/App/version.txt

Downloading http://update.kag2d.com/kag_x/App/version.txt...

CURL Error: Operation was aborted by an application callback
Error downloading checksum from http://update.kag2d.com/kag_x/App/version.txt (err:42)

THE END

Offline

#4 2017-01-22 17:46:02

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: [Resolved]Archlinux - KAG don't work

You might want to try running it using gksu or gksudo.  They are appropriate tools for running GUI applications as root.

Moving to AUR Issues


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2017-01-22 17:51:41

mis
Member
Registered: 2016-03-16
Posts: 234

Re: [Resolved]Archlinux - KAG don't work

Is your user in the games group? The PKGBUILD changes ownership of some files to root:games. Not sure if it will work, but worth a try..

Last edited by mis (2017-01-22 17:56:55)

Offline

#6 2017-01-22 21:34:02

Zohran
Member
Registered: 2017-01-19
Posts: 45

Re: [Resolved]Archlinux - KAG don't work

I tested and added my account to the group games but it does not change anything.

I installed gksu and i tested it:

[zohran@msi-gs73-vr ~]$ gksudo kag
Error copying '/home/zohran/.Xauthority' to '/tmp/libgksu-aaKcKK': Aucun fichier ou dossier de ce type

Offline

#7 2017-01-22 22:03:17

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: [Resolved]Archlinux - KAG don't work

What is the output of mount     ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2017-01-22 22:19:54

Zohran
Member
Registered: 2017-01-19
Posts: 45

Re: [Resolved]Archlinux - KAG don't work

mount:

[zohran@msi-gs73-vr ~]$ mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=8155836k,nr_inodes=2038959,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/nvme0n1p2 on / type ext4 (rw,relatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=32,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sda2 on /tmp type ext4 (rw,relatime,data=ordered)
/dev/sda3 on /var type ext4 (rw,relatime,data=ordered)
/dev/sda4 on /home type ext4 (rw,relatime,data=ordered)
tmpfs on /run/user/120 type tmpfs (rw,nosuid,nodev,relatime,size=1632088k,mode=700,uid=120,gid=120)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1632088k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

Offline

#9 2017-01-22 22:27:17

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: [Resolved]Archlinux - KAG don't work

This is a bit unusual:

/dev/sda2 on /tmp type ext4 (rw,relatime,data=ordered)
/dev/sda3 on /var type ext4 (rw,relatime,data=ordered)

In general, I would expect those be tmpfs rather than physical devices. 
What is the output of df -h    ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#10 2017-01-22 22:38:16

Zohran
Member
Registered: 2017-01-19
Posts: 45

Re: [Resolved]Archlinux - KAG don't work

df -h:

[zohran@msi-gs73-vr ~]$ df -h
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
dev                7,8G       0  7,8G   0% /dev
run                7,8G    1,5M  7,8G   1% /run
/dev/nvme0n1p2     117G    9,6G  102G   9% /
tmpfs              7,8G     48M  7,8G   1% /dev/shm
tmpfs              7,8G       0  7,8G   0% /sys/fs/cgroup
/dev/sda2          9,8G    2,2G  7,2G  23% /tmp
/dev/sda3          9,8G    2,6G  6,8G  28% /var
/dev/sda4          877G     21G  812G   3% /home
tmpfs              1,6G     16K  1,6G   1% /run/user/120
tmpfs              1,6G    5,8M  1,6G   1% /run/user/1000

Offline

#11 2017-01-22 22:49:18

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: [Resolved]Archlinux - KAG don't work

'Aucun fichier ou dossier de ce type' translates to 'No such file or folder'
A little confusing.   /tmp does exist and should be writeable.   

Any idea why you are using physical devices for tmp file systems?
I'm running out of ideas sad


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#12 2017-01-22 22:56:59

Zohran
Member
Registered: 2017-01-19
Posts: 45

Re: [Resolved]Archlinux - KAG don't work

/ tmp is on a different partition because I have 2 hard drives, one HDD and one SSD.

But if it is not readable, maybe I have done wrong my installation?

Can I change that? Or is it irreversible?

Offline

#13 2017-01-22 23:15:46

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: [Resolved]Archlinux - KAG don't work

You can change it, all you have to do is change /etc/fstab.  Usually /tmp is a tmpfs which (I believe) are RAM disks.   

Can we see your /etc/fstab?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#14 2017-01-22 23:20:43

Zohran
Member
Registered: 2017-01-19
Posts: 45

Re: [Resolved]Archlinux - KAG don't work

Yes I can read it and change it to root. I give you the contents:

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
/dev/nvme0n1p2  /       ext4    defaults        0       1
/dev/sda1       none    swap    defaults        0       0
/dev/sda2       /tmp    ext4    defaults        0       0
/dev/sda3       /var    ext4    defaults        0       0
/dev/sda4       /home   ext4    defaults        0       2

What should I change? What is my error in fact?

Offline

#15 2017-01-22 23:24:53

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: [Resolved]Archlinux - KAG don't work

To be honest, I would comment out the /tmp and /var lines.  Let systemd handle them and treat them as tmpfs.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#16 2017-01-22 23:35:10

Zohran
Member
Registered: 2017-01-19
Posts: 45

Re: [Resolved]Archlinux - KAG don't work

Sorry but I still need to learn smile
Like this ?

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
/dev/nvme0n1p2  /       ext4    defaults        0       1
/dev/sda1       none    swap    defaults        0       0
/dev/sda2       /tmp    ext4    tmpfs           0       0
/dev/sda3       /var    ext4    tmpfs           0       0
/dev/sda4       /home   ext4    defaults        0       2

Last edited by Zohran (2017-01-22 23:35:43)

Offline

#17 2017-01-23 00:55:44

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: [Resolved]Archlinux - KAG don't work

ewaller wrote:

To be honest, I would comment out the /tmp and /var lines.  Let systemd handle them and treat them as tmpfs.

Are you sure /var usually is or even should be a tempfs?

@Zohran: No. This is your opportunity to read the mount and fstab manpages and the fstab wiki article. You might also want to research, what "to comment out" means. It might also be a good idea to double check recommendations, because even an experienced user like ewaller might suggest to remove a /var mount line without further steps out of the blue at some point. If you unmount /var from where ever it is now, it will be a plain folder called "var" in where ever "/" is being mounted, but it won't contain the files.

Offline

#18 2017-01-23 01:27:23

Zohran
Member
Registered: 2017-01-19
Posts: 45

Re: [Resolved]Archlinux - KAG don't work

I have already read these pages, but honestly I do not know what to do to solve my problem.

That's why I ask for help

I tried putting my scores in type tmpfs, but it does not work. Pacman can not find the partitions anymore.

Offline

#19 2017-01-23 01:32:44

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: [Resolved]Archlinux - KAG don't work

/var should definitely not be tmpfs. Don't comment that out or things break.

Offline

#20 2017-01-23 01:50:19

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: [Resolved]Archlinux - KAG don't work

Damn.  Sorry about that. I was thinking /run but I typed /var.  Even that is not correct.

My apologies.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#21 2017-01-23 09:24:31

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: [Resolved]Archlinux - KAG don't work

Zohran wrote:

I tried putting my scores in type tmpfs, but it does not work. Pacman can not find the partitions anymore.

It's time to boot your install medium and fix the mount point by reverting the fstab. If you're unsure about the syntax, mount the partitions manually and use genfstab (the same way you did while installing Arch). Also remember arch-chroot, in case you need it. Fixing Arch is a lot like installing Arch.

Offline

#22 2017-01-23 10:53:28

Zohran
Member
Registered: 2017-01-19
Posts: 45

Re: [Resolved]Archlinux - KAG don't work

Thanks a lot for your help. But what I do not understand is what I have to do with my partitions ... Could you be more precise?

Offline

#23 2017-01-23 14:31:25

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: [Resolved]Archlinux - KAG don't work

Zohran wrote:

Thanks a lot for your help. But what I do not understand is what I have to do with my partitions ... Could you be more precise?

Revert your fstab to the state it was before you damaged it. That should be enough to get your system back on track.

Offline

#24 2017-01-23 16:09:33

Zohran
Member
Registered: 2017-01-19
Posts: 45

Re: [Resolved]Archlinux - KAG don't work

Like that ?

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
/dev/nvme0n1p2  /       ext4    defaults        0       1
/dev/sda1       none    swap    defaults        0       0
/dev/sda2       /tmp    ext4    defaults        0       0
/dev/sda3       /var    ext4    defaults        0       0
/dev/sda4       /home   ext4    defaults        0       2

I had already delivered it as at the beginning.
But it was I who configured the fstab file at the origin. I thought you were telling me I had misconfigured it.

So I leave it like that or not? Because it does not solve my problem with KAG anyway

Offline

#25 2017-01-23 19:05:50

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: [Resolved]Archlinux - KAG don't work

Yes, leave the fstab be for the time being. Just for your information, /tmp is "by default" (whatever that means on Arch) in a tempfs, all you need to do to make it so, is delete the line containing /tmp and reboot, it will automatically be mapped to /tmp. Your fstab is not broken, it's just unusual, so ewaller wanted to streamline your setup to make it easier to squash that bug. I'm not familiar with KEG or Irrlicht, I only wanted to point out, that /var is not as volatile as it seems.

Offline

Board footer

Powered by FluxBB