Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts
Wednesday, March 22, 2017
Indicator Systemtray Unity On Demand System Tray For Ubuntu
Indicator Systemtray Unity On Demand System Tray For Ubuntu
If you still need a system tray in Ubuntu (Unity), you dont need the patched Unity any more. Instead, you can simply install `Indicator Systemtray Unity`, a new AppIndicator which adds a system tray to the Unity panel.
`Indicator Systemtray Unity` doesnt show up on the panel until you launch an application which comes with a tray icon. Even then, the systray is displayed on demand (on left/middle-click) and there are two modes available:
1. Floating mode - in this case, the tray icons will be displayed under it:
1. Floating mode - in this case, the tray icons will be displayed under it:

When using this mode, youll need to left-click on the Indicator Systemtray Unity icon to show the tray icons, which are only displayed when the mouse cursor is near the Indicator Systemtray icon.
2. Static mode - the icons will be displayed on the panel, on the same raw as the indicators:

By middle-clicking on the Indicator Systemtray icon, you can get the systray icons to be displayed in an overlay on top of the panel, useful to either display the icons next to the indicators (like in my screenshot below) or for use on top of a dock.
When this mode is used, the system tray icons arent hidden (until you middle-click it again).
You can move the icons horizontally by scrolling on the Indicator Systemtray icon on the Unity panel. Moving the icons to the left of the indicators like in the screenshot above is a bit tricky because once the icons are on top of Indicator Systemtray, you wont be able to scroll on it any more, but you can change this via dconf-editor (see below).
Update: you can now change background for both indicator modes. However, to be able to access the background settings from the indicator menu, you need to set Indicator Systemtray Unity to the floating mode (mode 1 above):

You can move the icons horizontally by scrolling on the Indicator Systemtray icon on the Unity panel. Moving the icons to the left of the indicators like in the screenshot above is a bit tricky because once the icons are on top of Indicator Systemtray, you wont be able to scroll on it any more, but you can change this via dconf-editor (see below).
Update: you can now change background for both indicator modes. However, to be able to access the background settings from the indicator menu, you need to set Indicator Systemtray Unity to the floating mode (mode 1 above):

Indicator Systemtray can be configured via dconf-editor. Firstly, install dconf-editor:
sudo apt-get install dconf-editorAnd then launch Dconf-Editor and navigate to net > launchpad > indicator > systemtray. Here you can change the indicators X and Y positions for the static and floating modes, change the mode, background settings, or disable the indicator.
Note that if you use multiple monitors, the tray will only show up on the primary monitor!
Note that if you use multiple monitors, the tray will only show up on the primary monitor!
Install Indicator Systemtray Unity in Ubuntu
To install Indicator Systemtray Unity in Ubuntu 15.04, 14.10 or 14.04, use the following commands:
sudo apt-add-repository ppa:fixnix/indicator-systemtray-unity
sudo apt-get update
sudo apt-get install indicator-systemtray-unityOr, if you dont want to add the PPA, you can grab the deb from HERE (but you wont receive any updates).Once installed, log out and log in and Indicator Systemtray Unity should start automatically (but it wont show up on the panel until you launch an app that uses a tray icon).
In case you want to remove Indicator Systemtray Unity, use the following command (dont use a simple "remove" because it wont remove the app files from /etc !):
sudo apt-get purge indicator-systemtray-unityTo report bugs, download the source code, etc., see Indicator Systemtray Unitys GitHub page.Originally published at WebUpd8: Daily Ubuntu / Linux news and application reviews.
Available link for download
Wednesday, February 1, 2017
Install LibreOffice 5 0 In Ubuntu Or Linux Mint Via PPA
Install LibreOffice 5 0 In Ubuntu Or Linux Mint Via PPA
LibreOffice 5.0 was released last week and it includes numerous changes, such as UI improvements, better HiDPI support, new icon theme by KDE called Breeze, much improved Spreadsheet, better filters for documents and more. For a complete list of changes, see THIS page.

