Linux
From Triangle Wiki
Contents |
Introduction
This document provides general help for linux distros and server administration.
Installation
Most of this documnet revolves around the installation of Ubuntu.
CronTab
- Crons files are located in var/spool/cron/
- File is called - [USER] - vi [USER]
- crontab -u USER -l - To list the Crons under a user
- crontab -u USER -e - To edit the Crons under a user
field allowed values ----- -------------- minute 0-59 hour 0-23 day of month 1-31 month 1-12 (or names, see below) day of week 0-7 (0 or 7 is Sun, or use names)
- Run command every 5 minutes during market hours
- */5 6-13 * * * mon-fri php -f /var/www/html/get_stock_quote.php >> /dev/null
htpasswd
- htpasswd [-cmdpsD] passwordfile username
- htpasswd -b[cmdpsD] passwordfile username password
- htpasswd -n[mdps] username
- htpasswd -nb[mdps] username password
- -c Create a new file.
- -n Don't update file; display results on stdout.
- -m Force MD5 encryption of the password.
- -d Force CRYPT encryption of the password (default).
- -p Do not encrypt the password (plaintext).
- -s Force SHA encryption of the password.
- -b Use the password from the command line rather than prompting for it.
- -D Delete the specified user.
MV [Move File]
* mv [options]... Source... Directory
i.e. mv orange.doc ~/Documents/orange.doc
NFS Installation
PostFix Installation
Wireless Networking
Manufacturers of wireless adapters like Netgear and Belkin refuse to develop drivers for any other OS than M$ Windows. To overcome this problem, a wrapper application has been developed by the Linux community, and lets you use your windows drivers within Linux.
For an example step-by-step procedure of how to do this with a Netgear WG311T PCI adapter, look at this site:
These instructions can be adapted to use with other mainstream wireless adapters, but I have only managed to make it work with this particular adapter.
SAMBA File Server Setup
- Edit /etc/network/interfaces and create a local static IP address for the machine. Edit /etc/network/interfaces and adjust it to your needs (i.e. 192.168.0.100)

