Quote:
Originally Posted by unSpawn
While you are free to do so removing and reinstalling software packages, deleting a complete Linux installation or moving to another Linux distribution because a single software package doesn't work without troubleshooting is not necessary, it is not a "solution" and it is not "the Linux way" simply because you learn nothing from doing that.
|
I want a simple head setup for my Virtualbox setup, first I used Ubuntu 11.04 which now is beginning to get old, so I wanted to update the OS. I tried Ubuntu server 12.10, which is in my mind perfect, but I lack skills/mind to handle a GUI less OS. It is much easier to change the VRDP port in the gui then all the time go on the internet on my mobile phone to find a solution, I tried to install PhpVirtualbox but realised that it does not support the latest Vbox version, I ended up with an blank page with no login option and 30 maybe answers how I could solve that one
.
Quote:
- A headless server shouldn't need an X Server: its more software to configure and maintain and running it uses up resources best used for other processes (I'll forego talking about risks right now).
- Virtualbox can run without X Server: see VBoxHeadless.
|
This is my preferred choice, but I lack the skills to add all the NFS and samba information for 6 hard drives and 10 Partitions in an easy way then the manual way ( see "missing Copy and paste in Ubuntu server"). All the settings I need to set in Vbox feels like an jungle from the terminal, I cannot get an overview of what I am doing.
Quote:
- Just like VMWare Virtualbox has a choice of remote interfaces like RemoteBox, VBoxRemote, PhpVirtualbox, etc, etc if you need more than SSH access + vboxmanage offers.
|
I tried PhpVirtualbox but in avail. Vbox 4.2 was not supported
. Maybe some of the other may work.
Quote:
- If you succumb to running an X Server + VNC anyway then the best practice is to use SSH to setup a tunnel and access VNC through it.
|
I always go through SSH to access my server (when everything is working accordingly), I have tested with and without SSH.
Quote:
- If you get error messages then always check if services / processes are running ('ps -C processname' or 'pgrep processname'), if services / processes are listening to the network ('lsof -Pwlnp pidofprocessname -a -i' or 'netstat -anple|grep processname') and always check their log files and system log files for clues.
|
This were I lack most experience. I cannot find any information what the process who is handling "Desktop sharing" in Ubuntu neither find any log that can tell me what the program does.
With X11vnc in Lubuntu 12.10 installed I can read some messages when trying to start the VNC server, unfortunately the X11vnc log does not give any good information (It is empty), but keep in mind it did work when I set up the server when it was standing in my living room and refuse to work when I moved it back to the guest room (same router same port).
Code:
11/03/2013 20:03:15 passing arg to libvncserver: -rfbauth
11/03/2013 20:03:15 passing arg to libvncserver: /home/ubuntu/.vnc/passwd
11/03/2013 20:03:15 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 7960
11/03/2013 20:03:15 XOpenDisplay("") failed.
11/03/2013 20:03:15 Trying again with XAUTHLOCALHOSTNAME=localhost ...
11/03/2013 20:03:15
11/03/2013 20:03:15 *** XOpenDisplay failed. No -display or DISPLAY.
11/03/2013 20:03:15 *** Trying ":0" in 4 seconds. Press Ctrl-C to abort.
11/03/2013 20:03:15 *** 1 2 3 4
11/03/2013 20:03:19 XOpenDisplay(":0") failed.
11/03/2013 20:03:19 Trying again with XAUTHLOCALHOSTNAME=localhost ...
11/03/2013 20:03:19 XOpenDisplay(":0") failed.
11/03/2013 20:03:19 Trying again with unset XAUTHLOCALHOSTNAME ...
11/03/2013 20:03:19
11/03/2013 20:03:19 ***************************************
11/03/2013 20:03:19 *** XOpenDisplay failed (:0)
*** x11vnc was unable to open the X DISPLAY: ":0", it cannot continue.
*** There may be "Xlib:" error messages above with details about the failure.
Some tips and guidelines:
** An X server (the one you wish to view) must be running before x11vnc is
started: x11vnc does not start the X server. (however, see the -create
option if that is what you really want).
** You must use -display <disp>, -OR- set and export your $DISPLAY
environment variable to refer to the display of the desired X server.
- Usually the display is simply ":0" (in fact x11vnc uses this if you forget
to specify it), but in some multi-user situations it could be ":1", ":2",
or even ":137". Ask your administrator or a guru if you are having
difficulty determining what your X DISPLAY is.
** Next, you need to have sufficient permissions (Xauthority)
to connect to the X DISPLAY. Here are some Tips:
- Often, you just need to run x11vnc as the user logged into the X session.
So make sure to be that user when you type x11vnc.
- Being root is usually not enough because the incorrect MIT-MAGIC-COOKIE
file may be accessed. The cookie file contains the secret key that
allows x11vnc to connect to the desired X DISPLAY.
- You can explicitly indicate which MIT-MAGIC-COOKIE file should be used
by the -auth option, e.g.:
x11vnc -auth /home/someuser/.Xauthority -display :0
x11vnc -auth /tmp/.gdmzndVlR -display :0
you must have read permission for the auth file.
See also '-auth guess' and '-findauth' discussed below.
** If NO ONE is logged into an X session yet, but there is a greeter login
program like "gdm", "kdm", "xdm", or "dtlogin" running, you will need
to find and use the raw display manager MIT-MAGIC-COOKIE file.
Some examples for various display managers:
gdm: -auth /var/gdm/:0.Xauth
-auth /var/lib/gdm/:0.Xauth
kdm: -auth /var/lib/kdm/A:0-crWk72
-auth /var/run/xauth/A:0-crWk72
xdm: -auth /var/lib/xdm/authdir/authfiles/A:0-XQvaJk
dtlogin: -auth /var/dt/A:0-UgaaXa
Sometimes the command "ps wwwwaux | grep auth" can reveal the file location.
Starting with x11vnc 0.9.9 you can have it try to guess by using:
-auth guess
(see also the x11vnc -findauth option.)
Only root will have read permission for the file, and so x11vnc must be run
as root (or copy it). The random characters in the filenames will of course
change and the directory the cookie file resides in is system dependent.
See also: http://www.karlrunge.com/x11vnc/faq.html
And this is the output of running processes, but I cant find any indication of a VNC server
Code:
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 3724 2156 ? Ss Mar10 0:00 /sbin/init
root 2 0.0 0.0 0 0 ? S Mar10 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S Mar10 0:03 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S Mar10 0:00 [kworker/u:0]
root 6 0.0 0.0 0 0 ? S Mar10 0:00 [migration/0]
root 7 0.0 0.0 0 0 ? S Mar10 0:00 [watchdog/0]
root 8 0.0 0.0 0 0 ? S Mar10 0:00 [migration/1]
root 10 0.0 0.0 0 0 ? S Mar10 0:03 [ksoftirqd/1]
root 11 0.0 0.0 0 0 ? S Mar10 0:00 [watchdog/1]
root 12 0.0 0.0 0 0 ? S< Mar10 0:00 [cpuset]
root 13 0.0 0.0 0 0 ? S< Mar10 0:00 [khelper]
root 14 0.0 0.0 0 0 ? S Mar10 0:00 [kdevtmpfs]
root 15 0.0 0.0 0 0 ? S< Mar10 0:00 [netns]
root 17 0.0 0.0 0 0 ? S Mar10 0:00 [sync_supers]
root 18 0.0 0.0 0 0 ? S Mar10 0:00 [bdi-default]
root 19 0.0 0.0 0 0 ? S< Mar10 0:00 [kintegrityd]
root 20 0.0 0.0 0 0 ? S< Mar10 0:00 [kblockd]
root 21 0.0 0.0 0 0 ? S< Mar10 0:00 [ata_sff]
root 22 0.0 0.0 0 0 ? S Mar10 0:00 [khubd]
root 23 0.0 0.0 0 0 ? S< Mar10 0:00 [md]
root 26 0.0 0.0 0 0 ? S Mar10 0:00 [khungtaskd]
root 27 0.0 0.0 0 0 ? S Mar10 0:02 [kswapd0]
root 28 0.0 0.0 0 0 ? SN Mar10 0:00 [ksmd]
root 29 0.0 0.0 0 0 ? SN Mar10 0:00 [khugepaged]
root 30 0.0 0.0 0 0 ? S Mar10 0:00 [fsnotify_mark]
root 31 0.0 0.0 0 0 ? S Mar10 0:00 [ecryptfs-kthrea]
root 32 0.0 0.0 0 0 ? S< Mar10 0:00 [crypto]
root 41 0.0 0.0 0 0 ? S< Mar10 0:00 [kthrotld]
root 44 0.0 0.0 0 0 ? S Mar10 0:00 [scsi_eh_0]
root 45 0.0 0.0 0 0 ? S Mar10 0:00 [scsi_eh_1]
root 46 0.0 0.0 0 0 ? S Mar10 0:00 [scsi_eh_2]
root 49 0.0 0.0 0 0 ? S Mar10 0:00 [scsi_eh_3]
root 50 0.0 0.0 0 0 ? S Mar10 0:00 [kworker/u:4]
root 52 0.0 0.0 0 0 ? S< Mar10 0:00 [binder]
root 72 0.0 0.0 0 0 ? S< Mar10 0:00 [deferwq]
root 73 0.0 0.0 0 0 ? S< Mar10 0:00 [charger_manager]
root 74 0.0 0.0 0 0 ? S< Mar10 0:00 [devfreq_wq]
root 76 0.0 0.0 0 0 ? S Mar10 0:36 [kworker/0:2]
root 266 0.0 0.0 0 0 ? S Mar10 0:00 [jbd2/sdb5-8]
root 267 0.0 0.0 0 0 ? S< Mar10 0:00 [ext4-dio-unwrit]
root 354 0.0 0.0 2820 612 ? S Mar10 0:00 upstart-udev-bridge --daemon
root 389 0.0 0.0 3304 1552 ? Ss Mar10 0:00 /sbin/udevd --daemon
root 583 0.0 0.0 0 0 ? S< Mar10 0:00 [kpsmoused]
root 622 0.0 0.0 3300 1140 ? S Mar10 0:00 /sbin/udevd --daemon
root 623 0.0 0.0 3300 1128 ? S Mar10 0:00 /sbin/udevd --daemon
root 668 0.0 0.0 2704 1000 ? Ss Mar10 0:00 rpcbind -w
root 714 0.0 0.0 2816 600 ? S Mar10 0:00 upstart-socket-bridge --daemon
root 718 0.0 0.0 0 0 ? S< Mar10 0:00 [led_workqueue]
root 747 0.0 0.0 0 0 ? S< Mar10 0:00 [kvm-irqfd-clean]
root 752 0.0 0.0 0 0 ? S Mar10 0:00 [irq/44-mei]
root 767 0.0 0.0 0 0 ? S< Mar10 0:00 [hd-audio0]
root 827 0.0 0.0 0 0 ? S Mar10 0:00 [jbd2/sdb6-8]
root 828 0.0 0.0 0 0 ? S< Mar10 0:00 [ext4-dio-unwrit]
root 832 0.0 0.0 0 0 ? S Mar10 0:00 [jbd2/sdd1-8]
root 833 0.0 0.0 0 0 ? S< Mar10 0:00 [ext4-dio-unwrit]
root 835 0.0 0.0 0 0 ? S Mar10 0:00 [jbd2/sda1-8]
root 836 0.0 0.0 0 0 ? S< Mar10 0:00 [ext4-dio-unwrit]
root 839 0.0 0.0 0 0 ? S Mar10 0:00 [jbd2/sdc1-8]
root 840 0.0 0.0 0 0 ? S< Mar10 0:00 [ext4-dio-unwrit]
root 843 0.0 0.0 0 0 ? S Mar10 0:00 [jbd2/sde1-8]
root 844 0.0 0.0 0 0 ? S< Mar10 0:00 [ext4-dio-unwrit]
root 847 0.0 0.0 0 0 ? S Mar10 0:00 [jbd2/sdf1-8]
root 848 0.0 0.0 0 0 ? S< Mar10 0:00 [ext4-dio-unwrit]
root 851 0.0 0.0 0 0 ? S Mar10 0:00 [jbd2/sdc2-8]
root 852 0.0 0.0 0 0 ? S< Mar10 0:00 [ext4-dio-unwrit]
root 867 0.0 0.1 22940 4736 ? Ss Mar10 0:00 smbd -F
root 869 0.0 0.0 0 0 ? S< Mar10 0:00 [rpciod]
102 870 0.0 0.0 3724 1668 ? Ss Mar10 0:01 dbus-daemon --system --fork
root 873 0.0 0.0 0 0 ? S< Mar10 0:00 [nfsiod]
root 890 0.0 0.0 7416 2864 ? Ss Mar10 0:00 /usr/sbin/modem-manager
root 905 0.0 0.0 2904 392 ? Ss Mar10 0:00 rpc.idmapd
root 908 0.0 0.0 4784 1644 ? Ss Mar10 0:00 /usr/sbin/bluetoothd
root 935 0.0 0.0 23456 1336 ? S Mar10 0:00 smbd -F
root 965 0.0 0.0 6688 2384 ? Ss Mar10 0:00 /usr/sbin/sshd -D
root 971 0.0 0.0 0 0 ? S< Mar10 0:00 [krfcommd]
statd 983 0.0 0.0 2960 1256 ? Ss Mar10 0:00 rpc.statd -L
root 985 0.0 0.1 33372 5272 ? Ssl Mar10 0:02 NetworkManager
root 993 0.0 0.0 25464 3912 ? Sl Mar10 0:03 /usr/lib/policykit-1/polkitd --no-debug
syslog 1028 0.0 0.0 31072 1432 ? Sl Mar10 0:05 rsyslogd -c5
root 1033 0.0 0.0 7432 2832 ? Ss Mar10 0:00 /usr/sbin/cupsd -F
root 1096 0.0 0.0 4632 872 tty4 Ss+ Mar10 0:00 /sbin/getty -8 38400 tty4
root 1108 0.0 0.0 4632 864 tty5 Ss+ Mar10 0:00 /sbin/getty -8 38400 tty5
root 1114 0.0 0.0 4632 864 tty2 Ss+ Mar10 0:00 /sbin/getty -8 38400 tty2
root 1115 0.0 0.0 4632 860 tty3 Ss+ Mar10 0:00 /sbin/getty -8 38400 tty3
root 1117 0.0 0.0 4632 864 tty6 Ss+ Mar10 0:00 /sbin/getty -8 38400 tty6
whoopsie 1129 0.0 0.1 26028 4572 ? Ssl Mar10 0:03 whoopsie
root 1130 0.0 0.0 3824 640 ? Ss Mar10 0:02 /usr/sbin/irqbalance
root 1135 0.0 0.0 2620 896 ? Ss Mar10 0:00 cron
daemon 1136 0.0 0.0 2476 124 ? Ss Mar10 0:00 atd
root 1193 0.0 0.0 0 0 ? S Mar10 0:00 [lockd]
root 1194 0.0 0.0 0 0 ? S< Mar10 0:00 [nfsd4]
root 1195 0.0 0.0 0 0 ? S< Mar10 0:00 [nfsd4_callbacks]
root 1196 0.0 0.0 0 0 ? S Mar10 0:03 [nfsd]
root 1197 0.0 0.0 0 0 ? S Mar10 0:02 [nfsd]
root 1198 0.0 0.0 0 0 ? S Mar10 0:03 [nfsd]
root 1199 0.0 0.0 0 0 ? S Mar10 0:02 [nfsd]
root 1200 0.0 0.0 0 0 ? S Mar10 0:04 [nfsd]
root 1201 0.0 0.0 0 0 ? S Mar10 0:02 [nfsd]
root 1202 0.0 0.0 0 0 ? S Mar10 0:02 [nfsd]
root 1203 0.0 0.0 0 0 ? S Mar10 0:02 [nfsd]
root 1207 0.0 0.0 3588 1560 ? Ss Mar10 0:00 /usr/sbin/rpc.mountd --manage-gids
root 1233 0.0 0.0 0 0 ? S< Mar10 0:00 [iprt]
xrdp 1275 0.0 0.0 23028 1724 ? S Mar10 0:03 /usr/sbin/xrdp
root 1277 0.0 0.0 23804 1944 ? S Mar10 0:00 /usr/sbin/xrdp-sesman
root 1344 0.0 0.0 4632 864 tty1 Ss+ Mar10 0:00 /sbin/getty -8 38400 tty1
root 1349 0.0 0.0 5492 3112 ? S Mar10 0:00 /sbin/dhclient -d -4 -sf /usr/lib/NetworkManager/nm-
nobody 1358 0.0 0.0 5720 1412 ? S Mar10 0:00 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground -
root 1478 0.0 0.0 13300 1788 ? Ss Mar10 0:00 nmbd -D
ntp 1515 0.0 0.0 5736 1968 ? Ss Mar10 0:04 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:109
root 1527 0.0 0.0 30200 3524 ? Sl Mar10 0:00 /usr/sbin/console-kit-daemon --no-daemon
root 1954 0.0 0.0 4008 892 ? S Mar10 0:00 /usr/sbin/xrdp-sessvc 1956 1955
ubuntu 1955 0.0 0.0 2596 632 ? S Mar10 0:00 /usr/bin/ck-launch-session /usr/bin/dbus-launch --ex
ubuntu 1956 0.0 0.3 19788 13928 ? S Mar10 1:00 Xvnc :10 -geometry 1024x768 -depth 16 -rfbauth /home
root 1970 0.0 0.0 14828 1080 ? Sl Mar10 0:00 xrdp-chansrv
ubuntu 1981 0.0 0.0 4092 208 ? Ss Mar10 0:00 /usr/bin/ssh-agent /usr/bin/ck-launch-session /usr/b
ubuntu 1986 0.0 0.0 5428 1096 ? S Mar10 0:00 /bin/bash /home/ubuntu/.xsession
ubuntu 1989 0.0 0.0 3844 532 ? S Mar10 0:00 /usr/bin/dbus-launch --exit-with-session /bin/bash /
ubuntu 1990 0.0 0.0 3848 1288 ? Ss Mar10 0:00 //bin/dbus-daemon --fork --print-pid 10 --print-addr
ubuntu 1991 0.0 0.1 49000 5896 ? Sl Mar10 0:01 lxsession -s Lubuntu -e LXDE
ubuntu 1994 0.0 0.0 27004 2660 ? Sl Mar10 0:00 /usr/lib/gvfs/gvfsd
ubuntu 1998 0.0 0.0 42764 2996 ? Sl Mar10 0:00 /usr/lib/gvfs//gvfsd-fuse -f /run/user/ubuntu/gvfs
ubuntu 2005 0.0 0.1 16788 7596 ? S Mar10 0:00 openbox --config-file /openbox/lubuntu-rc.xml
ubuntu 2009 0.0 0.3 122876 12272 ? Sl Mar10 0:01 lxpanel --profile Lubuntu
ubuntu 2011 0.0 0.0 7752 2344 ? S Mar10 0:00 xscreensaver -no-splash
ubuntu 2015 0.0 0.2 120064 10324 ? Sl Mar10 0:00 pcmanfm --desktop --profile lubuntu
ubuntu 2016 0.0 0.1 29504 5296 ? Sl Mar10 0:00 /usr/lib/policykit-1-gnome/polkit-gnome-authenticati
ubuntu 2017 0.0 0.1 29656 4068 ? Ssl Mar10 0:00 xfce4-power-manager
ubuntu 2023 0.0 0.1 54516 4896 ? Sl Mar10 0:03 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
ubuntu 2030 0.0 0.0 43340 2936 ? Sl Mar10 0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
root 2031 0.0 0.1 43292 4392 ? Sl Mar10 1:37 /usr/lib/udisks2/udisksd --no-debug
ubuntu 2040 0.0 0.0 6508 2368 ? S Mar10 0:00 /usr/lib/i386-linux-gnu/xfce4/xfconf/xfconfd
ubuntu 2041 0.0 0.0 3248 1416 ? S Mar10 0:00 /bin/dbus-daemon --config-file=/etc/at-spi2/accessib
ubuntu 2045 0.0 0.0 17092 2804 ? Sl Mar10 0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-
ubuntu 2046 0.0 0.0 15636 2688 ? Sl Mar10 0:01 /usr/lib/i386-linux-gnu/libmenu-cache1/libexec/menu-
ubuntu 2051 0.0 0.3 196332 14144 ? Sl Mar10 0:00 nm-applet
ubuntu 2077 0.0 0.0 9072 2228 ? S Mar10 0:00 /usr/lib/i386-linux-gnu/gconf/gconfd-2
root 2079 0.0 0.0 28652 3788 ? Sl Mar10 0:00 /usr/lib/upower/upowerd
ubuntu 2117 0.0 0.0 39048 2636 ? Sl Mar10 0:03 /usr/lib/gvfs/gvfs-afc-volume-monitor
ubuntu 2122 0.0 0.0 27616 2612 ? Sl Mar10 0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
ubuntu 2249 0.0 0.0 17428 2416 ? Sl Mar10 0:00 /usr/lib/gvfs/gvfsd-metadata
ubuntu 2261 0.0 0.1 62420 4140 ? Sl Mar10 0:00 /usr/lib/i386-linux-gnu/indicator-application-servic
ubuntu 2293 0.4 0.7 138420 30608 ? Sl Mar10 7:51 /usr/lib/virtualbox/VirtualBox
ubuntu 2305 0.2 0.1 20132 4952 ? S Mar10 4:36 /usr/lib/virtualbox/VBoxXPCOMIPCD
ubuntu 2310 0.3 0.2 33844 9524 ? Sl Mar10 6:30 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
ubuntu 2348 7.7 26.1 1153140 1049688 ? Sl Mar10 153:09 /usr/lib/virtualbox/VirtualBox --comment NAS --start
ubuntu 2420 6.1 15.5 730324 624040 ? Sl Mar10 121:21 /usr/lib/virtualbox/VirtualBox --comment plex --star
ubuntu 2510 10.1 15.6 740088 630492 ? Sl Mar10 198:15 /usr/lib/virtualbox/VirtualBox --comment Torrent --s
ubuntu 3012 0.4 0.2 102392 11268 ? Sl Mar10 7:32 lxtask
ubuntu 3501 0.0 0.0 15820 2804 ? Sl Mar10 0:00 /usr/lib/i386-linux-gnu/libmenu-cache1/libexec/menu-
ubuntu 4618 0.0 0.2 25516 10424 ? Sl Mar10 0:00 wish -
ubuntu 4622 0.0 0.0 4496 540 ? S Mar10 0:00 /usr/bin/tail -f /tmp/x11vnc.tray.70p9Vj
ubuntu 4861 0.0 0.0 36644 3292 ? Sl Mar10 0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.1 /org/gtk/gv
root 6080 0.0 0.0 0 0 ? S 11:52 0:00 [flush-8:0]
root 7431 0.0 0.0 0 0 ? S 14:14 0:06 [kworker/1:2]
root 7440 0.0 0.0 0 0 ? S 14:30 0:01 [kworker/0:1]
root 7524 0.0 0.0 0 0 ? S 17:30 0:00 [kworker/1:0]
root 7576 0.7 0.1 23488 4276 ? S 19:20 0:21 smbd -F
root 7590 0.0 0.0 0 0 ? S 19:47 0:00 [flush-8:16]
root 7598 0.0 0.0 10048 3400 ? Ss 19:55 0:00 sshd: ubuntu [priv]
ubuntu 7854 0.0 0.0 10048 1620 ? R 19:55 0:00 sshd: ubuntu@pts/0
ubuntu 7855 0.0 0.0 6788 2948 pts/0 Ss 19:55 0:00 -bash
ubuntu 7961 0.0 0.0 5460 1196 pts/0 R+ 20:05 0:00 ps -aux