According to the Document Foundation blog, the latest LibreOffice 5.0 is the "cornerstone of the mobile clients on Android and Ubuntu Touch, as well as the upcoming cloud version".
In Ubuntu, Linux Mint and derivatives, the latest LibreOffice 5.0 (Fresh) can be installed either by using a PPA or by downloading and installing the official LibreOffice debs.
Installing LibreOffice via PPA and not by using the official *.deb files is the recommended way of installing/upgrading LibreOffice in Ubuntu (as stated here) because the .deb files provided by The Document Foundation are intentionally built against a very old baseline for maximum compatibility.
Installing LibreOffice via PPA and not by using the official *.deb files is the recommended way of installing/upgrading LibreOffice in Ubuntu (as stated here) because the .deb files provided by The Document Foundation are intentionally built against a very old baseline for maximum compatibility.
Furthermore, by using the PPA, you can automatically get updates as well as easily go back to the LibreOffice version available in the official Ubuntu repositories if for some reason youre not satisfied with the new release, by using PPA Purge.
Below youll find instructions on how to install LibreOffice in Ubuntu or Linux Mint via PPA as well as how to purge the PPA in case you want to go back to the LibreOffice version you were using before adding this PPA.
Install LibreOffice 5.0 in Ubuntu Or Linux Mint via PPA
Important: There are two PPAs you can use to install LibreOffice 5.0 in Ubuntu and Linux Mint: the LibreOffice Fresh PPA which provides the latest stable LibreOffice Fresh (so for instance when LibreOffice 5.1 comes out, this PPA will be updated with LibreOffice 5.1) and the LibreOffice 5.0.x PPA (which Ive used for the instructions below) which only provides LibreOffice 5.0.x updates.
Right now, both PPAs provide the same LibreOffice version. If you prefer to use the LibreOffice Fresh PPA, replace "ppa:libreoffice/libreoffice-5-0" in the commands below with "ppa:libreoffice/ppa".
At the time Im writing this article, the LibreOffice 5.0.x PPA provides LibreOffice 5.0.0 RC5 which is identical to the final release.
Linux Mint 17.2 only: LibreOffice is pinned in Linux Mint 17.2 and cant be upgraded by using a PPA. To be able to update LibreOffice to version 5.0 via PPA, you need to create a file called "libreoffice-libreoffice-5-0.pref" under /etc/apt/preferences.d/ - to do this automatically, use the following command:
gksu gedit /etc/apt/preferences.d/libreoffice-libreoffice-5-0.prefand in this file, paste this:Package: *
Pin: release o=LP-PPA-libreoffice-libreoffice-5-0
Pin-Priority: 701Then save the file and continue with the instructions below.
To add the LibreOffice 5.0.x PPA and upgrade to the latest LibreOffice 5.0 in Ubuntu 15.04, 14.04 or 12.04 / Linux Mint 17.2 (after following the steps above), 17.1, 17 or 13, use the following commands:
sudo add-apt-repository ppa:libreoffice/libreoffice-5-0
sudo apt-get update
sudo apt-get dist-upgradeIf you want to try the new Breeze LibreOffice icon theme (which you can see in the screenshot above), install it by using the following command:
sudo apt-get install libreoffice-style-breezeTo change the icon theme in LibreOffice, go to Tools > Options > LibreOffice > View and set the icon style to Breeze.How to revert the changes
If you dont want to continue using LibreOffice 5.0, you can downgrade it to the previous version available in the repositories by using PPA Purge. To do this, firstly install PPA Purge:
sudo apt-get install ppa-purgeThen, purge (this will disable the PPA and downgrade the packages installed from this PPA) the PPA using the following command:
sudo ppa-purge ppa:libreoffice/libreoffice-5-0For Linux Mint, youll have to specify the Ubuntu codename because PPA Purge doesnt officially support it. So for Linux Mint 17, 17.1 and 17.2 which are based on Ubuntu 14.04 Trusty Tahr, use the following command:
sudo ppa-purge -d trusty ppa:libreoffice/libreoffice-5-0Or, for Linux Mint 13 (based on Precise), use:
sudo ppa-purge -d precise ppa:libreoffice/libreoffice-5-0Originally published at WebUpd8: Daily Ubuntu / Linux news and application reviews.
Available link for download
Friday, January 27, 2017
Install MATE 1 14 In Ubuntu MATE 16 04 Xenial Xerus Via PPA
Install MATE 1 14 In Ubuntu MATE 16 04 Xenial Xerus Via PPA
MATE Desktop 1.14 is now available for Ubuntu MATE 16.04 (Xenial Xerus). According to the release announcement, it took about 2 months to release MATE Desktop 1.14 in a PPA because everything has been well tested, so you shouldnt encounter any issues.

The PPA currently provides MATE 1.14.1 (Ubuntu MATE 16.04 ships with MATE 1.12.x by default), which includes changes such as:
- client-side decoration apps now render correctly in all themes;
- touchpad configuration now supports edge and two-finger scrolling independently;
- python extensions in Caja can now be managed separately;
- all three window focus modes are selectable;
- MATE Panel now has the ability to change icon sizes for menubar and menu items;
- volume and Brightness OSD can now be enabled/disabled;
- many other improvements and bug fixes.
MATE 1.14 also includes improved support for GTK+3 across the entire desktop, as well as various other GTK+3 tweaks however, the PPA packages are built with GTK+2 "to ensure compatibility with Ubuntu MATE 16.04 and all the 3rd party MATE applets, plugins and extensions", mentions the Ubuntu MATE blog.
A complete MATE 1.14 changelog can be found HERE.
Upgrade to MATE Desktop 1.14.x in Ubuntu MATE 16.04
To upgrade to the latest MATE Desktop 1.14.x in Ubuntu MATE 16.04 using the official Xenial MATE PPA, open a terminal and use the following commands:
sudo apt-add-repository ppa:ubuntu-mate-dev/xenial-mate
sudo apt update
sudo apt dist-upgradeNote: mate-netspeed applet will be removed when upgrading. Thats because the applet is now part of the mate-applets package, so its still available.
Once the upgrade finishes, restart your system. Thats it!
How to revert the changes
If youre not satisfied with MATE 1.14, you encountered some bugs, etc., and you want to go back to the MATE version available in the official repositories, you can purge the PPA and downgrade the packages.
To do this, use the following commands:
sudo apt install ppa-purge
sudo ppa-purge ppa:ubuntu-mate-dev/xenial-mateAfter all the MATE packages are downgraded, restart the system.
via Ubuntu MATE blog
Originally published at WebUpd8: Daily Ubuntu / Linux news and application reviews.
Available link for download
Wednesday, January 18, 2017
instal JDK in Ubuntu
instal JDK in Ubuntu

