Monday 31 December 2012

TOP 100 LINUX TIPS AND TRICKS - 5


Tip 41: Read files from FAT32 drives
The Linux utility mount can read any file system that the kernel supports. Since version 2.0.34, the kernel
supports FAT32, which is the main file system used by Windows 98.
To read the FAT32 file system you need to specify the -tvfat option to mount. Here is an example:
mount -tvfat /dev/hdb1 /mnt

Tip 42: TV on Linux
A number of cards exist allowing you to watch and record TV on your PC. Most come with software for
Windows only, like so many things, but it is possible to do the same thing on Linux.
Linux comes with several drivers which make up the Video4Linux drivers. Several cards are supported by
these drivers, and a list of them is available at http://roadrunner.swansea.linux.org.uk/v4l.shtml. This is the
driver side. You also need software to use the devices.
Several programs are available to watch TV, capture images and even Web applications. A list of some of the
programs is available at http://www.thp.uni-koeln.de/~rjkm/linux/bttv.html including datasheets.

Tip 43: Device drivers
Hardware devices are not of much use without device drivers. Fortunately, the Linux kernel, like every other
operating system, comes with a lot of them.
When you configure a kernel, the menu from which you must choose which devices you have in your
computer is actually a list of device drivers available to you. Here is how to configure your kernel:
cd /usr/src/linux
make menuconfig
Linux, still not being as popular as some other operating systems, can't support all of the existing hardware.
If you have a device that is not in the list, then you will need to search for it on the Web. Some drivers may
exist for Linux and not be in the default kernel. But if a device is not currently supported by any driver for
Linux, then you will have to wait for someone to make one, or make one yourself.
If you want to write your own driver, the best place to start is at The Kernel Hacker's Guide, available at
http://khg.redhat.com/HyperNews/get/khg.html

Tip 44: Mouse problems
The mouse is a very important part of a computer. In X, you can't do much without it. Even in console some
applications will allow you to use it. You must first configure it.
Like every other device, the mouse has a device file in the /dev directory. Depending on your mouse type, it
will be either /dev/psaux for a PS/2 mouse, or /dev/cua0 for a serial mouse on COM1.
To make it easy to use in the future, you should link the right device file to /dev/mouse:
ln -s /dev/cua0 /dev/mouse
Then, when you configure X Window or any other program that requires a mouse, you can specify
/dev/mouse.

Tip 45: International keyboards
The X Window System comes by default with an english keymap on most distributions. If you have a
keyboard from another country, it may be a problem.
The XKB extension was provided for that purpose. If you look in your X configuration file, usualy in
/etc/X11 called XF86Config, you will find a section about the keyboard. There, you may specify several
parameters, including the keymap and keycodes to use.
For a list of available keymaps, you can look in your X directory. Most of those keymaps are also available
from the graphical configuration program, XF86Setup.

Tip 46: Background image in X Window
By default, the background in X Window is a grey background. Some window managers have their own
options to set other backgrounds, and some don't.
A program you can use to set your background is a program that comes with most Linux distributions. It's
called XV, and you can specify which background image you want with this line:
xv -quit -root image.gif
This will set the background to be the image.gif file. You can add that line in your .xinitrc file, in your home
directory, so it is executed each time you launch X Window.

Tip 47: Customize Netscape Communicator
Netscape Communicator has one nice feature that few people use. When you download it, it has a Personal
Toolbar with buttons that most of us may not find really useful, so we either turn it off or don't look at it.
I found it to be a much more useful tool than the Bookmarks. What appears on that bar is simply what's
inside the Personal Folder inside your Bookmarks.
You can ceate folders in it for news sites, Linux sites, etc and move your bookmarks into them (with the Edit
Bookmarks option).
You then have your own personal portal in your browser

Tip 48: POP3 in Pine
Many Linux users use Pine as their mail client. Lets see how you can use Pine both with local mail and with
POP3 mail, without using fetchmail or some other tool to get POP mail first.
First you will want to use multiple config files:
pine -p localmail
pine -p popserver1
pine -p popserver2
You need to configure Pine to use your POP3 server. In the program go to Setup, Config. You'll want to set
something like this in your inbox-path:
{pop.server.com/pop3/user=myid}INBOX
Now restart Pine and it will ask you for your password and connect to the remote server, and use it just like if
you were accessing local mail.

Tip 49: Multiple accounts in Pine
You can use multiple POP3, IMAP or other incoming mail accounts in the same config file by editing the line
"incoming-folders=" from .pinerc in your local home directory.
The syntax is:
incoming-folders= "Nick1" {pop1.domain.com/pop3/user=login}INBOX,
"Nick2" {pop2.somewhere.com/pop3/user=login}INBOX
This will create a new collection in Pine with these folders in it, plus the mail folder on the local system.

Tip 50: Running Java programs
Java is an interpreted language. Usualy Java is found on the Web, in small programs called applets. But many
Java applications exist. They are like applets, but require a Java Virtual Machine to run on your system.
Netscape Communicator and any Java-enabled browser can run Java applets, but what if you want to run Java
programs?
Java programs are files ending with .class and must be run in a JVM. The Java Development Kit comes with
a JVM. What you need is the Linux port of the JDK that you can find at http://www.blackdown.org. Once
installed, you can run any Java application using the line:
java Program
Where java is the JVM, from the JDK package, and Program is the class found inside the Program.class file.
Note that you do not have to specify the .class part of the file to run it.

TOP 100 LINUX TIPS AND TRICKS - 4


Tip 31: Added processors
Dual processors are becoming more and more popular in computers. Of course, you won't be able to see
much performance increase in Linux unless you tell Linux about the second CPU. Here is how to do it.
Go in the kernel, and enable SMP. SMP means Symetric Multi-Processing and tells the kernel that more than
one processor can be used.
After a reboot, Linux should tell you that it has detected 2 processors and what their status are.

Tip 32: Detecting an ISA device
ISA devices like modems should be detected automatically by the kernel. One case where they would not be
detected is if the device is Plug and Play. The kernel won't be able to detect ISA PnP devices unless they
have been prepared by a program called isapnptools.
The trick is to use this program in initiation scripts. It will detect the ISA PnP devices and make them
available to kernel modules and applications.
For example if you want to access an ISA PnP sound card, you will need to compile sound as a module in the
kernel, and use isapnptools before loading the module.

Tip 33: Find hardware information
When the Linux system boots, it will try to detect the hardware installed in the computer. It will then make a
fake file system called procfs and will store important information about your system in it.
You can get information about your system simply by browsing the directory /proc. The files in there will
contain information such as the processor you have, the amount of memory and the file systems the kernel
currently supports.
A usefull application exists to browse the /proc file system. It is called Xproc and is available from
http://devplanet.fastethernet.net/files.html:

Tip 34: Blinking leds on the keyboard
Keyboard leds are pretty boring. Usualy you know if the num lock is on or if you are writing in upper case
letters. Could we make them do something more useful? Of course.
The keyboard leds can be controlled by a device driver called the misc driver. That driver can control all
kinds of misc things. You could write your own driver to make them blink or light up at any system event.
A program called tleds is available from http://www.hut.fi/~jlohikos/tleds.html. That program will have them
blink based on network usage. One will blink when packets go in, and the other when packets go out.

Tip 35: Reading a foreign file system
File systems are defined in the kernel. The kernel supports many file systems, but they need to be compiled
in, or compiled as a module. When you compile a file system in the kernel, all you need to do is use mount
with the -t option and the right file system type.
If you have compiled a driver for a file system as a module, then you need to load the module first.
Here are a few of the available file systems:
·  msdos: This is the FAT file system used by DOS.
·  vfat: This is the FAT32 file system used by Windows 95 and Windows 98.
·  ext2: This is the default Linux file system.
·  iso9660: This is the default CD-ROM format.

Tip 36: Can't mount root fs
When you boot a system, this is an error that will halt the system. This error means that the kernel can't
mount the root file system, so it can't get all of its configuration files.
There are a few cases where this happens:
·  No IDE support in the kernel. If your main hard drive is an IDE, and you have recompiled
without including "Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support" or some other
basic IDE device drivers.
·  File system not supported. Usually the root file system should be of type ext2. You need to
make sure that ext2 is compiled in the kernel, and not as a module because you can't load
modules without first mounting the root file system.
·  The drive is not ready. If you have removed the drive, the hard disk died or the BIOS didn't
detect the device for some reason, then the kernel won't be able to mount it.

Tip 37: Linux on a 286?
Linux is a multi-user, multitasking operating system which requires a 386 processor or more to run. This is
because the lower PC processors don't have what is needed for the Linux kernel.
Linux being open source, is being ported to many architectures. And one group decided to modify the kernel
so it would run on a 286 processor. The project page is http://www.uk.linux.org/ELKS-Home/index.html.

Tip 38: Linux without a hard drive
Modern Linux distributions require around 100 megs to 200 megs of hard disk space to install. But is it
possible to run Linux on a system without a hard drive? Yes it is.
The Linux Router Project is a full-featured Linux distribution that fits on one diskette. It was made for
routers, and use modules to add the software packages you need, including DNS servers, Web servers, email
and routing. You can find more information on the Linux Router Project at http://www.linuxrouter.org.

Tip 39: Shutdown and power off
Linux, like most other operating systems, must be shutdown in a specified manner. You can't turn the power
off on a computer running Linux, or you may lose some data.
Here are the steps that need to be done when you want to shutdown:
·  The operating system needs to stop all the running processes and logout the users.
·  Various servers need to be shutdown in a proper way.
·  All the mounted file systems need to be unmounted safely and unwritten data need to be stored
on the disk.
The system can then be turned off safely.
To accomplish all these tasks, the shutdown command exists. That command has a lot of options, and you
should explore them before trying anything at random. Another way to shutdown a Linux system is to set the
runlevel to 0, the default shutdown level, with the init program.

