Software :: Start And Stop Xscreensaver From Cronjob?

Sep 5, 2010

Im running ubuntu 10.04 lts. Ive been struggling with automating a screensaver to come on and off at shceduled times. all is working fine except I cannot seem to get xscreensaver to start from cron. when i run it manually i need to use:

xscreensaver & and then hit enter. I'm not sure whats happening as i only get the line that it ran in my logs but no error. i am using xset to turn the display power on and off, then xscreensaver-command -activate and deactivate, after loading the xscreensaver daemon. everything automated works fine except starting xscreensaver daemon. if i run the same commands manually it works fine. if i leave the xscreensaver daemon running and shutoff display with xset it will come on again unless i kill xscreensaver. fyi what im trying to do: my linux file/web/music server is on a tablet netbook and i flipped the screen around and am trying to also use it as a digital picture frame. which works fine, i just dnt want to run it needlessly 24/7

View 1 Replies


ADVERTISEMENT

Software :: How To Stop Xscreensaver From Automatically Starting

Jan 9, 2010

I recently upgraded to zenwalk 6.2 and xscreensaver now starts automatically so i have to input my password whenever i shut and reopen my laptop lid. how can i stop it from auto-starting.

View 3 Replies View Related

Fedora Security :: User Access To Start And Stop Tomcat But Also Gives User Access To Start And Stop Other Services "/etc/sudoers"

Mar 13, 2009

I am trying to give access to ONE single user to start and shutdown tomcat server. The problem being, when I enter syntax: username ALL= /etc/init.d/tomcat5, /usr/local/tomcat/webapps, PASSWD:ALL This gives the user access to start and stop tomcat but also gives user access to start and stop other services within /etc/init.d - such as httpd etc... What is the proper way to give user access to start and stop service, and limiting that power to only one service....

View 2 Replies View Related

General :: Start Script Bash When System Start Stop Reeboot?

Dec 10, 2009

I have 3 script BASH. I want start this script when the system start,stop and reeboot.

View 4 Replies View Related

Red Hat :: Informix Start - Stop Along

Mar 4, 2009

I'm trying to start/stop Informix along with my linux os start/stop. For this I've made a test script in order to test this but I'm facing a problem. The service is starting along with the system but when I'm stopping (rebooting) the system it doesn't run the "K10test" script.

After sistem reboot you can see that the /etc/init.d/test stop is not executed.

View 11 Replies View Related

CentOS 5 Server :: Named Won't Start \ Named Stop But Does Not Start Again?

Oct 28, 2009

i've made a big update of almost 300Mb.I'had a working DNS server.Now, when i boot the box, named works and it resolves all the clients.If i make any change (enter a new client for example) and of course i restart named (service named restart), named stop but does not start again !!!In order to get a working named, i 'm obliged to reboot the box?

View 6 Replies View Related

OpenSUSE :: Stop Kmail On Start Up?

Mar 7, 2010

I set Kmail to launch on start up but now no longer wish for it to do so. However, i cannot find the setting i changed in the first place.

View 4 Replies View Related

Ubuntu :: USB Transfers Stop / Start In 10.04

May 30, 2010

When copying files to USB drives, the file progress bar moves it 'bursts', sometimes doing nothing for long periods, then moving forward quickly and stopping again.It's almost like it is showing the transfer to the cache, not the transfer to the actual drive.

View 5 Replies View Related

Ubuntu :: How To Stop KVM Start At Boot

Mar 10, 2010

Host - ubuntu 9.10 64bit
Virtualizer - KVM

I need to stop KVM starting at boot. I added following 2 lines at the bottom of /etc/modprobe.d/blacklist.conf
Code: blacklist kvm
blacklist kvm-amd Reboot PC
It doesn't work.

$ lsmod | grep kvm Code: kvm_amd 41556 0
kvm 190648 1 kvm_amd
What further command I have to run in order to activate the new blacklist.conf ?

View 2 Replies View Related

Debian :: Unable To Start / Stop Lightdm

Apr 4, 2016

I'm running Debian 8.4 on a Lenovo W500 laptop and I recently upgraded from kernel version 3.2.0-4 to 3.16.0-4. Since then I encounter issues with lightdm (I suppose) which manifest themselves in two different scenarios:

