Server :: Execute Scripts At The Start-up?
Mar 10, 2010I had some command lines that I want to execute them with the server goes up. how can I do that?
View 2 RepliesI had some command lines that I want to execute them with the server goes up. how can I do that?
View 2 Replieshow can I execute pppoe-start on Slackware during startup or reboot? What is the proper way? Should I add a script on rc.d directory?
View 2 Replies View RelatedCan i make a .desktop file taht it executes autostart.sh script or any other script?
like xmonad.desktop od dwm.desktop?so that when gdm or any other gui login manager loads autostart apps in xmonad?
I was attempting to setup Oracle 11g on my system using these steps: [URL] had to stop and shut down after the third "segment" of commands:
Quote:
root@luan-laptop:~# cd /bin
root@luan-laptop:/bin# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2010-20-04 21:33 /bin/sh -> dash
[code]....
I need one, cause I know this is "So easy, a cave-man could do it" (and I can't) yikes.
I need a start up script to execute AFTER my desktop loads. It's for display resolution. I've added the same script in 3 places, and all will execute, but not until I do it manually. It's being over-written by another function...
1 script in /etc/gdm/Init/Default (as per Wiki page, which has a syntax error I found yesterday):
Quote:
#!/bin/sh
# Stolen from the debian kdm setup, aren't I sneaky
# Plus a lot of fun stuff added
# -George
[Code]....
Can I create a run level 7, like rc7.d, that will execute after the desktop loads (and everything else)? I symlinked the second script to level 5 rd5.d, and it didn't go through. I haven't tried level 6.
I've just installed subversion.I need to create a script /etc/init.d/svnserve that will start at boot time.I want to use start-stop-daemon --start so I can track my process and eventually kill it using start-stop-daemon --stop.My problem is that I can't get it to work and the documentation shows no exemple.
I've replaced $DAEMON by the whole line: svnserve -d -R -r $REPO_ROOT and got -d is not an option.I'm not quite sure what to do at that point. If someone has some experience with start-stop-daemon it would be great.
I have problem starting clamd. It's unable to execute setgroups()
/etc/group , /etc/password files are world readable
Here is output after starting clamd:
sudo clamd
ERROR: setgroups() failed.
Here is strace clamd output:
...
open("/etc/passwd", O_RDONLY|0x80000 /* O_??? */) = 3
fcntl64(3, F_GETFD) = 0x1 (flags FD_CLOEXEC)
_llseek(3, 0, [0], SEEK_CUR) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=1616, ...}) = 0
mmap2(NULL, 1616, PROT_READ, MAP_SHARED, 3, 0) = 0xb7f6d000
_llseek(3, 1616, [1616], SEEK_SET) = 0
munmap(0xb7f6d000, 1616) = 0
close(3) = 0
setgroups32(1, [120]) = -1 EPERM (Operation not permitted)
write(2, "ERROR: setgroups() failed.
", 27ERROR: setgroups() failed.) = 27
exit_group(1) = ?
Process 29002 detached
ls -al /etc/group:
-rw-r--r-- 1 root root 1013 2010-03-19 11:38 /etc/group
ls -al /etc/passwd:
-rw-r--r-- 1 root root 1616 2010-03-05 12:39 /etc/passwd
/etc/passwd:
clamav:x:108:120::/var/lib/clamav:/bin/false
/etc/group:
clamav:x:120:
I'm trying to setup a webcam surveillance system. Zoneminder didn't work for me regardless of how I tried configuring it, so I gave up and have now settled on a more primitive solution. I've currently got 6 cams and looping streamer (webcam screen grabber) I can grab a picture from each camera with about a 1 second interval. The previous picture is overwritten and using javascript to reload the image continuously in a browser I get the desired "movie" effect I'm after. The problem however is that as soon as I start using streamer on more than two cameras at once I run into this little snag:
Quote:
libv4l2: error turning on stream: No space left on device
ioctl: VIDIOC_STREAMON(int=1): No space left on device
I've been searching around and it seems I need to increase my shared memory. I've done that (tried many different values and "solutions") but the problem remains the same.
My setup is as follows.
1.php (refreshes updated grab from camera 1 every second in the browser)
2.php (refreshes updated grab from camera 2 every second in the browser)
3.php (refreshes updated grab from camera 3 every second in the browser)
etc
etc.
Is it possible to use something like php exec to execute the command that starts 'streamer' that grabs the image from the specific webcam (/dev/video1 for 1.php and so forth) when 1.php is opened in the browser. Is this even possible, or am I just dreaming?
I am using Ubuntu 10.04 LTS. Two days ago I updated using update manager. After that I can not boot Ubuntu. When I trying to boot system showing message " Ubuntu is running in low-graphics mode Your screen, graphics card and input device settings could not be detected correctly. You will need to configure these yourself" But I can not configure it.I can not boot to 'recovery mode' also
/var/log/boot.log
Code:
fsck from util-linux-ng 2.17.2
/dev/sda6: clean, 304282/1680960 files, 2964945/6723194 blocks
init: Failed to spawn ufw pre-start process: unable to execute: No such file or directory
[code]....
Now I am using Live CD.
i have purchased sun server for my visualization project. Request you to help me finding the io for disk .I have put storage(disks) on different location (File Server) and on server (Application) i have configured 4 virtual machines.
How would i monitor the io for file server from the Application server where i have configured 4 virtual machine. one way to mount the file server share on application server and execute
dd if=/dev/zero of=/share/test.out bs=1024 count=1024 to check the read and write Is there any other way of doing this.
what is wrong i have a web server setup and working fine running a web store in php i have added a search engine for the web the easiest setup programme is with an extension .pl when i try and execute this it asks me if i want to download it or open it i had this problem with the php script which a reboot sorted out so i have tried rebooting but get the same problem does anybody know how i can get it to execute on my server?
View 2 Replies View RelatedI have now had an Ubuntu desktop server on a very crappy server (network filesystem with enourmus latency) for a year and as the subscription will soon run out I opted for a slightly better one, still crappy but at least a "complete server" (cpu+mem+HD).And a headless installation of Ubuntu Server 10.10 "Maverick Meerkat" instead of my Desktop version.I'm not using it for web pages or other 'ordinary' things though, I'm running my homemade MMORPG off of it and this new headless situation is a bit unclear to me.
I created an account and password with my root account, a folder with the username was created in /home/ and I uploaded my mmorpg executable there with an ftp client.I tried to change the whole folder (being root) to 777 but it didn't work either.
I am trying to use a freshly installed kubuntu 10.04.1 LTS and am having major problems with delays in command execution. The box worked fine after installation. I then brought it to the client and it was fine for another day or so. Now, most of the commands I run take up to five minutes to execute. An 'ls' or 'top' will run straight away but and 'ssh','rm' or 'sudo apt-get' will just sit there for ever:
[Code]...
A reboot changed nothing. The shutdown was immediate so 'shutdown' is another command that works properly. The load of the box is '0', I used team viewer to see if I got the same problem from the LAN side rather than the WAN. It's the same. I thought it might have been the disks that had spinned down but it would have sped up after the ssh connection. After further analysis, it looks like this could be an authentication problem. The problem shows once the ssh password is validated and when we use sudo. Could this be related to the installation of samba3?
how to call a c function or to execute a c pgm o/p from php file and this output should be displayed in the html page ? I have tried with system() and exec()but its not working.
View 2 Replies View RelatedI'm under CentOS 5.2 with PHP 5.2.10 I compiled PHP from Source with ./configure --with-config-file-scan-dir=/etc/php.d but PHP doesn't start modules A PHPInfo says:
Scan this dir for additional .ini files (none)
additional .ini files parsed (none)
routes are correctly setted and the user have permissions for read the directory, just to be sure i changed the CHMOD to 777 but nothing.
I am trying to determine if I should upgrade PHP's PEAR on my server. I am trying to check the version of PEAR currently installed. I am getting the following error when I use the pear -V command:Warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s)(/usr/share/pear:/usr/share/php) in System.php on line 459I tried adding /tmp to my php.ini file, but then when I use the pear -V command it doesn't do anything. I do not get any errors or anything.I am also trying to install symfony and have the same situation described above when I use the following command: pear cannel-discover pear.symfony-project.comDoes anyone have any thoughts? If not the solution, does anyone have any suggestions on how to begin troubleshooting this?
View 2 Replies View Relatedi created a /tmp partition amd mounted it like this:" mount -o loop,noexec,nosuid,rw /usr/tmpDSK /tmp"
I know i can't execute things in /tmp now but is there a way to execute only one file and no more???
Im trying to run synergy on startup. This works fine on the client, but it wont start automatically on the server. I put this line in an entry in startup applications:
[code]...
but still no dice.
I have debian lenny, when I run an application is slow to load (example: iceweacel open and it takes, I can hold him iceweacel work normally), I tried to change from gnome to another and the same thing, went down some services (samba, squid) and nothing. I open a terminal and it takes, I want to duplicate it and do it fast. From a terminal without X (tty1) with root run mc and moves quickly, also run as root "sudo mc" and takes to boot.Any action done with sudo it takes to run.Can not be what it takes to make starting the applications, not the PC because it is new, and from one moment to another I began to pass this
View 2 Replies View RelatedI have a .jar file named "server.jar". In windows it executes on simply double click on it but I want to execute it on the server and I don't know how to do it??? I have Filezilla to upload any file on server and putty for cmd prompt. where i have to upload my file on server and hoto execute it.
View 3 Replies View RelatedWhen im typing any command its giving error -bash: /bin/ls: cannot execute binary file. how to resolve this im using fedora 13.
View 11 Replies View Relatedhow can I run CGI scripts that are without extensions under the document root?i can not use ScriptAlias on the document root, i can run .pl scripts but i cant run any script without extension...ofcourse all files are executable on the fs.
View 8 Replies View RelatedWhat i want to achieve si simple (i think).
I have this shell command:
Code:
echo -e 'ka 0 00
' > /dev/ttyS0
and i want to execute it from html or php with a button maybe or a link.(it's a command to turn off the monitor)
I am running Ubuntu 9.04 desktop with apache and php installed .
already searched the forum but didn't find/understand how to achieve this functionality.
I have setup a CentOS 5.5 server as a DHCP server. That will be it's only task in a Cisco callmanger VoIP environment The DHCP server that comes with CentOS 5.5 is from ISC V3.0.5 -redhat.
The server (HP DL360) has two physical NIC's of which only NIC1 is used (ETH0)
ifconfig shows:
Code:
The interface has a fixed IP setup.
My dhcp.conf file looks like this:
Code:
When I start (try to) dhcpd via the service interface or via the prompt as
Code: service dhcpd start
I get an [FAILED] message and the following is in /var/log/messages
Code:
But when I start the DHCPD on the comamnd prompt in debug mode it looks as follows:
Code:
and /var/log/messages shows:
Code:
Why does the system ask a declaration for eth0 0.0.0.0?
I'm configuring a new Centos 5.5 server in replacement of an old W2K server.The topology of our network is simple : one file/dhcp/dns relay server and workstations (PC's and some MAC's) plus network printers and scanners.All the workstations have dynamic IP addresses (easier because a lot of 'dynamic' changes : new persons with their own laptop, ...) and the server and printers/scanners have fixed IP addresses.I edited the dhcpd.conf (see here underneath), I have the file dhcpd.leases but it doesn't start !
DHCPD.CONF
ddns-update-style interim;
ignore client-updates;
[code].....
I have installed a puppet server and its client on Centos.Puppet server and its client is running fine and its update whatever changes made on Puppet server is updatedon its client but i am unable to execute script (Bash shell)on the client through Puppet server. So please advice a suitable class or parameter for Puppet server so that it could execute on its client
View 3 Replies View RelatedI would like to execute an already written C program that I am running on my embedded Linux, but from afar - through a HTML page. I am running an embedded Linux on my FPGA prototype board with a MicroBlaze soft processor. On this Linux i am running a httpd web server - I can serve html web pages to the outside through Ethernet connection. Now, I have a program written in C in this embedded Linux in /bin/gpio-test that does some stuff with my IO devices. Now I would like to control these IO devices through HTML web page - so I would like to be able to run this gpio-test program from a html web page and possibly send the program some parameters.
View 2 Replies View Relatedstarted setting up my 3rd ubuntu server under the OS of Ubuntu Linux 9.04 64 bit. I have configured the server to allow root access and am using this to execute this file. As you can see from the screenshot of PuTTy, the file exists but is refusing to load up. I am also able to nano the file. I have tried moving the file to /root/ and still had no luck.
View 3 Replies View Relatedhow can i execute vino-server at boot time, before my graphical login prompt (gdm ?) appears
View 1 Replies View Relatedhow to make a c function present in the library to execute in php and should be able to pass a any new argument back to the c library from php
View 2 Replies View Related