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:01] – [Network Configuration] 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 19: | Line 35: | ||
* for normal wired connection (e.g. re0), add to ' | * for normal wired connection (e.g. re0), add to ' | ||
* for a wireless connection (e.g. ath0), add in < | * for a wireless connection (e.g. ath0), add in < | ||
- | | + | ifconfig_wlan0=" |
+ | * for a secured wireless connection (e.g. WPA protected), add in < | ||
+ | ifconfig_wlan0=" | ||
+ | network={ | ||
+ | ssid=" | ||
+ | psk=" | ||
+ | }</ | ||
+ | * not sure why but '' | ||
+ | * from official handbook, do '' | ||
+ | * to start up and scan, do '' | ||
+ | * or just scan, do '' | ||
+ | |||
+ | ===== Graphics ===== | ||
+ | |||
+ | Driver for ASUS E5450 Graphics Card (based on Radeon 5450?) | ||
+ | |||
+ | * install driver < | ||
+ | * to load on startup, edit '' | ||
+ | |||
+ | For Intel Graphics (Asus H81M-K Motherboard) | ||
+ | |||
+ | * install driver < | ||
+ | * to load on startup, edit '' | ||
+ | * install something? (for kernel?) < | ||
+ | * some older ones require '' | ||
+ | |||
+ | ===== Web Server ===== | ||
+ | |||
+ | Web Server (Apache) | ||
+ | |||
+ | * find apache package(s) < | ||
+ | * install apache package(s) < | ||
+ | * to load on startup, edit '' | ||
+ | * 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.1736989261.txt.gz · Last modified: by azman