Tip 40: LPD started but no device found
The printer daemon is called LPD. It will be started at boot time and assume that a printer is connected to the
printer port. But a problem may occur when the daemon is started and no device is found.
The most common cause for this problem is a configuration problem in the kernel. Make sure that parallel
port, PC-style parallel port, and printer support is enabled in the configuration, and that modules are loaded.

TOP 100 LINUX TIPS AND TRICKS - 3


Tip 21: Default boot mode
When a Linux system boots, it loads the kernel, all its drivers, and the networking servers, then the system
will display a text login prompt. There, users can enter their user names and their passwords. But it doesn't
have to boot this way.
There are 3 modes defined in most Linux distributions that can be used for booting. They are defined in
/etc/inittab and have specific numbers. The first mode, also called runlevel 1, is single user mode. That mode
will only boot the system for 1 user, with no networking. Runlevel 3 is the default mode. It will load the
networking servers and display a text login prompt. Runlevel 5 is the graphical mode. If you have X Window
installed and configured, you can use it to display a graphical login prompt.
The way to change this is to edit /etc/inittab and change the initdefault line:
id:3:initdefault:
Changing a 3 to a 5 will make the system display a xdm graphical screen on bootup.

Tip 22: More information from usenet
There are newsgroups about everything. Newsgroups on the latest TV show, on gardening, and more. There
also are newsgroups on Linux. In fact, the best help can be obtained from newsgroups. But which ones?
Here is a list of a few newsgroups dedicated to Linux, and what they are used for:
·  comp.os.linux.advocacy: This newsgroup is used for advocacy. People stating their opinions
about Linux or Linux applications, and about Linux competitors. Some post facts, some will
flame other people.
·  comp.os.linux.setup: This is a general purpose setup help group. Users will post questions and
get answers there.
·  linux.*: There now is a linux section on usenet. Currently there are more than 150 groups in
linux.* and they are all about Linux!
Make sure you read the FAQ and rules of every newsgroup you want to post to.

Tip 23: Bytes per inodes
When you format a partition using Linux's primary file system, ext2, you have the choice of how many bytes
per inode you want. From the man page:
-i bytes-per-inode
Specify the bytes/inode ratio. mke2fs creates an
inode for every bytes-per-inode bytes of space on
the disk. This value defaults to 4096 bytes.
bytes-per-inode must be at least 1024.
This means that by using a smaller size, you will save disk space but may slow down the system. It is a
space/speed trade off.
This is similar to one of FAT16/FAT32' major differences.

Tip 24: LILO and boot problems
When a computer starts, the number of beeps the BIOS outputs tells you the state of the computer. On some
computers, one beep means all is ok, but 2 beeps mean there is an error. LILO uses the same kind of codes.
The number of letters you see from the word LILO on the screen says what is wrong. The whole word means
everything is fine, only LI means only the first part of LILO could be loaded. A full description of this is
available from the Bootdisk HOWTO.
When LILO can't load, it's a major problem. This often means that the boot code was corrupted. The only
way to boot is from a floppy disk. In RedHat, you can use the rescue disk, in Slackware, you can use the boot
disk with the "mount" image.
When LILO is fine, it's often easier to figure a boot problem. If the kernel panics when it tries to boot, it is
usualy due to a configuration error. You can tell LILO to mount another kernel you may have, like a "safe" or
"old" image you kept for these cases. If the problem is in initialization scripts, you can tell LILO to boot
directly into a shell with the following boot command line:
LILO boot: linux init=/bin/sh
Where "linux" would be your kernel image.

Tip 25: Making CD-ROM images
With other operating systems, such as Microsoft Windows or IBM OS/2, you are not allowed in the license to
make your own CD-ROM with the OS on it and then distribute it.
Linux, being Open Source and free, can be copied. You can download a distribution or buy it from an online
store and burn your own copy, and then install it on many computers, or give it to your friends. Usually, you
will find instructions on how to do that on the FTP server for your favorite distribution. You will need the
main directory on the CD-ROM. The sources are not needed since they are available from the FTP site.
Some distributions also come with ISO images of their CD-ROM. This is a single file that can be put onto a
CD-ROM, and will create a full file system with files on it.
One thing you have to be careful is not to copy commercial programs. The basic CD-ROM where the Linux
distribution is located is composed of free software. But some distributions may come with other commercial
programs, and you should read the license first.

Tip 26: FTP access restrictions
When you first install Linux, it comes with a lot of Internet services running, including mail, telnet, finger
and FTP. You really should disable all those that you don't need from /etc/inetd.conf and your startup scripts.
FTP may be very useful, but must be configured correctly. It can allow people to log into their accounts, it
can allow anonymous users to login to a public software directory, and it can display nice messages to them.
The files that you will probably want to modify are /etc/ftpusers and /etc/ftpaccess.
The file /etc/ftpusers is very simple. It lists the people that will not be allowed to use FTP to your system. The
root account, and other system accounts should be in that file.
The file /etc/ftpaccess is a bit more complex and controls the behaviour of the FTP server. It tells it what to
use as README file to display on a directory listing, what kind of logs to create and what messages to
display.
Note that if you create an anonymous FTP area, you will need to read the FTP man page and do exactly what
it tells you to avoid possible security risks.

Tip 27: Detecting 2 ethernet cards
To configure an ethernet card in Linux, you need to enable it in the kernel. Then the kernel will detect your
ethernet card if it is at a common IO port. But it will stop there, and will never check if you have 2 ethernet
cards.
The trick is to tell the ethernet driver that there are 2 cards in the system. The following line will tell the
kernel that there is an ethernet card at IRQ 10 and IO 0x300, and another one at IRQ 9 and IO 0x340:
ether=10,0x300,eth0 ether=9,0x340,eth1
You can add that line on bootup at the "boot:" prompt, or in the /etc/lilo.conf file. Don't forget to run:
lilo
That will reload the lilo.conf file and enable changes.

Tip 28: Everything on sound cards
A sound card can be easy or hard to detect. It depends on who made it. Many Sound Blaster Compatible
cards in fact are not compatible with the Linux Sound Blaster driver. Other cards will be compatible with a
driver you would never have thought of.
There are multiple drivers for Linux. Currently the kernel comes with its own set of sound drivers, plus the
OSS/Free drivers. These will support most generic cards. In the installation program, or when compiling your
kernel, you can pick the sound card that matches yours, or the one that matches the chipset on your sound
card (for example, the Sound Blaster PCI64 card uses the AudioPCI chipset).
If your sound card is not supported by the kernel, you will need to get another driver. 2 popular ones are
ALSA available from http://alsa.jcu.cz and OSS/Linux available from http://www.opensound.com
OSS/Linux is a commercial product that supports a lot of cards not available in other drivers because of card
specification restrictions. You will need to see the list of supported cards in each driver and pick the driver
you need.

Tip 29: Non-PostScript printers
Unfortunately, most printers are non-PostScript compatible. This means that your LPR program won't like it.
You will probably notice that when you first use 'lpr' to print, the output looks weird on your printer. This is
because these models do not support PostScript. You will need a converting program for it.
Note that newer versions of RedHat already have those programs or similar filters so it may not apply to all
Linux systems.
First, you need to go read the Printing HOWTO to find out how to use lpr and related printing programs.
Then, you'll need to get 2 programs from http://metalab.unc.edu:
·  bjf
·  aps
These are the filters to convert text and PostScript to your printer's format.
First, install bjf which will be used to print text. Installation is very simple. type:
make
cp bjf /bin/bjf
Then, make a simple shell script to print text files and call it print.sh:
#!/bin/sh
/bin/bjf <$1> /dev/lp0
Where /dev/lp0 is your printer.
Now, install aps by running the SETUP script in its package. It's really easy to setup, but you do need to have
the GhostScript program installed prior to installation. You are now ready to print PostScript files from, for
example, Netscape or XV.

Tip 30: Use Windows special keys in Linux
Why are all the new keyboards sold with Win95 keys on them? How about making them do real keyboard
functions while in X Window? Here is how.
First you need to find out which key mapping you are using. Usually it will be US, it might also be en_US, ca
or else. Locate the file, usually in /usr/X11/lib/X11/xkb and edit it with your favorite editor. For me the file is
called /usr/X11/lib/X11/xkb/symbols/ca.
The file lists all the key codes and what they do. The key codes for the Win95 special keys are LWIN, RWIN
and MENU. All you need to do is add them to the list, with the functions for them. I decided to map the left
WIN key to "@" and the right WIN key and MENU keys to "{" and "}". Here are the lines I added:
key <RWIN> { [ braceleft ] };
key <LWIN> { [ at ] };
key <MENU> { [ braceright ] };
By browsing the file you can find all the other symbols and what they do. You can also add multiple
functions to a key, by using ALT and SHIFT.
The changes will take effect when you restart X Window. With the XKB extension (you do need to have it
enabled in /etc/XF86Config btw) it's easy to change the mapping of any key.

Sunday 30 December 2012

TOP 100 LINUX TIPS AND TRICKS - 2


Tip 11: LILO can't find a kernel on a big drive
On some big hard drives, LILO can have problems loading your kernel. The problem is because the hard
drive has more then 1024 cylinders.
The trick is to make sure your kernel is in the first 1024 cylinders so LILO can find it. The way to do this is
to make a small /boot partition at the begining of the drive, and make sure the kernel is in the /boot directory.
You can set the partitions in fdisk, and select the right path for the kernel in /etc/lilo.conf so LILO knows
where it is. When you compile your kernel, simply move the new kernel in that directory so LILO can load it.

