elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: (TUTORIAL) Aprende a emular Sentinel Dongle By Yapis


  Mostrar Temas
Páginas: 1 2 3 4 5 6 [7] 8 9 10 11
61  Sistemas Operativos / GNU/Linux / consulta sobre samba en: 14 Febrero 2012, 16:14 pm
hasta antes de ayer tenia todo configurado correctamente, cuando accedía a "Examinar la Red", me mostraba ahi nomas todos los equipos encontrados en la red local y una carpeta "Redes de Windows"
en la red de mi casa hay un Media Center en el cual mi hno yo ponemos peliculas y series o cargamos los subtítulos de algo cuando falta etc....

hoy instale gwakeanlan y wakeonlan para ver si podia prender el WDTVLiveHub para pasar una pelicula, para recopilar los datos necesarios instale el nast, una vez obtenidos los datos del WDTVLiveHub desinstale el nast y el wakeonlan y me quede con el gWakeonlan. antes la pc  actualizo un par de cosas de ubuntu Update, en ese mmento no me di cuenta pero en "Examinar la Red" faltan mi equipo y el de mi hno, solo aparece WDTVLiveHub.

aclaro que 15 minutos antes de hacer todo eso explicado arriba funcionaba y se visualizaba todo bien, mi equipo, el de mi hermano y el WDTVLiveHub y esa carpeta de Redes de Windows. ahora solo aparece WDTVLiveHub y esa carpeta "Redes de Windows"

por si alguno de esos programas o la actualizacion haya modificado el smb.conf, aca lo pongo:

