Labels

Saturday, November 12, 2011

How to using latest Sun Java JRE

1. download latest JRE
Download Java software for Linux
Linux (self-extracting file)

2.
Code:
 mkdir /opt/java && cd /opt/java && sh /xx/xx/{your downloaded xx.bin file}
(will create: /opt/java/jre1.6.0_21)


3.
Code:
 update-alternatives --install "/usr/bin/java" "java" "/opt/java/jre1.6.0_21/bin/java" 1

4.
Code:
 update-alternatives --set java /opt/java/jre1.6.0_21/bin/java

5.
Code:
 ln -s /opt/java/jre1.6.0_21/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/
Note: don't use /opt/java/jre1.6.0_21/plugin/i386/ns7/xxx.so


6. add JAVA_HOME to your bash environment, like
export JAVA_HOME=" /opt/java/jre1.6.0_21/bin/java"
into (~/.bashrc)


test if correct java JRE is in use:
Code:
 java -version
7. restart firefox and new java plugin should be available
about:plugins

/brtw2003
Continue Reading »

Friday, November 11, 2011

Getting BROADCOM Wireless to work in BackTrack!

So you are new to BackTrack and your wireless doesn't work out of the box?

No problem!

There are several ways to solve this problem and I'll show you two ways!

All this ways requires that you have a ethernet connection ( a wired connection ).

BEFORE YOU TRY THESE, MAKE SURE YOU'VE RAN APT-GET INSTALL UPGRADE & APT-GET INSTALL UPDATE BEFORE IF YOU ARE RUNNING BACKTRACK 4 FINAL - IT'S ALWAYS GOOD TO UPGRADE.

Using jockey-gtk
This is the most simple one.

Log into BackTrack as root and run these commands:

Code:
/etc/init.d/networking start
apt-get install jockey-gtk
jockey-gtk

Then follow the instructions on the program that starts.



Downloading drivers manually
Go to: Broadcom.com - 802.11 Linux STA driver
And download the tarball for your system (32 or 64).

Run the following in the terminal:

Code:
/etc/init.d/networking start
tar xzf nameoffile.tar.gz

cd thefolderyouget
make clean
make
Now let's check if you have any conflicting drivers (you shouldn't, they doesn't come with BT.)

Code:
lsmod  | grep "b43\|ssb\|wl"

If any of these are installed, remove them:
rmmod b43
rmmod ssb
rmmod wl

Then let's insmod the driver:


Code:
modprobe lib80211
insmod wl.ko
Congratulations! You are up and running!


Note: You maybe have to start network through the KDE "start menu" before you get the WICD manager up, then you should see networks.

If you can't connect to a wireless network, try changing WPA supplicant driver.
Continue Reading »

Thursday, October 27, 2011

How to Start Networking in Backtrack

This is always a huge topic and it seems simple to many of us but the fact of the matter is we have a lot of "new" people so we need to be clear about this sort of thing. (Note all commands should be run as root or with sudo)

1. To start networking in Backtrack 4 final issue the following command.

/etc/init.d/networking start

This will attempt to start all the interfaces in the /etc/network/interfaces file.

root@bt:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet dhcp

auto eth2
iface eth2 inet dhcp

auto ath0
iface ath0 inet dhcp

auto wlan0
iface wlan0 inet dhcp


If you don't have or don't want some of these interfaces then simply remove the from this file and they will not start.

If you need to set a static IP just set the variables in the /etc/network/interfaces file

auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

You will also need to make sure you set a nameserver in /etc/resolv.conf

root@bt:~# cat /etc/resolv.conf
nameserver 192.168.0.1


So for example if all you have is eth0 and wlan0 on your system and you want them both to get a adress via DHCP then remove every thing else for the file with the exception of the lo interface. Here is a example.

root@bt:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto wlan0
iface wlan0 inet dhcp



Now if are lazy and want all this to start at boot you can simply issue this command as root

update-rc.d networking defaults

This will create all the proper sym-links

What about ssh?

So while I am on the subject I may as well go over ssh. In order to use ssh on backtrack 4 final you need to generate the keys first.

sshd-generate

after that you can start ssh like this:

/etc/init.d/ssh start


or you can add it to the boot sequence like this:

update-rc.d ssh defaults

Well thats enough to get up and running. I hope this was somewhat helpful to any one just getting started with backtrack.
Continue Reading »

Tuesday, October 25, 2011

Install BackTrack in VMWare.

Follow the basic install instructions here to get BackTrack installed in a VMware machine.
Log into BackTrack. To install the VMWare drivers, the kernel source and headers need to be in place. By default in the BackTrack 4 final release, the kernel (denoted by {version} ) is configured and ready. However in some cases, you might need to make sure you have the latest kernel sources by typing in:
apt-get update apt-get install linux-source cd /usr/src tar jxpf linux-source-{version}.tar.bz2 ln -s linux-source-{version} linux cd linux zcat /proc/config.gz > .config make scripts make prepare

Now that your kernel sources and headers are in place, run the “Install VMWare tools” for the specific guest VM.
Mount the VMWare tools virtual cd, copy over the VMWare tools package and run the installer:
mount /dev/cdrom3 /mnt/cdrom cp /mnt/cdrom/VMwareTools-{version}.tar.gz /tmp/ cd /tmp/ tar zxpf VMwareTools-{version}.tar.gz cd vmware-tools-distrib ./vmware-install.pl

