Category: FreeBSD
-
Find and replace text within a file using sed
Find and replace text within a file using sed The procedure to change the text in files under Linux/Unix using sed: Use Stream EDitor (sed) as follows: sed -i ‘s/old-text/new-text/g’ input.txt The s is the substitute command of sed for find and replace It tells sed to find all occurrences of ‘old-text’ and replace with…
-
Mount and ISO in FreeBSD or FreeNAS
How to mount a ISO in FreeBSD/NAS: mount -t cd9660 /dev/`mdconfig -f cdimage.iso` /mnt
-
Setting up SSH to use key pairs
If you SSH to the same server a lot and don’t want to type the password each time you can configure SSH so you don’t have to. First login to your terminal as normal and run $ ssh-keygen This will ask you the name of the key pair file you want to use. It will…
-
installing kde on freebsd
http://www.ostechnix.com/how-to-install-kde-in-freebsd-10-2/
-
FreeBSD: make install – Accept default config
Using FreeBSD ports means compiling software by executing make install clean. This is great since it automatically fetches the dependencies then compile them. using make install clean, most of the packages have configuration options in which I have to manually choose the options. So if I install packageA with a lot of dependencies, those dependencies…
-
Install NGINX on FreeBSD
Installing NGINX Install NGINX $ pkg install nginx Create folder $ mkdir /data/www Find configuration file nginx.conf It’s either in /usr/local/nginx/conf, /etc/nginx or /usr/local/etc/nginx Edit conf file, comment out everything then add a new server block http { server { } } Add a location into the server block location / { root /data/www; }…
-
Installing VMware tools on Freebsd 10
Installing VMware tools on Freebsd 10 When installing OS, add kernel src Once installed, start the tools installer Player, Manage, Install VMware tools Mount the tools cd in the OS # mount -t cd9660 -o -e /dev/cd0 /cdrom Assumes /dev/cd0 is your cdrom and that /cdrom exits Copy install from cd to local file system…
-
Installing Enlightenment on FreeBSD 10
To install enlightenment your need to do something like this : # pkg install enlightenment then add exec enlightenment_start to your .xinitrc file in your home directory then when you start X11, enlightenment will also start. to start X11/enlightenment use # startx
-
Installing Gnome on FreeBSD 10
For installing Gnome desktop environment in FreeBSD 10, the following steps can be used. Install the needed packages pkg install gnome-desktop gdm xorg xf86-video-fbdev Add the following lines in /etc/rc.conf gnome_enable=”YES” moused_enable=”YES” dbus_enable=”YES” hald_enable=”YES” Reboot the machine. It will boot into Gnome login screen.
-
Upgrading FreeBSD
Upgrading Using “FreeBSD Update” # freebsd-update fetch # freebsd-update install