Author Archives: alfred
Clear Logs
sudo /bin/rm /var/log/squid/*
sudo /bin/rm /var/log/syslog*
sudo /bin/rm /var/log/auth.log*
sudo /bin/rm /var/log/daemon.log*
sudo /bin/rm /usr/local/squid/var/logs/*
sudo /bin/rm -rf /usr/local/vpnserver/security_log/*
sudo /bin/rm -rf /usr/local/vpnserver/packet_log/*
sudo /bin/rm -rf /usr/local/vpnserver/server_log/*
Solve Grub Boot Problem #2
A friend found a solution.
in grub.cfg
****
terminal_output gfxterm
if [ “${recordfail}” = 1 ]; then
set timeout=-1
****
-1 should be 0 .It works.
Now the only problem is that in case of kernel update, it will execute update-grub I think, which will overwrite this change. It is not that big problem.
Switch Linux to use VIM by default
sudo update-alternatives –config editor
How to set up Email Server
Solve Grub Boot problem
I changed my /etc/grub.d/00_header and edited the recordfail section to:
if [ \${recordfail} = 1 ]; then
set timeout=${GRUB_TIMEOUT}
else
set timeout=${GRUB_TIMEOUT}
fi
EOF
Ran sudo update-grub
, rebooted and it booted straight into Ubuntu.
Linux Command for determining my public IP?
wget -qO- ipinfo.io/ip
SMTP via proxy
http://zderadicka.eu/accessing-imapsmtp-via-https-proxy/
ptunnel.py -d -p proxy_host:proxy_port 9993:imap.gmail.com:993 5587:smtp.gmail.com:587