30 May, 2010

install sql dan php ( xampp ) di linux

langsung aja langkah install :

- download versi terbarunya dari situs resminya xampp-linux-1.7.3a.tar.gz

- ekstrak ke directory /opt
sudo tar xvfz xampp-Linux-1.7.3a.tar.gz -C /opt
jika lngkah ke-2 brhasil, brarti xampp tlah trpsang di Ubuntu

- membuat softlink
$ cd ~
$ mkdir public_html
$ sudo ln -s ~/public_html /opt/lampp/htdocs/$USER

- Membuat shortcut XAMPP pada Start Menu:
dayat@dayat-akiratoya17:~$ cd ~/.local/share/applications

Buat file dengan text editor kesukaan anda(nano,gedit,pico,dll) saya gunakan GEDIT .. :P, ketikkan perintah berikut:
dayat@dayat-akiratoya17:~$ gedit xampp-control-panel.desktop

Silahkan kopas code berikut ke dalam file tersebut:

[Desktop Entry]
Comment=Start/Stop XAMPP
Name=XAMPP Control Panel
Exec=gksudo /opt/lampp/share/xampp-control-panel/xampp-control-panel
Icon[en_CA]=/opt/lampp/htdocs/favicon.ico
Encoding=UTF-8
Terminal=false
Name[en_CA]=XAMPP Control Panel
Comment[en_CA]=Start/Stop XAMPP
Type=Application
Icon=/opt/lampp/htdocs/favico.ico

Simpan dan keluar editor.

- aktifkan xampp
sudo /opt/lampp/lampp start

atau dapat diakses dari XAMPP Control Panel yang telah kita buat tadi:

dayat@dayat-akiratoya17:~$ Applications -> Other -> XAMPP Control Panel

jika tampil seperti dibawah ini, brarti xampp / lampp tlah aktif:
Starting XAMPP for Linux 1.7.3a...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.

- seting password u/ xampp
sudo /opt/lampp/lampp security

- jika telah slsai, lakukan restart.
sudo /opt/lampp/lampp restart

- test browser
ketik pada web browser == > http://localhost
jika logo xampp mncul, berarti xampp telah bekerja

- directory web
file2 php dapat diletakkan di /opt/lampp/htdocs/

ex: nama directory yg dibuat didalam /opt/lampp/htdocs adalah myweb,
sehingga pada saat test berarti http://localhost/myweb

- mysql
http://localhost/phpmyadmin

username : root
password :

untuk mengatur password
code : sudo /opt/lampp/lampp security

- editor
untuk editor php di Linux, anda dapat menggunakan geany.
karena geany dapat memberikan suggestion kepada user mengenai sintakx2 php,
walapun tidak sebagus dreamweaver. bisa juga menggunakan netbeans

semoga bermanfaat

sumber ==> ubuntu-indonesia

21 May, 2010

Backup semua software yang sudah terpasang di ubuntu kita

MySpace Saat ubuntu kesayangan kita crash / rusak, MySpace jalan termudah adalah install ulang.
sebelum itu terjadi alangkah baiknya menympan semua software yg sudah kita pasang ... MySpace ok begini caranya ... silahkan download APTonCD di alamat resminya pilih sesuai selera mau menggunakan deb atau tar.gz APTonCD atau mau langsung download versi deb .DEB | download versi tar.gz TAR.GZ
- Cara menginstall versi DEB cukup dengan klik 2x pada file MySpace
- Masukkan password
- tunggu proses hingga selesai. dan tutup semua jendela yg aktif.
- Cara menginstall versi TAR.GZ cukup menarik MySpace
- Buka terminal. Applications > Accessories > Terminal.
$ tar -xvzf aptoncd-*.tar.gz [ pastikan alamat menyimpan file di home direktori ]
$ cd aptoncd/
$ sudo make install

- cara pakai software ini mudah sekali
- Jalankan APTonCD. System > Administration > APTonCD.
- klik create untuk membuat backup. atau restore untuk mengembalikan backup

