Rabu, 17 Oktober 2018

Install AddOn Lightning untuk thunderbird di Ubuntu 18.04 LTS



Kali ini saya menghadapi kendala, ketika thunderbird di ubuntu 18.04 ada update menjadi versi 60.2 dan setelah di update ternyata addon lightning nya belum support untuk versi thunderbird tersebut. Sebagai informasi, saya install addon lightning nya dari addon menu di thunderbird nya langsung.

Addon lightning ini fungsi nya adalah untuk management kalender di thunderbird

Solusi nya adalah, kita harus install addon lightninig nya dari repository ubuntu nya juga, Cara nya :

$ sudo apt install xul-ext-lightning
[sudo] password for dony:
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following additional packages will be installed:
  xul-ext-calendar-timezones xul-ext-gdata-provider
The following NEW packages will be installed:
  xul-ext-calendar-timezones xul-ext-gdata-provider xul-ext-lightning
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 820 kB of archives.
After this operation, 5.272 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://id.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 xul-ext-calendar-timezones amd64 1:60.2.1+build1-0ubuntu0.18.04.2 [11,0 kB]
Get:2 http://id.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 xul-ext-gdata-provider amd64 1:60.2.1+build1-0ubuntu0.18.04.2 [11,0 kB]
Get:3 http://id.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 xul-ext-lightning amd64 1:60.2.1+build1-0ubuntu0.18.04.2 [798 kB]
Fetched 820 kB in 2s (410 kB/s)           
Selecting previously unselected package xul-ext-calendar-timezones.
(Reading database ... 193034 files and directories currently installed.)
Preparing to unpack .../xul-ext-calendar-timezones_1%3a60.2.1+build1-0ubuntu0.18.04.2_amd64.deb ...
Unpacking xul-ext-calendar-timezones (1:60.2.1+build1-0ubuntu0.18.04.2) ...
Selecting previously unselected package xul-ext-gdata-provider.
Preparing to unpack .../xul-ext-gdata-provider_1%3a60.2.1+build1-0ubuntu0.18.04.2_amd64.deb ...
Unpacking xul-ext-gdata-provider (1:60.2.1+build1-0ubuntu0.18.04.2) ...
Selecting previously unselected package xul-ext-lightning.
Preparing to unpack .../xul-ext-lightning_1%3a60.2.1+build1-0ubuntu0.18.04.2_amd64.deb ...
Unpacking xul-ext-lightning (1:60.2.1+build1-0ubuntu0.18.04.2) ...
Setting up xul-ext-calendar-timezones (1:60.2.1+build1-0ubuntu0.18.04.2) ...
Setting up xul-ext-lightning (1:60.2.1+build1-0ubuntu0.18.04.2) ...
Setting up xul-ext-gdata-provider (1:60.2.1+build1-0ubuntu0.18.04.2) ...

Setelah ini restart aplikasi thunderbird nya, dan addon lightning saat ini sudah ada lagi di thunderbird


Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

Daftar Repository Debian 9 - Tidak bisa install openssh-server Debian 9 - Depends: libwrap0



Jika kita melakukan instalasi debian dari versi ISO minimalis sekali, sampai-sampai saya install ssh server saja tidak bisa :

$ sudo apt-install openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be install.  This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
openssh-server : Depends: libwrap0(>= 7.6-4~) but it is not installable

Unable to correct problems, you have held broken packages.

Sempat agak kesulitan juga cari solusi nya, akhirnya ketemu, hal ini karena repository nya tidak lengkap, jadi silahkan tambahkan di file /etc/apt/sources.list nya menjadi seperti ini :

deb http://deb.debian.org/debian stretch main
deb-src http://deb.debian.org/debian stretch main

deb http://deb.debian.org/debian-security/ stretch/updates main
deb-src http://deb.debian.org/debian-security/ stretch/updates main

deb http://deb.debian.org/debian stretch-updates main
deb-src http://deb.debian.org/debian stretch-updates main

Setelah itu jalan kan : $ sudo apt-get update

Ref : https://wiki.debian.org/SourcesList

Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com

Install Kaspersky Antivirus di Ubuntu 18.04



Bagi pengguna linux, tidak ada salah nya untuk melakukan install antivirus sebagai tambahan perlindungan untuk laptop atau komputer kita, kali ini saya akan sedikit share cara untuk melakukan instalasi antivirus Kaspersky di Linux Ubuntu 18.04 LTS

Langkah-langkah nya adalah :

1. Download dulu file deb nya disini : https://www.kaspersky.com/small-to-medium-business-security/downloads/endpoint

Pilih yang terbaru versi nya

2. Lakukan instalasi dengan perintah :

$ sudo dpkg -i kesl_10.1.0-5960_amd64.deb

Selecting previously unselected package kesl.
(Reading database ... 191093 files and directories currently installed.)
Preparing to unpack kesl_10.1.0-5960_amd64.deb ...
Unpacking kesl (10.1.0-5960) ...
Setting up kesl (10.1.0-5960) ...
Synchronizing state of kesl-supervisor.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable kesl-supervisor

Kaspersky Endpoint Security 10 SP1 for Linux has been installed successfully,
but it must be properly configured before using.
Please run "/opt/kaspersky/kesl/bin/kesl-setup.pl" script
manually to configure it.

Processing triggers for man-db (2.8.3-2) ...

3. Jalankan perintah instalasi lanjutannya :

$ sudo /opt/kaspersky/kesl/bin/kesl-setup.pl

Kaspersky Endpoint Security 10 SP1 for Linux version 10.1.0.5960


Setting up the Anti-Virus Service default locale