untuk menginsatal JDK di ubuntu sangat mudah, hanya dengan menggetikkan perintah pada terminal seperti dibawah ini
sudo apt-get install openjdk-7-jdk- setelah JDK terinstal kemudian kita setting pada file .bashrc agar java dapat terbaca oleh linux, karna file .bashrc defaultnya adalah hidden maka terlebih dahulu file .bashrc di show hidden file dengan cara klik view--> show hidden file (ctrl+H)/.

- kemudian open file .bashrc dengan klik kanan open with gedit
- scrolll ke bagian paling bawah kemudian pastekan alamat dari JDK tersebut seperti :
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export PATH=$PATH:/usr/lib/jvm/java-7-openjdk-amd64/bin

Available link for download
Tuesday, January 17, 2017
Install MATE 1 12 1 In Ubuntu MATE 15 10 Or 16 04 Via PPA
Install MATE 1 12 1 In Ubuntu MATE 15 10 Or 16 04 Via PPA
The Ubuntu 15.10 and 16.04 MATE PPAs were updated recently with the latest MATE 1.12.1.

According to Martin Wimpress, Project Lead for Ubuntu MATE, the PPAs use the same source packages that hes done for Debian, which are currently being reviewed by the FTP masters and should land in Debian Unstable in a couple of weeks, so they should be safe to use.
Among the changes in MATE 1.12 (released about a month ago) are various fixes (for example: panel applets are no longer reordered when changing screen resolutions) and improvements for GTK3, including GTK 3.18 support, better touchpad and multi-monitor support and more. Check out THIS article for a complete MATE 1.12 changelog. I couldnt find a changelog for MATE 1.12.1.
In other Ubuntu MATE news:
- you you shouldnt need the Ubuntu Xenial PPA for long because as soon as the MATE 1.12 packages are accepted into Debian Unstable, they should be automatically imported into Ubuntu 16.04.
- the small MATE Dock applet I wrote about a while back was added to Debian Git recently by Martin Wimpress, and until Ubuntu and Debian reinstate the gir1.2-wnck-1.0 package (which was dropped a while back and is required by this applet), you can install this applet by using the Wily/Xenial Ubuntu MATE PPAs.
Upgrade to MATE 1.12.1 in Ubuntu MATE 15.10 or 16.04
To upgrade to the latest MATE 1.12.1 in Ubuntu 15.10 using the MATE Wily PPA, use the following commands:
sudo add-apt-repository ppa:ubuntu-mate-dev/wily-mate
sudo apt-get update
sudo apt-get upgradeFor Ubuntu 16.04 Xenial Xerus, use the following commands to upgrade to the latest MATE 1.12.1:
sudo add-apt-repository ppa:ubuntu-mate-dev/xenial-mate
sudo apt-get update
sudo apt-get upgradeFor both Wily and Xenial, to install the MATE Dock Applet I mentioned above, use the following command (after upgrading to MATE 1.12.1):
sudo apt-get install mate-dock-appletHow to revert the changes
If for whatever reason you want to downgrade MATE back to the version available in Ubuntu MATE by default, use the following commands:
- for Wily:sudo apt-get install ppa-purge
sudo ppa-purge ppa:ubuntu-mate-dev/wily-mate- for Xenial:sudo apt-get install ppa-purge
sudo ppa-purge ppa:ubuntu-mate-dev/xenial-mateThe first command installs PPA purge and the second command purges the PPA (disables the PPA and downgrades all the packages installed from that PPA).
Originally published at WebUpd8: Daily Ubuntu / Linux news and application reviews.
Available link for download
Monday, December 19, 2016
Install Proxy Squid Lusca di Linux Ubuntu Server 14 04 dengan Mikrotik
Install Proxy Squid Lusca di Linux Ubuntu Server 14 04 dengan Mikrotik