17 May, 2010

Mengedit Menu Bootloader

MySpace hehehe ... kebanyakan menu juga ngga asik jadi ada beberapa yang bisa di sembunyikan ... MySpace

ok pertama backup dulu file grub.cfg ( jangan lupa pakai mode super user )

code : sudo su

ubah dulu system permission pada direktori /boot/grub
code : # chmod 777 -R /boot/grub

/boot/grub/grub.cfg ( untuk 9.10 )
/boot/grub/menu.lst ( untuk 9.04 )

setelah di backup lalu beri tanda komentar pada bagian yang ingin disembunyikan ...
dalam kasus saya. saya ingin menyembunyikan memory test

code : # gedit /boot/grub/grub.cfg

saya beri tanda komentar "#" di baris depan kode yg ingin disembunyikan
contoh :

#### BEGIN /etc/grub.d/20_memtest86+ ###
#menuentry "Memory test (memtest86+)" {
# linux16 /boot/memtest86+.bin
#}
#menuentry "Memory test (memtest86+, serial console 115200)" {
# linux16 /boot/memtest86+.bin console=ttyS0,115200n8
#}
#### END /etc/grub.d/20_memtest86+ ###

atau ingin mengubah nama os

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 5ab4da11b4d9f00d
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

menjadi

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Jendela XP Professional" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 5ab4da11b4d9f00d
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

disini anda bebas berkreasi ... MySpace saya menyarankan membuat file backup ... pasti karena ini berbahaya ... MySpace ok berhati hatilah ...

Mengembalikan GRUB bootloader yang hilang pada ubuntu linux

ini biasa terjadi jika habis menginstall OS W*****S MySpace , alamat GRUB loader linux kita akan tersapu hahaha ... ok langsung aja ... MySpace

1. Siapkan Live CD/DVD.
2. Ubah First boot option target CD/DVD-ROM pada BIOS. [ reboot ]
3. Masuk menu Linux, pilih Try Ubuntu ( Without any change on your computer ).
4. Jalankan Terminal. Applications > Accessories > Terminal.
5. Cek Partisi.
code :
sudo fdisk -l

6. Setelah diketahui posisi partisi linuxnya ( misalkan partisinya pada sda6 ) kemudian lakukan mounting.
code :
sudo mount -t ext4 /dev/sda7 /mnt/
sudo mount -t proc proc /mnt/proc/
sudo mount -t sysfs sys /mnt/sys/
sudo mount -o bind /dev/ /mnt/dev/
sudo chroot /mnt /bin/bash

7. Kembalikan GRUB ke MBR,
code : grub-install /dev/sda6

8. reboot, dan bootloader akan kembali seperti semula. MySpace

12 May, 2010

Ubah Tampilan booting di Ubuntu 10.04 (plymouth)

langsung aja : MySpace

ketik kode pada terminal ==>

:~$ sudo apt-get install plymouth-theme*