Tip 12: X Window configuration options
Each Linux distribution has its own X Window configuration program. XFree86 also has a text-based
configuration program which is complex to use. But what if both the distribution program and xf86config, the
text-based configuration for XFree86, do not seem to do what you need? XFree86 also comes with a
graphical configuration tool.
The name of the graphical program is XF86Setup. This will launch a graphical window and allow you to
configure the X Window Server.

Tip 13: Allowing users to mount drives
By default, Linux will not allow users to mount drives. Only root can do it, and making the mount binary suid
root is not a good idea. With a special command in the /etc/fstab file, you can change that.
This is a typical line for the fd0 (A:) drive in /etc/fstab:
/dev/fd0 /mnt auto noauto,user 1 1
The keywords here are noauto and user. Noauto tells mount not the try to mount a diskette on boot, and user allows any user to mount the drive into /mnt. The auto keyword is also interesting. It tells mount to try to find out which file system is on the diskette. You could also use msdos or ext2.

Tip 14: Allowing users to run root programs
When a user starts a command, it runs with the permissions of that user. What if you want to allow them to
run some commands with root permissions? You can, and that's called suid.
You can set a command to be suid root with the chmod command. This will make it run as root even if a user
starts it. Here is how to set mybin suid root:
chmod +s mybin
Note that you must be very careful with this option. If the command has any security hole, or allows the user
to access other files or programs, the user could take over the root account and the whole system.

Tip 15: Linux and NT booting
Some people choose to have both Windows NT and Linux on the same system. Windows NT has its own
boot loader called NTLDR and Linux has LILO. Which should go on the MBR?
The safest way is to install Windows NT first, and give it the MBR. Then, when you install Linux, tell LILO
to install on the Linux partition. Also set the Linux partition as the active partition. When the system boots,
LILO will be loaded, and if you want to boot Windows NT, then LILO can load the MBR with NTLDR in it.


Tip 16: Annoying boot messages
When recompiling your kernel, you might end up seeing strange messages on bootup like:
modprobe: cannot find net-pf-5
modprobe: cannot find char-major-14
These are messages from the modules loader telling you that he can't find specific modules. This usualy
happens when you compile modules, but modprobe tries to load modules that were not compiled and it can't
find them. The way to remove those messages is to set the modules to off. In the file /etc/conf.modules you
may want to add:
alias net-pf-5 off
alias char-major-14 off
This will stop modprobe from trying to load them. Of course you could also try to resove the problem by compiling the modules and make sure modprobe knows where they are.

Tip 17: Programs on CD-ROM
http://metalab.unc.edu, ftp://ftp.cdrom.com and more are sites with a lot of programs available freely for Linux. But you may not want to download gigabytes of data over a slow Internet link.
Several places offer a bunch of free programs on CD-ROM. http://www.cheapbytes.com and http://www.linuxmall.com are 2 places that can sell multiple CD-ROMs with all those programs for a very low price

Tip 18: International console
Most Linux distributions are configured to use a US english keyboard. If you need to write on a french or any
other kind of keyboard, you will want to change the locale so special keys like accents appear in the console.
The way to do this is to change the system locale with a program called loadkeys. For example, to enable a canadian-french locale, you need to add this line in your startup files:
loadkeys cf
Here cf means the canadian-french keyboard. Other locales are us, fr and more.

Tip 19: Multiple kernels choices
When you compile a new kernel, you will often change your configuration. This means you may forget to
include an important driver, like the IDE driver, or otherwise make your system unbootable. The solution is
to always keep your old kernel.
When you compile your kernel, the compilation procedure will often copy your old kernel into vmlinuz.old.
If it does not, you can do it manually. What you should do is add an entry to /etc/lilo.conf allowing you to
boot your old kernel. You should view the lilo man page for the complete syntax. You could also add entries
for different kernels, for example if you want to have an older stable version of the kernel and the newest
development version on your system.
Note that some distributions name their kernel with the version they represent. For example, your current
kernel may be /boot/vmlinuz-2.0.36-0.7

Tip 20: Default file permissions
When you create a file, the system gives it default permissions. On most systems the permissions are 755
(read, write and execute for the owner, and read and execute for others).
This default is setup with the umask command. To use the command, you need to find the right octal number
to give it. The permissions in the umask are turned off from 666. This means that a umask of 022 will give
you the default of 755. To change your default permissions from 755 to 700, you would use this command:
umask 077

TOP 100 LINUX TIPS AND TRICKS - 1


Tip 1: Which distribution is good for you
They are all good. But that's not a real tip. What you should be looking for is which distribution you feel the
most comfortable with. RedHat has the reputation of being very easy to install. They provide special tools to
make the configuration easier. Debian also has some tools, but will usually require you to go on the command
line more often to configure the system. If you want to be on your own, and really learn how to edit
configuration files then Slackware is for you. The Web site http://www.linux.org lists all the available
distributions.

Tip 2: How to find a Linux CD-ROM at low cost
The Linux market started from a few distributions available only from FTP servers, to full feature
commercial distributions available in stores and online including a printed manual and phone support.
Here are the main choices you have when looking for a Linux distribution:
·  You can download any Linux distribution from its FTP server. To take a few examples,
RedHat can be downloaded from ftp://ftp.redhat.com, Slackware from ftp://ftp.cdrom.com and
Debian from ftp://ftp.debian.org. That method is free, but requires you to have a fast Internet
connection. Downloading a full Linux distribution over a 56Kbps modem will take you quite a
few hours.
·  An other way is to buy a full distribution. RedHat, for example, can be bought online for about
$50. This will include a box, a CD-ROM, a boot diskette, a manual and support from RedHat.
·  The last way is to buy only the CD-ROM. There are a few places selling CD-ROMs of various
distributions for $2. One of them is http://www.cheapbytes.com. You will only get the
CD-ROM, but this is all you need to install Linux if you are comfortable with the fact that you
don't get a printed manual or free support. You can find the manual and other documentation
on the CD-ROM.

Tip 3: Multiple operating systems
A computer only needs one operating system to work. But what if you just want to try out a new system? Do
you need to forget about the old one and erase your hard drive? No, you can have as many operating systems
on your computer as you wish.
Linux requires 2 partitions to work. Partitions are sections of the hard drive. When you install Linux, it will
provide a program called fdisk or disk druid allowing you to create the needed partitions. The main problems
people have is that they don't have empty partitions to use for Linux, and they don't want to erase the current
Windows or DOS partition. The trick is to resize your current partition to create empty space. Then you will
be able to make the partitions needed by Linux to install properly.
Fdisk doesn't allow you to resize a partition. You will need to use another program to do the job, before using
fdisk to create the Linux partitions. A very popular commercial product to do this is Partition Magic from
http://www.powerquest.com.
Let's see step by step what is needed to resize an existing partition to allow the creation of a new one for
Linux:
·  Buy Partition Magic, or get any other tool that can safely resize partitions.
·  Make sure you have at least 150 megs free on your main partition, the required amount for
Linux.
·  Resize the partitions so you have at least 150 megs free, outside of any current partition.
·  Reboot and launch the Linux installation.
·  Run fdisk or any partitioning program that comes with the Linux distribution, and follow the
installation instructions to make the required Linux partitions.

Tip 4: Installing with no CD-ROM drive or modem
Most Linux distributions come on a CD-ROM. You can also download them from an FTP site, but that
requires an Internet connection. What if you have a system with no CD-ROM drive or Internet connection,
like an old 486 laptop? The trick here is to have another desktop system with a CD-ROM drive, and a
null-modem serial cable.
I will show you how to do it with Slackware. It is also possible with most other Linux distributions. Insert the
Linux CD-ROM in the drive on the desktop and copy the A (base) and N (networking) packages on diskettes.
You need at least those in order to use a serial cable to transfer the rest of the packages.
Now you need to enable NFS networking on the desktop, and allow the laptop to connect. You can give a
temporary IP address to the laptop, like 192.168.1.11 that you need to add to your /etc/exports file on your
desktop.
To link the two systems together, this is what you need to type on the laptop:
/usr/sbin/pppd -detach crtscts lock 192.168.1.11:192.168.1.10 /dev/ttyS1 115200
And this on the PC:
/usr/sbin/pppd -detach crtscts lock 192.168.1.10:192.168.1.11 /dev/ttyS1 115200
This is assuming the cable is linked to ttyS1 (COM2) on both systems.
With NFS, you can mount the CD-ROM drive remotely and tell the installation program to use a specific
path to install the remaining packages. Mount the CD-ROM with a command like this:
mount -tnfs 192.168.1.10:/cdrom /mnt
Then run the installation program:
setup
and enter the new path for the packages files.

Tip 5: Swap and memory
One important setting in any protected mode operating system like Linux is the swap space. In the
installation, you will need to create a swap partition. A common question is what size should the partition be?
The proper size depends on 2 things: The size of your hard drive and the size of your RAM memory. The less
RAM you have, the more swap you will need. Usually you will want to set your swap space size to be twice
the RAM size, with a maximum of 128 megs. This of course requires you to have a hard drive with enough
free space to create such a partition.
If you have 16 megs of RAM, making the swap space 32 megs or even 64 megs is very important. You will
need it. If you have 128 megs of RAM on the other hand, you won't need much swap because the system will
already have 128 megs to fill before using swap space. So a swap partition of 128 megs or even 32 megs
could be enough.
If you don't select enough swap, you may add more later.