Código
  1. [global]
  2.  
  3. ## Browsing/Identification ###
  4.  
  5. # Change this to the workgroup/NT-domain name your Samba server will part of
  6. workgroup = intranet
  7. # netbios name = XKIZ-UBNT
  8. usershare owner only = false
  9.  
  10. # server string is the equivalent of the NT Description field
  11. server string = %h server (Samba, Ubuntu)
  12.  
  13. # Windows Internet Name Serving Support Section:
  14. # WINS Support - Tells the NMBD component of Samba to enable its WINS Server
  15. ; wins support = yes
  16.  
  17. # WINS Server - Tells the NMBD components of Samba to be a WINS Client
  18. # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
  19. ;   wins server = w.x.y.z
  20.  
  21. # This will prevent nmbd to search for NetBIOS names through DNS.
  22. ;   dns proxy = no
  23.  
  24. # What naming service and in what order should we use to resolve host names
  25. # to IP addresses
  26. ;   name resolve order = lmhosts host wins bcast
  27.  
  28. #### Networking ####
  29.  
  30. # The specific set of interfaces / networks to bind to
  31. # This can be either the interface name or an IP address/netmask;
  32. # interface names are normally preferred
  33. ;   interfaces = 127.0.0.0/8 eth0
  34.  
  35. # Only bind to the named interfaces and/or networks; you must use the
  36. # 'interfaces' option above to use this.
  37. # It is recommended that you enable this feature if your Samba machine is
  38. # not protected by a firewall or is a firewall itself.  However, this
  39. # option cannot handle dynamic or non-broadcast interfaces correctly.
  40. ;   bind interfaces only = yes
  41.  
  42.  
  43.  
  44. #### Debugging/Accounting ####
  45.  
  46. # This tells Samba to use a separate log file for each machine
  47. # that connects
  48. log file = /var/log/samba/log.%m
  49.  
  50. # Cap the size of the individual log files (in KiB).
  51. max log size = 1000
  52.  
  53. # If you want Samba to only log through syslog then set the following
  54. # parameter to 'yes'.
  55. #   syslog only = no
  56.  
  57. # We want Samba to log a minimum amount of information to syslog. Everything
  58. # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
  59. # through syslog you should set the following parameter to something higher.
  60. syslog = 0
  61.  
  62. # Do something sensible when Samba crashes: mail the admin a backtrace
  63. panic action = /usr/share/samba/panic-action %d
  64.  
  65.  
  66. ####### Authentication #######
  67.  
  68. # "security = user" is always a good idea. This will require a Unix account
  69. # in this server for every user accessing the server. See
  70. # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
  71. # in the samba-doc package for details.
  72. #   security = user
  73.  
  74. # You may wish to use password encryption.  See the section on
  75. # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
  76. encrypt passwords = no
  77.  
  78. # If you are using encrypted passwords, Samba will need to know what
  79. # password database type you are using.  
  80. ; passdb backend = tdbsam
  81.  
  82. obey pam restrictions = yes
  83.  
  84. # This boolean parameter controls whether Samba attempts to sync the Unix
  85. # password with the SMB password when the encrypted SMB password in the
  86. # passdb is changed.
  87. unix password sync = yes
  88.  
  89. # For Unix password sync to work on a Debian GNU/Linux system, the following
  90. # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
  91. # sending the correct chat script for the passwd program in Debian Sarge).
  92. passwd program = /usr/bin/passwd %u
  93. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  94.  
  95. # This boolean controls whether PAM will be used for password changes
  96. # when requested by an SMB client instead of the program listed in
  97. # 'passwd program'. The default is 'no'.
  98. pam password change = yes
  99.  
  100. # This option controls how unsuccessful authentication attempts are mapped
  101. # to anonymous connections
  102. map to guest = bad user
  103.  
  104. ########## Domains ###########
  105.  
  106. # Is this machine able to authenticate users. Both PDC and BDC
  107. # must have this setting enabled. If you are the BDC you must
  108. # change the 'domain master' setting to no
  109. #
  110. ;   domain logons = yes
  111. #
  112. # The following setting only takes effect if 'domain logons' is set
  113. # It specifies the location of the user's profile directory
  114. # from the client point of view)
  115. # The following required a [profiles] share to be setup on the
  116. # samba server (see below)
  117. ;   logon path = \\%N\profiles\%U
  118. # Another common choice is storing the profile in the user's home directory
  119. # (this is Samba's default)
  120. #   logon path = \\%N\%U\profile
  121.  
  122. # The following setting only takes effect if 'domain logons' is set
  123. # It specifies the location of a user's home directory (from the client
  124. # point of view)
  125. ;   logon drive = H:
  126. #   logon home = \\%N\%U
  127.  
  128. # The following setting only takes effect if 'domain logons' is set
  129. # It specifies the script to run during logon. The script must be stored
  130. # in the [netlogon] share
  131. # NOTE: Must be store in 'DOS' file format convention
  132. ;   logon script = logon.cmd
  133.  
  134. # This allows Unix users to be created on the domain controller via the SAMR
  135. # RPC pipe.  The example command creates a user account with a disabled Unix
  136. # password; please adapt to your needs
  137. ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
  138.  
  139. # This allows machine accounts to be created on the domain controller via the
  140. # SAMR RPC pipe.  
  141. # The following assumes a "machines" group exists on the system
  142. ; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
  143.  
  144. # This allows Unix groups to be created on the domain controller via the SAMR
  145. # RPC pipe.  
  146. ; add group script = /usr/sbin/addgroup --force-badname %g
  147.  
  148. ########## Printing ##########
  149.  
  150. # If you want to automatically load your printer list rather
  151. # than setting them up individually then you'll need this
  152. #   load printers = yes
  153.  
  154. # lpr(ng) printing. You may wish to override the location of the
  155. # printcap file
  156. ;   printing = bsd
  157. ;   printcap name = /etc/printcap
  158.  
  159. # CUPS printing.  See also the cupsaddsmb(8) manpage in the
  160. # cupsys-client package.
  161. ; printing = cups
  162. ;   printcap name = cups
  163.  
  164. ############ Misc ############
  165.  
  166. # Using the following line enables you to customise your configuration
  167. # on a per machine basis. The %m gets replaced with the netbios name
  168. # of the machine that is connecting
  169. ;   include = /home/samba/etc/smb.conf.%m
  170.  
  171. # Most people will find that this option gives better performance.
  172. # See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
  173. # for details
  174. # You may want to add the following on a Linux system:
  175. #         SO_RCVBUF=8192 SO_SNDBUF=8192
  176. #   socket options = TCP_NODELAY
  177.  
  178. # The following parameter is useful only if you have the linpopup package
  179. # installed. The samba maintainer and the linpopup maintainer are
  180. # working to ease installation and configuration of linpopup and samba.
  181. ;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
  182.  
  183. # Domain Master specifies Samba to be the Domain Master Browser. If this
  184. # machine will be configured as a BDC (a secondary logon server), you
  185. # must set this to 'no'; otherwise, the default behavior is recommended.
  186. #   domain master = auto
  187.  
  188. # Some defaults for winbind (make sure you're not using the ranges
  189. # for something else.)
  190. ;   idmap uid = 10000-20000
  191. ;   idmap gid = 10000-20000
  192. ;   template shell = /bin/bash
  193.  
  194. # The following was the default behaviour in sarge,
  195. # but samba upstream reverted the default because it might induce
  196. # performance issues in large organizations.
  197. # See Debian bug #368251 for some of the consequences of *not*
  198. # having this setting and smb.conf(5) for details.
  199. ;   winbind enum groups = yes
  200. ;   winbind enum users = yes
  201.  
  202. # Setup usershare options to enable non-root users to share folders
  203. # with the net usershare command.
  204.  
  205. # Maximum number of usershare. 0 (default) means that usershare is disabled.
  206. ; usershare max shares = 100
  207.  
  208. # Allow users who've been granted usershare privileges to create
  209. # public shares, not just authenticated ones
  210. usershare allow guests = yes
  211. security = share
  212. ; guest ok = no
  213. ; guest account = nobody
  214.  
  215. #======================= Share Definitions =======================
  216.  
  217. # Un-comment the following (and tweak the other settings below to suit)
  218. # to enable the default home directory shares. This will share each
  219. # user's home director as \\server\username
  220. ;[homes]
  221. ;   comment = Home Directories
  222. ;   browseable = no
  223.  
  224. # By default, the home directories are exported read-only. Change the
  225. # next parameter to 'no' if you want to be able to write to them.
  226. ;   read only = yes
  227.  
  228. # File creation mask is set to 0700 for security reasons. If you want to
  229. # create files with group=rw permissions, set next parameter to 0775.
  230. ;   create mask = 0700
  231.  
  232. # Directory creation mask is set to 0700 for security reasons. If you want to
  233. # create dirs. with group=rw permissions, set next parameter to 0775.
  234. ;   directory mask = 0700
  235.  
  236. # By default, \\server\username shares can be connected to by anyone
  237. # with access to the samba server. Un-comment the following parameter
  238. # to make sure that only "username" can connect to \\server\username
  239. # The following parameter makes sure that only "username" can connect
  240. #
  241. # This might need tweaking when using external authentication schemes
  242. ;   valid users = %S
  243.  