dayat@dayat-akiratoya17:/$ sudo apt-get install plymouth-theme*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting plymouth-theme-ubuntu-text for regex 'plymouth-theme*'
Note, selecting plymouth-theme for regex 'plymouth-theme*'
Note, selecting plymouth-theme-kubuntu-logo for regex 'plymouth-theme*'
Note, selecting plymouth-theme-sabily for regex 'plymouth-theme*'
Note, selecting plymouth-theme-text for regex 'plymouth-theme*'
Note, selecting ubuntustudio-plymouth-theme for regex 'plymouth-theme*'
Note, selecting plymouth-theme-ubuntustudio for regex 'plymouth-theme*'
Note, selecting plymouth-theme-glow for regex 'plymouth-theme*'
Note, selecting plymouth-theme-ubuntu-logo for regex 'plymouth-theme*'
Note, selecting xubuntu-plymouth-theme for regex 'plymouth-theme*'
Note, selecting plymouth-theme-script for regex 'plymouth-theme*'
Note, selecting plymouth-theme-spinfinity for regex 'plymouth-theme*'
Note, selecting plymouth-theme-solar for regex 'plymouth-theme*'
Note, selecting lubuntu-plymouth-theme for regex 'plymouth-theme*'
Note, selecting plymouth-theme-fade-in for regex 'plymouth-theme*'
The following packages were automatically installed and are no longer required:
xz-utils
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
lubuntu-plymouth-theme plymouth-theme-fade-in plymouth-theme-glow
plymouth-theme-kubuntu-logo plymouth-theme-sabily plymouth-theme-script
plymouth-theme-solar plymouth-theme-spinfinity plymouth-theme-text
plymouth-theme-ubuntustudio xubuntu-plymouth-theme
The following NEW packages will be installed:
lubuntu-plymouth-theme plymouth-theme-fade-in plymouth-theme-glow
plymouth-theme-kubuntu-logo plymouth-theme-sabily plymouth-theme-script
plymouth-theme-solar plymouth-theme-spinfinity plymouth-theme-text
plymouth-theme-ubuntustudio xubuntu-plymouth-theme
0 upgraded, 11 newly installed, 0 to remove and 15 not upgraded.
Need to get 1,603kB of archives.
After this operation, 2,920kB of additional disk space will be used.
Do you want to continue [Y/n]? Tindis huruf Y atau y setelah itu tindis enter ...

nah klo mo ganti plymouth nya..... MySpace

Code:
sudo update-alternatives --config default.plymouth

dayat@dayat-akiratoya17:/$ sudo update-alternatives --config default.plymouth
There are 11 choices for the alternative default.plymouth (providing /lib/plymouth/themes/default.plymouth).

Selection Path Priority Status
------------------------------------------------------------
* 0 /lib/plymouth/themes/kubuntu-logo/kubuntu-logo.plymouth 150 auto mode
1 /lib/plymouth/themes/fade-in/fade-in.plymouth 10 manual mode
2 /lib/plymouth/themes/glow/glow.plymouth 10 manual mode
3 /lib/plymouth/themes/kubuntu-logo/kubuntu-logo.plymouth 150 manual mode
4 /lib/plymouth/themes/lubuntu-logo/lubuntu-logo.plymouth 150 manual mode
5 /lib/plymouth/themes/sabily/sabily.plymouth 60 manual mode
6 /lib/plymouth/themes/script/script.plymouth 10 manual mode
7 /lib/plymouth/themes/solar/solar.plymouth 10 manual mode
8 /lib/plymouth/themes/spinfinity/spinfinity.plymouth 10 manual mode
9 /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.plymouth 100 manual mode
10 /lib/plymouth/themes/ubuntustudio-logo/ubuntustudio-logo.plymouth 150 manual mode
11 /lib/plymouth/themes/xubuntu-logo/xubuntu-logo.plymouth 150 manual mode

Press enter to keep the current choice[*], or type selection number: [isi pilihan anda dg angka]
update-alternatives: using /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.plymouth to provide /lib/plymouth/themes/default.plymouth (default.plymouth) in manual mode.

trus pilih nomer brp yg mo dipake...... MySpace
klo udah jgn lpa di update initramfs nya.... MySpace

Code:
sudo update-initramfs -u MySpace

07 May, 2010

Konek internet via bluetooth di linux

ini bisa digunakan di ubuntu : jaunty, keramic, lucid.

- hidupkan bluetooth HP & bluetooth dongle di PC.
- buka teminal. Applications > Accessories > Terminal.
- pastikan gnome bluetooth sudah terinstall. Code : sudo apt-get gnome-bluetooth
[ biasanya sudah terinstall ].

rahmat@akiratoya17:~$ sudo apt-get install gnome-bluetooth
[sudo] password for rahmat:
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnome-bluetooth is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
rahmat@akiratoya17:~$

- Scan MAC Address dan channel Dial-UP Networking (DUN). Code : sdptool search DUN

