Sólo quiero resumirte
Sí, es que queria postear por lo menos una vez al día pero siempre o no me da tiempo o me da hueva, lo mas chafa es que todo se me olvida, y pues no recuerdo lo que paso ayer.
Si por ejemplo no me acuerdo por que el no puse en el post pasado acerca de que eche a andar el vncserver en Ubuntu Dapper, no es dificil, pero hay que editar algunas cosas.
Bueno no voy a entrar en muchos detalles, sólo les dire que hize y eso, aunque no recuerdo mucho ¬¬
La idea era que queria conectarme desde equispé a GNU/Linux mediante vnc en mi LAN, entonces en Ubuntu Dapper ya viene el vncserver instalado, si no es así pues:
$sudo apt-get install vncsever
Bueno, si no estaba instalado pues ya lo esta, por lo que hay que correr el programa, pero antes editar unos archivos:
editamos el archivo /etc/vnc.conf el mio quedo así:
# /etc/vnc.conf written by Marcus Brinkmann. This file is in the Public Domain.
#
# This is the configuration file for the vncserver package.
# It is perl syntax, but only variable assignment is allowed.
# A semicolon will be added if missing.
# Every value has suitable defaults, so you probably don't need any file.
#
# This file will be sourced by `vncserver' and `vncpasswd'.
# After this file, $(HOME)/.vncrc will be sourced, so values can be
# overwritten on a per-user basis. If you want to reactivate the default
# value there, you have to specify an empty value. For example, $fontPath
# will set to the default value after
#
# $fontPath = "/foo";
# $fontPath = "";
#
# If you are missing something, please let me know.
# Marcus.Brinkmann@ruhr-uni-bochum.de
# System configuration
# --------------------
#
# This section contains entries that should be true for all users.
# $vncClasses should be the path to the java classes of server.
# $vncClasses = "/usr/share/vncserver";
# $XFConfigPath can be set to the global XF86Config file. This will be
# parsed to gain default values for $fontPath and $colorPath.
# If you want to disable this feature, point it to an
# invalid file, "/foo" for example.
# $XFConfigPath = "/etc/X11/XF86Config";
# $fontPath should be a comma seperated list of fonts to be added to the font
# path. If not specified, and $XFConfigPath is valid, vncserver
# will read the $fontPath from there. If both are not set, the
# default will apply.
# Example: $fontPath = "tcp/localhost:7100"; # would make vnc to use xfs.
# Example: $fontPath = "";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/misc/,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/Type1/,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/Speedo/,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/75dpi/,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/100dpi/,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/freefont/,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/sharefont/";
# I don't know what the default is, though.
# $colorPath should be the RGB file to be used by X. This can also be taken from
# XF86Config file if specified by $XFConfigPath
# $colorPath = "/usr/X11R6/lib/X11/rgb";
# User configuration
# ------------------
#
# This section contains entries that may change from user to user.
# $vncUserDir contains the filename for the log files directory of Xvnc
# (the server) and the viewers that are connected to it.
# $vncUserDir = "$ENV{HOME}/.vnc";
# $vncPasswdFile contains the filename of the password file for Xvnc.
# $vncPasswdFile = $vncUserDir . "/passwd";
# $vncStartup points to a script that will be started at the very beginning.
$vncStartup = "$ENV{HOME}/.vnc/xstartup";
# $xauthorityFile should be the path to the authority file that should be used
# by your vnc X server.
$xauthorityFile = "$ENV{HOME}/.Xauthority";
# $defaultDesktopName should be set to the default name of the desktop.
# This can be changed at the command line with -name.
# $defaultDesktopName = "X";
# $geometry sets framebuffer width & height. Default will be calculated if
# server is started from within a running X servers. Can be changed at
# the commandline (-geometry). A fixed default will be used if
# vncserver is not invoked in a running X session.
# Example: $geometry ="640x480";
$geometry = "1024x768";
# $depth sets the framebuffer color depth. Must be between 8 and 32.
# $pixelformat sets the default pixelformat.
# The default will be calculated if none of both is specified
# and when vncserver is called from within a running X servers.
# Can be changed at the command line with option -depth.
# A fixed default value will be used if vncserver is not
# invoked in a running X session.
# Example: $depth = "16";
# $pixelformat = "rgb565";
#$pixelformat = "rgb565";
# $getDefaultFrom sets the display from which you can query the default of
# the above three options, if you don't want to start vncserver
# from within a running X server. It will be added to the call
# of xdpyinfo.
# It is useful to get the default from the X server you will
# run xvncviewer in.
# Example: $getDefaultFrom = "-display localhost:0"
# $rfbwait sets the maximum time in msec to wait for vnc client viewer.
# $rfbwait = "120000";
Ya despues editamos o creamos si no existe el archivo ~/.vnc/xstartup y ponemos
#!/bin/sh
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
Y le ponemos los permisos de ejecición:
$ chmod 755 ~/.vnc/xstartup
Ahora debemos de ejecutar el vncserver
$ vncserver
New 'X' desktop is paren-laptop:1
Starting applications specified in /home/paren/.vnc/xstartup
Log file is /home/paren/.vnc/paren-laptop:1.log
Ahi nos dice que levanto el vncserver, en el :1 no sé del tema pero sospecho que el :0 es de la sesion grafica normal.
Ahora daremos un password al vncserver, para eso tecleamos
$ vncpasswd
Password:
Verify:
Y en equispé pues con el vncviewer ponemos la ip de la pc y el puerto a conectar, hay que especificar el puerto por que el vncviewer por default se conecta al puerto 5900, pero como nuestro vncserver inicio en el numero :1 entonces le toca 5901, si ejecutamos de nuevo vncserver se pone en el numero :2 entonces el puerto seria 5902 y asi sucesivamente.
Damos connect y nos pide el password que ya habiamos definido.
Y damos click en Log On, y si todo salio bien pues veremos:
Click en la imagen para agrandar
Bueno pues ahi les pregunta si desean usar la configuracion del teclado segun la configuracion de X o de Gnome, recomiendo seleccionar Gnome ¬¬
Ya volviendo a la vida normal no hecho mas cosas, sigo leyendo el libro de Un mundo feliz, y otra de mis metas este año será leer un libro por mes, y en diciembre leer 100 años de soledad de Gabriel García Marquez.
En el próximo post, les dire como hacer que en Ubuntu, este en modo de escucha de conexiones del vnc y mandarle la conexión en reversa desde equispé, y al revez también, es decir que equispé este a la escucha y el Ubuntu mande la conexión en reversa.
La idea es que puedas conectarte a tus equipos de esa manera no importando el S.O., otra es con eso de la conexión en reversa, ayudarle a tus amigos con el soporte tecnico, ahh pero para eso se necesita internet, y ahi pues hay que meterse en cosas de ip publica, ip privada, si estas detras de un router y/o un firewall, un proxy, y que puertos abrir, bueno pues eso ya es para que se animen a investigar y eso.
Para eso del vnc me base en:
VNC Server on Ubuntu client on windows
VNC Server has not xstartup file
Saludos…


