Server :: Start Mongrel In Ssh Session And Then Exit In Ubuntu 10.04?
Oct 6, 2010
I'm deploying a Rails application in a Ubuntu 10.04 server withmongrel web server (a lightweight http web server). I connect to server and do stuffs in a ssh client(PuTTY on windows). And I'm getting stuck with a strange issue:1. After I connected to server, I start mongrel with : $ start-stop-daemon -S -d . -x script/server -b -- -p 80802. I left the ssh console and launch firefox from my Win7 box and openthe website, it runs well. I can see the homepage3. I go back to the ssh console. Close the terminal (and window too)it by : $ exit4. Then in firefox, I press F5 to refresh and nothing shows up. It'sjust an empty space in whole webpage. I tried to use addon to capturethe HTTP data and see that te server returns nothing , even HTTPheaders5. I connect to server again, run "ps -Af" to check and see that the process's still running. And again, leave the console, switch to firefox and refresh -> the homepage shows everything. 6. But if I exit the ssh session and refresh browser, the web server returns nothing againI thought that using start-stop-daemon command could help me runmongrel as daemon and then I can exit my session just as apache does.
I'm trying to install RubyOnRails, I'm at the point of installing the gem modules mongrel, mysql and passenger Running gem install mongrel Returns
Code: Building native extensions. This could take a while... ERROR: Error installing mongrel: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb
When I started my session, a box saying: "An error occurred the startup of the Akonadi server. The following self-tests are supposed to help to tracking down and solving the problem. When requesting support or reporting bugs, please always include this report:
I just installed Ubuntu 10.04 on an old desktop computer so that I could use it for Rails. I installed Ruby, rubygems and Rails using
Code: sudo apt-get install and it works fine, but I cannot install Mongrel through
Code:sudo gem install mongrel,it's giving me this block of error message:
Code:Building native extensions. This could take a while...ERROR: Error installing mongrel:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
extconf.rb:8:in `require': no such file to load -- mkmf (LoadError)from extconf.rb:8.I tried removing the rubygem 1.3.5 package that came with the Ubuntu repository and downloaded Rubygems 1.3.6 from rubygems.org, but when I tried the same command, it still gives me the same error.
I'm just wondering how to exit out of an a session in Fedora 11. I used to be able to use ctrl+alt+F1,2,3..etc to go to command line. Please don't tell me you no longer allow users to exit out of x-sessions. Also what about verbose mode during boot up. I used to be able to boot interactivly to diagnose problems.
I noticed that if I have "exit" in a bash script file., e.g. script.sh,that when the word "exit" is reached, and the script file being executed is not in the PATH nvironment, i.e. ". script.sh", the whole konsole shell profile is exited! What gives here? Is there another command compatible to "exit" to prevent this, or will I just have the leave the "." part in the PATH enviroment, which is, to my understanding, is not recommended? I desire for a "goto" function in bash script files
After update in Lucid, cant start the session. As only critical part was Nautilus (on 2.31), how to fix it? I don't have in GDM any session option and no way to approach to terminal and start any session. Only way can be somehow before GDM (Lucid by default don't have Grub) or via Live USB (but how?).
I am trying to VNC into a server to which I have no physical access (but I can ask someone to start a session or something) but can ssh into. I have gotten a VNC session working by sshing in and running vncserver, although once the VNC session died in a confusing manner.
I don't know how to start a VNC session any way but vncserver, which is odd since I'm sure that Ubuntu's Remote desktop should somehow allow me to do this by default. The server by the way is being used as a desktop by someone else. Also, how do I tell if my VNC is encrypted and if it isn't how do I make sure it is?
one month I switch the workspaces(desk1 to desk2), and open some applications, then I tried to save them. till now even I close them always, but they appear after each startup.
I'm having issues logging into my system... After authenticating via GDM, the screen goes black with only the mouse showing and remains this way indefinitely. At first the hard disk is active to a similar degree as it was when logins were successful, but then the system (apart from being able to move the mouse) is unresponsive.
If left for long enough so that the screen goes into power-saving mode, moving the mouse brings up the unlock dialogue that you normally get if you set your computer to lock itself after a period of idleness.
I suspect some sort of file corruption, as I have not changed any settings recently. I have forced checks on all of my disks in the hope it would solve this problem. I have also tested logging in on a freshly created user account I created which gives the same result. Also, starting an xterm session from GDM works fine.
How do i start an alternate X session in ubuntu...generally Ctrl + Alt + F7-F11 is reserved for alternate X sessions right. If I open a tty1 and do something like xinit -- :1 I guess I have something like an X session but it doesn't have any desktop environment like Gnome...what i want to do is if I am running a fullscreen game or something in Xsession:0 can I do something else in a new Xsession?
I have an empty X session running, and I want to run kde inside it. I can run whatever software I want in it, actually (well, I can't move the windows and so, but that is normal), but for some reason, kdm doesn't work. What I have is a X display and a xterm inside.
In linux, creating thread is same as process (clone()), except the virtual address space gets shared with the parent.If a running main process(thread) creates new thread, and if main thread exits, why should the new thread too exit? both are different entities, The same doesn't happen if the child thread exits, the parent thread would be alive.
I get an error message that says phpMyAdmin - Error, Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
So I did some googling and found a post here {URL]... which speaks about resetting the ownership of the session directory. However I am wondering how I can find out what the owner if the directory is (if its root or admin or ...)
It's strange because it all worked fine just about two hours ago and I am not sure since I have the server automatically download security updates if there is something it automatically downloaded that caused this. Also how to make the server stop automatically downloading security updated?
I was wondering how you exited x server in ubuntu. I relatively new to linux. I wanted to install the newest nvidia driver, and they said you needed to exit x server when running the driver installer. Someone already told me to try ctrl-alt- F6, which didn't work. That just put me in a virtual terminal that still had x-server running. So if anyone knows how to exit x-server,
Gnome sessions started hanging during login on a debian lenny box, and I can only think it's related to a recent package update as it was working fine before the last set. It affects all user accounts and hangs before the applications menu or any icons appear on the panels, but after after the top /bottom panels and the desktop background appears.
I'm trying to create a new gdm session in tty8, so I can switch between tty7 and tty8 running simultaneously.
How can I accomplish this? I found some website suggesting to run startx and also startx gnome-session -- :1 vt8 Both result in a black screen, blocking the overall system, not allowing me to go to tty1 nor any tty. I have to run REINSUB to restart the system.
# I don't know if tty is the exact term to refer to the CTRL+ALT+Fx virtual terminals.
When KDE starts up a new session, it restores the progs that were running at log out last time.I am running skype and that prog is brought back but I suspect that KDE is restarting the "bin" (skype-bin) rather than the startup script (skpe) which contains the necessary "LD_PRELOAD" stuff essential to get the webcam operating OK.I can't find where KDE stores the session info, any ideas?
This is the deal. I installed kubuntu yesterday. Now when it prompts the start session screen, I write the user and password, click enter and then starts loading a new screen. It shows an hdd draw, and starts loading some other images, and all of a sudden it prompts me again at the start session screen.
i am one gnome-user, but need to set up kde/Kubuntu/Mint 9 KDE on my wifes computer. So, i have few questions:
1) how to make kde not to start/memorize previous session after reboot?
2) in gnome-power-manager i can read Battery Health (mAh, Design Capacity...)-something like that in KDE? In KDE Power manager i have no such readings.
3) is there some cleaning tool as for gnome ubuntu-tweak?
Recently I deleted files from my root/share folder in an attempt to remove a program which had made the system virtually unusable. Upon reboot of the system I accessed the partition I had just edited and I found that I was unable to login using the login manager, every time I hit login it just returns me to the same screen displaying the message: unable to start session.
I recently installed debian 8 stretch with xfce. Since the first time I boot, I have problem starting my X session: from lightdm I always attemped 2 or 3 times before it login (it returned me on lightdm prompt after a short splash screen).
Now it stopped working: the only way I can start xsession is running startx as root. When I try as user it starts the "splash" and return me to the tty with this error message:
Code: Select allServer terminated with error (1). Closing log file(EE)
This is my ~/.local/share/xorg/Xorg.0.log
Code: Select all[ 27.703] X.Org X Server 1.18.2 Release Date: 2016-03-11 [ 27.704] X Protocol Version 11, Revision 0 [ 27.704] Build Operating System: Linux 3.16.0-4-amd64 i686 Debian [ 27.704] Current Operating System: Linux debian 4.3.0-1-686-pae #1 SMP Debian 4.3.5-1 (2016-02-06) i686
[Code] .....
And this is my /etc/X11//Xsession
Code: Select all#!/bin/sh # # /etc/X11/Xsession # # global Xsession file -- used by display managers and xinit (startx) # $Id: Xsession 967 2005-12-27 07:20:55Z dnusinow $
[Code] ....
and this the .xsession-errors:
Code: Select allXsession: X session started for lucatastrophe at Tue Mar 29 10:21:09 CEST 2016 localuser:lucatastrophe being added to access control list openConnection: connect: No such file or directory cannot connect to brltty at :0 dbus-update-activation-environment: setting MAIL=/var/mail/lucatastrophe
[Code] ...
I try to reconfigure Xorg but the Xorg -configure command result in another segmentation fault.
I think that the problem could be related with old configuration (when I install this version of debian I maintain the /home partition and my previous OS was debian 7 with xfce).
This morning I did a minimal install of Debian to test out xfce and lxde, purely out of curiosity.I tried LXDE first. For various reasons I wasn't entirely pleased, so I removed it and installed xfce4 in a vanilla openbox session. Upon reboot, I was greeted with the CLI. I generated a new xorg.conf file to see if the transition to xfce had altered it, but was greeted with the CLI again after another reboot. I manually started X with 'startx' and noted that the xfce session manager was installed. The xdm session manager, however, was not.Installing xdm fixed the problem, kind of. I am now greeted with an xdm login screen rather than an xfce session login screen. What can I do to have xfce-session be my default login screen?
On my machine, I am not able to login using any of the user account or root. It's showing this message:
Then comes another message: YOur session lasted for less than 10 seconds. Try logging using Failsfe. .... session_child_run: Could not exec /etc/X11/xinit/Xsession default
I tried to use the failsafe as well, but nothing seems to work.
Would someone please help me regarding this issue?