Menú

Mostrar Mensajes

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.

Mostrar Mensajes Menú

Mensajes - lucas25cba

#31
Scripting / Re: [Python] Duda de (in)cultura
29 Octubre 2015, 13:21 PM
tincopasan: en tu enlace consigo bajar un archivo .pyc, nada mas... Seguro que tenes buenas intenciones, pero por norma general no ejecuto archivos descargados sin saber que hacen (aunque se llamen "hola mundo"...)

engel lex: con tu respuesta va tomando mejor forma mi duda dentro de mi cabeza  :P . Me refiero: Una característica de python es ser multiplataforma y considero que lo bueno de ello es la portabilidad (no tenes que estar compilando para cada pc/S.O.).
Por lo que entiendo, cada PC tiene su conjunto de instrucciones. El interprete va leyendo el script e interpretando (traduciendo) las lineas del script por el código maquina correspondiente.
Ahora bien, mi duda: si lo compilo tal como has dicho (interprete+script), para que sea portable y multiplataforma lo que obtengo, ¿como funciona el interprete "embebido" dentro del ejecutable para permitir ello?
Lo entiendo desde la perspectiva de java y sus JVM... pero si no hay maquina virtual en Python...  No se si me explico.


#32
Scripting / [Python] Duda de (in)cultura
28 Octubre 2015, 20:20 PM
Buenas!
Recién empiezo con Python y me encuentro lleno de dudas.
Una de ellas es la siguiente (me surge al compararlo con Java):
- En Java hay un maquina virtual que interpreta el archivo .class (el que contiene los byte-codes) y el cual es compilado con javac.
- En Python, veo que es multiplataforma, y no logro ver tal "maquina virtual", simplemente veo que interpreta el codigo (script) y lo va ejecutando.
1) ¿Es tan así? ¿No hay maquina virtual alguna?
2) A diferencia de Java, donde puedo pasarle a mi compañero el .class para que lo ejecute, en python ¿debo pasarle el archivo con el codigo si o si para que lo pueda ejecutar? Me refiero: ¿No existe forma de "compilar" (o pre-compilar)?
#33
Joya! Gracias!!!!!
#34
Perdon! Paso el codigo como corresponde, no como una cita! Si que estoy mareado  :P

Código (python) [Seleccionar]
#parahumanos.py

SUFIJOS = {1000: [ 'KB' , 'MB' , 'GB' , 'TB' , 'PB' , 'EB' , 'ZB' , 'YB' ] ,
           1024: [ 'KiB ' , 'MiB ' , 'GiB ' , 'TiB ' , 'PiB ' , 'EiB ' , ' ZiB ' ,
                   'YiB ' ]}

def tamanyo_aproximado(tamanyo , un_kilobyte_es_1024_bytes=True ):
    ''' Convierte un tamaño de fichero en formato legible por personas

     Argumentos/parámetros:
     tamanyo __ tamaño de fichero en bytes
     un_kilobyte_es_1024_bytes __ si True (por defecto),
                                  usa múltiplos de 1024
                                  si False, usa múltiplos de 1000

     retorna : string

     '''   
   
    if tamanyo < 0 :
        raise ValueError ("el número debe ser no negativo")

    multiplo = 1024 if un_kilobyte_es_1024_bytes else 1000
    for sufijo in SUFIJOS [multiplo]:
        tamanyo /= multiplo
        if tamanyo < multiplo:
            return ' {0:.1f} {1} ' . format ( tamanyo , sufijo)

    raise ValueError ( 'número demasiado grande ' )

if __name__ == '__ main__':
    print (tamanyo_aproximado (1000000000000 , False))
    print (tamanyo_aproximado (1000000000000) )



#35
Buenas!
Recién empiezo y ya estoy mareado...  :P
Una duda:
Tengo el siguiente programa sacado de un tutorial:

Citar#parahumanos.py

