Search This Blog

Friday, December 2, 2011

Run DOS programs in Windows 7

Here's the general rule: If the DOS program ran in XP, it will probably run in a 32-bit version of Windows 7. But no DOS program can ever run in a 64-bit version of Windows 7.
Except that there's a workaround. I'll explain it in a minute.
If you're not sure whether your Windows is 32- or 64-bit, click the Start orb, right-click Computer, and select Properties. Look for the System type.
You can launch most DOS apps in a 32-bit version of Windows 7 simply by double-clicking the DOS program's .exe or .com file. If it doesn't work, or if there are problems, right-click the file and selectProperties. Click the Compatibility tab. Check the "Run this program in compatibility mode for" option and select an older version of Windows. You may have to do some experimenting to find the right one.
And if none of those work, try the 64-bit solution below.
Actually, there are several solutions, all of which involve using software to create a virtual machine (VM) inside Windows. If you want to run a lot of different operating systems inside Windows, VMware Player is probably your best bet.
But if all you're only looking for is a way to run DOS programs, try DOSBox, a free program that launches a DOS VM. I can't promise it will work with every program you throw at it, but it worked for every one I tried.
Once you download and install DOSBox, here's how to set it up so that it can find and work with your DOS programs and files:
  1. Create a folder (just as an example, let's call it C:\DOSFiles) and place in it every program and file you want DOSBox to access. You can use subfolders within that folder.
  2. Click Start, type notepad and press ENTER to bring up Notepad.
  3. Click Start, and select All Programs, DOSBox-0.74 (the version number may change), Extras, Screenshots & Recordings.
  4. This will open Windows Explorer to a probably empty folder inside the DOSBox configuration folder. In the path bar at the top of the window, click DOSBox to go to that folder.
  5. Drag the file dosbox-0.74.conf into Notepad. (The .conf part will probably not be visible.)
  6. In Notepad, go to the bottom of the file, where you'll find the [autoexec] section.
  7. On a blank line at the end of the file, type mount driveletter path, where driveletter is the drive letter you wish to assign the folder to, and path is the path to that folder. For instance, mount a c:\dosfileswil make the C:\DOSFiles folder appear as DOSBox's drive A:.
  8. Save the file and launch DOSBox.

Download and Install Packages for SAMBA - PART2


Most RedHat and Fedora Linux software products are available in the RPM format. Downloading and installing RPMs isn't hard. If you need a refresher, Chapter 6, "Installing Linux Software", covers how to do this in detail.
Samba is comprised of a suite of RPMs that come on the Fedora CDs. The files are named:
  • samba
  • samba-common
  • samba-client
  • samba-swat

When searching for the file, remember that the RPM's filename usually starts with the RPM name followed by a version number as in samba-client-3.0.0-15.i386.

How to Get Samba Started

  • You can configure Samba to start at boot time using the chkconfig command:
[root@bigboy tmp]# chkconfig smb on
  • You can start/stop/restart Samba after boot time using the smb initialization script as in the examples below:
[root@bigboy tmp]# service smb start
[root@bigboy tmp]# service smb stop
[root@bigboy tmp]# service smb restart
Sometimes Samba may have an ancillary nmb daemon that also needs to be started. The syntax is the same as that for the smb daemon.
[root@bigboy tmp]# service nmb start
[root@bigboy tmp]# service nmb stop
[root@bigboy tmp]# service nmb restart
Note: Unlike many Linux packages, Samba does not need to be restarted after changes have been made to its configuration file, as it is read after the receipt of every client request.
  • You can test whether the smb process is running with the pgrep command, you should get a response of plain old process ID numbers:
[root@bigboy tmp]# pgrep smb

The Samba Configuration File

The /etc/samba/smb.conf file is the main configuration file you'll need to edit. It is split into five major sections, which Table 10-1 outlines:

Table 10-1 : File Format - smb.conf

SectionDescription
[global]General Samba configuration parameters
[printers]Used for configuring printersUsed for configuring printers
[homes]Defines treatment of user logins
[netlogon]A share for storing logon scripts. (Not created by default.)
[profile]A share for storing domain logon information such as "favorites" and desktop icons. (Not created by default.)
You can edit this file by hand, or more simply through Samba's SWAT web interface.

In the next PART we will find more about SWAT Web interface..!!

How to install Ubuntu Linux from USB Stick

This tutorial describes how to install Ubuntu by copying the contents of the installation CD to an USB memory stick (aka flash drive) and making the stick bootable. This is handy for machines like ultra portable notebooks that do not have a CD drive but can boot from USB media.
In short here’s what you do:
Prepare the USB flash drive
Boot the computer from your USB flash drive.
Install Ubuntu as you would from a normal boot CD
Prerequisites
A running Ubuntu 8.04 or any ubuntu version installation
A USB device (stick, pen-drive, USB hard disk) that has already been formatted with FAT32 and has enough free space to hold your Ubuntu installation image
A Ubuntu CD image downloaded from the Ubuntu servers or mirrors (*.iso file) or from here 
Step 1
On the root directory of your USB device, create a folder “install”
Copy the installer kernel and the initramdisk into this folder (Download source below.You need the files “vmlinux” and “initrd.gz”).
Download source for the installer kernel and initramdisk
For AMD64 Download from here
For i386 Download from here
You need to download the files “vmlinux” and “initrd.gz”.
Step 2
Note: You need to have the installer that fits the architecture of your Ubuntu version you want to install. In other words, you need a amd64 installer if you want to install an amd64 Ubuntu .iso image and the i386 installer for an i386 iso.
Step 3
From the installation iso image you downloaded, copy the folder “isolinux” to the root directory of your USB device (right-click on the .iso file, choose “extract here”). Rename “isolinux” into “syslinux”. Go inside the directroy “syslinux”. There, rename the file “isolinux.cfg” into “syslinux.cfg”.
Step 4
Make the stick bootable: Use fdisk to set the boot flag,
Install syslinux using the following command
sudo aptitude install syslinux
Now use syslinux to install a boot sector on your USB device
sudo syslinux /dev/sdbX
where sdbX is the device name and number of your USB device, check with “sudo mount”. A file called “ldlinux.sys” will be created in the root direcotry of the USB device.
Step 5
Copy the Ubuntu CD image in the root directory of your USB device (Contents of USB you can see as follows).If you are using i386 you need to copy the complete .iso image in to the root directory of your USB device.
Link:

Wednesday, November 30, 2011

Windows, Linux, and Samba - PART 1(Introduction)


Samba is a suite of utilities that allows your Linux box to share files and other resources, such as printers, with Windows boxes. This chapter describes how you can make your Linux box into a Windows Primary Domain Controller (PDC) or a server for a Windows Workgroup. Either configuration will allow everyone at home to have:
  • their own logins on all the home windows boxes while having their files on the Linux box appear to be located on a new Windows drive
  • shared access to printers on the Linux box
  • shared files accessible only to members of their Linux user group.
What's the difference between a PDC and Windows Workgroup member? A detailed description is beyond the scope of this chapter, but this simple explanation should be enough:
  • A PDC stores the login information in a central database on its hard drive. This allows each user to have a universal username and password when logging in from all PCs on the network.
  • In a Windows Workgroup, each PC stores the usernames and passwords locally so that they are unique for each PC.
This chapter will only cover the much more popular PDC methodology used at home. By default, Samba mimics a Windows PDC in almost every way needed for simple file sharing. Linux functionality doesn't disappear when you do this. Samba Domains and Linux share the same usernames so you can log into the Samba based Windows domain using your Linux password and immediately gain access to files in your Linux user's home directory. For added security you can make your Samba and Linux passwords different.
When it starts up, and with every client request, the Samba daemon reads the configuration file /etc/samba/smb.conf to determine its various modes of operation. You can create your own smb.conf using a text editor or the Web-based SWAT utility which is easier. Keep in mind, however, that if you create /etc/samba/smb.conf with a text editor then subsequently use SWAT to edit the file, you will lose all the comments you inserted with the text editor. I'll explain how to use both SWAT and a text editor to configure Samba later in this chapter.
Note: As your smb.conf is constantly being accessed, you're better off editing a copy of it if you decide not to use SWAT. 

Redhat linux installation steps with screenshot

What is Linux?
Linux is a Unix-like computer operating system. Linux is one of the most prominent examples of free software and open source development; typically all underlying source code can be freely modified, used, and redistributed by anyone.
The Linux kernel was first released to the public on 17 September 1991, for the Intel x86 PC architecture. The kernel was augmented with system utilities and libraries from the GNU project to create a usable operating system, which led to an alternative term, GNU/Linux. Linux is packaged for different uses in Linux distributions, which contain the sometimes modified
kernel along with a variety of other software packages tailored to different requirements.
Predominantly known for its use in servers, Linux is supported by corporations such as Dell, Hewlett-Packard, IBM, Novell, Oracle Corporation, Red Hat, and Sun Microsystems. It is used as an operating system for a wide variety of computer hardware, including desktop computers, supercomputers, video game systems, such as PlayStation 2, 3, several arcade games, and embedded devices, such as mobile phones and routers.
How to install Linux Redhat Enterprise?
Insert your linux cd 1 on the CD-ROM and let it booting.
linux_redhat_enterprise_boot_1.PNG
Linux is booting…
linux_redhat_enterprise_boot_2.PNG
Welcome to Red Hat Enterprise Linux screen.
linux_redhat_enterprise_welcome_3.PNG
Red Hat Enterprise Linux screen.
linux_redhat_enterprise_screen_4.PNG
Click next to continue installation.
linux_redhat_enterprise_setup_5.PNG
Select the appropriate keyboard for the system. Click next to continue installation.
linux_redhat_enterprise_setup_keyboard_7.PNG
This operation will override any previous installation choices about which drives to ignore. Click yes to first time install the operating system and it will erasing all data.
linux_redhat_enterprise_disk_partitioning_8.PNG
Use automatic partinioning for beginner and you might set your own size if you want. Click next.
linux_redhat_enterprise_disk_partitioning_9.PNG
The GRUB boot loader wil be installed on /dev/sda. Click next.
linux_redhat_enterprise_boot_loader_10.PNG
You may set the IP address on your on host. Let it be automatically via DHCP first. You may configure the IP address later.
linux_redhat_enterprise_network_11.PNG
Click next to get the default setting of firewall and it will allowed www(http) to passw through the firewall.
linux_redhat_enterprise_firewall_12.PNG
Select the default language for the system. Click next.
linux_redhat_enterprise_language_13.PNG
Please select the time zone selection.
linux_redhat_enterprise_time_zone_14.PNG
Set the Root Password for the system.
linux_redhat_enterprise_root_password_15.PNG
The default installation environment includes recommended package selection as below pic.
linux_redhat_enterprise_package_16.PNG
Click next to begin installation.
linux_redhat_enterprise_about_install_17.PNG
Linux is installing.
linux_redhat_enterprise_installing_disk1_18.PNG
Linux is installing disk 2.
linux_redhat_enterprise_installing_disk2_19.PNG
Linux is installing disk 3.
linux_redhat_enterprise_installing_disk3_20.PNG
Linux is installing disk 4
linux_redhat_enterprise_installing_disk4_21.PNG
Linux is installing disk 1.
linux_redhat_enterprise_installing_disk1_22.PNG
The video hardware can be automatically detected. Click next to continue.
linux_redhat_enterprise_graphical_23.PNG
The monitor can be automatically detected.
linux_redhat_enterprise_monitor_24.PNG
Customize your own graphical configuration. Please select your login type.
linux_redhat_enterprise_customize_graphical_25.PNG
Congratulations, the installation is complete.
linux_redhat_enterprise_installing_complete_26.PNG
Next to continue some few configuration after installation.
linux_redhat_enterprise_welcome_setup_27.PNG
Linux is restarting….
linux_redhat_enterprise_loading_welcome_28.PNG
Linux is restarting……
linux_redhat_enterprise_loading_29.PNG
Select to agree the license agreement.
linux_redhat_enterprise_license_agreement_30.PNG
Choose your date and time.
linux_redhat_enterprise_date_time_31.PNG
Create you personal user account. Please not to create same account as root!!!!!!!
linux_redhat_enterprise_user_account_32.PNG
A sound card has been detected on your computer.
linux_redhat_enterprise_sound_card_33.PNG
You may register the product by selecting the option below.
linux_redhat_enterprise_network_34.PNG
You can install addition packages if you have the extras CDs.
linux_redhat_enterprise_additional_cd_35.PNG
Finish setup, and please click the ‘next’ button to continue.
linux_redhat_enterprise_finish_setup_36.PNG
Please enter your username and password.
linux_redhat_enterprise_login_username_37.PNG
Entering Linux……………..checking hardware………….
linux_redhat_enterprise_login_password_38.PNG
Here’s your Linux!!! Have Fun!!!!!
linux_redhat_enterprise_front_page_39.PNG