1) scenario 1: lightdm fails to start.Instead of showing the graphical login screen, the system boots into terminal. Lightdm seems to be running, but I can't enter the X-Session (Alt+Ctrl+F7 doesn't work), nor can I restart the lightdm via

Code: Select all# service lightdm stop
# service lightdm start

dmesg shows the following (I've only pasted the end of dmesg):
Code: Select all[  240.100071] INFO: task kworker/0:2:39 blocked for more than 120 seconds.
[  240.106512]       Not tainted 3.16.0-4-amd64 #1
[  240.112956] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  240.119494] kworker/0:2     D ffff880155155a48     0    39      2 0x00000000

[code].....

and /var/log/lightdm/lightdm.log shows errors of type
Code: Select allGtk-CRITICAL: gtk_container_foreach: assertion 'GTK_IS_CONTAINER (container)' failed

when I then try to shutdown via
Code: Select all# shutdown -h now

the OS gets stuck on a message of the form
Code: Select allirq 17: nobody cared

and eventually I have to force a shutdown by holding the poweroff button.scenario 2: lightdm starts, but can't be stopped/In this case I can login and use the system as usual, but when I try to shutdown either via # shutdown -h now, or via the GUI or the power button, the system gets stuck and I have to force a shutdown by holding the poweroff button.It seems that people had similar issues on other distros (see e.g.: URL... but there doesn't seem to be a good fix so far. I can for now solve the issue by downgrading the kernel to 3.2.0-4, but I was wondering if there is a permanent fix.

View 6 Replies View Related

Debian Multimedia :: Start And Stop Xfce When Want?

Aug 24, 2011

I am trying to make a web server with debian 6 and i want a xfce dsektop when i need to open files,extract,navigate but to be able to turn it off when i dont need it (to save ressources).I already installed it with aptitude install xorg and aptitude install xfce.

View 4 Replies View Related

Fedora Servers :: How To Stop KVM Start At Booting

Feb 25, 2010

Fedora 12 64bit KVM

How to stop KVM start at booting?

Then how to start it after booting?

View 4 Replies View Related

OpenSUSE :: How To Start Stop Mysql Server

Feb 25, 2010

i am using putty to connect to my server and wanted to restart mysql server. searched the internet and found thatcommand is /etc/init.d/mysqld start or stopbut it did not worked.then tried /etc/init.d/mysql stop or startthis also did not worked.

View 6 Replies View Related

Ubuntu :: Can't Find App To Stop And Start Services

Jun 27, 2010

I thought it was in the System>administration menu somewhere, but I just can't see it. What is it called, and where do I find it please?

View 9 Replies View Related

General :: Screen Start / Stop Script With Name?

Sep 24, 2010

I use a centos VPS with 1gb memory and enough space and brandwidth (if this info is off any use). What I want to achieve is that I can start and quit a process that is running in a screen, with using a script.

Like start.sh that does "screen serverapp1"
and stop.sh that does "kill serverapp1"

I already tried something like that, but it didn't work. The kill command only works with process ID's and that one is variable.

View 8 Replies View Related

General :: How To Start And Stop XWindows Without Rebooting

Feb 10, 2011

Sometimes I use vnc server and start desktop. The memory use rises about 2gb during this. I need to be able to turn off the xwindows after I shutdown vnc without rebooting. Is there a way to do this?. And I don't need to know how to disable at boot thats not what I need to do.

View 5 Replies View Related

Red Hat / Fedora :: Services Start Then Stop After Few Minutes

May 7, 2009

I have several services set to start in init 3 on a cloud provider. The init scripts appear to be in the correct folder but the services are never started after a reboot. I finally watched the console and all the services start correctly then shutdown after a few moments.

View 9 Replies View Related

Red Hat / Fedora :: How To Start Or Stop Telnet Service

Feb 1, 2010

How to start or stop telnet service in red hat Linux 5

View 2 Replies View Related

Ubuntu :: Keyboard Start To Stop Working

Jul 25, 2010

i installed linux ubuntu 10.04 successfully.it only works for a few minutes then the mouse and the keyboard start to stop working, they completely freeze then i have to restart the computer.

View 1 Replies View Related

