Browsing the archives for the linux category.

Winbox on Linux Debian 7 Wheezy

linux, mikrotik

Winbox on Linux Debian 7 Wheezy 64bit

1. Install Wine
For amd64 Linux-Distro

# dpkg --add-architecture i386
# apt-get update
# apt-get install wine-bin:i386

For i386 Linux-Distro

# apt-get install wine

2. Download WinBox

# wget http://www.mikrotik.com/download/winbox.exe

3. Run WinBox

# wine winbox.exe

Sumber:
http://mikrotikindo.blogspot.com/2013/07/cara-menjalankan-winbox-mikrotik-Linux-Mint-ubuntu.html
http://opensource.telkomspeedy.com/wiki/index.php/Menjalankan_winbox.exe_di_Linux

Comments Off on Winbox on Linux Debian 7 Wheezy

Intel Wireless Driver on Debian 7 Wheezy

linux

1.Idenfity Wireless Card

# lspci -nn | grep Wireless
06:00.0 Network controller [0280]: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection [8086:4237]


2. Add “non-free” component to repository

# echo "deb http://http.debian.net/debian/ wheezy main contrib non-free" >> /etc/apt/sources.list


3. Install firmware-iwlwifi

# apt-get update && apt-get install firmware-iwlwifi


4. Load module iwlwifi

# modprobe -r iwlwifi ; modprobe iwlwifi

Source:
https://wiki.debian.org/iwlwifi
https://wiki.debian.org/HowToIdentifyADevice/PCI
https://wiki.debian.org/WiFi

Comments Off on Intel Wireless Driver on Debian 7 Wheezy

Debian Wheezy Repository

linux

Debian 7 (Wheezy) Repository Indonesia

# security
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

# kambingUI
deb http://kambing.ui.ac.id/debian/ wheezy main contrib non-free
deb-src http://kambing.ui.ac.id/debian/ wheezy main contrib non-free
deb http://kambing.ui.ac.id/debian/ wheezy-updates main contrib non-free
deb-src http://kambing.ui.ac.id/debian/ wheezy-updates main contrib non-free

# keboVLSM
deb http://kebo.vlsm.org/debian/ wheezy main contrib non-free
deb-src http://kebo.vlsm.org/debian/ wheezy main contrib non-free
deb http://kebo.vlsm.org/debian/ wheezy-updates main contrib non-free
deb-src http://kebo.vlsm.org/debian/ wheezy-updates main contrib non-free

# option alternate
deb http://http.debian.net/debian wheezy main contrib non-free
deb-src http://http.debian.net/debian wheezy main contrib non-free
deb http://http.debian.net/debian wheezy-updates main contrib non-free
deb-src http://http.debian.net/debian wheezy-updates main contrib non-free

Source:
http://www.garasiku.web.id/igam/index.php/debian-micro-tips/35-indonesia-debian-repository
http://dnaite.blogspot.com/2013/06/daftar-mirror-repository-lokal-debian-7.html

Comments Off on Debian Wheezy Repository

SSH Server di BackTrack 5

linux

Cara menyalakan SSH Server di Backtrack 5:

1. Berikan password untuk user root
# passwd

2. Generate SSH keys
# sshd-generate

3. Jalankan SSH
# /etc/init.d/ssh start

Catatan: user root sejatinya tidak direkomendasikan untuk bisa akses remote.

Sumber: http://www.backtrack-linux.org/wiki/index.php/Basic_Usage

No Comments

Securing PHP

linux

Belajar dan terus belajar. Salah satu enaknya mengajar di bidang IT, harus terus belajar. Ilmu yang kemarin dipelajari tidak selalu cukup untuk menangani masalah keesokan harinya.

Hari ini belajar hal baru lagi, bagaimana mengamankan konfigurasi PHP di web server.

Beberapa konfigurasi pengamanan yang umum bisa dilakukan dengan mengatur file php.ini, di antaranya untuk opsi safe_mode = On dan registers_globals = Off.

Sumber: Securing PHP: Step-by-Step | Symantec

No Comments

Static Route di CentOS

linux

