Sunday, 24 April 2016

Continues



Continuees.....

Common problems:


          If your box doesn't detect any modems, that probably means that you have no modem installed
:-D.
           Most PCI modems are NOT modems, but "winmodems". Winmodems, like all winhardware, are specifically designed to work ONLY on windoze. Don't blame linux, this happens because the
winmodem has not a critical chip that makes it work. It works on windoze cause the vendor
driver emulates that missing chip. And hat vendor driver is only available for windoze.

           Then use your modem to connect to your ISP and you're on the net. (on SuSE, with wvdial)

NOTE: Those strange and abnormal online services like aol are NOT ISPs. You cannot connect the
internet with aol. You can't hack with aol. i don't like aol. aol sucks.
Don't worry, we humans are not perfect, and it's probably not your fault. If that is your case,
leave aol and get a real ISP. Then you'll be forgiven.
  

   Don't get busted

         Let's  suppose you haven't skipped everything below and your Linux bow is now connected to the net.

             It's now turn for the STEALTH. You won't get busted! just follow my advices and you'll be safe.

- Don't hack
  this is the most effective stealth technique. not even the FBI can bust you. :-)
  If you choose this option, stop reading now, cause the rest is worthless and futile.

- If you change a webpage, DON'T SIGN! not even with a fake name. they can trace you, find
  your own website oe email address, find your ISP, your phone number, your home...
  and you get busted!!

- be PARANOID, don't talk about hacking to anyone unless he is really interested in hacking too.
  NEVER tell others you've hacked a box.

