Personal tools

Linux Notes

From OpenEMR Project Wiki

(Difference between revisions)
Jump to: navigation, search
(Miscellaneous Commands)
Line 37: Line 37:
==FTP Servers==
==FTP Servers==
:Config File: &nbsp;&nbsp;<tt style="font-size: 130%">/etc/vsftpd.conf</tt>
:After Config Changes: &nbsp;&nbsp;  <tt style="font-size: 130%">sudo etc/init.d/vsftpd restart</tt>
{| style="margin: 0 2em 0 2em;"
:File with a list of users that are NOT allowed FTP access: &nbsp;&nbsp;  <tt style="font-size: 130%">/etc/ftpusers</tt>
| width="250" | <tt style="font-size: 120%">/etc/vsftpd.conf</tt>
| width="400" | Config File
| <tt style="font-size: 120%">/etc/ftpusers</tt>
| File with a list of users that are NOT allowed FTP access
:After Config Changes: &nbsp;&nbsp;&nbsp;&nbsp;  <tt style="font-size: 130%">sudo etc/init.d/vsftpd restart</tt>
:'''Configuration File Settings'''
:'''Configuration File Settings'''

Revision as of 20:50, 26 May 2014



Text Editors - Command Line

  • Derived from pico, more features than pico, easier to use than vim.
  • Control-Y = Page Up. Control-V = Page Down.

  • Menu based text editor. Yes, menus in the command line!

Mail Readers - Command Line


Viewing Files


FTP Servers


/etc/vsftpd.conf Config File
/etc/ftpusers File with a list of users that are NOT allowed FTP access
After Config Changes:      sudo etc/init.d/vsftpd restart

Configuration File Settings
local_enable=YES Allow Authentication of Users
write_enable=YES Allow Upload of Files
chroot_local_user=YES Limit users to their home directory.
chroot_list_enable=YES Limit a list of users to their home directories.
chroot_list_file=/etc/vsftpd.chroot_list Location of the list of users to limit.
ssl_enable=Yes Enable FTP over SSL (FTPS).
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem Location of SSL Certificate.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key Location of SSL Key.


NFS File Server


  • Exports File Configuration Examples:
/ubuntu  *(ro,sync,no_root_squash)
/home    *(rw,sync,no_root_squash)


  • Package:    nfs-common
  • Create a Mount Point:   sudo mkdir -p /mnt/NFS/home
  • Mount Shared Directory:   sudo mount -t nfs -o resvport /mnt/NFS/home
  • Unmount Shared Directory:  sudo umount /mnt/home

SSH Server


sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.default
sudo chmod a-w sshd_config.default
sudo nano /etc/ssh/sshd_config
[Change:  PasswordAuthentication yes]
sudo restart ssh

Directory Structure

binEssential user command binaries.
bootStatic files of the boot loader.
devDevice files.
etcHost-specific CONFIGURATION files, i.e. preferences.
Startup, shutdown, start, stop scripts for every individual program.
homeUser home directories.
libEssiential shared libraries and kernel modules.
mediaMount point for removable media.
mntMount point for a temporarily mounted filesystem.
optAdd-on application software packages.
procProcess information. Virtual filesystem documentation kernel and process status as text files.
rootHome directory for the root user.
sbinSystem binaries.
srvData for services provided by the system.
usrMulti-user utilities & applications.
varVariable files. The contents of the files here is expected to grow.
Contains log, lock, spool, mail, and temp files.

Miscellaneous Commands

sudo reboot