Fedora :: Start And Stop Script With Screensaver

May 26, 2009

I would like to start and stop rtorrent based on my screensaver. I used to do this awhile ago with ubuntu and still have my script. However now I am using Fedora with KDE and the script no longer seems to work.

#!/usr/bin/perl
#gnome
my $cmd = "dbus-monitor --session "type='signal',interface='org.gnome.ScreenSaver',member='SessionIdleChanged'"";
open (IN, "$cmd |");
while (<IN>) {
if (m/^s+boolean true/) {
#when screensaver activates, run the following commands
#system("/home/eric/compiled/scripts/rtorrentstart");
system("touch /home/asoukenka/rtorrenthasstarted");
} elsif (m/^s+boolean false/) {
#when screensaver deactivates, run the following commands
#system("kill `pgrep rtorrent`");
system("touch /home/asoukenka/rtorrenthasbeenkilled"); } }
Old Post [URL].

View 6 Replies View Related

Networking :: Start And Stop Squid Service?

Feb 9, 2011

I have installed squid 2.7 in my red hat Linux box.I need some guidance regarding to start and stop squid service. Normally when squid configuration file is n /etc/squid/squid.conf and we want to start the service we use # service squid startand to stop the service we use# service squid stopNow squid is inCode:# /usr/local/squid/etc/squid.confhere the default # service squid start and # service squid stop does not work.

View 6 Replies View Related

Networking :: How To Stop / Start Network In Ubuntu 10.04

Jul 18, 2010

This should not be this difficult. I have a plain install of Ubuntu 10.04 64 bit with a wired network card. It picks up a private IP address from my router. It has an app called NetworkManager Applet 0.8 in the notification area of the panel. If I right click on this app and select "Disconnect" it does. ifconfig shows that the IP address is gone. I can then right click on the app again and "Auto eht0 and I am connected again and ifconfig shows the IP address restored. So far, so good. I was testing a crossover cable to see how fast I could transfer files to/from my server - both machines have gigabit cards but my switch is only 100 Mb.

I unplugged the PC from the router, hooked up the crossover cable to the server and found that I had no connectivity - the IP address was gone. Not wanting to mess with hard configuring IP addresses for the moment I connected the PC back to the router. When I unplugged the cable the app showed the networking disconnected icon. I tried right clicking on the app and unchecking [ ] Enable Networking then rechecking it. This works on my netbook running Ubuntu 9.04. No luck on 10.04 (and I had not tried the Auto eht0 as described above - did not discover that until later). So then I tried to fix it from the command line.

ken@taylor12:~$ sudo /etc/init.d/networking start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service networking start

Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the start(8) utility, e.g.
start networking
networking stop/waiting.

So I then tried
ken@taylor12:~$ sudo service networking start
networking stop/waiting
but still no connectivity. A reboot got things back in order.

Then I did a little more testing.
ken@taylor12:~$ sudo /etc/init.d/networking stop
* Deconfiguring network interfaces...
Ignoring unknown interface eth0=eth0.
and I am still connected.

Editing Connections within the NetworkManager Applet shows "Auto eth0 - last used never" even though I have used it. [Edit] Auto eth0 via the app appears to show information about my wired NIC.

ifconfig shows eht0 as active
ken@taylor12:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:25:64:e8:18:2c
inet addr:192.168.0.112 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::225:64ff:fee8:182c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2234 errors:0 dropped:0 overruns:0 frame:0
TX packets:2407 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
bytes:1824427 (1.8 MB) TX bytes:404086 (404.0 KB)
Interrupt:17

View 2 Replies View Related

General :: Screen Start / Stop Script With A Name?

Sep 24, 2010

What I want to achieve is that I can start and quit a process that is running in a screen, with using a script.

Like start.sh that does "screen serverapp1 ./serverapp1"
and stop.sh that does "kill serverapp1"

I already tried something like that, but it didnt work. The kill command only works with process ID's and that one is variable.

EDIT:
What I've tried (because google is my friend):

[servercod4001@datacenter-196 ~]$ screen -ls
There is a screen on:
11343.servercod4001 (Detached)
1 Socket in /var/run/screen/S-servercod4001.

[Code]....

View 3 Replies View Related

Programming :: How To Start/stop Squid Service Using PHP

