October 23,2000 mu-RAS, the Dialin Samba Server =============================== The new server ( setup/dialin), is based on "mugetty" and run via /etc/inittab. I used "mugetty", because no success had been obtained using mgetty, the standard de-facto in Linux. It set a PC as a modem gateway to the LAN, offering to the remote user all the possibilities he would have as if he were directly connected to the LAN: httpd, ftp, telnet, Samba shares, etc. It is useful also for stand-alone home computers: you have only to call your home from outside, using the PPP Windows dial-up utility, specifying your home phone number. When connection is up, you can access remotely your disks and programs, using the "Network Resources" folder in M$. I tested the stuff, in the Windows side, creating a new PPP-dialup icon, and accepting all defaults. The new /etc/ppp/ip-up script is smart enough to restarts importants services (like httpd and smbd), in the way they can reflects immediately the new assigned IP address and network routing. /usr/bin/supermount and Samba ============================== It is intended to be used mainly by the Samba-Server, on secure network. It scan all hardisks and CD-ROMs, checking and mounting. Any hard-disk partition is classified based on the Operating-System, kind of interface (IDE, SCSI) and partition's number. Example: if /dev/hdb6 is a Linux partition, /dev/sda1 is a Windows partitions and /dev/hdc is a IDE-CDROM, they will be mounted in: /tmp/samba/IDE-disk/Linux/hdb6 /tmp/samba/SCSI-disk/Windows/sda1 /tmp/samba/IDE-cdrom/hdc I added in the Samba Share's pool, a "dynamical" share called "disks". If you browse the "disks" folder from Windows, you will find the /tmp/samba hierarchy. "supermount" can mount either read-write, either read-only Syntax: # supermount check # sumpermount mount # supermount umount To activate the feature together with Samba, you will use a command like: # setup smbd SUPERMOUNT=y CHECK=n READ_ONLY=y liloconfig ============ More LILO-specific options added. Currently, liloconfig add automagically two entry: the Linux target and the DOS target mugetty =========== Rustic agetty/mgetty replacement, with auto-PPP support. It is a shell script and handle connection over serial lines or modems, using only this three commands: "stty", "chat" and "pppd" Options are: -v verbose mode -a auto-answer (no RING-RING required) -x program program to execute (def: /bin/login) -s speed baud speed 19200,38400,57600,115200,... -ppp Auto-PPP mode; starts pppd using the /etc/ppp/opt. file -ip [local]:remote Auto-PPP mode: using internal sane defaults, and these ip-addresses Log file is /var/log/mugetty.log It can be used either via /etc/inittab, either in interactive. mugetty is able to probe the line: if a modem is found, it use the "chat" program; otherwise, it use the raw serial line. mugetty examples: auto-PPP ------------------------------------------ In muLinux: Ex1: # mugetty -s 115200 -ip 192.168.100.1:192.168.100.2 ttyS1 Assing the ip 192.168.100.2 to caller, over ttyS1. Ring-ring is required, there. Tested from office. Ex 2: # mugetty -a -s 115200 -ip 192.168.100.1:192.168.100.2 ttyS1 The same, but with "-a" switch: no ring-ring is required, so it can be used to connect windows to linux, using two modems. In Windows, I start the PPP connection as usual, for Internet, with random phone number, login and password. mugetty examples: remote login via modem ------------------------------------------ In muLinux: Ex 1: # mugetty -a -s 115200 ttyS1 In Windows, I start Hyperterminal, then: atz, atx3, atdt and got the "login:" prompt in muLinux. mugetty examples: remote login via serial ------------------------------------------ Ex 2: # mugetty -s 19200 ttyS0 In Windows, I used the tty.exe, specifying 19200 baud c:> tty.exe This program, do not work at higher speed. When "login:" is reached, do "stty -echo". This fix the "eecchhoo" problem. mugetty examples: muLinux-to-muLinux ------------------------------------ Replace hyterminal with miterm, and follow previous instructions. For auto_PPP examples, on the client you should use setup/ppp0.