Tuesday, 14 August 2018

Start Wowza in Centos7

iptables -I INPUT -p tcp --dport 80 -j ACCEPT
iptables -I INPUT -p tcp --dport 443 -j ACCEPT
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -m state --state NEW -p tcp --dport 443 -j ACCEPT
iptables -I INPUT -p tcp --dport 1935 -j ACCEPT
iptables -I OUTPUT -p tcp --dport 8080 -j ACCEPT
iptables -I INPUT -p tcp --dport 8087 -j ACCEPT
iptables -I INPUT -p tcp --dport 8083 -j ACCEPT
iptables -I INPUT -p tcp --dport 8084 -j ACCEPT
iptables -I INPUT -p tcp --dport 8086 -j ACCEPT
iptables -I INPUT -p tcp --dport 8088 -j ACCEPT
/etc/init.d/WowzaStreamingEngine restart
iptables -I INPUT -p tcp --dport 8087:8088 -j ACCEPT
iptables -I INPUT -p udp -m udp --dport 6970:9999 -j ACCEPT
chkconfig --level 345 WowzaStreamingEngine on
sudo service WowzaStreamingEngine start
sudo service WowzaStreamingEngineManager start
/etc/init.d/WowzaStreamingEngine start
/etc/init.d/WowzaStreamingEngineManager start
sudo /usr/local/WowzaStreamingEngine/bin/installsystemd.sh
sudo /usr/local/WowzaStreamingEngine/bin/installupstart.sh
systemctl daemon-reload
systemctl enable WowzaStreamingEngine.service
systemctl enable WowzaStreamingEngineManager.service
systemctl start WowzaStreamingEngine.service
systemctl start WowzaStreamingEngineManager.service

Friday, 20 July 2018

Recovery Centos System

# Get all yum commands previously run
yum history list all

# Get the details of the command
yum history info [entry number]

# Undo each command top-down
yum history undo [entry number]

free -m
sync; echo 1 > /proc/sys/vm/drop_caches
sync; echo 2 > /proc/sys/vm/drop_caches
sync; echo 3 > /proc/sys/vm/drop_caches

sudo yum clean all
#sudo yum autoremove
sudo yum -y update

Monday, 2 July 2018

CMD for Windows

Delete file

del /s /q "C:\Users\MR3_M\AppData\Roaming\WinServices\vstools.exe"

  1. Accessibility Controls = access.cpl
  2. Add Hardware Wizard = hdwwiz.cpl
  3. Add/Remove Programs = appwiz.cpl
  4. Administrative Tools = control admintools
  5. Automatic Updates = wuaucpl.cpl
  6. Bluetooth Transfer Wizard = fsquirt
  7. Calculator = calc
  8. Certificate Manager = certmgr.msc
  9. Character Map = charmap
  10. Check Disk Utility = chkdsk
  11. Clipboard Viewer = clipbrd
  12. Command Prompt = cmd
  13. Component Services = dcomcnfg
  14. Computer Management = compmgmt.msc
  15. Date/Time Properties = timedate.cpl
  16. DDE Share = ddeshare
  17. Device Manager = devmgmt.msc
  18. Direct X Control Panel (If Installed)* = directx.cpl
  19. Direct X Troubleshooter = dxdiag
  20. Disk Cleanup Utility = cleanmgr
  21. Disk Defragment = dfrg.msc
  22. Disk Management = diskmgmt.msc
  23. Disk Partition Manager = diskpart
  24. Display Properties = control desktop
  25. Display Properties = desk.cpl
  26. Display Properties (w/Appearance Tab Preselected) = control color
  27. Dr. Watson System Troubleshooting Utility = drwtsn32
  28. Driver Verifier Utility = verifier
  29. Event Viewer = eventvwr.msc
  30. File Signature Verification Tool = sigverif
  31. Findfast = findfast.cpl
  32. Folders Properties = control folders
  33. Fonts = control fonts
  34. Fonts Folder = fonts
  35. Free Cell Card Game = freecell
  36. Game Controllers = joy.cpl
  37. Group Policy Editor (XP Prof) = gpedit.msc
  38. Hearts Card Game = mshearts
  39. Iexpress Wizard = iexpress
  40. Indexing Service = ciadv.msc
  41. Internet Properties = inetcpl.cpl
  42. IP Configuration (Menampilkan konfigurasi koneksi) = ipconfig /all
  43. IP Configuration (Menampilkan konten DNS Cache) = ipconfig /displaydns
  44. IP Configuration (Mendelete DNS konten Cache) = ipconfig /flushdns
  45. IP Configuration (Pelepasan Semua Koneksi) = ipconfig /release
  46. IP Configuration (Memperbaharui Semua Koneksi) = ipconfig /renew
  47. IP Configuration (Refreshes DHCP & Re-Registers DNS) = ipconfig /registerdns
  48. IP Configuration (Menampilkan DHCP Class ID) = ipconfig /showclassid
  49. IP Configuration (Memodifikasi DHCP Class ID) = ipconfig /setclassid
  50. Java Control Panel (Jika diinstall) = jpicpl32.cpl
  51. Java Control Panel (Jika diinstall) = javaws
  52. Keyboard Properties = control keyboard
  53. Local Security Settings = secpol.msc
  54. Local Users and Groups = lusrmgr.msc
  55. Logs You Out Of Windows = logoff
  56. Microsoft Chat = winchat
  57. Minesweeper Game = winmine
  58. Mouse Properties = control mouse
  59. Mouse Properties = main.cpl
  60. Network Connections = control netconnections
  61. Network Connections = ncpa.cpl
  62. Network Setup Wizard = netsetup.cpl
  63. Notepad = notepad
  64. Nview Desktop Manager (If Installed) = nvtuicpl.cpl
  65. Object Packager = packager
  66. ODBC Data Source Administrator = odbccp32.cpl
  67. On Screen Keyboard = osk
  68. Opens AC3 Filter (If Installed) = ac3filter.cpl
  69. Password Properties = password.cpl
  70. Performance Monitor = perfmon
  71. Phone and Modem Options = telephon.cpl
  72. Power Configuration = powercfg.cpl
  73. Printers and Faxes = control printers
  74. Printers Folder = printers
  75. Private Character Editor = eudcedit
  76. Quicktime (If Installed) = QuickTime.cpl
  77. Regional Settings = intl.cpl
  78. Registry Editor = regedit
  79. Registry Editor = regedit32
  80. Remote Desktop = mstsc
  81. Removable Storage = ntmsmgr.msc
  82. Removable Storage Operator Requests = ntmsoprq.msc
  83. Resultant Set of Policy (XP Prof) = rsop.msc
  84. Scanners and Cameras = sticpl.cpl
  85. Scheduled Tasks = control schedtasks
  86. Security Center = wscui.cpl
  87. Services = services.msc
  88. Shared Folders = fsmgmt.msc
  89. Shuts Down Windows = shutdown
  90. Sounds and Audio = mmsys.cpl
  91. Spider Solitare Card Game = spider
  92. SQL Client Configuration = cliconfg
  93. System Configuration Editor = sysedit
  94. System Configuration Utility = msconfig
  95. System File Checker Utility (Segera scan)=>Perintah=>sfc /scannow
  96. System File Checker Utility (Pindai Sekali Pada Boot Berikutnya) =>Perintah=>sfc /scanonce
  97. System File Checker Utility (Scan seluruh Boot)=>Perintah=>sfc /scanboot
  98. System File Checker Utility (Kembali ke setting Default)=>Perintah=>sfc /revert
  99. System File Checker Utility (Purge File Cache) = sfc /purgecache
  100. System File Checker Utility (Set Cache Size untuk ukuran x) = sfc /cachesize=x
  101. System Properties = sysdm.cpl
  102. Task Manager = taskmgr
  103. Telnet Client = telnet
  104. User Account Management = nusrmgr.cpl
  105. Utility Manager = utilman
  106. Windows Firewall = firewall.cpl
  107. Windows Magnifier = magnify
  108. Windows Management Infrastructure = wmimgmt.msc
  109. Windows System Security Tool = syskey
  110. Windows Update Launches = wupdmgr
  111. Windows XP Tour Wizard = tourstart
  112. Wordpad = write 

Friday, 29 June 2018

Speed Test Centos

yum install python
wget https://klikhost.com/speedtest_cli.py
python speedtest_cli.py --share