Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I made a separate user for using Steam (and other games), and it involved a little bit of routing when it comes to X11 and PulseAudio. My reason for doing so was primarily because of how games create many dotfiles, and I wanted my home folder clean.


Do you mind sharing how you did this in more details ? I am also not happy with the way Steam games put files in random locations...


For PulseAudio: I needed to load a few modules that opened a TCP socket for myself between users (under TCP support with anonymous clients):

https://wiki.archlinux.org/index.php/PulseAudio/Examples#Pul...

Forgot exactly what I did with X11, but one part of it was having an environment variable that used my main users XAuthority

E.G. [gamer@mycomputer]$ echo $XAUTHORITY

/home/notthemessiah/.Xauthority


I did something similar by installing Steam to a chroot environment.

"Those who do not understand UNIX are condemned to reinvent it, poorly." -- Henry Spencer, programmer

This goes doubly for "containers" not understanding chroot/jails.


Well, there is a distinct difference between traditional chroot and the Linux control groups and namespaces.

If only chroot was enough, noone would be investing their time to the cgroups, namespaces, LXC, Docker, etc... :-)


Are you suggesting that containers provide about what chroot provides?

Containers provide chroot-like behavior for more than just the filesystem. Processes, user IDs, network interfaces... Chroot is filesystem only.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: