Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Advertise on LowEndTalk.com
One Click VNC server Installer
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

One Click VNC server Installer

Hi
I was looking for a script to install a vnc script in a single go.Like the openvpn installer.I was wondering if there is already one.

Comments

  • wychwych Member

    make your own?

    Taking a hiatus.

  • #!bin/derp
    
    apt-get update -y && apt-get upgrade -y; apt-get install -y xrdp; apt-get install -y xfce4; echo xfce4-session >~/.xsession; service xrdp restart
    
    #end of lazyness for you
    

    There you go lazy booooy

  • Let me see what I can do with some DO credit. What OS are you using?

    Different.

  • BharatBBharatB Member, Provider
    edited March 2015

    I can get you for ubuntu 12.04 LTS ,

    Code is in this

    http://talisman.servertalks.com/install

    chmod 777 install

    bash install

    this stuff install LAMP + vnc for ubuntu 12.04 lts :) ( comes with a game server files setup which you can delete later on from /root folder)

    Readydedis, LLC - Managed Dedicated Servers

  • Just for VNC on Ubuntu:

    #Right lets get this done
    # (c)ThomasGlassUK.com
    echo "Updating your system. This could take time depending on your connection & how much to upgrade."
    sudo apt-get -qq update
    sudo apt-get -y -qq upgrade
    echo "Installing VNC packages"
    sudo apt-get -y -qq install xfce4 xfce4-goodies tightvncserver
    echo "Please configure VNC"
    vncserver
    vncserver -kill :1
    mv ~/.vnc/xstartup ~/.vnc/xstartup.bak
    echo "#!/bin/bash
    xrdb $HOME/.Xresources
    startxfce4 &" > ~/.vnc/xstartup
    sudo chmod +x ~/.vnc/xstartup
    
    echo "Now lets configure the user & resolution"
    echo "What user is to be logged in for the VNC:"
    read user
    echo "What resolution would you like the VNC to be?:"
    read resolution
    sudo echo "
    #!/bin/bash
    PATH="$PATH:/usr/bin/"
    export USER="$user"
    DISPLAY="1"
    DEPTH="16"
    GEOMETRY="$resolution"
    OPTIONS="-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY} -localhost"
    . /lib/lsb/init-functions
    " > /etc/init.d/vncserver
    echo "All done. CentOS & debian coming soon"
    service vncserver restart
    
    Thanked by 1ArenaHosts

    Different.

  • @noaman said:
    its ubuntu 14.04 x86

    Tested and works with x86 14.04

    Different.

  • awesome one more question...I was wondering...if there is a web ui to a vnc server...like managing it from the browser on the go...

  • @noaman said:
    awesome one more question...I was wondering...if there is a web ui to a vnc server...like managing it from the browser on the go...

    Like what are you looking to manage?

    Different.

  • i am usually behind a firewall...so I really dont like to ssh to my vm all the time..so managing using a browser would be easy

  • @noaman said:
    i am usually behind a firewall...so I really dont like to ssh to my vm all the time..so managing using a browser would be easy

    Hmm what options are you wanting to manage "all" is too many

    Different.

  • just getting a simple desktop interface would be nice....

  • @noaman said:
    just getting a simple desktop interface would be nice....

    That does?

    Different.

  • NomadNomad Member

    That opens him the ssh interface via browser aka NoVNC

    ...
    ...

  • @joodle said:

    > #!bin/derp
    > 
    > apt-get update -y && apt-get upgrade -y; apt-get install -y xrdp; apt-get install -y xfce4; echo xfce4-session >~/.xsession; service xrdp restart
    > 
    > #end of lazyness for you
    > 

    There you go lazy booooy

    is this is also working for KVM based VM?

  • @neil413 said:
    is this is also working for KVM based VM?

    Should work on debian 6-7 and ubuntu 12 and above

  • Great help, Saved this for myself at a later date :P

  • UrDNUrDN Member

    Use TigerVNC instead of TightVNC or RealVNC.

    www.urdn.com.ua - ISP in Ukraine.

  • raxv2raxv2 Member
    edited April 2015

    Ubuntu - x86 and x86_64
    apt-get update -y;apt-get upgrade -y;apt-get install nano -y;apt-get install gnome-core firefox flashplugin-installer -y;apt-get install vnc4server -y; vncserver; vncserver -kill :1; cd ~; wget https://ginernet.com/downloads/vnc-ubuntu-12.txt -O .vnc/xstartup; mkdir -p /etc/vncserver; echo 'VNCSERVERS="1:root"' >> /etc/vncserver/vncservers.conf; echo 'VNCSERVERARGS[1]="-geometry 1000x700"' >> /etc/vncserver/vncservers.conf; cd /etc/init.d/; wget https://ginernet.com/downloads/vnc-init-ubuntu-12.txt -O vncserver; chmod 755 vncserver; update-rc.d vncserver defaults 99; reboot;

    Debian - x86 and x86_64
    apt-get update -y;apt-get upgrade -y;apt-get install nano -y;apt-get install gnome-core flashplugin-nonfree -y;apt-get install vnc4server -y; vncserver; vncserver -kill :1; cd ~; wget https://ginernet.com/downloads/vnc-debian-7.txt -O .vnc/xstartup; mkdir -p /etc/vncserver; echo 'VNCSERVERS="1:root"' >> /etc/vncserver/vncservers.conf; echo 'VNCSERVERARGS[1]="-geometry 1000x700"' >> /etc/vncserver/vncservers.conf; cd /etc/init.d/; wget https://ginernet.com/downloads/vnc-init-ubuntu-12.txt -O vncserver; chmod 755 vncserver; update-rc.d vncserver defaults 99; reboot;

    CentOS - x86_64 (not valid for 32 bit)
    yum install nano -y; yum update -y; yum upgrade -y; yum install tigervnc-server -y; yum groupinstall "Desktop" -y; yum install firefox -y; rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm; rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux; yum install flash-plugin nspluginwrapper alsa-plugins-pulseaudio libcurl -y; echo 'echo "nameserver 8.8.8.8" >> /etc/resolv.conf; ' >> /etc/rc.local; echo 'VNCSERVERS="1:root"' >> /etc/sysconfig/vncservers; echo 'VNCSERVERARGS[1]="-geometry 1000x700"' >> /etc/sysconfig/vncservers; vncpasswd; chkconfig vncserver on --level 345; reboot;

  • @raxv2 on centos, the password is blank?

    Buy Site Ads - Advertising Platform

  • raxv2raxv2 Member

    you need to type the pass you want 2 times

  • @raxv2 when I exicute vncserver (on centos) am getting this error:

    [[email protected] ~]# vncserver
    xauth: (stdin):1: bad display name "testvps:5" in "add" command

    New 'testvps:5 (root)' desktop is testvps:5

    Starting applications specified in /root/.vnc/xstartup
    Log file is /root/.vnc/testvps:5.log

    Can you help on this please?

    Buy Site Ads - Advertising Platform

  • raxv2raxv2 Member

    @BuyAds did you installed on new centos installation??

  • Yes i did

    Buy Site Ads - Advertising Platform

  • noamannoaman Member

    HEy People I cannot log into my VNC server Here is the log file

    Xvnc Free Edition 4.1.1 - built Nov 18 2014 16:07:18
    Copyright (C) 2002-2005 RealVNC Ltd.
    See http://www.realvnc.com for information on VNC.
    Underlying X server release 40300000, The XFree86 Project, Inc

    Fri Jul 10 16:22:06 2015
    vncext: VNC extension running!
    vncext: Listening for VNC connections on port 5901
    vncext: created VNC server for screen 0
    error opening security policy file /etc/X11/xserver/SecurityPolicy
    Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from
    list!
    Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from
    list!
    Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from l
    ist!
    Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from
    list!
    Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from
    list!
    /usr/bin/startxfce4: X server already running on display :1

    (xfwm4:6080): xfwm4-WARNING **: The display does not support the XRender extensi
    on.

    (xfwm4:6080): xfwm4-WARNING **: The display does not support the XComposite exte
    nsion.

    (xfwm4:6080): xfwm4-WARNING **: The display does not support the XDamage extensi
    on.

    (xfwm4:6080): xfwm4-WARNING **: The display does not support the XFixes extensio
    n.

    (xfwm4:6080): xfwm4-WARNING **: Compositing manager disabled.
    initctl: UPSTART_SESSION isn't set in the environment. Unable to locate the Upst
    art instance.

    (process:6097): Indicator-Power-WARNING **: Fail to query backlight devices.

    ** (process:6116): WARNING **: killswitch.vala:103: Can't open /dev/rfkill for u
    se as a killswitch backend: No such file or directory

    ** (process:6116): CRITICAL **: bluez.vala:104: GDBus.Error:org.freedesktop.DBus
    .Error.ServiceUnknown: The name org.bluez was not provided by any .service files

    ** (nm-applet:6130): WARNING **: Could not initialize NMClient /org/freedesktop/
    NetworkManager: The name org.freedesktop.NetworkManager was not provided by any
    .service files

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioRaiseVolume' failed!

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioRaiseVolume' failed
    !

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioRaiseVolume' failed!

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

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioRaiseVolume' faile
    d!

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioRaiseVolume'
    failed!

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioRaiseVolume' f
    ailed!

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

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioRaiseVolume'
    failed!

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

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

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

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioRaiseVo
    lume' failed!

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

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

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

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioLowerVolume' failed!

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioLowerVolume' failed
    !

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioLowerVolume' failed!

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

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioLowerVolume' faile
    d!

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioLowerVolume'
    failed!

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioLowerVolume' f
    ailed!

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

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioLowerVolume'
    failed!

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

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

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

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioLowerVo
    lume' failed!

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

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

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

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioMute' failed!

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioMute' failed!

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioMute' failed!

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

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioMute' failed!

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioMute' failed
    !

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioMute' failed!

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

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioMute' failed!

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

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

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

    ** (xfce4-volumed:6175): WARNING **: Binding 'XF86AudioMute' f
    ailed!

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

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

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

    (xfsettingsd:6185): xfsettingsd-CRITICAL **: RANDR extension is too old, version
    1.1. Display settings won't be applied.
    Xlib: extension "XInputExtension" missing on display ":1.0".

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

    (xfsettingsd:6185): xfsettingsd-CRITICAL **: Failed to initialize the Xkb extens
    ion.

    (zeitgeist-datahub:6171): GLib-GObject-WARNING **: invalid (NULL) pointer instan
    ce

    (zeitgeist-datahub:6171): GLib-GObject-CRITICAL **: g_signal_connect_data: asser
    tion 'G_TYPE_CHECK_INSTANCE (instance)' failed

    (xfsettingsd:6185): xfsettingsd-CRITICAL **: Failed to initialize the Accessibil
    ity extension.
    system-config-printer-applet: failed to start NewPrinterNotification service
    Failure: Module initialization failed
    system-config-printer-applet: failed to start PrinterDriversInstaller service: o
    rg.freedesktop.DBus.Error.AccessDenied: Connection ":1.194" is not allowed to ow
    n the service "com.redhat.PrinterDriversInstaller" due to security policies in t
    he configuration file

    (nm-applet:6130): nm-applet-WARNING **: Error connecting to ModemManager: Error
    calling StartServiceByName for org.freedesktop.ModemManager1: GDBus.Error:org.fr
    eedesktop.DBus.Error.Spawn.ExecFailed: Cannot launch daemon, file not found or p
    ermissions invalid

    (polkit-gnome-authentication-agent-1:6178): polkit-gnome-1-WARNING **: Unable to
    determine the session we are in: No session for pid 6178

    (nm-applet:6130): nm-applet-WARNING **: Failed to register as an agent: (2) The
    name org.freedesktop.NetworkManager was not provided by any .service files

    (nm-applet:6130): nm-applet-WARNING **: Failed to register as an agent: (2) The
    name org.freedesktop.NetworkManager was not provided by any .service files

    ** (process:6173): CRITICAL **: volume_control_set_volume_internal: assertion '_
    tmp1_ == PA_CONTEXT_READY' failed

    ** (process:6173): 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-er
    ror-quark, 16)

    (tracker-miner-fs:6141): Tracker-CRITICAL **: Empty locale file found at '/hom
    e/vncuser/.cache/tracker/miner-applications-locale.txt'

    (tracker-miner-fs:6141): Tracker-CRITICAL **: Empty locale file found at '/hom
    e/vncuser/.cache/tracker/miner-applications-locale.txt'

  • noamannoaman Member

    still not working
    >

    Xvnc Free Edition 4.1.1 - built Nov 18 2014 16:07:15
    Copyright (C) 2002-2005 RealVNC Ltd.
    See http://www.realvnc.com for information on VNC.
    Underlying X server release 40300000, The XFree86 Project, Inc
    >

    Sat Jul 11 04:41:20 2015
    vncext: VNC extension running!
    vncext: Listening for VNC connections on port 5901
    vncext: created VNC server for screen 0
    error opening security policy file /etc/X11/xserver/SecurityPolicy
    Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from
    list!
    Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from
    list!
    Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from l
    ist!
    Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from
    list!
    Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from
    list
    AUDIT: Sat Jul 11 04:41:23 2015: 32408 Xvnc4: client 6 rejected from local host
    >

Sign In or Register to comment.