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:12] – 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 82: | Line 98: | ||
| # netstat -an | grep 3306 | # netstat -an | grep 3306 | ||
| # sockstat -4 -6 | 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.1736989953.txt.gz · Last modified: by azman
