Posts

Showing posts from August 30, 2018

setgid bit in umask of systemd service script

Image
Clash Royale CLAN TAG #URR8PPP up vote 1 down vote favorite I have a downloader service running, and I'd like it to set the setgid bit of every directory it creates. Its already doing so, but I suspect that's because at the moment, the parent directory also has setgid. What do I set the umask to? I'm also wondering how umask, particularly in a systemd script, works for the "4th" digit. I understand that its inverted, so that umask = 002 is like chmod 775. But what about umask = 2002. Is that chmod 5775? or chmod 2775? Thanks! linux ubuntu files filesystems share | improve this question asked Jan 21 at 21:25 Kayson 8 2 It should be 2775 ! – George Udosen Jan 22 at 1:33 add a comment  |  up vote 1 down vote favorite I have a downloader service running, and I'd like it to set the setgid bit of every directory it creates. Its already doing so, but I suspect that's because at the momen

Spice for graphic, pulseaudio for sound

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite When we use Spice in a virtual machine under KVM/qemu/libvirt, the QEMU_AUDIO_DRV is set to spice by default. My host (debian-Stretch) use a good sound card (Xonar DX) and a better sound driver (pulseaudio,alsa). How to use in a virtual machine spice for the graphic aspect and pulseaudio or alsa for the sound aspect (whatever the guest OS) ? Note 1 : in the domain.xml, I added: <qemu:commandline> <qemu:env name='QEMU_AUDIO_DRV' value='pa'/> <qemu:env name='QEMU_PA_SERVER' value='/run/user/1000/pulse/native'/> </qemu:commandline> Now, in domain.log, I see: QEMU_AUDIO_DRV=pa QEMU_PA_SERVER=/run/user/1000/pulse/native Well but I don't know if my guest uses pulseaudio or not because domain.xml has the following section: <sound model='ich6'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function=

3d graphics in Debian

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite I'm running Debian Stretch and am having trouble running a program that needs 3d (Unity3d for Linux, a beta release). When starting it, I get a message "Failed to initialize unity graphics." I suppose it's caused by an old graphic card driver. My graphic card: lspci -nn | egrep -i "3d|display|vga" 00:02.0 VGA compatible controller [0300]: Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 18) Should I update it, install proprietary drivers? How can i do that? Do the graphic cards drivers get updated with the general apt upgrade command? graphics intel-graphics share | improve this question edited Jan 22 at 1:34 asked Jan 21 at 23:08 Quora Feans 1,453 4 17 32 add a comment  |  up vote 0 down vote favorite I'm running Debian Stretch and am having trouble running a program that needs 3d (Unity