CentOS 5 :: Accessing X Server As A Service?
Jun 3, 2010
I have a webservice which runs under Apache Tomcat. The service is started via a script in /etc/init.d. During the course of the Web service processing, the software must make use of the two NVIDIA GPUs on the computer to do some graphics processing. When this system is booted but not logged in, the web service is accessible but the software cannot access the software cannot access the X server to do it's processing. However, when I am logged in, the user can access the X servers and run correctly. I have tried various solutions but I always have to be logged in to run the software. I seem to have permissions problems but I'm unsure how to resolve them
Is there any way to grant permissions to root (the tomcat service is started as root) to allow it to run the software without logging in?
I am running CentOS 5.4 with Gnome display manager.
View 4 Replies
ADVERTISEMENT
Mar 29, 2010
I noticed that my VPS was rebooted recently and a new service appears
[root@localhost ~]# pstree
init─┬─brcm_iscsiuio───2*[{brcm_iscsiuio}]
View 3 Replies
View Related
Feb 7, 2011
I am in the task of migrating old linux to new linux which centos 5.5. while moving out all apps ,data etc.I need to configure SSL in apache.I have installed mod_ssl with apache 2.2. i went though some docs to configure with certificate that I have . Not sure how to start the service in 2.2. The apache/SSL was configured in my old server which apachectl. SO after importing certificatr , I do ./apachectl startssl to take in effect. In my new server , the http service is /etc/init.d/httpd, not sure how to start SSL service in centos 5.5.
[Code]...
View 2 Replies
View Related
Aug 9, 2010
I been trying to install the Nvidia driver for my recently installed centos desktop but I could not find the services that I can stop. I have a gnome. did try gdm, xdgm etc etc but no luck how do I stop the x server service ? so that I can install the driver.
View 3 Replies
View Related
Feb 1, 2011
I am trying to accomplish an objective, I need to get 389 Directory server installed in the process however is it possible to just have email addresses of users in the LDAP server? I have a primary domain, example 'abcefg.com' with about 3,000 users and several hosted domains like 'xyz.com' and 'mno.com'. The end goal is to speed up email processing, so instead of the Barracuda asking the email server(s) if a user exist it queries the LDAP.
Is there a way to configure 389 Directory Server to contain just the email addresses of the end users to allow the Barracuda to poll the LDAP server to verify the email address is valid. The rest of the authentication like password is handled by the email server. So in the end the LDAP server would just contain the email addresses (live) and the Barracuda would query the LDAP asking if joebob@abcefg.com exist if it does carry on. If user xxeedd@abcefg.com does not exist drop it and go on.
View 4 Replies
View Related
Feb 17, 2009
Set up a new cluster service for a cifs share. Has these properties:
Service name = cifs_cases
Autostart is checked
name=cases type=GFS Scope=shared
[code]....
View 1 Replies
View Related
Feb 5, 2010
I just did a basic service install of Centos5 and added the RPM package install of VMware-server 2.02. but I don't the VMware service is running (based upon the flowing screen:
[root@centoshost1 vmware-mui-distrib]# ps
PID TTY TIME CMD
2925 pts/0 00:00:00 bash
22378 pts/0 00:00:00 ps
So how do i start the VM service?
View 3 Replies
View Related
Apr 24, 2010
Ok, so I have installed apache 22, mysql5.0 and proftpd1.3. When I reboot my server, the above applications do not start up automatically, and I have been trying to figure out how with out much success. know that I need to make some changes inside the init.d directory on my CentOS Server.I am running CentOS 5.4 x86_64 build.I really am not sure how to accomplish the task or where to start.
View 4 Replies
View Related
Jul 19, 2010
I have a service I've made an init script for, and it's added to chkconfig, which shows it "on" in all the correct runlevels. When I start or stop this service using the "service" command all is fine, but it does not start on it's own at bootup. I am currently at a loss to determine why it is not starting. Here is the script:
#!/bin/bash
# chkconfig: 2345 95 10
# description: Start or stop home automation
#
[Code]....
View 4 Replies
View Related
Oct 9, 2010
i meet problem on named service, i want to configure my DNS with bind...after i /etc/init.d/named statusThis shows :"rndc: connect failed: 127.0.0.1#953: connection refusednamed is stopped"
View 2 Replies
View Related
Nov 3, 2010
I have just finished bulding a virtual web hosting server on my CentOS-5.5 x86_64 linux box with several websites hosted and its working fine. Now I have to build and FTP service in this webhosting server so that i can create indviudal login for each website and provide access to thier respective web directory only. This is where I am stuck. I have been trying to find out some docs and instructions to achieve this but in vain.
What I need is to configure an FTP service in the web server so that individual owner of websites can login to thieir respective web directories only and upload and download files as well as create, delete and modify the contents of their web directory.
View 1 Replies
View Related
Mar 17, 2009
I am new to linux, running a brand new centos 5.2 server. One application I want to use it for is to serve as a network host for a game my friends and I enjoy. Normally, to run the game in host mode you call the binary and pass it a port number (along with other options). To host a second instance of the game, same thing different port, you get the idea.
After doing that the binary runs in your window and dumps to stdout, so if you want it to run 24/7 you have to come up with your own strategy like nohup. Fair enough, now, I'm trying to coax the game into restarting automatically upon reboot. The most correct way to do this seemed to be to write a script for init.d so that's the road I traveled down. Now, to strain the metaphor, the pavement has ended and I'm stuck in the sand.
Here begin my questions:
I've been following the structure of other init.d scripts and I notice they all seem to call the function daemon() (contained in /etc/init.d/functions) to start their services. Looking at the structure of daemon() I see that you can pass it a user and a pidfile. The user part seems to work fine, but no pidfile is created. Let me be more specific.
Like the other scripts, I explicitly touch /var/lock/subsys/game-port on startup, which works fine. However, all of those other services seem to have a pidfile in /var/run and mine doesn't. They don't create it explicitly in their init.d script therefore I assume that some other process is creating the pidfile. At first I thought it would be the call to daemon(), since you have the option of passing it --pidfile, but that doesn't seem to work.
Are the services themselves creating the pidfile? If that's the case then I have more complications because the game binary apparently doesn't do this. Second question but probably related to the first. None of the other init.d scripts I looked at seem to do anything special to detach their services from a particular terminal session, therefore I didn't think that I would need to either.
Again I thought this was something the call to daemon() might accomplish, but either I'm wrong or I'm doing something wrong. I can probably work around this with nohup or appending '&' or something, but I'm just curious that other services like crond, sshd, named, etc., don't seem to do this. Are they determining this behavior from within the binaries themselves? I hope this is clear, as I said I'm new so I may not be getting all of the terminology correct.
View 2 Replies
View Related
Jul 23, 2009
I've a java program which needs to be executed regardless of whether a user is logged in or not. Currently I've a shell script which executes the java program. I login to the server and run this shell script when the server is rebooted. I would like to start this script automatically preferably as a service so that I can stop and restart this service whenever I update the java program.
View 3 Replies
View Related
Dec 8, 2009
There is a particular java app called LanguageTool which we need to host on our centos server. Other applications are supposed to send an http request to this machine; this machine should pass this data (received over the http request) to the java application concerned, obtain the output from the app; and then send this response back to the requesting client...
We need to set this app as a service on startup. The centos machine might restarted from time to time; so we expect this service should startup automatically. What can I do to get this done?
View 1 Replies
View Related
Feb 9, 2010
For the first time in installed and configured centos-ds from this HowTos and from the manuals.It is running nicely but disabled my httpd.Is it not possible to run directory service and httpd in the same machine
View 3 Replies
View Related
Apr 22, 2011
I installed centos 5.5 and httpd service was working well for the last 2 weeks till yesterday. I restarted server and noted my hosting service were not working. I have tried service httpd restart on the terminal and it dispalys [FAILED]. I updated my machine and and have tried restarting it but it doesn't work. I am new to centos and I dont know how to solve this.
View 2 Replies
View Related
Oct 12, 2010
I meet this problem after i reformat the CentOS 5...I havent do any configuration, the named service start failed ? why ....
View 2 Replies
View Related
Nov 24, 2009
I'm running VNC Server on CentOS5 on a brand new installation, this is for some of my students to use specific software via VNC on their machines from home that they otherwise don't have access to on their Windows machines. This has been working fine on our previous server for a few years but the hardware is now outdated so I have upgraded and put a fresh install of CentOS 5 on. This works fine for about 24 hours and then eventually one of the session ends up freezing where the user then can see everything on their session, the cursor can move but they cant click a single thing.
View 1 Replies
View Related
Jun 7, 2011
Tearing my hair out on this one a little bit, having problems sending message from web based PHP form to user inbox.I keep getting: Undelivered Mail Returned to Sender<me@mydomain.co.uk>: Host or domain name not found. Name service error for name=mydomain.co.uk type=A: Host not found.Running these commands:
$ hostname = mydomain.co.uk
$ hostname -f = mydomain.co.uk
$ postconf -n =
[code]....
View 6 Replies
View Related
Oct 3, 2009
i find this is an issue which might be tiresome for everyone except for those experts. Esp. for the computers which are dual booting(both windows xp and centos installed in the same computer), that when we are in CentOS we need to switch onto windows immediately. and vice versa. i see this is possible only by shutting down the centos/windows and then restarting onto the other OS.
Can anyone tell me the the solution to work simultaneously both xp and centos without the need of shutting down and restarting There maybe or may not be the solution...but i find the pleasure to know if there is for example, remote desktop connection in windows xp, is there any solution, we can work on windows via centos or vice versa ( in the same machine),
View 2 Replies
View Related
Jul 29, 2011
I have a small network with my Centos 5.6 box and a Win XP PC on it.I can access the files on the PC from the Centos box by bringing up the RUN window (ALT-F2 in Gnome) and typing smb://192.168.1.X/C (where X is the address of the PC), and I get a window with the C: drive from my PC. I can then drag/drop files between the Centos box and the PC. Here are my questions:
1) I want to script the file transfer, so how do I do this from the command line?
2) On the PC, I have 2 drives C, and E. They appear to be set up the same, but the E drive looks empty when I do this using the interactive method above.
I found this tutorial http:[url]..... but I can't get my PC "visible" in the smbtree.Really, I just want to write a script that does a backup on the Centos box and copies it to the E (External) Drive on the PC. (I'm a novice when it comes to administration)
View 2 Replies
View Related
Mar 4, 2009
My Centos machine lies on a different location with a dynamic IP. How can access it remotely considering the fact that I am unable to acquire a static IP.
View 13 Replies
View Related
Jul 29, 2009
Iam using Centos 5 64 bit.I want to access my local drive on centos. Waht is the procedure 4 that?
View 1 Replies
View Related
Sep 15, 2010
I tried to reinstall Centos, and the reinstall failed due to a flash disk being pulled out in the middle of the operation. I am left with an un-bootable system and I want to access my data, if possible.
Prior to the reinstall the disk info was:
== BEGIN cat /etc/fstab ==
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
[Code]...
So, The disks are still intact (I hope) but the LVM information is gone.is there anyway I can access /dev/sda2? When I try mounting it from the Rescue environment the command hangs, i.e. nothing happens.
View 2 Replies
View Related
Dec 20, 2010
I can access my Win 7 machine from my CentOS machine, but not the other way around.
View 13 Replies
View Related
Jul 21, 2010
I have installed windowsxp sp-2 and centos-5 on same machine now I want to access my partitions of xp through linux i.e. centos. What is the procedure for this.
View 1 Replies
View Related
Aug 8, 2010
I have set up VNC on my Centos5 Server via the instructions here:
[URL]
I am able to log in via VNC through a browser (on my Window laptop), however when I try to access my USB hard drive on the Centos Server, it says:
Error org.freedesktop.DBus.Error.AccessDenied
Does anyone know of any step by step instructions so that I can be able to access my USB Hard drive?
I have found a few posts on the internet about this, however the fixes are either vague/hard to understand etc?
View 2 Replies
View Related
Apr 10, 2010
I have been using the Centos 5.4 live CD to do volume resizing etc for root volume which can't be readily dismounted. I have also been using it to clone systems. It is a really great tool - even offering the same GUI interface I have come to know and love...One added feature which would be great for me would be to package "nx server" and/or "webmin" with it so it can be used to maintain remote and "headless" servers.
That way - when heavy duty maintenance is required on a remote system - the sysadmin (me) could ask the site owner to boot with the live cd - and do the rest remotely. Also it would make maintenance of headless servers easier.I'm not sure whether the live cd is inherited more or less complete from the upstream provider - or whether it is completely re-packaged at centos. I'm also not sure how technically difficult it is to re-package a live cd with extra services.
View 2 Replies
View Related
Jul 9, 2010
I have set up two identical websites and want them to access the same mysql database. I've entered the username/password/db name in the website database.inc file. However, one database works fine and displays correctly, the other just gives a blank page. I've tested apache and it can display a different site (one that does not access any db). So is there a configuration that i'm missing. Do i have identify the two different websites that access the db?
View 7 Replies
View Related
Mar 10, 2011
I have an application running on a centOS machine that needs to access a database on a CentOS server. I granted access to all users with a certain user name and password.i opened up port 3306 as well with the following command: /sbin/iptables -A INPUT -i eth0 -p tcp --destination-port 3306 -j ACCEPTbut whenever i try to connect from my machine i get an error:ERROR 2003 (HY000): Can't connect to MySQL server on '172.16.102.129' (113)I am using mysql version 5.0.77 on centOS 5.5.
View 1 Replies
View Related