sábado, 23 de enero de 2016

debian 8.0.2 instalar teamviewer 11 64bits



gia basica
https://www.teamviewer.com/es/help/363-How-do-I-install-TeamViewer-on-my-Linux-distribution.aspx#other

apoyo
http://www.ubuntu-es.org/node/179581#.VqROdPmUeGQ

como root funciono asi

dpkg --add-architecture i386
   50  sudo apt-get update
   51  apt-get update
   52  df -h
   53  apt-cdrom
   54  add - Add a CDROM
   55  uname -a
   56  apt get install update
   57  apt-get install update
   58  ls -ltr
   59  dpkg -i teamviewer_11.0.53191_amd64.deb
   60  apt-get install -f
   61  ls -ltr
   62  dpkg -i teamviewer_11.0.53191_i386.deb
   63  apt-get install -f


lunes, 21 de septiembre de 2015

miércoles, 1 de julio de 2015

linux mint encendido, apagado, velocidad de acceso en base datos Disco de estado solido



junio de 2015

acabo de comprar un disco de estado solido con capacidad de 120 gb
la laptop donde la voy a probar es una laptop
marca emachines
memoria: 2gb
procesador: 1
sistema operativo: linux mint 17.1
imagen de maquina que se esta probando con disco estado solido



No Ejecucionwindows 7 ENTERPRISE 2 SOCKET FISICOS QUAD CORE, 8 GB en RAMlinux mint 17.1 escritorio, 1 socket, 2 GB en RAM
1-Encendido52 segundos30 segundos
2-apagado37 segundos4 segundos
3--
4--


VIDEO APAGADO WINDOWS 7

video


VIDEO APAGADO LINUX MINT

video


la consulta fue sobre la tabla de mysql base de datos information_schema tabla COLUMNS


No EjecuciónTIEMPO DISCO CONVENCIONALTIEMPO DISCO ESTADO SOLIDOPORCENTAJE DE VENTAJA SSD
11.49900.11901259.66 %
20.23880.0675353.77 %
3 0.1824 0.0612 298.03 %

RESULTADO DESPUES DE EJECUTAR LA CONSULTA EN DISCO 7000  rpm





RESULTADO DESPUES DE EJECUTAR LA CONSULTA EN DISCO DE ESTADO SOLIDO




domingo, 12 de abril de 2015

mas resolucion DE PANTALLA en LINUXMINT



http://medianeurona.blogspot.mx/2014/08/anadir-una-nueva-resolucion-de-pantalla.html

como instalar VNC-SERVER en linuxMint


URL ORIGINAL
http://www.namhuy.net/3106/install-vnc-server-ubuntu-14-04.html


Nam Huy Linux

Geeky Open Source Linux Tutorials

    Home
    About
        Copyright
        Privacy Policy
        Terms Of Service
        stats
    Archives
    Contact

How to install VNC Server on Ubuntu 14.04

05/07/2014 by namhuy 51 Comments

I have shown you How to install VNC Server on CentOS 6, today I’m going to show you How to install VNC Server on Ubuntu 14.04 since many people like and use Ubuntu these days. I mostly spend time with Centos but not with Ubuntu. I spent quite sometimes to make VNC Server to work on Ubuntu 14.04 because gnome doesn’t play nice with VNC Server.
Update and Upgrade Ubuntu 14.04

To make sure the installation of VNC Server go smoothly, check your Ubuntu 14.04 is up to date.
$ su -
1

$ su -

# apt-get update; apt-get dist-upgrade -y --force-yes
1

# apt-get update; apt-get dist-upgrade -y --force-yes

Install GUI on Ubuntu 14.04 Server

If you have Ubuntu 14.04 LTS (Trusty Tahr) Desktop version, you can skip gnome-core and xubuntu-desktop packages, you will only need xfce4. Well we don’t need a GUI on Ubuntu 14.04 over ssh, but for VNC purpose we are going to install a GUI to work with Ubuntu comfortably. There are two options here for you to choose, either gnome-core with xfce4, or xubuntu-desktop with xfce4. I have tried to make gnome to work over VNC but no luck so far. So make your pick.
# apt-get install gnome-core xfce4 firefox nano -y --force-yes
1

# apt-get install gnome-core xfce4 firefox nano -y --force-yes

Or
# apt-get install xubuntu-desktop xfce4 firefox nano -y --force-yes
1

# apt-get install xubuntu-desktop xfce4 firefox nano -y --force-yes

Install VNC Server on Ubuntu 14.04

It’s quite simple to install VNC server on Ubuntu 14.04, but it’s not that simple to configure VNC server :)
# apt-get install vnc4server -y --force-yes
1

# apt-get install vnc4server -y --force-yes

Configure VNC Server to work on Ubuntu 14.04

You can remotely control your Ubuntu 14.04 system via VNC with any user that you want. Some people would recommend you to install and run login to VNC server as root user to avoid sudo escalation privileges which is not a good security practice at all. In this tutorial I will add new user called vncuser you can use any user as you want.
# adduser vncuser
1

# adduser vncuser

set vncuser password
# passwd vncuser
1

# passwd vncuser

Now switch to the user you want to login to VNC server with. We are going to modify xstartup file to start xfce4 session whenever VNC server is started.
# su - vncuser
1

# su - vncuser

Start VNC server with that user for VNC server to create some necessary files first time.
$ vncserver
1

$ vncserver

VNC server will ask you for a password you want to use to login to VNC server, this password does not necessary to be the same as regular user password. This is the sample output

vncuser@namhuy:~$ vncserver You will require a password to access your desktops. Password: Verify: xauth: file /home/vncuser/.Xauthority does not exist New 'namhuy:1 (vncuser)' desktop is namhuy:1 Creating default startup script /home/vncuser/.vnc/xstartup Starting applications specified in /home/vncuser/.vnc/xstartup Log file is /home/vncuser/.vnc/namhuy:1.log
1
2
3
4
5
6
7
8
9
10
11

vncuser@namhuy:~$ vncserver
You will require a password to access your desktops.
Password:
Verify:
xauth:  file /home/vncuser/.Xauthority does not exist

New 'namhuy:1 (vncuser)' desktop is namhuy:1

Creating default startup script /home/vncuser/.vnc/xstartup
Starting applications specified in /home/vncuser/.vnc/xstartup
Log file is /home/vncuser/.vnc/namhuy:1.log

After VNC Server started and created some of it’s files. We are now can turn it off to modify the xstartup file (startup script) to make it start with xfce4 instead of gnome which doesn’t work right with VNC Server on Ubuntu 14.04.

To kill VNC Server session
$ vncserver -kill :1
1

$ vncserver -kill :1

To modify xstartup file (these commands will empty xstartup file, if you installed wine before vnc server and you want to keep the old content of xstartup file, skip this line $ > .vnc/xstartup ) thanks Hamid
$ cd ~
1

$ cd ~

$ > .vnc/xstartup
1

$ > .vnc/xstartup

$ nano .vnc/xstartup
1

$ nano .vnc/xstartup

With the content

#!/bin/sh unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS startxfce4 & [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic &
1
2
3
4
5
6
7
8
9

#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &

Save xstartup when you are done. The next step is to create VNC Server statup script. You must do this with root user
$ su -
1

$ su -

# nano /etc/init.d/vncserver
1

# nano /etc/init.d/vncserver

With the content

#!/bin/bash ### BEGIN INIT INFO # Provides: tightvncserver # Required-Start: $syslog # Required-Stop: $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: vnc server # Description: http://www.namhuy.net # ### END INIT INFO unset VNCSERVERARGS VNCSERVERS="" [ -f /etc/vncserver/vncservers.conf ] && . /etc/vncserver/vncservers.conf prog=$"VNC server" start() { . /lib/lsb/init-functions REQ_USER=$2 echo -n $"Starting $prog: " ulimit -S -c 0 >/dev/null 2>&1 RETVAL=0 for display in ${VNCSERVERS} do export USER="${display##*:}" if test -z "${REQ_USER}" -o "${REQ_USER}" == ${USER} ; then echo -n "${display} " unset BASH_ENV ENV DISP="${display%%:*}" export VNCUSERARGS="${VNCSERVERARGS[${DISP}]}" su ${USER} -c "cd ~${USER} && [ -f .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}" fi done } stop() { . /lib/lsb/init-functions REQ_USER=$2 echo -n $"Shutting down VNCServer: " for display in ${VNCSERVERS} do export USER="${display##*:}" if test -z "${REQ_USER}" -o "${REQ_USER}" == ${USER} ; then echo -n "${display} " unset BASH_ENV ENV export USER="${display##*:}" su ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1 fi done echo -e "\n" echo "VNCServer Stopped" } case "$1" in start) start $@ ;; stop) stop $@ ;; restart|reload) stop $@ sleep 3 start $@ ;; condrestart) if [ -f /var/lock/subsys/vncserver ]; then stop $@ sleep 3 start $@ fi ;; status) status Xvnc ;; *) echo $"Usage: $0 {start|stop|restart|condrestart|status}" exit 1 esac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77

#!/bin/bash
### BEGIN INIT INFO
# Provides:          tightvncserver
# Required-Start:    $syslog
# Required-Stop:     $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: vnc server
# Description: http://www.namhuy.net
#
### END INIT INFO

unset VNCSERVERARGS
VNCSERVERS=""
[ -f /etc/vncserver/vncservers.conf ] && . /etc/vncserver/vncservers.conf
prog=$"VNC server"
start() {
. /lib/lsb/init-functions
REQ_USER=$2
echo -n $"Starting $prog: "
ulimit -S -c 0 >/dev/null 2>&1
RETVAL=0
for display in ${VNCSERVERS}
do
export USER="${display##*:}"
if test -z "${REQ_USER}" -o "${REQ_USER}" == ${USER} ; then
echo -n "${display} "
unset BASH_ENV ENV
DISP="${display%%:*}"
export VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
su ${USER} -c "cd ~${USER} && [ -f .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
fi
done
}
stop() {
. /lib/lsb/init-functions
REQ_USER=$2
echo -n $"Shutting down VNCServer: "
for display in ${VNCSERVERS}
do
export USER="${display##*:}"
if test -z "${REQ_USER}" -o "${REQ_USER}" == ${USER} ; then
echo -n "${display} "
unset BASH_ENV ENV
export USER="${display##*:}"
su ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
fi
done
echo -e "\n"
echo "VNCServer Stopped"
}
case "$1" in
start)
start $@
;;
stop)
stop $@
;;
restart|reload)
stop $@
sleep 3
start $@
;;
condrestart)
if [ -f /var/lock/subsys/vncserver ]; then
stop $@
sleep 3
start $@
fi
;;
status)
status Xvnc
;;
*)
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
exit 1
esac

You must make vncserver startup script executable
# chmod +x /etc/init.d/vncserver
1

# chmod +x /etc/init.d/vncserver

Save the file. We are almost there, now we are going to create VNC Server configuration file in /etc/ directory
# mkdir -p /etc/vncserver
1

# mkdir -p /etc/vncserver

# nano /etc/vncserver/vncservers.conf
1

# nano /etc/vncserver/vncservers.conf

Copy the content to vncservers.conf file. The first line is for VNC ports and VNC users. number “1” is the VNC port, it’s port “1” or “5901”, you can add or change the port to “2” or “5902” and so on. If you want more users to connect to your VNC Server, you must include those users here. The second line VNCSERVERARGS is to set VNC screen size.

VNCSERVERS="1:vncuser" VNCSERVERARGS[1]="-geometry 1024x768"
1
2

VNCSERVERS="1:vncuser"
VNCSERVERARGS[1]="-geometry 1024x768"

The final step is to make VNC Server starts on boot
# update-rc.d vncserver defaults 99
1

# update-rc.d vncserver defaults 99

and the output, you can ignore missing LSB information warning.

update-rc.d: warning: /etc/init.d/vncserver missing LSB information update-rc.d: see Adding system startup for /etc/init.d/vncserver ... /etc/rc0.d/K99vncserver -> ../init.d/vncserver /etc/rc1.d/K99vncserver -> ../init.d/vncserver /etc/rc6.d/K99vncserver -> ../init.d/vncserver /etc/rc2.d/S99vncserver -> ../init.d/vncserver /etc/rc3.d/S99vncserver -> ../init.d/vncserver /etc/rc4.d/S99vncserver -> ../init.d/vncserver /etc/rc5.d/S99vncserver -> ../init.d/vncserver
1
2
3
4
5
6
7
8
9
10

update-rc.d: warning: /etc/init.d/vncserver missing LSB information
update-rc.d: see
Adding system startup for /etc/init.d/vncserver ...
   /etc/rc0.d/K99vncserver -> ../init.d/vncserver
   /etc/rc1.d/K99vncserver -> ../init.d/vncserver
   /etc/rc6.d/K99vncserver -> ../init.d/vncserver
   /etc/rc2.d/S99vncserver -> ../init.d/vncserver
   /etc/rc3.d/S99vncserver -> ../init.d/vncserver
   /etc/rc4.d/S99vncserver -> ../init.d/vncserver
   /etc/rc5.d/S99vncserver -> ../init.d/vncserver

