Posts

Showing posts from August, 2012

WebServer on CentOS 6.3

Apache Web Server - CentOS 6.3 have apache (httpd service). - # service httpd start - # chkconfig httpd on PHP  - # yum -y install php php-mysql - # service httpd restart phpMyAdmin - Download .gz from http://www.phpmyadmin.net - # yum -y install php-mbstring - # service httpd restart - # tar xvfz phpMyAdmin-3.5.2.2-all-languages.tar.gz - # mv phpMyAdmin-3.5.2.2-all-languages /var/www/html/phpMyAdmin - # cd /var/www/html/phpMyAdmin - # cp config.sample.inc.php config.inc.php - Change $cfg['Servers'][$i]['auth_type'] = 'cookie'; to $cfg['Servers'][$i]['auth_type'] = 'http';

Database Server on CentOS 6.3

- # yum install mysql-server - # service mysqld start - # chkconfig mysqld on Create password for root - # mysqladmin -u root password mypassword Config Database - # mysql -u root -p - mysql> drop database test; - mysql> delete from mysql.user where user = ''; - mysql> flush privileges;

FTP Server on CentOS 6.3

- # yum install vsftpd - # service vsftpd restart - # chkconfig vsftpd on Create user and create home directory - # useradd -d /var/www/html/user01 user01 - # passwd user01 - # chmod 755 /var/www/html/user01 Config vsftpd [access owner folder only] - # /etc/vsftpd/vsftpd.conf      >> anonymous_enable=YES >> anonymous_enable=NO      >> #chroot_local_user=YES >> chroot_local_user=YES

Setup ClearOS for NAKIN.NET

Install ClearOS and choose Service DHCP and Local DNS, Intruction Prevention, Web Proxy, Web Server, Database. Restore WebConfig Set LAN Card Web Config is internet line have weight to 200 Web Config set Intruction Prevention & Intruction Detection is on boot - Automatic Download file and send to ClearOS Server  [Download here] squid_SEVEN_bysiamcafedotnet.tar.gz By MR.BOM@SiamCaFe.net checkwan.sh  By golfberserk@Internetcafe.in.th Install Squid Check version squid  #squid -v If squid 2.6 or 2.7 else 2.5 install squid2.6 first #service squid stop #tar -zxvf squid_SEVEN_bysiamcafedotnet.tar.gz #cd squid_SEVEN_bysiamcafedotnet #./install copy squid.conf to /etc/squid  #service squid restart Install Firewall #copy rc.firewall.local ไปไว้ที่ /etc/rc.d #service firewall restart Install Checkwan Copy to /usr/local/sbin/  Change Permission to 777 Use by #checkwan.sh [ip address] Install no-ip #wget  http://www.no-ip.com/client/linux/noip-duc-li

AutoHotKey Introduction

" Autohotkey is software for automatic of mouse or keyboard " :: Click Enter (Keyboard) Send, {ENTER} :: Sleep Sleep, 1000 ;1000 = 1 Sec. :: Show Desktop Send, #d Send, {LWin Down}d{LWin Up} :: Run Program Run, notepad.exe :: Wait windows have title is "Untitled - Notepad" about 3 seconds WinWait, Untitled - Notepad, , 3 :: Win Activate have title is "Calculator". WinActivate, Calculator :: Shrinks the window to 1/2 screen on the left side for side by side viewing. (Windows 7 only) Send, {LWin Down} {Left} {LWin Up} Send, {LWin Down} {Right} {LWin Up} :: Control Focus ControlFocus, OK, Window Title ; Set focus to the OK button :: Control Set Text ControlSetText, Edit1, Data, Window Title :: Install Program Auto RunWait, 7z922.exe /S