Showing posts with label to. Show all posts
Showing posts with label to. Show all posts

Thursday, July 25, 2013

How To Configure Wireless / WiFi Networking in Ubuntu via the Command Line (CLI)

How To Configure Wireless / WiFi Networking in Ubuntu via the Command Line (CLI)

There are a number of tutorials available on-line for sorting out WiFi in Ubuntu via the CLI, but most of them seem quite outdated, so I decided to do my own.

I did this on a minimal install of Ubuntu Lucid, so it is as up-to-date as possible. The PC I was using has no Windows Manager of Graphical Display Manager, just the good old terminal so all this is done via the CLI only. I did this using a USB WiFI dongle, but it should be the same whether you use an internal card or a USB card.

First, you need to install the relevant software. You need to have a wired connection at this point, otherwise this wont work.

sudo apt-get install wireless-tools wpasupplicant

If you are connecting to an open network, you wont need wpasupplicant. Next, you need to “bring up” (essentially this means activate) your WiFi interface. So, issue:

sudo ifconfig wlan0 up

Next, to make sure your wireless device is working as it should issue:

iwconfig

and then

sudo iwlist scan

This should show you some wireless networks as proof that the WiFi device is working, if something goes wrong here, then there is a problem with your device or driver and you need to get googling.
If you are accessing a secured network and you really should be, you need to access the correct version of your WiFi key. To get your key, issue this command:

wpa_passphrase YOURSSID YOURWIFIPASSWORD 

This will result in something that looks like this:

network={
ssid="YOURSSID"
#psk="YOURWIFIPASSWORD"
psk=fe727aa8b64ac9b3f54c72432da14faed933ea511ecab1 5bbc6c52e7522f709a


You need to make a note of the long phrase after psk= (NOT #psk=) as this your WiFi password in hex format.
Next, you need to edit your interfaces file, so issue:

sudo nano /etc/network/interfaces

At the end of this file, you need to add your WiFi configuration. Here are the options you can add.

auto wlan0     #change this to the name of your WiFi interface
iface wlan0 inet dhcp     #this is normally fine, if you want a static IP address replace “dhcp” with “static”
netmask 255.255.255.0     #change this as appropriate for your network, this value is usually right
gateway 192.168.1.1     #change this as appropriate for your network
address 192.168.1.100     #only needed for a static IP address
dns-nameservers 192.168.1.1     #only needed for a static IP address
wpa-driver wext     #you shouldn’t need to change this
wpa-ssid YOURSSID     #just type the name of your SSID here
wpa-ap-scan 1     #if the name of your SSID is hidden usually, type 2 instead of 1
wpa-proto WPA    #if you use WPA1 type WPA, if you use WPA2 type RSN
wpa-pairwise CCMP     #if you use AES type CCMP, if you use TKIP type TKIP
wpa-group CCMP     #if you use AES type CCMP, if you use TKIP type TKIP
wpa-key-mgmt WPA-PSK     #usually WPA-PSK (if you share a key) but sometimes WPA-EAP (for enterprises)
wpa-psk YOURHEXKEYFROMABOVE     #the hex key that you generated earlier

Thus, since I am using a WiFi card that is identified as wlan0 and am connecting to a WPA1 AES encrypted network called MYPLACE that isn’t hidden without a static IP address, this is what I added:

auto wlan0
iface wlan0 inet dhcp
netmask 255.255.255.0
gateway 192.168.1.1
wpa-driver wext
wpa-ssid MYPLACE
wpa-ap-scan 1
wpa-proto WPA
wpa-pairwise CCMP
wpa-group CCMP
wpa-key-mgmt WPA-PSK
wpa-psk 71c81a844973ae7bb1243141e5caa7b6bb0e2d7eetcetcetc


Finally, comment out the top section so it looks like this:

#auto eth0
#iface eth0 inet dhcp


This stops your wired network from working. This helps to ensure there are no conflicts. Remember, if you want your wired network to work again, remove these two comments (the #).
Finally, save the file by pressing CTRL and X and then pressing Y to save to the file. Now, reboot and your network should come up. Yay!
Some people have found that this doesn’t always work, so the next thing to do is to edit the configuration file for the wpasupplicant program. Do this by issuing:

sudo nano /etc/wpa_supplicant.conf

Basically, you add pretty much the same information here as you did to the interfaces file, except without the wpa- part. So, my file looks like this:

ap_scan=1
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="MYPLACE"
scan_ssid=0
psk=71c81a844973ae7bb1243141e5caa7b6bb0e2d7eetcetcetc
key_mgmt=WPA-PSK
proto=WPA
pairwise=CCMP
group=CCMP
}


As far as I am aware, the options are the same. So, edit this file as necessary, make sure you add the ctrl_interface and network={ at the beginning and the } part at the end. Save it and try restarting again. If it still doesn’t work, then kick your PC, wish you had installed Windows 7 instead and go off and do some Googling. You’ll find the answer on the Ubuntu forums and you’ll be happy again.

Best of luck!

Wednesday, January 9, 2013

Rip, copy a CD/DVD to ISO format.

Rip a CD/DVD to ISO format.

$ dd if=/dev/cdrom of=~/cdrom_image.iso

Rip a CD/DVD to ISO format.
An easy method to generate ISOs from CD/DVD media.

Alternatives

There are 2 alternatives

$ readom dev=/dev/scd0 f=/path/to/image.iso

Create a CD/DVD ISO image from disk.
Many like to use 'dd' for creating CD/DVD iso images. This is bad. Very bad. The reason this is, is 'dd' doesn't have any built-in error checking. So, you don't know if you got all the bits or not. As such, it is not the right tool for the job. Instead, 'reaom' (read optical media) from the wodim package is what you should be using. It has built-in error checking. Similarly, if you want to burn your newly creating ISO, stay away from 'dd', and use:

wodim -v -eject /path/to/image.iso
$ readcd dev= f=foo.iso

The only problem here is that there is no error checking or correction. The cdrecord package includes a command line tool called readcd that rips CDs to iso files quite nicely
 

Tuesday, August 14, 2012

How to I change my Keyboard Layout on Openbox?

From a terminal run the following command:

sudo dpkg-reconfigure console-setup
 
This will step through various configuration options for your console, along with Keyboard Layout.

For temporarily switching between keyboard layouts

Especially if you don't have too many keybindings 
So I needed to have both the regular US keyboard as well as the US International keyboard so that I could type in Thai keyboard.
Here are the steps I took:
1) Determine which keyboard layouts you want to switch between. Determine if you want 2, 3, or more. This tutorial will work with as many as you need, but this is the first step 
2) Open up a text editor and open the file ~/.config/openbox/rc.xml
3) Scroll down to the keybindings section - you should see stuff like <keybinding key="“blah-blah”"></keybinding>
4) Find any line which says </keybinding>
5) Go to the end of that line and hit Enter
6) Copy and paste the following text:

    <keybind key="C-F11">
    <action name="Execute">
    <startupnotify>
    <enabled>true</enabled>
    <name>English keyboard</name>
    </startupnotify>
    <command>setxkbmap us</command>
    </action>
    </keybind>

    <keybind key="C-F12">
    <action name="Execute">
    <startupnotify>
    <enabled>true</enabled>
    <name>Thai keyboard</name>
    </startupnotify>
    <command>setxkbmap th</command>
    </action>
    </keybind>

