Rabu, 22 Maret 2017

Cara Disable SElinux di Linux Centos 7



Setelah berhasil bypass SElinux di Linux Centos 7, saya akan melakukan disable permanent untuk SElinux nya.

Berikut cara disable nya :

1. Login sebagai root

2. Edit file /etc/sysconfig/selinux

3. Rubah isi baris SELINUX=permissive menjadi SELINUX=disabled



4. Reboot linux nya.


Semoga bermanfaat untuk pembaca semua.

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

Troubleshoot Linux Centos 7 Tidak Bisa Boot Setelah Mengganti Password Root (Bypass SElinux)



Jadi ceritanya setelah saya melakukan reset password root linux centos 7 yang saya tulis disini, kemudian jadi tidak bisa boot linux centos 7 nya dengan tuntas. Sempat panik juga karena ini server operasional.

Setelah saya cek ada error "Failed to load SElinux Policy", Masa gara-gara mengganti password root saja jadi keblock sama di SElinux sehingga tidak bisa booting dengan baik linux nya..

OK, berarti saya harus bypass dulu ini SElinux nya pada saat booting sebelum saya akan mematikan SElinux nya secara permanent

Cara untuk melakukan bypass SElinux pada saat boot adalah sebagai berikut :

1. Di boot grub menu pilih kernel yang ada tulisan (Core) nya



2. Ketik 'e' untuk melakukan edit pada menu option boot tersebut yang sudah dipilih

3. Ke baris linux kernel nya dan tambahkan “selinux=0”



4. Tekan CTRL-X dan ini akan boot ke Linux dengan normal dan bypass SElinux nya


Semoga bermanfaat untuk pembaca semua.

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

Cara Reset Password Root di Linux Centos 7



Kali ini saya ingin sedikit share cara reset password root di Linux Centos 7. Sebagai admin yang menghandle banyak server berbasis linux, tentunya kita terkadang lupa password root nya. cara reset password di linux centos 7 berbeda dengan linux centos 6 atau 5.

Berikut cara melakukan reset password root di linux centos 7 :

1. Di boot grub menu pilih kernel yang ada tulisan (Core) nya



2. Ketik 'e' untuk melakukan edit pada menu option boot tersebut yang sudah dipilih



3. Ke baris linux kernel nya dan ganti ro menjadi rw init=/sysroot/bin/sh



4. Sekarang tekan Control+x untuk masuk ke single user mode.



5. Akses ke system dengan perintah ini

# chroot /sysroot

6. Reset password root nya

# passwd root

7. Update selinux information nya

# touch /.autorelabel

8. Exit chroot

# exit

9. Reboot lagi OS nya

# reboot

10. Selesai, sekarang bisa masuk dengan password baru

Semoga bermanfaat untuk pembaca semua.

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

Selasa, 21 Maret 2017

Referensi Memilih Antivirus Terbaik Tahun 2017


Kali ini saya akan menginformasikan peringkat Antivirus yang ada di Januari 2017 dari gartner, agar bisa menjadi rujukan dalam menggunakan Antivirus untuk OS Windows.

Berikut peringkat nya :



Yang pasti saran dari saya, Pastikan kita menggunakan OS Windows dan Antivirus yang Legal dan Uptodate

Report nya bisa Download disini :
https://www.gartner.com/doc/reprints?id=1-3SA81IP&ct=170130&st=sb

Semoga bermanfaat untuk pembaca semua.

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

The Cisco 2017 Annual Cybersecurity Report




New threat intelligence and trend analysis in the Cisco 2017 Annual Cybersecurity Report explores the push-and-pull between adversaries and defenders. Understand the challenges you must overcome to close the windows bad actors work to exploit so you can reduce costly breaches. You’ll also learn how your peers assess the state of security in their organizations.

Report nya bisa Download disini : http://www.cisco.com/c/dam/m/digital/en_us/Cisco_Annual_Cybersecurity_Report_2017.pdf

Semoga bermanfaat untuk pembaca semua.

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

Senin, 13 Maret 2017

MobaXterm, Aplikasi Terminal Console Serba Guna untuk Windows


Untuk aplikasi di OS Windows kita terkadang perlu untuk melakukan console perangkat dan juga terkadang butuh terminal yang handal untuk melakukan remote keperangkat lain, misal nya seperti perangkat router, switch atau server.

Untuk itu ini ada aplikasi bagus dan tentunya free alias gratis yang bisa melakukan itu semua, bahkan lebih, aplikasi nya adalah MobaXterm

MobaXterm memiliki feature sebagai berikut :

1. Include Terminal
From this console window, you will be allowed to run the Unix commands you need: ls, cd, grep, awk, tail, cut, sed, wget, rsync, telnet, ssh, rlogin, rsh ... All the essential Unix tools are present. If you need a program that is not available in the basic MobaXterm file, you can download the free plugins



2. Sessions management
MobaXterm allows you to launch remote sessions. You can choose to create SSH, Telnet, Rlogin, RDP, VNC, XDMCP, FTP, SFTP or Serial sessions. Every session you start is automatically saved and displayed in the left sidebar.



3. Graphical SFTP browser
When you log to a remote server using SSH, a graphical SFTP browser pops up on in the left sidebar. It allows you to drag and drop files directly from/to the remote server using a secure SFTP connection.



4. X11 server
When you run a SSH, TELNET or RLOGIN/RSH session you will be able to display your remote applications directly on your local Windows PC. In a SSH session, there is no need to set the "DISPLAY" variable as MobaXterm uses X11-forwarding in order to ease and secure your work.