Osea lo que necesito es que aparezcan los 3 equipos en red
62  Sistemas Operativos / GNU/Linux / reemplazar bluetooth-applet por blueman-applet en: 10 Febrero 2012, 11:55 am
como no pude conectar via bluetooth mi celular a la pc con la aplicacion por defecto de ubuntu tuve que instalar el blueman, ahora me gustaria saber si puedo reemplazar el servicio bluetooth-applet por blueman-applet.

osea se que tendria que poner en inicio el blueman, pero lo que no se es como desactivar o deshabilitar el bluetooth-applet.

para no tener los 2 abiertos al cuete.
63  Sistemas Operativos / GNU/Linux / VMWare Player 4.0.1 no guarda PCs virtuales en libreria(ubuntu 11.10) en: 28 Enero 2012, 02:30 am
como dice el titulo, desde siempre que uso maquinas virtuales uso VMWare bajo Windows, ahora estoy en ubuntu y instale VMWare Player agregue las pcs virtuales que ya tenia desde antes reconfigure todo adaptándolo a ubuntu, y use la pc virtual, al terminar suspendí y cerré, al rato tuve que usar la maquina virtual de nuevo e inicie VMWare y vi que no había ninguna maquina Virtual en la librería del VMWare, así un par de veces hasta que pensé que podría llegar a ser una cuestión de permisos para leer algún archivo de configuración, así que edite el .desktop del VMWare y le ante puse [gksudo vmplayer], pero eso tampoco ayudo, y ya no se que mas tocar.
64  Sistemas Operativos / GNU/Linux / ubuntu 11.10 se me cuelga. en: 28 Enero 2012, 02:16 am
desde el 31/12/11 vengo usando ubuntu 11.10, antes hice un periodo de prueba de compatibilidad desde el 31/12/11 hasta 22/01/12 cuando vi que todo funcionaba correctamente, formatie Windows / ubuntu(que se instala dentro de windows), re-particione el disco para la partición swap e instale ubuntu 11.10 como sistema único. hasta ahí todo bien, el otro día viendo una película In time(2011)[.mkv] con el SMPlayer aproximadamente a los 30 minutos de reproducción la pc se colgó, onda que tuve que mantener apretado el botón OFF para poder reiniciar el sistema, en ese entonces no le di mucha importancia, pudo ser un error aislado, reinicie y termine de ver la película sin problemas. Ayer estaba viendo House (.avi) tambien aproximadamente a los 30min se colgó  como antes, reinicie y termine de ver House y después vi Touch sin problemas. y para rematar, yo siempre dejo la pc prendida, nunca se apaga y hoy cuando me desperté prendo y el monitor , moví el mouse y la pc no respondía, estaba colgada otra vez. estoy nunca me había pasado antes el periodo de prueba que hice desde 31/12 hasta el 22/01. no se por donde investigar

