190 likes | 215 Views
Learn how to set up a Linux server step-by-step with dpkg and apt package management systems. This practical guide covers MySQL, phpMyAdmin, Apache2, Subversion, and more. Includes video, text document, and slides.
E N D
Introduction to Linux Server Setup Jonathan Hood CSE 4000 Practical Issues in Software Engineering
Introduction • Package manage with dpkg and apt • Server Setup • MySQL and phpMyAdmin • Apache2 • Subversion
Materials • A video of me doing this same install procedure. • A text document detailing the steps of this install. • These slides.
What is dpkg and apt? dpkg is a package management system. It: • Installs packages and dependencies • Versions packages • Removes packages
What is dpkg and apt? apt is a package repository tool. It: • Uses dpkg to install and remove packages. • Pulls packages from an online package repository. • Automatically updates packages.
Some Commands apt-get update Downloads a list of packages that are available in the online repository.
Some Commands apt-cache search <key> Searches for packages in the apt repository whose description or name matches <key>
Some Commands apt-get install <packagename> Installs package identified by <packagename> and all of its dependencies.
Some Commands apt-get remove <packagename> Removes the package identified by <packagename>
Some Commands /etc/init.d/<servicename> <start/stop/reload/restart> Start, stop, reload, and restart a given service.
Some Commands a2enmod <modulename> Enables an apache module identified by <modulename>
Some Commands a2ensite <sitename> Enable the site-specific configuration file identified by <sitename> and contained in the folder /etc/apache/sites-available/
Some Commands usermod -G <groupname> <username> Add the user identified by <username> to the group identified by <groupname>.
Some Commands chown <user>:<group> <directory/file> -R Change the owner and group of a given directory or file to those identified by <user> and <group>. -R makes this command recursive. Meaning it will operate on subfolders and files.
Some Commands chmod <permissions> <directory/file> -R Change the permissions with a given directory or file. -R makes this command recursive. Meaning it will operate on subfolders and files.
Some Commands svnadmin create <directory> Creates a new svn repository at <directory>.
References • Linux man pages. • Apache Authentication Documentation (http://httpd.apache.org/docs/2.0/howto/auth.html) • mod_auth_pam Documentation (http://pam.sourceforge.net/mod_auth_pam/documentation.html) • My own head!