Setting OpenVPN di debian Jessie

on Selasa, 19 Mei 2015

Setting OpenVPN di debian Jessie


PART 1: Get A Free OpenVPN Account
Please skip this part if you already have a VPN server set up.
1. Open up your web browser or just click the link to go to www.vpnbook.com.
2. Scroll down and click on the tab that says OpenVPN (as the picture shown below). Download one of the certificate bundles and also remember the username and password.
Download OpenVPN Account
3. Decompress the downloaded package. Create 3 new empty text files in the result folder and called them: ca.crtcertificate.crtkey.key.
openvpn key files
4. Open up one of the .ovpn files (All of the .ovpn files are the same, but with different configurations.) with gedit text editor, here I use vpnbook-us1-tcp443.ovpn as example.
5. In the .ovpn file, do following copy and paste things and finally save the changes.
Copy everything between tags and paste into ca.crt file.
Copy everything between tags and paste into certificate.crt file.
Copy everything between tags and paste into key.key file.
copy-keys
PART 2: Setup OpenVPN connection:
1. Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run the command below to install VPN plugin for network manager:
sudo apt-get install network-manager-openvpn-gnome
2. Go to system area network icon -> VPN Connections -> Configure VPN:
Configure VPN in Ubuntu 14.04
3. Click the Add button in next window and choose OpenVPN in drop-down menu as the connection type.
Add OpenVPN in Ubuntu 14.04
4. Now in VPN editing window, type in:
Connection name: type a name as you want
Gateway: the IP address in the vpnbook-us1-tcp443.ovpn file.
Type: Password with Certificates (TLS)
Username: see the picture under PART 1 -> step 2.
Password: see the picture under PART 1 -> step 2.
User Certificate: choose the certificate.crt file.
CA Certificate: choose the ca.crt file.
Private Certificate: choose the key.key file.
Private Key Password: leave it empty.
vpn-settings
5. NOTE: Advanced settings depend on the .ovpn file you selected in PART 1 (step 4), find the ip, port, cipher and so forth at the top of .ovpn file
Click the Advanced button. Check the boxes which say:
Use custom gateway port: 443
Use LZO data compression
Use a TCP connection
Under Security tab, set Cipher to AES-128-CBC
6. When everything is done, connect to the VPN from network menu:
connect-to-openvpn
You’re connected to the VPN if you see this message:
openvpn-connected


Enjoy!

http://ubuntuhandbook.org/index.php/2014/05/establish-openvpn-connection-ubuntu-1404/

Xmind Forced Close di 64 bit Debian Jessie

on Sabtu, 16 Mei 2015

Xmind Forced Close di 64 bit Debian Jessie

pesan erorrnya

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again


Solusinya

1. Stop XMind


2. Find your XMind.ini fill (di debian ada di /usr/lib/xmind)

jadi perintahnya
pluma /usr/lib/xmind/XMind.ini
3. add the following to the end of the file:

-Dorg.eclipse.swt.browser.DefaultType=mozilla

4. Restart XMind

Membebaskan Cached RAM di Ubuntu/Debian Jessie

on Jumat, 15 Mei 2015

 pakai perintah ini

sync; sudo echo 3 > /proc/sys/vm/drop_caches


kalau mau do crontab kan


Buat yang belum diinstall crontab-nya, cara install nya adalah :
sudo apt-get install cron
2. Melihat aktifitas crontab
Untuk melihat schedule yang sedang berjalan di sistem Anda :
sudo crontab -l
3. Mengedit cron jobs
sudo crontab -e

lalu isi (ini settingan per jam)

0    *    *    *    *    sync; echo 3 > /proc/sys/vm/drop_caches


atau pakai generator cron ini
http://www.openjs.com/scripts/jslibrary/demos/crontab.php

Untuk log tambahkan

1    *    *    *    *    grep CRON /var/log/syslog >> /home/debian/log/crontab.log


Google calendar di debian Jessie (pakai icedove)

on Kamis, 14 Mei 2015

Google calendar di debian Jessie (pakai icedove)

install
apt-get install icedove iceowl-extension