You must specify a locale that the Anti-Virus Service will use when
applying the protection settings.
It is important to specify the locale you are using when working with the
file system names (in most cases this should be the system default locale)
[en_US.UTF-8]:

Anti-Virus Service default locale is changed to 'en_US.UTF-8'.
Service will be restarted if it is already running.

Accepting the End User License Agreement (EULA) and Privacy Policy

Please read and accept the End User License Agreement (EULA) and Privacy
Policy to continue.

NOTE: To quit the EULA and Privacy Policy viewer, press the Q key.

Press ENTER to display the EULA and Privacy Policy:


Read EULA and Privacy Policy from file:
"/opt/kaspersky/kesl/doc/license.en" (utf-8), if it cannot be read here.

Do you accept the EULA conditions? [y/n]: y

Do you accept the Privacy Policy conditions? [y/n]: y


Configuring KSN

Do you want to participate in KSN (you can read the KSN Statement here:
'/opt/kaspersky/kesl/doc/ksn_license.en')? [y/n]: y


Configuring file interceptors

Checking if fanotify is available...
Using fanotify interceptor
Starting Kaspersky Endpoint Security 10 SP1 for Linux. This can take some
time. Please wait.

Configuring the update source

Specify the update source. Possible values: KLServers|SCServer|:
[KLServers]:


Configuring proxy settings to connect to the updates source

If you use an HTTP proxy server to access the Internet, please enter
the address in one of the following formats:
proxyIP:port or user:pass@proxyIP:port, or enter 'no' [n]:

Updated databases are an essential part of your server protection.
Please note that the application may be restarted during the update
process.
Do you want to download the latest databases now? [y]:


Downloading the latest application databases

Task progress:
[##################################################]100%
Latest databases are downloaded.
Restarting Kaspersky Endpoint Security 10 SP1 for Linux. This can take some
time. Please wait.

Enabling automatic updates of the application databases

Do you want to enable scheduled updates? [y]: y

Scheduled updates are enabled.
The application databases are scheduled to be updated hourly.

Activate the application

You must activate the application to use it.
To activate the application now, enter the path to your key file or an
activation code. Enter an empty string to activate the built-in trial key:

(biarkan kosong jika tidak punya license dan menggunakan trial license 30 hari)

Configuring GUI

Do you want to use the GUI? [y/n]: y

Looking for the graphical login session
Found graphical login session (user dony, pid 1288)
Getting environment from the graphical login session
Getting user info
Got user info (uid 1000, gid 1000)
Starting GUI in the graphical login session

The general setting of the application is changed:

LimitNumberOfScanFileTasks=5

Now unprivileged users can also run on-demand scan tasks.

4. Setelah selesai, silahkan jalankan dari GUI nya 




Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

Kamis, 11 Oktober 2018

Mematikan DNS Proxy / Forwarding Internal di Ubuntu 18.04



Ubuntu memang secara default menggunakan DNS Proxy atau DNS masquerade atau DNS Forwarding, dimana layanan ini melakukan redirect DNS yang ada di ubuntu ke DNS localhost baru diteruskan ke DNS ISP yang digunakan.

Hal ini tentunya terkadang membuat bingung ketika melakukan troubleshoot dengan menggunakan nslookup atau dig, dimana hasil jawaban query nya di dapat hanya dari DNS local ubuntu saja.

Kalau saya, hal ini cukup mengganggu, untuk itu biasanya akan saya disable, Caranya adalah :

1. Disable service nya :

ubuntu@laptop:~$ sudo systemctl disable systemd-resolved.service
ubuntu@laptop:~$ sudo service systemd-resolved stop

2. Konfigure ulang network manager nya :

- Buka dan edit file ini : /etc/NetworkManager/NetworkManager.conf
- Tambahkan baris berikut :

[main]
dns=default 

3. Hapus file resolv.conf :

ubuntu@laptop:~$ sudo rm /etc/resolv.conf

4. Restart service network manager nya :

ubuntu@laptop:~$ sudo service network-manager restart

5. Pastikan setting DNS nya sudah berubah ke DNS Public :

ubuntu@laptop:~$ cat /etc/resolv.conf
# Generated by NetworkManager
search example.com
nameserver 8.8.8.8
nameserver 8.8.4.4

5. Silahkan dicoba lagi dengan nslookup 

Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

Rumus Menghitung Konversi Ampere ke KWh untuk Datacenter



Saya ingin sedikit share rumus untuk menghitung KWh dari pengukuran ampere, biasanya Admin Server akan ditanya, berapakah pemakaian daya di Rack? nah pengukuran biasanya dilakukan hanya dengan ampere meter di MCB pada rack tersebut, Misal nya saja kita mendapat kan bahwa Rack tersebut pemakaiannya adalah 10 Ampere.

Untuk dapat mengukur KWh nya, kita harus konversi dulu ke Watt, cara nya adalah :

P(kW) = ((I(A) × V(V) / 1000) x 0,8

Jadi, ((10 x 220) / 1000) x 0,8 = 1,76 Watt

Kemudian untuk dapat menghitung KWh nya adalah :

E(kWh) = P(kW) × t(h) x 30

Jadi, 1,76 x 24 x 30 = 1267,2 KWh /Bulan nya

Nah.. tinggal kita harus tahu berapa harga per KWh nya, misalnya Rp. 1500/KWh, maka tinggal di kalikan saja 1500 x  1267,2 = 1.900.800 rupiah

Untuk setahun tinggal dikalikan 12 bulan = Rp. 1.900.800 x 12 = Rp. 22.809.600 

Dengan cara diatas, maka kita bisa tahu pemakain dan biaya listrik yang dibutuhkan untuk rack tersebut


Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017