Manage Bandwidth With Squid

source : http://s0t4.blogspot.com/2008/11/batasi-bandwidth-dengan-squid.html Contoh 1 Misalkan dalam network kita perlu untuk memberikan pembatasan-pembatasan bandwidth dikarenakan sumber internet terbatas dan group network lebih dari satu, disusun berdasarkan prioritas. admin, server dengan bandwidth unlimited staff dengan bandwidth 1,5 kbytes/sec, bila file yang diakses melebihi 64Kbte umum dengan bandwidth 1 kbytes/sec, bila file yang diakses melebihi 32 Kbyte […]

wireshark ubuntu

source : https://ubuntuforums.org/showthread.php?t=2039978 this is how to install wireshark : sudo apt-get install libcap2-bin wireshark sudo chgrp myusername /usr/bin/dumpcap sudo chmod 750 /usr/bin/dumpcap sudo setcap cap_net_raw,cap_net_admin+eip /usr/bin/dumpcap http://askubuntu.com/questions/74059/how-do-i-run-wireshark-with-root-privileges this command add extra functionality to run wireshark in user mode, don’t have to change to root desktop sudo dpkg-reconfigure wireshark-common

Bash Script to Execute Mysql Command

Here is my bash script to execute msyql command !/bin/bash tglblk=$(date –date=”8 days ago” +%Y-%m-%d) tglhapus=”$tglblk 23:00:00″ SQL=”DELETE FROM Events WHERE EndTime<=’$tglhapus’;” MYSQL_USER=”root” MYSQL_PASS=”” MYSQL_DB=”mydb” echo $SQL | mysql –user=$MYSQL_USER –password=$MYSQL_PASS $MYSQL_DB Then I put it into crontab to run at specific time.

using scanner from network

Source : makasar-slacker.org Dengan menggunakan OS Slackwarekita bisa mengakses scanner yang terhubung pada komputer lain, atau katakanlah terhubung di CPU server. Di  server Buat service untuk sane-port tersedia di PC yang langsung terhubung dengan device scanner itu (yang terinstall sane-backend). Caranya edit file “/etc/services”, tambahkan baris… sane-port 6566/tcp #SANE Network Scanner Daemon Masukkan juga layanan streaming […]

firefox (in ubuntu) libavcodec error

The error I meant is the message displayed at the top of the firefox, said libavcodec is vulnerable and expired (for some reason). After googling and find the article in http://askubuntu.com/questions/851190/how-to-update-libavcodec-on-ubuntu-14-04, the problem is libavcodec is disabled as default. Libavcodec is needed to play the streaming in the website. Except for youtube. I still can […]