add new calendar

Dconf Editor (memindahkan tombol Close dkk) MAte Debian Jessie

Dconf Editor (memindahkan tombol Close dkk) MAte Debian Jessie

1. Menghilangkan ikon (disable right click)

org > mate > desktop > background
hilangkan centang di show-desktop-icon


2. Rubah Tombol close
org > mate > marco > general

close,minimize,maximize:menu



3. hilangkan trash icon dll (pakai no 1 aja udah all in one)
org > mate > caja > desktop

hilangkan centang

Setting samba Debian Jessie

on Selasa, 12 Mei 2015

Setting samba Debian Jessie

apt-get install samba

Buat back upnya
cp /etc/samba/smb.conf /etc/samba/smb.conf.backup
 
 
Seettingan 
pluma /etc/samba/smb.conf
 
 
settingan samba dimari
 http://pastebin.com/gueriNWK
 
 
Restart samba
sudo service smbd restart

Konfigurasi Squid 3 Di debian 8 Jessie

Alhamdulillah akhirnya bisa berbulan madu dengan si jessie ini...
langsung saja biar saya inger ini alias sebagai catatan saja..

install squid3 (masuk root ye!!!)
apt-get install squid3

Back up

cp /etc/squid/squid.conf cp /etc/squid/squid.conf.backup

Seting squid (gue pakek mate)
sudo pluma /etc/squid3/squid.conf

ada di pastebin setingannya :)
http://pastebin.com/JhMuDiBX

Rubah permission di cachenya
chown -R proxy:proxy /var/spool/squid3/

lanjut testing

squid3 -k parse 


"sementara masih ada errror" tapi jalan :D so abaikan
2015/05/12 20:31:37| WARNING: use of 'override-expire' in 'refresh_pattern' violates HTTP
2015/05/12 20:31:37| WARNING: use of 'override-lastmod' in 'refresh_pattern' violates HTTP
2015/05/12 20:31:37| WARNING: use of 'reload-into-ims' in 'refresh_pattern' violates HTTP
2015/05/12 20:31:37| WARNING: use of 'ignore-reload' in 'refresh_pattern' violates HTTP
2015/05/12 20:31:37| WARNING: use of 'ignore-no-store' in 'refresh_pattern' violates HTTP
2015/05/12 20:31:37| WARNING: use of 'ignore-must-revalidate' in 'refresh_pattern' violates HTTP
2015/05/1


Buat cache dir
squid3 -z 

Finally restart squid
service squid3 start 

N rubah proxy browser ke 127.0.0.1 port 3128


ngecek gedenya cache
du -hs /var/spool/squid3
 

 

Install Multimedia Codecs Debian Jessie

on Selasa, 28 April 2015

Install Multimedia Codecs Debian Jessie




Jessie
sudo apt-get install flashplugin-nonfree icedtea-plugin libavcodec-extra gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad gstreamer0.10-fluendo-mp3 gstreamer0.10-pulseaudio libgstreamer-perl libgstreamer-interfaces-perl


Wheezy
sudo apt-get install libav-tools libavcodec-extra-53 libavdevice-extra-53 libavfilter-extra-2 libavformat-extra-53 libavutil-extra-51 libpostproc-extra-52 libswscale-extra-2 flashplugin-nonfree ttf-mscorefonts-installer icedtea-plugin

Hapus Cache Squid dan membuat ulang

Step #1: Find Squid cache dir location

Open a terminal and then type:
# grep cache_dir /etc/squid/squid.conf
Sample outputs:
cache_dir ufs /var/spool/squid 100 16 256

Step #2: Restart Squid with an empty cache

Open a terminal and login as root user. Or use the ssh command to login to the remote server. Once logged in type the following command to shutdown squid proxy server:
# squid -k shutdown
Use the following rm command to delete the directory:
# rm -rf /path/to/dir/cache/
# rm -rf /var/spool/squid/

Please note that you need repeat the rm command for each cache_dir location you wish to empty. Next, use the following mkdir command to create directory and set permission using chown command:
# mkdir /var/spool/squid
#
chown squid:squid /var/spool/squid

