Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
and when i tried to start the x server it shows like this..
[root@localhost /]# startX
-bash: startX: command not found
[root@localhost /]# startx
xauth: creating new authority file /root/.serverauth.14699
xauth: creating new authority file /root/.Xauthority
xauth: creating new authority file /root/.Xauthority
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
Invalid MIT-MAGIC-COOKIE-1 keygiving up.
xinit: Resource temporarily unavailable (errno 11): unable to connect to X server
xinit: No such process (errno 3): Server error.
[root@localhost /]#
Kindly tell me what is the problem and how to solve this...
- First off you should not run X programs as root as much as possible.
- Second off if you are on windows then you need to run an X server the to be able to forward X traffic to.
- Third in putty setting you will see Tunnels window. Click "Enable X11 forwarding". This will forward the X traffic to you local X server.
- Fourth looks like your running a X window session already on the box in question? hence "Server is already active for display 0"
Have you installed an X server on the Windows machine? If not, then you need to do so. Xming is an X server for Windows. Start the server before running PuTTY and enable X11 forwarding as described above. You should be good to go after doing all that.
Have you installed an X server on the Windows machine? If not, then you need to do so. Xming is an X server for Windows. Start the server before running PuTTY and enable X11 forwarding as described above. You should be good to go after doing all that.
Hi,
I installed xming and used PuttY.. it is working good.. Thanks for that...
Now I want to use in linux machine itself.. not in windows by using PuttY.. when i tried to run the same example, it is showing the same error..
"Cannot connect to Xserver"
Should i download and install xserver for linux also to run the qt examples..?
Did you start the xserver (xming) on the windows side?
Maybe you don't realize, but a program you run in Linux is the X Windows client. The terminal is the X server. You don't even need X running on the remote server to run programs. Simply run the program without trying startx.
I haven't used xming but I have used cygwin/X. You may be able to bring the X root screen to the front. If so look at your DISPLAY variable in putty. If it is ":10.0" or ":11.0" you can start the desktop environment by running the appropriate command, such as "startkde" or "gnome-session". I'd recommend a light weight environment such as XFCE.
Make sure that putty is configured to work with X. Seeing the "display :10.0" message, it probably is.
---
If the Xming server isn't running, you may have the equivalent of "startx" installed on the windows machine to start up the Xming server. For cygwin/X it's called "startxwin.bat".
Run it locally, outside of the putty session.
Now I want to use in linux machine itself.. not in windows by using PuttY.. when i tried to run the same example, it is showing the same error..
"Cannot connect to Xserver"
Should i download and install xserver for linux also to run the qt examples..?
Kindly reply..
Thanks,
Balaji.S.R
Yes, you'll need the X server installed on Linux if you want to run Qt programs, or any other graphical programs. It looked like you had X installed already and "startx" seemed to imply that the server was running (i.e. it said "Server is already active for display 0"). If that's still the case, then usually you use Ctrl+Alt+F7 to take you to X.
Also, do you have a regular user account? If not, I suggest you create one and use it for day-to-day stuff. There are many reasons not to use the root account all the time, do a search if you want to know more.
My simple project using phonon compiles and runs properly. The program is when i click the pushbutton a song must play with the seek slider.. when i click the button it is showing the following warning and aborted..
can anyone please tell me what the problem is...
[root@localhost multimedia]# ./multimedia
WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names through the DBUS interface
ASSERT: "!name.isEmpty()" in file /builddir/build/BUILD/kdelibs-4.0.3/kdecore/kernel/kcomponentdata.cpp, line 71
Aborted
[root@localhost multimedia]#
also another question when i run musicplayer example from Qt examples it is showing messagebox like this..
"A required codec is missing. You need to install the following codec(s) to play this content: MPEG-1 Layer 3 (MP3)"
how to solve this..? if i need to install something means where to get these codecs for fedora 9..?
Kindly help me...
Thanks
Balaji.S.R
Last edited by balajir; 08-04-2009 at 01:18 AM.
Reason: Append some more texts
when it says
Phonon needs QCoreApplication::applicationName to be set to export audio output names through the DBUS interface
QCoreApplication::applicationFilePath: Please instantiate the QApplication object first
it could be a variable is being set before main() or you need to set the applicationName in main()
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.