Difference between revisions of "Ubuntu"

From OpenEMR Project Wiki
 
(2 intermediate revisions by the same user not shown)
Line 35: Line 35:
sudo apt-get update
sudo apt-get update
sudo apt-get upgrade
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install [PACKAGE NAME]
sudo apt-get install [PACKAGE NAME]
sudo apt-get remove [PACKAGE NAME]
sudo apt-get remove [PACKAGE NAME]
Line 57: Line 58:
sudo apt-get install apache2-doc
sudo apt-get install apache2-doc
sudo a2enmod php5
sudo a2enmod php5
sudo /etc/init.d/apache2 restart


sudo apt-get install phpmyadmin
sudo apt-get install phpmyadmin
ln -s /etc/phpmyadmin /var/www/html/phpmyadmin
sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin
sudo php5enmod mcrypt
 
sudo /etc/init.d/apache2 restart


sudo apt-get install mutt
sudo apt-get install mutt

Latest revision as of 14:35, 1 June 2014

General







Web Server How To



Package Manager - Apt-Get


Commands

  • Update - Updates the locally stored index of all installable packages from the remote server.
  • Upgrade - Upgrade all packages that have been already installed.


sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install [PACKAGE NAME]
sudo apt-get remove [PACKAGE NAME]
apt-get help


Local Package Index

/etc/apt/sources.list
/etc/apt/sources.list.d


Installing Applications of Interest

sudo apt-get install openssh-server

sudo apt-get install lamp-server^ 
sudo apt-get install apache2-doc
sudo a2enmod php5

sudo apt-get install phpmyadmin
sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin
sudo php5enmod mcrypt

sudo /etc/init.d/apache2 restart

sudo apt-get install mutt
sudo apt-get install vsftpd
sudo apt-get install nfs-kernel-server
sudo /etc/init.d/nfs-kernel-server start





Init.d

Issue commands to start/stop services.

/etc/init.d/[APPLICATION] [COMMAND]
Commands
  • start
  • stop
  • restart


.bash_history

Location:  ~/.bash_history
This file contains a history of all past command-line entries.