A note about SELinux user

If you are using SELinux, type the following command to restestore file(s) default SELinux security contexts:
# restorecon -vr /var/spool/squid

Creating cache_dir

Finally, to re-create the cache directories, enter:
# squid -z
Sample outputs:
2013/08/24 04:24:19| Making directories in /var/spool/squid/00
2013/08/24 04:24:19| Making directories in /var/spool/squid/01
2013/08/24 04:24:19| Making directories in /var/spool/squid/02
2013/08/24 04:24:20| Making directories in /var/spool/squid/03
2013/08/24 04:24:20| Making directories in /var/spool/squid/04
2013/08/24 04:24:20| Making directories in /var/spool/squid/05
2013/08/24 04:24:20| Making directories in /var/spool/squid/06
2013/08/24 04:24:20| Making directories in /var/spool/squid/07
2013/08/24 04:24:20| Making directories in /var/spool/squid/08
2013/08/24 04:24:20| Making directories in /var/spool/squid/09
2013/08/24 04:24:20| Making directories in /var/spool/squid/0A
2013/08/24 04:24:20| Making directories in /var/spool/squid/0B
2013/08/24 04:24:20| Making directories in /var/spool/squid/0C
2013/08/24 04:24:20| Making directories in /var/spool/squid/0D
2013/08/24 04:24:20| Making directories in /var/spool/squid/0E
2013/08/24 04:24:20| Making directories in /var/spool/squid/0F

Starting squid proxy server

To start squid type:
# squid
OR
# service squid start
Sample outputs:
Starting squid:                                            [  OK  ]

Step #3: Verify Squid is running

Type the following commands:
# netstat -tulpn | grep :3128
# tail -f /var/log/squid/access.log
# tail -f /var/log/squid/cache.log

Meningkatkan Smoothing Fonts Rendering di Debian wheezy

on Senin, 27 April 2015

Sebelum


Sesudah

sudo pluma /etc/fonts/local.conf
And paste this script


http://pastebin.com/Z9Twe1VD


Lalu simpan, kemudian buka terminal
fc-cache -fv
sudo fc-cache -fv
Lalu restart
sumber http://ubuntuforums.org/showthread.php?t=2145211&page=2

Instalasi dan Konfigurasi SSH Server di Debian

on Minggu, 26 April 2015

Kali ini saya akan membuat tutorial tentang SSH Server / Remote Server pada Debian. Keuntungan dari jaringan komputer yaitu memudahkan kita dalam berbagi resource hardware ataupun software yang ada. Remote Access adalah salah satu teknologi yang digunakan untuk mengakses suatu system melalui media jaringan. Sehingga kita dapat mengkonfigurasi suatu system, dimanapun kita berada asalkan terkoneksi ke Internet atau Jaringan tersebut.
Secara umum, Remote Access dibagi menjadi dua jenis;

1. Mode Desktop / GUI (Graphical User Interface), misalnya Remote Desktop, VNC, dan Radmin.
2. Mode Teks, misalnya telnet, ssh, raw, Rlogin dan serial.

1. Pertama kita lakukan instalasi

Karena kita akan konfigurasi server menggunakan mode teks. Sehingga kita harus
menggunakan Remote Access mode Teks pula, semisal SSH (Secure Shell). Karena dianggap lebih aman dalam
transfer data melalui jaringan.


# apt-get install ssh

2. Konfigurasi

Setelah aplikasi terinstall, layanan SSH Server sudah langsung bisa kita gunakan melalui port default 22. Jika ingin mengkonfigurasi SSH Server tersebut, edit file sshd_config yang merupakan file konfigurasi utama pada SSH Server. Dalam file tersebut, kita bisa merubah settingan default yang ada. Misalnya merubah port default, ataupun menambah tampilan banner ssh agar menjadi lebih menarik.

2.1. Merubah port default ssh

Edit file sshd_config berikut, kemudian cari dan rubah satu baris konfigurasi script di bawah ini.

# nano /etc/ssh/sshd_config

