General :: Run A Prompt At Logout Or Shutdown?
Feb 20, 2010
Is there a way to run a prompt at logout or shutdown? I added the following code to .bash_logout, but apparently the �read� command doesn't work from there.
Code:
echo "Make a backup now? (y)"
read answer
if [ "$answer" != "y" ]
then
echo "Backup aborted."
fi
I am using Ubuntu 9.10
View 2 Replies
ADVERTISEMENT
Aug 5, 2010
I just installed debian unstable with kde 4.4.5 on a new hp desktop. Just about everything is working fine except when I try to logout or shutdown by right clicking on the desktop. No matter which option I choose--logout, shutdown, or restart--the screen goes black and nothing happens. I'm forced to do a hard shutdown or use alt-SysRq-B to reboot. I can reboot or shutdown using the command line when logged into kde.
View 4 Replies
View Related
Jan 31, 2011
For some reason in the last few days I can no longer logout of KDE, nor will it let me shutdown the system. The only way out is to Ctrl+Alt+Backspace and then shutdown from there. Weird thing is other users can. For me the logout box just disappears and I carry on working or if effects are enabled, the screen blurs and I carry on working. After this the logout box doesn't come back up until I have restarted X (logged out).
I have tried disabling the desktop effects to no availe and I have looked in the messages / kdm logs. So far the only thing I can find is in KDM.log
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Internal error: Could not resolve keysym XF86TouchpadOn
> Internal error: Could not resolve keysym XF86TouchpadOff
I have no idea if this is at all relevant but there are several threads from Google relating to this and GDM, although no cures as far as I can tell.
I would rather not delete my ~/.kde folder again if at all possible as it takes ages to reset everything back to normal.
View 3 Replies
View Related
Jul 12, 2010
I added a Netspeed applet to my top panel. It screwed up my Me Menu and Logout menu, so I removed it, rebooted. However after the reboot my menu's are still screwed up. See the attached screen shot. The Me Menu works however if I click where the logout menu is supposed to be I don't get anything.
View 9 Replies
View Related
Nov 5, 2010
On two of my machines that have Ubuntu 10.10 on them, I cannot shut down, restart or log out by pressing the "power button" on Gnome panel. I can not even do "Alt + Ctl + Backspace" either. However, I can shutdown or restart by: Quote: sudo shutdown -h now sudo shutdown -r now
View 4 Replies
View Related
Sep 29, 2010
My normal day to day user can't shutdown, restart, logout, etc...It just doesn't do anything at all when I try. This wasn't the case three days ago, just fresh installed and seeing the same problem (so it must be some setting saved in my home folder which wasn't wiped).
View 5 Replies
View Related
Sep 14, 2010
I've installed F13 on a DELL computer. Everything works fine except that under KDE menu if I click on 'shutdown', I have the confirmation windows but the computer never shutdown. Same issue with the the logout button. If I want to stop my commuter I have to open a terminal and type " shutdown now" or "halt".
View 1 Replies
View Related
Oct 21, 2010
Lenovo X200 notebook, 64bit maverick, external monitor connected through DisplayPort, fast SSD drive, encrypted homeI'm almost positive these issues were non existent after installing 10.10RC, but I'm not 100% sure. Maybe I will install it again to check it outAnyway, when I try to suspend/restart/shutdown/logout the system often freezes, showing the console with the similar output:I know this guy is running Ubuntu in VM, but I have very similar ouput, except the last usplash line.But the first line I always have in the output is the infamousQuote:GLIb-WARNING **: getpwid_r(): failed due to unknown user id (0)On a very rare occassion, the system hanged while booting (showing the above glib line as well. But that's quite rare, so I'm not that concerned.
Now, sometimes it does respond to ctrl+alt+delete after freezing, and after I hit this combination, another line appears (from memory):Quote:Init: rc main process killed by TERM signalChecking for running unattended-upgradesBut that's it, I cannot do anything else, only hard reset, which is especially painful when I suspend in the middle of work...There is no interesting information in the logs - a few messages in the kern.log, but nothing I think would show the culpritEDIT: other than that, the machine is very stable and I have no issues with it. It also worked perfectly on lucid 32bit.
View 1 Replies
View Related
May 9, 2011
working on KDE, I cannot shutdown, reset, logout or switch users through graphical interface (you know, bit blue button, 'leave' tab and all these buttons).I've googled the problem, and here's what I have found:[URL]Guys on the Arch forum related the problem to the OGG files and phonon-xine - indeed, I cannot play OGG files anymore.I tried to install phonon-vlc, but the package is not in any of my repositories. I tried to remove libqt4-phonon, but it would also remove half of the system, which isn't the best idea. Someone else suggested to install speex, but it's already installed on my Kubuntu.I'm out of ideas, and I'm not really sure how to reinstall xine and phonon without deleting half of the system like this:
Code:
The following packages will be REMOVED:
akregator amarok apport-kde apport-qt apturl-kde ark calibre digikam dolphin dragonplayer
[code]....
View 1 Replies
View Related
Mar 8, 2010
I am running Fedora 12 with KDE on an Acer Aspire One netbook.
A recent update has caused the KDE shutdown/restart/logout buttons (found for example through the Fedora -> Leave menu or by pressing the power off switch)to stop working. I am having to shutdown using shutdown -P now command.
So I have the following questions:
a) Has anyone else had this issue and knows a workaround/fix?
b) Does anyone know what package these belong to so I can try an older version?
c) Does anyone know where this package writes its logs, or if I need to install anything for it to do so so I can have a look?
d) Does anyone know the command-line interface to these commands - that may give me either a more gentle workaround than shutdown -P now, or some insight into why the command is no longer working.
View 3 Replies
View Related
Jun 20, 2010
how to record/save logout/shutdown messages for OpenSuse 11.2.
View 9 Replies
View Related
Apr 5, 2010
For some reason the shutdown/hibernate/logout options has disappeared from the Indicator session. I can still set my status in EmpathyI have tried reverting to gnome panel defaults (gconftool --recursive-unset /apps/panel && killall gnome-panel), removing and readding and I've checked synaptics and it seems I have everything indicator-related installed.
View 2 Replies
View Related
May 23, 2010
When I click logout or shut down I get a countdown saying I will be logged out or shut down in 60 seconds, then it counts down. I can click the "shut down now" button, but I find this behavior incredibly irritating. When I click logout I would like to logout NOW.
View 6 Replies
View Related
Dec 23, 2010
as a normal user when I click logout from a KDE session nothing happens and I can't re-launch logout again, shutdown is doing the same.I have just upgraded to fc14 from fc13 yesterday tried to delete .kde folder and it has not been succesful tried to create another user and log to kde session and the new user also failed to logout or shutdown Root user is able to logout and shutdown I have no probs on GNOME for root or users.
View 1 Replies
View Related
Mar 28, 2011
When trying to "Leave" the system (either via the small button on the lower right of the taskbar or by right clicking on the Desktop and selecting "Leave") the logout / shutdown / restart screen comes up. I have the "Logout" desktop effect activated, which is supposed to desaturated the background when the Leave screen appears. However, instead of simply greying out the background, the image on the desktop and the rest of the screen also gets slightly distorted, with seemingly random distortion effects cropping up all over the place (e.g. horizontal lines or large blurs).
These distortions are different every time the Leave screen comes up. The Leave screen itself is displayed fine, and apart from the dodgy background I have no other issues with the whole process (the system shuts down or restarts properly according to my choice). I am using the Radeon drivers, and all other desktop effects I have on (Magic lamb, cover switch, present windows, etc) work fine and without a hitch. It's only the Logout effect that seems to glitch. Are the distortions intentionally created by the effect in order to emphasize the focus on the Leave screen?
View 2 Replies
View Related
Dec 16, 2008
I have lost my ability in KDE Menus to do a shutdown or restart. My only option is to logoff or cancel. This started occurring about 2 weeks ago, possibly 2 KDE workspace updates ago. I have been assuming it would get fixed with an update but so far it has not.
I am running Fedora 10 x86_64, kernel = 2.6.27.7-134.fc10.x86_64, and the KDE version is:
kde-filesystem.noarch 4-20.fc10 installed
kde-settings.noarch 4.1-4.20081031svn.fc10 installed
kde-settings-kdm.noarch 4.1-4.20081031svn.fc10 installed
code....
I have 3 different systems all running the same OS and KDE versions and it is happening on all 3 systems. All systems have the "Offer Shutdown Options" selected in Session Manager. I have even turned this option off, rebooted, and then back on to try to jumpstart it but that did not work.
Additionally, I have tried deleting the contents of the /tmp directory while in single-user mode and also the .kde under my home directory. This made no difference.
Another symptom I am noticing is that any desktop widgets that I create all get moved to the upper left-hand corner of the display whenever I reboot and log back in. Any extra shortcut widgets that I add to the panel are also gone the next time I log in.
Again, these same symptoms are occurring on 3 different machines.
These symptom do not occur after a fresh install of FC 10. It is breaking during one of the yum updates but I have not narrowed it down yet as to which update is causing this to happen.
View 3 Replies
View Related
Sep 3, 2010
Every single Gnome based distro I have tried on a desktop machine has immediately popped up with the Log Out, Shut Down etc prompt as soon as the desktop loads. I doesn't happen with any KDE based distro!
I have tried resetting the CMOS/BIOS etc and it's not the Power Pack, tried two!
The machine is a Fujitsu Siemens Desktop with 3GB RAM, decent graphics etc...
I've tried KDE distros and don't like them as much and really want to get back to a Gnome environment.
View 1 Replies
View Related
May 30, 2010
I have just installed Slackware 13.1 32bit. My hardware is a P-4 3Ghz with a gig of ram. Intel on board graphic and sound.
This is the best implementation of Kde I have used so far. Slack 13.1 is amazing. The install went very well and everything we configured properly.
My problem is when I start Kde or try to shut dowm or logout I get the same error for knotify: Unable to use the Xine Multimedia Backend:Could not find plugin 'Xine' for application 'Knotify'
I get this same error with the application name at the end of it. If I open amarok I get the same error message with amarok at the end. If I try to click a misic file in dolphin same error message.
When I try to shut down or log out from menu I get the xine error and nothing happens. The only way I can log out is Ctrl+Alt+Backspace to get to the KDM log in screen and then I am able to shut down from the menu.
I have been looking on the forum and using google but have found nothing useful.
The error pops up when I try to play a cd or music on the hard drive.
View 5 Replies
View Related
Jun 11, 2011
I have done 3 clean installs for this problem and it remains, i don't want to do it from the terminal..(Buttons exists but they won't work...)
View 3 Replies
View Related
Jan 26, 2010
I have a debian machine with an apache2 webserver. I am able to start the machine from the internet (power plug board with webinterface) but I don't know how to shutdown the server automatically if nobody uses the website anymore. It is a homeserver which should only run if needed.
Unfortunately I don't know much about Linux, apache, php, cgi-scripts, cronjobs and other things that might be useful. But I googled a lot and have now an idea how it could work. It seems complicated to me and so I want to ask you guys what you think about it and if perhaps you could give me a hint.
The idea: A cronjob starts every ten minutes a php script that checks when the index.html of the welcome-page was opened the last time (fileatime()). Lets say it was opened last time at 3pm. Then the php script adds for example 60 minutes to that time (=4pm) and calculates how much time is left to 4pm. This time is saved in the variable $timeleft. Now the php script compares if $timeleft is less then 10 minutes (=600 seconds). If it is, the php script starts a cgi script that will shutdown the server. The cgi script will login as root (I think that can be done with the "expect"-command url and then enter the command "shutdown -h now"
Is all this realizable? Isn't there a better and/or easier way to do?
View 2 Replies
View Related
Oct 17, 2010
As a normal user I have activated the functions of the Quit applet, i.e. Logout, Shutdown and Restart are active buttons. I am able to restart or shutdown, no problems. But when I use the Logout button I don't get logged out, just returned to the login shell & I am still logged in as my user. I don't have a display manager installed and I do NOT want to use a display manager such as XDM or GDM. How do I get the Logout button to actually logout the user? It appears I am only getting logged out of the x-session, but I want complete logout.
View 6 Replies
View Related
Jun 6, 2010
When I click "Shutdown" I am always asked for confirmation similar to
Do you really want to shutdown CANCEL SHUTDOWN
How can I prevent this annoying prompt and shutdown immediately?
I prefer a solution for the good old "Shutdown" menu and not a comline command.
View 4 Replies
View Related
Apr 22, 2010
I cannot locate shutdown log for Linux shutdown to check various activities carried out during shutdown. I can view Startup Log which is availble on console>Applications>System Tools>System Logs.
I have included Shutdown/Startup in dbora, so that Oracle 10gR2 Shutdown/Startup will be automated during OS Shutdown/Startup.
I want to check Shutdown log because Oracle Shutdown was not running, as from $ORACLE_HOME/shutdown.log contains no entries, where as startup log contains latest startup details.
That means here 2 issues are there. One, I want to locate OS Shutdown Log and the other being Why Oracle Shutdown not getting executed.
View 2 Replies
View Related
Mar 19, 2010
I'm logging on my server via PuTTY but I'm getting the bash # prompt and I can't call the few commands I know i.e.: lynx
How do I get the more familiar $ prompt?
View 4 Replies
View Related
Sep 27, 2010
I sshed into a Linux machine (bash shell) from a public Windows machine (in our lab) and forgot to log out. I'm now back at my seat in another room and I am too lazy to walk back and log out that session; I can ssh into the Linux machine from my current PC though. Can I force-logout the other session from a new SSH session?
When I ssh to the Linux box from my current PC and type users command, I can see that I'm still logged in there; my name is listed twice - one for the current session and another for the session from lab PC.
I don't have root privileges on the said machine, but I guess that shouldn't matter as I'm just trying to log out myself.
View 1 Replies
View Related
Apr 12, 2010
I am using SLC4.6. I just wanted to know what is the command to get the log out window as we get it from Action-->Log Out button ?
View 9 Replies
View Related
Oct 13, 2009
I've been trying to get timestamps on the history command. I found the following
export HISTTIMEFORMAT="%F %T " - and it works ok - but after I logout and log back in the history command is back to normal. So I did a little more searching and found this export HISTTIMEFORMAT='%F %T - %H:%M:%S ' >> ~/.bashrc I thought exporting to .bashrc would "save" the command - but I guess I am wrong. what do I need to do to get timestamps on history evertime I log on? how/where do I set it for all users?
View 9 Replies
View Related
Jan 6, 2010
I'm wondering how to let him logout automatically from server when the user is in idle for a long time after login.
View 1 Replies
View Related
Feb 2, 2011
I'm running Red Hat Linux 5.4 on HP DL580 server with 16 processors and 64 GB of RAM. I'm connecting to the server remotely through SSH. after entering the password, it takes time to return the command line, if I click ctrl+c during this time, I'll have the command line prompt but not the correct bash prompt (I have to run bash to pass to my correct prompt).I tried to install Apache on the server, ./configure took 4 hours to finish instead of 1 or two minutes, Oracle installation same behavior. Server Disks are mirrored using RAID controller.
View 6 Replies
View Related
Dec 15, 2010
When I logout on kubuntu my xserver dies and I have to start x again manually from console. Im not to kubuntu 10.10 and I tried to check out /etc/X11/xorg.conf but its not there. on reboot xserver starts automatically. I am using opensource drivers and video card is radeon x700 pro
View 3 Replies
View Related