/srv/irclogs.ubuntu.com/2010/11/23/#ubuntu-us-tn.txt

wrstgood mornign everyone14:21
wrstmorning Xpistos14:48
Xpistoswhat up my peeps14:48
wrstnot much Xpistos how about with you?14:48
Xpistosworking on a project and I have hit a snag14:49
XpistosI 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
Svpernova09Simple.14:49
Svpernova09Don't use a WM14:49
Svpernova09:_)14:49
XpistosWell let em tell you why14:50
XpistosI have about 14 DVDs that I have to make for a present14:50
Xpistosand I can't do this in the command line14:50
Xpistosso I need a wm14:50
Xpistosbut14:50
Xpistoseach dvd takes like 5 hours+ to compile14:50
XpistosI don't want to hose my laptop for this14:51
Svpernova09Is the server local to your network or out on the internet somewhere.14:51
electricusXpistos: i can help you out with that14:51
XpistosSo I want to be able to connect to the server in a gui and tell it to do the compileing14:51
XpistosUes it is local14:51
electricuswe were messing around with that very thing on amazon ec214:51
XpistosRight now, I have Openbox installed but set to run only when I startx on the box itself14:52
Svpernova09Ideally for a WM on a server machine you'll want to install gnome / gdm / X / whatever change the runlevel to 3.14:52
XpistosI installed vnc4server but I can't get the VNC to connect14:52
electricusdid you put a :1 at the end of the address?14:52
Xpistoselectricus: yep14:52
Xpistosthat was internal14:52
Svpernova09Doesn't the VNC server have to be running with a logged in session?14:53
Svpernova09IE it can't connect to GDM, but has to connect to the logged in session.14:53
XpistosI think it is running onf the server14:53
Svpernova09Right, but there is a difference between the login manager and the actual WM session14:53
Svpernova09the VNC server connects you to the WM session, but that's not running until you login.14:54
XpistosI loging to the command line14:54
Svpernova09Right, but you're not logging into the *WM*14:54
Svpernova09Or starting the WM14:54
Svpernova09Command line login isn't using the GUI login manager14:54
Svpernova09So simply logging into the command line isn't launching a WM session.14:55
Xpistosso I have to change the runtime to 3?14:55
Svpernova09Changing GDM/X to 3 just means it won't launch at boot time.14:55
Svpernova09but will launch when you run startx.14:55
Xpistosbut that won't happen from the command lin14:56
Xpistose14:56
Svpernova09startx 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
Svpernova09Actually...14:56
electricushere's what we did to get vnc'd into a ubuntu machine on ec2 cloud14:56
electricushttps://docs.google.com/leaf?id=1bxa7CQ_YJE_nlbhSNXvr6hVUMgwygPmXrLTFlTlFF9c&sort=name&layout=list&pid=0B74xawNimMWlOGQyZGFmMDctYzI4My00NWJlLTkzNzUtNGNiNjFiNGRjMmE114:56
Svpernova09If you terminal in, and run startx, it may launch the WM on the system.14:56
electricusspecifically step 1014:56
Xpistoselectricus: Sorry, the page (or document) you have requested is not available.14:57
electricuswhat about this:  https://docs.google.com/leaf?id=0B74xawNimMWlOGQyZGFmMDctYzI4My00NWJlLTkzNzUtNGNiNjFiNGRjMmE1&hl=en14:57
electricusCookLUG Ubuntu 10.10 EC2 Setup Procedure14:58
Xpistossane14:58
Xpistossame14:58
electricuswhat's your email Xpistos?14:58
Xpistosgreekpackrat@gmail.com14:58
Svpernova09http://bitnami.org/article/how-to-install-ubuntu-desktop-on-ec2-ebs14:59
Svpernova09May help14:59
electricuscoming your way14:59
XpistosSvpernova09: when I try to startx on the cmdln it says user not authroize to run the x server14:59
Svpernova09Running it as root or a local user?14:59
Svpernova09regular user*14:59
XpistosI just told it to run as sudo14:59
Svpernova09Try just "startx"14:59
Svpernova09as non-root userr15:00
Xpistosthat is what I did first15:00
Xpistossudo startx worked but startx did not15:02
Svpernova09Naturally.15:02
Svpernova09I still hate hte sudo way of doing htings15:02
Svpernova09Give me root and let me toast my system if I want to. hehhe15:02
Xpistosnow it keeps saying no protocol specified over and over15:08
Xpistoselectricus: xauth:  error in locking authority file /home/xpistos/.Xauthority15:11
Xpistosxauth:  error in locking authority file /home/xpistos/.Xauthority15:11
electricuswhat is the complete address you are using in your vnc client Xpistos?15:11
Xpistoskronos.olympus.net:415:12
electricustry kronos.olympus.net:590115:12
electricusalso try kronos.olympus.net::590115:13
Xpistoswhen I do the first it says it can't find the second15:13
Xpistosand remoted Desktop viewer says it doesn't see the vnc server15:14
electricuswhat distro is the machine you are connecting to?15:14
Xpistosubuntu, ubuntu server15:14
electricusoh.. i see.  does that have a desktop environment preloaded?15:14
electricusi don't think it does15:14
Svpernova09You'll have to install ubuntu-desktop on it.15:15
Xpistosubuntu on the laptop does, the server doesn't15:15
electricusok.. and you did that?15:15
XpistosI did not install ubuntu-desktop15:15
Xpistostoo many resources15:15
electricusah. well that or some other desktop environment/window manager/xorg will be need4ed15:16
Svpernova09lol15:16
Svpernova09Yeah, you've gotta have a WM to run to connect to.15:16
electricus:-)15:16
XpistosI have openbox on installed and xinit15:16
electricusdid you install xorg Xpistos?15:18
XpistosI installed xinit15:18
electricusyou need to 'apt-get install xorg'15:19
electricusxinit is just one part of xorg15:19
Xpistosinstalling it now15:20
electricusdid you create a non-root user?15:21
Xpistosyes15:21
electricusand you are running as that?15:21
Xpistostrying15:21
electricuswell.. i guess it shouldn't matter technically15:22
electricusi would though just to do it15:22
electricusi would log out as root and ssh back in as the normal user that has sudo permissions (after xorg is finished installing)15:23
XpistosI am not logged in as root15:23
electricusok.. good deal15:23
electricusso you have sudo permission i see.. ok15:23
electricusgot xorg yet?15:24
Xpistosuyes15:24
Xpistosyes15:24
electricusok.. now in your home dir.. see if you have a .xinit file15:24
electricusls -la15:25
Xpistosno i don't15:25
electricusok.. do you have any other .x or .X... files?15:26
Xpistos.xauthority, .xauthority-c and .xauthority-l15:26
electricusok15:26
electricusjust to make sure .. while in your home dir.. do a 'cp /etc/skel/* . -Rvf'15:27
electricusXpistos: that will give you all the files you need for a 'user profile' you could say :-)15:29
electricusthen you need to add 'exec openbox-session' to your .xinit file (without quotes)15:31
electricusif there still is no .xinit file, just make one15:31
Xpistosshould I delete the .Xauthority stuff15:32
electricusno need15:32
electricusthen kill any/all x related processes.. kill all vncserver processes..15:32
Xpistoscp: cannot stat `/etc/skel/*': No such file or directory15:32
electricusdon't use quotes..15:33
electricuscommands are just typically surrounded with 'quotes' for clarity when chatting15:33
XpistosI didn''t15:33
Xpistoscp /etc/skel/* . -Rvf15:34
electricusyes15:34
Xpistosyeah, that is what I did when I got the error15:34
electricusok..never mind then.. must be a ubuntu thing15:34
electricusor ubuntu server thing i should say15:34
electricusok.. then just add 'exec openbox-session' to your .xinit file (without quotes)15:35
electricusif there still is no .xinit file, just make one15:35
electricusoh crap.. sorry about that Xpistos15:37
electricusthe file is .xinitrc NOT .xinit  my bad15:37
electricusjust enter the command 'nano .xinitrc' while in your home dir15:38
electricuswhat do you see?15:38
electricusXpistos: I'll be here hangin out if you need more help/get caught up15:40
Xpistossorry had a call15:43
Xpistostrying now15:43
Xpistoscat .xinitrc says "exec openbox-session15:49
electricusok..very good15:49
Xpistosno what should I don15:50
Xpistosdo15:50
electricus kill any/all x related processes.. kill all vncserver processes..15:50
electricusor just simply reboot to simplify that15:50
Xpistosps isn't showing any15:50
Xpistosjust bash and ps15:50
electricusdo a 'ps aux|grep vnc'15:51
electricusdo you get any output?15:52
electricusif so kill kill kill15:52
wrstelectricus: glad i read the backlog a little i thought you were having some anger issues :)15:53
electricus:-)15:53
XpistosI killed everything but xpistos  10881  0.0  0.0   3324   804 pts/0    S+   09:53   0:00 grep --color=auto vnc15:54
Xpistos won't die15:54
electricusah..just reboot the server15:54
XpistosI hate to do it but here goes15:54
electricusmake life easier on yourself :-)15:54
Xpistosok, i did but it still shows a process running15:58
electricusvncserver process?15:58
Xpistosxpistos   2179  0.0  0.0   3324   812 pts/0    S+   09:57   0:00 grep --color=auto vnc15:58
electricusok..well just do a startx now15:58
Xpistosuser or sudo15:58
electricususer only15:58
XpistosX: user not authorized to run the X server, aborting.15:59
Xpistosxinit:  No such file or directory (errno 2):  unable to connect to X server15:59
Xpistosxinit:  No such process (errno 3):  Server error.15:59
Xpistosxauth:  error in locking authority file /home/xpistos/.Xauthority15:59
electricuswhen 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?15:59
Xpistosdirectly as the user16:00
XpistosI haven't enable the root login and do all "admin" stuff as sudo16:00
electricusi see16:00
electricushow about trying to create another user..16:01
electricus'sudo useradd username -m'16:02
electricus'sudo passwd username'16:02
electricusthen log out and log back in with the new username16:03
electricusXpistos: have you considered using webmin if you need to administer things with a gui?16:08
electricusit may be a much simpler solution for you then running xorg/openbox16:08
XpistosI have webmin installed but I use it sparingly16:09
electricusok..just asking16:09
XpistosI need the gui to do some dvd creation in devede16:09
Xpistosokay, i got it working in my vm16:10
electricusgood deal16:10
Xpistosbut not on my server16:10
electricusXpistos: if you are running a windows workstation.. you could just use DeVeDe build for windows16:12
electricusseems like more of a desktop kind of thing anyway16:12
XpistosI am not16:12
electricusok.. well why not just use your linux desktop16:13
Xpistosbecause the files take like 5 hours to compile16:13
electricuswow16:13
electricusi 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 assume16:15
electricusjust seems like using a server distro for that kind of thing is the long road16:15
XpistosI don't have a vm on the server16:15
Xpistosand again, that would take up to many resources16:15
Xpistoswhat I should do is just install gdm and then tell it not to start until I start it16:16
Xpistosbut I am not sure if I can do tht from the commnd line16:16
electricushmm..well you are going to be getting about 2/3 of the gtk desktop.. just to get devede running16:16
electricusa stripped down ubunut gnome desktop can run on less than 200mb of ram after startup16:17
electricusand even trying to run a lightweight desktop like open box.. even after loading up all you need.. is going to be about that anyway16:19
electricushonestly16:19
electricusi 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:20
Xpistosi got it16:21
Xpistoswell internally I got it16:21
electricusgood deal16:21
XpistosI have to set the firewall to let me connect from here but my laptop is connected at the house16:21
Xpistoswww.arsgeek.com/2006/09/26/how-to-connect-to-your-headless-server-with-vncgui/16:21
electricusah tightvnc.. much better16:26
Xpistosit isn't pretty  but it will get the job done16:26
electricuslol16:26
electricusyep16:26
Xpistosand I am connected from work direct now too16:26
electricushows the screen refresh/performance?16:27
Xpistosgood16:27
electricusnice16:27
Xpistosor good enough anyway16:27
electricussomething entertaining:  http://a3.twimg.com/profile_background_images/2963037/4cc84fd3aa07c31901cb669b5ab3565689bdb09e.jpg16:43
=== 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

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!