Tip 6: More swap with a swap file
You installed a new Linux system, but forgot to set enough swap space for your needs. Do you need to
repartition and reinstall? No, the swap utilities on Linux allow you to make a real file and use it as swap
space.
The trick is to make a file and then tell the swapon program to use it. Here's how to create, for example, a 64
megs swap file on your root partition (of course make sure you have at least 64 megs free):
dd if=/dev/zero of=/swapfile bs=1024 count=65536
This will make a 64 megs (about 67 millions bytes) file on your hard drive. You now need to initialize it:
mkswap /swapfile 65536
sync
And you can then add it to your swap pool:
swapon /swapfile
With that you have 64 megs of swap added. Don't forget to add the swapon command to your startup files so the command will be repeated at each reboot.

Tip 7: Kernel size and modules
To configure Linux to detect a new hardware part, especially on a new kernel, you may need to recompile the kernel. If you add too many devices in the kernel configuration, you may get an error message telling you that
the kernel is too big. The trick is to enable modules.
The kernel itself must be a certain size because it needs to be loaded in a fixed memory size. This is one
reason why modules can be very handy. If you enable modules, you will need to make them:
make modules
and install them:
make modules_install
Then using the modprobe utility you can load selected modules on bootup. This way the kernel will be
smaller and will compile with no error.

Tip 8: The boot prompt
The Linux system uses a program called LILO to boot itself. This is the LInux LOader, and will load a kernel
and can pass various parameters. This is what the "boot:" prompt is for.
At the "boot:" prompt, you can enter a lot of parameters. You can send parameters to drivers like the ethernet
driver, telling it at which IRQ the ethernet card is located, or you can pass parameters to the kernel, like
memory size or what to do in a panic. Reading the LILO manual will tell you all of the nice things LILO can
be used for.
Note that for device drivers compiled as modules, you need to pass values when you load these drivers, and
not on the "boot:" prompt.

Tip 9: Wrong memory size found
The Linux kernel will detect various settings from your computer configuration. This includes the size of
memory you have. In some cases, it will find the wrong size. For example, it could find only 64 megs of
memory when in fact you have 128 megs.
The trick here is to specify the amount of RAM memory you have with the "mem=" parameter. Here is what
you would type when your system boots if you have 128 megs of memory:
LILO boot: linux mem=128M
This will tell LILO to load the linux kernel with 128 megs of memory.

Tip 10: Master boot record and LILO
What is the master boot record (MBR) and why does LILO erase the old boot loader? Every hard drive has a top space called the MBR where the BIOS will try to load an operating system. Every system has its own
loader. DOS has DOS-MBR, Windows NT has the NTLDR and Linux has LILO.
When you install LILO, you can install it in the MBR or in a boot record for the Linux partition. If you want
to keep your current boot loader, you can select the Linux partition, and make sure it is the active partition in
fdisk. This way you will be able to boot to LILO, and then boot the old loader from the MBR.
If you plan on only using Linux on your system, you can tell LILO to boot right into Linux and not display a
"boot:" prompt, and you can install it in the MBR.

Friday 28 December 2012

Lots Of Windows Xp Tips, Take A Look !!!


Lots Of Windows Xp Tips, Take A Look !

