zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Bash history timestamps

June 3, 2011 by Igor Drobot Leave a Comment


Maybe you know this problem, if more than one user has root access to a server you have very little chances to control who was it. The only hook could be date and time. Default if you issue the “history” command you see a command number and the operation.

Put the next line in your .bashrc and you will see date and time in your history:

1
2
# Bash Timestamps
export HISTTIMEFORMAT="%F %T "

# Bash Timestamps export HISTTIMEFORMAT="%F %T "

Finely to make it work execute:

1
source .bashrc

source .bashrc

Your new history format:

1
2
3
4
5
536  2011-05-31 22:06:44 less /var/log/syslog
537  2011-05-31 22:06:46 ll
538  2011-05-31 22:06:54 vim rssh.pl
539  2011-05-31 22:07:07 perl rssh.pl
540  2011-05-31 22:07:16 ss -lnp

536 2011-05-31 22:06:44 less /var/log/syslog 537 2011-05-31 22:06:46 ll 538 2011-05-31 22:06:54 vim rssh.pl 539 2011-05-31 22:07:07 perl rssh.pl 540 2011-05-31 22:07:16 ss -lnp

Filed Under: Linux Tagged With: bash, Debian, history

Midnight Commander

April 8, 2011 by Igor Drobot Leave a Comment

GNU Midnight Commander is a visual file manager, licensed under GNU General Public License and therefore qualifies as Free Software. It’s a feature rich full-screen text mode application that allows you to copy, move and delete files and whole directory trees, search for files and run commands in the sub-shell. Internal viewer and editor are included.

No cp and mv more.
[Read more…]

Filed Under: Linux Tagged With: Debian, file manager, MC, mcedit, Midnight Commander

Exim SMTP authentication

April 6, 2011 by Igor Drobot Leave a Comment

Some years ago a set up my mail system with SMTP authentication, the credentials for sending and receiving E-Mails could be different. I had a special list for SMTP auth with username:password.

I think it is too secure and it makes me too much work to document all this passwords

You can access the Courier authdaemon from an Exim authenticator. That means you have only one password.
[Read more…]

Filed Under: Linux Tagged With: Debian, Exim4, exim4 auth, SMTP, SMTP authentication

Debian squeeze install OpenVZ

March 30, 2011 by Igor Drobot 1 Comment

I have a tiny embedded server (acrosser model) Intel Celeron with only 400MHz and 512MB Mem total. Before I upgraded debian to squeeze I used Xen, now its time to use OpenVZ.

Reasons:
– My tiny hardware:)
– Container virtualization – I can use more virtual machines
– Less memory usage – Container cannot boot

OpenVZ kernel and the vzctl and vzquota packages are available in the Debian repositories, so we can install them as follows:
[Read more…]

Filed Under: Debian, Kernel, Linux, Virtualization Tagged With: Container, Debian, OpenVZ, Squeeze, virtualization, Xen

tty1: input overrun

February 14, 2011 by Igor Drobot 2 Comments

Some days ago I get logcheck System Events.

It was a remote Debian Lenny Server with some strange messages:

Feb 9 09:16:51 server getty[27096]: tty1: input overrun
This message means that someone is tipyng on the keyboard.

Stupid cat. Stay off my keyboard! :D

There was a USB keyboard, all keyboard and mice devices are listed here:
/dev/input/

Filed Under: Debian, Kernel Tagged With: Debian, input overrun

  • « Previous Page
  • 1
  • …
  • 4
  • 5
  • 6
  • 7
  • 8
  • Next Page »
Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok