All posts by Sumarsono

Install dan Konfigurasi vsftpd di Ubuntu 14.04

FTP (File Transfer Protocol) merupakan salah satu metode untuk transfer file yang cukup populer. Misal, upload file ke web server, dsb.

Langkah-langkah:

1. Install vsftpd

sudo apt-get update

sudo apt-get -y install vsftpd

2. Konfigurasi vsftpd

sudo nano /etc/vsftpd.conf

Blok anonim untuk akses file via FTP,:

anonymous_enable=NO

Ijinkan local user untuk login:

local_enable=YES

Beri akses tulis ke local user:

write_enable=YES

‘chroot jailed’ untuk local user:

chroot_local_user=YES

Simpan (ctrl+o) dan Exit (ctrl+x).

Restart vsftpd:

sudo service vsftpd restart

3. Konfigurasi User’s Home Directory

Fix permissions untuk userftp‘s home directory:

chmod a-w /home/userftp/

Buat directory untuk upload file:

mkdir /home/userftp/files
chown user2:userftp /home/userftp/files/

Semoga bermanfaat.

Referensi:

[1] https://help.ubuntu.com/lts/serverguide/ftp-server.html
[2] https://www.liquidweb.com/kb/how-to-install-and-configure-vsftpd-on-ubuntu-14-04-lts/

Telegram – Messeging App Lintas Platform

Telegram merupakan sebuah aplikasi untuk perpesanan yang fokus pada kecepatan dan keamanan. Sebagai mana yang ditulis oleh developer Telegram. Telegram tersedia untuk berbagai platform, Android, iPhone, Windows Phone, Linux, Windows, Mac OS, dan web apps

Telegram is a messaging app with a focus on speed and security, it’s super fast, simple and free. You can use Telegram on all your devices at the same time — your messages sync seamlessly across any number of your phones, tablets or computers.

With Telegram, you can send messages, photos, videos and files of any type (doc, zip, mp3, etc), as well as create groups for up to 200 people or channels for broadcasting to unlimited audiences. You can write to your phone contacts and find people by their usernames. As a result, Telegram is like SMS and email combined — and can take care of all your personal or business messaging needs.

Unduh telegram disini.

Lxsplit – Tool untuk split dan menggabungkan file yang di split

“LXSplit is a simple tool for splitting files and joining the splitted files. It is fully compatible with the HJSplit utility. Splitting is done without compression.”

Cara Install:

sudo apt-get install lxsplit

Contoh Penggunaan

Split file menjadi 15MB per file

lxsplit -s test.mkv 15M

Join  file

lxsplit -j hugefile.mkv.0001

GUI:

sudo apt-get install usplitter

Record Ubuntu Terminal Output History In Text

We know that our Terminal (more precisely, our bash) saves commands history in .bash_history file. But we also know that our Terminal doesn’t save the output of every command. How if we want to do that and save output as a text file? For example, we want to analyze every command output or learn how apt-get works (like me). We can do it with a program named script from util-linux package from Linux Kernel Archive. The program is pre-installed in Ubuntu. I will show you how to use it and how to run it every time Terminal starts.

How To Use script


As I said above, script program is pre-installed in Ubuntu. To use it, just type script in Terminal. Then use your Terminal as usual. To stop script from recording, press Ctrl+D in Terminal. The record is saved in Home by default. The record is named typescript (yes, without any .txt extension) by default.
Continue reading Record Ubuntu Terminal Output History In Text

Boot Repair: Simple Tool to Repair Common Boot Problem

In order to load Linux operating system on computer, we need a bootloader. Bootloader also can help us to load to one of many operating systems on computer. We can choose to load Windows, Ubuntu, Fedora, and so on. GRUB is a default bootloader for many versions of Ubuntu. GRUB can crash and you might not be able to load any operating system. In case, you have common GRUB problem, please use Boot Repair to fix that.

Boot Repair is a simple and easy-to-use tool to fix common boot problem such as:

  • Repair the boot when an OS does not boot any more (eg. after installing Windows)
  • Repair the boot when access to GRUB and any OS is lost (eg. “GRUB rescue” error)
  • Allow to reinstall GRUB bootloader easily
  • Allow to generate a generic MBR compatible with Windows XP/Vista/Seven/Windows8

Continue reading Boot Repair: Simple Tool to Repair Common Boot Problem