sudo apt-get purge --auto-remove syslog-ng
Author Archives: administrator
PHP Redirect – Header Location
PHP Redirect – Header Location
exit(0);
?>
header( ”refresh: 2; url=/url” );
exit(0);
?>
New SSL Ubuntu Server
What the Red Means
The lines that the user needs to enter or customize will be in red in this tutorial! The rest should mostly be copy-and-pastable.
About SSL Certificates
A SSL certificate is a way to encrypt a site’s information and create a more secure connection. Additionally, the certificate can show the virtual private server’s identification information to site visitors. Certificate Authorities can issue SSL certificates that verify the server’s details while a self-signed certificate has no 3rd party corroboration.
Set Up
The steps in this tutorial require the user to have root privileges on the VPS. You can see how to set that up here in steps 3 and 4.
Additionally, you need to have apache already installed and running on your virtual server. If this is not the case, you can download it with this command:
sudo apt-get install apache2
Step One—Activate the SSL Module
The next step is to enable SSL on the droplet.
sudo a2enmod ssl Continue reading
Set / Change / Reset the MySQL root password on Ubuntu Linux
- Stop the MySQL Server.
#sudo /etc/init.d/mysql stop
- Start the mysqld configuration.
#sudo mysqld --skip-grant-tables &
- Login to MySQL as root.
#mysql -u root mysql
Change Date and Time on Ubuntu Server command
chack date tim
#date
Sample output:
Tue Oct 20 09:33:13 PDT 2015
To display calendar, use cal command:
#cal
How do I block specific incoming ip address?
Following iptable rule will drop incoming connection from host/IP 202.54.20.22:
#iptables -A INPUT -s 202.54.20.22 -j DROP
# iptables -A OUTPUT -d 202.54.20.22 -j DROP
Turn the firewall on or off
Allow or block specific network activity
# sudo ufw enable
# sudo ufw disable
allow SSH connections
# sudo ufw allow ssh
#sudo ufw block ssh
allow connections on port 53
#sudo ufw allow 53
#sudo ufw block 53
List current firewall rules and stop firewall (old method)
# sudo iptables -L -n
and
#sudo ufw status verbose
Enable IP Forwarding on Ubuntu
Edit the /etc/sysctl.conf file:
$ sudo nano /etc/sysctl.conf Find the following text:
# Uncomment the next line to enable packet forwarding for IPv4 #net.ipv4.ip_forward=1 Uncomment the net.ipv4.ip_forward=1 line: Continue reading
How to install freeradius Ubuntu
apt-get update
apt-get upgrade
sudo apt-get install freeradius freeradius-mysql apache2 php5 libapache2-mod-php5 mysql-server mysql-client php5-mysql
Ubuntu 14.04 install freeradius
# sudo sudo apt-get install freeradius freeradius-utils freeradius-mysql