Kompx.com or Compmiscellanea.com

FTP in DOS

Operating systems : MS-DOS 6.0+, FreeDOS 1.0+

FTP in DOS. mTCP

mTCP is a suite containing several utilities, one of which is FTP. It is similar to the FTP client of various Windows, running in Command Prompt.

In order to install and use mTCP:

1. mTCP [ Download ]

2. Packet driver for Ethernet network card:

http://www.crynwr.com/drivers/

http://www.georgpotthast.de/sioux/packet.htm

3. Create a folder, for example C:\DRIVERS\. Put there: a packet driver for Ethernet network card.

4. Set up network. For example, by means of Microsoft Network Client 3.0 [ How-to page ]

5. Start packet driver. In the case discussed it is:

C:\DRIVERS\PCIPKT.COM 0x60

6. Unpack the archive with mTCP into a folder, C:\SOFT\MTCP for instance, and create a tcp.cfg file in it with the strings:

PACKETINT 0x60

HOSTNAME FTP_IN_DOS

The value of PACKETINT - the interrupt number used in the packet driver starting. The value of HOSTNAME - any.

7. Start DHCP.EXE (DHCP will set up mTCP for work with the network):

DHCP

8. Start FTP:

FTP [ FTP address / host ]

There will be a prompt for a name, after that - the password. Next, it is better to switch to passive mode:

XFERMODE PASSIVE

[ The list of the main commands supported by FTP of mTCP is available in ftp.txt, included in mTCP suite archive ]

To exit:

QUIT

mTCP - GNU GPL v3.


Aliosque subditos et thema


HTTP to HTTPS redirect in .htaccess


Redirecting from all domain names of a web site to its web address with HTTPS and the domain with www. The names to be redirected from are: Both with and without www - URL with HTTP Without www - URL with HTTPS Server configuration: Apache + nginx. SSL in enabled. SSL-certificate is purchased, approved and installed. That is, everything is up and running. So it is just the HTTP to HTTPS redirection that is left to get ready and start up. Directives for .htaccess file: RewriteEngine On RewriteCond %{HTTP:HTTPS} !on [NV] RewriteRule ^(.*)$ https://www.domain.tld/$1 [R=301,L] RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ https://www.domain.tld/$1 [R=301,L] HTTP to HTTPS redirect in detail RewriteEngine On -- Enable runtime rewriting engine RewriteCond %{HTTP:HTTPS} !on [NV] -- If HTTPS is not present RewriteRule ^(.*)$ https://www.domain.tld/$1 [R=301,L] -- Then replace HTTP + domain (with or without www) with HTTPS + domain with www RewriteCond %{HTTP_HOST} !^www\. -- If HTTPS is present, but domain name has no www (the case when https://domain.tld is entered in address bar) RewriteRule ^(.*)$ https://www.domain.tld/$1 [R=301,L] -- Then replace it with HTTPS + domain with www. Apache Module mod_rewrite docs: http://httpd.apache.org/docs/current/mod/mod_rewrite.html

ELinks. Use


Jump to: ELinks - Text-based or console web browser. Description: features, screenshots, download links. ELinks. Configuration - How to configure ELinks. Once started, ELinks allows a user to do almost all it is capable of by means of its menu. So it is only how to start ELinks and how to do several other things as an example that is explained here. 1 ) Starting ELinks - ELinks may be run under a GUI environment (X Windows, MS Windows, etc) or some command-line interface. In the first case a terminal emulator / console must be opened before ELinks is to be started: xterm, rxvt, Win32 console and others: ELinks ( Linux ) - To start ELinks, enter command: elinks - To start ELinks opening a web document from Internet: elinks Web address of a web document - To start ELinks accessing hard disk to browse local folders: elinks file:/// or: elinks / - To start ELinks opening a local folder: elinks file:///home/user1/ or: elinks /home/user1/ - To start ELinks opening a local file: elinks file:///home/user1/document1.htm or: elinks /home/user1/document1.htm ELinks ( Windows ) - To start ELinks, enter command: elinks - To start ELinks opening a web document from Internet: elinks Web address of a web document - To start ELinks accessing hard disk to browse local folders: elinks file:/// - To start ELinks opening a local folder: elinks file://c/home/user1/ - To start ELinks opening a local file: elinks file://c/home/user1/document1.htm 2 ) To access the menu of ELinks: Press Esc on keyboard 3 ) Opening a web document in ELinks already running: Press g on keyboard or Esc --> File --> Go to URL --> [ Enter a web address ] --> Enter 4 ) Going back: Left arrow of Arrow keys on keyboard or Esc --> File --> Go back 5 ) Opening a link in a new tab in background: Shift - t or Esc --> Link --> Open in new tab in background 6 ) Going to the next tab: Shift - > or Esc --> View --> Next tab 7 ) Closing a tab: Press c on keyboard or Esc --> View --> Close tab 8 ) Passing a URI to an external application when running ELinks in a terminal emulator. There are many applications it is possible to pass a URI to, here it is about passing a URI to clipboard.