Mi PC:
Citar
Micro: AMD Phenom II X4 945
Mother: ASUS M4N78 pro
RAM: 4GB Kingston DDR2 800 Mhz
Video: NVIDIA GeForce GTS 250 1GB
HDD:  500 GB SATA II
particionado:  2GB(swap), 78GB(Ubuntu 11.10 x64), 386GB(Musica, series, pelis, etc...)
65  Sistemas Operativos / GNU/Linux / Falló al descargar información del repositorio(ubuntu 11.10) en: 19 Enero 2012, 17:14 pm
hoy cuando me desperté vi un icono de Atencion en el systray de ubuntu, le di click derecho y decia que habia un error al actualizar y ........ que compruebe las actualizaciones y por demas, cuando le di click a comprobar actualizaciones, empezo a descargar pero al toque tiro este error:


Citar
W:GPG error: http://ppa.launchpad.net jaunty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0F678A01569113AE, W:GPG error: http://ppa.launchpad.net oneiric Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0F678A01569113AE, W:Failed to fetch http://ppa.launchpad.net/mozillateam/firefox-stable/ubuntu/dists/oneiric/main/source/Sources  404  Not Found
, W:Failed to fetch http://ppa.launchpad.net/mozillateam/firefox-stable/ubuntu/dists/oneiric/main/binary-amd64/Packages  404  Not Found


para ser sincero todavia no le tome bien la mano a ubuntu, y estoy perdido, se que a los repositorios puedo acceder desde el synaptyc, pero ya veo que voy a meter la pata, asi que antes de pregunto ¿como puedo arreglar esto?

