Wednesday, January 23, 2013

Basic Commands in Back | Track 5


On the basis of the commands or syntax-BackTrack linux operating,
yes already ga have many cing-cong directly to the scene

 [*] Login
Username root password toor > default user to backtrack, ane suggestions after login immediately replace the password with the command
root@bt:~# passwd
then enter the new password

[*] Memperbaiki tampilan splash:
root@bt:~# fix-splash

[*] Memulai X-server (Desktop GUI)
root@bt:~# startx

[*] networking
to start networking usually use wicd but previously used in the console type:
root@bt:~# /etc/init.d/wicd start
then click:
menu > internet > wicd netwok manager

setting ip dynamic,
root@bt:~# dhclient <interface network ente>
-- interface here could be eth0 or eth1

Setting IP static
for example:
interface - eth0
IP Address - 192.168.1.9/24
Default Gateway - 192.168.1.1
DNS server - 192.168.1.1
the commands used are:

root@bt:~# ifconfig eth0 192.168.1.9/24
root@bt:~# route add default gw 192.168.1.1
root@bt:~# echo nameserver 192.168.1.1 > /etc/resolv.conf

This will return the default settings when on reboot, to make this permanent, then we need to edit the file /etc/network/interfaces,

root@bt:~# nano /etc/network/interfaces

auto eth0
iface eth0 inet static
address 192.168.1.9
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

then save by using the CTRL + X then answer y then enter

root@bt:~# update-rc.d networking defaults
root@bt:~# /etc/init.d/networking restart

[*] Memulai service di BT :

    SSH (Secure Shell)
    before running the ssh service for the first time, we need to generate his keys run the command:
    root@bt:~# sshd-generate
    root@bt:~# /etc/init.d/ssh start
    Starting OpenBSD Secure Shell server: sshd.

    to stop the service:
    root@bt:~# /etc/init.d/ssh stop
    Stopping OpenBSD Secure Shell server: sshd.
    apache webserver
    root@bt:~# /etc/init.d/apache2 start
    or it could be with the command

    root@bt:~# service apache2 start

    * Starting web server apache2

    or :
    root@bt:~# apache2ctl start

    to stop the service:

    root@bt:~# /etc/init.d/apache2 stop

    or :
    root@bt:~# service apache2 stop

    or :
    root@bt:~# apache2ctl stop
    MySQL
    to start can use the command:
    root@bt:~# /etc/init.d/mysql start

   or :
    root@bt:~# start mysql

    to stop:
    root@bt:~# /etc/init.d/mysql stop

    atau :
    root@bt:~# stop mysql


commands / syntax above is only a small part of the overall syntax to operate a Linux-BT,, well if anyone would nambahin or correcting syntax above, I gladly accept it gracefully.



Recent Posts