VPN Can’t access local remote network

#VPN IP as client: 192.168.254.112 #VPN Target what we want to telnet is: 192.168.133.100 (where this ip is at the remote local vpn) in here we use pptp as vpn client (linux centos 6.*) [root@srv ~]# yum install pptp [root@srv ~]# cat /etc/ppp/chap-secrets # Secrets for authentication using CHAP # client server secret IP addresses USERNAME 42.42.42.42 thisispassword * [root@srv ~]# cat /etc/ppp/peers/vpn.domain.org pty “pptp … Continue reading VPN Can’t access local remote network

Convert (Image, Word File) to PDF File

use this and read description to use it. #!/bin/bash # Author: Lihar Sendhi Wijaya # Twitter: @lsendw # Sorry if this program not works perfectly. i’m newbie programmer. # save this to your /usr/local/bin (convert_doc) # program convert (jpg, jpeg, png, doc, docx) to PDF FILE # dependencies libreoffice & imagemagick & pdftk # DESCRIPTION # ori_file : original file ex: file.jpeg file.png file.docx # … Continue reading Convert (Image, Word File) to PDF File

Howdoi (How Do I Search) Installation

in my love computer, what i install is arch linux & sublime_text. what the function of “howdoi” ? for me in development it make you fast debug. example: first install howdoi to your fucking love shell like below $ sudo pip install git+https://github.com/gleitz/howdoi.git#egg=howdoi then goto your preference sublime text $ cd /home/sendhi/.config/sublime-text-3/Packages $ git clone https://github.com/azac/sublime-howdoi-direct-paste $ sudo ln -s /usr/bin/howdoi /usr/local/bin/howdoi after installing. use … Continue reading Howdoi (How Do I Search) Installation

Mount Windows Share from ARCH LINUX

first thing to do is install mount cifs. after installing doing this command on your love shell $ id uid=1000(sendhi) gid=100(users) groups=……………………………………………skip $ sudo mount -t cifs -o username=${USER},password=${PASSWORD},uid=1000,gid=100 //192.168.1.103/riki-shared /home/sendhi/Desktop/riki-shared/ -o user=asus uid: 1000(sendhi) gid: 100(users) then done broh Continue reading Mount Windows Share from ARCH LINUX

Convert multiple file to one pdf file

this is how we do it (song) $ ls -l -rw-r–r– 1 sendhi users 123664 Feb 9 02:59 file1.jpg -rw-r–r– 1 sendhi users 456849 Feb 9 02:59 file2.jpg -rw——- 1 sendhi users 85847 Feb 9 02:59 file3.pdf -rw-r–r– 1 sendhi users 1360669 Feb 9 02:59 file4.jpg -rw-r–r– 1 sendhi users 3855669 Feb 9 02:59 file5.jpg $ for f in *.*; do convert ./”$f” ./”${f%.$f | … Continue reading Convert multiple file to one pdf file

Cara import file csv ke database mysql

masuk ke mysql command line anda $ mysql -u root -p > load data local infile ‘/home/sendhi/Desktop/bio_siswa.csv’ into table siswa_bio fields terminated by ‘,’ enclosed by ‘”‘ lines terminated by ‘\n’ (id_siswa,nama,nun,tahun,provinsi,kota,kec); dimana penjelasan diatas sebagai berikut load data local infile ‘/home/sendhi/Desktop/bio_siswa.csv’ (lokasi file .csv’ into table siswa_bio fields (siswa bio sebagai table di db) done Continue reading Cara import file csv ke database mysql