rahmat@akiratoya17:~$ sdptool search DUN
Inquiring ...
Searching for DUN on 00:21:9E:42:66:3B ...
Service Name: Dial-up Networking
Service RecHandle: 0x10001
Service Class ID List:
"Dialup Networking" (0x1103)
"Generic Networking" (0x1201)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100

rahmat@akiratoya17:~$

- MAC address : 00:21:9E:42:66:3B
- Channel : 1

- ubah sesuai dengan MAC & channel yg kita dapat diatas.
Code : :~$ sudo gedit /etc/bluetooth/rfcomm.conf
Code : :~$ sudo vim /etc/bluetooth/rfcomm.conf
Code : :~$ sudo nano /etc/bluetooth/rfcomm.conf
*pilih salah satu teks editor kesayangan anda

rfcomm0 {

bind yes;

device 00:21:9E:42:66:3B;

channel 1;

comment “HP Pinjaman”;

}

- Aktifkan device rfcomm dengan nilai bind 0, MAC Address, dan Channel.
Code : :~$ sudo rfcomm bind 0 00:19:79:DF:10:28 2

- Edit wvdial.conf Sesuai seting modem, phone, username dan

password anda. Untuk indosat im3 settingnya adalah sbb:

rahmat@akiratoya17:~$ sudo gedit /etc/wvdial.conf



[Dialer Defaults]

Init1 = ATZ

init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

INIT3 = at+cgdcont=1, "ip", "indosatgprs"

Modem Type = Analog Modem

ISDN = 0

Phone = *99***1#

Modem = /dev/rfcomm0

Username = indosat

Password = indosat

Baud = 460800

- sekarang konek ...
rahmat@akiratoya17:~$ sudo wvdial
*proses pairing masukkan pin yang sama di kedua perangakat.

rahmat@akiratoya17:~$ sudo rfcomm bind 0 00:21:9E:42:66:3B 1
[sudo] password for rahmat:
rahmat@akiratoya17:~$ sudo wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATX3
ATX3
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: at+cgdcont=1, "ip", "indosatm2"
at+cgdcont=1, "ip", "indosatm2"
OK
--> Modem initialized.
--> Sending: ATM0L0DT*99***10#
--> Waiting for carrier.
ATM0L0DT*99***10#
CONNECT
~[7f]}#@!}!}!} }9}#}%B#}%}(}"}'}"}"}&} } } } }%}&}> eY}:+~
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri May 7 05:44:03 2010
--> Pid of pppd: 1426
--> Using interface ppp0
--> pppd: �[02]3[08]�[02]3[08]
--> pppd: �[02]3[08]�[02]3[08]
--> pppd: �[02]3[08]�[02]3[08]
--> pppd: �[02]3[08]�[02]3[08]
--> pppd: �[02]3[08]�[02]3[08]
--> pppd: �[02]3[08]�[02]3[08]
--> local IP address 114.58.56.128
--> pppd: �[02]3[08]�[02]3[08]
--> remote IP address 10.64.64.64
--> pppd: �[02]3[08]�[02]3[08]
--> primary DNS address 202.155.0.10
--> pppd: �[02]3[08]�[02]3[08]
--> secondary DNS address 202.155.0.15
--> pppd: �[02]3[08]�[02]3[08]

05 May, 2010

buat file .iso g pake ribet di linux

1. masukkin CD/DVD yang mau di jadikan file .iso
2. buka terminal / shell
3. contoh code : $ sudo cat /dev/scd0 > /home/shamanstears/test.iso
/homeshamanstears/test.iso ==> bisa di ubah sesuai keinginan dimana akan diletakkan file .iso-nya
nama file juga bisa di ubah sesuka hati anda ...

atau

code : $ dd if=/dev/dvd of=disk.iso

kalo mau mudah lagi pake brasero disc burner. tinggal klik menu DISC COPY > ubah select disc to copy menjadi image file pilih format file ISO, close. klik duplicate. tunggu dah ampe matang ...