Oct 21, 2009

Im using PHP and Sun Solaris to do something for Squid Proxy Server. im using......

- LAMP / SAMP
- Linux / Solaris 10
- Squid Server
- PHP

actually i need to know that someone knows about how to start/stop Squid Service using PHP code.

View 2 Replies View Related

Fedora :: Automatic Start Stop Script For Oracle 11g?

Aug 28, 2010

i finished installing oracle 11g r2 with EM but i cant find any good script that will close the database completely before rebooting they all start it correctly but for the shutdown they don't wait and the database restart in recovery mode

View 3 Replies View Related

OpenSUSE Install :: Stop - Start Kdm From A Virtual Terminal ?

Mar 26, 2010

I've been trying to stop kdm the normal way, switching to a virtual terminal with ctrl+alt+f1 and using:

Code:

I've done it this way in other distro's and it's always worked.

How do I stop/start kdm from a virtual terminal in Suse ?

View 5 Replies View Related

Ubuntu Installation :: 10.04 Upgrade - MySQL 5.1 Does Not Want To Start Or Stop

Apr 30, 2010

I upgraded from Kubuntu 9.10 to 10.04. 32 bit. The install had not finished as it barked at tripwire config. I have had to stop it and continue from command prompt. More or less the install went OK. After the install, mysql 5.1 does not want to start or stop. Commands
/etc/init.d/mysql stop ( or 'stop mysql' , or service mysql stop' )
/etc/init.d/mysql start

Do not finish - do not return to command prompt. No log messages insyslog or mysql logs. Say, I do 'service mysql start', the command does not return, I click Ctrl+C, then repeat the command. This displays :
'start: Job is already running: mysql'.
Of course mysql is not running. I've tried to remove and reinstall the packages. No result. There is 'stop mysql' command in one of install scripts that hangs.

View 9 Replies View Related

Ubuntu :: 10.04 Correct Way To Start Stop Disable Services?

Aug 25, 2010

With the advent of Ubuntu 10.04 Lucid Lynx LTS People are migrating servers to the latest LTS. One fundamental thing that has changed is the move to Upstart. In the old days to stop multidaemon service such as Samba, one would simply type /etc/init.d/samba stop and to disable it from starting on boot one would simply type update-rcd samba disable.

Now its the year 2010 and in 10.04 it seems on has to edit a bunch of files, etc. Is there not an easy tool to correctly and properly disable services on startup in 10.04 consistently? in Redhat/Mandrake 10 years ago it was simply

Code:
service smb off
In Ubuntu 10.04 its
1) edit /etc/init/smbd.conf and modify the line that says
Code:
stop on runlevel [!2345]
and change it to

[Code]...

And one has to remember all these changes when the get ready to enable the samba service in the future? This can't be right.I know I must be missing something here. or maybe overlooked something in the upstart documentation.Which seems quite sparse by the way. So the question remains. How does one simply disable a multidaemon service starting on boot such as samba. Any tool to do this ? Is the above the correct method recommended by Canonical to disable services? and enable them?

View 2 Replies View Related

Ubuntu :: Stop/start A Program When Notebook Goes Battery/ac?

Oct 23, 2010

I need to stop a program when notebook goes on battery and start it when using AC. I'm using 10.10 netbook edition.

View 2 Replies View Related

Ubuntu :: Method To Start / Stop Services Under Upstart

Jan 22, 2011

I installed MySQL and Apache2 to develop & test out the site I'm writing. However since I'll be using them purely for internal use (not exposed to the Net), I don't want them to start with every boot-up, but would like to start them manually when I desire, and stop them after use.With previous Ubuntu (Jaunty) I'd used chkconfig to configure services, but since the current version (Maverick) uses Upstart, is chkconfig still applicable?

I also installed 'bum' (Boot-Up Manager), but strangely, it displays the MySQL server as "unchecked" even though it's running (and starts at boot-up), so I cant see how I can prevent it from starting at boot-up through bum. chkconfig also displays MySQL as not active at runlevel 5, when in fact, it is.

I'd like to know what's the recommended (official) way to configure boot-up services with the Upstart system? I don't suppose directly editing the *.conf files in /etc/init is the best (or even correct) way?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved