<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Wenny Prastiwi on Medium]]></title>
        <description><![CDATA[Stories by Wenny Prastiwi on Medium]]></description>
        <link>https://medium.com/@wennyrubyjane?source=rss-81bde2fb21cc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*2BYtKzT-pjP0o8cF89Z_UQ@2x.jpeg</url>
            <title>Stories by Wenny Prastiwi on Medium</title>
            <link>https://medium.com/@wennyrubyjane?source=rss-81bde2fb21cc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 16:49:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@wennyrubyjane/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[From Bug Slayer to Visionary: My QA Engineer to PM Leap]]></title>
            <link>https://medium.com/@wennyrubyjane/from-bug-slayer-to-visionary-my-qa-engineer-to-pm-leap-6f86db6b667d?source=rss-81bde2fb21cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f86db6b667d</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[qa-engineer]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[business-strategy]]></category>
            <category><![CDATA[product-manager]]></category>
            <dc:creator><![CDATA[Wenny Prastiwi]]></dc:creator>
            <pubDate>Mon, 17 Jun 2024 14:17:03 GMT</pubDate>
            <atom:updated>2024-06-17T14:17:03.483Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*X4pK5K-WrAkV2rLDrr7OCQ.png" /></figure><p>Throughout my 3 years of career as QA, I always looked at a product in terms of what I want as a user and eventually I gained more and more interest towards how a product should be. I thrived on identifying defects and ensuring the app functioned flawlessly.</p><p>As a former Quality Assurance (QA) engineer, I recently found myself at a crossroads in my career, contemplating the next step that would push me beyond the boundaries of my QA role.</p><p>In this article, I aim to share my journey and the reasons behind my choice to switch gears and embrace the role of a Product Manager. Through my experiences and insights, I hope to shed light on the factors that influenced my decision and highlight the valuable skills and perspectives I bring from my QA background to this new role:<br>1. As a QA engineer, I thoroughly enjoyed ensuring product quality and identifying issues that needed resolution. However, I yearned for a broader impact on the product development lifecycle. The role of a Product Manager offered me the chance to influence the product’s direction, shape its features, and align it with the needs of both the business and end users. It also granted me the authority to influence and enhance the user experience actively, leveraging my understanding of user needs and advocating for customer-centric product decisions.</p><p>2. Transitioning from QA to Product Manager allowed me to improve my skill set. The critical thinking, attention to detail, and problem-solving abilities I honed as a QA engineer were transferable and highly valuable in product management. Furthermore, my domain knowledge gained through extensive QA experience equipped me with a deep understanding of the product, its functionalities, and potential areas for improvement.<br>However, this has also brought me a challenge that I did not expect at that time: my problem-solving ability has some pros and cons here.</p><blockquote>As a Product Manager, I should now seek assumptions that need to be proved by interviews with partners, research, metrics comparison and market research. I have to take one step back to understand the big picture more than I think about a single solution for the customer’s problem. It has been my biggest challenge since it is a change of mindset of years working as a solution-driven.</blockquote><p>3. Having worked within agile development environments as a QA engineer, I developed a strong appreciation for agile methodologies’ iterative and customer-focused nature. The role of Product Manager aligned perfectly with these methodologies, enabling me to actively contribute to prioritization, backlog management, and continuous improvement while ensuring seamless collaboration between stakeholders. As a Product Manager, I engage with marketing, sales, design, and development teams, facilitating effective communication and alignment to ensure the product vision is shared and executed cohesively.</p><p>The decision to transition from a QA engineer to a Product Manager has been a transformative and invigorating experience. It has allowed me to broaden my impact, bridge the gap between technical and strategic realms, nurture a customer-centric mindset, leverage analytical and problem-solving skills, and thrive in cross-functional collaborations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f86db6b667d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Digital Signature in Network Security?]]></title>
            <link>https://medium.com/@wennyrubyjane/digital-signature-in-network-security-e7a9d7d54653?source=rss-81bde2fb21cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7a9d7d54653</guid>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[cryptograph-technologies]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[digital-signature-online]]></category>
            <dc:creator><![CDATA[Wenny Prastiwi]]></dc:creator>
            <pubDate>Thu, 14 May 2020 05:38:07 GMT</pubDate>
            <atom:updated>2020-05-14T05:41:22.652Z</atom:updated>
            <content:encoded><![CDATA[<h3>Digital Signature in Network Security</h3><p>Kriptografi, secara umum adalah ilmu dan seni untuk menjaga kerahasiaan berita [bruce Schneier — Applied Cryptography]. Kata cryptography berasal dari kata Yunani kryptos (tersembunyi) dan graphein (menulis). Selain pengertian tersebut terdapat pula pengertian ilmu yang mempelajari teknik-teknik matematika yang berhubungan dengan aspek keamanan informasi seperti kerahasiaan data, keabsahan data, integritas data, serta autentikasi data [A.Menezes, P. van Oorschot and S. Vanstone — Handbook of Applied Cryptography]. Cryptanalysis adalah aksi untuk memecahkan mekanisme kriptografi dengan cara mendapatkan plaintext atau kunci dari ciphertext yang digunakan untuk mendapatkan informasi berharga kemudian mengubah atau memalsukan pesan dengan tujuan untuk menipu penerima yang sesungguhnya, memecahkan ciphertext. Cryptology adalah ilmu yang mencakup cryptography dan cryptanalysis. Tidak semua aspek keamanan informasi ditangani oleh kriptografi. Ada empat tujuan mendasar dari ilmu kriptografi ini yang juga merupakan aspek keamanan</p><p>informasi yaitu :</p><p>1. Kerahasiaan, adalah layanan yang digunakan untuk menjaga isi dari informasi dari siapapun kecuali yang memiliki otoritas atau kunci rahasia untuk membuka/mengupas informasi yang telah disandi. Integritas data, adalah berhubungan dengan penjagaan dari perubahan data secara tidak sah. Untuk menjaga integritas data, sistem harus memiliki kemampuan untuk mendeteksi manipulasi data oleh pihak-pihak yang tidak berhak, antara lain penyisipan, penghapusan, dan pensubsitusian data lain kedalam data yang sebenarnya.</p><p>2. Autentikasi, adalah berhubungan dengan identifikasi/pengenalan, baik secara kesatuan sistem maupun informasi itu sendiri. Dua pihak yang saling berkomunikasi harus saling memperkenalkan diri. Informasi yang dikirimkan melalui kanal harus diautentikasi keaslian, isi datanya, waktu pengiriman, dan lain-lain.</p><p>3. Non-repudiasi., atau nirpenyangkalan adalah usaha untuk mencegah terjadinya penyangkalan terhadap pengiriman/terciptanya suatu informasi oleh yang mengirimkan/membuat.</p><p>4. Enkripsi adalah transformasi data kedalam bentuk yang tidak dapat terbaca tanpa sebuah kunci tertentu. Tujuannya adalah untuk meyakinkan privasi dengan menyembunyikan informasi dari orang-orang yang tidak ditujukan, bahkan mereka mereka yang memiliki akses ke data terenkripsi. Dekripsi merupakan kebalikan dari enkripsi, yaitu transformasi data terenkripsi kembali ke bentuknya semula. Kriptografi saat ini lebih dari enkripsi dan dekripsi saja. Otentikasi menjadi bagian dari kehidupan kita sama seperti privasi. Kita menggunakan otentikasi dalam kehidupan sehari-hari, sebagai contoh saat kita menandatangani sejumlah dokumen dan saat kita berpindah ke dunia dimana keputusan dan persetujuan kita dikomunikasikan secara elektronis, kita membutuhkan teknik — teknik untuk otentikasi. Kriptografi menyediakan mekanisme untuk prosedur semacam itu. Digital signature (tanda tangan digital) mengikat dokumen dengan kepemilikan kunci tertentu, sedangkan digital timestamp mengikat dokumen dengan pembuatnya pada saat tertentu.</p><p><strong>Standar Kriptografi</strong></p><p>Standar kriptografi dibutuhkan untuk menciptakan interoperabilitas dalam dunia</p><p>keamanan informasi. Pada dasarnya standar merupakan kondisi dan protokol yang dibuat untuk memungkinkan keseragaman dalam komunikasi, transaksi dan semua aktivitas secara virtual. Evolusi teknologi informasi yang terus berlanjut memotivasi pengembangan lebih banyak lagi standar, yang membantu memandu evolusi ini. Motivasi utama dibalik standar adalah untuk memungkinkan teknologi dari pabrik yang berbeda untuk “berbicara bahasa yang sama”, untuk berinteraksi secara efektif.</p><p>Dalam kriptografi, standarisasi memiliki tujuan tambahan, yaitu sebagai landasan dari</p><p>teknik-teknik kriptografi karena protokol yang rumit cenderung memiliki cacat dalam</p><p>rancangan. Dengan menerapkan standar yang telah diuji dengan baik, industri dapat</p><p>memproduksi produk yang lebih terpercaya. Bahkan protokol yang amanpun dapat lebih</p><p>dipercaya pelanggan setelah menjadi standar, karena telah melalui proses pengesahan.</p><p>Pemerintah, industri privat, dan organisasi lain berkontribusi dalam pengumpulan luas</p><p>standar-standar kriptografi. Beberapa dari standar-standar ini adalah ISO, ANSI, IEEE, NIST, dan IETF. Ada banyak tipe standar, beberapa digunakan dalam industri perbankan, beberapa digunakan secara internasional, dan yang lain dalam pemerintahan. Standarisasi membantu pengembang merancang standar baru, mereka dapat mengikuti standar yang telah ada dalam proses pengembangan. Dengan proses ini pelanggan memiliki kesempatan untuk memilih diantara produk atau layanan yang berkompetisi.</p><p><strong>Algoritma Sandi</strong></p><p>Algoritma sandi adalah algoritma yang berfungsi untuk melakukan tujuan kriptografis.</p><p>Algoritma tersebut harus memiliki kekuatan untuk melakukan (dikemukakan oleh Shannon):</p><p>- konfusi/pembingungan (confusion), dari teks terang sehingga sulit untuk</p><p>direkonstruksikan secara langsung tanpa menggunakan algoritma dekripsinya</p><p>- difusi/peleburan (difusion), dari teks terang sehingga karakteristik dari teks terang</p><p>tersebut hilang. sehingga dapat digunakan untuk mengamankan informasi. Pada implementasinya sebuah algoritmas sandi harus memperhatikan kualitas layanan/Quality of Service atau QoS dari keseluruhan sistem dimana dia diimplementasikan. Algoritma sandi yang handal adalah algoritma sandi yang kekuatannya terletak pada kunci, bukan pada kerahasiaan algoritma itu sendiri. Teknik dan metode untuk menguji kehandalan algoritma sandi adalah kriptanalisa.</p><p>- Dasar matematis yang mendasari proses enkripsi dan dekripsi adalah relasi antara dua himpunan yaitu yang berisi elemen teks terang /plaintext dan yang berisi elemen teks sandi/ciphertext. Enkripsi dan dekripsi merupakan fungsi transformasi antara himpunanhimpunan tersebut. Apabila elemen-elemen teks terang dinotasikan dengan P, elemen-elemen teks sandi dinotasikan dengan C, sedang untuk proses enkripsi dinotasikan dengan E, dekripsi dengan notasi D.</p><p>-</p><p>Enkripsi : E(P) = C</p><p>- Dekripsi : D(C) = P atau D(E(P)) = P</p><p>Secara umum berdasarkan kesamaan kuncinya, algoritma sandi dibedakan menjadi :</p><p>- kunci-simetris/symetric-key, sering disebut juga algoritma sandi konvensional karena</p><p>umumnya diterapkan pada algoritma sandi klasik</p><p>- kunci-asimetris/asymetric-key</p><p>Berdasarkan arah implementasi dan pembabakan jamannya dibedakan menjadi :</p><p>- algoritma sandi klasik classic cryptography</p><p>- algoritma sandi modern modern cryptography</p><p>Berdasarkan kerahasiaan kuncinya dibedakan menjadi :</p><p>- algoritma sandi kunci rahasia secret-key</p><p>- algoritma sandi kunci publik publik-key</p><p>Pada skema kunci-simetris, digunakan sebuah kunci rahasia yang sama untuk melakukan</p><p>proses enkripsi dan dekripsinya. Sedangkan pada sistem kunci-asimentris digunakan sepasang kunci yang berbeda, umumnya disebut kunci publik(public key) dan kunci pribadi (private key), digunakan untuk proses enkripsi dan proses dekripsinya. Bila elemen teks terang dienkripsi dengan menggunakan kunci pribadi maka elemen teks sandi yang dihasilkannya hanya bisa didekripsikan dengan menggunakan pasangan kunci pribadinya. Begitu juga sebaliknya, jika kunci pribadi digunakan untuk proses enkripsi maka proses dekripsi harus menggunakan kunci publik pasangannya.</p><p><strong>Digital Signature Algorithm (DSA)</strong></p><p>Tanda tangan digital DSA berbentuk sepasang besar angka yang ditampilkan komputer</p><p>sebagai string dari digit biner. Tanda tangan digital dihitung dengan menggunakan sejumlah aturan dan sejumlah parameter sehingga identitas pemilik dan integritas data dapat diverifikasi. Pembuat tanda tangan menggunakan kunci privat untuk membuat tanda tangan; sedangkan kunci publik, yang berkorespodensi dengan kunci privat namun tidak sama, digunakan untuk memverifikasi tanda tangan. Setiap user memiliki sepasang kunci publik dan kunci privat. Kunci publik diasumsikan diketahui public secara umum, sedangkan kunci privat tidak pernah disebar.</p><p>DSA dapat dilihat sebagai variasi dari skema tanda tangan ElGamal. Keamanan DSA</p><p>berdasarkan pada kemampuan logaritma diskrit dalam urutan bilangan prima Z*p. Domainparameter DSA dibangkitkan untuk setiap entitas dalam domain keamanan tertentu :</p><p>1. Pilih bilangan prima sepanjang 160 bit dan 1024 bit dengan kondisi : q | p — 1</p><p>2. Pilih pembangkit g yang memiliki kelompok putaran yang unik di mana q berada</p><p>dalam Z*p. Pilih sebuah elemen h ε Z*p dan hitung g = h (p-1)/q mod p.</p><p>Ulangi hingga g ≠ 1</p><p>3. Parameter domain adalah p, q dan g.</p><p><strong>A. Review materi awal</strong></p><p>- Aspek keamanan yang disediakan oleh kriptografi:</p><p>1. Kerahasiaan pesan (confidentiality/secrecy)</p><p>2. Otentikasi (authentication).</p><p>3. Keaslian pesan (data integrity).</p><p>4. Anti-penyangkalan (nonrepudiation).</p><p>- Aspek 1 diselesaikan dengan enkripsi/dekripsi</p><p>- Aspek 2 s/d 4 diselesaikan dengan tanda-tangan digital (digital signature).</p><p><strong>B. History Tanda Tangan Digital</strong></p><p>Tanda-tangan Digital</p><p>- Sejak zaman dahulu, tanda-tangan sudah digunakan untuk otentikasi dokumen cetak.</p><p>- Tanda-tangan mempunyai karakteristik sebagai berikut:</p><p>-Tanda-tangan adalah bukti yang otentik.</p><p>-Tanda tangan tidak dapat dilupakan.</p><p>-Tanda-tangan tidak dapat dipindah untuk digunakan ulang.</p><p>-Dokumen yang telah ditandatangani tidak dapat diubah</p><p>- Tanda tangan tidak dapat disangkal (repudiation)</p><p><strong>C. Fungsi Tanda tangan digital</strong></p><p>Fungsi tanda tangan pada dokumen kertas juga diterapkan untuk otentikasi pada data digital (pesan, dokumen elektronik).</p><p>- Tanda-tangan untuk data digital dinamakan tanda-tangan digital.</p><p>- Tanda-tangan digital bukanlah tulisan tanda-tangan yang di-digitisasi (di-scan).</p><p>- Tanda-tangan digital adalah nilai kriptografis yang bergantung pada isi pesan dan kunci.</p><p>- Tanda-tangan pada dokumen cetak selalu sama, apa pun isi dokumennya.</p><p>- Tanda-tangan digital selalu berbeda-beda antara satu isi dokumen dengan dokumen lain.</p><p><strong>D. Cara menandatangani pesan</strong></p><p>Dua cara menandatangani pesan:</p><p>1.Enkripsi pesan</p><p>2.Menggunakan kombinasi fungsi hash(hash function) dan kriptografi kunci-publik</p><p><strong>E. Pembahasan</strong></p><p><strong>1. Enkripsi Pesan</strong></p><p>Penandatangan dengan Cara Mengenkripsi Pesan dapat dilakukan dengan :</p><p><strong>a. Menggunakan kriptografi simetri</strong></p><p>- Pesan yang dienkripsi dengan algoritma simetri sudah memberikan solusi untuk otentikasi pengirim dan keaslian pesan,</p><p>- Karena kunci simetri hanya diketahui oleh pengirim dan penerima.</p><p>- Namun cara ini tidak menyediakan mekanisme untuk anti-penyangkalan.</p><p>Agar dapat mengatasi masalah penyangkalan, maka diperlukan pihak ketiga yang dipercaya oleh pengirim/penerima.</p><p>Pihak ketiga ini disebut penengah (arbitrase).</p><p>Misalkan BB (<em>Big Brothers</em>) adalah otoritas arbitrase yang dipercaya oleh Alice dan Bob.</p><p>BB memberikan kunci rahasia <em>KA</em>kepada Alice dan kunci rahasia <em>KB</em>kepada Bob.</p><p>Hanya Alice dan BB yang mengetahui <em>KA</em>, begitu juga hanya Bob dan BB yang mengetahui <em>KB</em>.</p><p>Jika Alice bekirim pesan P kepada Bob, maka langkah-langkahnya adalah sebagai</p><p>berikut:</p><p>1. Alice mengenkripsi pesan M untuk Bob dengan KA, lalu mengirim</p><p>cipherteksnya ke BB.</p><p>2. BB melihat bahwa pesan dari Alice, lalu mendekripsi pesan dari Alice dengan</p><p>KA.</p><p>3. BB membuat pernyataan S bahwa ia menerima pesan dari Alice, lalu</p><p>menambahkan pernyataan tersebut pada plainteks dari Alice.</p><p>4. BB mengenkripsi bundel pesan (M + S) dengan KB, lalu mengirimkannya</p><p>kepada Bob.</p><p>5. Bob mendekripsi bundel pesan dengan KB. Ia dapat membaca pesan dari Alice</p><p>(M) dan pernyataan (S) dari BB bahwa Alice yang mengirim pesan tersebut</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*ngNew6KIbXloUxysBJtXyw.png" /></figure><p>Jika Alice menyangkal telah mengirim pesan tersebut, maka pernyataan dari BB pada pesan yang diterima oleh Bob digunakan untuk menolak penyangkalan Alice.</p><p>Bagaimana BB tahu bahwa pesan tersebut dari Alice dan bukan dari Charlie?</p><p>Karena hanya BB dan Alice yang mengetahui kunci rahasia, maka hanya Alice yang dapat mengenkripsi pesan dengan kunci tersebut.</p><p><strong>b. Menggunakan Kriptografi Kunci public</strong></p><p>Enkripsi biasa (hanya untuk secrecy):</p><p>-pesan dienkripsi dengan kunci publik penerima.</p><p>-pesan didekripsi dengan kunci privat penerima.</p><p>-cara ini tidak memberikan sarana otentikasi karena kunci publik diketahui oleh banyak orang.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*LURXMGgCsVZO3Ty9Rzy0dA.png" /></figure><p>**Enkripsi sebagai tanda-tangan:</p><p>-pesan dienkripsi kunci privat pengirim.</p><p>-pesan didekripsi pesan dengan kunci public pengirim.</p><p>-dengan cara ini, maka kerahasiaan pesan dan otentikasi keduanya dicapai sekaligus.</p><ul><li>ide ini ditemukan oleh Diffie dan Hellman.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*kQ91X3o8YEpLM7qohqb1nA.png" /></figure><p>Proses menandatantangani pesan (oleh pengirim):</p><p><em>S= ESK(M)</em></p><p>Proses membuktikan otentikasi pesan (oleh penerima):</p><p><em>M= DPK(S)</em></p><p>Keterangan:</p><p><em>SK </em>= <em>secret key</em>= kunci privat pengirim</p><p><em>PK</em>= <em>public key</em>= kunci publik pengirim</p><p><em>E </em>= fungsi enkripsi<em>D</em>= fungsi dekripsi</p><p><em>M= pesan semula</em></p><p><em>S</em>= <em>signature</em>= hasil enkripsi pesan</p><p>Dengan algoritma kunci-publik, penandatanganan pesan tidak membutuhkan lagi pihak penengah (arbitrase).</p><p>Beberapa agoritma kunci-publik dapat digunakan untuk menandatangani pesan dengan cara mengenkripsinya, asalkan algoritma tersebut memenuhi sifat:</p><p><em>DSK</em>(<em>EPK</em>(<em>M</em>)) = <em>M</em>dan <em>DPK</em>(<em>ESK</em>(<em>M</em>)) = <em>M</em>,</p><p>Keterangan:</p><p><em>PK= kunci publik</em></p><p><em>SK</em>= kunci privat (<em>secret key</em>).</p><p><em>E = fungsi enkripsi</em></p><p><em>D= fungsi dekripsi</em></p><p><em>M= pesan</em></p><p>Misalkan <em>M </em>adalah pesan yang akan dikirim. Pesan <em>M </em>ditandatangani menjadi pesan terenkripsi <em>S </em>dengan menggunakan kunci privat (<em>SK</em>) si pengirim,</p><p><em>S= ESK(M)</em></p><p>yang dalam hal ini, <em>E </em>adalah fungsi enkripsi dari algoritma kunci-publik.</p><p>Selanjutnya, <em>S </em>dikirim melalui saluran komunikasi.</p><p><strong>2.Menggunakan kombinasi fungsi hash(hash function) dan kriptografi kunci-publik</strong></p><p><strong>Penandatangan dengan Menggunakan Krptografi kunci-publik dan Fungsi <em>Hash</em></strong></p><p>- Penandanganan pesan dengan cara mengenkripsinya selalu memberikan dua fungsi berbeda: kerahasiaan pesan dan otentikasi pesan.</p><p>- Pada beberapa kasus, seringkali otentikasi yang diperlukan, tetapi kerahasiaan pesan tidak. Maksudnya, pesan tidak perlu dienkripsikan, sebab yang dibutuhkan hanya keotentikan pesan saja.</p><ul><li>Algoritma kunci-publik dan fungsi hash dapat digunakan untuk kasus seperti ini.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*esDePyuOftw8TDNqUAkZEw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*2Sri0zOKCSIpho814E04BQ.png" /></figure><p>Keotentikan ini dijelaskan sebagai berikut:</p><p>a. Apabila pesan M yang diterima sudah berubah, maka MD’ yang dihasilkan dari fungsi hash berbeda dengan MD semula. Ini berarti pesan tidak asli lagi.</p><p>b. Apabila pesan M tidak berasal dari orang yang sebenarnya, maka message digest MD yang dihasilkan dari persamaan 3 berbeda dengan message digest MD’ yang dihasilkan pada proses verifikasi (hal ini karena kunci publik yang digunakan oleh penerima pesan tidak berkoresponden dengan kunci privat pengirim).</p><p>c. Bila MD = MD’, ini berarti pesan yang diterima adalah pesan yang asli (message authentication) dan orang yang mengirim adalah orang yang sebenarnya (user authentication).</p><p>algoritma <em>signature </em>yang digunakan secara luas adalah <em>RSA </em>dan <em>ElGamal</em>.</p><p>- Pada <em>RSA</em>, algoritma enkripsi dan dekripsi identik, sehingga proses <em>signature</em>dan verifikasi juga identik.</p><p>- Selain <em>RSA</em>, terdapat algoritma yang dikhususkan untuk tanda-tangan digital, yaitu <em>Digital Signature Algorithm</em>(DSA), yang merupakan bakuan (<em>standard</em>) untuk <em>Digital Dignature Standard</em>(DSS).</p><p>- Pada <em>DSA</em>, algoritma <em>signature</em>dan verifikasi berbeda</p><p><strong>E. Tanda-tangan dengan algoritma RSA</strong></p><p><strong>Langkah-langkah pemberian tanda-tangan</strong></p><p>1.Pengirim menghitung nilai <em>hash </em>dari pesan <em>M </em>yang akan dikirim , misalkan nilai <em>hash </em>dari M adalah <em>h</em>.</p><p>2.Pengirim mengenkripsi <em>h </em>dengan kunci privatnya menggunakan persamaan enkripsi <em>RSA</em>:</p><p><em>S= hSKmod n</em></p><p>Yang dalam hal ini <em>SK </em>adalah kunci privat pengirim dan n adalah modulus(<em>n</em>=<em>pq</em>, <em>p </em>dan <em>q </em>adalah dua buah bilangan prima).</p><p>3.Pengirim mentransmisikan <em>M</em>+<em>S </em>ke penerima</p><p><strong>F. PENERAPAN PENGGUNAAN DIGITAL SIGNATURE</strong></p><p>1.1 Sertifikat Elektronik</p><p>Sertifikat digital memiliki peranan penting dalam pembangkitan <em>digital signature</em>. Dalam sertifikat digital terdapat info publik key dan info pemilik publik key. Info-info tersebut dimasukkan ke dalam informasi <em>siganture </em>pada dokumen elektronik yang ditandatangani. Melalui info signature tersebut maka penerima dapat memastikan identitas dari pemberi tanda tangan elektronik. Setiap sertifikat elektronik dibangkitkan oleh <em>Certification Authority </em>(CA). CA adalah badan yang memiliki kewenangan dalam melakukan manajemen sertifikat elektronik seperti penerbitan, pencabutan dan pembaharuan[2]. Gambar 1 menunjukkan sertifikat elektronik yang telah diterbitkan oleh CA.</p><p><em>Gambar 1.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*haVUxP4NqlPaxNQkPyHgeA.png" /></figure><p>1.2 Tanda Tangan Elektronik</p><p>Tanda tangan elektronik atau <em>digital signature </em>merupakan kombinasi dari fungsi <em>hash </em>dan enkripsi dengan metode asimetrik. Untuk membangkitan sebuah <em>digital signature, </em>dokumen elektronik akan dijadikan sebagai input pada fungsi <em>hash </em>dan akan menghasilkan nilai <em>hash </em>yang unik. Fungsi <em>hash </em>merupakan fungsi satu arah dan akan menghasilkan nilai unik untuk setiap data yang dimasukkan. Oleh karena itu, jika ada perubahan satu bit saja pada konten dokumen maka nilai <em>hash </em>yang dihasilkan akan berbeda. Nilai <em>hash </em>kemudian di enkripsi menggunakan <em>private key </em>untuk selanjutnya nilai dari hasil enkripsi tersebut adalah nilai <em>signature </em>dari suatu dokumen. <em>Signature </em>kemudian ditambahkan dengan dokumen. Proses verifikasi dilakukan dengan melakukan dekripsi <em>signature </em>dokumen. Hasil dekripsi tersebut akan menghasilkan nilai <em>hash </em>untuk selanjutnya dibandingkan dengan nilai <em>hash </em>dari dokumen yang dibangkitkan oleh penerima dokumen. Jika nilai <em>hash </em>sama, maka dokumen yang diterima adalah asli. Sebaliknya jika nilai <em>hash </em>yang dibandingkan tidak sama, maka dapat dipastikan bahwa dokumen mengalami perubahan oleh pihak yang tidak berhak.</p><p>Gambar 2 menunjukkan proses pembangkitan <em>digital signature </em>dan proses verifikasi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*Cw2xKtUOxVefTGpF2QLj0w.png" /></figure><p>Penerapan tanda tangan elektronik perlu diimplementasikan pada dokumen elektronik pemerintahan karena dapat menyediakan proses verifikasi terhadap keaslian dokumen yang diterima. Akan tetapi, penerapan tanda tangan elektronik menjadi masalah baru karena saat ini instansi pemerintah telah memiliki sistem untuk tata naskah dinas elektronik sehingga membutuhkan strategi implementasi yang tepat. Desain sistem pada makalah ini telah memperhatikan aspek kompleksitas implementasi, keamanan dan kesesuaian proses bisnis tata naskah dinas sehingga diharapkan dapat menjadi solusi bagi intansi pemerintah dalam melakukan penerapan tanda tangan elektronik. Terdapat beberapa manfaat yang didapatkan oleh instansi pemerintah dalam implementasi tanda tangan elektronik sebagai berikut :</p><p>a) Keaslian dokumen elektronik dapat diverifikasi</p><p>Dokumen elektronik dapat dengan mudah dimodifikasi dan dipalsukan. Dengan adanya tanda tangan elektronik, setiap terdapat perubahan maka nilai <em>hash </em>yang dihasilkan juga akan berbeda sehingga jika terdapat perubahan oleh pihak yang tidak berhak maka penerima dokumen dapat mengetahui perubahan tersebut.</p><p>b) Mengurangi waktu permohonan persetujuan</p><p>Setiap pejabat dapat melakukan persetujuan dimanapun dan kapanpun karena dokumen elektronik dikirimkan langsung oleh sistem ke perangkat pejabat. Oleh karena itu, jika pejabat yang berwenang tidak berada di kantor atau sedang melakukan perjalanan dinas di luar kantor maka proses persetujuan masih tetap dapat dilakukan. Persetujuan yang dilakukan secara <em>real time </em>tersebut dapat mengurangi waktu yang dibutuhkan untuk persetujuan dibandingkang dengan waktu yang dibutuhkan pada persetujuan secara manual.</p><p>c) Mengurangi penggunaan kertas.</p><p>Proses koordinasi penyusunan dokumen dilaksanakan secata elektronis,sehingga tidak perlu mencetak dokumen ketika ada perubahan. Pencetakan dokumen cukup dilaksanakan satu kali ketika dokumen telah selesai disahkan.</p><p>Penerapan tanda tangan elektronik pada instansi pemerintah tidak selalu dapat berjalan dengan baik. Hal in dikarenakan terdapat kendala — kendala sebagai berikut :</p><p>a) Adanya keraguan dari para pejabat untuk menjalankan penerapan dokumen secara elektronik.</p><p>b) Adanya <em>mindset </em>penerapan tanda tangan elektronik yang sulit bagi para pimpinan.</p><p>c) Perlunya penyesuaian budaya nota dinas berbasis kertas menjadi nota dinas elektronik (<em>paperless</em>).</p><p>Oleh karena itu, penulis mengharapkan pada penelitian selanjutnya dapat dikembangkan mengenai identifikasi dan strategi yang tepat dari sisi kebijakan dan sosialisasi secara menyeluruh kepada masyarakat terkait tanda tangan elektronik.</p><p>saya pelajari dari :</p><p>Bahan Kuliah Kriptografi — IF4020 Kriptografi, Oleh : Bapak Rinaldi Munir — Teknik Informatika/STEI ITB</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7a9d7d54653" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Women In Tech yang keren?]]></title>
            <link>https://medium.com/@wennyrubyjane/women-in-tech-yang-keren-41c1fc09bb18?source=rss-81bde2fb21cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/41c1fc09bb18</guid>
            <category><![CDATA[made-with-code]]></category>
            <category><![CDATA[tips-and-tricks]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[women-techmakers]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Wenny Prastiwi]]></dc:creator>
            <pubDate>Thu, 14 May 2020 05:05:48 GMT</pubDate>
            <atom:updated>2020-05-14T05:09:11.964Z</atom:updated>
            <content:encoded><![CDATA[<p>Cofidence is a superpower. Once you start believing in yourself, amazing things start happening!</p><p>i could write hundreds of pages about my Techgirls experience, but words would never be enough to describe how incredible it was. learn about computer science is more than just a coding program, it’s a life changing experience. i’m just lucky to have been a computer science student and Women in Tech. i met with female engineers from google, tumblr, yahoo, facebook, instagram, girls who code. i have new contacts and friends who are ready to help me anytime. i am now capable of doing things i never thought i could do before. Techgirls gave me confidence in myself and what i can do with my life. now i’m not just a girl. I’m a Techgirl.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hRF3pujl1xeSvt1AQ3a7FQ.jpeg" /></figure><p>I begin my story in women in tech after i was hired at a software house company with a position as a system analyst and tester or so called QA Engineer and just to know, that i was hired when i was in 4 semester in college. yes, i’m a part timer.</p><p>Perempuan Bekerja Dalam Bidang IT?</p><p>Wohooo. artikel kali ini saya akan membahas tentang perempuan bekerja dalam bidang IT/Komputer dan sejenisnya. Sudah banyak diketahui bahwa memang yang biasa bekerja dalam bidang ini adalah laki — laki namun tidak menutup kemungkinan juga untuk perempuan berkecimpung dalam bidang ini. Perempuan yang memilih bidang IT sebagai pekerjaannya menurut saya adalah perempuan yang Tangguh. You can only grow if you’re willing to feel awkward and uncomfortable when you try something new. Karena bagi seorang perempuan ketika memasuki bidang ini kita harus kuat fisik, mental, dan harus menyiapkan banyak hal yang memang perlu dipertimbangkan. Kuat secara fisik bukan olahraga sobat hahaha tapi maksudnya adalah kuat secara fisik berarti bisa saja kita tiba — tiba harus mengerjakan banyak revisi entah itu dari segi permintaan client terkait dokumentasi, program aplikasi dan semacamnya. Bisa begadang semalam suntuk untuk menyelesaikan deadline. Untuk melakukan trial error pada kodingan sebuah aplikasi, debug ulang, dan semacamnya apalagi ketika menemukan bug kita harus mengecek kembali dan memperbaikinya. Butuh kesabaran, ketelitian, dan yang terpenting dimiliki adalah logic yang baik untuk menganalisa sebuah kode program dan melakukan penyelesaian. Kuat secara mental bisa dimaksudkan ketika kita harus bertemu client dan dengan sabar menjelaskan dengan baik — baik pada client atau orang lain yang notabene memang bukan orang IT. Juga ketika kita menghadapi atasan atau rekan kerja satu kantor yang biasanya dengan blak — blak an menyalahkan pekerjaan yang sudah kita lakukan. Jangan pernah tersinggung dan anggap itu sebagai pengingat serta acuan untuk terus belajar. Alasan mengapa kita harus bermental baja dan tahan disegala kondisi. I love speaking with people who are more intelligent in a certain field than i am, like just great to sit back and listen to somebody educate you on shit they’re passionate about. Dan yang termasuk hal ketika kita harus mempertimbangkan segalanya adalah ketika kita masih kuliah misalkan, apakah kita sanggup membagi waktu dengan baik karena untuk menyelesaikan sebuah alur atau program dari sebuah aplikasi kemampuan setiap orang berbeda ada yang melakukannya dengan cepat dan ada yang melakukannya dengan lambat tergantung tingkat skill yang dimiliki. harus dengan sadar diri bahwa apakah kita bisa menghandle itu dengan baik atau masih kurang. Juga ketika kita sudah berkeluarga, memiliki anak apakah benar kita dapat melakukan pekerjaan dengan baik. Karena ketika kita mengambil pekerjaan itu berarti kita memiliki dua tanggung jawab besar yaitu kepada keluarga dan kantor tempat kita bekerja. Semua pekerjaan dalam bidang IT bisa saja perempuan lakukan dengan baik sesuai bidang yang memang digelutinya sobat. Karena bidang IT itu cakupannya lumayan luas. Biasanya banyak dari perempuan yang memilih sebagai :</p><p>1. Tester/QA/Dokumentator</p><p>2. Quality Control (QC)</p><p>3. Data Engineer/Data Analyst/Data Scientist</p><p>4. Web Developer</p><p>5. Software Engineer</p><p>6. Android Developer</p><p>7. Database Administrator</p><p>8. Product Manager</p><p>9. Graphic Designer</p><p>10. UI/UX Designer</p><p>11. Marketing/Research market</p><p>12. IT Support</p><p>13. Etc..</p><p>Dan masih banyak lagi sobat. Itu hanya beberapa contoh bidang yang biasanya di tekuni oleh perempuan — perempuan hebat yang memutuskan dirinya untuk menjadi seorang IT Developer dan sejenisnya. Lalu bagaimana sih caranya buat seorang perempuan bisa melaju di bidang IT ? here we go! i will give you some tips. let’s go!</p><p>1. Pilih bidang dari IT yang ingin ditekuni</p><p>2. Pelajari dan cari tempat kursus atau komunitas atau rekan yang memang bisa kita jadikan untuk tempat belajar kita</p><p>3. Cari sertifikasi IT yang relevan dengan bidang yang ingin ditekuni</p><p>4. Jangan bosan mencoba dan terus perbarui CV, portfolio sehingga recruiter mengetahui seberapa jauh skill dan pengalaman kerja atau belajar yang pernah kita dapatkan</p><p>5. Bermental dan berkeinginan kuat. karena ketika kita sudah mulai tidak bisa atau gagal ketika melakukan trial error biasanya kita akan menyerah dan mencari alternative lain tanpa mengetahui sebab yang jelas. Biasanya kebanyakan sih sudah malas untuk melakukan oprek atau mengecek ulang. Jadi biasakan <strong>Trial — Error — Repeat — Success</strong> (kalo sekali trial langsung success, berarti kamu keren!)</p><p>Terus jaga semangat dan jangan kaih kendor sobat! Selamat mencoba dan sukses. Sampai bertemu di artikel berikutnya. it’s all fun and games until you fall in love with that video game character. no shortcut, no quick fixes, just hard work!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41c1fc09bb18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Practice with CLI (Command Line Interface) on Linux]]></title>
            <link>https://medium.com/@wennyrubyjane/practice-with-cli-command-line-interface-on-linux-fe60236ee924?source=rss-81bde2fb21cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe60236ee924</guid>
            <category><![CDATA[find-files-cli]]></category>
            <category><![CDATA[downloads-using-cli]]></category>
            <category><![CDATA[network-configuration]]></category>
            <category><![CDATA[cli-on-linux]]></category>
            <category><![CDATA[system-hardware-details]]></category>
            <dc:creator><![CDATA[Wenny Prastiwi]]></dc:creator>
            <pubDate>Wed, 06 May 2020 05:25:23 GMT</pubDate>
            <atom:updated>2020-05-06T05:25:23.920Z</atom:updated>
            <content:encoded><![CDATA[<p>Linux server is always identic with CLI (Command Line Interface), This is the following practice uses CLI on Linux.</p><p>in this case i’m using Linux Ubuntu 16.04 for my practice. Let’s Go!</p><h3><strong>1.</strong> <strong>5 Ways to Check Available Memory in Ubuntu 16.04</strong></h3><h4>Method 1: The free command</h4><p>Since the free command is the most widely used and without any doubt the most helpful, we will mention its usage first. This command is used to check information about the RAM usage by your system. Here is the command you will enter in the Terminal:</p><pre>$ free -m</pre><p>The m flag means that the information will be displayed in MBs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*8DcidRNspIrlqtvGjbVVHw.png" /></figure><p>The available column indicates the available memory. The used column in the swap entry is also 0 which means that it is all unused and thus free.</p><h4>Method 2: The vmstat command</h4><p>In order to view memory statistics through the vmstat command, you can use it in the following manner:</p><pre>$ vmstat -s</pre><p>The s flag provides detailed statistics about memory usage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*ZoUphXNaMiMlxhFt-B9K2A.png" /></figure><p>You can view the free memory and the free swap memory entry in the output, indicating the available memory in your system.</p><h4>Method 3: The /proc/meminfo command</h4><p>The following command extracts memory-related information from the /proc file system. These files contain dynamic information about the system and the kernel rather than the real system files.</p><p>This is the command you will use to print memory information:</p><pre>$ cat /proc/meminfo</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*NcP0xnGKURmoJ_-Wytm-tA.png" /></figure><h4>Method 4: The top command</h4><p>The top command is used to print CPU and memory usage of your system. You can simply use this command as follows:</p><pre>$ top</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*gD2bsOiERxEZPKZO4YBaMg.png" /></figure><p>In the header of the output, you can see the KiB Mem and Kib Swap entries through which you can check the used and free memory resources.</p><h4>Method 5: The htop command</h4><p>Just like the top command, the htop command also gives a detailed analysis of your CPU and memory usage. If you do not have installed htop on your system, you can install it by first updating your abt repositories through the following command:</p><pre>$ sudo apt-get update</pre><p>And then installing htop by entering the following command as sudo:</p><pre>$ sudo apt install htop</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*zhGiPk_HUNYZO7-S1mKfdQ.png" /></figure><pre>$ htop</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*YxVE1ajwHIJm5TprE7q3wQ.png" /></figure><h3>2. Get Linux System and Hardware Details on the Command Line</h3><h4>1. Displaying Basic System Information on Linux Shell</h4><p>To know the basic information about your system, you need to be familiar with the command-line utility called uname-short for unix name.</p><h4>The uname Command</h4><p>The uname command comes with multiple switches. The basic command as described below only returns the Kernel name:</p><pre>$ uname</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*lT91RD8zG8pT4gJwR-yRrQ.png" /></figure><h4>Get the Linux Kernel Name</h4><p>When you precisely want the command to print the kernel name, you will use the following command:</p><pre>$ uname -s</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*0Wry2Jvk4idgdaft_w4e4g.png" /></figure><h4>Get the Linux Kernel Release</h4><p>In order to print the release information of your kernel, use the following command:</p><pre>$ uname -r</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*_6tec4rGba9T8AkLZytbZA.png" /></figure><h4>Get the Linux Kernel Version</h4><p>In order to fetch the version of your kernel, use the following command:</p><pre>$ uname -v</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*gY7gv28BnAkWPmEqNnwCGw.png" /></figure><h4>Get Network Node Hostname</h4><p>You can use the following command to print the network hostname of your node:</p><pre>$ uname -n</pre><p>You can also use the following command for the same purpose as it is more user-friendly:</p><pre>$ uname –nodename</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*bKKSidv8CiJMxv4eerYsPg.png" /></figure><h4>Get Machine Hardware Architecture (i386, x86_64, etc.)</h4><p>In order to know the hardware architecture of the system you are working on, please use the following command:</p><pre>$ uname –-m</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*sp48NCLBWzePS5l-I77O_Q.png" /></figure><h4>Get Processor Type</h4><p>In order to know the type of processor you are using, please use the following command:</p><pre>$ uname -p</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*g0K9m8olyqM_JTv-dTqjcg.png" /></figure><h4>Get Hardware Platform</h4><p>In order to know the hardware platform you are using, please use the following command:</p><pre>$ uname -i</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*5M6cH-0wn1704IeNrR3RkQ.png" /></figure><h3>Get Operating System information</h3><p>The following command will let you know the name of the operating system you are using:</p><pre>$ uname -o</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*vnRtgaAGqg_rfqT1lvGbMw.png" /></figure><h4>Displaying All Information of Uname Command</h4><p>The above commands have displayed system information as per the type of switch used. In case, you want to see all the system information at once, use the following command:</p><pre>$ uname -a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*PwilnEOEIdR06IoEaMfspA.png" /></figure><h4>2. Displaying Detailed Hardware Information</h4><p>Here we will describe the commands, other than uname, that are used to extract detailed hardware information of your system:</p><h4>Get Hardware Information with lshw</h4><p>The lshw utility enables you to fetch important hardware information such as memory, CPU, disks, etc. from your system. Please run the following command as a super user in order to view this information:</p><pre>$ sudo lshw</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*_MeEPTRqYeSyDUDaBWHpBg.png" /></figure><h4>Short Summary</h4><p>In order to view the summary of your detailed hardware profile, please use the following command:</p><pre>$ lshw -short</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*gO79QCbtSnNay1HXN61SdA.png" /></figure><h4>Creating an HTML File</h4><p>The lshw utility also lets you print your hardware profile to an HTML file as a superuser. Use the following command for this purpose:</p><pre>$ sudo lshw -html &gt; [filename.html]</pre><p>Example:</p><pre>$ sudo lshw -html &gt; jarkominfo.html</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*MXXxtbAgcRN8REhgS8C_TQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*NOJ5M2uUdgJsM9ZkgYibFQ.png" /></figure><h4>Get CPU Information with lscpu</h4><p>The lscpu utility lists detailed CPU information from the files sysfs and /proc/cpuinfo to your screen. This is how you can use this command:</p><pre>$ lscpu<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*8HD0NaiZoKc1kPEm4w-0dg.png" /></figure><h4>Get Block Device Information with lsblk</h4><p>The lsblk utility displays information about all the basic storage devices of your system such as hard drive, its partitions and the flash drives connected to your system.</p><pre>$ lsblk</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*zGPp_VgteUUFTJLZ7ZaucQ.png" /></figure><pre>You can use the following command to view much more detailed information about all the devices:</pre><pre>$ lsblk -a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*rH97df-O98MjQ4OyxhTUNQ.png" /></figure><h4>Get USB Device Information with lsusb</h4><p>The lsusb lists information about all the USB controllers and the devices connected to them. Please run the following command:</p><pre>$ lsusb</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*dfMYH3bSlhs78SUH8N6_1g.png" /></figure><pre>You can also use the following command to view much detailed information about each USB device.</pre><pre>$ lsusb -v</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*OsmpcOGgxqvvyIzJh5IQQg.png" /></figure><h4>Get Information About Other Devices</h4><p>You can also view information about the following devices of your system:</p><p>§ PCI devices</p><p>Command: <em>$ lspci</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*Wlw2SL1nlPRV7_CGc1gyrw.png" /></figure><p>§ SCSI devices</p><p>Command: <em>$ lsscsi</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*FXLZziK515TwM7s3tjBe7w.png" /></figure><p>§ SATA devices</p><p>Command:</p><pre>$ hdparm [devicelocation] e.g. $ hdparm /dev/sda2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*UuXCoJPU_QiCoZlmPRxwdg.png" /></figure><h4>3. Batch removal of spaces in filenames via the Ubuntu command line</h4><h4>Method 1: Through the mv command in ‘for’ loop</h4><p>In this method, we will be making use of the Ubuntu mv command, in a for loop, in order to rename all files/folders in a directory such that all the spaces are removed.</p><p>Open your Ubuntu command line, the Terminal, either through the Application Launcher search or the Ctrl+Alt+T shortcut.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*wkH9cw2Edfins-yj295dJQ.png" /></figure><pre>$ for oldname in *; do newname=`echo $oldname | sed -e &#39;s/ //g&#39;`; mv &quot;$oldname&quot; &quot;$newname&quot;;</pre><p>Done</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*ZTyiaFmMe8i12hD55I4iNQ.png" /></figure><h4>Method 2: Using a bash script to rename files</h4><p>In this method, we will make use of a bash script that uses the mv command in order to rename file and folder names in a way that all the spaces are removed.</p><p>Open the Terminal application and move to the bin folder as follows:</p><pre>$ cd ~bin</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*WbSpmwL0a0dxh5gxhlpOCw.png" /></figure><pre>Now, open a new script file in one of your favorite text editors. We will use the Nano editor in order to open an empty script file by the name of remove_spaces.sh</pre><pre>$ sudo nano remove_spaces.sh</pre><p>In that empty file, add the following script:</p><pre>#!/bin/bash</pre><pre>( IFS=$&#39;\n&#39;</pre><pre>for y in $(ls $1)</pre><pre>do</pre><pre>mv $1/`echo $y | sed &#39;s/ /\\ /g&#39;` $1/`echo &quot;$y&quot; | sed &#39;s/ /_/g&#39;`</pre><pre>done )</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*e5KnhMoGDTQ8D9Z1NcFTeQ.png" /></figure><pre>Now, exit the file through the Ctrl+X shortcut and save the file on the “Save modified buffer?” prompt by typing Y and then hitting Enter.</pre><pre>In order to make this file an executable script, run the following command in your Terminal:</pre><pre>$ sudo chmod +x remove_spaces.sh</pre><p>Now you are ready to use the script in any of your folders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*2BEl0wffE5FLLfS-Vkcemw.png" /></figure><p>When I run the script on my “sample” directory in the Downloads folder, I see all the spaces in my file names removed. You can see the result as I list the contents of the file again using the ls command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*BNefayIbxdfl4uI7Y-nuGA.png" /></figure><h3>4. How to Configure Network Settings in Ubuntu</h3><h4>Setting/Changing an IP address</h4><p>There are several ways to set an IP address in Ubuntu. You can configure the network interface to use dynamic IP using DHCP server or you can manually set a static IP address<strong>.</strong></p><h4>Method #1: Network configuration on the command line</h4><p>In Ubuntu, you can set IP address through terminal commands.</p><p>First type <strong>netstat –I</strong> to find the interface name. Then type the below command:</p><pre>sudo ifconfig eth0 192.168.72.6 netmask 255.255.255.0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*9YMeLDXdRRcMQJy2McB0AQ.png" /></figure><pre>Then to add a default gateway, add the below command:</pre><pre>sudo route add default gw 192.168.72.1 eth0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*TUN0t7rHeNYENNulaAU8-Q.png" /></figure><h4>Method #2: Network configuration using the GUI</h4><p>You can set an IP address via the graphical user interface in Ubuntu. From the desktop, click on the start menu and search for <strong>Settings</strong>. From the Settings window, click on the <strong>Network</strong> tab<strong>. </strong>Then from the right pane, select the interface and click on the gear icon to open settings for that interface</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*5QU3ZSF-Z8JLIZyUIhaCsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*4382g1ZH3Xj3Vf7fTLk93Q.png" /></figure><h4>Method #3: Configure the network by editing /etc/interfaces file</h4><p>Here is another method which you can use to configure the IP address. To set IP address dynamically, you have to edit <strong>/etc/network/interfaces.</strong> In <strong>/etc/network/interfaces</strong>, the basic configuration of interfaces is stored.</p><p>Edit the <strong>/etc/network/interfaces</strong> by entering the following command in terminal.</p><pre>sudo nano /etc/network/interfaces</pre><p>Then add the following lines:</p><pre>auto eth1</pre><pre>iface eth1 inet dhcp</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*ofoAj6oDqXr7Oxd3kMf1og.png" /></figure><pre>Save the file and restart networking services using the below command.</pre><pre>sudo systemctl restart networking</pre><p>To set a Static IP address, you have to edit <strong>/etc/network/interfaces</strong></p><pre>sudo nano /etc/network/interfaces</pre><p>Add the below lines to <strong>/etc/network/interfaces</strong>.</p><pre>auto eth1</pre><pre>iface eth1 inet static</pre><pre>address 192.168.72.8</pre><pre>netmask 255.255.255.0</pre><pre>gateway 192.168.72.1</pre><pre>dns-nameservers 8.8.8.8 4.4.2.2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*VaO2h_fhvzYOrDv9kxCuwA.png" /></figure><pre>sudo systemctl restart networking</pre><h4>Setting up/Changing Hostname</h4><p>The hostname of Ubuntu OS is configured in the file <strong>/etc/hostname</strong>.</p><p>To edit <strong>/etc/hostname</strong>, enter the below command:</p><pre>sudo nano /etc/hostname</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*zVFLz6nBy7v9j9QpTKhLFA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*deWwe6UnhCzE_w08pqQ7ww.png" /></figure><h3>5. How to Replace Spaces in Filenames with Underscores on the Linux Shell</h3><p>My Downloads folder, which I will be using as a sample for this article, contains spaces in all filenames.</p><pre>$ ls Downloads</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/1*mhoVVBDAXDFCo5XpcZ8rbw.png" /></figure><h4>Method 1: Through a single mv command</h4><p>In this method, we will be making use of the Ubuntu mv command in a for loop in order to rename all files/folders in a given directory so that all spaces in their names are replaced with underscore characters.</p><p>Open your Ubuntu command line, the Terminal, either through the Application Launcher search or the Ctrl+Alt+T shortcut.</p><p>Here is the syntax of the command you will be using:</p><pre>$ for file in *; do mv &quot;$file&quot; `echo $file | tr &#39; &#39; &#39;_&#39;` ; done</pre><p>I ran the same command to replace spaces with underscores in my Downloads folder:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*w7XINY-_d7mAS52EFtOSaw.png" /></figure><pre>When I listed the contents of the directory again, you can see that all file names now contain underscores instead of spaces.</pre><h4>Method 2: Using a script to rename files</h4><p>In this method, we will make use of a bash script that uses the mv command in order to rename file and folder names in a way that all the spaces are replaced with underscores.</p><p>Open the Terminal application and move to the bin folder as follow:</p><pre>$ cd ~bin</pre><p>Now, open a new script file in one of your favorite text editors. We will use the nano editor in order to open an empty script file by the name of replace_spaces.sh</p><pre>$ sudo nano replace_spaces.sh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*xFHiuEXfkGsd1gWxbAGFVw.png" /></figure><p>In that empty file, add the following script:</p><pre>#!/bin/bash</pre><pre>for f in *</pre><pre>do</pre><pre>new=&quot;${f// /_}&quot;</pre><pre>if [ &quot;$new&quot; != &quot;$f&quot; ]</pre><pre>then</pre><pre>if [ -e &quot;$new&quot; ]</pre><pre>then</pre><pre>echo not renaming \&quot;&quot;$f&quot;\&quot; because \&quot;&quot;$new&quot;\&quot; already exists</pre><pre>else</pre><pre>echo moving &quot;$f&quot; to &quot;$new&quot;</pre><pre>mv &quot;$f&quot; &quot;$new&quot;</pre><pre>fi</pre><pre>fi</pre><pre>done</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*cOYAevnv-C2k9sSyfQW8dQ.png" /></figure><pre>$ sudo chmod +x replace_spaces.sh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*fL63wglp9gRMljAhWQTZ4g.png" /></figure><p>Now you are ready to use the script in any of your folders.</p><p>When I run the script in my sample Downloads folder, I see all the spaces in my file names converted to underscores as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*Z-_a5vjM19uYamf-NBO-xQ.png" /></figure><h3>6. Convert Filenames to Lowercase through Ubuntu Command Line</h3><p>Here is how you can list the contents of your folder using the find command:</p><p><em>$ find [directory_name] -depth</em></p><p>My Downloads folder, which I will be using as a sample for this article, has all files starting from uppercase letters and also contains a few in between the names.</p><pre>$ find Downloads -depth</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*3pAlg74ZviX_gxNrrE2NfA.png" /></figure><h4>Method 1: Using the rename command</h4><p>In this method, we will be making use of the Ubuntu find, Xargs and rename commands in order to recursively rename all files/folders in a given directory.</p><p>Open your Ubuntu command line, the Terminal, either through the Application Launcher search or the Ctrl+Alt+T shortcut.</p><p>Here is the syntax of the command you will be using:</p><p><em>$ find [directory_name] -depth | xargs -n 1 rename -v ‘s/(.*)\/([^\/]*)/$1\/\L$2/’ {} \;</em></p><p>If you do not have the rename command installed on your system, you might get an error when you run the above command. You can install rename to your Ubuntu through the following apt-get command:</p><pre>$ sudo apt-get install rename</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*x9HLhPtTBeAH6YWysqfg1g.png" /></figure><p>I will be using the following command in order to convert filenames to lowercase in my Downloads directory:</p><pre>$ find Downloads -depth | xargs -n 1 rename -v &#39;s/(.*)\/([^\/]*)/$1\/\L$2/&#39; {} \;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*51BJFa6ZryyL5Mu4zCc1NA.png" /></figure><h3>Method 2: Using a script to rename the files</h3><p>In this method, we will make use of a bash script that uses the find and mv commands in order to recursively rename file and folder names of a directory, including the directory name itself.</p><p>Open the Terminal application and move to the bin folder as follow:</p><pre>$ cd ~bin</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*-wTLbXm1f6ueT5PltyzKEA.png" /></figure><p>Now, open a new script file in one of your favorite text editors. We will use the nano editor in order to open an empty script file by the name of lowercase_filenames.sh</p><pre>$ sudo nano lowercase_filenames.sh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*VNfKDgXWRXTppCaY3d5atg.png" /></figure><p>In that empty file, add the following script.</p><pre>#!/bin/bash</pre><pre>#print usage</pre><pre>if [ -z $1 ];then</pre><pre>echo &quot;Usage :$(basename $0) parent-directory&quot;</pre><pre>exit 1</pre><pre>fi</pre><pre>#process all subdirectories and files in parent directory</pre><pre>all=&quot;$(find $1 -depth)&quot;</pre><pre>for name in ${all}; do</pre><pre>#set new name in lower case for files and directories</pre><pre>new_name=&quot;$(dirname &quot;${name}&quot;)/$(basename &quot;${name}&quot; | tr &#39;[A-Z]&#39; &#39;[a-z]&#39;)&quot;</pre><pre>#check if new name already exists</pre><pre>if [ &quot;${name}&quot; != &quot;${new_name}&quot; ]; then</pre><pre>[ ! -e &quot;${new_name}&quot; ] &amp;&amp; mv -T &quot;${name}&quot; &quot;${new_name}&quot;; echo &quot;${name} was renamed to ${new_name}&quot; || echo &quot;${name} wasn&#39;t renamed!&quot;</pre><pre>fi</pre><pre>done</pre><pre>exit 0</pre><p><strong>Tip:</strong> Instead of typing the whole script into you bash file, you can copy it from here and paste in the Terminal by using the Ctrl+Shift+V, or by using the Paste option from the right-click menu.</p><p>This is how your file will look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*iNIjgDf5w2eipWuWMUC7rg.png" /></figure><p>Now, exit the file through the Ctrl+X shortcut and save the file on the “Save modified buffer?” prompt by typing Y and then hitting enter.</p><p>In order to make this file an executable script, run the following command in your Terminal:</p><pre>$ sudo chmod +x lowercase_filenames.sh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*_4oZJ8oVviKSXImYDDcgpA.png" /></figure><p>Now you are ready to use the script on any of your folders.</p><p>When I run the script on my Downloads folder, I see all the files and subfolders names converted to lowercase as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*RLRVmLbn-k-mGf-8ACikoQ.png" /></figure><h3>7. How to Download a File on Ubuntu Linux using the Command Line</h3><h4>Download files using Curl</h4><p>Curl can be used to transfer data over a number of protocols. It supports many protocols including HTTP<strong>, </strong>HTTPS<strong>, </strong>FTP<strong>, </strong>TFTP<strong>, </strong>TELNET, SCP, etc. using Curl, you can download any remote files. It supports pause and resumes function as well.</p><p>To get started with, first, you need to install the curl.</p><h4>Install curl</h4><p>Launch command line application in Ubuntu that is Terminal by pressing the <strong>Ctrl+Alt+T</strong> key combinations. Then enter the below command to install curl with sudo.</p><pre>$ sudo apt install curl</pre><p>When prompted for a password, enter sudo password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*LrG22a83FCGbtE65zZwsMA.png" /></figure><p>Once the installation is complete, enter the below command to download a file.</p><h4>Download and save the file using the source file name</h4><p>To save the file with the same name as the original source file on the remote server, use –O (uppercase O) followed by curl as below:</p><pre>$ curl –O [URL]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*HuK0xk41oyjIqUVComSaKA.png" /></figure><pre>Instead of -O, you can also specify, “–remote-name” as shown below. Both work the same.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*Y3oH0oCehQP4Iuy26T9oqw.png" /></figure><h4>Download and save the file with a different name</h4><p>If you want to download the file and save it in a different name than the name of the file in the remote server, use -o (lower-case o) as shown below. This is helpful when the remote URL doesn’t contain the file name in the URL as shown in the example below.</p><pre>$ curl –o [filename] [URL]</pre><p>[filename] is the new name of the output file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*vToxy4Q2zgM-CUKho53GLA.png" /></figure><h4>Download files from an FTP Server</h4><p>To download a file from FTP server, enter the command in following syntax:</p><pre>$ curl -O ftp://ftp.example.com/file.zip</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*GFVMKCPgW66Admxw4yijGQ.png" /></figure><pre>To download files from user authenticated FTP servers, use the following syntax:</pre><pre>$ curl -u [ftp_user]:[ftp_passwd] -O [ftp_URL]</pre><h4>Pause and resume download</h4><pre>$ curl –c [options] [URL]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*3vOnwK1JFx9DcqeaDzySIA.png" /></figure><h4>Download files using Wget</h4><p>Using wget, you can download files and contents from Web and FTP servers. Wget is a combination of www and the get. It supports protocols like FTP, SFTP, HTTP, and HTTPS. Also it supports recursive download feature. This feature is very useful if you want to download an entire website for offline viewing or for generating a backup for static website. In addition, you can use it to retrieve content and files from various web servers.</p><h4>Install wget</h4><p>Launch command line application in Ubuntu that is terminal by pressing the <strong>Ctrl+Alt+T</strong> key combinations. Then enter the below command to install wget with sudo.</p><pre>$ sudo apt-get install wget</pre><p>To download a file or a webpage, open the Terminal and enter the command in following syntax:</p><pre>$ wget [URL]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*u98RPzODRyBquvmGfun1XA.png" /></figure><pre>To save a single webpage, enter the command in the following syntax:<br>$ wget [URL]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*rGNMDW6jiCLrCEpTEww4tg.png" /></figure><h4>Download files with a different name</h4><p>If you want to download and save the file with a different name than the name of the original remote file, use -O (upper-case O) as shown below. This is helpful especially when you are downloading a webpage that automatically get saved with the name “index.html”.</p><p>To download file with a different name, enter the command in the following syntax:</p><pre>$ wget <strong>-O</strong> [filename] [URL]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*qoyEKHEHSPyvykNXJQpHNQ.png" /></figure><h4>Download files through FTP</h4><p>To download a file from FTP server, type the command in the following syntax:</p><pre>$ wget [ftp_link]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*amzcpHoC5cDwgMl8N7GtCQ.png" /></figure><p>To download files from user authenticated FTP servers, use the below syntax:</p><pre>$ wget -u [ftp_user]:[ftp_passwd] -O [ftp_URL]</pre><h4>Recursively download files</h4><p>You can use recursive download feature to download everything under the specified directory whether a website or FTP site. To use recursive download feature, enter the command in below syntax:</p><pre>$ wget –r [URL]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*3SP2E1JkMnVZOSIUnm_Qrw.png" /></figure><h3>Download multiple files</h3><p>You can use wget to download multiple files. Make a text file with a list of files URLs, then use the wget command in the following syntax to download that list.</p><pre>$ wget –i [filename]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*SIXMDhitOOODCpy10YD5ag.png" /></figure><h3>8. How to find files on the Ubuntu command line</h3><h4>Method 1: Using Find command</h4><p>Find is a highly flexible command used to search files based on a variety of conditions. It is a very helpful tool when searching a file for which you do not remember the name of the file. Using the Find command you can search based on file and folder name, creation date, modification date, and permissions. You can combine these multiple conditions in a one Find command. It is a very powerful but slower search tool.</p><p>The general syntax of the command is:</p><pre>$ find /path/to/file/ -iname filename\</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*fCT6QTQt_rGtc1fADPRB6Q.png" /></figure><h4>Search files in a specific directory</h4><p>You can use the Find command to search for all files in a specific directory. The general syntax would be:</p><pre>$ find /path/to/file/</pre><p>For instance, to find all the files under the <strong>/home/tin/Downloads/</strong> directory, launch the Terminal by pressing <strong>Ctrl+Alt+T</strong> and then run the following command in Terminal:</p><pre>$ find /home/wenny/Downloads/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*U1BYo0AlIK-4HADW_WONfQ.png" /></figure><h3>Search files in the current directory</h3><p>To search for files in a current directory, use</p><pre>$ find .</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*OFpv5nh2_N_6VicXxUfzhA.png" /></figure><pre>$ find . -iname Softwares<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*RmyKtdIN68E8chBGbrQsmA.png" /></figure><h3>Search for empty files</h3><p>You can also search for empty files using the Find command. The general syntax would be:</p><pre>$ find /path/to/file/ -iname -empty</pre><p>For instance to find empty files under the <strong>/home/tin</strong> directory, run the following command in Terminal:</p><pre>$ find /home/wenny/ -empty</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*WvlISniLMV4ConWa60kF-g.png" /></figure><h4>Search based on date and time</h4><p>Using Find command, you can also search for files depending upon when they were access or modified. There are types of time you can use to search files:</p><p>§ <strong>mtime (Modification time)</strong>: when the file’s content was modified last time.</p><p>§ <strong>atime (Access time)</strong>: when the file was accessed last time.</p><p>§ <strong>ctime (Change time)</strong>: when the file attributes were modified last time.</p><p>For instance, to search for files in a current directory that were modified less than 2 days ago, run the following command in Terminal:</p><pre>$ find . -mtime -2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*pnFpJje-V0icO5W7UVZMNw.png" /></figure><pre>$ find . –atime -2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*Zo9zs0O0Eg-PqHygaooh4A.png" /></figure><pre>$ find . –ctime -2<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*Wr-aeHSJzd0HfVRIZXR32A.png" /></figure><h4>Search based on file size</h4><p>For instance, to search file whose size is larger than 5MB size, we can use the following command in Terminal:</p><pre>$ find . –size +10M\</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*ENfT7qYScYFlEyJwcQ2M8w.png" /></figure><h4>Search based on file permissions</h4><p>It is used to find files with specific permission. The general syntax would be:</p><pre>$ find /path/to/file/ -type -perm mode</pre><p>Where:</p><p><strong>Type</strong> parameter includes <strong>d</strong> or <strong>f</strong> value that are used for specifying type of the file. <strong>d</strong> for directories and <strong>f</strong> for files only.<br> <strong>mode </strong>can be either with numeric permission (e.g 777, 655.. etc) or symbolic permission (e.g u=x, a=r+x).</p><p>For instance, to search for a file with the permission of 644, we can use the following command in Terminal:</p><pre>$ find . –type f –perm 644</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*VY8T06oTt_k7_plRt5SG8w.png" /></figure><h4>Method 2: Using Locate command</h4><p>There is another command Locate that can be used to search files in Linux. It does not have as many search conditions as the Find utility offers but it is much better and faster than the Find utility. The reason behind is the background process that actually runs in your system and searches and stores new files in its own database. Unlike Find command, it does not search your local hard disk for files and directories but instead, it searches them in its own database. Its database should be regularly updated for the search utility to work.</p><h4>Installing Locate</h4><p>Locate is not installed by default in the Linux OS. You will need to manually install it. Press <strong>Ctrl+Alt+T</strong> to launch the Terminal and then type the following command as sudo to install the Locate utility:</p><pre>$ sudo apt-get install locate</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*J_vJM6dfDlVbDCgR5ykimw.png" /></figure><pre>Once the installation is completed, you can use the Locate utility right away.</pre><pre>The general syntax of the command is:</pre><pre>$ locate –i filename</pre><p>Where -i is used to ignore case distinctions.</p><h4>Searching for a file</h4><p>For instance, to search for a filename “new”, use the following command in Terminal:</p><pre>$ locate –i new</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*jqs-LotsR1olJiO23aaCrA.png" /></figure><h4>Search for Multiple files</h4><p>You can also search for multiple file names simultaneously. For instance, use the following command in Terminal to search for two files “<strong>new_.docx”</strong> and “<strong>link”</strong>:</p><pre>$ locate –i new_.docx link</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*0h_eaieoQsnhwdNeZGvjMA.png" /></figure><h4>Search using Wildcard</h4><p>You can also use the wildcard character to find the files that match the query. For instance to search for all the files that ends in “.iso”, use the following command in Terminal:</p><pre>$ locate –i *.iso</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*24BNLn0jTIWOzYsGzz97ew.png" /></figure><h4>Update locate database</h4><p>Locate command relies on its database to work, so it needs to be updated regularly. Run the following command in Terminal to update the Locate utility database:</p><pre>$ sudo updatedb</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*639VxQ0mp5XSaJPgN54PQg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*ny14eikqMbu_syz0QUptKg.png" /></figure><h4>Method 3: Using Grep command</h4><p>Although Grep is not for directly searching files in your system, instead it is used to search text. However, you can use it to display the names of files that contain the particular string of characters that matches your search query. To search for a string, you must enclose it in double quotes.</p><p>The general Syntax of the command is:</p><p>$ grep [options] [pattern] [/path/to/file]<br> where <strong>[options]</strong> parameter contains generic options to control the search and<strong> [pattern]</strong> contains string that we want to search.</p><p>If you are looking for a file that contains a word, which you suspect might be in your any specific directory, you can search for it using the above command syntax in Terminal.</p><pre>$ grep -r –i “wenny” /home/wenny/Downloads</pre><p>For instance, to search for a file that contains the word “tintin” and we think that file might be in our <strong>Downloads</strong> folder, we can use the following command to locate that file,</p><p>For more details you can find in this link, i learn from this link :</p><p><a href="https://vitux.com/5-ways-to-check-available-memory-in-ubuntu/">1. https://vitux.com/5-ways-to-check-available-memory-in-ubuntu/</a><br>2. <a href="https://vitux.com/get-linux-system-and-hardware-details-on-the-command-line/">https://vitux.com/get-linux-system-and-hardware-details-on-the-command-line/</a><br>3. <a href="https://vitux.com/remove-spaces-in-filenames-ubuntu-command-line/">https://vitux.com/remove-spaces-in-filenames-ubuntu-command-line/</a><br>4. <a href="https://vitux.com/ubuntu-network-configuration/">https://vitux.com/ubuntu-network-configuration/</a><br>5. <a href="https://vitux.com/how-to-replace-spaces-in-filenames-with-underscores-on-the-linux-shell/">https://vitux.com/how-to-replace-spaces-in-filenames-with-underscores-on-the-linux-shell/</a><br>6. <a href="https://vitux.com/convert-filenames-to-lowercase-through-ubuntu-command-line/">https://vitux.com/convert-filenames-to-lowercase-through-ubuntu-command-line/</a><br>7. <a href="https://vitux.com/how-to-download-a-file-on-ubuntu-linux-using-the-command-line/">https://vitux.com/how-to-download-a-file-on-ubuntu-linux-using-the-command-line/</a><br>8. <a href="https://vitux.com/how-to-find-files-on-the-ubuntu-command-line/">https://vitux.com/how-to-find-files-on-the-ubuntu-command-line/</a></p><p>Thank you and good luck! ^.^</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe60236ee924" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Install and Configure Samba on Ubuntu 16.04]]></title>
            <link>https://medium.com/@wennyrubyjane/how-to-install-and-configure-samba-on-ubuntu-16-04-15afe0fba4ad?source=rss-81bde2fb21cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/15afe0fba4ad</guid>
            <category><![CDATA[samba-on-linux]]></category>
            <category><![CDATA[samba]]></category>
            <category><![CDATA[samba-install]]></category>
            <category><![CDATA[samba-on-ubuntu]]></category>
            <category><![CDATA[configure-samba]]></category>
            <dc:creator><![CDATA[Wenny Prastiwi]]></dc:creator>
            <pubDate>Wed, 06 May 2020 01:13:28 GMT</pubDate>
            <atom:updated>2020-05-06T01:13:28.173Z</atom:updated>
            <content:encoded><![CDATA[<p>We’ll create the following Samba shares and users.</p><p>Users:</p><p>· <strong>sadmin </strong>— An administrative user with read and write access to all shares.</p><p>· <strong>hallowen </strong>— A regular user with its own private file share.</p><p>Shares:</p><p>· <strong>users </strong>— This share will be accessible with read/write permissions by all users.</p><p>· <strong>hallowen </strong>— This share will be accessible with read/write permissions only by users josh and sadmin.</p><p><strong>a.</strong> <strong>Installing Samba on Ubuntu</strong></p><p><strong>Start by updating the apt packages index:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*42B2CBHFd9PzkRVGGVaz6Q.png" /></figure><p><strong>Install the Samba package with the following command:</strong></p><p>sudo apt install samba</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*Yu6Wm4hDQZp5VYb129uJ0Q.png" /></figure><p><strong>Once the installation is completed, the Samba service will start automatically. To check whether the Samba server is running, type:</strong></p><p><strong>sudo systemctl status smbd</strong></p><p><strong>The output should look something like below indicating that Samba service is active and running:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*6aljCQyJIcwUBUryQkhtHw.png" /></figure><p><strong>b.</strong> <strong>Configuring firewall</strong></p><p><strong>Assuming you are using </strong><a href="https://linuxize.com/post/how-to-setup-a-firewall-with-ufw-on-ubuntu-18-04/"><strong>UFW </strong></a><strong>to manage your firewall, you can open the</strong></p><p><strong>ports by enabling the ‘Samba’ profile:</strong></p><p>sudo ufw allow ‘Samba’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*BFSfH8RjKqnN_3g8uyc3EA.png" /></figure><p><strong>c.</strong> <strong>Configuring Global Samba Options</strong></p><p>Before making changes to the Samba configuration file, create a backup for future reference purposes:</p><p>sudo cp /etc/samba/smb.conf{,.backup}</p><p>The default configuration file that ships with the Samba package is configured for standalone Samba server. Open the file and make sure server role is set to standalone server</p><p>sudo nano /etc/samba/smb.conf</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*BTAJnlUbPZqa2Qf7O3CTNA.png" /></figure><p>By default, Samba listens on all interfaces. If you want to restrict access to the Samba server only from your internal network uncomment the following two lines and specify the interfaces to bind to:</p><p>interfaces = 127.0.0.0/8 eth0</p><p>bind interfaces only = yes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*cjxjlmnzv6L4Csd-1f5SNw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*nVY2s-cc_xQIzCDiPTZVxg.png" /></figure><p><strong>Finally, restart the Samba services with:</strong></p><p>Once done run the testparm utility to check the Samba configuration file for errors. If there are no syntax errors you will see Loaded services file OK.sudo systemctl restart smbd</p><pre>sudo systemctl restart smbd</pre><pre>sudo systemctl restart nmbd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*1gwFZ7vMBJ9BKc1X8R4CHQ.png" /></figure><p><strong>d.</strong> <strong>Creating Samba Users and Directory Structure</strong></p><p>For easier maintainability and flexibility instead of using the standard home directories (/home/user) all Samba directories and data will be located in the /samba directory.</p><p>To create the /samba directory type :</p><pre>sudo mkdir /samba</pre><p>Set the the group to sambashare. This group is created during the Samba installation, later we will add all Samba users to this group.</p><pre>sudo chgrp sambashare /samba</pre><p>Samba uses Linux users and group permission system but is has its own authentication mechanism separate from the standard Linux authentication. We will create the users using the standard Linux useradd tool and then set the user password with the smbpasswd utility.</p><p>As we mentioned in the introduction, we’ll create a regular user that will have access to its private file share and one administrative account with read and write access to all shares on the Samba server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*afeiaB_rDGfbgto_udKXZA.png" /></figure><p><strong>e.</strong> <strong>Creating Samba Users</strong></p><p>sudo useradd -M -d /samba/hallowen -s /usr/sbin/nologin -G sambashare hallowen</p><p>The useradd options have the following meanings:</p><ul><li>-M -do not create the user’s home directory. We’ll manually create this directory.</li><li>-d /hallowen/wenny — set the user’s home directory to /hallowen/wenny</li><li>-s /usr/sbin/nologin — disable shell access for this user.</li><li>-G sambashare — add the user to the sambashare group.</li></ul><p>Create the user’s home directory and set the directory ownership to user hallowen and group sambashare:</p><p>sudo mkdir /samba/hallowensudo chown wenny:sambashare /hallowen/wenny</p><p>The following command will add the setgid bit to the /hallowen/wenny directory so the newly created files in this directory will inherit the group of the parent directory. This way, no matter which user creates a new file, the file will have group-owner of sambashare. For example, if you don’t set the directory’s permissions to 2770 and the sadmin user creates a new file the user josh will not be able to read/write to this file.</p><p>sudo chmod 2770 /hallowen/wenny</p><p>Add the wenny user account to the Samba database by setting the user password:</p><ol><li>you will be prompted to enter and confirm the user password</li></ol><pre>sudo smbpasswd -a wenny</pre><p>2. Once the password is set to enable the Samba account run:</p><pre>sudo smbpasswd -e wenny</pre><p>3. To create another user repeat the same process as when creating the user wenny</p><p>Next, let’s create a user and group sadmin. All members of this group will have administrative permissions. Later if you want to grant administrative permissions to another user simply add that user to the sadmin group.</p><p>Create the administrative user by typing:</p><pre>sudo useradd -M -d /samba/users -s /usr/sbin/nologin -G sambashare sadmin</pre><p>The command above will also create a group sadmin and add the user to both sadmin and sambashare groups.</p><p>Set a password and enable the user:</p><pre>sudo smbpasswd -a sadminsudo smbpasswd -e sadmin</pre><p>4. Next, create the Users share directory:</p><pre>sudo mkdir /samba/users</pre><p>Set the directory ownership to user sadmin and group sambashare:</p><pre>sudo chown sadmin:sambashare /samba/users</pre><p>This directory will be accessible by all authenticated users. The following chmod command gives write/read access to members of the sambashare group in the /samba/users directory:</p><pre>sudo chmod 2770 /samba/users</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*jFs059RA7WJ64X1__88EZQ.png" /></figure><p><strong>f.</strong> <strong>Configuring Samba Shares</strong></p><p><strong>Open the Samba configuration file and append the sections:</strong></p><p>sudo nano /etc/samba/smb.conf</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*TZr3Qoxsq5TwwTVovye0VA.png" /></figure><p>The options have the following meanings:</p><ul><li>[users] and [hallowen] — The names of the shares that you will use when logging in.</li><li>path — The path to the share.</li><li>browseable — Whether the share should be listed in the available shares list. By setting to no other users will not be able to see the share.</li><li>read only — Whether the users specified in the valid users list are able to write to this share.</li><li>force create mode — Sets the permissions for the newly created files in this share.</li><li>force directory mode — Sets the permissions for the newly created directories in this share.</li><li>valid users — A list of users and groups that are allowed to access the share. Groups are prefixed with the @ symbol.</li></ul><p>For more information about available options see the Samba configuration file documentation page.</p><p>Once done, restart the Samba services with:</p><p>sudo systemctl restart smbdsudo systemctl restart nmbd</p><p>In the following sections, we will show you how to connect to a Samba share from Linux, macOS and Windows clients</p><p><strong>g.</strong> <strong>Using the smbclient client</strong></p><h3>Using the smbclient client</h3><p>smbclient is a tool that allows you to access Samba from the command line. The smbclient package is not pre-installed on most Linux distros so you will need to install it with your distribution package manager.</p><p>To install smbclient on Ubuntu and Debian run:</p><pre>sudo apt install smbclient</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*w_c31gxfxdKqTNdI4qAvlA.png" /></figure><p>The syntax to access a Samba share is as follows:</p><pre>smbclient //samba_hostname_or_server_ip/share_name -U username</pre><p>For example to connect to a share named hallowen on a Samba server with IP address 127.0.0.1/hallowen as user hallowen you would run:</p><pre>smbclient //127.0.0.1/hallowen -U hallowen</pre><p>You will be prompted to enter the user password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*AbWUWr4Mi0-kcNx1Ea4Cpw.png" /></figure><p><strong>h.</strong> <strong>Mounting the Samba shared</strong></p><p>1. To <a href="https://linuxize.com/post/how-to-mount-and-unmount-file-systems-in-linux/">mount</a> a Samba share on Linux first you need to instal the cifs-utils package.</p><p>On Ubuntu and Debian run:</p><pre>sudo apt install cifs-utils</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*IQ9BjNn2SoUHVMqKh_IsHw.png" /></figure><pre>sudo mkdir /mnt/smbmount</pre><p>2. Mount the share using the following command:</p><pre>sudo mount -t cifs -o username=username //samba_hostname_or_server_ip/sharename /mnt/smbmount</pre><p>3. For example to mount a share named hallowen on a Samba server with IP address 127.0.0.1 as user hallowen to the /mnt/smbmount mount point you would run:</p><pre>sudo mount -t cifs -o username=hallowen //127.0.0.1/hallowen /mnt/smbmount</pre><p>You will be prompted to enter the user password.</p><p>For More details you can follow this link, i learn from this link :</p><p><a href="https://linuxize.com/post/how-to-install-and-configure-samba-on-ubuntu-18-04/">How to Install and Configure Samba on Ubuntu 18.04</a></p><p>Thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15afe0fba4ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Panduan Menjalankan Docker dan membuat Docker image]]></title>
            <link>https://medium.com/@wennyrubyjane/panduan-menjalankan-docker-dan-membuat-docker-image-6b5174350b34?source=rss-81bde2fb21cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b5174350b34</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[linux-ubuntu]]></category>
            <category><![CDATA[docker-image]]></category>
            <category><![CDATA[docker-linux]]></category>
            <category><![CDATA[docker-pemula]]></category>
            <dc:creator><![CDATA[Wenny Prastiwi]]></dc:creator>
            <pubDate>Sun, 03 May 2020 07:09:55 GMT</pubDate>
            <atom:updated>2020-05-03T07:09:55.037Z</atom:updated>
            <content:encoded><![CDATA[<p>Karena saya sudah menginstall docker sebelum ini dan untuk dokumentasi nya hilang maka saya akan berikan langsung gambarnya status cek docker yang sudah saya install pada linux ubuntu saya.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*pFd85OYjbD_6PQc3_AcQBg.png" /></figure><p><strong>Cek List Docker Container</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*4q4q0PCHyfUKIt7-M3EnXQ.png" /></figure><p><strong>Membuat container ada du acara yaitu dengan port dan tanpa port.</strong></p><ol><li><strong>Create Docker Container tanpa port</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*XKAAWibT_09u3b4Mh5F_Rg.png" /></figure><p>2. <strong>Create Docker Container dengan Port</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*duIO0VVgvNjW6B56ZTuyvQ.png" /></figure><ul><li><strong>Menjalankan container</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*snFzkwXj1FJD1XanAxlq8w.png" /></figure><p><strong>Menggunakan image dari docker hub</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*AF8SAuyXEV2IFxcjLTwOJw.png" /></figure><ul><li><strong>Docker Image</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*WKJOrsha272D1RtehqnP6g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b5174350b34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apa Itu Docker?]]></title>
            <link>https://medium.com/@wennyrubyjane/apa-itu-docker-bf1560e8b492?source=rss-81bde2fb21cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf1560e8b492</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[mengenal-docker]]></category>
            <category><![CDATA[laradock]]></category>
            <dc:creator><![CDATA[Wenny Prastiwi]]></dc:creator>
            <pubDate>Sat, 02 May 2020 06:06:10 GMT</pubDate>
            <atom:updated>2020-05-02T06:06:10.655Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Docker</strong></p><p>Docker adalah sebuah platfom atau software yang digunakan untuk menjalankan docker images sehingga menjadi sebuah wadah/container</p><p><strong>Docker Image</strong></p><p>Docker Image adalah paket executable yang berisi segala sesuatu yang dibutuhkan untuk menjalankan aplikasi, libraries, environment, dsb. Docker image biasanya tersimpan disebuah registry seperti di <a href="https://hub.docker.com/">https://hub.docker.com</a> . Contoh docker image yang ada di docker hub adalah nginx atau apache. Kita bisa mendapatkan docker image ini dengan cara pull ke server kita.</p><p>Contoh : kita ingin membuat aplikasi website menggunakan nginx atau apache, maka anda tidak perlu lagi menginstall Operating System (misal: CentOS 7) kemudian menginstall nginx atau apache. Karena dengan docker image, semua yang anda butuhkan sudah ada di docker image tersebut dan tinggal di jalankan.</p><p><strong>Container</strong></p><p>Sedangkan Container adalah wadah yang terbentuk ketika Docker Images dijalankan. Ketika anda sudah mendapatkan docker image, jika anda tidak menjalankan docker image tersebut, maka tidak akan terbentuk container.</p><p>Didalam satu server, anda dapat menjalankan banyak container. Misalnya anda menjalankan container untuk nginx, container untuk mysql, container untuk golang. Meskipun saling terpisah, tetapi container ini bisa saling berhubungan satu sama lain. Inilah yang disebut microservice.</p><p><strong>Berikut adalah beberapa manfaat untuk IT Management/Decision Maker:</strong></p><p>1. Konfigurasi Yang Simple</p><p>Pada virtualisasi docker, ketika kita membutuhkan sebuah VM docker, hanya dengan menjalankan satu baris perintah untuk menciptakan sebuah container yang dapat menjalankan images, images tersebut berisi sistem operasi yang dapat langsung digunakan, images tersebut pun dapat di download dari repository docker. Hal inilah yang membuat konfigurasi VM pada docker sangan simple dan dapat menghemat waktu instalasi sistem operasi.</p><p>2. Aplikasi Yang Terisolasi</p><p>Mungkin ada beberapa alasan yang membuat para developer beralih menggunakan docker, yaitu karena keamananya. Docker itu menggunakan sistem aplikasi yang terisolasi. Jika diibaratkan, container — container pada docker seperti sebuah komputer yang berada dibelakang router yang di NAT, sehingga container tersebut tidak langsung terhubung ke jaringan luar. Antar container pada docker juga dapat berjalan tanpa menggangu container lainnya. Hal inilah yang membuat docker sebagai virtualisasi yang handal.</p><p>3. Optimalisasi Resource</p><p>Docker sebagai alat virtualisasi sengat mengunggulkan efisiensi penggunaan resource hardware. Penggunaan resource hardware pada docker sangat efisien, dan tidak memakan banyak resource, sehingga ketika menjalankan banyak container pada sebuah host docker, host masih mampu menanganinya. Container yang berjalan pada satu mesin host yang sama akan berbagi pakai kernel sistem operasi, semuanya berjalan secara instant dan menggunakan lebih sedikit RAM. Images dibangun dari beberapa layer/lapisan file sistem dan berbagi file sistem yang umum, sehingga penggunaan harddisk dan proses download image lebih singkat dan efisien.</p><p>4. File System Protection</p><p>Docker menggunakan sistem proteksi file read-only mount point dan copy in write dengan tingkatan keamanan dari yang rendah hingga keamanan yang sangat tinggi. Dengan pemasangan sistem file sebagai Read-Only, kernel linux dapat dipertahankan dan pengguna pun aman tanpa resiko kegagalan file system.</p><p>5. Muti Cloud Platform</p><p>Salah satu manfaat terbesar dari docker yaitu portabiltas. Dalam beberapa tahun terakhir, semua penyedia layanan cloud seperti Amazon, Web Service, Google Compute Platform, Digital Ocean, Linode, Vultr, Rackspace dan lain — lain mulai mengadopsi docker sebagai platform virtualisasi, Container docker dapat dijalankan dalam sebuah mesin Amazon EC2, Google Compute Engine maupun pada berbagai cloud provider dengan sistem operasi linux yang beragam. Selain AWS dan GCP, Docker juga bekerja sangat baik dengan berbagai penyedia layanan laaS seperti Microsoft Azure, dan Openstack. Dengan berbagai alasan tersebut docker disebut sebagai Multi Cloud Platform yang sangat handal.</p><p>Konsultan IT Indonesia mulai memperkenalkan Efisiensi yang di dapat dari Docker. Dari sebuah hasil pengujian, bila dibandingkan denganVM Virtualbox, ketika 5 buah perangkat mesin virtual berbasis teks dengan memori 192 MB, Virtualbox memerlukan memori berkapasitas lebih dari 1 GB. Berbeda dengan Docker yang hanya memerlukan memori berkapasitas 27 MB untuk menjalankan 10 container berbasis teks. Tentu selisih kebutuhan memorinya sangat besar, bukan? Pengujian ini dilakukan terhadap mesin virtual yang baru saja di fresh instal.</p><p>Bagaimana dengan perkembangan dan eksistensi docker saat ini? Dalam praktiknya, penggunaan docker kian hari kian meluas. Hal ini dibuktikan dengan perkembangan docker yang cepat dan bahkan kini menjadi standard tool dengan basis container. Docker saat ini juga banyak diintegrasikan dengan project PaaS, misalnya saja seperti Deis, Dokku, Vagrant, dan Flynn. Sejumlah server farm terbesar saat ini didukung dengan docker guna tingkatkan performa. Pengembangan web-web besar seperti Twitter, Google, dan sejumlah platoform provider seperti dotCloud dan Heroku juga didukung teknologi container ini, bahkan pada skala ribuan atau jutaan container yang beroperasi secara paralel.</p><p>Docker juga menjadi salah satu jenis perangkat canggih yang mampu memaketkan aplikasi ke dalam container virtual secara independen. Dengan menggunakan deckor, pengguna akan jauh lebih fleksibel dalam menjalankan sebuah aplikasi dimanapun (dalam cloud pribadi, cloud umum, bare metal, dan lain sebagainya).</p><p>Dari keseluruhan informasi di atas, terlihat jelas bahwa Docker tentunya telah memberikan kontribusi besar di bidang IT, khususnya bagi para pengguna container virtual di dunia. Dan pastinya ada banyak sekali manfaat dari penggunaan dokcer ini. Untuk memenuhi kebutuhan masyarakat awam akan pengetahuan tentang docker, kini banyak konsultan IT yang menawarkan jasa konsultasi seputar docker kepada masyarakat yang berminat untuk memahami dan memanfaatkan docker untuk mendukung aktivitas sehari-hari mereka yang ada kaitanya dengan bidang informatika.</p><p><strong>Kesimpulan:</strong></p><p>Docker dapat meng-optimalisasi infrastruktur IT perusahaan anda dan juga meningkatkan kinerja pada programer serta sistem administrator. Dengan sistem kontainer, seluruh pekerjaan pebuatan aplikasi, modul, monitoring, serta manajemen infrastruktur dapat lebih cepat, efisien dan lebih aman.Dalam hubungannya dengan komputasi awan, manfaat yang disebutkan di atas menunjukkan bagaimana Docker adalah sebuah platform open source yang efektif.</p><p>Perusahaan di Indonesia semakin banyak yang mengadopsi Docker, terutama para penyedia jasa teknologi informasi dan perusahaan besar yang memiliki data center sendiri. Demikian diharapkan untuk instansi pemerintahan, keunggulan docker merupakan solusi penghematan anggaran belanja negara. Organisasi selalu mengevaluasi basis platform terhadap kemampuan mereka untuk memberikan fleksibilitas, kebebasan dan mengatasi siklus hidup aplikasi, baik untuk pengembangan maupun tim operasional TI.</p><p><strong>cara menggunakan docker ya, berikut caranya :</strong></p><p>1. Cek docker version</p><p>docker version</p><p>2. cek apakah docker sudah berjalan dengan benar</p><p>docker run alo</p><p>Docker akan mencari image image alo di mesin lokal, jika tidak ada, maka Docker akan cek dari sumber online yang defaultnya adalah docker hub.</p><p>3. Lihat image yang sudah di download</p><p>docker image ls</p><p>4. Menghapus image</p><p>docker image rm [nama/kode image]</p><p>5. Cek semua Container yang dijalankan di mesin</p><p>docker container ls -all</p><p>6. build image</p><p>docker build</p><p>7. build sekaligus beri tag pada image</p><p>docker build -t [url registry]</p><p>8. upload image</p><p>docker push [url registry image bersangkutan yang ditag]</p><p>Jadi si Laradock ini bisa dibilang ya mirip kaya Laravel Homestead. Karena Laradock ini punya software daleman yang mirip sama Homestead.</p><p>1. Redis</p><p>2. MySQL</p><p>3. MariaDB</p><p>4. Postgre SQL</p><p>5. Jenkins</p><p>6. RabbitMQ</p><p>7. Laravel Echo</p><p>8. Mongo (Bahkan ada MongoDB)</p><p>9. Mailu</p><p>10. Gitlab</p><p>11. Beanstalk</p><p>12. MsSQL</p><p>13. Apache</p><p>14. Nginx</p><p>Nah kalo udah kelar semuanya, berarti kita udah punya</p><p>1. MySQL</p><p>2. Redis</p><p>3. Beanstalk</p><p>Ketiga tools ini bisa dipake di Project Laravel kalian.</p><p>Sekarang saatnya masuk kedalam si container, dengan cara</p><p>sudo docker-compose exec — user=laradock workspace bash</p><p>Nah kalo udah berhasil kalian akan masuk kedalam sistem seperti ini.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*vn-Dy2qAaj1t2h0QEnMtMA.png" /></figure><p>Kalo udah masuk berarti sekarang kita tinggal ngebuat projek aja nih. Pastiin internet lancar ya! Langsung aja jalanin command dibawah.</p><p>composer create-project laravel/laravel blog — prefer-dist</p><p>Otomatis akan mendownload Laravel 5.7 (Terbaru) karena Laradock ini defaultnya menggunakan PHP 7.2, apabila kamu mau ubah tinggal ubah aja di .env dalam folder Laradock.</p><p>Kalo udah selesai saatnya kita nyetting dulu nih konfigurasi si projek baru kita.</p><p>Masih didalam si container laradock, silahkan masuk ke folder laradock/nginx/sites</p><p>cd laradock/nginx/sites</p><p>Apabila udah masuk didalamnya kalian bisa tulis command</p><p>ls -l</p><p>Untuk cek ada file apa saja didalamnya, nah tentunya kalian juga akan melihat file .conf yang sudah ada didalamnya. Beruntungnya Laradock baik bgt udah nyiapin configuration laravel buat kita.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*3PmZPBwHvtvIxCkWI-aWVA.png" /></figure><p>Caranya gampang banget, tinggal copy file laravel.conf.example ke blog.conf</p><p>cp laravel.conf.example blog.conf</p><p>Nah akan terbuat file blog.conf, setelah itu edit file blog.conf dengan cara</p><p>nano blog.conf</p><p>Maka akan muncul settingan lengkap khas NGINX untuk ngatur lokasi dari project kita. Emang agak ribet sih dibanding Homestead, tapi lumayan loh nambah insight biar pas disuruh nginstall pake NGINX sendiri gak bingung hehehe. Jadi developer kan emang harus belajar hal baru setiap harinya ^^.</p><p>Lanjot! Silahkan ubah dibagian ini aja.</p><p>server_name laravel.test;<br> root /var/www/laravel/public;</p><p>menjadi</p><p>server_name blog.test;<br> root /var/www/blog/public;</p><p>Nah kalo udah sip banget, kita bisa keluar dari container dengan menuliskan command</p><p>exit</p><p>Kalo udah berarti kita harus ngedit file hosts di OS kita, untuk windows silahkan pergi ke</p><p>C:\windows\system32\drivers\etc\hosts</p><p>untuk linux</p><p>cd /etc/<br> sudo nano hosts</p><p>Tambahkan baris dibawah ini.</p><p>127.0.0.1 blog.test</p><p>Nah sampai juga di penghujung artikel, karena kita udah ngubah konfigurasi di nginx, maka kita perlu ngerestart si nginx untuk ngebaca konfigurasi baru kita. Silahkan masukkan command dibawah.</p><p>docker-compose restart nginx</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*wIOlRtjjoY_yEhs7nm4h5Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf1560e8b492" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IDS (Intrusion Detection System)with using Snort in Ubuntu 16.04]]></title>
            <link>https://medium.com/@wennyrubyjane/ids-intrusion-detection-system-with-using-snort-in-ubuntu-16-04-3a5862fed91f?source=rss-81bde2fb21cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a5862fed91f</guid>
            <category><![CDATA[id]]></category>
            <category><![CDATA[snort]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[snort-ids-ubuntu]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Wenny Prastiwi]]></dc:creator>
            <pubDate>Sat, 02 May 2020 05:29:38 GMT</pubDate>
            <atom:updated>2020-05-02T05:29:38.467Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>1.</strong> <strong>install snort intrusion detection system on Ubuntu</strong></p><p>Snort is a signature based intrusion detection system, it either drop or accept the packets coming on a certain interface depending on the rules you have used. In a signature based intrusion detection system packets headers and their payloads are matched against specific predefined rules/strings to see if they contain a malicious content. Snort can run in two modes:</p><ul><li>Packet Sniffing</li></ul><p>· This mode have no special use, all you can do is just look at the traffic coming at the interface.</p><ul><li>Network Intrusion detection</li></ul><p>· This mode is the actual use of snort, in this mode snort monitor the traffic and block any unwanted traffic using the rules.</p><h3>Step 1: Prepare to install</h3><p>Before actually installing snort, their are some of its per-requisites, you can run following commands to install all the required per-requisites.</p><p>sudo apt-get update</p><p>sudo apt-get dist-upgrade</p><p>Reboot after running the above commands.</p><p>sudo apt-get install build-essential</p><p>sudo apt-get install -y libpcap-dev libpcre3-dev libdumbnet-dev</p><p>sudo apt-get install -y zlib1g-dev liblzma-dev openssl libssl-dev</p><p>sudo apt-get bison flex</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*49-XpY_BuOcsKSPa9OZTLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*jbRKx2LALt0wHgG5PRcw3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*CKLJs8TKkpWSdUWsbrWKtQ.png" /></figure><p>After running these commands you are ready to install snort</p><h3>Step 2: Install Daq</h3><p>Next step is to install daq (snort require daq to run), daq source code is available on their site for download.</p><p>You can create a separate folder for all your downloads mkdir ~/snort (Just to keep all downloads at one place), you need to download and extract daq.</p><p>cd ~/snort</p><p>wget <a href="https://www.snort.org/downloads/snort/daq-2.0.6.tar.gz">https://www.snort.org/downloads/snort/daq-2.0.6.tar.gz</a></p><p>tar -xvzf daq-2.0.6.tar.gz</p><p>cd daq-2.0.6</p><p>./configure</p><p>make</p><p>sudo make install</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*6I9jZ8nhS-4q8QhufL0ifQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*SPGSQbnCFEM9nEB5k6SdYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*JbHYV7oteBSJ_ZP9AGC0tQ.png" /></figure><p>Commands above will download the daq source code and then install it.</p><h3>Step 3: Install Snort</h3><p>You are now ready to download snort source code.</p><p>cd ~/snort</p><p>wget <a href="https://www.snort.org/downloads/snort/snort-2.9.8.3.tar.gz">https://www.snort.org/downloads/snort/snort-2.9.8.3.tar.gz</a></p><p>tar -xvzf snort-2.9.8.3.tar.gz</p><p>cd snort-2.9.8.3</p><p>./configure</p><p>make</p><p>sudo make install</p><p>sudo ldconfig</p><p>sudo ln -s /usr/local/bin/snort /usr/sbin/snort</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*Otxc-ywQn_iTMV21gYhIfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*SPBC2lm7LOB-EXeML1yhdw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*Jv5QaS_1qkm4fK9E_oXerA.png" /></figure><p>Snort is now installed on your system, but you need to configure snort to make use of it. To make sure snort is installed on your system, run snort -V , if you see the following output, then you are on right track.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*MF2l3D442v3lGrzgqDO1qA.png" /></figure><h3>Step 4: Create some required directories</h3><p>Snort need some folder and files to place its logs,errors and rules files, you can create a bash script and run these commands at once or you can just execute them one by one.</p><p>sudo groupadd snort</p><p>sudo useradd snort -r -s /sbin/nologin -c SNORT_IDS -g snort</p><p>sudo mkdir /etc/snort</p><p>sudo mkdir /etc/snort/rules</p><p>sudo mkdir /etc/snort/rules/iplists</p><p>sudo mkdir /etc/snort/preproc_rules</p><p>sudo mkdir /usr/local/lib/snort_dynamicrules</p><p>sudo mkdir /etc/snort/so_rules</p><p>sudo touch /etc/snort/rules/iplists/black_list.rules</p><p>sudo touch /etc/snort/rules/iplists/white_list.rules</p><p>sudo touch /etc/snort/rules/local.rules</p><p>sudo touch /etc/snort/sid-msg.map</p><p>sudo mkdir /var/log/snort</p><p>sudo mkdir /var/log/snort/archived_logs</p><p>sudo chmod -R 5775 /etc/snort</p><p>sudo chmod -R 5775 /var/log/snort</p><p>sudo chmod -R 5775 /var/log/snort/archived_logs</p><p>sudo chmod -R 5775 /etc/snort/so_rules</p><p>sudo chmod -R 5775 /usr/local/lib/snort_dynamicrules</p><p>sudo chown -R snort:snort /etc/snort</p><p>sudo chown -R snort:snort /var/log/snort</p><p>sudo chown -R snort:snort /usr/local/lib/snort_dynamicrules</p><p>cd ~/snort/snort-2.9.8.3/etc/</p><p>sudo cp *.conf* /etc/snort</p><p>sudo cp *.map /etc/snort</p><p>sudo cp *.dtd /etc/snort</p><p>cd ~/snort/snort-2.9.8.3/src/dynamic-preprocessors/build/usr/local/lib/snort_dynamicpreprocessor/</p><p>sudo cp * /usr/local/lib/snort_dynamicpreprocessor/</p><p>Please do not ignore these commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*5zpphtqIQdR2fxFJUP-AhQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*NFiW4uJiRR37zKz6bFi8BA.png" /></figure><h3>Step 5: Editing snort configuration files</h3><p>We need to modify some configuration files to run snort in network intrusion detection mode, first comment out all the rules in snort configuration file using</p><p>sudo sed -i “s/include \$RULE\_PATH/#include \$RULE\_PATH/” /etc/snort/snort.conf</p><p>Find your network details using ifconfig</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*FseU40xEV-mTeOa4Q9IUcQ.png" /></figure><p>Here “ens” is the interface I am capturing traffic on, my mask is 255.255.255.0, so my network is : 192.168.122.0/24</p><p>You need to find this details to put in snort.conf file.</p><p>sudo vi +45 /etc/snort/snort.conf</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*mccYub3PuPsRNOsU8ybQeQ.png" /></figure><p>This command will open the snort.conf file and move you to 45th line, make sure your following line look like this</p><p><em>ipvar HOME_NET 192.168.122.0/24</em></p><p>The underlined part should be your network details. (Adjust appropriately).</p><p>#open file and move to line 104</p><p>sudo vi +104 /etc/snort/snort.conf</p><p>Following the line at 104, make sure your paths look like this.</p><p><em>var RULE_PATH /etc/snort/rules</em><br> <em>var SO_RULE_PATH /etc/snort/so_rules</em><br> <em>var PREPROC_RULE_PATH /etc/snort/preproc_rules</em><br> <em>var WHITE_LIST_PATH /etc/snort/rules/iplists</em><br> <em>var BLACK_LIST_PATH /etc/snort/rules/iplists</em></p><p>#open file and move to line 545</p><p>sudo vi +545 /etc/snort/snort.conf</p><p>UN-comment the 545th line and make it look like this</p><p><em>include $RULE_PATH/local.rules</em></p><h3>Step 7: Test Snort</h3><p>As a final step we need to make sure that snort is running in network intrusion detection mode, for that we need to insert a rule in our “/etc/snort/rules/local.rules” file.</p><p>Open this file and paste the following rule</p><p>alert ip any any -&amp;gt; any any (msg:”ATTACK RESPONSES id check returned root”; content: “uid=0(root)”; classtype:bad-unknown;</p><p>sid:498; rev:3;)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*JDaLFYOkaGN7mzNJ2DnqNQ.png" /></figure><p>Now run snort using</p><p>sudo snort -A console -q -u snort -g snort -c /etc/snort/snort.conf -i ens3</p><p>Note : It will start listening on interface ens3, make sure you replace it with your interface name. After running snort, open another ssh connection to the server and run this command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*hdbiUbz-CxuuemmAAk4isA.png" /></figure><p>ping -b 255.255.255.255 -p “7569643d3028726f6f74290a” -c3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*LllMVHgKPKRrBF_KuJjVug.png" /></figure><p>You should now be able to see alerts on ssh where you have started snort, it should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*ylVfxAqx-rNduW2NHgTl_A.png" /></figure><h3>2. Using Snort Intrusion Detection System to Protect Servers and Networks</h3><h3>Getting started with Snort’s sniffer mode</h3><p>The sniffer mode reads the network’s traffic and displays the translation for a human viewer.<br> In order to test it type:</p><p># snort -v</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*Jq4dbVQ72GbMELxVwefo5Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*R7pzM2-lc7vbgsFpXxZkmQ.png" /></figure><p>This option should not be used normally, displaying the traffic requires too much resources, and it is applied only to show the command’s output.</p><p>In the terminal we can see headers of traffic detected by Snort between the pc, the router and internet. Snort also reports the lack of policies to react to the detected traffic.<br> If we want Snort to show the data too type:</p><p><em># </em>snort -vd</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*9NpqYkcBeeXpF2DHbakauw.png" /></figure><p><em># </em>snort -v -d -e</p><p><strong><em>Just like the “v” parameter, “e” represents a waste of resources too, it’s usage should be avoided for production.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*AaKB3XQ_yyx9Z-q4rq3a9A.png" /></figure><h3>Getting started with Snort’s Packet Logger mode</h3><p>In order to save Snort’s reports we need to specify to Snort a log directory, if we want Snort to show only headers and log the traffic on the disk type:</p><p><em># mkdir snortlogs</em><br> <em># snort -d -l snortlogs</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*sQgsLeylvrysa8Tqf5fz8w.png" /></figure><p>The log will be saved inside snortlogs directory</p><h3>Getting started with Snort’s Network Intrusion Detection System (NIDS) mode</h3><p>With the following command Snort reads the rules specified in the file /etc/snort/snort.conf to filter the traffic properly, avoiding reading the whole traffic and focusing on specific incidents<br> referred in the snort.conf through customizable rules.</p><p>The parameter “-A console” instructs snort to alert in the terminal.</p><p><em># </em>snort -d -l snortlog -h 10.0.0.0/24 -A console -c snort.conf</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*R7pzM2-lc7vbgsFpXxZkmQ.png" /></figure><h3>3. Installation &amp; Configuration Of Intrusion Detection With Snort, MySQL On Ubuntu 16.04 Using SPM</h3><h3>Configure Snort</h3><p>Configuration file <em>snort.conf</em> needs to be modified to suit individual needs.</p><p>Open <em>/etc/snort/snort.conf</em> with text editor (nano, vi, vim, etc.).</p><pre><em># vim /etc/snort/snort.conf</em></pre><p>Change <em>var HOME_NET any</em> to <em>var HOME_NET 192.168.1.0/24</em> (your home network may differ from <em>192.168.1.0</em>). In case you have more than one network to monitor you should enter them as follows <em>var HOME_NET [192.168.1.0/24,10.10.1.0/24]</em>. Change <em>var EXTERNAL_NET any</em> to <em>var EXTERNAL_NET !$HOME_NET</em> (this is stating everything except <em>HOME_NET</em> is external).</p><p>Change <em>var RULE_PATH ../rules</em> to <em>var RULE_PATH /etc/snort/rules</em>. Scroll down the list to the section with <em># output database: log, mysql, user=</em>, remove the <em>#</em> from in front of this line.</p><p>Example: <em>output database: log, mysql, user=&lt;your_username&gt; password=&lt;your_password&gt; dbname=snort host=localhost</em> (see above when new user was created).</p><p>Make note of the username, password, and dbname. You will need this information when we set up the MySQL db. Save and quit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*xIKlPDnp7-JVPYOHjk5Bpw.png" /></figure><h3>Setup the snort and archive MySQL databases</h3><h4>1.1 MySQL setup</h4><p>Log into the MySQL server.</p><pre><em># mysql -u root -p</em></pre><p>Sometimes there is no password set so just hit enter.</p><p>If you get a failed logon, try the above command again and enter <em>YOUR_PASSWORD</em>.</p><p>If there is no password you need to create a password for the root account.</p><p>Note: Once you are in MySQL the <em>#</em> is now a <em>mysql&gt;</em></p><p><em>mysql&gt; create user &lt;your_username&gt;@localhost;<br> mysql&gt; SET PASSWORD FOR &lt;your_username&gt;r@localhost=PASSWORD(‘&lt;your_password&gt;’);<br> mysql&gt; SET PASSWORD FOR root@localhost=PASSWORD(‘&lt;your_password&gt;);</em></p><h4>1.2 Create Snort database</h4><p><em>mysql&gt; create database snort;<br> mysql&gt; grant INSERT,SELECT on root.* to snort@localhost;<br> mysql&gt; grant CREATE,INSERT,SELECT,DELETE,UPDATE on snort.* to &lt;your_username&gt;@localhost;<br> mysql&gt; grant CREATE,INSERT,SELECT,DELETE,UPDATE on snort.* to snort;</em></p><h4>1.3 Create Archive database</h4><p><em>mysql&gt; create database archive;<br> mysql&gt; grant CREATE,INSERT,SELECT,DELETE,UPDATE on archive.* to &lt;your_username&gt;@localhost;<br> mysql&gt; grant CREATE,INSERT,SELECT,DELETE,UPDATE on archive.* to archive;<br> mysql&gt; exit</em></p><h4>1.4 Create Tables in Snort and Archive databases</h4><p>We will use the snort schema for the layout of snort and archive databases.</p><p><em># cd /usr/share/doc/snort-mysql<br> # zcat create_mysql.gz | mysql –u &lt;your_username&gt; –h localhost –p snort<br> # zcat create_mysql.gz | mysql –u &lt;your_username&gt; –h localhost –p archive</em></p><h4>1.5 Confirm creation of databases and existence of newly created tables</h4><p>Logon to MySQL and check for databases we just created and tables inside of those databases. If everything was created successful you will see four (4) databases (mysql, test, snort and archive) in mysql databases and approximately 16 tables in each of the databases.</p><p><em># mysql -u root –p<br> mysql&gt; show databases;<br> mysql&gt; use snort;<br> mysql&gt; show tables;<br> mysql&gt; use archive;<br> mysql&gt; show tables;<br> mysql&gt; exit</em></p><h4>1.6 Test Snort</h4><p>In the terminal type:</p><pre><em># snort -c /etc/snort/snort.conf</em></pre><p>If everything went well you should see an ascii pig.</p><p>To end the test hit <em>ctrl + c</em>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a5862fed91f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tutorial Sederhana Menggunakan Git Pada Visual Studio Code]]></title>
            <link>https://medium.com/@wennyrubyjane/tutorial-sederhana-menggunakan-git-pada-visual-studio-code-a86a15789ba1?source=rss-81bde2fb21cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/a86a15789ba1</guid>
            <category><![CDATA[vc]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[git-pada-vscode]]></category>
            <category><![CDATA[visual-studio-code]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Wenny Prastiwi]]></dc:creator>
            <pubDate>Fri, 01 May 2020 16:13:26 GMT</pubDate>
            <atom:updated>2020-05-01T16:13:26.581Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>a.</strong> <strong>Project yang akan dijadikan Repository</strong></p><p>Pertama-tama, kita harus memiliki project yang akan dijadikan repository Git. Ini adalah project yang akan saya jadikan repository Git di VS Code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*h63mesxoOrbJ4mgxVgB2wg.png" /></figure><p><strong>b.</strong> <strong>Membuat Repository Git di Visual Studio Code dan bekerja dengan remote repository</strong></p><ol><li><strong>Cek status Git remote pada project, jika belum ada remote langsung kita initialize repository</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*0Zo-MMyn9PjsSCYrZnwE5A.png" /></figure><p><strong>2.</strong> <strong>Open Project sesudah di initialize repository</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*nwa6Zn2TvFlhT31A2KW4ZQ.png" /></figure><p><strong>3.</strong> <strong>Create New File .gitignore (untuk mengabaikan folder/file yang memang tidak akan dirubah/diperlukan didalam project)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*W3eIgCSlAdiNZeHnkY2r8w.png" /></figure><p><strong>4.</strong> <strong>“Stage All” untuk menyimpan semua perubahan dan memerge semua file dalam folder</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*j-s5T9Dt0vq-Ls1zak0NTQ.png" /></figure><p><strong>5.</strong> <strong>Berikan Commit pada Project</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/439/1*BG4z6v1aLaQQ4gySqq7F4A.png" /></figure><p><strong>6.</strong> <strong>Create Repository Github</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*DPmeyeccHH-qEj1Y_EkEVg.png" /></figure><p><strong>7.</strong> <strong>Add Git Remote dan Repository ke Visual Studio Code</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*l0xixnZyqAB52ODffjAQLA.png" /></figure><p><strong>8.</strong> <strong>“Refresh” setelah menambahkan remote git repository pada VSCODE</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*x3lLazbILve-PI5sRmnJJw.png" /></figure><p><strong>9.</strong> <strong>Push Repository ke Github</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*es8Iky_NeDR8V9AEKJvRIw.png" /></figure><p><strong>10.</strong> <strong>Masukkan Username dan password github karena menggunakan https jadi harus memasukkan username dan password github untuk terhubung.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*ZvZ9_PnBBK4gmuW11fST_Q.png" /></figure><p><strong>11.</strong> <strong>Cek hasil push github</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*8PMsnVI1iAETdzO1G-ZvHQ.png" /></figure><p><strong>a.</strong> <strong>Menyimpan Revisi</strong></p><p><strong>Untuk menyimpan revisi langsung “Sync” project</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*Slq_APcw4DuzN3rQ7DHw7Q.png" /></figure><p>Selesai.</p><p>Semua revisi sudah disimpan ke dalam Git. Hati-hati! Jangan sampai klik ikon Discard Changes, karena dapat menghapus apa yang sudah kamu ubah.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a86a15789ba1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VERSION CONTROL SYSTEM (VCS) in Ubuntu 16.04 GITHUB UNTUK PEMULA]]></title>
            <link>https://medium.com/@wennyrubyjane/version-control-system-vcs-in-ubuntu-16-04-github-untuk-pemula-b22f9282370?source=rss-81bde2fb21cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/b22f9282370</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[github-ubuntu]]></category>
            <category><![CDATA[version-control-system]]></category>
            <category><![CDATA[github-pemula]]></category>
            <dc:creator><![CDATA[Wenny Prastiwi]]></dc:creator>
            <pubDate>Thu, 30 Apr 2020 14:03:22 GMT</pubDate>
            <atom:updated>2020-04-30T14:03:22.025Z</atom:updated>
            <content:encoded><![CDATA[<ol><li><strong>GITHUB UNTUK PEMULA</strong></li></ol><p><strong>a.</strong> <strong>Membuat akun pada layanan github</strong></p><p>Buka website github, buat akun baru terlebih dahulu</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/439/1*zaSjHgclV5T7l7kqVrBgcA.png" /></figure><p><strong>b.</strong> <strong>Login Github akun</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*RJZG2yvrmpmW6jtToct3lQ.png" /></figure><p><strong>c.</strong> <strong>Membuat Repository Online</strong></p><p><strong>Create New Repository — 1</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*vOPw1et4J9WnHq0pze9rBw.png" /></figure><p><strong>Create New Repository — 2</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*8JOGhr3LEAHHE_4y6NZVSg.png" /></figure><p><strong>New Repository</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/365/1*WOeVf3j6-I28syVCnMySxw.png" /></figure><p><strong>d.</strong> <strong>Mengupload folder (repository local)</strong></p><p>buka saja folder project yang akan upload dengan perintah command line, atau jika belum terbiasa di command line (nanti belajar command line) buka saja folder tersebut menggunakan file exploler dan klik kanan “open terminal/cmder here/git bash here”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*aGGtH2ZAyWwzg9Agbvy2JA.png" /></figure><ol><li><strong>Git init</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*Og6EFXK2DwzXMcKHChvg3Q.png" /></figure><p><strong>2.</strong> <strong>Git add .</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*Rf13VtfPiuvBAUrtnNZVfQ.png" /></figure><p><strong>3.</strong> <strong>Git Commit</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*xpO52q_wRhcIpQeeAYZVdg.png" /></figure><p><strong>4.</strong> <strong>Git remote add origin https/ssh</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*N0NcfWVkcg3goySOVON9Bw.png" /></figure><p><strong>5.</strong> <strong>Git push origin master</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*ulYlnsrC4NaJXOj6MlxpXw.png" /></figure><p><strong>Keterangan perintah diatas seperti ini :</strong></p><p>- <strong>git init</strong></p><p>untuk meng-set folder yang digunakan tersebut sebagai repo local git. bisa di bilang ini instalasi git pertama kali</p><p>- <strong>git add “.” atau nama file</strong></p><p>untuk menambah file project yang mau di upload sebelum di commit, tanda titik setelah kata “add” pada perintah tersebut adalah keseluruhan file dan folder project tersebut, saat awal upload kalian bisa menggunakan perintah tersebut. <strong>Namun saat commit atau upload ke repository selanjutnya bisa menggunakan perintah add dengan “nama file” untuk memberikan status commit. </strong>Ini adalah contohnya apabila ingin menggunakan “git add” :</p><p>// mengupload keseluruhan file pada repo (hanya digunakan saat upload pertama saja)<br> <strong>git add .</strong>// mengupload file sesuai dengan nama file<br> <strong>git add index.html</strong>// mengupload file pada dalam folder<br> <strong>git add pages/index.html</strong></p><p>- <strong>git commit -m “isi commit”</strong></p><p>untuk menambah keterangan/status perubahaan saat upload ke repo online, untuk memasukkan keterangan tersebut setelah “git commit -m” ditambah tanda petik lalu komentar(lihat di list perintah untuk contoh).</p><p>- <strong>git remote add origin “link repo online”</strong></p><p>untuk meng-setting remote origin dari repo online, repo online bisa dilihat pada link yang tersedia di bagian atas Project dengan format “.git”, diperlukan ini untuk mengakses ke repo tersebut sehingga kita bisa melakukan apapun di repo online tersebut.</p><p>- <strong>git push origin “nama branch”</strong></p><p>Perintah untuk mengupload file yang ada pada repo lokal ke repo online yang diletakkan pada branch yang sudah tersedia di repo online. Setelah melakukan semua perintah silahkan cek di github, apakah file yg di upload sudah masuk atau tidak.</p><p><strong>File sudah terupload di Github</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*H7RRbTi8CDA2j-x45HOS5w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b22f9282370" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>