Definir permissões para arquivos

1

os resultados de

ls -l

são:

crw-rw-rw-   1 root root    195,   0 Aug 30 14:59 nvidia0
crw-rw-rw-   1 root root    195, 255 Aug 30 14:59 nvidiactl
crw-rw-rw-   1 root root    195, 254 Aug 30 14:59 nvidia-modeset
crw-rw-rw-   1 root root    244,   0 Aug 30 14:59 nvidia-uvm

Estou tentando descobrir como obedecer a essas instruções, mas sou um novato, não sei como converter letras em números e como executar essa festa. Por favor, envie-me algumas informações para que eu possa seguir as instruções abaixo:

Check that the device files/dev/nvidia* exist and have the correct (0666) file permissions. These files are used by the CUDA Driver to communicate with the kernel-mode portion of the NVIDIA Driver. Applications that use the NVIDIA driver, such as a CUDA application or the X server (if any), will normally automatically create these files if they are missing using the setuidnvidia-modprobe tool that is bundled with the NVIDIA Driver. However, some systems disallow setuid binaries, so if these files do not exist, you can create them manually by using a startup script such as the one below:

> #!/bin/bash
> 
> /sbin/modprobe nvidia
> 
> if [ "$?" -eq 0 ]; then   # Count the number of NVIDIA controllers
> found.   NVDEVS='lspci | grep -i NVIDIA'   N3D='echo "$NVDEVS" | grep
> "3D controller" | wc -l'   NVGA='echo "$NVDEVS" | grep "VGA compatible
> controller" | wc -l'
> 
>   N='expr $N3D + $NVGA - 1'   for i in 'seq 0 $N'; do
>     mknod -m 666 /dev/nvidia$i c 195 $i   done
> 
>   mknod -m 666 /dev/nvidiactl c 195 255
> 
> else   exit 1 fi
> 
> /sbin/modprobe nvidia-uvm
> 
> if [ "$?" -eq 0 ]; then   # Find out the major device number used by
> the nvidia-uvm driver   D='grep nvidia-uvm /proc/devices | awk '{print
> $1}''
> 
>   mknod -m 666 /dev/nvidia-uvm c $D 0 else   exit 1 fi

Leia mais em: link Siga-nos: @GPUComputando no Twitter | NVIDIA no Facebook

    
por Rik 31.08.2016 / 02:00

1 resposta

0

Abra um terminal como este ... Enquanto pressiona as teclas Ctrl e Alt, pressione t. Uma janela será aberta. Esse é o seu terminal. No terminal digite gedit e pressione enter. Uma segunda janela será aberta. Copie o script acima para a segunda janela e clique no botão Salvar. Digite o nome "startup" no campo Name: e clique no botão save. Feche essa janela. Na sua primeira janela, o terminal, digite chmod 755 startup e pressione enter. Agora digite ./startup e pressione enter. Seu script será executado.

    
por bashBedlam 31.08.2016 / 02:17