freebsd:freebsd_3tweaks
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
freebsd:freebsd_3tweaks [2025/01/16 09:04] – [Graphics] azman | freebsd:freebsd_3tweaks [2025/02/14 13:09] (current) – azman | ||
---|---|---|---|
Line 2: | Line 2: | ||
Maybe useful to some... | Maybe useful to some... | ||
+ | |||
+ | ===== ZeroConf ===== | ||
+ | |||
+ | * avahi & multicast dns < | ||
+ | * enable avahi daemon in '' | ||
+ | avahi_daemon_enable=" | ||
+ | * modify the '' | ||
+ | hosts: files dns mdns</ | ||
+ | |||
+ | ===== User Account ===== | ||
+ | |||
+ | * by default root shell is csh and user is sh - edit .shrc to get prettier prompt< | ||
+ | PS1=" | ||
+ | * (IF using slim) to enable x environment after slim login, create '' | ||
+ | exec / | ||
+ | |||
===== Git ===== | ===== Git ===== | ||
Line 45: | Line 61: | ||
* some older ones require '' | * some older ones require '' | ||
- | ==== Server ==== | + | ===== Web Server |
Web Server (Apache) | Web Server (Apache) | ||
Line 53: | Line 69: | ||
* to load on startup, edit '' | * to load on startup, edit '' | ||
* default document path is ''/ | * default document path is ''/ | ||
+ | |||
+ | Server Script (PHP) | ||
+ | |||
+ | * find php package(s) < | ||
+ | * install php package(s) < | ||
+ | * configure ''/ | ||
+ | < | ||
+ | DirectoryIndex index.php index.html | ||
+ | < | ||
+ | SetHandler application/ | ||
+ | </ | ||
+ | < | ||
+ | SetHandler application/ | ||
+ | </ | ||
+ | </ | ||
+ | * copy template configuration file ''//# | ||
+ | |||
+ | Data-base (mysql/ | ||
+ | |||
+ | * install package(s) < | ||
+ | * to load on startup, edit '' | ||
+ | * by default, it listens to remote request at port 3306. to check:< | ||
+ | # lsof -i4 -i6 | ||
+ | # sockstat -4 -6</ | ||
+ | * to allow local access only, edit '' | ||
+ | * now, to make sure all is okay:< | ||
+ | # lsof -i4 -i6 | grep mysql | ||
+ | # netstat -an | grep 3306 | ||
+ | # sockstat -4 -6 | grep 3306</ | ||
+ | |||
+ | ===== Label for Partitions/ | ||
+ | |||
+ | This is nice to have in / etc/ fstab when device assignment may change (e.g. usb drive on different machine may be assigned differently) | ||
+ | |||
+ | For ufs,< | ||
+ | |||
+ | To check if assigned,< | ||
+ | |||
+ | For swap,< | ||
+ | |||
+ | To check if assigned,< | ||
+ | |||
+ | Then, / etc/ fstab entry can be like,< | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | ===== Disk Utility '' | ||
+ | |||
+ | Show partition | ||
+ | |||
+ | < | ||
+ | |||
+ | Resize partition | ||
+ | |||
+ | < | ||
+ | |||
+ | Not really gpart stuff, but don't forget to grow FS to fit new size | ||
+ | |||
+ | < | ||
+ | |||
+ | ===== Access to Linux ExtFS ===== | ||
+ | |||
+ | At the moment, full R/W access for Ext2, Journal-less for Ext3 and R/O for Ext4. | ||
+ | |||
+ | < | ||
+ | # kldload ext2fs | ||
+ | # mount -t ext2fs / | ||
+ | </ | ||
+ | |||
+ | ===== Creating Disk Layout for Bootable USB ===== | ||
+ | |||
+ | {{page> | ||
freebsd/freebsd_3tweaks.1736989475.txt.gz · Last modified: by azman