Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Thursday, February 9, 2017

How To Stream Audio To A Chromecast Or DLNA UPnP Device From Linux Using pulseaudio dnla

How To Stream Audio To A Chromecast Or DLNA UPnP Device From Linux Using pulseaudio dnla


pulseaudio-dlna is a lightweight streaming server that makes it easy to stream audio from a Linux computer that uses PulseAudio, to a DLNA / UPnP or Chromecast device in the same network.

The tool discovers all UPnP / DLNA / Chromecast renderers in the network and adds them as sinks to PulseAudio. You can then either select the sinks from the sound settings, or use pavucontrol to control which applications can stream to the UPnP / DLNA or Chromecast device. 

Lets get started with installing and using pulseaudio-dlna.

For Ubuntu 16.04, 15.10 and 14.04, Linux Mint 17.x and derivatives, pulseaudio-dlna can be installed from a PPA. To add the PPA and install pluseaudio-dlna, use the following commands:
sudo add-apt-repository ppa:qos/pulseaudio-dlna
sudo apt-get update
sudo apt-get install pulseaudio-dlna

For how to install it in other Linux distributions, see the pulseaudio-dnla instructions.

Now, to run it, type the following in a terminal:
pulseaudio-dlna

On the other end, make sure the DLNA / UPnP or Chromecast device is powered on.

Next, open the system sound settings. In Ubuntu (Unity), from the Sound Menu, select Sound Settings and your DLNA / UPnP and/or Chromecast device should show up in the output list:


Select the device you want to stream to and... thats it (well, for DLNA / UPnP devices, you may need to accept the connection - a popup should be displayed on the device screen; Chromecast should start streaming immediately).

In my test under Ubuntu 16.04, the sound was perfect while using the default pulseaudio-dlna settings however, the sound was distorted when streaming to a Chromecast. To get it to work properly, I ran pulseaudio-dlna with mp3 as the codec and ffmpeg as the encoder backend:
pulseaudio-dlna --codec mp3 --encoder-backend=ffmpeg

Of course, this was the case for me, and it might not be needed in other cases. Update: pulseaudio-dlna was updated and mp3 is now prioritized over flac for Chromecasts.

Note: to be able to use ffmpeg as the encoder backend, youll need to install it. Its available in the official Ubuntu 15.10 and 16.04 repositories (so to install it, use: "sudo apt-get install ffmpeg") however, its not for Ubuntu 14.04.

For Ubuntu 14.04, you can search for a PPA that provides ffmpeg (use e.g. Y PPA Manager to search in Launchpad PPAs) - heres one that has ffmpeg backported from a newer Ubuntu version, but note that I didnt test it -, or install it from source.

pulseaudio-dlna allows changing the server port, force auto reconnect, set the cover mode (whats displayed on the DLNA / Chromecast device) and much more. To see all the available pulseaudio-dlna options, type:
pulseaudio-dlna --help

If you want to send single audio streams to the device, you can use pavucontrol. To install it in Ubuntu, use the following command:
sudo apt-get install pavucontrol

Then launch pavucontrol (it shows up as PulseAudio Volume Control in the menu / Dash) and on the Playback tab, change the stream to the DNLA / Chromecast device, only for the apps you want to use for streaming. As an example, heres Audacious set to stream to a Chromecast device:


For more information about pulseaudio-dlna, bug reports, etc., see its GitHub page.


Available link for download

Read more »

Wednesday, February 8, 2017

How To Verify MD5 Checksum in Windows Mac Linux and Android

How To Verify MD5 Checksum in Windows Mac Linux and Android


Md5sum is a mixture of numbers and letters which is unique for every file or data. Commonly md5sum is used to verify the integrity of files, encrypt data, etc. We can ensure that we get the correct and complete file or data from the provider by verifying the md5 checksum.

As an Android user I am frequently changing ROM in my phone. In my home my broad band gives Does not have a valid IP configuration error at least once a day. Sometimes the error comes while I download the ROM package. So it is necessary to verify the MD5 checksum of downloaded file before flashing it as flashing the corrupted or wrong file is enough to brick the phone.

In this post i included the ways to check the file sum in Windows, Mac , Linux and Android.

How To Check MD5sum Of File in Windows ?


1. Download and Install HashTab From Here or Here

2. After Installation .. Right click on any file you wish to check the md5sum and click Properties.

3. In the Properties window click on File Hashes tab to get the md5 hash details.



How To Check MD5sum Of File in Mac ?


1. Open Terminal App and navigate to files directory.
2. Type md5 your_file_name.extension Or Type md5 followed by one space, then drag and drop the file to the terminal.
3. Hit Enter....and wait till the terminal returns the md5 hash....Thats it.

How To Check MD5sum Of File in Linux/Ubuntu ?


