Kamis, 12 Februari 2015
Basic Linux Backtrak
For users who've always backtrack, must already be familiar with basic command that I wrote it. .. But create new in the backtrack, must be very troublesome if not know what command to use. .. This command is most often I use, please correct the kalu nothing wrong. ..
[*] Login
Root password username default user > toor on backtrack, ane suggestions directly after login change password with the command
root @: ~ # passwd bt
then enter the new password
[*] Fix display of splash:
root @: ~ # bt fix-splash
[*] Starting the X-server (Desktop GUI)
root @: ~ # bt startx
[*] networking
to start networking usually use WICD tpi previously previewed in the console type:
root @ bt: ~ #/etc/init.d/wicd start
and then click:
menu internet > > wicd netwok manager
dynamic ip settings,
root @: ~ # dhclient bt < interface network ente >
--the interfaces here could be eth0 or eth1
Static IP settings
for example:
interface eth0
192.168.1.9-IP Address/24
Default Gateway-192.168.1.1
DNS server 192.168.1.1
then the command used was:
root @: ~ # bt ifconfig eth0 192.168.1.9/24
root @ bt: ~ # route add default gw 192.168.1.1
root @: ~ # echo bt nameserver 192.168.1.1 >/etc/resolv.conf
This will return the default settings when the reboot, to make permanent then we need to edit the/etc/network/interfaces file,
root @: ~ # nano bt/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 using the command CTRL + X then y then enter answer
root @ bt: ~ # update-rc.d networking defaults
root @: ~ # bt/etc/init.d/networking restart
[*] Start the service at BT:
• SSH (Secure Shell)
before running the ssh service for the first time, we need to generate its key run the commands:
root @: ~ # sshd bt-generate
root @: ~ # bt/etc/init.d/ssh start
Starting in 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 of jg
root @ bt: ~ # service apache2 start
* Starting web server apache2
or:
root @: ~ # apache2ctl bt start
to stop the service:
root @: ~ # bt/etc/init.d/apache2 stop
or:
root @ bt: ~ # service apache2 stop
or:
root @: ~ # apache2ctl bt stop
• MySQL
to start using the command:
root @ bt: ~ #/etc/init.d/mysql start
or:
root @ bt: ~ # mysql start
to stop:
root @: ~ # bt/etc/init.d/mysql stop
or:
root @ bt: ~ # mysql stop
Langganan:
Posting Komentar (Atom)
0 comments:
Posting Komentar