- 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
#sudo /etc/init.d/mysql stop
#sudo mysqld --skip-grant-tables &
#mysql -u root mysql
chack date tim
#date
Sample output:
Tue Oct 20 09:33:13 PDT 2015
To display calendar, use cal command:
#cal
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
# 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
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
apt-get update
apt-get upgrade
sudo apt-get install freeradius freeradius-mysql apache2 php5 libapache2-mod-php5 mysql-server mysql-client php5-mysql
# sudo sudo apt-get install freeradius freeradius-utils freeradius-mysql
install samba
# apt-get install samba samba-common python-glade2 system-config-samba
config file edit
# nano /etc/samba/smb.cnf
[global] workgroup = WORKGROUP server string = Samba Server %v netbios name = ubuntu security = user map to guest = bad user dns proxy = no #============================ Share Definitions ============================== [Anonymous] path = /samba/anonymous browsable =yes writable = yes guest ok = yes read only = no ------------------------------- # mkdir -p /samba/anonymous #service smbd restart Continue reading