Hi, I just go my hardware. A NUC with N3700 CPU, 4GB RAM and 120GB SSD. I have decided on Linux. I have some(not a lot) experience with Linux from the Raspberry Pi and configuring my web sites on a hosted server.
My question is, should I install “Ubuntu Server” (LTS) or “Ubuntu Desktop” on my server? Will the server version be much faster. I did some research, and seems like server does not have any GUI, which I might want to use?
If I choose server, can I still run a GUI on it? On my Raspberry Pi for example it always start in terminal mode, but I can easily start the gui by entering the command “startx”.
If I choose the desktop, can I prevent it from auto starting to save resources?
Your’re right, Ubuntu server come without a GUI. But you can easily upgrade it to a desktop by simply installing “ubuntu-desktop” package. If you have an Ubuntu desktop, you can boot it directly on command line terminal by editing the grub. Here is a tutorial for this: http://ubuntuhandbook.org/index.php/2014/01/boot-into-text-console-ubuntu-linux-14-04/
Will installing “ubuntu-desktop” package on “Ubuntu Server”(www.ubuntu.com/download/server) add all additional software that is included with “Ubuntu Desktop”(www.ubuntu.com/download/desktop)? Or, will it still be most lightweight than installing “Ubuntu Desktop”?
The main reason I think I should choose “Ubuntu Server” is because I think it will be more lightweight, and have less services/programs running. If this is not the case, I think “Ubuntu Desktop” would be more appropriate for a Linux beginner like myself.
The difference between desktop and server, is the desktop packages and the installation process. You can boot it directly without GUI, but went you startx your desktop, then this is ressources hungry. So you should try lightweight “Desktop Environments”.There is some linux distro like Xubuntu that come with Xfce DE, or Ubuntu Mate with Mate DE. My first server was a Xubuntu. Or you can install Ubuntu server, and install lxde, or xfce, or mate, or another DE, but you will have to do this from command line.
That looks good, I believe.
Maybe a better question: what exactly do you mean by nothing?
In the terminal there should indeed be nothing anymore, in other words you
would expect simply the system prompt.
What happens if you go connect to the openhab server in a browser
The address is: 111.111.111.111:8080
with 111.111.111.111 the ip Number of your machine that runs openhab. Do
you see any error messages?
Did you check the logs, are there any error messages?
I did not got any errors but en error when i tried to open up the browser. Do i need to login with the same computer?
Unable to connect
Firefox can’t establish a connection to the server at 213.89.66.16:8080.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer’s network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
I did also login to my router and got IP 192.168:X.X
so when I did try 192.xxx.x.x:8080
I got this message below, and my sitemap folder is empty. WHen a new istall is done should it me a Sitemap file in the sitemap folder?
HTTP ERROR 500
Problem accessing /openhab.app. Reason:
Sitemap ‘default’ could not be found
Caused by:
org.openhab.ui.webapp.render.RenderException: Sitemap ‘default’ could not be found
at org.openhab.ui.webapp.internal.servlet.WebAppServlet.service(WebAppServlet.java:115)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
at org.eclipse.jetty.server.Server.handle(Server.java:350)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
at java.lang.Thread.run(Thread.java:748)