[14:21] good mornign everyone [14:48] morning Xpistos [14:48] what up my peeps [14:48] not much Xpistos how about with you? [14:49] working on a project and I have hit a snag [14:49] I need some help from my boys today. Anybody know how to setup VNC on a headless server so when I try to vnc I can get a wm? [14:49] Simple. [14:49] Don't use a WM [14:49] :_) [14:50] Well let em tell you why [14:50] I have about 14 DVDs that I have to make for a present [14:50] and I can't do this in the command line [14:50] so I need a wm [14:50] but [14:50] each dvd takes like 5 hours+ to compile [14:51] I don't want to hose my laptop for this [14:51] Is the server local to your network or out on the internet somewhere. [14:51] Xpistos: i can help you out with that [14:51] So I want to be able to connect to the server in a gui and tell it to do the compileing [14:51] Ues it is local [14:51] we were messing around with that very thing on amazon ec2 [14:52] Right now, I have Openbox installed but set to run only when I startx on the box itself [14:52] Ideally for a WM on a server machine you'll want to install gnome / gdm / X / whatever change the runlevel to 3. [14:52] I installed vnc4server but I can't get the VNC to connect [14:52] did you put a :1 at the end of the address? [14:52] electricus: yep [14:52] that was internal [14:53] Doesn't the VNC server have to be running with a logged in session? [14:53] IE it can't connect to GDM, but has to connect to the logged in session. [14:53] I think it is running onf the server [14:53] Right, but there is a difference between the login manager and the actual WM session [14:54] the VNC server connects you to the WM session, but that's not running until you login. [14:54] I loging to the command line [14:54] Right, but you're not logging into the *WM* [14:54] Or starting the WM [14:54] Command line login isn't using the GUI login manager [14:55] So simply logging into the command line isn't launching a WM session. [14:55] so I have to change the runtime to 3? [14:55] Changing GDM/X to 3 just means it won't launch at boot time. [14:55] but will launch when you run startx. [14:56] but that won't happen from the command lin [14:56] e [14:56] startx should launch your WM, where restarting/starting GDM should launch the gui login manager, which allows you to login and it will launch the WM. [14:56] Actually... [14:56] here's what we did to get vnc'd into a ubuntu machine on ec2 cloud [14:56] https://docs.google.com/leaf?id=1bxa7CQ_YJE_nlbhSNXvr6hVUMgwygPmXrLTFlTlFF9c&sort=name&layout=list&pid=0B74xawNimMWlOGQyZGFmMDctYzI4My00NWJlLTkzNzUtNGNiNjFiNGRjMmE1 [14:56] If you terminal in, and run startx, it may launch the WM on the system. [14:56] specifically step 10 [14:57] electricus: Sorry, the page (or document) you have requested is not available. [14:57] what about this: https://docs.google.com/leaf?id=0B74xawNimMWlOGQyZGFmMDctYzI4My00NWJlLTkzNzUtNGNiNjFiNGRjMmE1&hl=en [14:58] CookLUG Ubuntu 10.10 EC2 Setup Procedure [14:58] sane [14:58] same [14:58] what's your email Xpistos? [14:58] greekpackrat@gmail.com [14:59] http://bitnami.org/article/how-to-install-ubuntu-desktop-on-ec2-ebs [14:59] May help [14:59] coming your way [14:59] Svpernova09: when I try to startx on the cmdln it says user not authroize to run the x server [14:59] Running it as root or a local user? [14:59] regular user* [14:59] I just told it to run as sudo [14:59] Try just "startx" [15:00] as non-root userr [15:00] that is what I did first [15:02] sudo startx worked but startx did not [15:02] Naturally. [15:02] I still hate hte sudo way of doing htings [15:02] Give me root and let me toast my system if I want to. hehhe [15:08] now it keeps saying no protocol specified over and over [15:11] electricus: xauth: error in locking authority file /home/xpistos/.Xauthority [15:11] xauth: error in locking authority file /home/xpistos/.Xauthority [15:11] what is the complete address you are using in your vnc client Xpistos? [15:12] kronos.olympus.net:4 [15:12] try kronos.olympus.net:5901 [15:13] also try kronos.olympus.net::5901 [15:13] when I do the first it says it can't find the second [15:14] and remoted Desktop viewer says it doesn't see the vnc server [15:14] what distro is the machine you are connecting to? [15:14] ubuntu, ubuntu server [15:14] oh.. i see. does that have a desktop environment preloaded? [15:14] i don't think it does [15:15] You'll have to install ubuntu-desktop on it. [15:15] ubuntu on the laptop does, the server doesn't [15:15] ok.. and you did that? [15:15] I did not install ubuntu-desktop [15:15] too many resources [15:16] ah. well that or some other desktop environment/window manager/xorg will be need4ed [15:16] lol [15:16] Yeah, you've gotta have a WM to run to connect to. [15:16] :-) [15:16] I have openbox on installed and xinit [15:18] did you install xorg Xpistos? [15:18] I installed xinit [15:19] you need to 'apt-get install xorg' [15:19] xinit is just one part of xorg [15:20] installing it now [15:21] did you create a non-root user? [15:21] yes [15:21] and you are running as that? [15:21] trying [15:22] well.. i guess it shouldn't matter technically [15:22] i would though just to do it [15:23] i would log out as root and ssh back in as the normal user that has sudo permissions (after xorg is finished installing) [15:23] I am not logged in as root [15:23] ok.. good deal [15:23] so you have sudo permission i see.. ok [15:24] got xorg yet? [15:24] uyes [15:24] yes [15:24] ok.. now in your home dir.. see if you have a .xinit file [15:25] ls -la [15:25] no i don't [15:26] ok.. do you have any other .x or .X... files? [15:26] .xauthority, .xauthority-c and .xauthority-l [15:26] ok [15:27] just to make sure .. while in your home dir.. do a 'cp /etc/skel/* . -Rvf' [15:29] Xpistos: that will give you all the files you need for a 'user profile' you could say :-) [15:31] then you need to add 'exec openbox-session' to your .xinit file (without quotes) [15:31] if there still is no .xinit file, just make one [15:32] should I delete the .Xauthority stuff [15:32] no need [15:32] then kill any/all x related processes.. kill all vncserver processes.. [15:32] cp: cannot stat `/etc/skel/*': No such file or directory [15:33] don't use quotes.. [15:33] commands are just typically surrounded with 'quotes' for clarity when chatting [15:33] I didn''t [15:34] cp /etc/skel/* . -Rvf [15:34] yes [15:34] yeah, that is what I did when I got the error [15:34] ok..never mind then.. must be a ubuntu thing [15:34] or ubuntu server thing i should say [15:35] ok.. then just add 'exec openbox-session' to your .xinit file (without quotes) [15:35] if there still is no .xinit file, just make one [15:37] oh crap.. sorry about that Xpistos [15:37] the file is .xinitrc NOT .xinit my bad [15:38] just enter the command 'nano .xinitrc' while in your home dir [15:38] what do you see? [15:40] Xpistos: I'll be here hangin out if you need more help/get caught up [15:43] sorry had a call [15:43] trying now [15:49] cat .xinitrc says "exec openbox-session [15:49] ok..very good [15:50] no what should I don [15:50] do [15:50] kill any/all x related processes.. kill all vncserver processes.. [15:50] or just simply reboot to simplify that [15:50] ps isn't showing any [15:50] just bash and ps [15:51] do a 'ps aux|grep vnc' [15:52] do you get any output? [15:52] if so kill kill kill [15:53] electricus: glad i read the backlog a little i thought you were having some anger issues :) [15:53] :-) [15:54] I killed everything but xpistos 10881 0.0 0.0 3324 804 pts/0 S+ 09:53 0:00 grep --color=auto vnc [15:54] won't die [15:54] ah..just reboot the server [15:54] I hate to do it but here goes [15:54] make life easier on yourself :-) [15:58] ok, i did but it still shows a process running [15:58] vncserver process? [15:58] xpistos 2179 0.0 0.0 3324 812 pts/0 S+ 09:57 0:00 grep --color=auto vnc [15:58] ok..well just do a startx now [15:58] user or sudo [15:58] user only [15:59] X: user not authorized to run the X server, aborting. [15:59] xinit: No such file or directory (errno 2): unable to connect to X server [15:59] xinit: No such process (errno 3): Server error. [15:59] xauth: error in locking authority file /home/xpistos/.Xauthority [15:59] when logging into the server do you log in as root first and then su to be normal user? or do you log in directly as the normal user? [16:00] directly as the user [16:00] I haven't enable the root login and do all "admin" stuff as sudo [16:00] i see [16:01] how about trying to create another user.. [16:02] 'sudo useradd username -m' [16:02] 'sudo passwd username' [16:03] then log out and log back in with the new username [16:08] Xpistos: have you considered using webmin if you need to administer things with a gui? [16:08] it may be a much simpler solution for you then running xorg/openbox [16:09] I have webmin installed but I use it sparingly [16:09] ok..just asking [16:09] I need the gui to do some dvd creation in devede [16:10] okay, i got it working in my vm [16:10] good deal [16:10] but not on my server [16:12] Xpistos: if you are running a windows workstation.. you could just use DeVeDe build for windows [16:12] seems like more of a desktop kind of thing anyway [16:12] I am not [16:13] ok.. well why not just use your linux desktop [16:13] because the files take like 5 hours to compile [16:13] wow [16:15] i would just run a desktop version of linux in your vm then.. would make things much simpler.. plus your going to need tons of codecs and stuff like that i would assume [16:15] just seems like using a server distro for that kind of thing is the long road [16:15] I don't have a vm on the server [16:15] and again, that would take up to many resources [16:16] what I should do is just install gdm and then tell it not to start until I start it [16:16] but I am not sure if I can do tht from the commnd line [16:16] hmm..well you are going to be getting about 2/3 of the gtk desktop.. just to get devede running [16:17] a stripped down ubunut gnome desktop can run on less than 200mb of ram after startup [16:19] and even trying to run a lightweight desktop like open box.. even after loading up all you need.. is going to be about that anyway [16:19] honestly [16:20] i have a friend who runs 'ratpoison' as his desktop.. the pinnacle super minimalistic person you could imagine. and he has nearly the entire gtk system just to run various apps / web browser /etc.. [16:21] i got it [16:21] well internally I got it [16:21] good deal [16:21] I have to set the firewall to let me connect from here but my laptop is connected at the house [16:21] www.arsgeek.com/2006/09/26/how-to-connect-to-your-headless-server-with-vncgui/ [16:26] ah tightvnc.. much better [16:26] it isn't pretty but it will get the job done [16:26] lol [16:26] yep [16:26] and I am connected from work direct now too [16:27] hows the screen refresh/performance? [16:27] good [16:27] nice [16:27] or good enough anyway [16:43] something entertaining: http://a3.twimg.com/profile_background_images/2963037/4cc84fd3aa07c31901cb669b5ab3565689bdb09e.jpg === pleia2_ is now known as pleia2 === Xpistos is now known as Xpistos|lunch === excid3|mbp is now known as lock2box === lock2box is now known as excid3|mbp === Xpistos|lunch is now known as Xpisosts === Xpisosts is now known as Xpistos