Lock XP Workstation (#1)

You can lock your XP workstation with two clicks of the mouse. Create a new shortcut on your desktop using a right mouse click, and enter 'rundll32.exe user32.dll, LockWorkStation' in the location field. Give the shortcut a name you like. That's it -- just double click on it and your computer will be locked. And if that's not easy enough, Windows key + L will do the same.

Remove Windows XP system software (#2)

XP hides some system software you might want to remove, such as Windows Messenger, but you can tickle it and make it disgorge everything. Using Notepad or Edit, edit the text file /windows/inf/sysoc.inf, search for the word 'hide' and remove it. You can then go to the Add or Remove Programs in the Control Panel, select Add/Remove Windows Components and there will be your prey, exposed and vulnerable.

New commands (#3)

For those skilled in the art of DOS batch files, XP has a number of interesting new commands. These include 'eventcreate' and 'eventtriggers' for creating and watching system events, 'typeperf' for monitoring performance of various subsystems, and 'schtasks' for handling scheduled tasks. As usual, typing the command name followed by /? will give a list of options -- they're all far too baroque to go into here.

Windows XP supports IPv6 (#4)

XP has IP version 6 support -- the next generation of IP. Unfortunately this is more than your ISP has, so you can only experiment with this on your LAN. Type 'ipv6 install' into Run... (it's OK, it won't ruin your existing network setup) and then 'ipv6 /?' at the command line to find out more. If you don't know what IPv6 is, don't worry and don't bother.

Kill tasks from the command line (#5)

You can at last get rid of tasks on the computer from the command line by using 'taskkill /pid' and the task number, or just 'tskill' and the process number. Find that out by typing 'tasklist', which will also tell you a lot about what's going on in your system.

Enable ClearType by default (#6)

XP has ClearType -- Microsoft's anti-aliasing font display technology-- but doesn't have it enabled by default. It's well worth trying, especially if you were there for DOS and all those years of staring at a screen have given you the eyes of an astigmatic bat. To enable ClearType, right click on the desktop, select Properties, Appearance, Effects, select ClearType from the second drop-down menu and enable the selection. Expect best results on laptop displays. If you want to use ClearType on the Welcome login screen as well, set the registry entry

HKEY_USERS/.DEFAULT/ControlPanel/Desktop/FontSmoothingType to 2.

Run program as different user (#7)

You can run a program as a different user without logging out and back in again. Right click the icon, select Run As... and enter the user name and password you want to use. This only applies for that run. The trick is particularly useful if you need to have administrative permissions to install a program, which many require. Note that you can have some fun by running programs multiple times on the same system as different users, but this can have unforeseen effects.

Speed up the Start Menu (#8)

The Start Menu can be leisurely when it decides to appear, but you can speed things along by changing the registry entry HKEY_CURRENT_USER/Control Panel/Desktop/MenuShowDelay from the default 400 to something a little snappier. Like 0.

Rename multiple files at once (#9)

You can rename loads of files at once in Windows Explorer. Highlight a set of files in a window, then right click on one and rename it. All the other files will be renamed to that name, with individual numbers in brackets to distinguish them. Also, in a folder you can arrange icons in alphabetized groups by View, Arrange Icon By... Show In-Groups.

Show cover art in Media Player (#10)

Windows Media Player will display the cover art for albums as it plays the tracks -- if it found the picture on the Internet when you copied the tracks from the CD. If it didn't, or if you have lots of pre-WMP music files, you can put your own copy of the cover art in the same directory as the tracks. Just call it folder.jpg and Windows Media Player will pick it up and display it.

Display Hibernate Option on the Shut Down dialog (#11)

For some reason, Hibernate isn't available from the default Shut Down dialog. But you can enable it simply enough, by holding down the SHIFT key while the dialog is visible. Now you see it, now you don't!

Enable ClearType on the Welcome Screen! (#12)

As laptop users and other LCD owners are quickly realizing, Microsoft's ClearType technology in Windows XP really makes a big difference for readability. But the this feature is enabled on a per-user basis in Windows XP, so you can't see the effect on the Welcome screen; it only appears after you logon.

But you can fix that. Fire up the Registry Editor and look for the following keys:

(default user) HKEY_USERS \ .Default \ Control Panel \ Desktop \
FontSmoothing (String Value)
HKEY_USERS \ .Default \ Control Panel \ Desktop \
FontSmoothingType (Hexadecimal DWORD Value)

Make sure both of these values are set to 2 and you'll have ClearType enabled on the Welcome screen and on each new user by default.

Change User Picture (#13)

Click on the Icon at the top of the start menu. Select desired picture from resulting screen Windows 2000 style logon. To revert back to the Win2k style logon so you can log on as the administrator and other options, press ctrl+alt+delete twice at the logon screen. Change the location of the My Music or My Pictures folders:

In Windows 2000, Microsoft added the ability to right-click the My Documents folder and choose a new location for that folder in the shell. With Windows XP, Microsoft has elevated the My Music and My Pictures folders to the same "special shell folder" status of My Documents, but they never added a similar (and simple) method for changing those folder's locations. However, it is actually pretty easy to change the location of these folders, using the following method.

Open a My Computer window and navigate to the location where you'd like My Music (or My Pictures) to reside. Then, open the My Documents folder in a different window. Drag the My Music (or My Pictures) folder to the other window, and Windows XP will update all of the references to that folder to the new location, including the Start menu.

Protect Your Files From Unauthorized Users (#14)

Other users with permission to delete a file (users with Modify or Full Control permission) can't use your encrypted files-but they can make them difficult for you to use. Any such user can rename your files, which can make them difficult to find, and can also delete your files. (Even if the user merely deletes them to the Recycle Bin and doesn't remove them altogether, the deleted files are unavailable to you because you don't have access to any other user's Recycle Bin.) Therefore, if you're concerned about protecting your files from other authorized users as well as from a thief who steals your computer, you should modify the NTFS permissions to prevent any type of modification by other users.

Shutdown Your System in a Hurry (#15)

If you need to shut down in a hurry-or if a frozen application prevents you from shutting down in the normal ways-you can use the following procedure. Be aware, however, that you won't get an opportunity to save open documents. To perform an emergency shutdown, press Ctrl+Alt+Del to display Task Manager. Open the Shut down menu and hold down the Ctrl key as you click the Turn Off command. Poof! If your computer is part of a domain, the procedure is similar. Press Ctrl+Alt+Del and then hold down Ctrl when you click Shut Down. In this situation, you'll get a warning message pointing out-quite correctly-that this should be used only as a last resort.

Provide Personal Support (#16)

It never fails: when friends, co-workers, or family members discover that you're a Windows expert, you get pressed into service as an unpaid support technician. If the party asking for help is running any edition of Windows XP and has an active Internet connection, your job is much easier. Have the other person send you a Remote Assistance request; when you accept the request, you connect directly to their computer and can edit Registry settings, fix file associations, set System options, and perform just about any other troubleshooting or repair task, just as if you were sitting at the other person's desk.

Quickly Fix Connectivity Problems (#17)

Are you having trouble connecting to other computers on your local area network? If your network uses a hardware firewall that assigns IP addresses to each machine and you're certain you've configured all other components correctly, check to see whether the Internet Connection Firewall is enabled. That component can effectively block communication between PCs on the network.

Hack IE Title Bar (#18)

This can be an impressive bit of personalization. Use your name or moniker to brand Internet Explorer. Go to HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\ and left-click on Main to change the string "Window Title" to whatever you wish.

Unload DLLs (#19)

To prevent Windows from caching DLLs after the program using them has closed, follow this procedure: Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ then left-click on Explorer. Right-click (as above) and create the DWORD

AlwaysUnloadDLL with a value of 1. This requires a reboot to take effect. This will allow memory to be used more efficiently.

Registry Hacks (#20)

Editing the Windows Registry, while much more common now than in years past, is still not to be entered into lightly. You can break Windows, cause boot failure. I know you're gonna do it anyway; why else would you be reading this. Just be careful, OK?

These are few because, for the most part WinXP can be customized through the interlace or with third-party freeware (as above).

All of the tips below require running regedit. To do so, hit 'Start/Run' then type 'regedit' and follow the instructions.

Naturally, I take no responsibility for any damage or loss of data incurred in the remote possibility that something goes terribly wrong.

The Ultimate Appearance Tweak (#21)

Microsoft said: "You can connect up to 10 monitors to your Windows XP-based computer and display numerous programs or windows at one time. You can use your mouse to move items from one monitor to another. You can open a different file on each monitor. Or several. Or you can stretch one item across several monitors; so for example, you can see more columns in a Microsoft Excel spreadsheet, or the entire layout of a Web page, without scrolling." Consider it. Monitors and PCI video cards are pretty cheap now. Windows recognizes the addition & allows easy adjustments on the 'Display Properties/Settings' menu.

Save Streaming Media (#22)

It's cool to listen to MP3s (or watch movies) over the Internet. Often, saving this media, however, seems impossible. Hey, if it plays on your computer, it's on your hard drive. Once the file is fully loaded and with folder view set to show hidden and systems folders, searches for the media (.mp3 or .mpg). There it is!

Securing the Paging File (#23)

If you're truly concerned about the possibility of your computer falling into the wrong hands, you should be sure that you don't leave any tracks in the paging file. By default, when you shut down your system, the paging file remains intact. People who've access to your computer could conceivably look through the unencrypted paging file to find information they shouldn't have.

Assign a Keyboard Shortcut (#24)

Click in the Shortcut Key field and press a keyboard combination that you want to use for launching or switching to this program. The shortcut key you assign must consist of one character key (a letter, number, or symbol) plus at least two of the following three keys: Ctrl, Alt, and Shift. (If you press a character key only, Windows automatically adds Ctrl+Alt.)

Shortcut keys work only when assigned to a program shortcut on the Start menu, the Programs menu, or the Desktop. The shortcuts you define will not work if it conflicts with a combination used in the program whose window has the focus.

Please remember, we cannot accept responsibility with what you decide to do with these tips. These tips act as a guide to tweaking and changing Windows XP from the default settings. If you are unsure about how to make these changes then don't meddle !

Linking Your Xbox To Your Computer


Linking Your Xbox To Your Computer

I. Introduction

Some basics and assumptions (the more you know, the more you UNDERSTAND):

Crossover cable: A crossover cable is needed to directly connect your computer and Xbox. You would plug one end of the cable to your computer and the other end into the Xbox, there are no devices in between. If you have a hub, switch, or router you will not need a crossover cable though some still will work with one. With connecting to hubs, switches, or routers you should use a straight-through cable. The image below shows the difference between the two:

To easily tell if you have a crossover or not, simply look at the two ends side by side. If all the pins, 1 through 8 on both ends are all the same color in the same order, you have a straight-through cable. If pins 1, 3 and 2, 6 are swapped you have a crossover cable. Notice the TX, RX as well. This shows why in pc to pc connections a crossover is required. Otherwise one pc will be transmitting over the same wire the other pc is trying to transmit on.

This guide currently gives configuration examples for setting up an FTP connection with Evox, Avalaunch, MXM, or UnleashX as your dash. It is also recommended to use FlashFXP as your FTP client though many others will work just fine.
You do not NEED an internet connection to FTP to your Xbox. When you ftp to your Xbox from a computer in your house to the Xbox in your house, no packets (data) need to go out to the internet and they shouldn't even try. The tricky part is when you want to be able to access the internet and ftp to your Xbox at the same time. How this is done and how difficult it is depends on the devices you have.
I will not list every baby step involved for how to set things, like every mouse click required. If you're not sure how to do something I've said to configure, see number 5 below.
If something is said in this guide that you don't understand or don't know how to accomplish it, try google. It is a search engine at http://www.google.com
For example, if I say "Run a command prompt" but don't mention how; don't go immediately posting in the forums asking how you run a command prompt. First, try searching in google, "how to run command prompt windows xp". I'm willing to bet you'll get your answer faster. Another example, just so we're clear, if I say "turn off your winxp firewall", you may search in google, "how to turn off windows xp firewall". Again, I'm betting your answer will come faster.
This guide now has configuration diagrams to help anyone having difficulty understanding the configuration examples I discuss. Some people simply do better with visuals. The key for the diagrams is provided below:


II. Configuration Examples
Find the configuration that best matches what you have. Reading them all anyway could help your understanding.

1. Computer Direct Connection to Xbox
In this configuration you have your computer and Xbox directly connected. This direct connection can either be with the crossover cable, or with a straight-through cable to a hub/switch and then another straight-through cable from the hub/switch to your Xbox. Both are 'direct' connections.

2. Computer with two NICs
In this configuration you have two NICs. One possibly going to a router or a cable or DSL modem, the other you wish to make a direct connection to your Xbox with. You also have the option of configuring your Xbox for live, xbconnect, or xlink by enabling it to get out to the internet through your computer.

3. Computer with one NIC and a router
In this configuration you should have your computer and Xbox connected to the router. The router's WAN port goes to your cable, DSL modem, or otherwise out to the internet.

PRE SETUP: Before you begin setting up your configurations you should cable everything up properly. Make sure your Xbox is booted up with the dash loaded as well so you can test the settings you will put in. If you are loading your dash from a CD or DVD, any changes you need to make to the evox.ini, avalaunch.xml, config.xml or mxm.xml you will need to re-burn onto the disk then reboot your Xbox with your new boot disk. When making changes to the evox network settings when booting evox from the hard drive, make sure you scroll all the way down when you are finished and select save and exit.
Setting up Configuration 1
This is the simplest setup. Even if you have one of the other configurations, if you are experiencing problems you can always try this to help troubleshoot. This configuration can be setup in two different ways as showed in the Configuration 1a and Configuration 1b diagrams.





Evolution X Dashboard
Basically you can setup the [Network] Section of your evox.ini to look like this:

[Network]
SetupNetwork = Yes
StaticIP = Yes
Ip = 192.168.0.3
Subnetmask = 255.255.255.0
Defaultgateway =
DNS1 = 0.0.0.0
DNS2 = 0.0.0.0

You may also have SkipifNoLink and you can set that to No. Also verify your [FTP] Section looks like this:

[FTP]
Enable = Yes
Password = xbox
IGR = No

MXM Dashboard

If you use MXM as your dash in your MXM.xml file you would want the <network> section to look something like this:

<Network>
<UseDHCP>false</UseDHCP>
<IP>192.168.0.3</IP>
<DNS1>0.0.0.0</DNS1>
<DefaultGateway>0.0.0.0</DefaultGateway>
<SubnetMask>255.255.255.0</SubnetMask>
</Network>

Also just verify there should be an FTPServer section that looks like this:

<FTPServer>
<ServerPort>21</ServerPort>
<AllowAnon>False</AllowAnon>
<AnonRoot>F:</AnonRoot>
<User>
<Name>xbox</Name>
<Password>xbox</Password>
<Root></Root>
</User>
</FTPServer>

Avalaunch Dashboard
<network setup="1" type="static">
<ip>192.168.0.3</ip>
<subnet>255.255.255.0</subnet>
<gateway>0.0.0.0</gateway>
<dns1>0.0.0.0</dns1>
<dns2>0.0.0.0</dns2>
<proxy enabled="0">
<server>10.0.0.1</server>
<port>8080</port>
</proxy>
</network>

Also for Avalaunch make sure you set the username to this:
<user name="xbox" password="xbox">

UnleashX Dashboard

For UnleashX, edit the config.xml file to look like this:
<Network Enable="Yes" Type="Static">
<ip>192.168.0.3</ip>
<subnet>255.255.255.0</subnet>
<gateway>0.0.0.0</gateway>
<dns1>0.0.0.0</dns1>
<dns2>0.0.0.0</dns2>
<AutoDetect>Yes</AutoDetect>
</Network>

Also make sure the FTP section in UnleashX is all enabled (which is by default) so it should look like this:
<FTP Enable="Yes">
<User>xbox</User>
<Password>xbox</Password>
<Port>21</Port>
<MaxUsers>2</MaxUsers>
<AllowAnon>No</AllowAnon>
<Greeting>Welcome to XBOX FTP Server</Greeting>
</FTP>

If you boot evox with these settings you can verify your Xbox has the correct IP either by looking on a skin that displays it or in settings it will display it in blue text up top. You can also look in the other dashes if you have an IP, if not right on the front screen (via whatever skin you have) then under a settings sub menu. If you see No Link or No IP! Then either one of these settings is wrong, you don’t have it connected to your computer with the correct settings yet, or your crossover cable is bad.

Now on your computer go to the properties of the NIC that has a crossover cable connected to the Xbox. Click on the Internet Protocol (TCP/IP) and then properties. Enter the following:

IP Address: 192.168.0.2
Subnet Mask: 255.255.255.0
Gateway: <leave blank>
DNS: <leave blank>
That's it. Simple huh? Now set up your FTP Client. For FlashFXP, install the program and run it. Click on "Site Manager" then click to create a new site. Name it Xbox or whatever and for the IP enter 192.168.0.3, verify the port is 21. The username and password are both "xbox", all lower-case and without the quotes. Go to options and uncheck any check marks on PASV or passive mode if you are using Evox. If you are using one of the other dashes you can leave PASV checked. Apply the settings and connect.

If you have your one NIC connection to the internet and just want to unplug that connection and plug in a crossover to your Xbox when you want to FTP there is an awesome way to automate changing your NIC settings from how they need to be set for the internet and how they need to be set for the crossover to the Xbox. Luckily someone has a perfect tutorial for that and its here: http://www.xbox-scene.com/articles/switch-network.php

If you use Windows XP you shouldn’t even need to bother with making those scripts. If your one NIC is set to use dhcp for the internet and when you connect it to your Xbox you always change it to a static address you can enter that address in the Alternate Configuration tab of your NIC. So if you go to your NIC properties then select TCP/IP and hit properties you should see two tabs, a General tab and an Alternate Configuration tab. The General tab you would leave set for dhcp so when you plug into the internet it would work. The alternate tab you would enter settings needed to be connected to your Xbox. Now when you switch your internet connection to the crossover cable of the Xbox windows should detect your dhcp network is down and try using the configuration in the alternate tab automatically. In this way you never have to change your NIC settings even though you are changing from a dhcp internet connection to a static direct to Xbox connection.

If you are having problems connecting still please read the Troubleshooting Section.

Setting up Configuration 2



The configuration 2 diagram above shows the most common setup you would have with 2 NICs in your PC. The only difference between this and configuration 1 is that the second NIC would have a connection to the internet for you. Chances are this NIC to the internet is getting a public DHCP address like 64.238.121.12, or any such number. If this NIC goes to a router, you may wish to read configuration 3 and you may not need your second NIC at all. So when the NIC gets DHCP like this it is automatically assigned an ip, subnet, gateway, dns, etc. so you don't need to do anything else to it. The only "gotcha" with this configuration is that when you configure your second NIC that goes direct to the Xbox you may configure it in such a way that your computer tries to access the internet through that NIC instead of the correct one with the public DHCP. This is a routing issue and one way to ensure this doesn't happen is to configure the NIC with the connection to your Xbox exactly as in configuration 1, specifically making note that you DO NOT enter a gateway address. Your Xbox itself can also be setup just as in configuration 1. Refer to the Troubleshooting section if you are having problems and yet are set up as I described.

So if you connect one of your NICs to a router in this configuration you may be getting an internal IP like 192.168.x.x instead of an external IP address. If this is the case make sure the NIC that goes out to the Xbox is not given an IP address on the same subnet as the NIC going to your router. For example, when the NIC going to your router and out to the internet is getting an IP of 192.168.1.x and has a subnet mask of 255.255.255.0 and the gateway on this NIC is the IP address of the router, then set the IP address of the NIC going to your Xbox to 192.168.0.x with a subnet of 255.255.255.0 and don't enter a gateway. Then make your Xbox have an IP address on the 192.168.0.x range, and again a gateway would not be needed.

**Advanced Option** If for some reason you would like both your NICs on the same subnet then you can still force the one going internet to be used by default for everything and the one going to the Xbox to only be used when connecting to the static IP of your Xbox. Open up a command prompt and type 'route print'. With route print you can see what route your data packets will take to try to access the internet or your Xbox. What you can do is manually add a route that tells your computer that anytime it tries sending anything to 192.168.0.3 it should use the NIC with the direct connection the Xbox, not the one that goes out to the internet. To do this run the route print command. The first thing you'll see is an interface list. It'll say something like:

Interface List 0x1 ........................... MS TCP Loopback interface 0x2 ...00 06 5b b8 e3 33 ...... 3Com 3C920 Integrated Fast Ethernet Controller 0x3 ...00 02 2d 26 2c 74 ...... Dell TrueMobile 1150 Series Wireless LAN Mini PCI Card
So in this case the NIC going to the Xbox is 0x2, which would be IF 2 in the command. To add the static route follow this pattern:

route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2
destination^ ^mask ^gateway metric^ ^Interface

So in our example you would type:

route -p add 192.168.0.3 mask 255.255.255.255 192.168.0.2 METRIC 1 IF 2
to remove this at any time you would just type:

route delete 192.168.0.3
The other option you have if you want your Xbox to get out to the internet through your computer’s internet connection is to set up Internet Connection Sharing (ICS) on your computer. How to set this is up a good thing to google search. You can also try this page: http://www.xbox.com/en-US/live/connect/windowsics.htm for good details. Once set up the only thing to change is to put a gateway address in your evox.ini, avalaunch.xml, or mxm.xml file which should be your computer’s IP address, so the gateway you would use is 192.168.1.1 since that is probably what ICS will set your NICs IP address to.

Setting up Configuration 3



This is sort of like configuration 2 but instead of your NIC getting a public DHCP address it should be getting an internal private DHCP address. This address can be anything within this range: The blocks are 10.0.0.0. to 10.255.255.255, 172.16.0.0 to 172.31.255.255, and 192.168.0.0 to 192.168.255.255.

There are very high chances your router is giving out addresses somewhere in 192.168.0.x or 192.168.1.x If this is the case your computer should be successfully getting its DHCP address from your router and if you can plug your Xbox into that router as well then just change your evox.ini to have StaticIP = No. So in our first configuration example you would just have to change the files to be this:

Evolution X Dashboard
[Network]
SetupNetwork = Yes
StaticIP = No
Ip = 192.168.0.3
Subnetmask = 255.255.255.0
Defaultgateway =
DNS1 = 0.0.0.0
DNS2 = 0.0.0.0

Once you set StaticIP to be No, the ip, subnet, gateway, and dns values are no longer used. You can boot your Xbox and see what IP it is getting from DHCP and simply FTP to that address.

You can also still have your Xbox use a static ip so that you always no its IP address, even with a router that gives out DHCP. Just make sure the static IP you give it is on the same subnet as the DHCP addresses it is giving out. To do that, make your evox.ini like this:

[Network]
SetupNetwork = Yes
StaticIP = Yes
Ip = 192.168.0.3
Subnetmask = 255.255.255.0
Defaultgateway = 192.168.0.1
DNS1 = 0.0.0.0
DNS2 = 0.0.0.0

Here you've changed static ip back to yes and your gateway address should be the address of your router now. If your router is on a different subnet and by that I mean its ip is 192.168.1.1 and it is giving out dhcp address's of 192.168.1.x then you would make your evox.ini reflect those differences like this:

[Network]
SetupNetwork = Yes
StaticIP = Yes
Ip = 192.168.1.3
Subnetmask = 255.255.255.0
Defaultgateway = 192.168.1.1
DNS1 = 0.0.0.0
DNS2 = 0.0.0.0

MXM Dashboard

If you run MXM as your dash and want to use DHCP then the MXM.xml file's <network> section should look like this:

<Network>
<UseDHCP>True</UseDHCP>
<IP />
<DefaultGateway />
<SubnetMask>255.255.255.0</SubnetMask>
<DNS1 />
<DNS2 />
</Network>

Avalaunch Dashboard

If you run Avalaunch as your dash and want to use DHCP then make the <network> section of the avalaunch.xml look like this.

<network setup="1" type="dhcp">
<ip>192.168.0.180</ip>
<subnet>255.255.255.0</subnet>
<gateway>192.168.0.1</gateway>
<dns1>195.159.0.100</dns1>
<dns2>195.159.0.200</dns2>
<proxy enabled="0">
<server>10.0.0.1</server>
<port>8080</port>
</proxy>
</network>

UnleashX Dashboard

For UnleashX, edit the config.xml file to look like this:
<Network Enable="Yes" Type="DHCP">
<ip>192.168.0.100</ip>
<subnet>255.255.255.0</subnet>
<gateway>192.168.0.1</gateway>
<dns1>192.168.0.1</dns1>
<dns2>192.168.0.7</dns2>
<AutoDetect>Yes</AutoDetect>
</Network>

For all of the dash's configuration files, whenever you have them set to use DHCP, none of the other values you have defined below that are used. So if you have enabled DHCP then the IP address you see in the configuration file is NOT the one your Xbox will likely get. Also be careful if your router is giving out DHCP, and you want to give your Xbox a static IP so you know the IP address all the time then make sure whatever static IP you pick for your Xbox is not already an IP used by something else on your network given out by the router's DHCP range.

Xbox on the Internet

Do you want to…?

Access RSS news feeds on your Xbox
Successfully browse the internet with Linksboxs
Use a chat client from a dashboard
Anything else that requires the Xbox to get out to the internet
If these things aren’t working for you after setting up FTP to your Xbox following one of the above configurations then there could be a few reasons why. I’ll go over each configuration and describe what you MAY need to modify to get these working.

Configuration 1

With configuration 1a, you can NOT get out to the internet. You would need to either buy a router or another NIC for your PC. Once you’ve purchased one of those, your configuration will follow one of the others. With configuration 1b, you generally can NOT get out to the internet either. If you have this configuration and your PC can get out to the internet then it is probably getting a public IP address from your ISP. This assumes you have a hub or a switch and not a router. You can buy a router and then follow configuration 3, but if you don’t want any new hardware then you can probably only get your Xbox or computer on the internet one at a time. In other words when your computer has the IP from your service provider you can get on the internet. Then maybe you switch it to a private IP in order to FTP to the Xbox. Well to get your Xbox on the internet you’d have to get your Xbox that public IP from your service provider. Set your Xbox to use the same settings as your computer does to get that IP. If you aren’t using DHCP make sure you don’t forget to enter the DNS values otherwise addresses won’t resolve. Remember your computer should either have the private IP values or be turned off in order for your Xbox to successfully get the public IP from your service provider. Some ISPs will give you more than one public IP to use. If that is the case then your computer and Xbox can be on at the same time through the hub or switch.

Configuration 2

The last paragraph in configuration 2 from above describes using ICS to get your Xbox out to the internet. So this is the first step you would need to take. If you are using ICS and you have your Xbox set to use DHCP then it should be done. If, however, you have set your Xbox to a static IP and aren’t able to use linksboks or get the news feeds then chances are you are simply missing the DNS values. Go to a command prompt on your PC that can access the internet and run ‘ipconfig /all’ without the quotes. Look for the NIC that has the connection to the internet and look at the DNS values it has. Whatever they are, use those values in the static configuration of your dashboards network settings. So if you look at the examples I’ve given, most of the DNS values are either blank or set to 0.0.0.0. Just take the DNS IP’s from the ipconfig /all and replace the 0.0.0.0 in the Xbox configuration file with those new values. Save, reboot, and you should be all set.

Configuration 3

This configuration is very easy to get working as well. Again, if you are using DHCP on your Xbox then you shouldn’t be having any problems. If you are using a static IP in this configuration then, just like configuration 2, you are probably only missing the correct DNS values. Follow the same procedure as in configuration 2 to get the DNS values filled into your dash configuration file.

Other ways to Connect

There are a few other ways to connect to your Xbox without using an ftp client. I'd like to mention them here just to cover the 'networking' your Xbox topic but I'll link to the guides/tutorials that I think cover the connection the best. Also, all these other connections still use the ftp protocol, I'll cover telnet later.

You can map a network place on your computer to your Xbox so instead of needing to fire up an ftp app you could just go to windows explorer or a shortcut on your desktop to double-click and there is all your Xbox. Two tutorials have already been written that explain how to do this in Windows XP and Windows 2000.
For winxp: http://www.xbox-scene.com/articles/map-xp.php
For win2000: http://www.xbox-scene.com/articles/evoguide6.php - This guide uses webdrive to accomplish this on Windows 2000. Some other software I think would work as well is Internet Neighborhood Pro and FTP Desktop but I've tried none of them so can't recommend one over the other. If you find any freeware app that will provide this functionality let me know and I will try it out and add it here.

You can ftp to your Xbox direct from your web browser. Basically in your web browser instead of putting in http://www.website.com you would put in something like ftp://xbox:xbox@<xbox_ip> and it should open right up to the contents of your Xbox folder structure. Nice and simple, no third party ftp client needed. A good guide for this can be found here: FTP using Internet Explorer and be sure to read the rest of the thread for some tips and answers to questions. There is also a tutorial on the tutorials page here: http://www.xbox-scene.com/articles/ftp-ie.php. Please keep in mind this functionality is not limited to Internet Explorer only. Most browsers support typing in ftp:// instead of http:// if you want to ftp. I use the Opera browser and can connect the same way. If you ever forget the format to use to send the username and password in the address bar you can also (at least with IE and Opera) connect just by typing ftp://<xbox_ip> and then you should get a pop up box prompting you for the username and password.
Xbox to Xbox Transfers

If you have two Xbox's and want to transfer directly between them there are a few ways to do it. For any way your Xbox's still need network connectivity between each other. You could set them up just like configuration 1 from above or even hook them up to a router and use DHCP.

If you use Avalaunch as your dashboard then the easiest way for you would be to use the File Manager that is built in. When you launch the file manager click start and select switch to remote. Move over to the right side now (which is the remote side) and hit start again. Now select add FTP Server. Enter the IP address info of your other Xbox. Once this is setup you should then be able to switch back and forth between local and remote sides and transfer your files.

If you don't have Avalaunch as your dash you can run a program called XB-FTP. This program you would launch as an app from one Xbox and it your FTP Client. The other Xbox you would leave booted into whatever dash you run and it would be the FTP Server. There is another application you can run on your Xbox called xToolbox. You can use this app to transfer between two Xbox's as well just go into its file manager once it loads and it should be self explanatory for you. Just make sure you edit the host.ini file with the applicable IP address's for your local and remote Xbox. If you have a PC you can also use the FXP method that is detailed here: http://forum.psxcare.com/support/showthrea...p?threadid=7239

You don't have to use XBMP, you can use any dash that supports PASV for this method.

Troubleshooting

First is to verify you are communicating with your Xbox. Run a command prompt and ping your Xbox IP address. In our example that would be 'ping 192.168.0.3'. Also, If you seem to have a connection that gets dropped every so often try to ping like this: 'ping -l 1024 -t 192.168.0.3', this will continuously ping your Xbox with 1024 bytes. Hit ctrl-c to end it. If you get any timed out then maybe you need a new Ethernet cable somewhere. If you can ping try a. and b. below, if you can't ping read that and the rest.

If you can ping but still have problems with FTP, make sure PASV is disabled in your FTP client if evox is your dash. Go to the help for your ftp client to figure out how to do it if you don't know how.

Make sure any firewall programs you run are turned off. Especially if you run Windows XP there is a default firewall that may be on. Its in the advanced properties of your NIC where you can uncheck the box for it to verify it isn't on. Also even if you think you disabled a firewall it could still be blocking ports. Crap Software firewall can behave this way. It does this to ensure no virus or rogue program can disable it. Instead of disabling Crap Software just add the IP address of your Xbox or even the entire subnet as Trusted. Then it will allow packets through.

If you can't ping make sure you check 1b, but also make sure you are using the correct Ethernet cables for your setup. Refer to the basics above about the crossover cable. Try pinging your local computer with these commands: 'ping 127.0.0.1' and 'ping localhost'. If you can ping these it's a good sign your TCP stack and driver for your NIC are loaded properly. If these do not ping correctly the first thing to try is to reload the driver for your NIC or search the manufacturer's website for an updated driver.

Try different ftp clients or make sure you are using the latest version of the client you have, especially if you are using the EvolutionX dashboard make sure you try FlashFXP if you are experiencing any problems.

Make sure you have the video cable plugged into the back of your Xbox (problem experienced by ndiguy). Note: the video cable doesn't have to be connected to your TV but does need to be connected to the back of the Xbox.

Run a sanity check if all else fails... make sure the settings you think are in your evox.ini are actually there. Run a command prompt on your pc and type 'ipconfig /all'. This will list all the settings all the NICs on your computer have. Verify they are all what you think they should be. When posting in the forums for more help try to include these two things in your post, it's a good first step.

If you get No Link! when you boot your Xbox make sure it is set to static ip. Verify the computer or whatever you have it connected to is booted up first and set up correctly. Then boot or reboot the Xbox. Make sure the cable and other hardware you are using is good. As a last resort, maybe your Xbox NIC is bad and needs replacing.

“I have two Xbox’s at home and two separate Xbox live accounts, but when they both try to play live at the same time one always gets booted or disconnected, what’s going on?” There could be a number of things but if you’ve checked everything else and think your network is all good, etc then whatever router you have these connected to could be handling PAT (port address translation) incorrectly. I know for a fact the current Linksys products will not handle this configuration properly. I also know that the Dlink DI-614 does handle this correctly and so would work with this configuration. If you have a different brand router and have this configuration let me know if it works or not for you so I can make a good list of who handles PAT correctly and who doesn’t.

Nothing seems to work for you? Post your problem on the Xbox-scene forums. In your post try giving as much info as needed. Describe how you have things physically connected. Post the network section of your dash’s configuration. Post an ipconfig /all from your computer (or just all IP information). Post any specific error messages you get, especially an FTP log if you can ping your Xbox but just can’t seem to login. Post what software you use on the Xbox and your PC. Finally, make a new thread for your problem, don’t post as a reply to someone else’s problem and don’t just PM someone you think will help.
FTP Speed Issues

Once people start using FTP the next problem they may have is the speed being too slow. The key to addressing this issue is to try everything! Change your configuration, change software, use every combination of my suggestions below. The more you do the better chance something will reveal itself as the culprit to your slow speeds. Here is a common list of things to check to help improve your speed:

Try the extended ping from number 1 in the troubleshooting section. If you get some replies and some timed outs during that ping this could slow down your speed. Replace your cable(s), update driver(s), try different NIC, etc.

In the advanced properties of your NIC you should be able to find the settings for the speed and duplex of your card. Change these settings and see if some combination gives you better speed than others. Start with speed of 100 and full duplex and cycle through 100/half, 10/full, 10/half.

Check how much free space you have on the PARTITION you are ftp'ing to. If you have an 80GB hard drive and it says you have 20GB left, that doesn't mean you have 20GB of free space left on that partition. That partition could have very little space left while another partition has 18GB left. There are some reports that with <2GB of space FTP speed drops. This is probably one of the most common issues with speed and ftp in general.

If you are using a wireless or usb NIC setup try going wired with standard Ethernet to see if that narrows down the problem for you. And if you were using DHCP try assigning a static IP to your Xbox instead. Also try changing the channel that your wireless is currently communicating on. There could be more interference slowing down your speeds on a certain channel. At least try channels 1, 6, and 11.

Try different software on both ends... experiment. All configurations will be different. Try different FTP clients, updating FTP clients and even try using a different ftp server on the Xbox. One post on the forums suggested that switches from Evox to nexgen increased ftp speeds to the F: drive. The Avalaunch dash seems to be a pretty stable and fast FTP Server as well.

Try different hardware... don't overlook this! For example, if you have a hub, try a new one or better yet get a switch.

If you are using FlashFXP (or maybe try this with any client), some forum posts have suggested that by changing the transfer packet size from 4096 to 2048 you could see a speed increase. Some people run fine at 4096 but I know of at least one instance where changing this value to 2048 has helped tremendously.

Suggestions from ILLusionsOfGrander member on xbox-scene:
Make sure the NIC on your PC is not just a 10 mbit NIC but a 10/100 mbit NIC. Using a 10/100 NIC as opposed to just a 10 can definitely increase transfer rates
If you go to the advanced settings of the NIC in your PC, some cards have a "Early TX Threshold" value. Upping this value from its default can also increase speeds. The example given was with a Dlink card and its default value was 8 and changed to 38. This increased the speed from 6500 kBps to 11000 kBps.
Wireless Xbox

I've noticed a few posts about how to get the Xbox on a wireless network so figured I'd touch on the subject here and give my thoughts on hardware to accomplish such a thing. First thing to consider is whether you want to use 802.11b or 802.11g. Discounting any other deciding factor you may have, and focusing solely on Xbox functionality, if you want to use your Xbox for ftp transfers and to play Xbox live then you'll be fine with 802.11b. If you think you'll want to stream movies or music to it and will want to do a lot of large (over 100mb) ftp transfers you'll want to go with 802.11g. With that...

There are two setups you can use to communicate with your Xbox wirelessly. The first and least common way would be in an ad-hoc fashion. This would be the exact same as using a crossover cable from the Xbox to your pc just without the actual cable. Basically your computer would have some sort of a wireless card whether USB, PCI, or if it's a laptop then a PCMCIA or mini-PCI. For your Xbox you would get a wireless to Ethernet bridge (I'll mention brands in the next paragraph) and basically just RTFM for how to set it up in ad-hoc mode to communicate to the wireless card in your computer. Again, this would be like using a crossover cable, only your computer and Xbox would communicate with each other.

The most popular way which most people would want to implement is with a wireless access point/router. From Linksys if you decided to go with 802.11b you could get model BEFW11S4, if you want 802.11g the WRT54G. From Dlink for 802.11b the DI-614+ is a good one and for 802.11g the DI-624. Now to get your Xbox to communicate wirelessly with one of these access point/routers you would need a wireless to Ethernet Bridge for it. From Linksys for 802.11b you could get a WET11 and for 802.11g the WET54G. From Dlink for 802.11b the DWL-810+ and for 802.11g the DWL-G810. From here it's really just a matter of reading the manual's (if you even need to) to get these bridges to associate to the SSID of your access point.

Now I'd like to say don't think these are the only products that work. There are many other companies with products that do the exact same thing. I just listed the most common of the ones I'd recommend using and if you look up the product you'll get an idea of what to look for from other companies. I'm also not a fan of the MS wireless Ethernet bridge devices. Currently, from what I've seen you need to configure it from the MS dash and with a modified Xbox this isn't always a good thing. However, obviously they will work just fine so feel free to check them out too.

Ip Address Structure, Explanation OF IP Address {A short way}


   IP ADDRESS STRUCTURE:

Note: the terms multicast address and MSB are explained at the end.



Every station on a PSN (packet switched network) that is based on the TCP/IP
protocol (your computer is one, for example. Yes, we're referring to a host
that is connected to the net) must have an IP address, so it can be identified,
and information can be relayed and routed to it in an orderly fashion.



An IP address consists of a 32 bit logical address. The address is divided
into two fields:



1) The network address:


Assigned by InterNIC (Internet Network Information Center).
In fact most ISPs (internet service providers) purchase a number of addresses
and assign them individually.



2) The host address:


An address that identifies the single nodes throughout the network. It can be assigned
by the network manager, by using protocols for it such as DHCP, or the workstation itself.



[The IP networking protocol is a logically routed protocol, meaning that address 192.43.54.2
will be on the same physical wire as address 192.43.54.3 (of course this is not always true. It depends on the

subnet mask of the network, but all of that can fill a text of its own)


IP address structure:


   ---.---.---.---

   ^             ^
   |             |
network    |    host

Every " --- " = 8 bits.
The first bits ===> network address
The last bits  ===> host address.
with 8 bits you can present from 0-255 . (binary=(2 to the power of 8)-1)

Example:
11000010.01011010.00011111.01001010 (binary)
194.90.31.74 (decimal)
IP address CLASSES :
We can classify IP addreses to 5 groups. You can distinguish them by comparing the "High Order" bits (the first four bits on the
left of the address):

type  | model  | target | MSB |addr.range    |bit number| max.stations|
     |        | groups |     |              |net./hosts|             |
------|--------|--------|-----|--------------|----------|-------------|
 A   |N.h.h.h | ALL    |  0  | 1.0.0.0      |   24/7   | 16,777,214  |
     |        | ACCEPT |     |    to        |          |             |
     |        | HUGE   |     | 127.0.0.0    |          |             |
     |        | CORPS  |     |              |          |             |
-----------------------------------------------------------------------
     |N.N.h.h | TO ALL | 10  | 128.1.00     | 16/14    | 65,543      |
 B   |        | LARGE  |     |    to        |          |             |
     |        | CORPS  |     | 191.254.00   |          |             |
-----------------------------------------------------------------------
     |N.N.N.h |TO ALOT | 110 | 192.0.1.0    | 8/22     |  254        |
 C   |        |OF      |     |    to        |          |             |
     |        |SMALL   |     | 223.225.254  |          |             |
     |        |CORPS   |     |              |          |             |
-----------------------------------------------------------------------
D    | NONE   |MULTI-CA|1110 | 224.0.0.0     | NOT FOR |   UNKNOWN   |
     |        |ST ADDR.|     |    to         | USUAL   |             |
     |        |RFC-1112|     |239.255.255.255| USE     |             |
-----------------------------------------------------------------------
E    | NOT FOR|EXPERIME|1,1,1,1| 240.0.0.0     |NOT FOR|  NOT FOR USE|
     |  USE   |NTAL    |       |   to          |USE    |             |
     |        |ADDR.   |       |254.255.255.255|       |             |
-----------------------------------------------------------------------

N=NETWORK , h=HOST .



Notice the address range 127.X.X.X.
These addresses are assigned to internal use to the network device, and are
used as an application tool only. For example: 127.0.0.1, the most common one,
is called the loopback address - everything sent here goes directly back to
you, without even traveling out on the wire.
Also, some IPs are reserved for VPNs - Virtual Private Networks. These are
local area networks over wide area networks that use the Internet Protocol to
communicate, and each computer inside the network is assigned with an IP
address. So, suppose a certain computer wants to send a data packet to
another host on the network with the IP 'x', but there's also another host on
the Internet that has the same IP - what happens now? So this is why you
cannot use these and other forms of reserved IPs on the Internet.

EXTRA:

Distinguishing different groups:

You have to compare the first byte on the left in the address as follows:




Type |    First byte  | MSB
    |    in decimal  |
----------------------------
A    | 1-127          | 0
----------------------------
B    | 128-191        | 10
----------------------------
C    | 192-223        | 110
----------------------------
D    | 224-239        | 1110
----------------------------
E    | 240-254        | 1111
----------------------------


NOTES: Yes, we know, we've left A LOT of things unexplained in this text.
With time, we will write more tutorials to cover these and other subjects. So
in the meantime, I suggest that you go to http://blacksun.box.sk, find the
tutorials page and see if there's anything else that's interesting to you.
And remember - we also have a message board, so if you have any questions,
feel free to post them there.


weird shit (newbie note):

1) Multicast: (copied from RFC 1112)
  IP multicasting is the transmission of an IP datagram to a "host
  group", a set of zero or more hosts identified by a single IP
  destination address.  A multicast datagram is delivered to all
  members of its destination host group with the same "best-efforts"
  reliability as regular unicast IP datagrams, i.e., the datagram is
  not guaranteed to arrive intact at all members of the destination
  group or in the same order relative to other datagrams.

  The membership of a host group is dynamic; that is, hosts may join
  and leave groups at any time.  There is no restriction on the
  location or number of members in a host group.  A host may be a
  member of more than one group at a time.  A host need not be a member
  of a group to send datagrams to it.

  A host group may be permanent or transient.  A permanent group has a
  well-known, administratively assigned IP address.  It is the address,
  not the membership of the group, that is permanent; at any time a
  permanent group may have any number of members, even zero.  Those IP
  multicast addresses that are not reserved for permanent groups are
  available for dynamic assignment to transient groups which exist only
  as long as they have members.

  Internetwork forwarding of IP multicast datagrams(ip packets)is handled by
  "multicast routers" which may be co-resident with, or separate from,
  internet gateways.  A host transmits an IP multicast datagram as a
  local network multicast which reaches all immediately-neighboring
  members of the destination host group.  If the datagram has an IP
  time-to-live greater than 1, the multicast router(s) attached to the
  local network take responsibility for forwarding it towards all other
  networks that have members of the destination group.  On those other
  member networks that are reachable within the IP time-to-live, an
  attached multicast router completes delivery by transmitting the
  datagram(ip packet) as a local multicast.

  *if you donot understand the above do not worry, it is complicated and dry
  but reread it and read it again get a dictionary if it helps.
  Hacking is not easy.

2) MSB: Most Significent Bit:
  In set numbers the first number on the left is the most important because it
  holds the highest value as opposed to the LSB=> least significent bit, it
  always holds the the smallest value.