Linux PC-DC Server Guide (minicom)
1. Required items
- A PC capable of running a virtual machine or a native Linux installation
- For those using a virtual machine, download Oracle VirtualBox at https://www.virtualbox.org/wiki/Downloads
- A Linux distribution of your choice (I personally recommend a lightweight 32-bit Ubuntu distro such as Xubuntu or Lubuntu)
- Voice capable modem (External serial modems such as the TRENDnet TFM-560X are highly recommended)
- USB-RS232 converter for those using the recommended modem
If you are using an internal modem, you may need a line voltage simulator, as most internal modems are unable to supply the necessary voltage required to facilitate communications between the Dreamcast and your computer.
Finally, before we begin, detach your Dreamcast’s modem and look at the serial number located on the sticker affixed to the modem’s interior. Revision 670-14140A modems do not require any additional supplied power, whereas Revision 670-14140B modems require voltage from either a line voltage simulator or a PC modem. If you aren’t technically inclined, Revision A modem are available on eBay for around $10.
2. Installing VirtualBox
If you are opting to install Linux natively on your hard disk, or already have Linux installed, feel free to skip this section and move on to Part 3. For those installing a virtual machine, continue reading.
This portion of the guide will detail how to install, configure and run a Linux distribution using Oracle’s VirtualBox. For the purposes of this guide, we’ll be using Xubuntu. The first thing you need is to download and install both Oracle VirtualBox and the VirtualBox expansion pack for USB 2.0 support. Install VirtualBox first, and then install the expansion pack.
Once completed, hit the ‘New’ icon below File. Type in the name of your distribution in the first textbox. In the drop down menu, select the 32-bit version and click next. The memory size should be left at the recommended setting of 512MB of RAM. After this, click the second radio button ‘Create a virtual hard drive now’. Proceed with the default hard drive file type and in the second window, select ‘Fixed size’. For our purposes, you can set the disk capacity to 6GB without any repercussions. Leave the name as default and hit Create.
Now that you’ve created a virtual hard disk, you should see an entry located to the left. Right click the virtual hard disk and click ‘Settings’. Go to the Network tab and click ‘Enable Network Adapter’. In the ‘Attached to: ‘ drop down box, select Bridged Adapter. Select the name of your active network adapter and click Advanced. Set your Adapter Type to ‘Intel PRO/1000 MT Desktop (82540EM)’ and change Promiscuous Mode to Allow All. If you’re using a serial modem, go back to the left and click Serial Ports. Click ‘Enable Serial Port’ and set the port number to the port your computer assigned to your USB-RS232 converter. If you’re using Windows and aren’t sure, go to Start>Control Panel>Device Manager and expand Ports (COM & LPT). Look for an entry called Prolific USB-to-Serial Adapter (COM#). Finally, click on the USB option to the left and make sure that ‘Enable USB Controller’ and ‘Enable USB 2.0 (EHCI) Controller’ are selected. Click ‘OK’ once you are finished.
Now comes the fun part: Installing Linux! Left-click your virtual hard drive entry and click ‘Start’. Upon loading, VirtualBox will prompt you for a disc image. Point it to the disc image of your Linux distro. Follow all the on-screen prompts until the installation process completes and you’re dropped on the desktop. Success! Now that Linux is installed, roll up your sleeves, because it’s time to get to work.
3. Configuring Linux
With installation complete, we’ll now get down to working with Linux itself. Click the start icon (located in the left-hand corner in Xubuntu) and open up Terminal Emulator. Make sure your modem is turned on and type in:
dmesg | grep tty
The terminal will output several strings, one of which should read ‘ttyS0’ or, if you’re using a USB-RS232 converter, ‘ttyUSB0’. Make note of this information, as we’ll need it later on. Once finished, run:
sudo apt-get install setserial minicom ppp gnome-ppp
Install the package and then run:
sudo setserial –g /dev/tty(S0)/(USB0)
The output will show you the serial port along with a host of other information.
A. Configuring PPP
With Terminal still open, type in:
cd /etc/ppp/peers
Once there, type in:
sudo leafpad dreamcast
to open up a text editor.
Enter the following information in the text file; replace /dev/modem with the port your modem is located on (ex. /dev/ttyUSB0).
/dev/modem
115200
192.168.X.100:192.168.X.101
noauth
Two entries below /dev/modem, you’ll notice two IP addresses: The first is assigned to your PC, and the second assigned to your Dreamcast. Change the X in both IP addresses so that it matches up with your router’s subnet address (ex. If your router’s IP address is 192.168.1.1, change the X to a 1). Save this file as dreamcast, then exit.
Type in
cd ..
to move up a level to /etc/ppp. Now type in
sudo leafpad options
to open the options file. Delete all the information in the file and copy and paste the following:
debug
default-asyncmap
require-pap
ms-dns 192.168.1.1
proxyarp
ktune
For ms-dns, you’ll need to substitute your own DNS where 192.168.1.1 is. You’ll also need to comment out default-asyncmap depending on what game you’re playing. For now, leave it as is.
B. Configuring minicom
Type
sudo minicom –s
into the terminal to bring up minicom’s setup page. Using the arrow keys, go down to ‘Serial port setup’ and hit Enter. Type in A and hit enter to edit the port information. Fill in the path with the port information you (hopefully) took note of earlier. Once finished, hit ‘Save as dfl’ and ‘Save configuration’. Name the configuration and exit minicom.
C. Configuring your modem
We’re in the home stretch now. Type in:
sudo gnome-ppp
Click on Setup and hit Detect. You should see activity in the terminal if successful. Before exiting gnome ppp, make sure you click on ‘Wait for dialtone’ and remove the check mark.
Phew! This concludes the Linux configuration portion of the guide.
3. Configuring the Dreamcast
It’s now time to poke around the Dreamcast. This portion is much less strenuous than messing with Linux. We’ll be using the XDP web browser for configuring the Dreamcast. Upon booting up XDP, select the Planetweb portion of the browser. Hit Start and select Options (located in the lower right-hand corner). Click on Internet Connection. The following details exactly what settings to use:
Page 1
- Your Real Name: Type in anything here (do not leave blank)
- User Login: Type in anything here (do not leave blank)
- Password: Type in anything here (do not leave blank)
- Dial Up Number: Type at least one digit here (leave area code blank)
- Backup Number: (Leave blank)
- DNS1: 0.0.0.0
- DNS2: 0.0.0.0
Page 2
- Area code you are dialing from: (Leave blank)
- Long distance call prefix: (Leave blank)
- Call waiting prefix: (Leave blank)
- Outside dial prefix: (Leave blank)
- Modem Init: Use the default "AT&F0" (Last digit is a zero)
- Dial: Tone
- Dial area code: Off
- Blind Dial: On
Page 3
- Use Proxy: No
- Proxy server name: (Leave blank)
- Proxy port: (Leave blank)
Once finished, click OK to return to the Options menu. Press Save to save your changes.
4. Connecting to your Linux-Dreamcast server
With configuration out of the way, we can now finally test our handiwork. Open up Terminal in Linux and create two tabs. In the second tab, type in
sudo pon dreamcast
but don’t hit Enter yet. Type the following into the first tab:
sudo minicom –c on
You should be greeted by a minicom terminal page. Begin connecting online with your Dreamcast. Type in
ATA
on the minicom terminal page and hit Enter after 3-5 seconds.
Once you see ‘CONNECT’ show up in minicom, click the second tab you opened earlier. Hit Enter, shifting your attention toward your Dreamcast. If you get past ‘Sending user name and password’, you’re in! If you encountered an error, don’t sweat it; work backwards in search of the issue.
5. Special note regarding Quake 3
If you're interested in playing Quake 3, you'll need to comment out default-asyncmap in the /etc/ppp/options text file. Simply put a # in front of default-asyncmap so your options file looks like this:
debug
#default-asyncmap
require-pap
ms-dns 192.168.1.1
proxyarp
ktune
Save the text file and you'll be ready to play Quake 3.
source: http://dreamcast.onlineconsoles.com/phpBB2/viewtopic.php?t=10250