Complete the VMWare tools installation as required. Run “fix-splash” to reintroduce the green framebuffer console. Reboot.

Continue Reading »

Monday, October 24, 2011

Setting DNS Server di Ubuntu

When using the internet, then it implies that we use DNS (Domain Name System). The main function of this control system is to translate host names into IP numbers (IP address) or vice versa so that the name is easily remembered by Internet users. System control also serves to provide information about a host to the entire Internet network. About how the DNS Server itself will not be discussed in this article but the way its setting alone secaara simple.

1. Installing Bind

Software that is widely used as a DNS server is Bind. Of course we must first install this application.

# Sudo apt-get install bind9

Next install again the next package, namely dnsutils

# Sudo apt-get install dnsutils

2.The next step, ie edit the Ethernet card that will be used later.

# Nano / etc / network / interfaces

Select the Ethernet to be used for example eth0 with ip 192.168.44.2 DNS Servers it. The contents also his netmask and gateway.

3. Then edit the file / etc / bind / named.conf.options

# Nano / etc / bind / named.conf.options

Remove the "/ /" and enter DNS Server ip the same as before.

4.  Next, edit the file / etc / bind / named.conf.local

# Nano / etc / bind / named.conf.local

Here the DNS server is named bayuwicaksono.com. Correction on the setting of the second zone, which is on file "/ etc/bind/db.192"; not a file "/ etc/bind/db.44";.

5. The next step by adding the file / etc / bind / db.local into the directory / etc / bind / db.bayuwicaksono.com

# Cp / etc / bind / db.local / etc / bind / db.bayuwicaksono.com

Then edit the files you have added earlier

# Nano / etc / bind / db.bayuwicaksono.com


Here only name server is loaded and also the DNS server ip alone that could have also added to mailserver, ftp server or the other.

6.The next step is almost the same as the previous step by adding the file / etc/bind/db.127 into the directory / etc/bind/db.192

# Cp / etc/bind/db.127 / etc/bind/db.192

Then edit the files you have added earlier

# Nano / etc/bind/db.192

7. Then edit the file / etc / resolv.conf

# Nano / etc / resolv.conf

8. Then again edit the file / etc / hosts file to add the host computer information.

# Nano / etc / hosts

9. The final step to restart the services that have been in previous settings.

# / Etc/init.d/bind9 restart

# / Etc / init.d / networking restart


10. After all the settings then the live test DNS server is already running.
Continue Reading »

BackTrack Clean Hard Drive Install

This method of installation is the simplest available. The assumption is that the whole hard drive is going to be used for BackTrack.

1. Boot BackTrack on the machine to be installed. Once booted, type in “startx” to get to the KDE graphical
    interface.
2. Double click the “install.sh” script on the desktop, or run the command “ubiquity” in console.


3. Select your geographical location and click “forward”.  Same for the Keyboard layout.
4. The next screen allows you to configure the partitioning layout. The assumption is that we are deleting the 
    whole drive and installing BackTrack 



5. Accept the installation summary and client “Install”. Allow the installation to run and complete. Restart 
    when done.


6. Log into BackTrack with the default username and password root / toor. Change root password.
7. Fix the framebuffer splash by typing “fix-splash” ( or “fix-splash800? if you wish a 800×600 framebuffer), 
     reboot.
Continue Reading »

Saturday, October 22, 2011

how to install Kubuntu KDE in Ubuntu

Ubuntu default desktop uses Gnome window manager, which can be a difficult transition for Windows users. KDE desktop will be much more familiar to Windows users, such as KDE has something comparable to the start menu.

If you've installed Ubuntu, and you do not want to completely reset with Kubuntu, you can only install the KDE window manager to install kubuntu-desktop package and its dependencies.

You can install kubuntu using GUI tools, but the easiest way is to open a terminal window, and type the following command:

sudo apt-get install kubuntu-desktop

You will be prompted for a password, and then you will be asked again to ask if you really want to install. Press Y to continue, and let the install begin.

Download all the updates can take a while, so you might want to get a cup of coffee or something. You will be prompted to choose the login manager, which you can select as gdm (ubuntu) or kdm (kde). I decided to leave the default gdm.

Reboot the computer, and when you get to the login prompt, click the Options button in the lower left corner:

You will be prompted to select the session you want. Here we will click KDE to continue.

Login, and you should now see the KDE desktop! All applications are found in a menu-like "Start", as you can see:

Note: If you are running Ubuntu inside VMware and end up with some display issues which is really weird screen resolution is really great, but the desktop shows at 800 × 600 instead (see screenshot), there is a fix for this.

When I encountered this problem, I also can not use a mouse. I rebooted, and logged back into Ubuntu desktop instead of KDE, and go into the directory / etc/X11 /.

You may notice that your xorg.conf file backed up during installation xorg.conf.1 / KDE Kubuntu. Just copy xorg.conf.1 back into xorg.conf, reboot, and everything should be fine.

Again, do not mess with the xorg.conf file unless you are really experiencing this problem.
Continue Reading »