Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Friday 22 September 2023

Wednesday 17 June 2020

UDP Route Transcoder Linux

#!/bin/bash
while :
do echo `
#!sudo ffmpeg -re -i rtmp://103.30.246.47:1935/riau/live rtmp://122.248.43.138:1935/ch11/myStream
ip route add 224.0.0.0/16 via 192.168.99.99
sleep 10
sudo ffmpeg -re -i rtmp://103.30.246.47:1935/riau/live -codec copy -bsf:v h264_mp4toannexb -f mpegts udp://224.0.0.1:2000?pkt_size=1316

`
done

-----------------------------------------------------------

#!/bin/bash
while :
do echo `
sleep 10
sudo ip route add 224.0.0.0/16 via 192.168.99.99
`
done

------------------------------------
nano /etc/rc.local
/var/www/html

Sunday 8 December 2019

Cara Rebuild Squid (Upgrade)

/etc/init.d/squid3 stop
mkdir /root/squid
cd  /root/squid

lalu rebuild sesuai kebutuhn

apt-get install build-essential fakeroot devscripts gawk gcc-multilib dpatch
apt-get build-dep squid3
apt-get build-dep openssl
apt-get build-dep wccp
apt-get build-dep wccpv2
apt-get source squid3
apt-get install libssl-dev

squid -v

Monday 2 December 2019

Optional SQUID 2.7.STABLE5 SSL

Squid,conf Maxsimal1

#########################################################################
#    CONTROL # WELCOME TO SQUID 2.7.STABLE5 #  -------------------- # #
#      # ---------------------------- #     2019 #-------------------- #
# squid -k parse #  T R I M A N  #    DESEMBER #
#########################################################################
#==========================START CONFIGURATION==========================#
#auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
#acl ncsa_user proxy_auth REQUIRED
#http_access allow ncsa_user

Saturday 2 March 2019

Config Boot Screen RPi 3

save to config.txt in boot

# For more options and information see
# http://rpf.io/configtxtreadme
# Some settings may impact device functionality. See link above for details

Sunday 20 May 2018

CARA INSTALL JAVA CENTOS


There are also two different implementations of Java, OpenJDK and Oracle Java with almost no differences between them except that Oracle Java has a few additional commercial features.

Install OpenJDK
OpenJDK, the open source implementation of the Java Platform is the default Java development and runtime in CentOS 7.

The installation is simple and straightforward.

Monday 27 November 2017

Wowza Media Server In Centos

wget http://cyber3.cf/WowzaMediaServer-2.2.4.rpm.bin
chmod 755 WowzaMediaServer-2.2.4.rpm.bin
chmod +x WowzaMediaServer-2.2.4.rpm.bin
./WowzaMediaServer-2.2.4.rpm.bin

Friday 17 November 2017

Vi Pada Centos

PENGGUNAAN DASAR VI

Untuk mulai menggunakan vi, ketik seperti contoh berikut, kemudian Enter
vi nama_file.conf

Setelah file terbuka untuk insert atau mulai mengedit, ketik
i

Untuk keluar dari mode insert atau mode edit, tekan
Ctrl+C

Setelah keluar dari insert mode, untuk menyimpan hasil edit sekaligus keluar dari vi editor, tekan
ZZ atau ketik
:wq

Namun jika hanya ingin menyimpan tapi masih belum ingin keluar dari vi editor, ketik
:w

Sedangkan, untuk keluar tanpa menyimpan
:q!

Sedangkan untuk mencari kata/karakter pada line-line Sebelumnya
?

Contoh penggunaan misal ketik /date, kemudian enter:
?date

Untuk mencari kata/karakter pada line-line Selanjutnya
/

Untuk kembali ke mode perintah
Esc

Untuk menghapus 1 baris ketik dd saat mode perintah [pada baris yang ingin dihapus.
dd

Untuk perintah yang lain silahkan lihat di manual vi melalui command prompt
man vi

Saturday 18 February 2017

Transcoding streams with FFmpeg

RTSP/RTP camera
ffmpeg -i "rtsp://[camera-ip-address]/[camera-URI-syntax]" -vcodec libx264 -vb 150000 -g 60 -vprofile baseline -level 2.1 -acodec aac -ab 64000 -ar 48000 -ac 2 -vbsf h264_mp4toannexb -strict experimental -f mpegts udp://127.0.0.1:10000?pkt_size=1316
MPEG-TS stream

Monday 6 February 2017

Awstas Setup for VPS Centos 6.x

The procedures for setup Awstats on a virtual host running Apache on a Centos 6.x server can be explained as follows;
The first thing to do, off course, is installing the Awstats RPM. Login as root and do the installation of Awstats using the command: yum install awstats
Next, it is needed to append Awstats directives into the httpd.conf file of the server that running virtual hosting.
The httpd.conf can be accessed for editing using the command: nano /etc/httpd/conf/httpd.conf
Add the following sections inside the corresponding <VirtualHost *:80> section of the httpd.conf

Sunday 29 January 2017

Nagios 4 and Monitor Your Servers on CentOS 7

Introduction

In this tutorial, we will cover the installation of Nagios 4, a very popular open source monitoring system, on CentOS 7 or RHEL 7. We will cover some basic configuration, so you will be able to monitor host resources via the web interface. We will also utilize the Nagios Remote Plugin Executor (NRPE), that will be installed as an agent on remote hosts, to monitor their local resources.

Nagios is useful for keeping an inventory of your servers, and making sure your critical services are up and running. Using a monitoring system, like Nagios, is an essential tool for any production server environment.

Saturday 18 April 2015

Perintah Dasar Linux Melalui Terminal Command

Ø Folder

1)    membuat sebuah folder
untuk membuat sebuah folder cukup mudah yaitu dengan cara :
ketik mkdir (spasi) nama folder yang akan kita buat (tekan Enter).
Untuk lebih jelasnya lihatlah gambar di bawah ini :