New to 4MLinux?

If you are a new 4MLinux user, you should jump here




Wednesday, February 27, 2013

4MLinux Firewall

This is a short guide on how to use 4MLinux Firewall (based on iptables), which is available in 4MLinux Server Edition, 4MLinux Allinone Edition, and TheSSS.


1) Open your terminal and execute the 'firewall' command:



2) Let's start the firewall ('firewall start') and check if it really runs ('firewall test'). After you execute these two commands, iptables status will be displayed:
 


3) Firewall configuration files (/etc/firewall/config and /etc/firewall/black.list) may look as follows:
 


Note: IP addresses listed in the black.list file will not be able to access your server.


4) By default, none of 4MLinux servers is started automatically during the boot, but you can change this by setting 'firewall' to 'yes' in the /etc/server/autostart.conf file:



Further reading:
FTP - HTTP - SSH - TELNET - FIREWALL - PROXY - MONITORING

Sunday, February 24, 2013

HTTP server in 4MLinux

4MLinux has the following set of its main servers: FTP, HTTP, SSH, and Telnet. This post aims to describe shortly how to use the HTTP server. 4MLinux includes a Busybox applet as its HTTP server daemon.

Note: 4MLinux 9.1 Server Edition (and later) uses Apache (with PHP and MariaDB) as its default HTTP server. There is a self-explanatory online demo at http://server.4mlinux.com.


1) Open your terminal and execute the 'httpd' command:



2) Let's start the server ('httpd start') and check if it really runs ('httpd test'). After you execute these two commands, you will see the following menu screen:
 


3) Now you can run, for example, the "Private HTML" test:
 



4) By default, none of 4MLinux servers is started automatically during the boot, but you can change this by setting 'HTTP' to 'yes' in the /etc/server/autostart.conf file:



Additional notes:
1) The HTTP server is located in the /srv/http directory by default.
2) httpd configuration files are located the /etc/httpd directory by default.
3) 4MLinux uses inetd to manage its main servers. 

Further reading:
FTP - HTTP - SSH - TELNET - FIREWALL - PROXY - MONITORING

Tuesday, February 19, 2013

Telnet server in 4MLinux

4MLinux has the following set of its main servers: FTP, HTTP, SSH (with SFTP), and Telnet. This post aims to describe shortly how to use the Telnet server. 4MLinux includes a Busybox applet as its Telnet server daemon.

Note:
Telnet connections are not very secure because unencrypted data is transferred. Therefore telnet protocol should be applied inside trusted local networks only. Servers connected to the Internet should use Secure Shell (SSH) instead.

1) Open your terminal and execute the 'telnetd' command:



2) Let's start the server ('telnetd start') and check if it really runs ('telnetd test'). After you execute these two commands, you will see the following login screen:
 


3) By default, none of 4MLinux servers is started automatically during the boot, but you can change this by setting 'TELNET' to 'yes' in the /etc/server/autostart.conf file:



4) If you are a fun of TUI (like I am :-), then you can use the 'telnet' command as your Telnet client (just try it yourself in your terminal). If you prefer GUIPuTTY will be the best choice for you:




Note:
4MLinux uses inetd to manage its main servers.

Further reading:
FTP - HTTP - SSH - TELNET - FIREWALL - PROXY - MONITORING

Saturday, February 16, 2013

SSH server in 4MLinux

4MLinux has the following set of its main servers: FTP, HTTP, SSH, and Telnet. This post aims to describe shortly how to use the SSH server. 4MLinux includes OpenSSH as its SSH server daemon.

1) Open your terminal and execute the 'sshd' command:



2) Let's start the server now ('sshd start'). Host keys will be generated during the first run:



3) It's time to check if the server is really running ('sshd test'):



4) By default, none of 4MLinux servers is started automatically during the boot, but you can change this by setting 'SSH' to 'yes' in the /etc/server/autostart.conf file:



5) If you are a fun of TUI (like I am :-), then you can use the 'ssh' command as your SSH client (just try it yourself in your terminal). If you prefer GUIPuTTY will be the best choice for you:



6) And once again: if you are a fun of TUI, then you can use the 'sftp' command as your SFTP client (you can see it in action in point 3 above). If you prefer GUI,  WinSCP will be the best choice for you:



Note:
4MLinux uses inetd to manage its main servers.

Further reading:
FTP - HTTP - SSH - TELNET - FIREWALL - PROXY - MONITORING

Tuesday, February 5, 2013

Antivirus Live CD

Antivirus Live CD is a 4MLinux fork including the ClamAV scanner. Both Ethernet (including Wi-Fi) and dial-up (including fast USB modems) Internet connections are supported to enable automatic updates of the virus signature database.

1) Boot your copy of Antivirus Live CD (or Antivirus LiveUSB):



2) Once it has booted, you can log in as 'root' using password 'root':



3) After executing 'help', you will see the following screen:



4) And after executing 'antivir', you will see this screen:



5) It is highly recommended to update virus databases:
 


NOTE:  
If you need to configure your Internet connection, you should run the 'netconfig' script (the procedure is very similar to the one described here).


6) And finally, when the update process is over, you can start the ClamAV scanner:

 


NOTE:
Antivirus Live CD will check all your disks against viruses. This is possible because all partitions are mounted automatically during boot so that they can be scanned by ClamAV (the supported filesystems are: btrfs, ext2, ext3, ext4, f2fs, fat16, fat32, hfs, hfs+, jfs, nilfs2, ntfs, reiser4, reiserfs, and xfs).

7) AntivirusLivecd has Midnight Commander (file manager) and Links (text-based web browser), which can be very helpful in some cases:


 
NOTE: 
AntivirusLivecd is able to make a backup of your data (and to send it to a remote FTP/SFTP server if desired). Just try it yourself by executing 'backup' and 'fsbackup'  commands!

Good luck :-)



Friday, February 1, 2013

Firefox in 4MLinux

Firefox is available as a downloadable extension. 4MLinux uses Wine to run the Win32 ("exe") version of this web browser. The guide on how to run Wine in 4MLinux is available here.


1) Choose Firefox from the Internet Menu:



2) You must confirm the installation:



3) Now 4MLinux will download the newest Firefox and Flash Player for you:



4) Flash Player Installer will be opened. You should allow this installation if you want to be able to watch flash videos (e.g. from YouTube):



5) Firefox Installer works in the exact same way as it does in Windows:



Done!