5. Enhanced X extensions
The embedded X server based on X.org provides the latest features available in recent X server implementations: extensions such as OpenGL, Composite or Randr are included. Xdmcp protocol is also supported.



6. Multi-execution
Write once, execute everywhere: this tool allows you to execute the same commands on many different servers at the same time.



7. Embedded servers
MobaXterm allows you to start network daemons for remote access. No extra tool or runtime is needed in order to use these daemons.



8. Embedded tools
MobaXterm brings some useful tools for sysadmins, developers, webmasters and all users who need to work efficiently with their computer.



9. Remote Unix desktop (XDMCP)
Thanks to MobaXterm you can work on your remote Solaris desktop as if you were working locally on your Windows computer using the XDMCP protocol.



10. Remote Windows desktop (RDP)
Take control of your remote Windows computers/servers using the RDP protocol. Many RDP configuration settings are available in the session manager.



11. SSH gateway
In ssh, telnet, RDP, VNC sessions, you can select a "SSH-gateway" (a.k.a. "jump host") in order to tell MobaXterm to connect first to a SSH server before connecting to the end-server you want to reach in the end. This allow you to reach some servers behind a firewall and to secure your connection.



12. SSH tunnels (port forwarding)
The graphical SSH tunnels manager allows you to create your SSH tunnels using an intuitive graphical tool.



13. MobApt package manager
MobaXterm package manager (MobApt / apt-get) allows you to download and use much more Unix tools directly into MobaXterm terminal.



14. Text Editor
When you connect to a remote server using SSH, you will be able to edit remote files directly using the embedded text editor "MobaTextEditor" by just double-clicking on them!



15. Macros support
You can record macros in MobaXterm terminal: everything you type in the terminal will be recorded in order to replay it later on other servers.



16. Passwords management
MobaXterm is able to save your session passwords and to keep them secure by using a "Master password".



17. Syntax highlighting in terminal
MobaXterm embedded terminal can highlight syntax or use coloration for keywords, even if you are connected to a remote server which does not support colors. This is useful especially when analyzing log files, editing code or trying to detect important keywords. You can even build your own syntax definitions easily.




Wow, lengkap sekali, bagus ini untuk seorang admin IT, aplikas ini bisa di download di :

http://mobaxterm.mobatek.net/download.html

Kita juga bisa melihat demo online nya dulu dialamat :

http://mobaxterm.mobatek.net/demo.html

Referensi :
- http://mobaxterm.mobatek.net/features.html


Semoga bermanfaat untuk pembaca semua.

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

Cara Install Bash Ubuntu di Windows 10



Ini bukan mesin virtual, atau perangkat lunak Linux yang dikompilasi untuk Windows (seperti Cygwin). Sebaliknya, ini merupakah Subsystem Linux untuk OS WIndows, yang didasarkan pada Project Astoria kerja Microsoft untuk menjalankan aplikasi Android pada Windows.

Microsoft telah bekerja sama dengan Canonical untuk menawarkan Ubuntu shell Bash penuh yang berjalan di atas subsistem windows ini. Secara teknis, ini bukan Linux sama sekali. Linux adalah mendasari kernel sistem operasi, dan yang tidak tersedia di sini. Sebaliknya, ini memungkinkan Anda untuk menjalankan Bash shell dan tepat binari yang sama Anda akan biasanya berjalan di Ubuntu Linux.

Ada beberapa keterbatasan di sini. Ini tidak akan bekerja dengan perangkat lunak grafis linux. Ini dimaksudkan untuk pengembang yang ingin menjalankan Linux utilitas baris perintah pada Windows. Aplikasi ini mendapatkan akses ke sistem file Windows, tetapi Anda tidak dapat menggunakan Bash perintah untuk mengotomatisasi program Windows, atau memulai Bash perintah dari Windows dengan baris perintah standar.

Mereka mendapatkan akses ke sistem file yang sama Windows, Tidak setiap baris perintah aplikasi akan bekerja, baik, karena fitur ini masih dalam versi beta. Dan perlu di ingat, bahwa bash ubuntu ini hanya untuk OS Windoes 10 64 bit saja.

Bagaimana cara install nya :

1. Masuk ke Menu Settings app dan pilih Update & Security > For Developers. Aktifkan “Developer Mode”  untuk enable Developer Mode.



2. Setelah itu buka Control Panel, klik “Programs,” dan klik “Turn Windows Features On or Off” dimenu Programs and Features. Kemudian Enable the “Windows Subsystem for Linux (Beta)” option yang ada dilist nya dan klik “OK.”



3. Restart OS Windows nya.

4. Setelah selesai restart OS, masuk ke aplikas bash yang ada di start menu



5. Disini akan dilakukan proses instalasi dan download bash linux ubuntu nya dan akan dimintakan pembuatan user dan password untuk bash ubuntu nya



6. Setelah selesai, kita bisa memanggil bash ubuntu dari menu start windows



Selesai.

Contoh perintah dasar yang bisa dilakukan adalah :

Change Directory: cd in Bash, cd or chdir in DOS
List Contents of Directory: ls in Bash, dir in DOS
Move or Rename a File: mv in Bash, move and rename in DOS
Copy a File: cp in Bash, copy in DOS
Delete a File: rm in Bash, del or erase in DOS
Create a Directory: mkdir in Bash, mkdir in DOS
Use a Text Editor: vi or nano in Bash, edit in DOS

Kita juga bisa menginstall paket-paket aplikasi yang ada di ubuntu seperti apache atau gcc :



Referensi :
- https://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/
- https://msdn.microsoft.com/en-us/commandline/wsl/install_guide

Semoga bermanfaat untuk pembaca semua.

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