Welcome to weblogs.com.pk Sign in | Join | Help

FreeBSD

The last time I installed FreeBSD, things were 32bit and it was with Virtual PC. After using Ubuntu for a while, I thought to try my favorite black screen OS; FreeBSD. Downloaded the latest ISO and spinned on a virtual machine in Hyper-V; the installation was straight forward! But things are still not that smooth afterwards.

DHCP

When it boots up after installation; even if you setup DHCP during the installation; it might will not pick IP! First find out your interface names using ifconfig and then use dhclient from /sbin to get IP

# ifconfig
# /sbin/dhclient hn0
# ping google.com

hn0 is my interface name; lets install nano; you can continue to use ports; but FreeBSD now has Package Manager!

# pkg

If not installed; it will prompt to install

# pkg install nano

I am good to edit some config files now! Lets fix the DHCP issue first

# nano /etc/rc.conf

Replace ifconfig_interface=”DHCP” to ifconfig_interface=”SYNCDHCP” so that instead of asynchronously the machine pause during startup while DHCP completes.

Restart; and hopefully it will get the IP during the boot fine!

# shutdown –r now

You might need to renew the IP lease; you can do so by restarting DHCP client

# service dhclient restart interfacename

And if you need to specify the Static IP; you can edit /etc/rc.conf and have entries like

ifconfig_interfacename=”inet ip netmask subnet”
defaultrouter=”gatewayip”

SU / SUDO

If you want to give the user you created for routine use to su; the easiest is to add the user into “wheel” group

# pw usermod yourUser –G wheel

If you have been a Debian / Ubuntu user for long; you must have become used to sudo something; lets install sudo, so we can use the same in FreeBSD! You also need to edit sudoers file to give wheel group access!

# pkg install sudo
# nano /usr/local/etc/sudoers

Lets install bash from our non root login using sudo!

image

After the installation; bash will greet you that it need fdescfs

image

FreeBSD is joy to work with; it provides so many opportunities to learn about the things of the dark side! Smile

CORECLR

Lets install few more Packages

# pkg install cmake libunwind gettext llvm37 icu git

We can clone coreclr and corefx from GIT

# mkdir ~/git
# cd ~/git
# git clone https://github.com/dotnet/coreclr.git coreclr
# git clone https://github.com/dotnet/corefx.git corefx

And now we are good to try out CORECLR!

Published Tuesday, December 15, 2015 10:46 PM by khurram

Comments

No Comments

New Comments to this post are disabled