- NEVER hack directly from your box (your_box --> victim's box).
  Always use a third box in the middle (your_box --> lame_box --> victim's box).

  Where lame_box is a previously hacked box or...a shell account box!
  A shell account is a service where you get control of a box WITHOUT hacking it.
  There are a few places where shell accounts are given for free. One of them is nether.net.

- Don't hack dangerous boxes until you're a real hacker.
   Which boxes are dangerous:
     Military boxes
     Government boxes
     Important and powerful companies' boxes
     Security companies' boxes
   Which boxes are NOT dangerous:
     Educational boxes (any .edu domain)
     Little companies' boxes
     Japanese boxes

- Always connect to the internet through a free and anonymous ISP
  (did i tell you that AOL is NOT an ISP?)

- Use phreking techniques to redirect calls and use others' lines for your ISP call.
  Then it'll be really difficult to trace you. This is not a guide to phreaking anyway.


  TCP ports and scanning


 
Do you got your stealth linux box connected to the internet (not aol)?
Have you read the manual as i told you?


Then we shall start with the damn real thing.

First of all, you should know some things about the internet. It's based on the TPC/IP protocol,
(and others)

It works like this: every box has 65k connection PORTS. some of them are opened and waiting for
your data to be sent.

So you can open a connection and send data to any these ports. Those ports are associated with
a service:

Every service is hosted by a DAEMON. Commonly, a daemon or a server is a program that runs
on the box, opens its port and offers their damn service.

here are some common ports and their usual services (there are a lot more):

        Port number             Common service  Example daemon (d stands for daemon)
                21                      FTP             FTPd
                23                      Telnet  telnetd
                25                      SMTP            sendmail (yes!)
                80                      HTTP            apache
                110                     POP3            qpop

The cool thing of daemons is they have really serious security bugs.

That's why we want to know what daemons are running there, so...

We need to know what ports are opened in the box we want to hack.

How could we get that information?

We gotta use a scanner. A scanner is a program that tries to
connect to every port on the box and tells which of them are opened.

The best scanner i can think of is nmap, created by Fyodor.
You can get nmap from my site in tarball or rpm format.

Let's install nmap from an .rpm packet.

        bash-2.03$ rpm -i nmap-2.53-1.i386.rpm

then we run it:

        bash-2.03$ nmap -sS target.edu

        Starting nmap V. 2.53 by fyodor@insecure.org ( www.insecure.org/nmap/ )
        Interesting ports on target.edu (xx.xx.xx.xx):
        (The 1518 ports scanned but not shown below are in state: closed)
        Port       State       Service
        21/tcp     open        ftp
        23/tcp     open        telnet
        25/tcp     open        smtp
        80/tcp     open        http
        110/tcp    open        pop3


        Nmap run completed -- 1 IP address (1 host up) scanned in 34 seconds


Nmap has told us which ports are opened on target.edu and thus, what services it's offering.

I know, i said telnet is a service but is also a program (don't let this confuse you).
This program can open a TCP connection to the port you specify.

So lets see what's on that ports.

On your linux console, type:

        bash-2.03$ telnet target.edu 21
        Trying xx.xx.xx.xx...
        Connected to target.edu.
        Escape character is '^]'.
        220 target.edu FTP server (SunOS 5.6) ready.
        quit
        221 Goodbye.
        Connection closed by foreign host.

You see?
They speak out some valuable information:
-their operating system is SunOS 5.6
-their FTP daemon is the standard provided by the OS.

        bash-2.03$ telnet target.edu 25
        Trying xx.xx.xx.xx...
        Connected to target.edu.
        Escape character is '^]'.
        220 target.edu ESMTP Sendmail 8.11.0/8.9.3; Sun, 24 Sep 2000 09:18:14 -0
        400 (EDT)
        quit
        221 2.0.0 target.edu closing connection
        Connection closed by foreign host.

They like to tell us everything:
-their SMTP daemon is sendmail
-its version is 8.11.0/8.9.3

How to learn to hack in easy steps


Hi guys everyone needs to know the easy way to get hacking technique , Here are some of few steps that you can learn what it is

                                     Introduction


           Hi there, I'm TDC and I'd like to give back all the things i've learnt from the hackers i've
met. I want to write this because most tutorials i've found (very good tutorials) are now
old and don't fit just like they did before. This is why i'm going to teach you and show you
the way to learn to hack.

          If you are a hacker, you read this, and find something that's not correct or you don't like,
i want to know. mail me.

         I'm sure you'll find a lot of bad-grammars. Don't report them cause I'm not english and
i don't care at all as long as it's understandable.
 

Let's start


          If you read carefully all what i'm telling here, you are smart and you work hard on it,
you'll be able to hack. i promise. That doesn't really make you a hacker (but you're on the way).
A hacker is someone who is able to discover unknown vulnerabilities in software and able to
write the proper codes to exploit them.

           NOTE: If you've been unlucky, and before you found this document, you've readen the
guides to (mostly) harmless hacking, then forget everything you think you've learnt from them.
You won't understand some things from my tutorial until you unpoison your brain.

 Some definitions

            I'm going to refer to every kind of computer as a box, and only as a box.This includes your PC, any server, supercomputers, nuclear silos, HAL9000, Michael Knight's car, The Matrix, etc.

           The systems we're going to hack (with permission) are plenty of normal users, whose
don't have any remote idea about security, and the root. The root user is called superuser and is used by the admin to administer the system.

           I'm going to refer to the users of a system as lusers. Logically, I'll refer to the admin as superluser.

Operating Systems

           Ok, I assume you own a x86 box (this means an intel processor or compatible) running windoze9x, or perhaps a mac (motorola) box running macOS.

           You can't hack with that. In order to hack, you'll need one of those UNIX derived operating
systems.

This is for two main reasons:

                -the internet is full of UNIX boxes (windoze NT boxes are really few) running webservers and so on. to hack one of them, you need a minimun knowledge of a UNIX system, and what's better
 than running it at home?

                  -all the good hacking tools and exploit codes are for UNIX. You won't be able to use them unless  you're running some kind of it.

            Let's see where to find the unix you're interested on.

The UNIX systems may be divided in two main groups:

 - commercial UNIXes
 - free opensource UNIXes

            A commercial unix's price is not like windoze's price, and it usually can't run on your box,
so forget it.

           The free opensource UNIXes can also be divided in:
 -           BSD
  These are older and difficult to use. The most secure OS (openBSD) is in this group.
  You don't want them unless you're planning to install a server on them.

 - Linux
  Easy to use, stable, secure, and optimized for your kind of box. that's what we need.

          I strongly suggest you to get the SuSE distribution of Linux.
 It's the best one as i think, and i added here some tips for SuSE, so all should be easier.

          If you own an intel box, then order the PC version.

          If you own a mac box, then order the PowerPC version.

        Whatever you do, DON'T PICK THE COREL DISTRIBUTION, it sucks.

        It's possible you have problem with your hardware on the installation. Read the manual, ask
for technical support or buy new hardware, just install it as you can.

         This is really important! READ THE MANUAL, or even buy a UNIX book.
Books about TCP/IP and C programming are also useful.

         If you don't, you won't understand some things i'll explain later. And, of course, you'll
never become a hacker if you don't read a lot of that 'literature'.

Internet

          Yes! you wanted to hack, didn't you? do you want to hack your own box or what?
You want to hack internet boxes! So lets connect to the internet.

          Yes, i know you've gotten this document from the internet, but that was with windoze
and it was much easier. Now you're another person, someone who screams for knowledge and wisdom. You're a Linux user, and you gotta open your way to the Internet.

Thursday, 21 April 2016

HACKING TUTORIALS

          Hi guys thanks for the response that you have made and also made me to think of going on with hacking tutorials, ya ,,,,,,,, you got that, From now on we are going to see some or more than some of it.

                                    Brace yourself guys its ..... a BIG BOYS stuff,

          Ok today we are going to learn about some of the old mechanism where you can find the actual hacking got up with.

10 reasons why PCs crash U must Know:


Fatal error:

          The system has become unstable or is busy," it says. "Enter to return to Windows or press Control-Alt-Delete to restart your computer. If you do this you will lose any unsaved information in all open applications."

            You have just been struck by the Blue Screen of Death. Anyone who uses Mcft Windows will be familiar with this. What can you do? More importantly, how can you prevent it happening?

 Hardware conflict:

           The number one reason why Windows crashes is hardware conflict. Each hardware device communicates to other devices through an interrupt request channel (IRQ). These are supposed to be unique for each device.

            For example, a printer usually connects internally on IRQ 7. The keyboard usually uses IRQ 1 and the floppy disk drive IRQ 6. Each device will try to hog a single IRQ for itself.

             If there are a lot of devices, or if they are not installed properly, two of them may end up sharing the same IRQ number. When the user tries to use both devices at the same time, a crash can happen. The way to check if your computer has a hardware conflict is through the following route:

                           * Start-Settings-Control Panel-System-Device Manager.

            Often if a device has a problem a yellow '!' appears next to its description in the Device Manager. Highlight Computer (in the Device Manager) and press Properties to see the IRQ numbers used by your computer. If the IRQ number appears twice, two devices may be using it.

            Sometimes a device might share an IRQ with something described as 'IRQ holder for PCI steering'. This can be ignored. The best way to fix this problem is to remove the problem device and reinstall it.
         
            Sometimes you may have to find more recent drivers on the internet to make the device function properly.  If the device is a soundcard, or a modem, it can often be fixed by moving it to a different slot on the motherboard (be careful about opening your computer, as you may void the warranty).

            When working inside a computer you should switch it off, unplug the mains lead and touch an unpainted metal surface to discharge any static electricity.

            To be fair to Mcft, the problem with IRQ numbers is not of its making. It is a legacy problem going back to the first PC designs using the IBM 8086 chip. Initially there were only eight IRQs. Today there are 16 IRQs in a PC. It is easy to run out of them. There are plans to increase the number of IRQs in future designs.

Bad Ram:

            Ram (random-access memory) problems might bring on the blue screen of death with a message saying Fatal Exception Error. A fatal error indicates a serious hardware problem. Sometimes it may mean a part is damaged and will need replacing.

           But a fatal error caused by Ram might be caused by a mismatch of chips. For example, mixing 70-nanosecond (70ns) Ram with 60ns Ram will usually force the computer to run all the Ram at the slower speed. This will often crash the machine if the Ram is overworked.

           One way around this problem is to enter the BIOS settings and increase the wait state of the Ram. This can make it more stable. Another way to troubleshoot a suspected Ram problem is to rearrange the Ram chips on the motherboard, or take some of them out. Then try to repeat the circumstances that caused the crash. When handling Ram try not to touch the gold connections, as they can be easily damaged.

            Parity error messages also refer to Ram. Modern Ram chips are either parity (ECC) or non parity (non-ECC). It is best not to mix the two types, as this can be a cause of trouble.

            EMM386 error messages refer to memory problems but may not be connected to bad Ram. This may be due to free memory problems often linked to old Dos-based programmes.

BIOS settings

            Every motherboard is supplied with a range of chipset settings that are decided in the factory. A common way to access these settings is to press the F2 or delete button during the first few seconds of a boot-up.

           Once inside the BIOS, great care should be taken. It is a good idea to write down on a piece of paper all the settings that appear on the screen. That way, if you change something and the computer becomes more unstable, you will know what settings to revert to.

           A common BIOS error concerns the CAS latency. This refers to the Ram. Older EDO (extended data out) Ram has a CAS latency of 3. Newer SDRam has a CAS latency of 2. Setting the wrong figure can cause the Ram to lock up and freeze the computer's display.

          Mcft Windows is better at allocating IRQ numbers than any BIOS. If possible set the IRQ numbers to Auto in the BIOS. This will allow Windows to allocate the IRQ numbers (make sure the BIOS setting for Plug and Play OS is switched to 'yes' to allow Windows to do this.).

Hard disk drives

         After a few weeks, the information on a hard disk drive starts to become piecemeal or fragmented. It is a good idea to defragment the hard disk every week or so, to prevent the disk from causing a screen freeze. Go to

                        *  Start-Programs-Accessories-System Tools-Disk Defragmenter

        This will start the procedure. You will be unable to write data to the hard drive (to save it) while the disk is defragmenting, so it is a good idea to schedule the procedure for a period of inactivity using the Task Scheduler.

        The Task Scheduler should be one of the small icons on the bottom right of the Windows opening page (the desktop).

        Some lockups and screen freezes caused by hard disk problems can be solved by reducing the read-ahead optimisation. This can be adjusted by going to

                      * Start-Settings-Control Panel-System Icon-Performance-File System-Hard Disk.

         Hard disks will slow down and crash if they are too full. Do some housekeeping on your hard drive every few months and free some space on it. Open the Windows folder on the C drive and find the Temporary Internet Files folder. Deleting the contents (not the folder) can free a lot of space.

          Empty the Recycle Bin every week to free more space. Hard disk drives should be scanned every week for errors or bad sectors. Go to

                      * Start-Programs-Accessories-System Tools-ScanDisk

         Otherwise assign the Task Scheduler to perform this operation at night when the computer is not in use.

Fatal OE exceptions and VXD errors

          Fatal OE exception errors and VXD errors are often caused by video card problems.These can often be resolved easily by reducing the resolution of the video display. Go to

                      * Start-Settings-Control Panel-Display-Settings

          Here you should slide the screen area bar to the left. Take a look at the colour settings on the left of that window. For most desktops, high colour 16-bit depth is adequate.

          If the screen freezes or you experience system lockups it might be due to the video card. Make sure it does not have a hardware conflict. Go to

                     * Start-Settings-Control Panel-System-Device Manager

          Here, select  the + beside Display Adapter. A line of text describing your video card should appear. Select it (make it blue) and press properties. Then select Resources and select each line in the window. Look for a message that says No Conflicts.

          If you have video card hardware conflict, you will see it here. Be careful at this point and make a note of everything you do in case you make things worse.

          The way to resolve a hardware conflict is to uncheck the Use Automatic Settings box and hit the Change Settings button. You are searching for a setting that will display a No Conflicts message.

          Another useful way to resolve video problems is to go to

                    * Start-Settings-Control Panel-System-Performance-Graphics

          Here you should move the Hardware Acceleration slider to the left. As ever, the most common cause of problems relating to graphics cards is old or faulty drivers (a driver is a small piece of software used by a computer to communicate with a device).

         Look up your video card's manufacturer on the internet and search for the most recent drivers for it.

Viruses

         Often the first sign of a virus infection is instability. Some viruses erase the boot sector of a hard drive, making it impossible to start. This is why it is a good idea to create a Windows start-up disk. Go to

                  * Start-Settings-Control Panel-Add/Remove Programs

         Here, look for the Start Up Disk tab. Virus protection requires constant vigilance.A virus scanner requires a list of virus signatures in order to be able to identify viruses. These signatures are stored in a DAT file. DAT files should be updated weekly from the website of your antivirus software manufacturer.

         An excellent antivirus programme is McAfee VirusScan by Network Associates ( www.nai.com). Another is Norton AntiVirus 2000, made by Symantec ( www.symantec.com).

Printers

         The action of sending a document to print creates a bigger file, often called a postscript file.Printers have only a small amount of memory, called a buffer. This can be easily overloaded. Printing a document also uses a considerable amount of CPU power. This will also slow down the computer's performance.

          If the printer is trying to print unusual characters, these might not be recognised, and can crash the computer. Sometimes printers will not recover from a crash because of confusion in the buffer. A good way to clear the buffer is to unplug the printer for ten seconds. Booting up from a powerless state, also called a cold boot, will restore the printer's default settings and you may be able to carry on.

Software

          A common cause of computer crash is faulty or badly-installed software. Often the problem can be cured by uninstalling the software and then reinstalling it. Use Norton Uninstall or Uninstall Shield to remove an application from your system properly. This will also remove references to the programme in the System Registry and leaves the way clear for a completely fresh copy.

         The System Registry can be corrupted by old references to obsolete software that you thought was uninstalled. Use Reg Cleaner by Jouni Vuorio to clean up the System Registry and remove obsolete entries. It works on Windows 95, Windows 98, Windows 98 SE (Second Edition), Windows Millennium Edition (ME), NT4 and Windows 2000.

          Read the instructions and use it carefully so you don't do permanent damage to the Registry. If the Registry is damaged you will have to reinstall your operating system. Often a Windows problem can be resolved by entering Safe Mode. This can be done during start-up. When you see the message "Starting Windows" press F4. This should take you into Safe Mode.

           Safe Mode loads a minimum of drivers. It allows you to find and fix problems that prevent Windows from loading properly.Sometimes installing Windows is difficult because of unsuitable BIOS settings. If you keep getting SUWIN error messages (Windows setup) during the Windows installation, then try entering the BIOS and disabling the CPU internal cache. Try to disable the Level 2 (L2) cache if that doesn't work.

           Remember to restore all the BIOS settings back to their former settings following installation.

Overheating

           Central processing units (CPUs) are usually equipped with fans to keep them cool. If the fan fails or if the CPU gets old it may start to overheat and generate a particular kind of error called a kernel error. This is a common problem in chips that have been overclocked to operate at higher speeds than they are supposed to.

          One remedy is to get a bigger better fan and install it on top of the CPU.CPU problems can often be fixed by disabling the CPU internal cache in the BIOS. This will make the machine run more slowly, but it should also be more stable.

Power supply problems

         With all the new construction going on around the country the steady supply of electricity has become disrupted. A power surge or spike can crash a computer as easily as a power cut.

          If this has become a nuisance for you then consider buying a uninterrupted power supply (UPS). This will give you a clean power supply when there is electricity, and it will give you a few minutes to perform a controlled shutdown in case of a power cut.

           It is a good investment if your data are critical, because a power cut will cause any unsaved data to be lost.

Wednesday, 20 April 2016

NEW TOPIC



              Hi guys this is the end of the core java, Lets get into a new area , Where i got up with an idea , that's make you learn about all the new and popular software installation and the work it does, lets get into some of interesting and interactive session from now........

                Also i let you know about some of geeky stuff's , Lets start with a basic Free based installing guide, This guide may look too old but this makes all the installation say, guides, softwares , applications ...etc....

Lets Roll it......

                A step-by-step guide to installing FreeBSD 5. It assumes moderate experience with linux and leaves you with a fully updated FreeBSD system.


                                 FreeBSD Installation


A. 5.x vs 4.x

                 The first thing to understand about FreeBSD is that there are two lines of development. The -STABLE branch is marked with a 4.x version number and the most recent version is 4.10. It is well tested and very solid, but does not include the most recent technology. The -CURRENT branch, marked with a 5.x version, is the “unstable” branch. However, it is nicely stable at the moment and is coming along quite well. Most users should go with 5.x and these instructions are only valid for that tree.

                    NOTE: DragonFlyBSD ( www.dragonflybsd.org ) is a continuation of the 4.x line. It uses lock-less (no mutexes) SMP support and a Light Weight Kernel Threading system. It has a lot of promise and is developing at a breakneck pace, but it should still be thought of as “R/D.”

B. Getting Media

                I am not going to say much about this. There are links to various ftp mirrors at www.freebsd.org and the directory structure is fairly self-explanatory. There are however several choices for ISO. You should choose the miniinst ISO. It is small and will include everything you need for the base system.


C. Starting Installation

                 After, the CD boots up you will enter the...ahh.....majestic sysinstall. You can safely ignore most of the options and just choose a standard installation. Most of the install process is pretty easy and anyone who has some experience with linux or unix will be able to handle it without much stress. However, creating partitions and dealing with drives will seem very odd to your standard linux user.

D. Hard Disc Management in FreeBSD

                Ok, the first thing to get used to here is that IDE drives are not hda, hdb...etc. They are ad0, ad1 and so forth. SCSI discs are da0, da1...and so on. There is one other thing that is going to freak some people out. You create slices, not partitions, on the disc and then create partitions within those slices. For example, the first partition in the first slice on the first IDE disc would be ad0s1a. Just accept it.

E. Partitioning

              Sysinstall will lead you through the partitioning and its fairly easy to understand. The first part will ask you to choose a disc or discs to partition and then will show you a "slice editor." This is where you will create your slice. I advise you to only make one. While multiple slices are easy to deal with, it just adds complication. If this is not your first installation of a BSD type OS, then you can ignore me and why are you reading this again?

              After creating your slice, you will be prompted to choose the drive(s) to install an MBR on. The FreeBSD boot loader is nothing to write home about, but it tends towards working. After this step, you can create partitions. There is not much to say here. At the top of the screen it will show your slice(s) and when one of them is selected you can use the controls to create a partition on it. You will need at least a root and swap partition. On the non-swap partitions it is usually a good idea to enable soft-updates.


F. Distribution Sets

               This is a simple section, select minimal.

G. Continue Installation

               The rest of this is pretty simple. Make sure you install from the CD and not the Internet. The bulk of the install is now done. After it copies files to your disc, it will start the configuration process. This is all pretty self-evident, but there are a couple things you should know.

Network Configuration

               Don't be scared by the names, in *BSD devices are named after their drivers. There is also a short description after the name, so you should be able to choose the right one. The rest of the network config is easy, just follow the prompts.

System Console Configuration

             You can pretty much ignore this, you may want to look around for your own knowledge and of course you could pick a nice screen saver here, but other then that I would leave it alone for now.

Time Zone

              All I have to say here is that if you live in the US, after you choose “America – North and South” hit the end key. The US is at the bottom of the list and hitting end is the quickest way there.

Linux

              Say no, we will do this later and with an updated linux_base.
 

Package Installation

            At this point, the installer will ask you to install binary packages. Say no. These binaries are out of date and not included on our CD.

Of users and roots

           This isn't the most thrilling section, add a user when it asks you to and set a root password after that. The only thing I have to say about this process is when the new user dialog comes up leave the “Group:” box unchanged and add “wheel” to the Member groups. You also might want to set your shell to /bin/tcsh. As for setting the root password, if you can't handle that we have bigger problems.

Rebooting

            Ok, next it will ask if you would like to visit the general config area. Select no and you will be brought back to the main menu. Exit the install, reboot without the CD in and enjoy the boot messages.
 

H. The Real Post-Install

               At this point, I am going to assume that you are now looking at a login prompt and thinking “my my...FreeBSD boots quite quickly doesn't it.” Well, our task is not done yet...there is a reason we did a minimal install. We are going to do most of it ourselves. First, lets upgrade to -CURRENT. This isn't a practice I would usually recommend, but 5.x is close to being tagged stable and -CURRENT is rather solid at the moment. First, I need to explain how things are done in the BSD world.

device pcm

          This will add sound support to the kernel. Be aware that you don't need to do this, you can load binary modules at boot or after boot, but this way is easy and sound is used often. Save the file and exit. Go back to your buildworld console and when its done execute make buildkernel KERNCONF=YOUR_KERNEL_CONFIG_NAME

NOTE: NOT THE PATH OF THE KERNEL CONFIG..it knows to look in /usr/src/sys/i386/conf

Installing Your World

                 This isn't that difficult. First run make installkernel KERNCONF= your config name. Now here is the interesting part. Run mergemaster -p, this program looks through your etc and updates it to match the new /etc in /usr/src. It will display changed files to you, press q and it will give you options. Something like i (install), m (merge) etc.

              Pick merge and it will open a nice little screen that shows you one file on the right and one on the left. It will go section by section, showing the areas that have changed. Press r or l to choose which section to keep. Its pretty easy to see which section has new stuff and which does not. After the merge, it will prompt you with options for the newly merged file. One of these will be install and this is the one you want. In the latest current, most of what you will be showed is user and group files. 

              Make sure you do select the sections with the new users and groups. After this is done, it will ask you a couple questions that you can say yes to. Now that your /etc is updated run make installworld then reboot.

NOTE: You usually don't need to run mergemaster. However, 5.2.1 is a pretty old release and -CURRENT has come a long way.

I. Ports

           Welcome to running current. The rest is easy. cd back to /usr and edit the ports supfile the same way you did the standard one. Run cvsup on it and wait. After its done, you will have a full ports tree. There is not much left to say. You now have a working system and a fully updated one too. To install software from ports cd to /usr/ports/category/softwarename/ and run make install clean . If you want linux binary support, install the linux_base port. To find where it is cd to /usr/ports and run make search name=linux_base | less . Enable loading the kernel modules for linux binary support by editing /etc/rc.conf. Just add the line linux_enable="YES" to the file and your set. If this is a desktop system, I would recommend installing /usr/ports/x11/xorg and your choice of /usr/ports/x11/gnome2 or kde3. Have fun .


:-) Thats it for today guys , This post may looks some of OLD SCHOOL stuff but this is the thing we actualy forgets while installing or updating packages, 

         Make some time to read it, and delver your comment about my new thing,, Support needed...

Friday, 15 April 2016

THREAD

               Well on this time we are going to discuss about thread in java. Thread is a light weight sub process, a smallest unit of processing. Thread uses the multi-threading to run multiple threads simultaneously in the program, Multi-threading uses the common memory area for all the process.

                 In multitasking there are two types of thread they are,

                                                                   *   Process-based
                                                                   *   Thread-Based

PROCESS BASED:

                 It is a heavy-weight sub process, it uses the separate memory area for each process and it takes time while switching from one process to another process.

THREAD BASED:

                 It is a light-weight subprocess, it uses the signal memory area for all the process and it takes the less time for switching from one process to another process

                  In java there are five states of thread , but according process, Sun there is four states they are new , Runnable , non-runnable and terminate.

                  New In the beginning thread is in new state if you create an instance of thread class but before the invocation of start() method

Runnable-> The thread is in runnable state after invocation of start() method, but the thread scheduler has not selected it to be the running thread.

Running-> The thread is in running state if the thread scheduler has selected it.

Non-Runnable-> This is the state when the thread is still alive , but is currently not eligible to run,

Terminated-> A thread is in terminated or dead state when its run() method exits.

MAIN THREAD:

                 In java it contain the main thread on an main method.There are many thread methods are used in java they are start(), sleep(), run(), join(), wait(), isAlive, getpriority(), gtcurrentthread(), etc.

                  There are two ways to access a thread in java they are 
                                                  *   By implementing the Runnable
                                                  *  By extending the Thread

Implementing the runnable:

                 While implementing the runnableThreadExa implements 

                                              Runnable{
                                             @override
                                              public void run()
                                           {
                                        //TODD AUTO-GENERATED METHOD STUB
                                                        for(int i=5;i>0;i--)
                                                  {
                                          try{
                                                          Thread.sleep(500);
                                                          System.out.println(i);
                                                   }
                                                      catch(InterruptException e)
                                             {
                                            //TODD AUTO-GENERATED CATCH BLOCK
                                                       e.printStackTrace();
                                                   }
                                                 }
                                                      }
                             public static void main(String args[])throws InterruptedException
                                                   {
                                              RunnableThreadExa runn=new RunnableThreadEXa();
                                                         Thread t=new thread(runn);
                                                         Thread t1=new thread(runn);
                                                         Thread t2=new thread(runn);
                                                         system.out.println(t.getName());
                                                               t.setname(jarvis);
                                                               t.start();
                                                                t.start();
                                                                t.join();
                                                                  }
                                                                   }

Extending the thread:


                                            public class extendThread extends thread
                                             {
                                                      pubic void run()
                                            {
                                            //TODD AUTO-GENERATED METHOD STUB
                                                       for(int i=5;i>0;i++)
                                            {
                                                           try{
                                                          sleep(500);
                                                        }

                                                        catch (InreruptsException e){
                                            //TODD AUTO-GENERATED CATCH BLOCK 
                                                       e.intracellular();
                                                              }
                                                          }
                                                             }
                                                    public static void main(String args[])
                                                                               throws exception
                                                       {
                                                          thread t=new thread();
                                                          thread t1=new thread();
                                                        system.out.println(t.getName);
                                                            t.setName(jarvis);
                                                            t.start();
                                                             t.start();
                                                             t.join();
                                                                   }
                                                                        } 

That's all for today guys we have seen threads and we ill see other topic in next session