Difference between revisions of "Linux Notes"
From OpenEMR Project Wiki
(→vsftp) |
(→vsftp) |
||
Line 43: | Line 43: | ||
:::*Allow authentication of users: <tt style="font-size: 130%">local_enable=YES</tt> | :::*Allow authentication of users: <tt style="font-size: 130%">local_enable=YES</tt> | ||
:::*Allow upload of files: <tt style="font-size: 130%">write_enable=YES</tt> | :::*Allow upload of files: <tt style="font-size: 130%">write_enable=YES</tt> | ||
<br><br> | |||
{| style="margin: 0 4em 0 4em;" | |||
|- | |||
| <tt style="font-size: 130%">local_enable=YES</tt> | |||
| Allow Authentication of Users | |||
|- | |||
| <tt style="font-size: 130%">write_enable=YES</tt> | |||
| Allow Upload of Files | |||
|} | |||
<br><br> | <br><br> |
Revision as of 23:22, 25 May 2014
General
Text Editors - Command Line
vim
- Highest learning curve, most powerful.
- vi Editor Commands
nano
- Derived from pico, more features than pico, easier to use than vim.
- Control-Y = Page Up. Control-V = Page Down.
emacs
jed
- Menu based text editor. Yes, menus in the command line!
Mail Readers - Command Line
mutt
Viewing Files
less [FILENAME]
FTP Servers
vsftp
- Config File: /etc/vsftpd.conf
- After Config Changes: sudo etc/init.d/vsftpd restart
- Configuration File Settings
- Allow authentication of users: local_enable=YES
- Allow upload of files: write_enable=YES
local_enable=YES | Allow Authentication of Users |
write_enable=YES | Allow Upload of Files |
proftpd
SSH Server
Configure
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
bin | Essential user command binaries. |
boot | Static files of the boot loader. |
cdrom | |
dev | Device files. |
etc | Host-specific CONFIGURATION files, i.e. preferences. |
Startup, shutdown, start, stop scripts for every individual program. | |
home | User home directories. |
lib | Essiential shared libraries and kernel modules. |
media | Mount point for removable media. |
mnt | Mount point for a temporarily mounted filesystem. |
opt | Add-on application software packages. |
proc | Process information. Virtual filesystem documentation kernel and process status as text files. |
root | Home directory for the root user. |
run | |
sbin | System binaries. |
srv | Data for services provided by the system. |
sys | |
usr | Multi-user utilities & applications. |
var | Variable files. The contents of the files here is expected to grow. |
Contains log, lock, spool, mail, and temp files. | |
Miscellaneous Commands
sudo reboot