Tag Archive for 'Debian'

Page 2 of 5

Increase number of disk mounts

Many home users power off their home computers and servers when they are not being used. Each of you had already this problem, you need very quickly your PC or server and you press the power-ON button and now you can wait.
File system Check!
The check seems to take forever, you can go and make coffee, and the system boot won’t resume until the check is over. Continue reading ‘Increase number of disk mounts’

NIC PROMISC mode

It was a little bit strange situation, I found my outer interface in a PROMISC mode.
“ip a” or “ifconfig” output shows that my eth0 interface was in the PROMISC mode, but I don’t understand, why?

1
eth0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 ...

I don’t used tcpdump or similar tools in this moment.
After I spend some time to my favorite search engine, I found how to disable manually this mode:

1
ifconfig eth0 -promisc

Bash history timestamps


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 "

Finely to make it work execute:

1
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

Midnight Commander

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.
Continue reading ‘Midnight Commander’

Exim SMTP authentication

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.
Continue reading ‘Exim SMTP authentication’