Squid
Squid adalah sebuah daemon yang digunakan sebagai proxy server dan web cache. Squid memiliki banyak jenis penggunaan, mulai dari mempercepat server web dengan melakukan caching permintaan yang berulang-ulang, caching DNS, caching situs web, dan caching pencarian komputer di dalam jaringan untuk sekelompok komputer yang menggunakan sumber daya jaringan yang sama, hingga pada membantu keamanan dengan cara melakukan penyaringan (filter) lalu lintas. Meskipun seringnya digunakan untuk protokol HTTP dan FTP, Squid juga menawarkan dukungan terbatas untuk beberapa protokol lainnya termasuk Transport Layer Security (TLS), Secure Socket Layer (SSL), Internet Gopher, dan HTTPS. Versi Squid 3.1 mencakup dukungan protokol IPv6 dan Internet Content Adaptation Protocol (ICAP).
Squid pada awalnya dikembangkan oleh Duane Wessels sebagai "Harvest object cache", yang merupakan bagian dari proyek Harvest yang dikembangkan di University of Colorado at Boulder. Pekerjaan selanjutnya dilakukan hingga selesai di University of California, San Diego dan didanai melalui National Science Foundation. Squid kini hampir secara eksklusif dikembangkan dengan cara usaha sukarela.
Squid umumnya didesain untuk berjalan di atas sistem operasi mirip UNIX, meski Squid juga bisa berjalan di atas sistem operasi Windows. Karena dirilis di bawah lisensi GNU General Public License, maka Squid merupakan perangkat lunak bebas.
Web Proxy
Caching merupakan sebuah cara untuk menyimpan objek-objek Internet yang diminta (seperti halnya data halaman web) yang bisa diakses melalui HTTP, FTP dan Gopher di dalam sebuah sistem yang lebih dekat dengan situs yang memintanya. Beberapa penjelajah web dapat menggunakan cache Squid lokal untuk sebagai server proxy HTTP, sehingga dapat mengurangi waktu akses dan juga tentu saja konsumsi bandwidth. Hal ini sering berguna bagi para penyedia layanan Internet untuk meningkatkan kecepatan kepada para pelanggannya, dan LAN yang membagi saluran Internet. Karena memang bentuknya sebagai proxy (ia berlaku sebagaimana layaknya klien, sesuai dengan permintaan klien), web cache bisa menyediakan anonimitas dan keamanan. Tapi, web cache juga bisa menjadi masalah yang signifikan bila melihat masalah privasi, karena memang ia dapat mencatat banyak data, termasuk URL yang diminta oleh klien, kapan hal itu terjadi, nama dan versi penjelajah web yang digunakan klien serta sistem operasinya, dan dari mana ia mengakses situs itu.
Selanjutnya, sebuah program klien (sebagai contoh adalah penjelajah web) bisa menentukan secara ekplisit proxy server yang digunakan bila memang hendak menggunakan proxy (umumnya bagi para pelanggan ISP) atau bisa juga menggunakan proxy tanpa konfigurasi ekstra, yang sering disebut sebagai "Transparent Caching", di mana semua permintaan HTTP ke jaringan luar akan diolah oleh proxy server dan semua respons disimpan di dalam cache. Kasus kedua umumnya dilakukan di dalam perusahaan dan korporasi (semua klien berada di dalam LAN yang sama) dan sering memiliki masalah privasi yang disebutkan di atas.
Squid memiliki banyak fitur yang bisa membantu melakukan koneksi secara anonim, seperti memodifikasi atau mematikan beberapa field header tertentu dalam sebuah permintaan HTTP yang diajukan oleh klien. Saat itu terpenuhi, apa yang akan dilakukan oleh Squid adalah tergantung orang yang menangani komputer yang menjalankan Squid. Orang yang meminta halaman web melalui sebuah jaringan yang secara transparan yang menggunakan biasanya tidak mengetahui bahwa informasi semua permintaan HTTP yang mereka ajukan dicatat oleh Squid.
Lusca
Sama seperti Squid, hanya saja Lusca merupakan cabang dari squid-2 development tree. Proyek Lusca bertujuan untuk memperbaiki kekurangan dalam basis kode squid-2, sementara tetap mempertahankan fungsi Squid-2 dan stabilitasnya. Proyek ini menyediakan jalur migrasi untuk pengguna squid-2 ke basis kode aktif, yang dikembangkan oleh pengembang dan penggunanya, perangkat lunak yang stabil dan disarankan untuk menyebarkannya.
Mengapa Menggunakan Lusca?
Seperti pendahulunya, Lusca mendukung mayoritas HTTP/1.1 HTTP/1.0 dan protokol dan caching konstruksi termasuk ETag / Varian entitas. Antara lain, mendukung HTTP balancing konten beban, kegagalan, cerdas permintaan / jawaban routing, memori kinerja tinggi dan disk caching, sistem kontrol akses terlalu fleksibel, dukungan untuk kedua kinerja tinggi maju dan mundur mode proxy. Hal ini mendukung berbagai protokol clustering, termasuk ICPv2,, ICPv3 Carp dan HTCP baik untuk clustering dan kontrol. Lusca mendukung Cisco intersepsi WCCPv2 di kedua perangkat lunak dan perangkat keras forwarding mode.
Pengguna, Administrator dan Pengembang sama-sama diundang untuk berpartisipasi dalam komunitas kecil tapi semakin banyak pengguna yang ingin terus menggunakan dipahami dengan baik, web proxy stabil / platform Cache tetapi membutuhkan sesuatu dengan kinerja yang lebih, fitur dan skalabilitas.
Lusca terus meliputi perbaikan dan perkembangan dari proyek squid mana yang tepat bersama daftar sendiri tumbuh perbaikan.
Tahap Penginstallan
- Topologi yang saya gunakan seperti dibawah ini.
IP Internet : xxx.xxx.xxx.xxx
IP Proxy : 192.168.3.2
IP Client 1 : 10.10.8.0/22
IP Client 2 : 192.168.4.0/24
IP Client 3 : 192.168.5.0/24
IP Client 4 : 192.168.6.0/24 - Pastikan Ubuntu Server sudah bisa ping ke gateway, client, dan internet.
- Masuk sebagai root.
$ sudo su
- Lakukan Update terlebih dahulu.
# apt-get update
- Lakukan penginstallan Squid dan kawan-kawan.
# apt-get install apache2 php5 squid squidclient squid-cgi gcc build-essential sharutils ccze libzip-dev automake1.9 libfile-readbackwards-perl -y
- Download paket LUSCA nya.
# wget https://dl.dropboxusercontent.com/s/rj083vnq9sc3aye/LUSCA_HEAD-r14809-patch.tar.bz2
Mirror# wget http://backcode.googlecode.com/files/LUSCA_HEAD-r14809-patch.tar.bz2
- Setelah selesai lakukan ekstrak.
# tar -xvjf LUSCA_HEAD-r14809-patch.tar.bz2
- Masuk ke tahap pengkonfigurasian. Sebelumnya kita harus tau kode CFLAG dari tipe prosessor yang akan di pasang Lusca dengan cara lihat CPU info.
# cat /proc/cpuinfo
Amati bagian yang seperti ini.
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU D525 @1.80GHz
Setelah mengetahui tipe processor cari CFLAG dari link berikut: Link1 dan Link2 khusus intel XEON tidak menutup kemungkinan bisa mencari di mesin pencari.
maka akan mendapatkan kode CFLAG sebagai berikut:
CHOST="i686-pc-linux-gnu" CFLAGS="-march=atom -O2 -fomit-frame-pointer -pipe" CXXFLAGS="${CFLAGS}"
Copy kemudian simpan sementara di text editor dan ditambahkan
./configure -prefix=/usr -exec-prefix=/usr -bindir=/usr/sbin -sbindir=/usr/sbin -libexecdir=/usr/lib/squid -sysconfdir=/etc/squid -localstatedir=/var/spool/squid -datadir=/usr/share/squid --enable-gnuregex --enable-async-io=24 --with-aufs-threads=24 --with-pthreads --with-aio --with-dl --enable-storeio=aufs,null --enable-removal-policies=heap --enable-icmp --enable-delay-pools --disable-wccp --enable-snmp --enable-cache-digests --enable-default-err-language=English --enable-err-languages=English --enable-linux-netfilter --disable-ident-lookups --with-maxfd=65535 --enable-follow-x-forwarded-for --enable-large-cache-files --with-large-files --enable-referer-log
Sehingga menjadi
CHOST="i686-pc-linux-gnu" CFLAGS="-march=atom -O2 -fomit-frame-pointer -pipe" CXXFLAGS="${CFLAGS}" ./configure -prefix=/usr -exec-prefix=/usr -bindir=/usr/sbin -sbindir=/usr/sbin -libexecdir=/usr/lib/squid -sysconfdir=/etc/squid -localstatedir=/var/spool/squid -datadir=/usr/share/squid --enable-gnuregex --enable-async-io=24 --with-aufs-threads=24 --with-pthreads --with-aio --with-dl --enable-storeio=aufs,null --enable-removal-policies=heap --enable-icmp --enable-delay-pools --disable-wccp --enable-snmp --enable-cache-digests --enable-default-err-language=English --enable-err-languages=English --enable-linux-netfilter --disable-ident-lookups --with-maxfd=65535 --enable-follow-x-forwarded-for --enable-large-cache-files --with-large-files --enable-referer-log - Pindah ke directory LUSCA dilanjut Compile LUSC
# cd LUSCA_HEAD-r14809
# make clean
# CHOST="i686-pc-linux-gnu"CFLAGS="-march=atom -O2 -fomit-frame-pointer -pipe"CXXFLAGS="${CFLAGS}"./configure -prefix=/usr -exec-prefix=/usr -bindir=/usr/sbin -sbindir=/usr/sbin -libexecdir=/usr/lib/squid -sysconfdir=/etc/squid -localstatedir=/var/spool/squid -datadir=/usr/share/squid --enable-gnuregex --enable-async-io=24 --with-aufs-threads=24 --with-pthreads --with-aio --with-dl --enable-storeio=aufs,null --enable-removal-policies=heap --enable-icmp --enable-delay-pools --disable-wccp --enable-snmp --enable-cache-digests --enable-default-err-language=English --enable-err-languages=English --enable-linux-netfilter --disable-ident-lookups --with-maxfd=65535 --enable-follow-x-forwarded-for --enable-large-cache-files --with-large-files --enable-referer-log
# make
# make install - Buat directory proxy untuk cache nya, dan dilanjut merubah hak akses dari directory tersebut menjadi hak akses proxy.
# mkdir /proxy
# chown -R proxy:proxy /proxy
# chmod -R 777 /proxy - Buat directory penyimpanan Log cache nya, dan dilanjut merubah hak akses dari directory tersebut menjadi hak akses proxy.
# mkdir /var/log/squid
# chown -R proxy:proxy /var/log/squid - Download konfigurasi squid. Namun konfigurasi ini hanya HTTP saja yang bisa ter cache, untuk yang lain bisa mencari konfigurasi sendiri.
# wget https://dl.dropboxusercontent.com/s/wp4qv6yh80z0b62/fileconfig.tar.gz
Mirror# wget https://dl.dropboxusercontent.com/u/64064946/fileconfig.tar.gz
- Ekstrak dan copykan file konfigurasi tersebut ke dalam file /etc/squid
# tar -xvf fileconfig.tar.gz
# cp fileconf/* /etc/squid - Beri hak akses dan eksekusi semua file berekstensi .pl
# chmod 0755 /etc/squid/*.pl
- Lakukan konfigurasi sesuai topologi.
# nano /etc/squid/acl.conf
cari baris acl localnet src 192.168.1.0/24. Lalu ganti bagian 192.168.5.0/24 dan tambahkan dibawahnya IP yang dapat berhubungan dengan proxy, sebagai contoh :
acl localnet src 10.10.8.0/22
acl localnet src 192.168.4.0/24
acl localnet src 192.168.5.0/24
acl localnet src 192.168.6.0/24
sesuai dengan topologi yang anda gunakan. Jika sudah simpan dengan menekan tombol CTRL+ X dilanjut tombol Y kemudian ENTER . - Lakukan konfigurasi untuk merubah directory cache proxy
# nano /etc/squid/squid.conf
Cari bagian cache_dir aufs /proxy 16000 37 256 , lalu ganti bagian /proxy menjadi directory disk cache sesuai tempat cache tersimpan.
angka 16000 (satuannya megabyte) merupakan besaran penyimpanan cache. untuk normalnya ukuran cache sebesar 80% dari total hardisk
Angka 37 diperoleh dari rumus : ukuran 80% disk cache dalam satuan byte/13/256/256 X 2.
Kira-kira cara menghitungnya seperti ini : 16000000/13/256/256 X 2 = 37.5. Dibulatkan saja menjadi 37. - Lakukan konfigurasi untuk merubah RAM
# nano /etc/squid/tune.conf
Cari bagian ipcache_size 4096 lalu ganti angka 4096 dengan 2X ukuran RAM dalam satuan Megabyte. Sebagai contoh, tertulis 4096. karena hasil dari 2 X ukuran ram yaitu 2048.
Setelah itu cari lagi bagian fqdncache_size 2048 lalu ganti angka 2048 dengan ukuran RAM dalam satuan Megabyte - Hentikan service Squid3 pada server agar tidak terjadi bentrok dengan squid lusca.
# service squid3 stop
- Lalu ketikkan perintah
# squid -f /etc/squid/squid.conf -z
- Jalankan Squid
# squid -NDd1 &
- Buat autorun pada squid apabila server restart bisa jalan dengan otomatis
# nano /etc/init.d/squid
Copykan script dibawah ini#! /bin/sh
Jika sudah simpan dengan menekan tombol CTRL + X dilanjut tombol Y kemudian ENTER.
#
# squid Startup script for the SQUID HTTP proxy-cache.
#
# Version: @(#)squid.rc 2.20 01-Oct-2001 miquels@cistron.nl
#
### BEGIN INIT INFO
# Provides: squid
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start: $named
# Should-Stop: $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Squid HTTP Proxy
### END INIT INFO
# suffield: jhealy: All local modifications commented with "suffield"
NAME=squid
DAEMON=/usr/sbin/squid
LIB=/usr/lib/squid
PIDFILE=/var/run/$NAME.pid
# suffield: jhealy: added -F to wait for full rebuild before serving requests
SQUID_ARGS="-D -sYCF"
[ ! -f /etc/default/squid ] || . /etc/default/squid
. /lib/lsb/init-functions
PATH=/bin:/usr/bin:/sbin:/usr/sbin
[ -x $DAEMON ] || exit 0
grepconf () {
w=" " # space tab
sq=/etc/squid/squid.conf
# sed is cool.
res=`sed -ne
s/^$1["$w"]+([^"$w"]+).*$/1/p;
t end;
d;
:end q < $sq`
[ -n "$res" ] || res=$2
echo "$res"
}
grepconf2 () {
w=" " # space tab
sq=/etc/squid/$NAME.conf
# sed is cool.
res=`sed -ne
s/^$1["$w"]+[^"$w"]+["$w"]+([^"$w"]+).*$/1/p;
t end;
d;
:end q < $sq`
[ -n "$res" ] || res=$2
echo "$res"
}
#
# Try to increase the # of filedescriptors we can open.
#
maxfds () {
[ -n "$SQUID_MAXFD" ] || return
[ -f /proc/sys/fs/file-max ] || return 0
[ $SQUID_MAXFD -le 4096 ] || SQUID_MAXFD=4096
global_file_max=`cat /proc/sys/fs/file-max`
minimal_file_max=$(($SQUID_MAXFD + 4096))
if [ "$global_file_max" -lt $minimal_file_max ]
then
echo $minimal_file_max > /proc/sys/fs/file-max
fi
ulimit -n $SQUID_MAXFD
}
start () {
cdr=`grepconf2 cache_dir /var/spool/$NAME`
case "$cdr" in
[0-9]*)
log_failure_msg "squid: squid.conf contains 2.2.5 syntax - not starting!"
log_end_msg 1
exit 1
;;
esac
#
# Create spool dirs if they dont exist.
#
if [ -d "$cdr" -a ! -d "$cdr/00" ]
then
log_warning_msg "Creating squid spool directory structure"
$DAEMON -z
fi
if [ "$CHUID" = "" ]; then
CHUID=root
fi
maxfds
umask 027
cd $cdr
start-stop-daemon --quiet --start
--pidfile $PIDFILE
--chuid $CHUID
--exec $DAEMON -- $SQUID_ARGS < /dev/null
return $?
}
stop () {
PID=`cat $PIDFILE 2>/dev/null`
start-stop-daemon --stop --quiet --pidfile $PIDFILE --name squid
#
# Now we have to wait until squid has _really_ stopped.
#
sleep 2
if test -n "$PID" && kill -0 $PID 2>/dev/null
then
log_action_begin_msg " Waiting"
cnt=0
while kill -0 $PID 2>/dev/null
do
cnt=`expr $cnt + 1`
if [ $cnt -gt 24 ]
then
log_action_end_msg 1
return 1
fi
sleep 5
log_action_cont_msg ""
done
log_action_end_msg 0
return 0
else
return 0
fi
}
case "$1" in
start)
log_daemon_msg "Starting Squid HTTP proxy" "squid"
if start ; then
log_end_msg $?
# suffield: jhealy: enable interception via tproxy
/usr/local/bin/squid-watcher start
else
log_end_msg $?
fi
;;
stop)
log_daemon_msg "Stopping Squid HTTP proxy" "squid"
# suffield: jhealy: disable interception via tproxy
/usr/local/bin/squid-watcher stop
if stop ; then
log_end_msg $?
else
log_end_msg $?
fi
;;
reload|force-reload)
log_action_msg "Reloading Squid configuration files"
start-stop-daemon --stop --signal 1
--pidfile $PIDFILE --quiet --exec $DAEMON
log_action_end_msg 0
;;
restart)
log_daemon_msg "Restarting Squid HTTP proxy" "squid"
stop
if start ; then
log_end_msg $?
# suffield: jhealy: enable interception via tproxy
/usr/local/bin/squid-watcher start
else
log_end_msg $?
fi
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|reload|force-reload|restart}"
exit 3
;;
esac
exit 0
Mirror Link - Berikan hak akses dan buat file autorun
# chmod 755 /etc/init.d/squid
# update-rc.d squid defaults - Hentikan secara autostart squid3
# nano /etc/rc.local
- Isikan
service squid3 stop
- Konfigurasi MikroTik supaya client dipaksa untuk berbelok ke Proxy Squid. Ketikkan di terminal seperti di bawah ini:
ip firewall nat add action=dst-nat chain=dstnat comment=paksa-ke-proxy src-address=!192.168.3.2 disabled=no dst-port=80 protocol=tcp to-addresses=192.168.3.2 to-ports=3128
- Untuk memantau hasil cache bisa mengetikkan sintax di bawah ini di mesin server.
# tail -f /var/log/squid/access.log | ccze
- Dan hasilnya adalah seperti dibawah ini.
Available link for download
Saturday, December 17, 2016
instal netbeans di ubuntu
instal netbeans di ubuntu