Lalu ubah portnya menjadi port 354

# What ports, IPs and protocols we listen for
#Port 354

3. Restart paket SSH Servernya

Setiap selesai mengkonfigurasi, restart service ssh agar semua konfigurasi dijalankan langsung.

# /etc/init.d/ssh restart

4. Pengujian
Untuk mengakses SSH Server melalui jaringan, dibutuhkan aplikasi tambahan yang dinamakan SSH Client. Secara default SSH Client ini sudah terinstall otomatis pada system operasi Debian.

4.1. Remote Access via Localhost
Jika itu pertama kali anda melakukan koneksi ke SSH Server, maka anda akan diberi RSA key untuk keamanan data.

# ssh root@localhost

RSA key fingerprint is 47:41:dd:8a:71:02:83:55:ff:e4:db:fa:9d:e8:05:54.
Are you sure you want to continue connecting (yes/no)? yes
Pada cara diatas, kita mengakses SSH Server melalui port default yakni 21. Nah, jika kita ingin mengakses SSH Server
pada port yang telah kita rubah sebelumnya, tinggal tambahkan opsi berikut.

# ssh root@localhost –p 354

3.3.2. Remote Access via Windows
Dalam system operasi Windows, secara default tidak ada aplikasi SSH Client yang terinstall. Yang ada hanyalah
aplikasi Telnet Cilent. Untuk itu kita harus mendownload aplikasi SSH Client terlebih dahulu di www.putty.nl
kemudian menjalankanya pada computer Windows seperti berikut.

Gambar 3.

Setelah masuk ke system operasi Debian, kita sudah bisa menjalankan semua pekerjaan-pekerjaan server daricomputer tersebut. Layaknya kita berhadapan langsung di depan computer tersebut.

Apabila Server sudah dapet diremote maka Instalasi dan Konfigurasi SSH Server di Debian telah berhasil.
 
 
sumber http://indrango.blogspot.com/2013/08/instalasi-dan-konfigurasi-ssh-server-di.html

Setting acces point wifi di debian wheezy menggunakan hostapd dan dnsmasq

Biarpun si jessie hari ini release, tapi harus pakai ini dulu.. karena si jessie masih ngebug di PC :D

Setting acces point wifi di debian wheezy menggunakan hostapd dan dnsmasq

Pertama install driver wifi

apt-get install firmaware-atheros

kedua install hostapd
apt-get install hostapd

Ketiga CONFIGURING HOSTAPD

pluma /etc/hostapd/hostapd.conf


pastekan berikut ini
interface=wlan0
driver=nl80211
ssid=namawifi
hw_mode=g
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=password8digit
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
Keempat install dnsmasq


apt-get install dnsmasq

pluma /etc/dnsmasq.conf

paste ini
# disables dnsmasq reading any other files like /etc/resolv.conf for nameservers
no-resolv
# Interface to bind to
interface=wlan0
# Specify starting_range,end_range,lease_time
dhcp-range=10.0.0.3,10.0.0.20,12h
# dns addresses to send to the clients
server=8.8.8.8
server=8.8.4.4
buat file di home

pluma initSoftAP
 

pastekan
#!/bin/bash
#Initial wifi interface configuration
ifconfig $1 up 10.0.0.1 netmask 255.255.255.0
sleep 2
###########Start dnsmasq, modify if required##########
if [ -z "$(ps -e | grep dnsmasq)" ]
then
 dnsmasq
fi
###########
#Enable NAT
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
iptables --table nat --append POSTROUTING --out-interface $2 -j MASQUERADE
iptables --append FORWARD --in-interface $1 -j ACCEPT
#Thanks to lorenzo
#Uncomment the line below if facing problems while sharing PPPoE, see lorenzo's comment for more details
#iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
sysctl -w net.ipv4.ip_forward=1
#start hostapd
hostapd /etc/hostapd/hostapd.conf 1> /dev/null
killall dnsmasq

chmod +x initSoftAP
./initSoftAP wlan0 ppp0  # And there you go
 
© Geazzy Corner All Rights Reserved