Tiba-tiba saja ada keperluan untuk menambahkan static routing di CentOS, karena belum hapal lokasi file konfigurasi-nya, akhirnya minta bantuan Mr.Google.

Dapat juga link yang sangat membantu dari centos.org.

1. Buat dan edit file route-interface (dalam kasus saya, interface=eth0)

# vi /etc/sysconfig/network-scripts/route-eth0

2. Tambahkan informasi static route yang diperlukan pada file route-interface tersebut (format X.X.X.X/X via X.X.X.X dev interface)

10.0.0.0/24 via 192.168.1.50 dev eth0
192.168.0.0/16 via 192.168.7.50 dev eth0

3. Restart service network

# /etc/init.d/network restart

4. Cek routing table, apakah static routing yang ditambahkan sudah termuat

# /sbin/route -n

Sumber: http://www.centos.org/docs/5/html/5.1/Deployment_Guide/s1-networkscripts-static-routes.html

No Comments

ntpdate-debian

linux

Karena kebutuhan waktu yang harus terus menerus sinkron di server debian, maka dicoba untuk instalasi ntpdate.

Langkahnya sangat mudah :

1. Install ntpdate-debian

$ apt-get install ntpdate

2. Ubah isi konfigurasi ntpdate

$ vim /etc/default/ntpdate
# The settings in this file are used by the program ntpdate-debian, but not
# by the upstream program ntpdate.
# Set to "yes" to take the server list from /etc/ntp.conf, from package ntp,
# so you only have to keep it in one place.
NTPDATE_USE_NTP_CONF=no
# List of NTP servers to use  (Separate multiple servers with spaces.)
# Not used if NTPDATE_USE_NTP_CONF is yes.
NTPSERVERS="0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org"
# Additional options to pass to ntpdate
NTPOPTIONS=""

3. Jalankan ntpdate-debian

$ /usr/sbin/ntpdate-debian

4. Tambahkan pada crontab untuk dijalankan tiap tengah malam

$ 0 0 * * * /usr/sbin/ntpdate-debian

Referensi :

http://www.debian-administration.org/articles/25

http://wiki.zhekov.net/ntpdate_on_Debian

http://www.adminschoice.com/docs/crontab.htm

No Comments

Setting datetime

linux

Kebetulan ada salah satu server yang jam sistemnya mau dirubah, karena tidak ada GUI maka harus dilaksanakan via console.

Jadilah belajar perintah “date” berikut :

1. date --> untuk melihat datetime
debian:/# date
Mon May 25 20:18:22 WIT 2009

2. date (argument)--> untuk set datetime
debian:/# date 052520302009
Mon May 25 20:30:00 WIT 2009

3. hwclock untuk store ke CMOS
debian:/# hwclock --systohc

Referensi : http://oreilly.com/catalog/debian/chapter/book/ch07_05.html

No Comments

md5sum

linux

Tadi malam meninggalkan proses download di server dan hari ini ketika cek server lagi, file sudah selesai di download.

Karena file yang di download ukurannya cukup besar (hampir 500MB), maka perlu dilakukan pengecekan apakah filenya corrupt saat download. Proses verifikasi dapat dilakukan dengan menggunakan md5sum.

Untuk proses verifikasi, masukkan file hasil download ke sebuah folder. Dan kemudian download juga file md5 yang disertakan oleh web-server penyedia file. Dalam kasus saya, saya download kedua file berikut :

zcs-5.0.16_GA_2921.DEBIAN4.0.20090429055651.tgz
zcs-5.0.16_GA_2921.DEBIAN4.0.20090429055651.tgz.md5

dari http://www.zimbra.com/community/downloads.html

Berikut langkah verifikasi md5sum menggunakan perintah di linux shell

1. Pastikan kedua file berada dalam satu folder yang sama

ns2:~Desktop/zimbra> ls
zcs-5.0.16_GA_2921.DEBIAN4.0.20090429055651.tgz
zcs-5.0.16_GA_2921.DEBIAN4.0.20090429055651.tgz.md5

2. Lakukan pengecekan md5sum

