You are not logged in.

#1 2021-11-14 17:19:52

hacknorris
Member
Registered: 2021-11-14
Posts: 2

instalation of caffeine when running as root

well. i just dont want normally install anything like fakeroot and configure all these accounts in system. for the now i run only as root (like arch came in its iso, i only added password).
is it even possible for AUR to install as root? or any alternative for caffeine in pacman?
for the now i only found these 2 things : "official" caffeine in AUR -> https://aur.archlinux.org/packages/caffeine/ and a small configuration for makepkg : https://smjrifle.net/restore-asroot-yaourtmakgpkg-arch/ and is only for yaourt wrapper (which also require AUR  package to be installed).
i want to make server from mine lap and it always shuts down after closing lid ( so i cant just do it, option from kde ( https://bbs.archlinux.org/viewtopic.php?id=222505 ) doesnt work at me).
when i was on debian-based distros it was okay with this caffeine. no way?

+ output from neofetch (idk maybe it is useful or not) :

OS: Arch Linux x86_64
Kernel: 5.14.16-arch1-1
Uptime: 2 days, 16 mins
Packages: 1367 (pacman)
Shell: bash 5.1.8
Resolution: 1920x1080
DE: Plasma 5.23.2
WM: KWin
Theme: Breeze Light [Plasma], Adwaita [GTK3]
Icons: [Plasma], Adwaita [GTK3]
Terminal: yakuake
CPU: Intel i3-8130U (4) @ 3.400GHz
GPU: Intel UHD Graphics 620
Memory: 6821MiB / 7864MiB

Offline

#2 2021-11-14 17:47:30

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,662

Re: instalation of caffeine when running as root

That's just not a good idea on many levels and a lot of software contains active means to prevent you from running as a root account (... including makepkg as you've noticed). You'll make your live a lot easier just making a normal user that can elevate with sudo.

If you really honestly think you need to do this, abuse the nobody user for invoking makepkg. FWIW the "just for yaourt patch" actually patches makepkg and will apply for everything, so you could also use that.

Last edited by V1del (2021-11-14 17:51:50)

Offline

#3 2021-11-14 17:50:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: instalation of caffeine when running as root

hacknorris wrote:

for the now i run only as root (like arch came in its iso, i only added password).

...and a DE, and X, and a web browser.

This isn't just a bad idea, it is a spectacularly bad idea.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2021-11-14 17:52:52

hacknorris
Member
Registered: 2021-11-14
Posts: 2

Re: instalation of caffeine when running as root

saw already nobody but smh didnt saw anything to install as user in makepkg.... read all manpage ofc =]

Offline

Board footer

Powered by FluxBB