Linuxathome.net - Linux news and help for home broadband internet users
 Home | Files | Case Mods | Reviews | Forum | Search | Links | RDF | Contact | Uptime | Server Info | Tracker
Sections

Installation Guide
Setting Up
Internet Sharing
Port Forwarding
Services Config
Installing Programs
Game Servers
Using IPTables
Useful Commands
Kernel Upgrading
System Recovery
Red Hat 7.2 Setup
OpenBSD Setup
BPA Login Setup
PPPoE Setup
Add New Hardware
Using PPTP VPN
VMware ESX Cmds
Our RC5 Team
Folding@Home
Help Support Us

 
Articles
Linux Security
NetStats FAQ
Linux KIS Trojan
CAT5/LAN Cables
Domain Names
Presario RH Install APC Debian DVD
 
Slashdot.org
  • CNBC: Google's New 'Pixel Buds' Suck
  • Musk-Backed 'Slaughterbots' Video Will Warn the UN About Killer Microdrones
  • DJI Threatens Researcher Who Reported Exposed Cert Key, Credentials, and Customer Data
  • Apple Is Served A Search Warrant To Unlock Texas Church Gunman's iPhone
  • Microsoft Debuts Minecraft-Themed Coding Tutorial
  • Tech Companies Try Apprenticeships To Fill The Tech Skills Gap
  • Could a Helium-Resistant Material Usher In an Age of Nuclear Fusion?
  • Facebook Open Sources Its Network Routing Platform Open/R
  • EFF Beats 'Stupid' Patent Troll In Court
  • FOSS Community Criticizes SFLC over SFC Trademark War
  • Is Firefox 57 Faster Than Chrome?
  • iPhone X Owners Experience 'Crackling' or 'Buzzing' Sounds From Earpiece Speaker
  • Study of 500,000 Teens Suggests Association Between Excessive Screen Time and Depression
  • Walmart Says It's Preordered 15 of Tesla' New Semi Trucks
  • A Stable Plasma Ring Has Been Created In Open Air For the First Time Ever
  •  
    Affiliates

    TweakTown.com
    ZGeek.com
    pebkac-consulting.com.au

     
    Webmail
      E-mail Address:

    Password:


     

      Third Party Programs

     

    For all of you out there that wish to enhance your server and play around with some pretty nifty program created by Linux Guru's and Enthusiasts, then this is the page for you. Here you will find instructions on how to setup many different "third party programs" that we have used and recommend.

    Some of these programs can be found in the 'Files' section of this site, others can be found by doing a simple search with your favourite search engine. (e.g. Google)

       

      Program List

     
     

      Program Instructions

     
    ProFTPd

    Some people say that ProFTPd is one of the best FTP daemons (servers) around, well I tend to agree with them, its nice fast and has a lot of features that others don't. So if you wish to install this instead of using the default one that comes with most distributions (wu-ftpd) then you can follow these instructions.

    The first thing you will need to do is removed wu-ftpd before getting started, if your running Red Hat this can be done via using the RPM uninstall (erase) command, rpm -e wu-ftpd, this may say that it can't be done due to a dependency with anonftp if you have that installed. There are two choices that can be made from here, either just bypass these dependencies by rpm -e --nodeps wu-ftpd or removing anonftp first by rpm -e anonftp. Now that you no longer have this on your system you will need to adjust your inetd file to remove the ftp settings. To do this you must edit it with your favourite text editor, e.g. pico /etc/inetd.conf, and scroll down to the line with ftp on it and put a # at the front of that line (any lines of text with a # in front are regarded comments and just skipped), you should have something like this now:

    # These are standard services.
    #
    #ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd -l -a
    telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
    #

    Once you have don't this you will need to make the system reload the inetd file, this is done by killall -HUP inetd, this will cause the system to reload inetd.conf which in-turn closes the FTP port 21 on your system.

    The next step is to get ProFTPd, you can download it from the homepage http://www.proftpd.net/, or any mirror site (version used here is proftpd-1.2.1.tar.gz). Once you have the file downloaded onto your machine you need to extract the files by the usual command, tar xzvf proftpd-1.2.1.tar.gz, and once extracted go into the newly created directory, e.g. cd proftpd-1.2.1/. Now its time to read the appropriate files on how to install, setup and run ProFTPd, the two files are README and INSTALL and can be viewed by cat README | more and cat INSTALL | more respectively.

    After thoroughly reading the instructions your now ready to install the program, firstly you will need to configure the source for installation on your system, this is done by running ./configure which will do it automatically. Provided you didn't get any errors in the configuration (which you really shouldn't) its time to make the program, once this is complete log into the root (super-user) account via su and then run make install.

    Its now time to edit the settings of and get your FTP back up again, once again using your favourite editor open the ProFTPd configuration file, e.g. pico /usr/local/etc/proftpd.conf. The first of the changes is to give your server the name, this is done on the line stating with ServerName, just replace the test within the " ", next this is to change the Group to nobody. The last part is optional, if you don't want your Ftp running on the standard port 21 then you will need to change the appropriate line. Now save your file and exit.

    The final step is to load your server, this is done simply by executing the created binary program /usr/local/sbin/proftpd, the server should be up and when your try and log in you should get something like this:

    C:\>ftp
    ftp> open
    To 203.164.xxx.xxx
    Connected to 203.164.xxx.xxx.
    220 ProFTPD 1.2.1 Server (Mayhem's Cable Server) [linuxbox]
    User (203.164.xxx.xxx:(none)): mayhem
    331 Password required for mayhem.
    Password:
    230 User mayhem logged in.
    ftp>

    If you want to make your FTP server start when your system boots then you will need to add the above final step to the appropriate startup script on your system, so that it can be process during the machines boot up initialisations.

    By default configuration ProFTPd will not let you do FXP (FTP to FTP transfers) and also will not support resuming, it is quite simple add this support, what you must do is edit proftpd.conf and add the following lines:

    AllowForeignAddress          on   # Allow FXP (FTP to FTP transfers)
    AllowStoreRestart            on   # Allow Upload Resumes
    AllowRetrieveRestart         on   # Allow Download Resumes

    Also if you would like to remove anonymous access from your server then simple # out the the lines (and these lines between also) <Anonymous ~ftp> and </Anonymous>. Another common thing is to prevent people seeing things outside their home directory, if you want to do this then add this line to your configuration in the same place you put the Allow lines above:

    DefaultRoot                  ~

    You will have to put in extra configuration information if you would like an account to be able to view everything (usually you would only do this to your main account for security purposes if any account for that matter). Just say you want two groups (e.g. group1 and group2, these are system groups) of people to be able to view your entire box via FTP then you would need to make the DefaultRoot line look like this:

    DefaultRoot                  ~     !group1     !group2

    Once all the modifications have been made simply restart ProFTPd and you should now be able to FXP and resume.

     

    rdate

    Keeping accurate time is a concern for alot of people that run Web or Ftp Servers, or even just people using Linux as there main machines, well there is a simple solution and that is to make your machine update itself automatically.

    Rdate is a simple little program that will update the time and date on your machine based on the time from a remote Internet server, all you must do is install the program and run it. To download the program you can use this link or in the files section of this site. Once you have downloaded the file onto your machine just extract the source from the file (rdate-990821.tar.gz), you can do this by the command tar xvzf rdate-990821.tar.gz and then just typing make followed by make install (you must be logged in as root to do the last step).

    To run the program you can just type in rdate -s ntp.senet.com.au at the console, to check that its correct just type in date. Now that its all setup you might want to make your machine automatically run this program so that it regularly updates itself, there are a number of ways that you can do this, either you can put it in your startup scripts (not a good idea if your machines stays on for long periods of time), or the best way is to put it in a cron job, that way it can be done either hourly, weekly or monthly, which ever you decide. It is recommended either weekly or monthly depending on how often you would like it updated.

    To get cron.weekly to update your time you must create a script in the /etc/cron.weekly/ directory (similarly you can make the script in your cron.hourly or cron.monthly directories). All the script must do is simply run the program, so you must create a file using your favourite text editor (e.g. pico rdate), and put the following simple script code in it:

    # Run rdate from SeNet
    rdate -s ntp.senet.com.au

    If you would like you can make the program run from the absolute directory by putting /usr/bin/rdate -s ntp.senet.com.au instead of the above line in the script file. Now that your done your machine will now update the date and time every week automatically.

    There are a number of servers that you can use to get the time from, a list of just some of the Public NTP Primary (stratum 1) Time Servers are available at http://www.eecis.udel.edu/~mills/ntp/clock1.htm.

     

    phpMyAdmin

    For those of you who run MySQL as your database then you might be interested with this nifty little program. For alot of people, interacting with the MySQL Admin via the console (shell) is rather annoying and confusing. To download the program you can get it from phpmyadmin.sourceforge.net.

    Once you have downloaded the file copy it to /home/httpd/html/ (or you html directory for your webserver) and then tar xzvf phpMyAdmin-2.2.0-rc4-php.tar.gz, once your in the new directory you should read Documentation.txt (or .html), this will help you with installation. When you ready to proceed then you need to edit the config file (pico config.inc.php), you only need to add the username and password required to access MySQL Admin on your machine. You can make another number of changes specifically for you machine so make these while you have the file open.

    It is recommended that you create a .htaccess file and restrict a single user to access this page, otherwise anyone who has access to your webserver will have full control of your MySQL databases. The following is an example of what you need to do:

    AuthName "phpMyAdmin 2.2.0-rc4"
    AuthType Basic
    AuthUserFile /home/httpd/passwd/http.pwd
    require user mayhem

    Once you have done all of the above then your ready to give it a try, just open up your favourite web-browser and point it to http://<nixboxip>:port/phpMyAdmin-2.2.0-rc4/ and log in using the appropriate username and password as specified, you can now control your databases with a nice web GUI.

     

    uptimed

    Alot of people these days like to keep a track record of their Linux machines uptime, it is part of the glory of running a Linux box. This nifty little program allows you to easily keep track of your machines uptimes and make sure that you record is stored away safely so that you may see it at anytime (we all like to impress others with it don't we, come on, admit it).

    The program is available for download from http://cx.capsi.com/code-uptimed.html or alternatively from our Files section. You can get it in either a rpm or tarball format, we used the tarball as it is the latest version of the program.

    Once you have downloaded the program to your computer extract the files by typing tar xzvf uptimed-0.1.6.tar.gz, then go into the uptimed directory (cd uptimed-0.1.6/). Now you will need to compile the program by typing in make linux, once this is done make sure you logged in as a super user (root) and type make install. This will install the program into the usual /usr/local/bin/ directory so that you can access it from any part of your file system.

    You will need to run it with the -boot option the first time that you start the program (uptimed -boot), and every other time you will be able to start it by typing uptimed. Now that the Uptime Daemon is loaded into your systems memory you can check your uptimes list by typing uprecords, you should get something like this on the screen:

    [root@linuxbox uptimed-0.1.6]# uprecords
         #               Uptime | System                                   Boot up
    ----------------------------+-------------------------------------------------
    ->   1     8 days, 10:12:11 | Linux 2.2.14-5.0        Sun Aug 26 15:34:13 2001
    ----------------------------+-------------------------------------------------
    

    It is also a good idea to setup the program so that it loads when your system does, this can be done by adding the following lines to your /etc/rc.d/rc.local file, that way you will not have to worry about running the daemon, but can simply type uprecords at anytime to see how your machine is going.

    # Starting Uptime Recording Daemon
    echo " Starting uptimed..."; echo
    /usr/local/bin/uptimed

    Proudly Hosted By:
    Hosted by PEBKAC Consulting

    Please read our Legal Notice for information concerning our site and its content.
    All logos and trademarks in this site are property of their respective owner. All the rest © 2000 - 2016 by Linuxathome.net

    Reviews

    D-Link DI-704P
    VIA EPIA-M 9000
    Tux Applique
    Ricoh MP5125A
    AMD XP 2600+
    3DProphet 9000Pro
    Radeon 9700 Pro
    XTNDAccess IrDA
    Netgear FS-524s
    DSR2161 KVM
    Game TheaterXP & XPS-510 Speakers
    3D Prophet 4000XT
    AutoView 400
    Back-UPS CS 350
    Dual Neon Kit
    SwitchView KVM
    20x4 LCD Kit
    Window Kit

     
    Kuro5hin.org
    XML error: Mismatched tag at line 27.
     
    Google (Linux)
    Enter Keywords:

     
    Bash Jokes

    % ar x "my love life"

    ar: my love life does not exist

     
    Virtualization, Virtual Machine & Virtual Server Consolidation - VMware

    The Community ENTerprise Operating System

    Get Slackware Linux

    Use OpenOffice.org

    Use Asterisk