Difference between revisions of "Ubuntu"

From OpenEMR Project Wiki
 
(47 intermediate revisions by the same user not shown)
Line 1: Line 1:
==General==
==General==
*[http://help.ubuntu.com/14.04/index.html Documentation for Ubuntu 14.04 LTS]
*[http://help.ubuntu.com/14.04/index.html Documentation for Ubuntu 14.04 LTS]
:*[http://help.ubuntu.com/12.04/serverguide/ftp-server.html FTP Server Documentation]
:*[http://help.ubuntu.com/community/Servers Ubuntu Documentation - Servers]
:*[http://help.ubuntu.com/community/MailServer Ubuntu Documentation - Mail Server]
<br>
*[http://ubuntuguide.org/wiki/Ubuntu:Trusty Ubuntu 14.04 LTS (Trusty Tahr) Guide]
*[http://ubuntuguide.org/wiki/Ubuntu:Trusty Ubuntu 14.04 LTS (Trusty Tahr) Guide]
<br>
<br>
<br>
<br>
*[http://askubuntu.com/questions/420652/how-to-set-up-ubuntu-sftp-server sFTP Server on Ubuntu]
<br>
<br>
==Web Server How To==
==Web Server How To==
*[http://www.aboutdebian.com/internet.htm About Debian Linux - How to Set Up Debian Linux Internet Server]
*[http://www.aboutdebian.com/internet.htm About Debian Linux - How to Set Up Debian Linux Internet Server]
*Lamp Server Notes
:*[[Apache2 Notes]]
:*[[MySQL Notes]]
:*[[PHP Notes]]
<br><br>


<br><br>
==Package Manager - Apt-Get==
==Package Manager - Apt-Get==
*[http://manpages.ubuntu.com/manpages/trusty/en/man8/apt-get.8.html apt-get Man Page]
*[http://manpages.ubuntu.com/manpages/trusty/en/man8/apt-get.8.html apt-get Man Page]
*[http://packages.ubuntu.com Ubuntu Packages Search]
*[http://packages.ubuntu.com Ubuntu Packages Web Catalog]
*Synaptic - GUI Interface for apt-get.
*Synaptic - GUI Interface for apt-get.
<br>
<br>
====Commands====
====Commands====
sudo apt-get update
*'''Update''' - Updates the locally stored index of all installable packages from the remote server.
sudo apt-get upgrade
*'''Upgrade''' - Upgrade all packages that have been already installed.
<br>
<pre style="font-size: 130%; margin: 0 2em 0 2em;">
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
</pre>
<br>
 
====Local Package Index====
<div style="font-family: monospace; font-size: 130%">
/etc/apt/sources.list<br>
/etc/apt/sources.list.d<br>
</div>
 
<br>
 
====Installing Applications of Interest====
 
<pre style="font-size: 130%; margin: 0 2em 0 2em;">
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
</pre>
 
 
<br>
:*[http://www.thefanclub.co.za/how-to/how-install-apache2-modsecurity-and-modevasive-ubuntu-1204-lts-server Install mod_security & mod_evasive in Apache]
 
<br><br>
<br><br>
==Init.d==
Issue commands to start/stop services.
<pre style="font-size: 130%; margin: 0 2em 0 2em;">
/etc/init.d/[APPLICATION] [COMMAND]
</pre>
=====Commands=====
*start
*stop
*restart
<br>
==.bash_history==
Location:  <tt style="font-size: 130%">&nbsp;~/.bash_history</tt><br>
This file contains a history of all past command-line entries.<br>
<br>
<br>

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.