chido, me faltaban por habilitar algunas variables en el archivo de configuracion…
eso de leer esta bien, yo soy medio guevas pa eso, mas ultimamente, pero haber si empiezo aunque sea con el quijote, jjajaa, si como no…
cool, calare eso, a ver como va en fedora
)
Por cierto, la parte del código se ve muy chica la letra :S
(alguien se tiene que quejar, no?
Alex: a pues si, por ahi en las ligas donde me base, el que puso su archivo, habilito algunas otras cosas, yo no por que, no se veia nada :s, o se veia muy feo, pero pues esa me sirvio, y pues nunca he leido el quijote pero empezar con ese no creo que sea muy buena idea :s
Zoftweb: Si pues, es que no encontre otro tema que hiciera que cupiera bien la letra y que se mirara grande, y bueno pues ya sabes [ctrl] + [+]
[...] estos días probé numerosos tutoriales para configurar VNC, y todos me fallaron. En un momento llegué a tener una sesión levantada pero [...]
Pingback por Mis dolores de cabeza con Linux « Geekotic | 7 Junio, 2007 |
[...] estos días probé numerosos tutoriales para configurar VNC, y todos me fallaron. En un momento llegué a tener una sesión levantada pero [...]
Pingback por Geekotic · Mis dolores de cabeza con Linux | 3 Marzo, 2008 |