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