1. Open Terminal App.
2. Navigate to the files directory
3. Now type md5sum your_file_name.extension or Type md5sum followed by one space, then drag and drop the file to the terminal.
4. Hit Enter...done.

How To Check MD5sum Of File in Android ?


In Android there are many File Management apps available in Play store which gives md5sum along with other properties. I use ES File manager in my mobile since my first android mobile. So, I included the method to find md5sum in Android using ES File Manager.

1. Download and install ES File Manager from Play Store
2. Open ES File Manager and Navigate to the file you wish to check the md5 sum.
3. Long press on the file and select Properties from the More menu.



4.Now In the Properties Dialog...tap on Show checksum.



5. In the next dialog check MD5 checkbox and tap on Calculate.



Thats it done.


Available link for download

Read more »

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.

LIbreOffice 5.0

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.

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.pref
and in this file, paste this:
Package: *
Pin: release o=LP-PPA-libreoffice-libreoffice-5-0
Pin-Priority: 701

Then 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-upgrade

If 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-breeze
To 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-purge

Then, 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-0

For 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-0

Or, for Linux Mint 13 (based on Precise), use:
sudo ppa-purge -d precise ppa:libreoffice/libreoffice-5-0


Available link for download

Read more »

Friday, January 13, 2017

How To Set Up AFP File Sharing On Linux for Use With Time Machine

How To Set Up AFP File Sharing On Linux for Use With Time Machine



Preface:

In past versions of Mac OS X, the built in backup tool, Time Machine was a lot less picky about where you back up your files to. You could even back up to a Samba file share if you enabled the "unsupported volumes" hack.

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

But that ended with Snow Leopard. Starting with the release of OSX 10.7 Lion, Apple started cinching down on where you could back up your system to, ostensibly for security reasons. Now, with Mac OS X 10.8 "Mountain Lion", its gotten to the point where essentially the only places you can back up your system using Time Machine are either on another Mac OS X File Server or on an Apple Time Capsule. My assumption is that their intent is merely to bolster their hardware sales.

I dont know too many people who stay exclusively within the "walled garden" for all their computing needs. Certainly people with a lot more money to burn than me. But for a much more economical approach than shelling out around $300 for an over-glorified USB drive, you could just follow this guide to set up your Ubuntu file server to look and behave exactly like Time Machine would expect a real Time Capsule or Mac to.

Step 1: Install Netatalk

installing Netatalk, the open source Apple Filing Protocol (AFP) implementation is easy! The packages are already in the repos, which makes me wonder why its not enabled by default.

Install the following packages:

sudo apt-get install netatalk libc6-dev avahi-daemon libnss-mdns

Step 2: Configure /etc/nsswitch.conf

Once those packages are installed, there are actually five configuration files that need to be edited in order for the Macs on your network to access your AFP shares properly.

sudo nano /etc/nsswitch.conf

locate the line that reads

hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4

and add mdns to it so it now reads

hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4 mdns

press ctrl+o to save and ctrl+x to exit.

Step 3: /etc/avahi/services/afpd.service

sudo nano /etc/avahi/services/afpd.service

paste the following code

<?xml version="1.0" standalone=no?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
    <name replace-wildcards="yes">%h</name>
    <service>
        <type>_afpovertcp._tcp</type>
        <port>548</port>
    </service>
    <service>
        <type>_device-info._tcp</type>
        <port>0</port>
        <txt-record>model=TimeCapsule</txt-record>
    </service>
</service-group>

NOTE: Just for fun you can change the string "<txt-record>model=TimeCapsule</txt-record>" to the following devices to change how they appear in Finder on OSX:



Image

Apple Product

Identifier Strings



Airport Express

AirPort4

AirPort4,102

AirPort4,107



Airport Extreme

AirPort

Airpor5

AirPort5,104

AirPort5,105

AirPort5,108

AirPort5,114

AirPort5,117



Aluminum 20” iMac

iMac7,1

iMac8,1



Aluminum 24” iMac

iMac9,1



Aluminum Unibody MacBook

MacBook5,1



Apple Cinema Display

Any invalid or blank string




AppleTV

AppleTV

AppleTV1,1



Black MacBook

MacBook1,1,Black

MacBook2,1,Black

MacBook3,1,Black

MacBook4,1,Black



eMac

PowerMac4,4

PowerMac6,4




Flower Pot G4 iMac 15”

PowerMac4,2



Flower Pot G4 iMac 17”

PowerMac4,5

PowerMac6,1



Flower Pot G4 iMac 20”

PowerMac6,3



Graphite G4 PowerMac

PowerMac

Available link for download

Read more »

Tuesday, January 3, 2017

How To Stream To Twitch From Linux Using OBS Studio

How To Stream To Twitch From Linux Using OBS Studio


