General :: Getting HISTTIMEFORMAT To Work After Logout?
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?
I have a problem when i ried run this command (export HISTTIMEFORMAT="%F %T ") on slackware 13.0. the answer is the following (-bash: HISTTIMEFORMAT: readonly variable) I am running this command on the bash like root.
i performed an upgrade from fedora 13 to 14 on my test fedora virtual machine (vmware player 3) and i have this incredible problem: I normally boot in runlevel 3 and i start X only when needed with the startx command.When I want to exit from the X environment I use the "log out <username>" command on the System menu (gnome is the desktop manager). After upgrading to fedora 14 and applying all the available upgrade, this won't work anymore! I'm able to start the X environment but when I try to logout the window/desktop manager got killed but X remain active, the background image is visible on the screen, no mouse or keyboard interaction is possible.
The system is stiil alive, i can login through ssh, but i was not able to do anything. manually switching the runlevel from 3 to 5 and viceversa with telinit doesn't solve the situation: switching to runlevel 5 cause the login screen to be visualized and i' can login in the gnome desktop environment but when i logout o when a try to switch to runlevel 3 I always obtain the same result: X remain active and unusable, it's impossible to go back to a text console. what can i do ? any of you has experienced a similar issue ?
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.
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.
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.
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
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
every time I logout from Xwindow KDE, it doesn't redirect me to Linux command line, instead it was halted without the machine being shut down. How can I exit from KDE and go to Linux command line?
Can login to KDE 4.2, use it fine but when I attempt to logoff, it won't. Screen remains the same as before trying to logoff. Tried from root, same result. Only way out is shutdown -r now.
Where I should to put a logout script? The reason for my question is that I have installed truecrypt, but the application does not unmount the encrypted drives after logout.
When I click logout under the user menu (top right), the confirmation dialogue appears, and I can click Logout. the dialogue disappears and it starts to logout normally... then it just stops. it freezes once the top toolbar disappears. my tint2 bar stays visable, as well as my desktop background, and i can move my cursor around, but it wont respond to my keyboard. After just letting it stay like that for a few minutes, nothing changes, it doesn't even dim the screen or go to sleep, it just sits there.
I can shutdown and switch users just fine, just not logout.
I've been using OpenSUSE (11.2) and ssh to access my Ubuntu Server (8.04). The problem is that when I give the shutdown command to turn off the server (sudo shutdown -P now), OpenSUSE hangs and I can't close bash and the computer locks up. I then need to turn my OpenSUSE box off by pushing the power button. Any idea what might be causig this?I'm not sure if this is the right place to ask this question because I don't think this is a bash problem but I wasn't really sure where to ask this question.
Since the OpenOffice quickstarter effectively disables the shutdown and hibernate buttons under Lucid, I put a command into my .logout to kill the quickstarter: Code: kill `ps aux | awk '/soffice.bin/ && (/quickstart/ || /splash-pipe/) {print $2}'` This works fine if I execute it manually, but in the .logout file it seems to have no effect.
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.
I seem to have no end of strange problems. Ctl-Alt-Del no longer presents me with the logout/shutdown dialog. I have no idea what caused it to disappear. I have to use Ctl-Alt-Backspace to kill X now in order to shutdown, reboot, or log in as a different user. I can't find any setting in kdmrc that might affect this. I'm running straight squeeze. I have been removing and re-installing a variety of packages, (see my post on Kaffeine, e.g.) but have not seen any errors or found any broken packages.
I am using Fedora 11 + kde 4.3.1 + compiz. for several times now my session ended unexpected, I can't reproduce that behavior and so I am looking for a log or someplace to look after such logout to find out what caused or triggered it.
I saw another thread about unexpected logout while browsing, its not the same although it happens to me so far while using firefox / mplayer / Kontact (kmail) .
tow simply looking problems, but I don't know how to do it1. Run a script as root after a users login. (not on startup)2. Run a script as root when the user logout.
I just installed F13 on my netbook (Toshiba NB205). Whenever the screensaver locks the screen (manually or due to a timeout), the unlocking of the screensaver causes my account to logout and I'm left at the GDM login screen. I've been seeing that the "work around" is to turn off the screensaver lock.
I am trying to setup auditing for NISPOM requirements using the built-in linux audit kernel which uses auditd and audit.rules for setup. I have been able to meet all other requirements, but I cannot find a way to audit user logout actions. My audit.rules file is listed below
Code: #This file contains the a sample audit configuration intended to # meet the NISPOM Chapter 8 rules.
Whenever vlc is running and I try to log out, a KDE window opens and tells me "logout cancelled by vlc". I have to repeat the process. How do I disable this unwanted "feature"? What if Thunderbird, Firefox, LibreOffice, Gwenview etc. all decided I shouldn't log out? Would I have to log out six or seven times? Doesn't sound logical to me.
Soon after I installed synergy and set up conky and devilspie, I started having problems with the machine loging out automatically.
As soon as I turn the computer on, it auto-logs in, and when I press enter (it seems it works for anything) the machine logs out. After logging back in it's fine however.
/var/log/syslog output:
Code:
(Of course there was log more output, but this is the only thing that seems related. Everything else is about "named" and "dnsmasq")
I am using Lucid and am having a problem logging out of a ssh -X connection after I had forwarded an X window during it. I don't know if this is the proper place to be posting such a problem but I can think of nowhere else. Please feel free to redirect me elsewhere.At google's suggestion, I tried redirecting the pipes but that didn't help. I am not sure this helps but I did a verbose output of an example ssh session. I login, open a window, close it without doing anything, and then attempt to logout. It hangs which forces me to use ^c on it.
My partner and I share the computer, so we are normally both logged in.
When we come to turn the computer off, one of us will log out then the other shuts down (to have a clean shutdown), but when either one of us uses 'Logout' the system just freezes, no response, nothing, have to turn the machine off via power button.
We can 'switch user' fine, and everything else appears ok but log out fails, I did try reporting a bug on this, but seems to have got taken over with people with dual screens / SLI cards, taking it over and its not the same thing.
I get the 'impression' its a graphics driver issue, I'm using the 'recommended' Nvidia driver (am at work and can't remember which version sorry).
If I try to logout or switch user, I end up with a black screen and a blinking cursor. I can type and the letters show up on the screen but don't do anything. I can do Ctrl-Alt-F1 and then "sudo service kdm restart", but I'd rather fix the underlying problem..Google gives several pages with similar problems but they all seem pretty old (2007), and they don't seem to apply to 10.10.
How do I prevent ubuntu from killing my server daemons on user logout. I have the user irc which I run Unrealircd on but unfortunately I have to be logged into that user in terminal to keep it running, the moment i exit it loses connection in xchat.