SUFIJOS = {1000: [ 'KB' , 'MB' , 'GB' , 'TB' , 'PB' , 'EB' , 'ZB' , 'YB' ] ,
          1024: [ 'KiB ' , 'MiB ' , 'GiB ' , 'TiB ' , 'PiB ' , 'EiB ' , ' ZiB ' ,
                  'YiB ' ]}

def tamanyo_aproximado(tamanyo , un_kilobyte_es_1024_bytes=True ):
   ''' Convierte un tamaño de fichero en formato legible por personas

    Argumentos/parámetros:
    tamanyo __ tamaño de fichero en bytes
    un_kilobyte_es_1024_bytes __ si True (por defecto),
                                 usa múltiplos de 1024
                                 si False, usa múltiplos de 1000

    retorna : string

    '''    
   
   if tamanyo < 0 :
       raise ValueError ("el número debe ser no negativo")

   multiplo = 1024 if un_kilobyte_es_1024_bytes else 1000
   for sufijo in SUFIJOS [multiplo]:
       tamanyo /= multiplo
       if tamanyo < multiplo:
           return ' {0:.1f} {1} ' . format ( tamanyo , sufijo)

   raise ValueError ( 'número demasiado grande ' )

if __name__ == '__ main__':
   print (tamanyo_aproximado (1000000000000 , False))
   print (tamanyo_aproximado (1000000000000) )

Estoy usando Eclipse con PyDev
Al intentar interpretar dicho programa, me larga:
CitarFile "C:\Users\Usuario\Downloads\LABORATORIO\PYTHON\paraHumanos\src\paraHumanos.py", line 8
SyntaxError: Non-UTF-8 code starting with '\xf1' in file C:\Users\Usuario\Downloads\LABORATORIO\PYTHON\paraHumanos\src\paraHumanos.py on line 8, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details


(La linea 8 es
Citar''' Convierte un tamaño de fichero en formato legible por personas

Si quito las triples comillas simples y pongo al comienzo de cada linea del bloque de comentarios el simbolo "#", sale el mismo error...

#36
Hardware / Problemas con impresora
23 Octubre 2015, 12:40 PM
Buenas!
Poseo una impresora multifunción  Epson TX-105.
Estuvo sin uso largo tiempo. (cartuchos originales).
Tuve que hacerle limpieza de cabezales.
Me quede sin tinta y al intentar adquirir cartuchos (1 negro y uno para cada color), donde vivo no se lograba conseguir originales. Puse alternativos. Volví a hacer limpieza de cabezales y alineación y por un tiempo anduvo bien.
Luego empezó a imprimir con ciertas "rayas" (las letras no se imprimían completa a lo largo de toda una linea, las molestas rayas finitas blancas sin imprimir).
Luego de hacer reiteradas limpiezas, alineaciones, calibraciones a través del driver, decidí llevarla a un técnico reparador de impresoras.
Lo que notó dicho técnico es que los cabezales no estaban del todo limpio y con cierto líquido que no se cual es (puedo averiguarlo si es relevante) limpio los cabezales.
La cosa es que se quedaron sin tinta los cartuchos.
Así que éste técnico intento usar alternativos de otra maquina, pero no le reconocía directamente los cartuchos (no es que no llegaba la impresora a imprimir, sino que ni siquiera se daba cuenta ésta que tenía cartuchos nuevos).
Como en el pueblo donde vivo los alternativos que se consiguen son únicamente los de dicho técnico, viaje hasta la ciudad donde había adquirido los alternativos que anteriormente funcionaron, los compre y se los dí.
el técnico los fue cambiando uno por uno, se los fue reconociendo uno por uno (a los cartuchos) llego a hacer una prueba de alineación (que salio correcta) y luego volvió a dejar de reconocerles los cartuchos (como si estuviesen vacíos).
Ya hace 5 semanas de todo esto...
Alguna sugerencia para darle al técnico reparador de impresoras (es el único del lugar donde vivo).
Mas allá de confrontar con dicho reparador, quiero ver si puedo aportarle alguna idea para poder volver a tener en la brevedad mi impresora.

Desde ya, muchas gracias!
#37
Buenas....

Este es mi siguiente /etc/X11/xorg.conf

CitarSection "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection


Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection


Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "CRT-0"
    HorizSync      30.0 - 81.0
    VertRefresh    56.0 - 75.0
    # 1600x900 59.95 Hz (CVT 1.44M9) hsync: 55.99 kHz; pclk: 118.25 MHz
    Modeline       "1600x900_60.00"  118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Card0"
    Driver         "nouveau"
    BusID       "PCI:0:13:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
     SubSection     "Display"
        Depth       24
        Modes       "1600x900_60.00"
    EndSubSection
EndSection

Usando Nouveau en mi Ubuntu 14.04.03 LTS, me acepta la resolucion de 1600x900, pero se me "congela" la pantalla.
Al instalar driver privativos de NVIDIA (cualquiera de los 3) y borrando el archivo anterior, directamente ya se me reportan ciertos errores al bootear de Ubuntu:

CitarACPI PCC Probe failed
sd4:0:0:0:[sdb[ No catching mode page found
sd4:0:0:0:[sdb[ Assuming drive cacvhe: write through
hid-generic 0003:1C4F:0016.0002.usb_submit_urb (ctrl) failed: -1
...

Reinstale el S.O. a Ubuntu 12.04, y dejando el driver libre noveau y el mismo xorg.conf que recien mencione... ANDA A LA PERFECCION! Resolucion de 1600x900 y sin congelarse nada!

Quedaria ver ahora como instalar el driver NVIDIA sin morir en el intento, pero ello prefiero dejarlo para otra consulta, pues esta ya se volvio muy extensa.

Llegando de ésta manera a una isla, concluyo mi relato de naufragio DANDO COMO SOLUCIONADO éste tema, no sin antes darles las gracias y respectivos reconocimientos de como me ayudaron a Engel Lex y MinusFour

MUCHISIMAS GRACIAS!
#38
Me quedaron 5 dudas:
1)
Código (bash) [Seleccionar]
sudo -i
service lightdm stop

CTRL+ALT+F1
Código (bash) [Seleccionar]
sudo -i
loadkeys es
Xorg -configure
mv /root/xorg.conf.new /etc/X11/xorg.conf

¿Es la manera correcta de crear el xorg.conf?

2) ¿Por que hay tantas SubSection Display con diferentes valores en Depth?
3) ¿En cada una de ellas debo poner
Citar"Modes 1600x900"
?
4) ¿Que significa el
CitarModes      "1920x1200R"
del ejemplo?
5) ¿Este es para vos la posible causa de que se me congele la pantalla cuando ejecuto resolucion.sh?

#39
Ya que tengo en este momento solamente instalado Nouveau, volveré a intentar con la solución propuesta por Engel Lex (antes cuando lo hice a diferencia de el tenia instalado el driver privativo nvidiA nvidia-current)

Mi situacion actual:
- No tengo creado aun /etc/X11/xorg.conf
- En configuracion del sistema → Software y actualizaciones → controladores adicionales, me sale que estoy usando:
X.OrgXserver-Nouveau display driver desde xserver-xorg-video-nouveau
- La salida de
Código (bash) [Seleccionar]
xrandr es:
CitarScreen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
VGA-1 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
  1024x768       60.0*
  800x600        60.3     56.2  
  848x480        60.0  
  640x480        59.9  
(Si, VGA-1, no VGA-0...)
- La pantalla por momentos se me congela con rayas y ni siquiera puedo salir del entorno grafico con CTRL+ALT+F1 o hace parpadeos dejandola en negro por pequeños intervalos de tiempo (1 segundo aproximadamente).

Lo primero que hago es ejecutar:
Citarsudo apt-get remove --purge nvidia*

para asegurarme que no haya quedado nada de nvidia dando vuelta.
(Me devuelve que no desinstalo nada, pues nada habia para desinstalar).


Ejecuto
Código (bash) [Seleccionar]
cvt 1600 900
me devuelve:
Citar# 1600x900 59.95 Hz (CVT 1.44M9) hsync: 55.99 kHz; pclk: 118.25 MHz
Modeline "1600x900_60.00"  118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync

Código (bash) [Seleccionar]
sudo xrandr --newmode "1600x900_60.00"  118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync

no me devuelve nada, pero si ejecuto xrandr, pedo ver lo siguiente:
Código (bash) [Seleccionar]
xrandr
CitarScreen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
VGA-1 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
  1024x768       60.0*
  800x600        60.3     56.2  
  848x480        60.0  
  640x480        59.9  
 1600x900_60.00 (0x297)  118.2MHz
       h: width  1600 start 1696 end 1856 total 2112 skew    0 clock   56.0KHz
       v: height  900 start  903 end  908 total  934           clock   59.9Hz

ejecuto:
Código (bash) [Seleccionar]
sudo xrandr --addmode VGA-1 "1600x900_60.00"
no me devuelve nada... PERO ME CONFIGURO EL MONITOR CON LA RESOLUCION DESEADA!!!!!!

Tal como dijo Engel Lex, antes de apresurarme creo un archivo .sh con el siguiente codigo:
Código (bash) [Seleccionar]
#!/bin/sh
xrandr --output VGA-1 --mode "1600x900"
sleep 15
xrandr --output VGA-1 --mode "1024x768"

lo ejecuto, y... ANDA DE MARAVILLAS... ahora claro que tengo otra vez la resolucion de 1024x768 pues es lo que indica la ultima linea del comando, pero se que puedo ejecutar tranquilamente el comando
Código (bash) [Seleccionar]
sudo xrandr --output VGA-1 --mode "1600x900_60.00"

cosa que es precisamente mi siguiente paso.

la salida de xrandr es:
CitarScreen 0: minimum 320 x 200, current 1600 x 900, maximum 4096 x 4096
VGA-1 connected primary 1600x900+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
  1024x768       60.0  
  800x600        60.3     56.2  
  848x480        60.0  
  640x480        59.9  
  1600x900_60.00   59.9*



Ahora me dedico a crear el archivo xorg.conf haciendo


sudo -i
service lightdm stop
CTRL+ALT+F1
sudo -i
loadkeys es
Xorg -configure
mv /root/xorg.conf.new /etc/X11/xorg.conf

xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
VGA-1 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
  1024x768       60.0*
  800x600        60.3     56.2  
  848x480        60.0  
  640x480        59.9  


El archivo /etc/x11/xorg.conf:

Section "ServerLayout"
   Identifier     "X.org Configured"
   Screen      0  "Screen0" 0 0
   InputDevice    "Mouse0" "CorePointer"
   InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
   ModulePath   "/usr/lib/xorg/modules"
   FontPath     "/usr/share/fonts/X11/misc"
   FontPath     "/usr/share/fonts/X11/cyrillic"
   FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
   FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
   FontPath     "/usr/share/fonts/X11/Type1"
   FontPath     "/usr/share/fonts/X11/100dpi"
   FontPath     "/usr/share/fonts/X11/75dpi"
   FontPath     "built-ins"
EndSection

Section "Module"
   Load  "glx"
EndSection

Section "InputDevice"
   Identifier  "Keyboard0"
   Driver      "kbd"
EndSection

Section "InputDevice"
   Identifier  "Mouse0"
   Driver      "mouse"
   Option       "Protocol" "auto"
   Option       "Device" "/dev/input/mice"
   Option       "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
   Identifier   "Monitor0"
   VendorName   "Monitor Vendor"
   ModelName    "Monitor Model"
EndSection

Section "Device"
       ### Available Driver options are:-
       ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
       ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
       ### <percent>: "<f>%"
       ### [arg]: arg optional
       #Option     "SWcursor"              # [<bool>]
       #Option     "HWcursor"              # [<bool>]
       #Option     "NoAccel"               # [<bool>]
       #Option     "ShadowFB"              # [<bool>]
       #Option     "VideoKey"              # <i>
       #Option     "WrappedFB"             # [<bool>]
       #Option     "GLXVBlank"             # [<bool>]
       #Option     "ZaphodHeads"           # <str>
       #Option     "PageFlip"              # [<bool>]
       #Option     "SwapLimit"             # <i>
       #Option     "AsyncUTSDFS"           # [<bool>]
       #Option     "AccelMethod"           # <str>
   Identifier  "Card0"
   Driver      "nouveau"
   BusID       "PCI:0:13:0"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device     "Card0"
   Monitor    "Monitor0"
   SubSection "Display"
      Viewport   0 0
      Depth     1
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     4
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     8
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     15
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     16
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     24
   EndSubSection
EndSection

No tengo idea de como meter la nueva resolucion al archivo xorg.conf...

Como cada vez que reinicio, pierdo la resolucion (vuelve a ser de 1024x768), cree un archivo llamado resolucion.sh con el siguiente contenido:
Código (bash) [Seleccionar]
xrandr --newmode "1600x900_60.00"  118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync
xrandr --addmode VGA-1 "1600x900_60.00"
xrandr --output VGA-1 --mode "1600x900-60.00"


Pero ahora el problema es que luego de un rato (uno, dos o tres minutos luego de ejecutar resolucion.sh) se me congela la pantalla (ni siquiera me responde CTRL+ALT+F1)...

ACLARACION: pasaba cuando tenia el archivo /etc/X11/xorg.conf como tambien pasa ahora que lo borre. Incluso reinstale el S.O.  ...

Y a todo esto...
CitarSi quieres instalar nvidia-304 porque no intentas
¿por que querria hacer ello?

Desde ya muchas gracias!!!!
#40
Continuo la cronica:
Puesto que no secomo desinstalar Nouveau, continuo el siguiente paso del link que estoy siguiendo.
Ejecuto:
Código (bash) [Seleccionar]
sudo service lightdm stop
La pantalla se pone totalmente negra. Asi que: CTRL+ALT+F1
Código (bash) [Seleccionar]
sudo sh NVIDIA.run (intento instalar el driver privativo de NVIDIA que descargue desde su pagina web)
y me larga:
CitarERROR: The Nouveau kernel driver is currently in use by your system. This driver is incompatible with the nvidia driver, and must be disabled before proceeding. Please consult the NVIDIA driver README and your Linux distribution´s documentation for details on how to correctly disable the Nouveau kernel driver.

luego sale el siguiente mensaje:
CitarFor some distributions, Nouveau can be disable by adding a file in the modprobe configuration directory. Would you like nvidia-installer to attempt to create this modprobe file for you?
Le digo que SI.
Ahora me larga el siguiente mensaje:
CitarOne or more modprobe configuration files to disable Nouveau, have been written. For some distributions, this may be sufficient to disable Nouveau; other distributions may require modification of the initial ramdisk. Please reboot your system and attempt NVIDIA driver instalation again. Note if you later wish to reenable Nouveau, you will need to delete these files:
/etc/modprobe.d/nvidia-installer-diable-nouveau.conf

rebooteo el sistema, me permite entrar al modo grafico, pero ahora tengo una resolucion de 640x480
Código (bash) [Seleccionar]
xrandr
Citarxrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 640 x 480, maximum 640 x 480
default connected primary 640x480+0+0 0mm x 0mm
   640x480        73.0*

Repito los pasos del principio para instalar el driver de NVIDIA, en esta ocasion no salen los mensajes anteriores, comienza la barra de progreso de instalacion a incrementarse... pero al rato sale:
CitarERROR: Unable to build the NVIDIA kernel module

Este es el contenido de /etc/modprobe/nvidia-installer-disable-nouveau.conf: (que ni bien termine de mandar esta consulta lo borro, pues la resolucion actual me esta dejando ciego)

Citar# generated by nvidia-installer
blacklist nouveau
options nouveau modeset=0

Este es el contenido de /var/log/nvidia-installer.log:

Citarnvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Aug 28 07:15:33 2015
installer version: 304.125

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 304.125.
-> Running distribution scripts
   executing: '/usr/lib/nvidia/pre-install'...
-> done.
-> The distribution-provided pre-install script failed!  Continue installation anyway? (Answer: Yes)
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/3.19.0-26-generic/build'
-> Kernel output path: '/lib/modules/3.19.0-26-generic/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
   executing: 'cd ./kernel; make clean'...
-> Building kernel module:
   executing: 'cd ./kernel; make module SYSSRC=/lib/modules/3.19.0-26-generic/build SYSOUT=/lib/modules/3.19.0-26-generic/build'...
   NVIDIA: calling KBUILD...
   test -e include/generated/autoconf.h -a -e include/config/auto.conf || (      \
      echo >&2;                     \
      echo >&2 "  ERROR: Kernel configuration is invalid.";      \
      echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
      echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";   \
      echo >&2 ;                     \
      /bin/false)
   mkdir -p /tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel/.tmp_versions ; rm -f /tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel/.tmp_versions/*
   make -f ./scripts/Makefile.build obj=/tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel
     cc -Wp,-MD,/tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/include  -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated  -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include  -D__KERNEL
   __ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-80387 -mno-fp-ret-in-387 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -I/tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel -Wall
   -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.125\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel/.tmp_nv.o /tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel/nv.c
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/uapi/linux/capability.h:16,
                    from include/linux/capability.h:15,
                    from include/linux/sched.h:15,
                    from include/linux/utsname.h:5,
                    from /tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel/nv-linux.h:40,
                    from /tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel/nv.c:13:
   include/asm-generic/qrwlock.h: In function 'queue_write_trylock':
   include/asm-generic/qrwlock.h:93:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             cnts, cnts | _QW_LOCKED) == cnts);
                                      ^
   include/linux/compiler.h:159:40: note: in definition of macro 'likely'
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/uapi/linux/capability.h:16,
                    from include/linux/capability.h:15,
                    from include/linux/sched.h:15,
                    from include/linux/utsname.h:5,
                    from /tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel/nv-linux.h:40,
                    from /tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel/nv.c:13:
   ./arch/x86/include/asm/uaccess.h: In function 'copy_from_user':
   ./arch/x86/include/asm/uaccess.h:712:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n))
                             ^
   include/linux/compiler.h:159:40: note: in definition of macro 'likely'
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./arch/x86/include/asm/uaccess.h: In function 'copy_to_user':
   ./arch/x86/include/asm/uaccess.h:730:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n))
                             ^
   include/linux/compiler.h:159:40: note: in definition of macro 'likely'
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   /tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel/nv.c: In function 'nv_kern_unlocked_ioctl':
   /tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel/nv.c:2029:30: error: 'struct file' has no member named 'f_dentry'
        return nv_kern_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
                                 ^
   /tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel/nv.c: In function 'nv_kern_compat_ioctl':
   /tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel/nv.c:2038:30: error: 'struct file' has no member named 'f_dentry'
        return nv_kern_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
                                 ^
   /tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel/nv.c: In function 'nv_kern_unlocked_ioctl':
   /tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel/nv.c:2030:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
   /tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel/nv.c: In function 'nv_kern_compat_ioctl':
   /tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel/nv.c:2039:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
   make[3]: *** [/tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel/nv.o] Error 1
   make[2]: *** [_module_/tmp/selfgz2383/NVIDIA-Linux-x86_64-304.125/kernel] Error 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [module] Error 1
   make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.


RESUMIENDO:
Por lo que entiendo, en este momento tengo deshabilitado Noveau, tengo descargado el driver de NVIdIA de la pagina de ellos, dirver que soporta mi tarjeta grafica y es para Linux de 64 bits... pero hay error al querer instalarlo!!!!!

Gualicho!!!!!!!