ns2:~Desktop/zimbra> md5sum -c \
zcs-5.0.16_GA_2921.DEBIAN4.0.20090429055651.tgz.md5

3. Jika file tidak corrupt, akan muncul hasil berikut :

zcs-5.0.16_GA_2921.DEBIAN4.0.20090429055651.tgz: OK

Referensi :
https://help.ubuntu.com/community/HowToMD5SUM
No Comments

Instal ns2 di debian etch

linux

Untuk kebutuhan rencana tesis, diperlukan ns2 (network simulator 2) terpasang di debian.

Akhirnya dapat referensi yang to the point menerangkan tentang instalasi ns-allinone (tidak satu persatu, tapi di bundle jadi satu).
Berikut langkah-langkahnya :

1. Install required packages
$ sudo apt-get install build-essential autoconf automake libxmu-dev

2. Download ns terbaru (saat saya menulis ini versi 2.33)
ns-allinone bisa di download dari http://www.isi.edu/nsnam/ns/ns-build.html

2. Extract file hasil download
$ tar -zxvf ./ns-allinone-2.33.tar.gz

3. Masuk ke directory hasil extract
$ cd ns-allinone-2.33

4. Lakukan instalasi ns-allinone
$ ./install

5. Perhatikan hasil instalasi
Ns-allinone package has been installed successfully.
Here are the installation places:
tcl8.4.18: /home/tim/ns-allinone-2.33/{bin,include,lib}
tk8.4.18: /home/tim/ns-allinone-2.33/{bin,include,lib}
otcl: /home/tim/ns-allinone-2.33/otcl-1.13
tclcl: /home/tim/ns-allinone-2.33/tclcl-1.19
ns: /home/tim/ns-allinone-2.33/ns-2.33/ns
nam: /home/tim/ns-allinone-2.33/nam-1.13/nam
xgraph: /home/tim/ns-allinone-2.33/xgraph-12.1
gt-itm: /home/tim/ns-allinone-2.33/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns

———————————————————————————-

Please put /home/tim/ns-allinone-2.33/bin:/home/tim/ns-allinone-2.33/tcl8.4.18/unix:/home/tim/ns-allinone-2.33/tk8.4.18/unix
into your PATH environment; so that you’ll be able to run itm/tclsh/wish/xgraph.

IMPORTANT NOTICES:

(1) You MUST put /home/tim/ns-allinone-2.33/otcl-1.13, /home/tim/ns-allinone-2.33/lib,
into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to your X libraries
into LD_LIBRARY_PATH.
If you are using csh, you can set it like:
setenv LD_LIBRARY_PATH <paths>
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>

(2) You MUST put /home/tim/ns-allinone-2.33/tcl8.4.18/library into your TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.

After these steps, you can now run the ns validation suite with
cd ns-2.33; ./validate

For trouble shooting, please first read ns problems page
http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive
for related posts.

6. Gunakan text-editor untuk set environment parameter
$ vim ~/.bashrc

Dan tambahkan baris-baris berikut setelah baris terakhir (ganti /home/name menjadi path home user anda sendiri) :

# LD_LIBRARY_PATH
OTCL_LIB=/home/name/ns-allinone-2.33/otcl-1.13
NS2_LIB=/home/name/ns-allinone-2.33/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB

# TCL_LIBRARY
TCL_LIB=/home/name/ns-allinone-2.33/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/name/ns-allinone-2.33/bin:/home/name/ns-allinone-2.33/tcl8.4.18/unix:/home/name/ns-allinone-2.33/tk8.4.18/unix
NS=/home/tim/ns-allinone-2.33/ns-2.33/
NAM=/home/tim/ns-allinone-2.33/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM

7. Aktifkan environment yang sudah di update
$ source ~/.bashrc

8. ns2 sudah siap digunakan, jika diperlukan, lakukan validasi (catatan : validasi membutuhkan waktu yang lama)
$ sh ~/ns-allinone-2.33/ns-2.33/validate

Referensi : http://suchaxplore.blogspot.com/2008/07/install-ns2-allinone-233-on-ubuntu-804.html

2 Comments
« Older Posts
Newer Posts »