osea dice que me fije la conexión a internet pero internet tengo.
66  Sistemas Operativos / GNU/Linux / configuracion regional en Wine (ubuntu 11.10) en: 19 Enero 2012, 02:25 am
tengo un programa hecho en  dotnet 2.0 el cual me sirve para llevar la cuenta de algo que hago y como cuando realice el programa estaba en Windows, lo hice para Windows, bue todo lindo la consulta es simple(creo), como puedo hacer para que el programa que tengo corriendo en wine 1.3.28, me muestre los valores currency(Moneda) en el formato pesos ( Argentina )  [ $ 1,00 ] en vez del formato español [ 1,00 ] ?
67  Programación / Scripting / conversion de KiB/s a KB/s (bash script) en: 4 Enero 2012, 19:21 pm
hola gente.
anteriormente en mi pc tenia Windows y para medir el transito de internet utiizaba el NetSeedMonitor, , hace poco instale ubuntu en mi pc, y busque una aplicacion para cumplir el mismo fin, encontre el indicator-sysmonitor que entre otras cosas sirve para monitorear el transito de internet, el problema es que para medir el transito de internet hay que usar un script:
Código
  1. #!/bin/bash
  2.  
  3. #settings:
  4. netspeed=true
  5. ram=true
  6. cpu=true
  7. #-------------------------------------------------------
  8.  
  9.  
  10. #---------------- initialize ---------------------------
  11. rm /tmp/.sysmon > /dev/null 2>&1
  12. dstat --net --mem --cpu --output=/tmp/.sysmon 1 1 > /dev/null 2>&1
  13.  
  14. #----------- up/down speed -----------------------------
  15. if [ $netspeed = true ]; then
  16.  
  17. upspeed=$(echo $(cat /tmp/.sysmon | tail -1 | cut -d ',' -f2)/1024 | bc)
  18.  
  19. upkbmb=$(if [ $upspeed -gt 1024 ]; then
  20. up1=$(echo $(cat /tmp/.sysmon | tail -1 | cut -d ',' -f2)/1024/1024 | bc -l)
  21. echo $up1 | head -c 4
  22. else
  23. echo $upspeed | head -c 3
  24. fi)
  25.  
  26. downspeed=$(echo $(cat /tmp/.sysmon | tail -1 | cut -d ',' -f1)/1024 | bc)
  27.  
  28. downkbmb=$(if [ $downspeed -gt 1024 ]; then
  29. down1=$(echo $(cat /tmp/.sysmon | tail -1 | cut -d ',' -f1)/1024/1024 | bc -l)
  30. echo $down1 | head -c 4
  31. else
  32. echo $downspeed | head -c 3
  33. fi)
  34. #---------------- up/down speed unit --------------------
  35. upunit=$(if [ $upspeed -gt 1024 ]; then echo "MiB/s"; else echo "KiB/s"; fi)
  36. downunit=$(if [ $downspeed -gt 1024 ]; then echo "MiB/s"; else echo "KiB/s"; fi)
  37.  
  38. fi
  39.  
  40.  
  41.  
  42. #------------------- CPU % used -------------------------
  43. if [ $cpu = true ]; then
  44.  
  45. cpufree=$(cat /tmp/.sysmon | tail -1 | cut -d ',' -f9)
  46. cpuused=$(echo 100-$cpufree | bc | sed -e 's/\..*//')
  47.  
  48. fi
  49.  
  50.  
  51.  
  52. #------------------- RAM % used --------------------------
  53. if [ $ram = true ]; then
  54.  
  55. memused=$(free -m | grep buffers/cache | tr -s ' ' | cut -d' ' -f 3)
  56. memfree=$(free -m | grep buffers/cache | tr -s ' ' | cut -d' ' -f 4)
  57. memtotal=$(echo $memused+$memfree | bc -l)
  58.  
  59. memusedpercent=$(echo 100-100*$memfree/$memtotal | bc)
  60.  
  61. fi
  62.  
  63.  
  64. #------------------ The Indicator Sysmonitor actual output -
  65. echo $(if [ $ram = true ]; then echo Mem: $memusedpercent% \|; fi) $(if [ $cpu = true ]; then echo CPU: $cpuused% \|; fi) $(if [ $netspeed = true ]; then echo &#8593; $upkbmb $upunit  &#8595; $downkbmb $downunit; fi)
  66.  

El tema es que expresa los valores en KiB/s y lo quiero pasar a KB/s, estuve buscando por internet y la verdad es que no me sale la matematica para pasarlo a KB/s.
68  Sistemas Operativos / GNU/Linux / impedir bloqueo de pantalla al reproducir video (Solucionado) en: 3 Enero 2012, 19:36 pm
hola gente, estoy en ubuntu 11.10, tengo configurado que se apague el monitor: 30 minutos y bloquear pantalla después de: que la pantalla se apague.
hasta ahí todo bien, pero la cuestión es cuando estoy viendo alguna serie o película , cumplido el tiempo de inactividad la pantalla se empieza a bloquear, cosa que no tendría que suceder si estoy reproduciendo un vídeo. va en windows al menos eso no me sucedía. Para reproducir vídeo utilizo el gnome-mplayer 1.0.4. alguien sabe si se puede configurar algo como para que mientras se este reproduciendo un vídeo no cuente como tiempo inactivo?

PD: el vlc no me gusta, uso el gnome-player por que me gusta como dibuja los subtítulos en pantalla.
69  Sistemas Operativos / GNU/Linux / quitar unity (ubuntu 11.10) en: 26 Diciembre 2011, 04:36 am
hola gente, el otro dia se me ocurrio cambiar el OS en mi pc, osea de Windows 7 pasar a ubuntu 11.10. pero para no formatear al cuete, 1ºiuse la opcion de instalar enwindows, asi si sugia algun problema no perdia windows y podia volver a atras facilmente, bue, instale ubuntu, y un par de programas que usualmente uso, , uy note un error que trae el unity, o no se que, en fin quise quitar el unity y recorri tado youtube en busqueda de algun video explicando el proceso para quitarlo, pero ningun me sirvio 100% hacia lo que hacian en el video pero siempre terminaba arruinando el OS, 4 veces reinstale ubuntu, me di por vencido ya.

hay alguna forma de volver a la distribucion de escritorio que estaba en ubuntu 10.10 o 10.04 vah la distribucion normal con 2 paneles en pantalla(taskbar abajo y sistema arriba) ?
70  Programación / Programación C/C++ / consulta sobre Funciones de manejo de errores [c++] en: 7 Octubre 2011, 22:08 pm
hola gente, estoy realizando una aplicación, la cual me esta dando dolores de cabeza, osea en esta aplicación estoy usando MCISendString para manejar un stream web de una radio.
el problema es que normalmente la aplicación no crashea, pero aveces si y la verdad que no se que es lo que puede estar causando este crash, las veces que Debuguie no tuve errores, osea la aplicación puede llegar a funcionar 10 horas sin errores pero también creashearse al iniciar, y la verdad estoy re perdido.

Antes cuando programaba en VB6, tenia la forma de saber que numero de linea en X funcion que causaba el error, así podía fixearlo

pero ahora estoy programando en C++, VC++6.0 (WinApi) y la verdad estoy re perdido, osea yo creo que la causal del error puede ser el streamming , pero por ahí el error provenga de otro lado, y yo lo este pasando por alto.

Googleando un poco encontré en msdn Error Handling Functions pero la verdad es que no se bien como usar la mayor parte de las funciones que estan ahi o si alguna de esas funciones me servirán para lo que estoy tratando de averiguar, el origen de lo que cause el Crash de la aplicaron, o si alguien  sabe como averiguar esto, me serviría muchísimo...
Páginas: 1 2 3 4 5 6 [7] 8 9 10 11
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines