Enter the good life

Hermansons in the Q

Browsing Posts in FreeBSD

bsd humor

No comments

unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep

Change IP

No comments

ifconfig bge0 inet 10.0.1.201

For dumping to a mounted NFS server, mount the nfs server, then run the following command: /sbin/dump -0Laf /mnt/backup/usr /usr The 0 flag is for the full backup dump level The L flag is for backing up a live file system The a flag is to make the backup a non-interactive backup The f flag [...]

Install Apache22: # cd /usr/ports/www/apache22 # make install clean Add apache22_enable=”YES” to /etc/rc.conf # echo apache22_enable=”YES” >> /etc/rc.conf The apache22 conf file is located at: /usr/local/etc/apache22/httpd.conf Enable VHosts: Uncomment the VHosts line towards the bottom of httpd.conf Edit the /usr/local/etc/apache22/extras/httpd-vhosts.conf file Add VHosts based on the examples in the file According to http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html, add the [...]

Install Apache 2.2.13: Make sure the server itself is properly named, such as www.hermansons.org cd /usr/ports/www/apache22make config && make install clean Do the following to have apache run at startup: echo apache22_enable=”YES” >> /etc/rc.conf Add vhost directories Edit /usr/local/etc/apache22/extra/httpd-vhosts.conf The first directory must be your apache root ServerAdmin admin_at_hermansons.org DocumentRoot “/usr/local/www/apache22/data” ServerName some.name ServerAlias www.some.name [...]

The easiest way I know of to update the ports collection, all or specific ones. Update with CSUP & PORTSNAP Install this: /usr/ports/sysutils/fastest_cvsup # fastest_cvsup -c US Modify your ports-supfile # pico /usr/share/examples/cvsup/ports-supfile Comment out ports-all and uncomment ports-base and the rest of the ports you want updated. Update the ports collection: # csup -L2 [...]

FreeBSD 6.2

No comments

A few things that I want to keep track of to help me remember and learn FreeBSD To remove all libtool related software: pkg_delete libtool\* isightcapture: /usr/bin root# ./isightcapture test.jpg exit # scp test.jpg pcadmin@10.114.44.40:~/Desktop/ # vidcontrol -p To create sym links: # ln -s source target View HD space: # df -h Renew a [...]