- pertama download dulu installer netbean di situs resmi netbean
- kemudian buat folder netbeans kemudian pastekan installer netbeans yang telah di download kedalam folder netbeans yang telah di buat tadi
- trus ketikkan perintah ini di terminal
sudo chmod +x netbeans-*
/netbeans$ sudo ./netbeans-*
kemudian aakan muncul gui netbeans lalu tinggal install deh ..mudah kan
Available link for download
Thursday, November 17, 2016
How To Solve NTFS Mount Problem In Ubuntu And Windows 8 Dual Boot
How To Solve NTFS Mount Problem In Ubuntu And Windows 8 Dual Boot
Reason: Fast Startup feature of Windows 8
Microsoft introduced a new feature in Windows 8 to reduce the boot time in otherwise slow Windows OS. This feature is called Fast Startup. In normal shut down process power is removed form all components such as CPU, RAM, CD-Rom and hard disks. But in fast start up, Windows 8 saves some system information such as caching the registry etc to a file during shutdown. Part of the metadata about the state of all mounted partitions at the time of turn off is among these system information. This reduces the boot time of the Windows 8 and it creates the trouble for Ubuntu.
Since the information about the NTFS partition is stored in Windows 8, this prevents Ubuntu to mount them as mounting them in Linux will alter the metadata of the partitions. This is why it is in protected mode and you cannot mount it (without being root).
Solution: Disable Fast Startup in Windows 8
Temporary solution of this problem will be to boot in to Windows 8 and restart it. Restarting is different from shutdown and it should release the partition metadata from the stored system information. But this will only be a temporary solution because when you use Windows 8 next time, youll face the same problem again.
Permanent solution would be to disable the fast startup in Windows 8. This will increase your Windows 8 boot time so it is up to you if you prefer it. If you use Windows more frequently and you have probably set Window as default OS in dual boot with Ubuntu, then you should avoid this solution. But if you more of a Linux guy and use Windows occasionally then you can disable fast startup in Windows 8 without thinking twice.
How to disable fast startup in Windows 8:
If you know how to go around Windows, use the following path to disable fast startup.Go to Control Panel > Hardware and Sound > Power Options > System Setting > Choose what the power buttons do and uncheck the Turn on fast startup box.
Alternatively, here is the detailed process along with some picture to help you to disable fast startup in Windows 8. First search for Power Option along with Settings filter in start screen of Windows 8.