OBS Studio is a free, open source application which allows video recording and live streaming. The app can be used to stream to various popular websites such as Twitch.tv, YouTube, Hitbox.tv, Vaughn Live / iNSTAGIB.tv, DailyMotion, Connectcast.tv, GoodGame.ru, CyberGame.tv, CashPlay.tv along with custom streaming servers.

OBS Studio Ubuntu

The original Open Broadcaster Software was rewritten, with the main goal of being multiplatform, along with a more powerful API and a more thorough feature set. The new multiplatform OBS Studio is currently in alpha and is available for Linux, Mac OS X and Windows.

OBS features:
  • Encoding using H264 (x264) and AAC;
  • Unlimited number of scenes and sources;
  • Live RTMP streaming to Twitch, YouTube, DailyMotion, Hitbox and more;
  • File output to MP4 or FLV;
  • GPU-based game capture for high performance game streaming;
  • webcams, capture cards, etc. device support;
  • bilinear, bicubic or lanczos3 resampling;
  • configurable hotkeys, multiple audio tracks support and more.
In Linux, OBS allows recording a window or a monitor, on top of which you can add various overlays such as an image, text, webcam or media source and of course, audio input (microphone) and output (the game, a music player, etc.), with various options.

Below Ill try to make a quick start guide for streaming to Twitch.tv via OBS running under Linux (Ubuntu in my case). But before that, you can see a quick test Ive done earlier with OBS Studio (0.10.1) streaming World of Warcraft to Twitch from Ubuntu 15.04 (there are no video quality settings unfortunately because thats only available for Twitch partners).


Install OBS Studio (Multiplatform) in Ubuntu or Linux Mint


1. Install FFmpeg.

For Ubuntu 14.04 / Linux Mint 17.x / elementary OS Freya and so on, youll need to add a FFmpeg PPA because these Ubuntu versions dont provide FFmpeg. Add the PPA and install FFmpeg using the following commands:
sudo add-apt-repository ppa:jon-hedgerows/ffmpeg-backports
sudo apt-get update
sudo apt-get install ffmpeg
These FFmpeg packages are backported from Ubuntu 15.04 and they dont overwrite libav so they wont break anything.

For Ubuntu 15.04, FFmpeg is available in the official repositories so to install it, use the following command:
sudo apt-get install ffmpeg

2. Install OBS Studio.

To add the official OBS Studio PPA and install the app in Ubuntu 16.04, 15.10 or 14.04, Linux Mint 17.x,  elementary OS Freya and so on, use the following commands:
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt-get update
sudo apt-get install obs-studio

OBS Studio for other Linux distributions (unofficial packages): Arch Linux (AUR - git version), openSUSE and Gentoo.

For other Linux distributions, youll need to build it from source.


Setting up OBS Studio for streaming to Twitch.tv


1. Add your Twitch Stream Key to OBS


The first thing youll need to do to be able to stream to Twitch.tv using OBS is to get your Twitch Stream Key from HERE - copy the key and in OBS select "Settings" and on the Stream tab, select "Twitch" under "Service", then paste the key you just copied under "Stream key":

OBS Studio Ubuntu

Here you should also select the Twitch server thats closest to you.

2. Add sources

Next, youll want to add some sources. The first source should be the video (game) source so click the "+" icon under "Sources" and select "Window capture (Xcomposite)", click OK and select the game window:

OBS Studio Ubuntu

You can use "Screen capture (XSHM)" instead of "Window capture", but I recommend capturing the window because youll be able to have other windows on top of the game without them showing up in your live stream.

Then, add any other sources youd like, like "Video Capture Device" (webcam), "Audio Input Capture" (microphone), "Audio Output Capture" (the sound you hear through the speakers - it can be the game sound, a music player, etc.), text, an image and so on.

Note that the source order is important. For instance, if youre playing a fullscreen game and the webcam source ("Video Capture Device") is under the "Window capture" or "Screen capture" source, it wont show up, so youll need to move it using the up/down arrows so that the webcam source is above the capture source. The same goes for text and image overlays, etc.

3. Optional configuration tweaks

a) if your video colors are incorrect, select the source from the "Sources" list, click "Properties" (its the third button under "Sources") and enable "Swap red and blue":

OBS Studio Ubuntu

b) if your computer has a slow CPU and youre getting a low quality / fps live stream, you can try changing the x264 CPU preset to "superfast" or "ultrafast" (default is "veryfast"):

OBS Studio Ubuntu

This can be done via Settings > Output > select "Advanced" for the "Output Mode" from the dropdown > on the Streaming tab scroll down and youll find an option called "CPU Usage Preset".

If the performance is still bad, you can try setting a lower video resolution and bitrate (these settings can be found in the same "Streaming" tab as the "CPU Usage Preset" - see above).