7) Edit the <key=“C-F12”> and the <command>setxkbmap th</command> to fit your desires (C is Ctrl key, A is Alt key, S is Shift key, and change it if you want :-D)
8) Rinse, Lather, and Repeat for all of your other desired keymaps.
9) Restart Openbox or reboot computer.
That's it!

Wednesday, February 2, 2011

How to install your ipa

This will tell you many of the different ways you can install Chaos Rings.ipa or any other ipa on your iDevice.YOU MUST HAVE A JAILBROKEN DEVICE.

1. Through iTunesThe first and most common method used is through iTunes. You must have the following from cydia.a) Installd Patch for firmware 3.0/3.0.1/3.1.1/3.1.2b) miPatch for firmware 2.2/2.2.1This allows cracked ipas from iTunes be synced onto the iDevice. Simply drag the ipa into iTunes and sync it to your iDevice. You should now have that ipa on your springboard!

2. SSHSSH is a little more complicated than simply using iTunes, but I find it to be the most convenient way. You must have the following from cydia.a)OpenSSHOn your computer, you must also have an SFTP/FTP client installed. I Use WinSCP. Download that here.http://winscp.net/eng/download.phpOnce you install it, open it up and it should take you to a screen with the options new, edit, delete, rename, etc.Select new, and enter the following.

a) Host name: Your host name is always your IP address. Open the settings app on your iDevice, then select WiFi, and tap the blue arrow next to your currently connected WiFi. Where it says IP Address is what your host name is going to be. Type that in the host name.

b) Port number: Should usually leave as is.

c) User Name: Your user name is always root. So type in root.

d) Password: The default password is alpine. Unless you have changed it to something else, type in alpine.

e) Private key file: Just leave this blank.You can either save the connection, so you don't have to fill in all the fields again by clicking save..., or you can just login.Once you are connected, you will be in the directory /private/var/root. Depending on what you would like to install it with, you will have to select different folders.I use the Installous folder, to install my ipas. If you do not have Installous 3 or higher, you can download it from a source.To add a source, go into cydia and select the manage tab. Then select sources, Then edit in the top right corner, and then add in the top left corner. A window should pop up with http:// already typed in. Type in,cydia.hackulo.usThen select add anyway. Now go into the search tab and type in Installous. It should now come up and let you install it.Back to SSHing, click the folder with the two dots until you are in /private/var. Then look for the folder mobile and open it. Then select the documents folder. Then select the Installous folder. And then select the downloads folder. You should now be in /private/var/mobile/Documents/Installous/Downloads.Simply drag the ipa there and let it copy it over. Once it is finished, go on your iDevice and open Installous. The ipa should now be in the downloads tab at the bottom. Simply tap the ipa and select install, then it will install your ipa.

I hope it has helped someone :D

Wednesday, January 6, 2010

Internet Explorer 7.0 can't add favorites "Unable to create XXX: Unspecified error".

Internet Explorer 7.0 can't add favorites

"Unable to create XXX: Unspecified error".


If you have moved the location of your Favorites folder, IE7's Protected Mode will prevent you from being able to write to the new location and will cough up an unspecified error when you try to save a web page to your Favorites. Here is how to overcome this:



1. Close Internet Explorer.

2. Click the Start button.

3. Click All Programs.

4. Go into Accessories.

5. Right-click on Command Prompt.

6. Select Run as administrator.

7. When the UAC Prompt appears, click Continue.

8. At the command prompt, go to the new location for your Favorites folder.

9. Input this command without the quotes "icacls favorites /setintegritylevel (OI)(CI)low"

10. Press Enter on the keyboard.

11. Close the window.

-------------------------------------------------------------------
icacls - the name of the command were using

/setintegritylevel - the function used (in pretty plain english, Thanks Microsoft.)

/OI - object inherit, ie, the files get the same integrity level as the folder they are in.
/CI - container inherit, ie, folders get the same integrity level as the folder they are in

-------------------------------------------------------------------


I also had to run this command on my "C:\Users\%USERNAME%\AppData\Local\Temp" and "C:\Users\%USERNAME%\AppData\Local\Temp\Low" folders in order to print from IE. Replace "%USERNAME%" with your username.

How To Convert DMG To ISO on Mac OSX, Windows and Linux