Make sure that you have admin rights:

Scroll down a bit in power options to look for Turn on fast startup option and uncheck this box.

Thats all. Next time you try to mount NTFS partition in Ubuntu, you should not see the NTFS partition is in an unsafe state error.
Available link for download
Monday, November 14, 2016
Install OwnCloud di Linux Ubuntu Server 14 04 LTS
Install OwnCloud di Linux Ubuntu Server 14 04 LTS

ownCloud menempatkan kontrol kepada pengguna teknologi informasi itu sendiri dan juga menawarkan penyedia layanan, pusat dan bagian transmisi yang berfungsi untuk menyediakan solusi sinkronisasi dan berbagi bagi pengguna. ownCloud memberikan akses terhadap berkas-berkas secara universal dengan menggunakan antarmuka jaringan atau WebDAV.
ownCloud dipelopori oleh Frank Karlitschek saat ia sedang membicarakan mengenai aplikasi bebas dan terbuka. Proses pemasangan tidak banyak membutuhkan syarat-syarat pada sistemnya dan tidak membutuhkan izin khusus. Kantor pusat ownCloud di Amerika terletak di Boston, Massachusetts dan kantor cabang di Eropa terletak di Jerman.
Sejarah.
Ide mengenai ownCloud muncul sejak 3 tahun yang lalu, lebih tepatnya pada Januari 2010. Saat itu Frank Karlitschek menginginkan perangkat lunak gratis dan bebas untuk dijadikan sebagai solusi untuk permasalahan pada kala itu. Karlitschek merasa bahwa dunia membutuhkan sesuatu yang mudah digunakan, aman, fleksibel dalam mengatur berkas, dan tanpa mengalami kemunduran pada tempat penyimpanannya. Dalam perjalanannya proyek tersebut bergerak dan menemukan berbagai kontributor, ownCloud berhasil membuat berbagai macam rilis dan tersedia dalam 42 jenis bahasa di dunia. Kemudian proyek ini semakin beralih menjadi komersial sebagai usaha pengembangan terhadap pengguna perusahaan.
Tahap Penginstalan
- Tambahkan repositori apt. Perlu diingat bahwa pemilik kunci dapat mendistribusikan update, paket dan repositori bahwa sistem Anda akan percaya. Jalankan perintah shell berikut sebagai root.>
wget -nv https://download.owncloud.org/download/repositories/stable/xUbuntu_14.04/Release.key -O Release.key
apt-key add - < Release.key - Jalankan perintah shell berikut sebagai root untuk menambahkan repositori dan mulai install.
sh -c "echo deb http://download.owncloud.org/download/repositories/stable/xUbuntu_14.04/ / >> /etc/apt/sources.list.d/owncloud.list"
apt-get update
apt-get install owncloud
Refrensi: OwnCloud
Available link for download
Monday, October 31, 2016
Instal RPM file in ubuntu
Instal RPM file in ubuntu
Alien converts an RPM package file into a Debian package file or Alien can install an RPM file directly. This is not the recommended way to install software packages in Ubuntu. If at all possible, install packages from Ubuntus repositories using Add/Remove, apt-get, or the Synaptic Package Manager. Package dependency conflicts may occur when attempting to install RPM packages. The Synaptic Package Manager may be able to fix or remove any broken packages.
Install Alien
Add the Universe repository to the sources list from the System menu System > Administration > Software Sources.
Open a Terminal from the Applications menu Applications > Accessories > Terminal.
In a terminal, enter:sudo apt-get install alien
Converting the RPM file to a Debian package
In a terminal, enter:sudo alien package_file.rpm
Installing the converted Debian package
Either use gdebi, or in a terminal, enter:sudo dpkg -i package_file.deb
Additional Help
In a terminal, enter:
alien -h
Available link for download
Sunday, October 30, 2016
Install GIMP 2 8 16 In Ubuntu Or Linux Mint Via PPA
Install GIMP 2 8 16 In Ubuntu Or Linux Mint Via PPA