Reboot your Ubutnu 14.04 system and test out your new VNC Server on Ubuntu 14.04
# reboot
1

# reboot

You can login to your VNC Server with IP address or hostname/domain name by using RealVCN viewer or TightVNC viewer. You will be asked for your user VNC’s password.
tightvnc_connection_namhuy

When your VNC session starts the first time, Xfce4’s panel will ask you to choose “Use default config” or “One empty panel”. Choose/click on “Use default config”
xfce_first_start_panel

Now you should have a working VNC Server on Ubuntu 14.04.
vnc_server_ubuntu_14_04_xfce4_xubuntu_desktop_namhuy

VNC Server with xubuntu_desktop

xubuntu-desktop with xfce4
vnc_server_ubuntu_14_04_xfce4_gnome_core_namhuy

VNC Server with xfce4 and gnome_core

gnome-core with xfce4
Share It:

    Share on Facebook (Opens in new window)
    Click to share on Twitter (Opens in new window)
    Click to share on Google+ (Opens in new window)
    Click to share on Reddit (Opens in new window)
    Click to share on StumbleUpon (Opens in new window)
    1Click to share on LinkedIn (Opens in new window)1
    Click to share on Tumblr (Opens in new window)
    Click to share on Pinterest (Opens in new window)
    Click to share on Pocket (Opens in new window)
    Click to email this to a friend (Opens in new window)
    Click to print (Opens in new window)

Related
How to install VNC Server on Debian 7
How to install VNC Server on Debian 7

In "Debian"
How to upgrade from Ubuntu 12.04 LTS to Ubuntu 14.04 LTS
How to upgrade from Ubuntu 12.04 LTS to Ubuntu 14.04 LTS

In "Ubuntu"
How to install GUI on Ubuntu and Linux Mint

You have Ubuntu Server which does not come with a GUI (Graphical User Interface) or desktop environment, you have slow performance problem with your current GUI? Or you simply want to change your current desktop environment to a diffrent one, I will show you how to install GUI on Ubuntu,…

In "Linux Mint"

