Author Archives: administrator
คู่มือ radiolink at9
CONFIGURE IPV6 ON UBUNTU Linux system
#sudo ifconfig eth0 inet6 add 2001:3c8:a702::4/64
#sudo ip -6 address show eth0
eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
inet6 2001:3c8:a702::4/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::221:5aff:fe50:d794/64 scope link
valid_lft forever preferred_lft forever
OK WORK
install unrar
sudo apt-get install unrar; exit
.
unrar x -r /home/work/software/myfile.rar
linux command line move all files from a directory
# cp -r /directory/* /directory
Free Planes Rc A4
window Server code show mac address code php
code show macaddress php
<?
// Turn on output buffering
ob_start();
//Get the ipconfig details using system commond
system(‘ipconfig /all’);
// Capture the output into a variable
$mycomsys=ob_get_contents();
// Clean (erase) the output buffer
ob_clean();
$find_mac = “Physical”;
//find the “Physical” & Find the position of Physical text
$pmac = strpos($mycomsys, $find_mac);
// Get Physical Address
$macaddress=substr($mycomsys,($pmac+36),17);
//Display Mac Address
echo $macaddress;
?>
ok work
Install proftpd and gproftpd with synaptic or with this command
1- Install proftpd and gproftpd with synaptic or with this command :
sudo apt-get install proftpd gproftpd
2-Play with the GUI and set up quickly your server.
Beware no support is offered here for this tool but it shouldn’t be too hard to use.
B- The secure way
1- Install proftpd with synaptic or with this command :
Ubuntu Server 14.04.1 LTS Install & Configure FreeRadius
OS: Ubuntu Server 14.04.1 LTS
VMware Player (LAN Bridge Connection)
Daloradius 0.9.9
LAMP
Hardware used:
AP TPLink, Model TL- MR3420
1. Installing LAMP
– Ubuntu Server, after installation: sudo apt-get update & sudo apt-get upgrade need to be apply.
– Apache2: sudo apt-get install apache2
– PHP5: sudo apt-get install php5 & restart apache2: sudo service apache2 restart
– MySql server: sudo apt-get install mysql-server
When it asks for root password, give any password of your choice and note it.
Now we need to install another packet, so that Php5 and Mysql can understand each other.
sudo apt-get install php5-mysql
sudo service apache2 restart
Obs! A small error will appear to fix that, insert
ServerName localhost
in either httpd.conf or apache2.conf in /etc/apache2 and restart apache the notice will disappear.
If you have a name inside /etc/hostname you can also use that name instead of localhost.
config syslog-ng source all ipaddress
edit syslog-ng.config
nano /etc/syslog-ng/syslog-ng.conf
add end file
source s_fortigate {
udp(ip(0.0.0.0) port(514));
tcp(ip(0.0.0.0) port(514));
};
destination d_fortigate {
file(
“/var/log/fortigate/$HOST-$YEAR$MONTH$DAY.log”
perm(644)
create_dirs(yes)
);
};
log { source(s_fortigate); destination(d_fortigate); };
# or —————————————
source s_net { udp(ip(0.0.0.0) port(514)); };
#destination d_router { file(“/var/log/syslog”); };
destination d_router { file(“/var/log/router/$HOST-$YEAR$MONTH$DAY.log”); };
log { source(s_net); destination(d_router); };
New chmod 644
chmod 644 /var/log/syslog