On GIMPs 20th birthday (Nov 22), a new version of the free and open source image editor was released: 2.8.16. This is a bugfix release from the 2.8 stable series and it includes the following changes:
- Core:
- seek much less when writing XCF;
- dont seek past the end of the file when writing XCF;
- Windows: call SetDLLDirectory() for less DLL hell;
- fix velocity parameter on .GIH brushes;
- fix brokenness while transforming certain sets of linked layers;
- GUI:
- always show image tabs in single window mode;
- fix switching of dock tabs by DND hovering;
- dont make the scroll area for tags too small;
- fixed a crash in the save dialog;
- fix issue where ruler updates made things very slow on Windows;
- Plug-ins:
- fix several issues in the BMP plug-in;
- make Gfig work with the new brush size behavior again;
- fix font export in the PDF plug-in;
- support layer groups in OpenRaster files;
- fix loading of PSD files with layer groups.
The GIMP 2.8.16 release announcement also mentions that the devs "immediate future plans are to release first public version in the unstable 2.9.x series that will feature fully functional GEGL port, 16/32bit per channel processing, basic OpenEXR support, vastly improved color management implementation, new tools, on-canvas preview for many filters, and more", this being the first milestone towards GIMP 2.10.
If you want to try the latest unstable GIMP, you can already do so by using a PPA.
Install GIMP 2.8.16 in Ubuntu or Linux Mint
To install the latest stable GIMP in Ubuntu (Precise and newer) / Linux Mint and derivatives, you can use Thorsten Stettins PPA. Add the PPA and install GIMP using the following commands:
sudo add-apt-repository ppa:otto-kesselgulasch/gimp
sudo apt-get update
sudo apt-get install gimpIts important to mention that besides GIMP, this PPA also includes various GIMP plugins, such as GMIC, and GIMP PLugin Registry.
For other Linux distributions, Windows and Mac OS X, see the GIMP downloads page.
How to revert the changes
In case you dont want to use GIMP 2.8.16 any more and you want to downgrade to the version available in the official Ubuntu repositories, you can purge the PPA using "ppa-purge":
sudo apt-get install ppa-purge
sudo ppa-purge ppa:otto-kesselgulasch/gimpOriginally published at WebUpd8: Daily Ubuntu / Linux news and application reviews.
Available link for download
Subscribe to:
Posts (Atom)