c) if you have an old computer and/or a bad Internet connection, you may want to decrease the frame rate (default is 30) or, if you have a good computer and Internet connection and you play something like Arena/PvP, you my want to increase it.

The FPS settings can be found in OBS Settings > Video (you can switch to "Integer FPS value" to use a custom value instead of those predefined under "Common FPS Values"):

OBS Studio Ubuntu


You may also want to read the official OBS quick start and overview guides (but note that they are for the old OBS version so the UI looks different and some settings maybe not be available any more, etc.).

Report any bugs you may encounter with OBS, HERE.

Also see: Twitch.tv Indicator Lets You Know When The Channels You Follow Go Live


Available link for download

Read more »

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


ketoprakdjawir. - Pada kali ini saya akan berbagi cara menginstall Proxy Squid Lusca pada ubuntu server 14.04 yang disandingkan dengan mikrotik. Sebelumnya kita baca terlebih dahulu pengertian dari Squid, Web Proxy, dan Lusca.

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
  1. 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
  2. Pastikan Ubuntu Server sudah bisa ping ke gateway, client, dan internet.
  3. Masuk sebagai root.
    $ sudo su
  4. Lakukan Update terlebih dahulu.
    # apt-get update
  5.  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
  6. 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
  7. Setelah selesai lakukan ekstrak.
    # tar -xvjf LUSCA_HEAD-r14809-patch.tar.bz2
  8. 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
  9.  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
  10.  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
  11. 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
  12. 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
  13. Ekstrak dan copykan file konfigurasi tersebut ke dalam file /etc/squid
    # tar -xvf fileconfig.tar.gz
    # cp fileconf/* /etc/squid
  14. Beri hak akses dan eksekusi semua file berekstensi .pl
    # chmod 0755 /etc/squid/*.pl
  15. 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.
  16. 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.
  17. 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
  18. Hentikan service Squid3 pada server agar tidak terjadi bentrok dengan squid lusca.
    # service squid3 stop
  19. Lalu ketikkan perintah
    # squid -f /etc/squid/squid.conf -z
  20. Jalankan Squid
    # squid -NDd1 &
  21. Buat autorun pada squid apabila server restart bisa jalan dengan otomatis
    # nano /etc/init.d/squid
    Copykan script dibawah ini
    #! /bin/sh
    #
    # 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
    Jika sudah simpan dengan menekan tombol CTRL + X dilanjut tombol Y kemudian ENTER.
    Mirror Link
  22. Berikan hak akses dan buat file autorun
    # chmod 755 /etc/init.d/squid
    # update-rc.d squid defaults
  23. Hentikan secara autostart squid3
    # nano /etc/rc.local
  24. Isikan
    service squid3 stop
  25. 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
  26. Untuk memantau hasil cache bisa mengetikkan sintax di bawah ini di mesin server.
    # tail -f /var/log/squid/access.log | ccze
  27. Dan hasilnya adalah seperti dibawah ini.
Sumber : Pengingat Dasar


Available link for download

Read more »

Wednesday, November 23, 2016

Instal AMD Catalyst Linux Display Driver 13 12

Instal AMD Catalyst Linux Display Driver 13 12


Pada tanggal 19 Desember kemarin AMD merilis AMD Catalyst Display Driver versi 13.12.



Cara menginstalAMD catalyst :
1. Unduh AMD Catalyst Display Driver versi 13.12.
2. Ekstrak berkas yang diunduh tadi.
3. Klik kanan berkas .run -> Properties -> Permission -> centang Execute.
4. Dobel klik berkas .run, tunggu sampai installernya muncul, selanjutnya ikuti petunjuk installer.

Atau menggunakan aplikasi khusus untuk menginstal AMD Catalyst terbaru.





 Untuk saat ini masih dalam tahap beta dan hanya untuk sistem 64bit.
Unduh AMD Catalyst Install disini.


Available link for download

Read more »

Monday, November 14, 2016

Install OwnCloud di Linux Ubuntu Server 14 04 LTS

Install OwnCloud di Linux Ubuntu Server 14 04 LTS


ketoprakdjawir. - ownCloud merupakan suatu perusahaan dengan proyeknya yaitu ownCloud project. Slogan perusahaan ini adalah Your Cloud, Your Data, Your Way!. ownCloud yang merupakan salah satu perangkat lunak berbagi berkas gratis dan bebas seperti Dropbox, menyediakan pengamanan yang baik, memiliki tata cara yang baik bagi pengguna aplikasi untuk membagi dan mengakses data yang secara lancar terintegrasi dengan perangkat teknologi informasi yang tujuannya mengamankan, melacak, dan melaporkan penggunaan data.

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
  1. 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
  2. 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
Selesai

Refrensi: OwnCloud


Available link for download

Read more »

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 gimp
Its 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/gimp


Available link for download

Read more »