Here are ways that you can convert dmg files to iso files on Mac OSX, Windows and Linux.

Before we start, let’s download a dmg file from the public domain. I found one on Apple’s article about The XMLHttpRequest Object website while I was learning Ajax and that can be downloaded from this link. This is just a 150KB dmg file and will be handy if you want to have something to test with while you’re following this tutorial.

How to convert dmg files to iso files on Mac

Method 1: Using the Mac terminal
1. Open a terminal window from Finder > Applications > Utilities > Terminal.

2. Assuming that you have a disk image called apple.dmg in the current directory, type

hdiutil convert apple.dmg -format UDTO -o apple.iso

3. This will actually create a file called image.iso.cdr in the current directory (even though we asked for the output to be image.iso). This file can be safely renamed to image.iso, copied to a Windows server or machine, and burned with your CD/DVD burner of choice.

Generally, the command hdiutil can be used this way:

hdiutil convert /path/to/filename.dmg -format UDTO -o /path/to/savefile.iso

Method 2: Using DMGConverter (freeware)
1. DMGConverter is a disk image (.dmg, .cdr, .iso) creation and conversion tool which is simple and easy to use. It is a very useful tool for the collective processing of more than one file and every folder, and it can deal with all the fundamental processing with the drag & drop of the file/folder. For Mac Only.

How to convert dmg files to iso files on Windows

This is for Windows users who might have downloaded a dgm file and wondering how to extract the content, or not even knowing how and what to do with the dgm file. I’ve been there at a certain stage. the sharewares mentioned are fully functional and allows you to use the “convert dmg to iso” function even when it’s not registered yet.

Method 1: Using MagicISO (shareware)
1. Download MagicISO, install and run program.

2. Click to open dmg file.

3. Click to open “Properties” dialogs.

4. Uncheck Apple HFS and Apple HFS+

5. Check “ISO 9660″ “Joliet” “UDF”

6. Click OK

7. Click to save as to iso image, or click to burn to CD/DVD without saving.

Method 2: Using UltraISO (shareware)
UltraISO basically does the same thing, but it can save you time from doing step 3 to 6 compared to method 1.

Alternative Solutions: dmg2iso (freeware) and isobuster (shareware)
I’ve heard and read that some people had been able to convert dmg files into iso files using dmg2iso (freeware). I’ve tried dmg2iso, converted my dmg file to iso without problem, but the converted iso file is corrupted and can’t be open by any tools (Daemon Tools, Alcohol, MagicISO, UltraISO and ISOBuster) that I’ve tested. It might work for you, but no guarantees.

ISOBuster is pretty similar to MagicISO and UltraISO. But too bad that the function to “convert dmg to iso” is restricted and won’t be functional until you buy the software.

How to convert dmg files to iso files On Linux

Free open-source app AcetoneISO provides a great deal of disc image manipulation tools not found in the Gnome desktop. It can mount/unmount a variety of image formats (ISO, DMG, MDF, NRG, BIN, NRG), convert images, create, encrypt, and decrypt ISOs, play DVDs (with the required codecs installed), and much more. It is particularly useful for mounting proprietary formats found in Windows and Mac boot discs. AcetoneISO is a one-stop-shop for all of your CD/DVD image manipulation needs, and is a free download for Linux only. This works on all famous linux distro such as Ubuntu, SUSE, Fedora, Mandrake, and Redhat.

So there you have it, and this should get you covered no matter what operating system you’re using.

Wednesday, November 18, 2009

How to Set up Network Bonding in Ubuntu 6.10

Why you may want to do this:

Network Bonding, otherwise known as port trunking allows you to combine multiple network ports into a single group, effectively aggregating the bandwidth of multiple interfaces into a single connection. For example, you can aggregate two gigabyte ports into a two-gigabyte trunk port. Bonding is used primarily to provide network load balancing and fault tolerance. First, we will run two different network tools to check for network connectivity and capability. Run mii-tool to check your interfaces for connectivity:

# mii-tool

For our purposes, we will assume you have three interfaces. The result of the mii-tool command is listed below:

eth0: negotiated 100baseTx-HD, link ok
eth1: negotiated 100baseTx-HD, link ok
eth2: negotiated 100baseTx-HD, link ok

Next run ethtool for each interface to check to see what capabilities:

# ethtool eth0 && ethtool eth1 && ethtool eth3

The result of the ethtool command is listed below:

Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Half
Port: MII
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: g
Current message level: 0x00000007 (7)
Link detected: yes
Settings for eth1:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: Unknown! (65535)
Duplex: Unknown! (255)
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: umbg
Wake-on: d
Current message level: 0x00000007 (7)
Link detected: no
Settings for eth3:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: Unknown! (65535)
Duplex: Unknown! (255)
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: umbg
Wake-on: d
Current message level: 0x00000007 (7)
Link detected: no

Next, we need to install ifenslave. It’s a simple install:

# apt-get update && apt-get install ifenslave

Options for mode types:

You can set up your bond interface according to your needs. In order to do this, you simply change the mode type depicted in the examples below (mode=X). There are seven mode types available. They are as follows:

mode=0

This mode uses the Round-robin policy: Transmit packets in sequential order from the first available slave through the last. This mode provides load balancing and fault tolerance.

mode=1

This mode uses an Active-backup policy: Only one slave in the bond is active. A different slave becomes active if, and only if, the active slave fails. The bond's MAC address is externally visible on only one port (network adapter) to avoid confusing the switch. This mode provides fault tolerance. The primary option affects the behavior of this mode.

mode=2

