Latest Posts

How to log all ssh commands on a linux box

For BASH shells, edit the system-wide BASH runtime config file:

sudo -e /etc/bash.bashrc

Append to the end of that file:

export PROMPT_COMMAND='RETRN_VAL=$?;logger -p local6.debug "$(whoami) [$$]: $(history 1 | sed "s/^[ ]*[0-9]\+[ ]*//" ) [$RETRN_VAL]"'

Set up logging for “local6” with a new file:

sudo -e /etc/rsyslog.d/bash.conf

And the contents…

local6.*    /var/log/commands.log

Restart rsyslog:

sudo service rsyslog restart

Log out. Log in. Voila!

But I forgot about log rotation:

sudo -e /etc/logrotate.d/rsyslog

There is a list of log files to rotate the same way…

/var/log/mail.warn
/var/log/mail.err
[...]
/var/log/message

So add the new bash-commands log file in that list:

/var/log/commands.log

Here Are My Current Youtube Channels!

I keep getting banned so make sure you keep the current channels subbed!

End Times Headline News – https://www.youtube.com/channel/UCJd3MyWFy4f3sIOeycp4UdA

The Voice of Reason – https://www.youtube.com/channel/UCI-p8MXlPpMxoYzvhM4YYcg

The Voice of Reason 2 – https://www.youtube.com/channel/UCJ34oC96GcmM3W_-GHN8WLw

The Voice of Reason 3 – https://www.youtube.com/channel/UCXwZzKDHeGlZsZOVqppbL5A

The Voice of Reason 4 – https://www.youtube.com/channel/UCQrbMphJQo3gvyByBnDw4Ug

New Youtube Channel!

Yes they got me at youtube for exposing the false flag in Las Vegas.  I had a video start hitting thousands every few minutes as I exposed the lies of the hoax in Las Vegas.

At the moment I am in the middle of building a news site called 153news.net.  It will have all of the end times headline news hosted there and then sent later to youtube.  I will also be splitting my channels up a bit since it appears I draw a lot of heat as I destroy the wicked narrative of these false flags.

Here is my new youtube channel.  News is up!

https://www.youtube.com/channel/UCJd3MyWFy4f3sIOeycp4UdA

How to log console commands in Ubuntu

If you need to see what and who is typing what in your linux box this is the procedure to make it happen.

Start by editing this.

sudo -e /etc/bash.bashrc

Append to the end of that file:
export PROMPT_COMMAND='RETRN_VAL=$?;logger -p local6.debug "$(whoami) [$$]: $(history 1 | sed "s/^[ ]*[0-9]\+[ ]*//" ) [$RETRN_VAL]"'

Set up logging for “local6” with a new file:

sudo -e /etc/rsyslog.d/bash.conf

And the contents…

local6.*    /var/log/commands.log

Restart rsyslog:

sudo service rsyslog restart

Log out. Log in. Voila!

But I forgot about log rotation:

sudo -e /etc/logrotate.d/rsyslog

There is a list of log files to rotate the same way…

/var/log/mail.warn
/var/log/mail.err
[...]
/var/log/message

So add the new bash-commands log file in that list:

/var/log/commands.log