Filed Under: Server, Ubuntu Tagged With: gnome-core, VNC Server, xubuntu-desktop
Comments

    Anders Sjögren says

    05/17/2014 at 12:55 am

    Thanks for a very well written tutorial. I have spent quite some time now trying to make VNC to an updated Ubuntu 14.04 machine work, but to no avail. Your post is recent and it seems you know very well what you are doing. However, even though I follow your steps exactly, I do not get VNC to work. My client is currently the tightVNC viewer in Windows.

    What I want to do is to use a separate frame buffer (desktop) and that is why I want tightVNC. x11vnc works fine but gives me just a copy of the desktop being displayed on the server side.

    I think I have understood that I cannot use the standard Ubuntu desktop (do not know why), and I have read posts trying with gnome (as opposed to the ones you use above). Another well written post is http://www.havetheknowhow.com/Configure-the-server/Install-VNC.html but that also does not work for me.

    I have tried trillions of different .vnc/xstartup to no avail. I am new to this so I really just follow the posts I read for now. I haven’t found anywhere to read up on this configuration file; what you can and cannot do etc.

    Most xstartup settings just give me a grey background and the mouse cursor. If I enable the following two lines

    #x-terminal-emulator -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
    #x-window-manager &

    I get a terminal window, but I cannot write the character “s”. I wanted to try startx, but even that failed. I have no solution to that and it seems others have had similar issues.

    With the setup you propose above, I get some difference. Instead of a grey background, the background is grey hatched. I get the same result if I just have the line

    gnome-session &

    in xstartup.

    If you have any idea what I should try more I would be most grateful.
    Reply

        namhuy says

        05/17/2014 at 4:55 am

        First of, are you trying to use gnome or xfce. As far as I can tell from http://askubuntu.com/questions/361617/does-gnome-fallback-desktop-require-accelerated-graphics-in-13-10 newer ubuntu 13.10 – 14.04 gnome requires accelerated graphics. I had the same problem as you black screen/ grey screen if I don’t have to right xstartup file.

        Use a clean xstartup file (blank), don’t mind the default xstartup. Try to use the xstartup from the second answer from askubuntu link above if you want to use gnome (I didn’t try myself). Or simply use xfce4 instead of gnome.

        Also, what packages have you installed so far? and are you using ubuntu-desktop or ubuntu-server ?

        update: lol I finally can load up gnome w/ vncserver. I used ubuntu-desktop package, with some extra from askubuntu
        # apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
        1
       
        # apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal

        and then use this xstartup
        #!/bin/sh export XKL_XMODMAP_DISABLE=1 unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & gnome-panel & gnome-settings-daemon & metacity & nautilus & gnome-terminal &
        1
        2
        3
        4
        5
        6
        7
        8
        9
        10
        11
        12
        13
        14
        15
        16
       
        #!/bin/sh
       
        export XKL_XMODMAP_DISABLE=1
        unset SESSION_MANAGER
        unset DBUS_SESSION_BUS_ADDRESS
       
        [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
        [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
        xsetroot -solid grey
        vncconfig -iconic &
       
        gnome-panel &
        gnome-settings-daemon &
        metacity &
        nautilus &
        gnome-terminal &

        Update, even though I can load gnome, some keys on the keyboard don’t work right
        Reply

    Anders Sjögren says

    05/17/2014 at 6:32 am

    So far I have installed gnome-core, gnome-session-fallback and xfce. Haven’t tried xubuntu-desktop.

    $ ls /usr/share/xsessions/
    gnome.desktop gnome-fallback.desktop xfce.desktop gnome-fallback-compiz.desktop ubuntu.desktop

    I have Ubuntu desktop 14.04 on a powerful Lenovo machine.

    I guess accelerated graphics mean hardware accelerated; does that exclude multiple vnc desktops (frame buffers) then?

    Anyway, I replaced the xstartup with the second answer in http://askubuntu.com/questions/361617/does-gnome-fallback-desktop-require-accelerated-graphics-in-13-10 and IT FINALLY WORKS!

    Thanks a lot, namhuy, you made my day!

    (I will try some more with gnome, too, when I have the time.)
    Reply

    call says

    05/17/2014 at 11:46 am

    Hi, thanks for the great tutorial. How do I make it so that the GUI doesn’t show up if I plug a monitor into the server itself? I went with xubuntu-desktop this time, I had gnome on a Server 12.04 install before upgrading and it never showed the GUI if I plugged a monitor in, only via VNC. It’s not important, I just liked it that way.
    Reply

        namhuy says

        05/17/2014 at 12:52 pm

        as root, edit grub file
        # nano /etc/default/grub
        1
       
        # nano /etc/default/grub

        change
        GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
        1
       
        GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

        to
        GRUB_CMDLINE_LINUX_DEFAULT="text"
        1
       
        GRUB_CMDLINE_LINUX_DEFAULT="text"

        finally update grub
        # update-grub
        1
       
        # update-grub

        Reply

            call says

            05/18/2014 at 10:24 am

            Very cool. Thank you!
            Reply

    Don Romeo says

    05/25/2014 at 3:29 pm

    I just did it, so now I have both SSH and VNC access to my headless Intel NUC.

    Thank You very much for your detailed instructions. You turned a complex problem to an easy one.
    Reply

    T says

    06/02/2014 at 11:23 pm

    It seems the the user I’m adding can’t install new software. Anything I missed? I did change “vncuser” to my username.
    Reply

        namhuy says

        06/02/2014 at 11:55 pm

        you can’t install software with privileged user, you can setup vnc for root account, or install new software with sudo or become root in the terminal to install new software
        Reply

    Veronica Burgos says

    06/11/2014 at 1:59 pm

    Hello please how can i make VNC server start at boot in a normal ubuntu 14.04 install with Unity desktop. i have tried many outdated tutorials with no avail.
    Im running latest 5.2 VNC Server from realvnc.com. Thanks!
    Reply

        namhuy says

        06/11/2014 at 2:11 pm

        I don’t have realvnc license so I didn’t try with realvnc server. I use vnc4server instead, follow my instructions and you should be able to make vnc server work on Ubuntu 14.04. Another thing, I don’t think Unity will work over VNC, you properly want to install xfce4 package, and use xfce4 for VNC rather than Unity.
        Reply

    Diego Gyodo Bonesso says

    06/21/2014 at 10:53 am

    Thanks it’s work great !!!
    Reply

    Grant Millar says

    06/22/2014 at 4:54 pm

    Thanks, after numerous tries, this tutorial is fabulous!
    Reply

    hamid says

    07/04/2014 at 12:27 am

    Thanks very much with this detailed guide.
    please correct me if wrong : Just for users who want to have Wine on this, install Wine before ‘starting vnserver'; Wine is adding lines to xstartup file which should keep those lines thereafter.
    Reply

        namhuy says

        07/04/2014 at 1:46 am

        thanks for the note, I will update my post.
        Reply

    arm says

    07/07/2014 at 5:26 pm

    excellent post!

    It works just great
    Reply

    neophyte says

    07/08/2014 at 11:37 am

    It’s an excellent guide. It’s work fine.

    Thanks a lot!
    Reply

    Lam Nguyen says

    07/16/2014 at 10:22 pm

    Hey Nam Huy,

    I followed your post installing gnome-core, xfce4, vnc4server. Ran vncserver. Edited xstartup, but did not do the rest. Now when I try to connect, all I get is a terminal but not full desktop session. I tried different version of xstartup without success.

    Do you have suggestion that I should check what went wrong?

    Thanks,

    Lam
    Reply

        namhuy says

        07/17/2014 at 4:53 pm

        You may have edited xstartup file for wrong user. How many user do you have on the system? What user are you trying to use for VNC?
        Reply

            Lam Nguyen says

            07/17/2014 at 7:48 pm

            Today I found the problem. I did not kill the server before editing xstartup so changes did not take effect. Now everything is fine.

            Just so you know, I uninstalled and reinstalled things to check what are needed. All I need is just xfce4, but gnome-core and others are not needed.

            The only small problem I have now is the tab function. In linux the tab function is very useful. E.g.when you want to cd to a directory, you just need to type in a part of the directory name then tab to display the rest. when I connect to my desktop running Ubuntu from my macbook via VNC, this tab function does not work.

            Lam
            Reply

                namhuy says

                07/18/2014 at 9:55 am

                good to hear you have your vnc ser er up and running. I mainly use vnc to do some web surfing myself and its good to have some extra environment to do some developing, beside that I dont use the GUI that much from the remote system. I also noticed some of the keys dont work when I use vnc, if I remember correctly these are “e” and “d”. Different set keys dont work with different distro and/or window manager when you use vnc.

                back to your tab problem, edit xfce4-keyboard-shortcuts.xml file
                # nano ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
                1
               
                # nano ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml

                search for this line
                <property name="&lt;Super&gt;Tab" type="string" value="switch_window_key"/>
                1
               
                <property name="&lt;Super&gt;Tab" type="string" value="switch_window_key"/>

                replace the whole line with
                <property name="&lt;Super&gt;Tab" type="empty"/>
                1
               
                <property name="&lt;Super&gt;Tab" type="empty"/>

                reboot your system when you are done
                # reboot
                1
               
                # reboot

                Reply

    Lam Nguyen says

    07/18/2014 at 9:02 pm

    Thanks for suggestion. I found that there are already both lines in the file. Should I still replace the first line with the second line or just simply delete the first line?

    Lam
    Reply

        namhuy says

        07/18/2014 at 9:40 pm

        Search for
        switch_window_key
        1
       
        switch_window_key

        It should be only one line with that value (if you search w/ nano) with the exact code for xfce4 on Ubuntu and Debian
        <property name="&lt;Super&gt;Tab" type="string" value="switch_window_key"/>
        1
       
        <property name="&lt;Super&gt;Tab" type="string" value="switch_window_key"/>

        Reply

    Lam Nguyen says

    07/20/2014 at 2:05 pm

    Thanks Huy,
    Reply

    Matteo says

    07/21/2014 at 2:52 pm

    hi.
    great guide and all is working….but i’ve a little problem
    when connect to a vnc session is all ok
    But when i logout, all i obtai is a green page
    Then I cannot log again until I restart the vnc service. (using ex external ssh conection)
    I’m looking around for a solution … but sill nothing…
    May you help me?
    Thx Matteo
    Reply

    Lam Nguyen says

    07/27/2014 at 10:37 am

    I have the same problem. If I just simple close the VNC connection, things are fine. But if I logout then it won’t give me an option to log back in. Closing VNC connection does not help because next time I connect, it just give me a blank screen again with no option to login.
    Killing the VNC then restarting it fix the issue, but this is not convenient at al.
    So I am looking for a solution too.

    Lam
    Reply

    Ridgeland says

    08/14/2014 at 7:13 pm

    Thank you.
    Worked fine – the only part that slowed me was not knowing the command to launch the viewer.
    Here on my home LAN I used:
    $ vncviewer 192.168.1.115:1
    The window title says it’s TightVNC: vncuser’s X desktop (ASR_PC:1)
    I’m using Xubuntu on both PCs, not Gnome or Unity.
    Is there a GUI for the login?
    Reply

        namhuy says

        08/14/2014 at 11:22 pm

        I don’t quite understand what you are trying to say, are you trying to login to VNC server or login to your Xubuntu system?
        Reply

    Ridgeland says

    08/15/2014 at 9:10 am

    A PC running Xubuntu is the host, the VNC server. I’m logging in remotely using a PC that also is running Xubuntu. I don’t see a GUI app that asks me what remote host I want to connect to. Instead I use the command line as above. Is there a GUI I’m missing, or don’t know I have? I don’t find a GUI like the image “New TightVNC Connection” near the end of your blog.
    Reply

        namhuy says

        08/15/2014 at 11:30 am

        Oh I see, the “New TightVNC Connection” window you are seeing is tightvnc viewer client for Windows. For Linux, you can try xtightvncviewer (X viewer client for VNC)
        to install xtightvncviewer
        $ sudo apt-get update
        1
       
        $ sudo apt-get update

        $ sudo apt-get install xtightvncviewer
        1
       
        $ sudo apt-get install xtightvncviewer

        now you can connect to your vnc server with the command
        $ xtightvncviewer remotehostaddress
        1
       
        $ xtightvncviewer remotehostaddress

        or
        $ vncviewer remotehostaddress
        1
       
        $ vncviewer remotehostaddress

        you will be asked for your vnc server’s password.
        Reply

    Seranth says

    08/16/2014 at 3:14 am

    Great tutorial! Checked a bunch out and this is the only one that got it working for me.

    One small thing though…

    I want to add another desktop. I want to be able to just start up the server and it starts the vncserver for two separate users on the server (not multiple people connecting).

    I tried editing /etc/vncserver/vncservers.conf as follows (1920×1000 is because I use VNC viewer on my phone so it loses 80 pixels off the top for the notifications bar):

    VNCSERVERS=”1:user1″
    VNCSERVERARGS [1]=”-geometry 1920×1000″

    VNCSERVERS=”2:user2″
    VNCSERVERARGS[1]=”-geometry 1920×1000″

    This didn’t work. It will only start one of them, entirely based on which order I place them in. Perhaps the startup script should be altered?
    Reply

        namhuy says

        08/17/2014 at 2:39 pm

        Don’t forget to create xstartup file for your user2 and when you connect to your vnc server with user2, use port :2 or 5902

        No you dont need to modify startup script, just add xstartup file for each separate user and add each user to /etc/vncserver/vncservers.conf as you did.
        Reply

            jason says

            08/21/2014 at 10:35 pm

            It’s still not working…please advise. I read other post they put VNCSERVERARGS[2]=, what is the right format to add more than one users? Thanks, Jason
            Reply

                namhuy says

                08/22/2014 at 12:11 am

                For additional user, well lets say it’s user2, I assume you already have user2 in your system. Switch to user2 console
                $ su user2
                1
               
                $ su user2

                If it’s a brand new user without xstartup file, start up vncserver to let vncserver creates its files
                $ vncserver
                1
               
                $ vncserver

                Now the steps are very similar to create user1, like set vnc’s password for user2 and modify xstartup file.

                The next thing is to modify /etc/vncserver/vncservers.conf to accept multiple users and multiple ports
                VNCSERVERS=”1:user1″
                VNCSERVERARGS[1]=”-geometry 1024×768″
                VNCSERVERS=”2:user2″
                VNCSERVERARGS[2]=”-geometry 1024×768″
                Reply

    SPektor says

    08/18/2014 at 3:24 am

    Thank you very much for the tutorial it worked perfectly. I have one question though. I am unable to connect to the internet through the virtual machine. Can this be solved through the config file?
    Reply

        namhuy says

        08/18/2014 at 1:24 pm

        from your virtual machine, try to ping the destination IP if it’s reachable, and make sure there is no firewall/iptables plus VNC ports are allowed (both VNC server and VNC client).
        Reply

    Conan says

    08/22/2014 at 1:01 am

    Hello i have a problem, when i try to start a app (to try krusader) the vnc connection crashing down.
    the log fil in .vnc say:
    22/08/14 09:50:10 Xvnc version TightVNC-1.3.9
    22/08/14 09:50:10 Copyright (C) 2000-2007 TightVNC Group
    22/08/14 09:50:10 Copyright (C) 1999 AT&T Laboratories Cambridge
    22/08/14 09:50:10 All Rights Reserved.
    22/08/14 09:50:10 See http://www.tightvnc.com/ for information on TightVNC
    22/08/14 09:50:10 Desktop name ‘X’ (Ubuntu-1404-trusty-64-minimal:1)
    22/08/14 09:50:10 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
    22/08/14 09:50:10 Listening for VNC connections on TCP port 5901
    Font directory ‘/usr/share/fonts/X11/75dpi/’ not found – ignoring
    Font directory ‘/usr/share/fonts/X11/100dpi/’ not found – ignoring
    /root/.vnc/xstartup: 8: /root/.vnc/xstartup: .Xresources: not found
    /usr/bin/startxfce4: X server already running on display :1
    No VNC extension on display :1
    Xlib: extension “RANDR” missing on display “:1″.
    Xlib: extension “RANDR” missing on display “:1.0″.

    (xfwm4:10515): xfwm4-WARNING **: The display does not support the XRender extension.

    (xfwm4:10515): xfwm4-WARNING **: The display does not support the XRandr extension.

    (xfwm4:10515): xfwm4-WARNING **: The display does not support the XComposite extension.

    (xfwm4:10515): xfwm4-WARNING **: The display does not support the XDamage extension.

    (xfwm4:10515): xfwm4-WARNING **: The display does not support the XFixes extension.

    (xfwm4:10515): xfwm4-WARNING **: Compositing manager disabled.
    Xlib: extension “RANDR” missing on display “:1″.
    Xlib: extension “RANDR” missing on display “:1.0″.
    Xlib: extension “RANDR” missing on display “:1.0″.

    (xfsettingsd:10525): xfsettingsd-CRITICAL **: No RANDR extension found in display :1.0. Display settings won’t be applied.
    Xlib: extension “XInputExtension” missing on display “:1.0″.

    (xfsettingsd:10525): xfsettingsd-CRITICAL **: XI is not present.

    (xfsettingsd:10525): xfsettingsd-CRITICAL **: Failed to initialize the Xkb extension.

    (xfsettingsd:10525): xfsettingsd-CRITICAL **: Failed to initialize the Accessibility extension.
    Xlib: extension “RANDR” missing on display “:1.0″.
    Xlib: extension “RANDR” missing on display “:1″.
    Xlib: extension “RANDR” missing on display “:1.0″.
    Xlib: extension “RANDR” missing on display “:1.0″.
    Xlib: extension “RANDR” missing on display “:1.0″.
    Xlib: extension “RANDR” missing on display “:1.0″.
    AUDIT: Fri Aug 22 09:50:12 2014: 10486 Xtightvnc: client 16 rejected from local host
    Client is not authorized to connect to Serverxscreensaver: 09:50:12: Can’t open display: :1.0
    xscreensaver: 09:50:12: initial effective uid/gid was root/root (0/0)
    xscreensaver: 09:50:12: running as nobody/nogroup (65534/65534)

    xscreensaver: 09:50:12: This is probably because you’re logging in as root. You
    shouldn’t log in as root: you should log in as a normal user,
    and then `su’ as needed. If you insist on logging in as
    root, you will have to turn off X’s security features before
    xscreensaver will work.

    Please read the manual and FAQ for more information:

    http://www.jwz.org/xscreensaver/faq.html
    http://www.jwz.org/xscreensaver/man.html

    Xlib: extension “RANDR” missing on display “:1.0″.

    ** (process:10576): WARNING **: volume-control.vala:227: pa_context_connect() failed: OK

    ** (process:10576): CRITICAL **: volume_control_set_volume_internal: assertion ‘_tmp1_ == PA_CONTEXT_READY’ failed

    ** (process:10583): CRITICAL **: bluez.vala:104: GDBus.Error:org.bluez.Error.NoSuchAdapter: No such adapter
    initctl: UPSTART_SESSION isn’t set in the environment. Unable to locate the Upstart instance.
    Xlib: extension “RANDR” missing on display “:1.0″.
    Xlib: extension “RANDR” missing on display “:1.0″.

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioRaiseVolume’ failed!

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioRaiseVolume’ failed!

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioRaiseVolume’ failed!

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioRaiseVolume’ failed!

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioRaiseVolume’ failed!

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioRaiseVolume’ failed!

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioRaiseVolume’ failed!

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioRaiseVolume’ failed!

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers
    Starting Dropbox…
    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioLowerVolume’ failed!

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioLowerVolume’ failed!

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioLowerVolume’ failed!

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioLowerVolume’ failed!

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioLowerVolume’ failed!

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioLowerVolume’ failed!

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioLowerVolume’ failed!

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioLowerVolume’ failed!

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioMute’ failed!

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioMute’ failed!

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioMute’ failed!

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioMute’ failed!

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioMute’ failed!

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioMute’ failed!

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioMute’ failed!

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Binding ‘XF86AudioMute’ failed!

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    ** (xfce4-volumed:10655): WARNING **: Failed to map virtual modifiers

    (process:10621): Indicator-Power-WARNING **: Fail to query backlight devices.
    Xlib: extension “RANDR” missing on display “:1.0″.

    (xfce4-volumed:10655): xfce4-volumed-WARNING **: xvd_connect_to_pulse: failed to connect context: OK

    (xfce4-volumed:10655): xfce4-volumed-WARNING **: Unable to initialize pulseaudio support, quitting

    (xfce4-volumed:10655): GLib-GObject-CRITICAL **: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed
    Xlib: extension “RANDR” missing on display “:1.0″.
    Xlib: extension “RANDR” missing on display “:1.0″.
    process 10667: arguments to dbus_message_new_method_call() were incorrect, assertion “path != NULL” failed in file ../../dbus/dbus-message.c line 1262.
    This is normally a bug in some application using the D-Bus library.
    Verbindungsfehler: Verbindung verweigert
    pa_context_new() fehlgeschlagen: Verbindung verweigert

    (zeitgeist-datahub:10569): GLib-GObject-WARNING **: invalid (NULL) pointer instance

    (zeitgeist-datahub:10569): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion ‘G_TYPE_CHECK_INSTANCE (instance)’ failed

    ** (update-notifier:10682): WARNING **: not starting for system user

    (polkit-gnome-authentication-agent-1:10617): GLib-CRITICAL **: g_variant_new_string: assertion ‘string != NULL’ failed

    (polkit-gnome-authentication-agent-1:10617): polkit-gnome-1-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

    ** (process:10576): CRITICAL **: file /build/buildd/indicator-sound-12.10.2+14.04.20140401/obj-x86_64-linux-gnu/src/volume-control.c: line 1775: uncaught error: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: No such interface (g-dbus-error-quark, 16)
    Dropbox isn’t running!
    Done!
    Xlib: extension “RANDR” missing on display “:1.0″.

    (process:10576): AccountsService-WARNING **: ActUserManager: user (null) has no username (object path: /org/freedesktop/Accounts/User0, uid: 0)

    (process:10576): AccountsService-WARNING **: ActUserManager: user (null) has no username (object path: /org/freedesktop/Accounts/User0, uid: 0)

    22/08/14 09:51:12 Got connection from client 91.89.148.90
    22/08/14 09:51:12 Using protocol version 3.8
    22/08/14 09:51:13 Enabling TightVNC protocol extensions
    22/08/14 09:51:17 Full-control authentication passed by 91.89.148.90
    22/08/14 09:51:17 Using tight encoding for client 91.89.148.90
    22/08/14 09:51:17 rfbProcessClientNormalMessage: ignoring unknown encoding 16
    22/08/14 09:51:17 Using image quality level 6 for client 91.89.148.90
    22/08/14 09:51:17 rfbProcessClientNormalMessage: ignoring unknown encoding -223
    22/08/14 09:51:17 Enabling LastRect protocol extension for client 91.89.148.90
    22/08/14 09:51:17 Enabling cursor position updates for client 91.89.148.90
    22/08/14 09:51:17 Enabling full-color cursor updates for client 91.89.148.90
    Xlib: extension “RANDR” missing on display “:1.0″.
    Xlib: extension “XInputExtension” missing on display “:1.0″.
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Major opcode: 62 (X_CopyArea)
    Resource id: 0x0
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Major opcode: 62 (X_CopyArea)
    Resource id: 0x0
    X Error: BadDrawable (invalid Pixmap or Window parameter) 9
    Major opcode: 62 (X_CopyArea)
    Resource id: 0x0
    kdeinit4: Shutting down running client.
    Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
    xfsettingsd: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :1.0.
    xfwm4: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :1.0.
    xfce4-session: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :1.
    xfce4-panel: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :1.0.
    Thunar: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :1.
    wrapper-1.0: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :1.0.
    xfce4-netload-plugin: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :1.0.
    wrapper-1.0: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :1.0.
    xfdesktop: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :1.0.
    blueman-applet: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :1.0.

    (polkit-gnome-authentication-agent-1:10617): Gdk-WARNING **: polkit-gnome-authentication-agent-1: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :1.0.

    Loading configuration plugins
    blueman-applet version 1.23 starting
    Stale PID, overwriting
    Using gconf config backend
    Using gconf config backend
    Using gconf config backend
    Using gconf config backend
    Using gconf config backend
    Using gconf config backend
    Using gconf config backend
    Using gconf config backend
    Using gconf config backend
    Using gconf config backend
    Using gconf config backend
    kdeinit4: Can not connect to the X Server.
    kdeinit4: Might not terminate at end of session.
    XIO: fatal IO error 11 (Resource temporarily unavailable) on X server “:1.0″
    after 729 requests (729 known processed) with 0 events remaining.
    dropbox: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :1.0.
    wrapper-1.0: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :1.0.
    wrapper-1.0: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :1.0.

    (nm-applet:10625): Gdk-WARNING **: nm-applet: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :1.0.

    (light-locker:10667): Gdk-WARNING **: light-locker: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :1.0.

    parcellite: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :1.0.

    ** (zeitgeist-datahub:10569): WARNING **: zeitgeist-datahub.vala:229: Unable to get name “org.gnome.zeitgeist.datahub” on the bus!
    g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.

    (process:10588): indicator-application-service-WARNING **: Name Lost
    g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.

    ** (process:10576): CRITICAL **: indicator_sound_service_name_lost: assertion ‘connection != NULL’ failed
    g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.

    ** (process:10583): CRITICAL **: service_on_name_lost: assertion ‘connection != NULL’ failed
    g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    kded(12460): KUniqueApplication: Cannot find the D-Bus session server: “Failed to connect to socket /tmp/dbus-0Mm4STTGib: Verbindungsaufbau abgelehnt”

    kded(12459): KUniqueApplication: Pipe closed unexpectedly.

    krusader(12449): Couldn’t start knotify from knotify4.desktop: “KLauncher could not be reached via D-Bus. Error when calling start_service_by_desktop_path:
    Connection is closed
    ”

    ICE default IO error handler doing an exit(), pid = 12449, errno = 32

    (process:10576): GLib-GObject-CRITICAL **: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed

    whats is the problem? i have ubuntu 14.04.1 as server.
    Reply

        namhuy says

        08/22/2014 at 11:30 am

        Try to install some fonts

        # apt-get update
        # apt-get install xfonts-base xfonts-75dpi xfonts-100dpi
        Reply

    call says

    08/30/2014 at 8:32 am

    Hi, I’ve got SSH tunnelling working both locally and from outside the local network but where do I add the -localhost switch to only allow “local” IPs to connect? I want the VNC server to be unreachable if not connecting through an SSH tunnel.

    So far I’ve tried adding -localhost to the VNCSERVERARGS[1] variable in /etc/vncserver/vncservers.conf ( VNCSERVERARGS[1]=”-geometry 1280×1024 -localhost”) and also when the vncserver command is put together in /etc/init.d/vncserver, so the line reads:

    su ${USER} -c “cd ~${USER} && [ -f .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS} -localhost”

    instead of

    su ${USER} -c “cd ~${USER} && [ -f .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}”

    but that broke it. Any ideas? Thanks.
    Reply

        namhuy says

        12/19/2014 at 1:05 am

        sorry for the late reply, I must have missed your comment. what does the vnc’s log give you? the log should be located in $HOME/.vnc/ and /var/log/auth.log
        Reply

    GiftofIsis says

    09/04/2014 at 12:35 pm

    Hi i just have upgrade from 12.10 to 14.04, and i used X11VNC and it worked no issues, as soon as i upgraded the VNC stopped working.

    So i followed your instructions and it works fine. So thank you for this :)

    Only problem is i use my Ubutnu Machine as a Media Server using XBMC, and now it doesn’t work, it says it needs “hardware accelerated opengl rendering. install an appropriate driver”

    Have you got any idea on how i can fix this ?
    Reply

    Jim says

    09/07/2014 at 8:47 am

    Thank you! I have been trying to find a remote desktop that works since I upgraded to 14.04, and the “nomachine” I was using just got a black screen.. I followed your steps, and it work perfectly the first time! Again Thank you!
    Reply

    Harry Cooper says

    09/13/2014 at 6:20 am

    How do I reset everything back the the way it was before following this procedure? I don’t really care for Xubuntu and now it’s my only GUI. Also I notice that when I have it up, there’s a wine box as well as a black hole rectangle that can be moved around the screen. All this makes me want to go back to my original desktop ubuntu and try something else. Thanks. P.S. I’m running this is Vbox VM as guest OS.
    Reply

    Niaxem says

    09/20/2014 at 1:10 am

    Hey, NamHuy can you make tutorial install xrdp? Anyway this tutorial work for me but vnc so slow even my internet about 3mbps. I already try use low-bandwitdth also same
    Reply

    Jesus Charles says

    10/28/2014 at 5:05 pm

    Gracias amigo si funciono
    Reply

    bhaskar says

    11/11/2014 at 3:00 pm

    Hi Nam Huy I have followed your tutorial and I can’t get the vncserver to work. I tried both the xstartup files that you have mentioned and I always get a grey hatched screen. I have tried changing the lines in xstartup but I am no expert and was not really sure what I was doing with those files. I have wasted 2 days trying to set this up and I would like to seek your help on this.

    Thanks
    Bhaskar
    Reply

        namhuy says

        11/13/2014 at 4:34 pm

        Sorry for the late reply, what do you have in your vnc log file? The vnc’s log file should be located in your user home directory /home/user/.vnc/hostname:port.log

        few things might go wrong:
        1. set xstartup file for wrong user
        2. didn’t use xfce4
        3. you have to kill vncserver before edit xstartup file
        Reply

    Hannes says

    11/15/2014 at 11:51 am

    Finally a tutorial that worked. Thank you very much!
    Reply

    Eric Korb says

    12/18/2014 at 6:42 pm

    I’m having an issue with your vncserver file starting up. I’ve made executable, etc. I can get everything to work if I start things manually. I did find another tutorial that did show another vncserver file that does work, but its locked to a specific user (which you must modify to match your own environment).

    The file is found here; https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-14-04

    #!/bin/bash
    PATH=”$PATH:/usr/bin/”
    export USER=”user”
    DISPLAY=”1″
    DEPTH=”16″
    GEOMETRY=”1024×768″
    OPTIONS=”-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY} -localhost”
    . /lib/lsb/init-functions
    case “$1″ in
    start)
    log_action_begin_msg “Starting vncserver for user ‘${USER}’ on localhost:${DISPLAY}”
    su ${USER} -c “/usr/bin/vncserver ${OPTIONS}”
    ;;
    stop)
    log_action_begin_msg “Stopping vncserver for user ‘${USER}’ on localhost:${DISPLAY}”
    su ${USER} -c “/usr/bin/vncserver -kill :${DISPLAY}”
    ;;
    restart)
    $0 stop
    $0 start
    ;;
    esac
    exit 0

    I tried your version, but it won’t start up for some reason. Whereas, this one does.

    Any ideas?

    Eric
    Reply

        namhuy says

        12/19/2014 at 12:57 am

        If you use my /etc/init.d/vncserver file, you will have to create extra /etc/vncserver/vncservers.conf file because rather store & call each user in /etc/init.d/vncserver. The one from digitalocean that guy store all user’s settings in the same file which is /etc/init.d/vncserver.
        Reply

    John. says

    02/09/2015 at 4:57 pm

    Working flawlessly man ! Till u posted this.
    Thanks so much, i try 14 04 and 14 10 x64, no problem with xfce.
    Keep post !
    Reply

Leave a Reply
Recent Posts

    How to create and install self-signed SSL certificate on Nginx in CentOS 6
    How to install LEMP web server with Nginx, PHP-FPM 5.6, MySQL 5.5 on Centos 7
    How to install fail2ban on CentOS 6 and 7
    How to install OpenVPN Access Server OpenVPN-AS on CentOS 6
    How to upgrade from CentOS 6 to 7
    Linux file system structure
    Browse web in linux via terminal with w3m and xterm
    How to secure Apache HTTP Web Server
    Netflix supports HTML5 and ditches Silverlight
    Tracking centos server with bash script

Sponsored Links
Advertise HereAdvertise HereAdvertise HereAdvertise Here
Nam Huy Linux delivers Linux tutorials, news, tips & tricks, and other open source php based scripts. We cover many popular Linux distributions and PHP scripts from Debian, Ubuntu, Linux Mint, Fedora, Centos, and Red Hat to WordPress, PHPbb, etc... We test every single tutorial at least twice before publish.
Monthly Popular Posts



    Install GUI on debian 7 wheezy
    How to change date, time, timezone on centos 6
    How to install VNC Server on Ubuntu 14.04
    How to install VNC Server on Debian 7
    How to tweak and optimize SSD for Ubuntu, Linux Mint
    How to upgrade from CentOS 6 to 7
    How to install gui to centos minimal
    How to fix slow performance ubuntu 13.04 running in virtualbox

About us
Huy Tran
Contribute
Copyright
Privacy Policy
Terms Of Service
Follow us
Google+
Facebook
Twitter
Subscribe
 RSS Feed
 XML RSS Feed
 Subscribe by Email

2007 - 2015 © Nam Huy Linux. All Rights Reserved.
11 queries in 0.733 seconds.

martes, 23 de diciembre de 2014

CENTOS 7 INSTALAR VNC


en servidor x.x.3.1

despues de actualizar el sistema
# yum -y update


# systemctl stop firewalld

# systemctl mask firewalld

systemctl disable firewalld
# systemctl status firewalld
Active: inactive (dead)

# vi /etc/sysconfig/iptables

#poner esta linea
-A INPUT -m state --state NEW -m tcp -p tcp --dport 5900 -j ACCEPT

# systemctl enable iptables
# systemctl start iptables


#Lo tome de aqui par adehabilitar el firewa
http://www.tejasbarot.com/2014/08/02/rhel-7-centos-7-disable-firewalld-and-use-iptables/#axzz3MlvoUUe7

1. # yum install tigervnc-server -y

2 # cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service

Step 3 » Now open /etc/systemd/system/vncserver@:1.service file and replacewith your username .
Find these lines ..
ExecStart=/sbin/runuser -l <USER> -c "/usr/bin/vncserver %i"
PIDFile=/home/<USER>/.vnc/%H%i.pid

Replace ( Considering username as john )
ExecStart=/sbin/runuser -l john -c "/usr/bin/vncserver %i"
PIDFile=/home/john/.vnc/%H%i.pid

If you are creating for root user .
ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i"
PIDFile=/root/.vnc/%H%i.pid

Step 4 » Reload systemd for changes.
[root@krizna ~]# systemctl daemon-reload




Step 5 » Create VNC password for the user . se cambia con el usuario a ponerle la contraseña o # vncpasswd usuario
contrseña:
[root@krizna ~]$ vncpasswd


Step 6 » Enable and start the service using the below commands.
Enable service at startup ( Permanent ).
[root@krizna ~]# systemctl enable vncserver@:1.service
Start the service .
[root@krizna ~]# systemctl start vncserver@:1.service
Step 7 » Allow VNC service in firewall. Este paso n lo aplique ya que des habilite el firewall
[root@krizna ~]# firewall-cmd --permanent --add-service vnc-server
[root@krizna ~]# systemctl restart firewalld.service

despues de reinicar el servidor no me conecto y iniciando despues como ROOT
# systemctl enable vncserver@:1.service
# verifico que el firewalld este apagado
# systemctl status firwalld
marca incativo
systemctl enable vncserver@:1.service
systemctl start vncserver@:1.service
me conecte por el cliente de vnc al dispaly 1 y funciono

--En otra instalacion no conectaba hasta que que primero comparti el escritorio de root y le hice su vncserver@:2.service y accese desde mi vnc cliente y despues accese con el segundo usuario, este es el error que me enviaba

[root@rntapp system]#  systemctl start vncserver@:1.service
Job for vncserver@:1.service failed. See 'systemctl status vncserver@:1.service' and 'journalctl -xn' for details.

[root@rntapp ~]# 'systemctl status vncserver@:1.service
> ^C
[root@rntapp ~]# systemctl status vncserver@:1.service
vncserver@:1.service - Remote desktop service (VNC)
   Loaded: loaded (/etc/systemd/system/vncserver@:1.service; enabled)
   Active: failed (Result: exit-code) since Mon 2014-12-29 01:33:18 CST; 2min 3s ago
  Process: 5228 ExecStart=/sbin/runuser -l administrador -c /usr/bin/vncserver %i -geometry 1280x1024 (code=exited, status=1/FAILURE)
  Process: 5224 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)