Transmit based on [(source MAC address XOR'd with destination MAC address) modulo slave count]. This selects the same slave for each destination MAC address. This mode provides load balancing and fault tolerance.

mode=3

Broadcast policy: transmits everything on all slave interfaces. This mode provides fault tolerance.

mode=4

IEEE 802.3ad Dynamic link aggregation. Creates aggregation groups that share the same speed and duplex settings. Utilizes all slaves in the active aggregator according to the 802.3ad specification.

*Pre-requisites:

1. Ethtool support in the base drivers for retrieving the speed and duplex of each slave.

2. A switch that supports IEEE 802.3ad Dynamic link aggregation. Most switches will require some type of configuration to enable 802.3ad mode

mode=5

Adaptive transmit load balancing: channel bonding that does not require any special switch support. The outgoing traffic is distributed according to the current load (computed relative to the speed) on each slave. Incoming traffic is received by the current slave. If the receiving slave fails, another slave takes over the MAC address of the failed receiving slave.

*Prerequisite: Ethtool support in the base drivers for retrieving the speed of each slave.

mode=6

Adaptive load balancing: includes balance-transmit load balancing plus receive load balancing for IPV4 traffic, and does not require any special switch support. The receive load balancing is achieved by ARP negotiation. The bonding driver intercepts the ARP Replies sent by the local system on their way out and overwrites the source hardware address with the unique hardware address of one of the slaves in the bond such that different peers use different hardware addresses for the server.

Now append the following items to your aliases file:

# pico /etc/modprob.d/aliases

# Append to the bottom of this file:
alias bond0 bonding
alias eth0 e100
alias eth1 e100
alias eth2 e100
options bonding mode=0 miimon=100

Next, append the following items to your i386 file:

# pico /etc/modprob.d/arch/i386

# Append to the bottom of this file:
alias bond0 bonding
options bonding mode=0 miimon=100 downdelay=200 updelay=200

Now we have to modify the interface file. Start off by commenting out any information on the physical interfaces, eth0, eth1, etc, and create a virtual interface such as bond0, configure it similar to below, and be sure to choose a unique hwaddress. Be sure to leave the loopback interface configuration intact.

# pico /etc/network/interfaces

It should look something like this:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#auto eth0
#iface eth0 inet static
# address 192.168.0.120
# netmask 255.255.255.0
# network 192.168.0.0
# broadcast 192.168.0.255
# gateway 192.168.0.1
auto bond0
iface bond0 inet static
address 192.168.0.120
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
hwaddress ether 00:03:B3:48:50:2C
post-up ifenslave bond0 eth0 eth1

Save the file and then reboot the system:

# shutdown -r now

Monday, February 16, 2009

How to automatically update Symantec AntiVirus Corporate Edition definitions without using LiveUpdate

How to automatically update Symantec AntiVirus Corporate Edition definitions without using LiveUpdate

Question/Issue:
Your primary Symantec AntiVirus Corporate Edition server cannot automatically download virus definitions using LiveUpdate. Alternately, you want to automate the process of downloading the daily definitions update download by using an FTP script.


Solution:
Download and modify the attached Cegetter.bat and Cescript.txt files, and then use the Windows Task Scheduler to schedule them to download daily virus definition updates.


Notes:
  • These files are provided as an example to assist administrators with downloading the virus definitions without using LiveUpdate. Symantec does not provide technical support for these files, so use them at your own risk.

    The location of the files downloaded by these files may change, causing the updates to fail. In this case, you may need to manually edit the files to point to the new location or refer back to this document for updated versions of the attached files.
  • Cescript.txt was last updated on February 8, 2005. If you are using a previous copy of Cescript, replace it with the current file attached to this document. For additional information about recent changes to the file, read the article Cegetter.bat fails to download daily virus definitions after February 8, 2005.



Download the Cegetter.bat and Cescript.txt files.
  • You must modify the Cegetter.bat to copy definitions to the directory where Symantec AntiVirus Corporate Edition is installed on the Primary Symantec AntiVirus Server.
  • Both the Cegetter.bat and Cescript.txt should be stored on the root of the Windows boot drive on the computer where it will be executed. If Windows is installed on a drive other than C:, edit the Cescript.txt file to change the drive letter. See the section below titled "To modify the Cescript.txt file to reflect the proper drive letter."
To modify Cegetter.bat to run from the Primary Server
If you plan to schedule and execute Cegetter.bat on the Primary Server, use the following procedure. If you plan to run Cegetter.bat on a computer that is not the Primary Server, skip to the section "To modify Cegetter.bat to run from a computer that is not the Primary Server."
  1. Right-click the Cegetter.bat file, and click Edit.
  2. Find the following line in the Cegetter.bat file:

    move %systemdrive%\*.xdb
  3. If you are using Windows 2000, XP, or 2003, add the characters /y after the word move. The line should look like the following:

    move /y %systemdrive%\*.xdb

    If you are using Windows NT 4.0, do not add /y.
  4. Replace with the path to the folder in which Symantec AntiVirus Corporate Edition is installed. The default path depends on the version of Symantec AntiVirus:
    • Symantec AntiVirus Corporate Edition 8.x:
      C:\Program Files\SAV
    • Symantec AntiVirus Corporate Edition 9.x:
      C:\Program Files\Symantec AntiVirus

      If long path names are used, then make sure to enclose all path names in quotations, as shown in the Examples section.
  5. Test Cegetter.bat by executing each command, line by line, from a command prompt.
    A DOS window shows the progress of the download.
  6. Schedule Cegetter.bat to get regular definition updates. Cegetter will download the version of Navup8.exe that is released daily.

Examples
The Cegetter.bat file should appear as follows if Symantec AntiVirus Corporate Edition 8.x was installed to the default path:

ftp -s:cescript.txt
call "%systemdrive%\navup8.exe"
move %systemdrive%\*.xdb "C:\Program Files\SAV"
del /q %systemdrive%\navup8.exe


The Cegetter.bat file should appear as follows if Symantec AntiVirus Corporate Edition 9.x was installed to the default path:

ftp -s:cescript.txt
call "%systemdrive%\navup8.exe"
move %systemdrive%\*.xdb "C:\Program Files\Symantec AntiVirus"
del /q %systemdrive%\navup8.exe


To modify Cegetter.bat to run from a computer that is not the Primary Server
  1. Right-click the Cegetter.bat file, and click Edit.
  2. Find the following line in the Cegetter.bat file:

    move %systemdrive%\*.xdb
  3. If you are using Windows 2000, XP, or 2003, add the characters /y after the word move. The line should look like the following:

    move /y %systemdrive%\*.xdb

    If you are using Windows NT 4.0, do not add /y.
  4. Change to the directory where Symantec AntiVirus Corporate Edition is installed on the Primary Server. By default, this directory is shared as VPHOME.

Note: can be a mapped drive to the Primary Server or a UNC path. Symantec recommends using short file names. For example, if the server is mapped as drive x, you could use the following line:

move %systemdrive%\*.xdb x:\VPHOME

You can also specify a UNC path such as the example below, where you replace with the name or IP address of the Primary Server:

move %systemdrive%\*.xdb \\\VPHOME


To copy files into the VPHOME share, change the share permissions to allow access (Full Control) to the account that Cegetter is running under. The default permissions on that share is "Read" for "Everyone."
  1. If you are running Windows 95/98/Me, then remove the "/q" from the following line:

    del /q %systemdrive%\navup8.exe
  2. Test Cegetter.bat by executing each command, line by line, from a command prompt.
    A DOS window shows the progress of the download.
  3. Schedule Cegetter.bat to get regular definition updates. Cegetter will download the version of Navup8.exe that is released daily.

To modify the Cescript.txt file to reflect the correct drive letter
  1. Right-click the Cescript.txt file, and then click Edit.
  2. Find the following line in the Cescript.txt file:

    lcd C:\
  3. Change the C to the drive letter of the drive where Windows is installed.
  4. Save your changes.

Common problems and solutions
  • Incorrect path: Verify that the path to the directory where Symantec AntiVirus Corporate Edition is installed is correct. The file path should use short file names (DOS). If using long file names, enclose the path in quotation marks.
  • Proxy or firewall issues: If you are using a proxy or firewall that blocks FTP communications, Cegetter will not work. You must allow FTP traffic for the FTP session to succeed. If your proxy or firewall requires authentication, be sure to run the scheduled event using a user name and password that will authenticate and allow access.
  • Permissions: Verify that you can copy the .XDB file into the location on the Primary Server under the account that Cegetter is scheduled with.
  • Running under Windows 95/98/Me: A modified Cegetter.bat file is needed to run under Windows 95/98/Me. For additional information, read the document entitled Error: "File not found - C:\temp\*.vdb - 0 file(s) copied" when using Cegetter.bat to update virus definitions.
    Edit Cegetter.bat to contain the following text:

    ftp -s:cescript.txt
    choice /n/t:c,30/c:cc
    "%systemdrive%\navup8.exe"
    choice /n/t:c,30/c:cc
    move %systemdrive%\*.xdb
    del %systemdrive%\navup8.exe

Updating virus definitions for Symantec AntiVirus Corporate Edition 8.x and 9.x

Updating virus definitions for Symantec AntiVirus Corporate Edition 8.x and 9.x

Question/Issue:
This document describes the procedures to update virus definitions for Symantec AntiVirus Corporate Edition.


Solution:


Before you begin:
If you use ymantec AntiVirus Corporate Edition 10.x or Symantec Client Security 3.x, read the document Updating virus definitions for Symantec AntiVirus Corporate Edition 10.x and Symantec Client Security 3.x.


There are four methods for updating virus definitions:
  • The Virus Definition Transport Method (VDTM)
  • LiveUpdate
  • Copying an .xdb file
  • Intelligent Updater

Read the following descriptions, and choose a method or combination of methods that works best for your environment.

The Virus Definitions Transport Method (VDTM)
The VDTM is a fully automated solution for virus definitions distribution, and is enabled by default between servers and their managed clients. With the VDTM, it is only necessary to update one server in order to update all computers in the network. The server gets definitions updates using LiveUpdate or an .xdb file, and then automatically distributes the definitions to each of its clients on the network. Read the document How to use the Virus Definitions Transport Method (VDTM) in Symantec AntiVirus Corporate Edition for an overview and instructions. LiveUpdate
LiveUpdate is a program that connects to a server, downloads the latest definitions, and applies the definitions to the computer on which it is running. You can run LiveUpdate from Symantec System Center, or within Symantec AntiVirus. LiveUpdate can retrieve definitions files either from the Symantec server (which it does by default) or from an internal Web, FTP, or file server created with the LiveUpdate Administration Utility.

To run LiveUpdate on a primary server from the Symantec System Center Console
  1. Right-click the primary server, and then click All Tasks > Symantec AntiVirus > Virus Definition Manager.
  2. Click Configure.
  3. Click Update Now.
    LiveUpdate now runs silently in the background on the primary server. If the VDTM is enabled, it will distribute virus definitions to any secondary servers and clients when LiveUpdate finishes.
To run LiveUpdate on managed clients from the Symantec System Center Console
  1. Right-click a client or client group, and then click All Tasks > Symantec AntiVirus > Virus Definition Manager.
  2. Click Configure.
  3. Click Update Now.
    The affected clients try to obtain virus definitions from the parent server. After this attempt, the managed clients then run LiveUpdate.

To run LiveUpdate from the Symantec AntiVirus Corporate Edition interface
  1. Start Symantec AntiVirus Corporate Edition.
  2. Click LiveUpdate.
  3. Follow the on-screen prompts to download the latest definitions. If the computer is a parent server and the VDTM is enabled, it will distribute virus definitions to any subordinate servers and clients when LiveUpdate finishes.

Schedule LiveUpdate
You can schedule LiveUpdate to run periodically, either from the Virus Definition Manager within Symantec System Center, or by clicking File > Schedule Updates from within Symantec AntiVirus.

The LiveUpdate Administration Utility
On very large or widely distributed networks, it may be desirable to create an internal server and have clients use LiveUpdate to retrieve updates from that server, rather than using the VDTM.
For information on how to determine whether the LiveUpdate Administration Utility is necessary, and for instructions for its implementation, read the document How to configure the LiveUpdate Administration Utility.

Copying an .xdb file
You can update any Symantec AntiVirus server or client by downloading the .xdb file from Symantec. You can also copy an .xdb file from the VPHOME share on any Symantec AntiVirus server. The modified date of the .xdb file matches the date of the virus definitions. When you use this method, Rtvscan.exe checks for new .xdb files and then initiates the update process. Rtvscan.exe checks for new .xdb files approximately every 10 minutes by default. If you do not want to wait, you can manually initiate the update process by stopping and restarting the Symantec AntiVirus Server process.

To download an .xdb file from Symantec
  1. Go to the xdb folder on the Symantec FTP site.
    You can also find the file from the Symantec Security Response Virus Definitions Download Page.
  2. Click the .xdb file with the latest date, and select Save to disk from the dialog box.
  3. If the .xdb file downloads with a .zip extension, remove the .zip extension by renaming the file.
    The file name should be similar to the following:
    vd12bc02.xdb

To copy an .xdb file to a Symantec AntiVirus server
  • Copy the .xdb file to the Symantec AntiVirus program folder.
    • For NetWare servers, the default location is SYS:SAV.
    • For antivirus servers on Windows computers, the default is C:\Program Files\SAV\ for Symantec AntiVirus 8.x, or C:\Program Files\Symantec AntiVirus for Symantec AntiVirus 9.x.
The location of the folder can vary if you upgraded from a previous version.
For help with this, see the "To find the Symantec AntiVirus program folder" section in the Technical Information section of this document.

To copy an .xdb file to a Symantec AntiVirus client
  • Copy the .xdb file to the correct folder, depending on the program version:
    • For clients that run Windows 2003/XP/2000, the default folder is one of the following:
      • C:\Documents and Settings\All Users\Application Data\Symantec\Norton AntiVirus Corporate Edition\7.5\
      • C:\Documents and Settings\All Users\Application Data\Symantec\Symantec AntiVirus Corporate Edition\7.5\

        The Application Data folder may be hidden. To show hidden and system folders, read the document How to make Windows show all files.
    • For clients that run Windows 98/Me, the following is the default folder:
      C:\Program Files\Symantec_Client_Security\Symantec AntiVirus\ or C:\Program Files\Symantec AntiVirus\
    • For clients that run Windows NT 4.0, the following is the default folder:
      C:\WinNT\Profiles\All Users\Application Data\Symantec\Norton AntiVirus Corporate Edition\7.5\

Automatically updating definitions using the .xdb file
Symantec provides a batch file that you can schedule to update the definitions with the latest .xdb file. This batch file automatically downloads and extracts the latest .xdb file from a statically named executable (Navup8.exe), and copies the .xdb file to the appropriate location. For more information, read the document How to automatically update Symantec AntiVirus Corporate Edition definitions without using LiveUpdate.

Intelligent Updater
The Intelligent Updater file is an executable file that you can use to update virus definitions on legacy (Norton AntiVirus Corporate Edition) servers.


WARNING: If you are updating a Symantec AntiVirus server, then you must download the .xdb file from Symantec, as described in the "Copying an .xdb file" section in this document. If you apply the x86.exe or .vdb definition update then you may experience problems updating secondary servers and clients. Read the document Primary server does not update secondary servers or clients using the VDTM for more information.



To download and apply the Intelligent Updater
  1. Go to the Symantec Security Response Virus Definitions Download Page.
  2. Select the appropriate Language and Product (Symantec AntiVirus Corporate Edition), and then click Download Updates.
  3. Download and run the -x86.exe file, where indicates the date and version of the definition file.




Technical Information:
To find the Symantec AntiVirus program folder

  1. On the Windows taskbar, click Start > Run.
  2. In the Open box, type the following text:

    cmd

  3. Click OK.
  4. At the command prompt, type the following:

    net share

  5. Under Share name, find the VPHOME listing.
    The folder that is listed in the Resource column is the Symantec AntiVirus program folder.

Thursday, February 12, 2009

How to update Symantec AntiVirus Corporate Edition definitions without using LiveUpdate

Question/Issue:
Your primary Symantec AntiVirus Corporate Edition server cannot automatically download virus definitions using LiveUpdate.

Solution:
Download navup8.exe and *.xdb files into the location on the Primary Server., and then run navup8.exe to update virus definition. :

The default location on the Primary Server depends on the version of Symantec AntiVirus:
  • Symantec AntiVirus Corporate Edition 8.x:
    C:\Program Files\SAV
  • Symantec AntiVirus Corporate Edition 9.x:
    C:\Program Files\Symantec AntiVirus


Source:
navup8.exe: ftp://ftp.symantec.com/AVDEFS/norton_antivirus/static/navup8.exe
or
ftp://ftp.symantec.com/AVDEFS/norton_antivirus/static/

*.xdb: ftp://ftp.symantec.com/AVDEFS/norton_antivirus/xdb/

Run: Run navup8.exe to update virus definition and then remove navup8.exe. Finish.

I use Symantec AntiVirus Corporate Edition server Version 8, it's ok.

Tuesday, February 10, 2009

Nero 7: don't want to install NeroScout or How to remove it?

You need to put the below code into a .reg file and merge it with the Registry:


Windows Registry Editor Version 5.00

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace \{3D6BE802-FC0D-4595-A304-E611F97089DC}]
@="Nero Scout"


No need to restart, the Nero Scout will be removed imediately.

Add Logo To Windows Vista System Properties

How could you add a logo or portrait of dream girl to Windows Vista System Properties?

Well, this is just a little Vista trick that involves editing Windows Registry and preparing a BMP file format in a size measured at 120 x 120 pixel.

How to add a logo or portrait to Windows Vista System window?

Adding logo or portrait of dream girl to Windows Vista System window.
  1. Using your favourite image editor to resize or crop the target image (logo or portrait of your dream girl) to 120 x 120 pixels in size and save it as BMP file format.

  2. Copy / move the 120x120 pixels BMP file to System32 directory, e.g.
    move Logo.BMP C:\Windows\System32
    (assuming you've saved the BMP file as Logo.BMP)

  3. Open up Windows Registry (i.e. click the Vista Orb button, type regedit.exe in the Start Search textbox, click the regedit.exe shortcut listed in the Program list)

  4. Browse to this Registry key path:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation
  5. While at the OEMInformation Registry key, right-click on the right-pane, select New then String Value and name it as logo

  6. Double-click the logo Registry and enter the full path of BMP file in System32, i.e. C:\Windows\System32\Logo.BMP
Now, the Windows Vista System window should display the new logo/portrait immediately.


* If you want to add manufacturer information to Windows Vista System window;

  • Browse to Register key path:
     HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation
  • At the OEMInformation Registry key, right-click on the right-pane, select New then String Value and name it as Manufacturer
  • Double-click the Manfacturer Registry and enter the manufacturer information, i.e. IBM, Sony, HP, or yourname.

Monday, November 17, 2008

Linux Create / convert AVI file to DVD format ~ Create video DVDs

Create DVD from command line

Following tools get installed with devede:

  1. mencoder : MPlayer’s Movie Encoder) is a simple movie encoder
  2. ffmpeg : FFmpeg video converter
  3. dvdauthor : assembles multiple mpeg program streams into a suitable DVD filesystem

So if you are a pro command line user, type the following commands to convert file1.avi fille2.avi to DVD format (if you are not comfortable with command line use devede GUI software and just skip following commands) :


$ cat file1.avi file2.avi > ccmovie.avi


Now run movie encoder to create out.avi from ccmovie.avi (option -ovc and -oac sets no encoding, just streamcopy)


$ mencoder -o out.avi -noidx -oac copy -ovc copy ccmovie.avi


Next run FFmpeg video converter to set aspect ratio, ntsc dvd television standard etc:


$ ffmpeg -i out.avi -y -target ntsc-dvd -sameq -aspect 16:9 out.mpg


At a high level, a DVD is a collection of menus and titles. Conceptually, a menu contains buttons which can be assigned actions and provides a list of choices to the end user, while a title contains the main content of the DVD. However, in reality many of the features available in menus (including buttons, pausing, and looping) are also available in titles. Use dvdauthor assembles multiple mpeg program streams into a suitable DVD filesystem. You should see DVD filesytem in dvd directory:


$ dvdauthor --title -o dvd -f out.mpg


Creates the table of contents file instead of a titleset:

$ dvdauthor -o dvd -T


Create dvd.iso:

$ mkisofs -dvd-video -o dvd.iso dvd/


Burn dvd.iso to DVD disk:



$
growisofs -dvd-compat -dvd-video -speed=4 -Z /dev/dvdrw=dvd.iso

Convert avi to 3gp

Install ffmpeg:

$ sudo apt-get install ffmpeg


Connvert from avi to 3gp

$ ffmpeg -i movie.avi -s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -r 25 -ab 32 -y movie.3gp


Convert from 3GP to AVI:

$ ffmpeg -i movie.3gp -f avi -vcodec xvid -acodec mp3 -ar 22050 movie.avi


Convert from MPG to 3GP:

$ ffmpeg -i movie.mpg -s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -ab 32 -y movie.3gp

Convert from MPG to 3GP:

$ ffmpeg -i input -acodec amr_nb -ar 8000 -ac 1 -ab 12 -vcodec h263 -s qcif -r 10 -aspect 16:9 out.3gp

Using MEncoder to create VCD/SVCD/DVD-compliant files:

This section shows some complete commands for creating VCD/SVCD/DVD compliant videos.

1. PAL DVD

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
-vf scale=720:576,harddup -srate 48000 -af lavcresample=48000 \
-lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
keyint=15:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9 -ofps 25 \
-o movie.mpg movie.avi

2. NTSC DVD

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
-vf scale=720:480,harddup -srate 48000 -af lavcresample=48000 \
-lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
keyint=18:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9 -ofps 30000/1001 \
-o movie.mpg movie.avi

3. PAL AVI Containing AC-3 Audio to DVD

If the source already has AC-3 audio, use -oac copy instead of re-encoding it.

mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
-vf scale=720:576,harddup -ofps 25 \
-lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
keyint=15:vstrict=0:aspect=16/9 -o movie.mpg movie.avi

4. NTSC AVI Containing AC-3 Audio to DVD

If the source already has AC-3 audio, and is NTSC @ 24000/1001 fps:

mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf:telecine \
-vf scale=720:480,harddup -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:\
vrc_maxrate=9800:vbitrate=5000:keyint=15:vstrict=0:aspect=16/9 -ofps 24000/1001 \
-o movie.mpg movie.avi

5. PAL SVCD

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xsvcd -vf \
scale=480:576,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
vcodec=mpeg2video:mbd=2:keyint=15:vrc_buf_size=917:vrc_minrate=600:\
vbitrate=2500:vrc_maxrate=2500:acodec=mp2:abitrate=224 -ofps 25 \
-o movie.mpg movie.avi

6. NTSC SVCD

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xsvcd  -vf \
scale=480:480,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
vcodec=mpeg2video:mbd=2:keyint=18:vrc_buf_size=917:vrc_minrate=600:\
vbitrate=2500:vrc_maxrate=2500:acodec=mp2:abitrate=224 -ofps 30000/1001 \
-o movie.mpg movie.avi

7. PAL VCD

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xvcd -vf \
scale=352:288,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
vcodec=mpeg1video:keyint=15:vrc_buf_size=327:vrc_minrate=1152:\
vbitrate=1152:vrc_maxrate=1152:acodec=mp2:abitrate=224 -ofps 25 \
-o movie.mpg movie.avi

8. NTSC VCD

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xvcd -vf \
scale=352:240,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
vcodec=mpeg1video:keyint=18:vrc_buf_size=327:vrc_minrate=1152:\
vbitrate=1152:vrc_maxrate=1152:acodec=mp2:abitrate=224 -ofps 30000/1001 \
-o movie.mpg movie.avi

Using MEncoder to create VCD/SVCD/DVD-compliant files:

This section shows some complete commands for creating VCD/SVCD/DVD compliant videos.

1. PAL DVD

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
-vf scale=720:576,harddup -srate 48000 -af lavcresample=48000 \
-lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
keyint=15:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9 -ofps 25 \
-o movie.mpg movie.avi

2. NTSC DVD

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
-vf scale=720:480,harddup -srate 48000 -af lavcresample=48000 \
-lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
keyint=18:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9 -ofps 30000/1001 \
-o movie.mpg movie.avi

3. PAL AVI Containing AC-3 Audio to DVD

If the source already has AC-3 audio, use -oac copy instead of re-encoding it.

mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
-vf scale=720:576,harddup -ofps 25 \
-lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
keyint=15:vstrict=0:aspect=16/9 -o movie.mpg movie.avi

4. NTSC AVI Containing AC-3 Audio to DVD

If the source already has AC-3 audio, and is NTSC @ 24000/1001 fps:

mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf:telecine \
-vf scale=720:480,harddup -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:\
vrc_maxrate=9800:vbitrate=5000:keyint=15:vstrict=0:aspect=16/9 -ofps 24000/1001 \
-o movie.mpg movie.avi

5. PAL SVCD

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xsvcd -vf \
scale=480:576,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
vcodec=mpeg2video:mbd=2:keyint=15:vrc_buf_size=917:vrc_minrate=600:\
vbitrate=2500:vrc_maxrate=2500:acodec=mp2:abitrate=224 -ofps 25 \
-o movie.mpg movie.avi

6. NTSC SVCD

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xsvcd  -vf \
scale=480:480,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
vcodec=mpeg2video:mbd=2:keyint=18:vrc_buf_size=917:vrc_minrate=600:\
vbitrate=2500:vrc_maxrate=2500:acodec=mp2:abitrate=224 -ofps 30000/1001 \
-o movie.mpg movie.avi

7. PAL VCD

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xvcd -vf \
scale=352:288,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
vcodec=mpeg1video:keyint=15:vrc_buf_size=327:vrc_minrate=1152:\
vbitrate=1152:vrc_maxrate=1152:acodec=mp2:abitrate=224 -ofps 25 \
-o movie.mpg movie.avi

8. NTSC VCD

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xvcd -vf \
scale=352:240,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
vcodec=mpeg1video:keyint=18:vrc_buf_size=327:vrc_minrate=1152:\
vbitrate=1152:vrc_maxrate=1152:acodec=mp2:abitrate=224 -ofps 30000/1001 \
-o movie.mpg movie.avi


Add videos to VirtueMart products - with the help of AllVideos Plugin!

AllVideos has made it very easy for people since June 2006 ( :D) to add videos in their Joomla! content. So a natural progression to this would be to add videos in e-shops/product pages as well. We all know that VirtueMart is the best e-shop implementation out there.

So how do we enable video playback in VirtueMart, in an easy manner, similar to the AllVideos Plugin? Well... we just enable the use of AllVideos inside VirtueMart! :D

AllVideos has made it very easy for people since June 2006 ( :D) to add videos in their Joomla! content. So a natural progression to this would be to add videos in e-shops/product pages as well. We all know that VirtueMart is the best e-shop implementation out there.

So how do we enable video playback in VirtueMart, in an easy manner, similar to the AllVideos Plugin? Well... we just enable the use of AllVideos inside VirtueMart! :D

Here's the solution to enable the plugin for the "product details" page:

Open up the file administrator/components/com_virtuemart/html/shop.product_details.php and in the end of it, look for:

Code: Select all

/* Finish and Print out the Page */
echo $template;


and add ABOVE this some code. Overall the change is this:

Code: Select all

// start - enable "content type" plugin parsing
global $_MAMBOTS;
$_MAMBOTS->loadBotGroup( 'content' );
$row->text = $template;
$results = $_MAMBOTS->trigger( 'onPrepareContent', array( &$row, &$params, $page ), true );
$template = $row->text;
// end - enable "content type" plugin parsing

/* Finish and Print out the Page */
echo $template;


This will load the "content type" plugins in VirtueMart. That means that you can use the AllVideos Plugin to add videos in your products (as showcase) and even use the "Tabs & Slides in Content Items" Plugin to display your product's details in Tabs and/or Slides!!

Cool, huh??

Direct DOS print outs to network printers on Microsoft Windows

If you want to print from a DOS program to a network printer, you have to bind the printer port used by the particular DOS program to the network printer path.

For example, let's say your DOS program prints to LPT1 (most DOS programs do) and your printer is on the network at the following network path:

\\MY_SERVER\PRINTER

  • Go to the "DOS/Command Prompt"
  • Type the following command:

    NET USE LPT1: \\MY_SERVER\PRINTER

    and press ENTER.