<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6989829</id><updated>2024-09-06T21:47:18.012-06:00</updated><category term="Ubuntu"/><category term="FreeBSD"/><category term="VirtualBox"/><category term="IPv6"/><category term="Instant Client"/><category term="Jabber"/><category term="Kernel"/><category term="Oracle"/><category term="Ruby"/><title type='text'>Syavne</title><subtitle type='html'>Striving to make today&#39;s software look ancient as soon as possible</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://syavne.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6989829/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://syavne.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08892452656916116880</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6989829.post-4571747081099692657</id><published>2013-08-05T19:59:00.000-05:00</published><updated>2013-08-05T20:14:46.045-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IPv6"/><title type='text'>IPv6 at home</title><content type='html'>&lt;br /&gt;
I just finished the configuration of IPv6 at home.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMO3X7wgoNCiV_XW_cfxpQLphuQg0r2Nt8ZBDNr1ax5u_aP1YGvQtiUnPbCLKZ75jKaeU6abBVlHHBO5FiiNlBxR4a7lfy2Lwl6aHJPXJ1ilo3ourEgdY2JTGdUdfvpdcRM5mwwg/s1600/ipv6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;248&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMO3X7wgoNCiV_XW_cfxpQLphuQg0r2Nt8ZBDNr1ax5u_aP1YGvQtiUnPbCLKZ75jKaeU6abBVlHHBO5FiiNlBxR4a7lfy2Lwl6aHJPXJ1ilo3ourEgdY2JTGdUdfvpdcRM5mwwg/s640/ipv6.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Just great! :D</content><link rel='replies' type='application/atom+xml' href='http://syavne.blogspot.com/feeds/4571747081099692657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6989829/4571747081099692657' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6989829/posts/default/4571747081099692657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6989829/posts/default/4571747081099692657'/><link rel='alternate' type='text/html' href='http://syavne.blogspot.com/2013/08/ipv6-at-home.html' title='IPv6 at home'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08892452656916116880</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMO3X7wgoNCiV_XW_cfxpQLphuQg0r2Nt8ZBDNr1ax5u_aP1YGvQtiUnPbCLKZ75jKaeU6abBVlHHBO5FiiNlBxR4a7lfy2Lwl6aHJPXJ1ilo3ourEgdY2JTGdUdfvpdcRM5mwwg/s72-c/ipv6.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6989829.post-7168601319630298290</id><published>2012-05-24T21:52:00.000-05:00</published><updated>2012-05-24T21:54:39.205-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FreeBSD"/><category scheme="http://www.blogger.com/atom/ns#" term="Kernel"/><title type='text'>FreeBSD 9.0 Kernel compilation</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0rQxXr6KSFrifIhBTwBLe5dJTgLxnvb1BZXLjKgBwDmBHC6Iu_DsTQGZ5iRzPTuhu7mnkM-ciY3PfpyJw_kcZ8xzFyNZ9KWCiWsKOq3QkqWAhIyTEEQATrdJ0wFMg39IBpVPQhQ/s1600/01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;178&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0rQxXr6KSFrifIhBTwBLe5dJTgLxnvb1BZXLjKgBwDmBHC6Iu_DsTQGZ5iRzPTuhu7mnkM-ciY3PfpyJw_kcZ8xzFyNZ9KWCiWsKOq3QkqWAhIyTEEQATrdJ0wFMg39IBpVPQhQ/s320/01.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Recently, some friends tried to compile a FreeBSD kernel but failed to get the source using CVSup and got stuck... so they asked me how do I do it. Personally, I&#39;ve never been able to get the sources using CVSup and it may be because I&#39;m used to be behind firewalls.&lt;br /&gt;
&lt;br /&gt;
Since June 2008, development of the base system moved to Subversion, so it might be easier for you to use Subversion if you&#39;re having problems to get the source.&lt;br /&gt;
&lt;br /&gt;
The &lt;a href=&quot;http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-custom-kernel.html&quot;&gt;FreeBSD Handbook&lt;/a&gt; cites &quot;Building a custom kernel is one of the most important rites of passage for advanced BSD users.&quot;, I believe everyone who is really into FreeBSD should do it at some point.&lt;br /&gt;
&lt;br /&gt;
I&#39;ll be using the Virtual Machine created in my previous post, you might want to use your own computer with FreeBSD already installed and the only difference is that you might already have the required ports installed.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Preliminaries:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&amp;nbsp;Install Subversion from ports as you need it to get the sources, use default 
options when asked (this will require some time due to the dependencies 
needed):&lt;br /&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;cd /usr/ports/devel/subversion/
sudo make install clean&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&amp;nbsp;Log out and log in again to make the new commands available to your user.&lt;/li&gt;
&lt;/ol&gt;
&lt;i&gt;&lt;b&gt;Source:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Use subversion to get the source code:&lt;br /&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo svn co http://svn.freebsd.org/base/stable/9 /usr/src&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Once installed, use the following commands to update your source: &lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo svn up /usr/src&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;i&gt;&lt;b&gt;Compilation:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Let&#39;s create a stripped down kernel for VirtualBox, remeber to use capital letters to name it (as it is a tradition :P) and to leave the GENERIC file untouched (as it is not recommended to modify it). If you have a 32 bit Kernel use the directory &lt;b&gt;i386&lt;/b&gt; instead of &lt;b&gt;amd64&lt;/b&gt;.&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Start with a copy of the GENERIC Kernel naming it VBOX:&lt;br /&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;cp /usr/src/sys/&lt;b&gt;amd64&lt;/b&gt;/conf/GENERIC &lt;/code&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;/usr/src/sys/&lt;b&gt;amd64&lt;/b&gt;/conf/VBOX&lt;/code&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&amp;nbsp;In the new VBOX file it is important to change the identification changing the line &quot;ident GENERIC&quot; to &quot;ident VBOX&quot;. The lines with the options you don&#39;t want can be commented or deleted, and you can add options according to your needs. Use the following command to edit the file:&lt;br /&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo ee &lt;/code&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;/usr/src/sys/&lt;b&gt;amd64&lt;/b&gt;/conf/VBOX&lt;/code&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;&lt;/code&gt;&lt;/pre&gt;
For this example, I used the following content:&lt;br /&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;cpu             I686_CPU
ident           VBOX

options         SCHED_ULE               # ULE scheduler
options         PREEMPTION              # Enable kernel thread preemption
options         INET                    # InterNETworking
options         INET6                   # IPv6 communications protocols
options         SCTP                    # Stream Control Transmission Protocol
options         FFS                     # Berkeley Fast Filesystem
options         SOFTUPDATES             # Enable FFS soft updates support
options         UFS_ACL                 # Support for access control lists
options         UFS_DIRHASH             # Improve performance on big directories
options         UFS_GJOURNAL            # Enable gjournal-based UFS journaling
options         MD_ROOT                 # MD is a potential root device
options         NFSCL                   # New Network Filesystem Client
options         NFSD                    # New Network Filesystem Server
options         NFSLOCKD                # Network Lock Manager
options         NFS_ROOT                # NFS usable as /, requires NFSCL
options         MSDOSFS                 # MSDOS Filesystem
options         CD9660                  # ISO 9660 Filesystem
options         PROCFS                  # Process filesystem (requires PSEUDOFS)
options         PSEUDOFS                # Pseudo-filesystem framework
options         GEOM_PART_GPT           # GUID Partition Tables.
options         GEOM_LABEL              # Provides labelization
options         COMPAT_FREEBSD4         # Compatible with FreeBSD4
options         COMPAT_FREEBSD5         # Compatible with FreeBSD5
options         COMPAT_FREEBSD6         # Compatible with FreeBSD6
options         COMPAT_FREEBSD7         # Compatible with FreeBSD7
options         SCSI_DELAY=5000         # Delay (in ms) before probing SCSI
options         KTRACE                  # ktrace(1) support
options         STACK                   # stack(9) support
options         SYSVSHM                 # SYSV-style shared memory
options         SYSVMSG                 # SYSV-style message queues
options         SYSVSEM                 # SYSV-style semaphores
options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options         PRINTF_BUFR_SIZE=128    # Prevent printf output being interspersed.
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
options         HWPMC_HOOKS             # Necessary kernel hooks for hwpmc(4)
options         AUDIT                   # Security event auditing
options         MAC                     # TrustedBSD MAC Framework
options         INCLUDE_CONFIG_FILE     # Include this file in kernel
options         KDB                     # Kernel debugger related code
options         KDB_TRACE               # Print a stack trace for a panic

# To make an SMP kernel, the next two lines are needed
options         SMP                     # Symmetric MultiProcessor Kernel
device          apic                    # I/O APIC

# CPU frequency control
device          cpufreq

# Bus support.
device          acpi
device          eisa
device          pci

# ATA controllers
device          ahci            # AHCI-compatible SATA controllers
device          ata             # Legacy ATA/SATA controllers
options         ATA_CAM         # Handle legacy controllers with CAM
options         ATA_STATIC_ID   # Static device numbering

# ATA/SCSI peripherals
device          scbus           # SCSI bus (required for ATA/SCSI)
device          ch              # SCSI media changers
device          da              # Direct Access (disks)
device          sa              # Sequential Access (tape etc)
device          cd              # CD
device          pass            # Passthrough device (direct ATA/SCSI access)
device          ses             # Enclosure Services (SES and SAF-TE)
device          ctl             # CAM Target Layer

# atkbdc0 controls both the keyboard and the PS/2 mouse
device          atkbdc          # AT keyboard controller
device          atkbd           # AT keyboard
device          psm             # PS/2 mouse

device          kbdmux          # keyboard multiplexer

device          vga             # VGA video card driver
options         VESA            # Add support for VESA BIOS Extensions (VBE)

device          splash          # Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device          sc
options         SC_PIXEL_MODE   # add support for the raster text mode

# Add suspend/resume support for the i8254.
device          pmtimer

# Serial (COM) ports
device          uart            # Generic UART driver

# Parallel port
device          ppc
device          ppbus           # Parallel port bus (required)
device          lpt             # Printer
device          plip            # TCP/IP over parallel
device          ppi             # Parallel port interface device

device          puc             # Multi I/O cards and multi-channel UARTs

# PCI Ethernet NICs.
device          em              # Intel PRO/1000 Gigabit Ethernet Family

# Pseudo devices.
device          loop            # Network loopback
device          random          # Entropy device
device          ether           # Ethernet support
device          vlan            # 802.1Q VLAN support
device          tun             # Packet tunnel.
device          pty             # BSD-style compatibility pseudo ttys
device          md              # Memory &quot;disks&quot;
device          gif             # IPv6 and IPv4 tunneling
device          faith           # IPv6-to-IPv4 relaying (translation)
device          firmware        # firmware assist module

# The `bpf&#39; device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that &#39;bpf&#39; is required for DHCP.
device          bpf             # Berkeley packet filter

# USB support
options         USB_DEBUG       # enable debug msgs
device          uhci            # UHCI PCI-&amp;gt;USB interface
device          ohci            # OHCI PCI-&amp;gt;USB interface
device          ehci            # EHCI PCI-&amp;gt;USB interface (USB 2.0)
device          xhci            # XHCI PCI-&amp;gt;USB interface (USB 3.0)
device          usb             # USB Bus (required)
device          uhid            # &quot;Human Interface Devices&quot;
device          ukbd            # Keyboard
device          umass           # Disks/Mass storage - Requires scbus and da
device          ums             # Mouse

# Sound support
device          sound           # Generic sound driver (required)
device          snd_ich         # Intel, NVidia and other ICH AC&#39;97 Audio&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;To compile and install your Kernel use the following:&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;cd /usr/src/
sudo make buildkernel KERNCONF=VBOX
sudo make installkernel KERNCONF=VBOX&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;

&lt;/li&gt;
&lt;li&gt;Reboot to use the new Kernel, you can check it with the following command:&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;uname -a&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
Enjoy a faster boot time and a lower memory usage at this point.&lt;br /&gt;
&lt;br /&gt;
I hope this will help someone out there, please feel free to send any comments.</content><link rel='replies' type='application/atom+xml' href='http://syavne.blogspot.com/feeds/7168601319630298290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6989829/7168601319630298290' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6989829/posts/default/7168601319630298290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6989829/posts/default/7168601319630298290'/><link rel='alternate' type='text/html' href='http://syavne.blogspot.com/2012/05/freebsd-90-kernel-compilation.html' title='FreeBSD 9.0 Kernel compilation'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08892452656916116880</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0rQxXr6KSFrifIhBTwBLe5dJTgLxnvb1BZXLjKgBwDmBHC6Iu_DsTQGZ5iRzPTuhu7mnkM-ciY3PfpyJw_kcZ8xzFyNZ9KWCiWsKOq3QkqWAhIyTEEQATrdJ0wFMg39IBpVPQhQ/s72-c/01.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6989829.post-1834207006826680828</id><published>2012-04-02T01:18:00.001-05:00</published><updated>2012-04-04T00:20:45.623-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FreeBSD"/><category scheme="http://www.blogger.com/atom/ns#" term="VirtualBox"/><title type='text'>FreeBSD 9.0 in VirtualBox 4.1.12</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0rQxXr6KSFrifIhBTwBLe5dJTgLxnvb1BZXLjKgBwDmBHC6Iu_DsTQGZ5iRzPTuhu7mnkM-ciY3PfpyJw_kcZ8xzFyNZ9KWCiWsKOq3QkqWAhIyTEEQATrdJ0wFMg39IBpVPQhQ/s1600/01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;178&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0rQxXr6KSFrifIhBTwBLe5dJTgLxnvb1BZXLjKgBwDmBHC6Iu_DsTQGZ5iRzPTuhu7mnkM-ciY3PfpyJw_kcZ8xzFyNZ9KWCiWsKOq3QkqWAhIyTEEQATrdJ0wFMg39IBpVPQhQ/s320/01.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
I&#39;ve been a FreeBSD fan for years now and I must say I really like this OS. Sadly, most people feel it is way too complicated to be used and recently I was asked to provide a simple walkthrough.&lt;br /&gt;
&lt;br /&gt;
The &lt;a href=&quot;http://www.freebsd.org/handbook/&quot;&gt;FreeBSD handbook&lt;/a&gt; is a great resource, but some people get easily lost reading it... I&#39;ll show in this post the steps necessary to get a Virtual Machine running trying to give just a brief explanation when needed to keep it simple.&lt;br /&gt;
&lt;br /&gt;
At this time, I&#39;m using VirtualBox 4.1.12 (no Extension Pack) and FreeBSD 9.0 (64 bit) but you can use 32 bit as well.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Preliminaries:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
1. Create a Virtual Machine for a &quot;BSD&quot; Operating System and the &quot;FreeBSD (64 bit)&quot; Version, I suggest 512MB of RAM memory and a virtual hard drive with 8GB of space (as you might feel a bit tight with the default options).&lt;br /&gt;
2. Use the default configuration, you might want to disable audio as it won&#39;t be needed.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Installation:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
You should have no trouble selecting the options you need and you can select the default if you are not familiar with the dialogs, just change the following:&lt;br /&gt;
&lt;br /&gt;
1. You need to type your hostname in the Set Hostname screen, I suggest &quot;freebsd&quot; but you might want another name for it. If you plan to use this system to host a network service like Kerberos or LDAP you might want to use a full qualified domain name here.&lt;br /&gt;
2. Uncheck everything in the Distribution Select screen, we&#39;ll deal with that later.&lt;br /&gt;
3. Select &quot;&amp;lt;Guided&amp;gt;&quot; in the Partitioning screen, select &quot;&amp;lt;Entire Disk&amp;gt;&quot; in the Partition screen, select &quot;&amp;lt;Finish&amp;gt;&quot; at the Partition Editor screen and select &quot;&amp;lt;Commit&amp;gt;&quot; when the Confirmation dialog shows up. This will create a 64kB partition for boot, a 409 MB for swap and the rest for the file system root &quot;/&quot; using UFS.&lt;br /&gt;
4. In the Network Configuration screen, select &quot;&amp;lt;Yes&amp;gt;&quot; for &quot;IPv4&quot;, select &quot;&amp;lt;Yes&amp;gt;&quot; for &quot;DHCP&quot;, select &quot;&amp;lt;No&amp;gt;&quot; for IPv6 (VirtualBox 4.1.10 has limited support for IPv6) and select &quot;&amp;lt;OK&amp;gt;&quot; in the resolver configuration (your DNS servers should be there already but be sure to type at least one IP address if your fields are blank).&lt;br /&gt;
5. Check only &quot;ssh&quot; in the System Configuration screen.&lt;br /&gt;
6. Select &quot;&amp;lt;No&amp;gt;&quot; in the Dumpdev Configuration screen.&lt;br /&gt;
7. Select &quot;&amp;lt;No&amp;gt;&quot; in the Manual Configuration screen.&lt;br /&gt;
&lt;br /&gt;
Remeber to unmount your virtual CD when the VirtualBox logo appears or it might boot from it again.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Post-Installation:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
A minimal system is running, here is what you need to know in order to get started in the FreeBSD world.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Keep your Kernel updated&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
You probably want 
to check if there are updates (especially security ones) for your 
Kernel, use the following command to get the updates available:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; freebsd-update fetch
&lt;/code&gt;&lt;/pre&gt;
If updates are found, use the following command to install them:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; freebsd-update install&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Get your Ports collection and keep it updated with Portsnap&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
We need to install the software we are going to use and for that I recommend you to use FreeBSD Ports, you can add binary packages in a similar way to linux using pkg commands but you will likely encounter bugs that are already fixed on the source code.&lt;br /&gt;
&lt;br /&gt;
There is no need to fear the source code, many people I know do not want to compile everything because they are afraid of compilation errors but the FreeBSD Ports do a pretty good job and the only disadvantage is the time needed for the compilation process.&lt;br /&gt;
&lt;br /&gt;
One big plus is, you can look for vulnerabilities reported on the FreeBSD Ports and proactively take action.&lt;br /&gt;
&lt;br /&gt;
Use the root account with the password set during the installation, we don&#39;t have sudo installed just yet.&lt;br /&gt;
&lt;br /&gt;
Get the FreeBSD Ports collection and extract it using the following command:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; portsnap fetch extract  
&lt;/code&gt;&lt;/pre&gt;
When you are back at the command line you will have the collection available at /usr/ports/, the Ports are inside directories grouped by category.&lt;br /&gt;
&lt;br /&gt;
You&#39;ll probably want to keep your FreeBSD Ports up to date, you can use the following command when you want to download and apply the available updates for your collection:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; portsnap fetch update  
&lt;/code&gt;&lt;/pre&gt;
To check if there are new versions of your Ports use the following command:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; pkg_version -v  
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Audit your Ports collection with Portaudit&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Portaudit checks for known security issues with your installed Ports, alerts if there are vulnerabilities reported in your installations and even prevents the installation of compromised Software. Install it with the following commands:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; cd /usr/ports/ports-mgmt/portaudit  
 make install clean  
&lt;/code&gt;&lt;/pre&gt;
Log out and log in again to have the binaries available in your path and use the following command to update and view the known vulnerabilities of your Ports:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; portaudit -Fda 
&lt;/code&gt;&lt;/pre&gt;
If your system is going to be up and running 24/7 you might want to use the following command to edit /etc/crontab:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; ee /etc/crontab  
&lt;/code&gt;&lt;/pre&gt;
Add the following lines to keep your vulnerabilities database updated everyday at 3:00am:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; # Portaudit  
 0    3    *    *    *    root  /usr/local/sbin/portaudit -Fda  
&lt;/code&gt;&lt;/pre&gt;
Any time you want to check if there are vulnerabilities reported for any of your installed Ports use the following command:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; portaudit -a  
&lt;/code&gt;&lt;/pre&gt;
You cannot install a Port if there is a vulnerability reported, but in case you want to force it you just have to add the -DDISABLE_VULNERABILITIES option when you call make, like the following:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; make -DDISABLE_VULNERABILITIES install clean  
&lt;/code&gt;&lt;/pre&gt;
Be sure to read the vulnerability report first to know how your system is compromised!.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Update your installed Ports with Portmanager&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Portsnap will help you to keep the source code updated for your Ports but it will not upgrade the installed binaries. Portmanager will help you to install new versions of your Ports when Portsnap updates their source code, install it with the following commands (leave the default options when asked):&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; cd /usr/ports/ports-mgmt/portmanager  
 make install clean  
&lt;/code&gt;&lt;/pre&gt;
Log out and log in again to have the binaries available in your path and use the following command to compile and upgrade your installed Ports:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; portmanager -u  
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Install and configure sudo:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
It is a good idea to use sudo as it will leave a trace of every command used by the administrators for audit purposes, you never know what can hit you and if everyone is using the root account for administration this can lead to serious consequences as the attakers can delete their own traces easily... on the other hand, someone on your staff did something wrong you&#39;ll never know who (I&#39;ve seen around 20 people using the root account for administration on a single system when I&#39;ve been called to find out what caused the disaster!).&lt;br /&gt;
&lt;br /&gt;
This might not be bulletproof, but it certainly helps to close the gap, install it with the following commands (leave the default options when asked):&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; cd /usr/ports/security/sudo  
 make install clean  
&lt;/code&gt;&lt;/pre&gt;
You might want to create a group for the sudoers, use the following command to add the group sudoers:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; pw groupadd sudoers  
&lt;/code&gt;&lt;/pre&gt;
Log out and log in again to have the binaries available in your path and use the following command to configure sudo:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; visudo  
&lt;/code&gt;&lt;/pre&gt;
Add the following line at the end of the file:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; %sudoers ALL=(ALL) ALL  
&lt;/code&gt;&lt;/pre&gt;
Any sudoer can gan root access, you might want to tighten up your security a bit using the following lines instead to prevent the use of visudo, the access as root using the command su and the access as root through one of the installed shells:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; # visudo, disabling user switching and visudo  
 Cmnd_Alias  NSHELLS = /bin/csh,/bin/tcsh,/bin/sh  
 Cmnd_Alias  NSU = /usr/bin/su  
 Cmnd_Alias  NVISUDO = /usr/local/sbin/visudo  
 %sudoers ALL=(ALL) ALL, !NSHELLS, !NSU, !NVISUDO  
&lt;/code&gt;&lt;/pre&gt;
Now you just need to add your users to the group sudoers, use the following command to add user johndoe:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; pw usermod johndoe -G sudoers  
&lt;/code&gt;&lt;/pre&gt;
If you wish to disable root access entirely use the following command:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; pw lock root  
&lt;/code&gt;&lt;/pre&gt;
If you disabled root access, a sudoer can enable it using the following command:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; sudo pw unlock root  
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
At this point you have the base system ready to install the Ports you want, you might want to export the appliance (473MB), clone the Virtual Machine or save a Snapshot.&lt;br /&gt;
I hope this will help someone out there, please feel free to send any comments.</content><link rel='replies' type='application/atom+xml' href='http://syavne.blogspot.com/feeds/1834207006826680828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6989829/1834207006826680828' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6989829/posts/default/1834207006826680828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6989829/posts/default/1834207006826680828'/><link rel='alternate' type='text/html' href='http://syavne.blogspot.com/2012/04/freebsd-90-in-virtualbox-4110.html' title='FreeBSD 9.0 in VirtualBox 4.1.12'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08892452656916116880</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0rQxXr6KSFrifIhBTwBLe5dJTgLxnvb1BZXLjKgBwDmBHC6Iu_DsTQGZ5iRzPTuhu7mnkM-ciY3PfpyJw_kcZ8xzFyNZ9KWCiWsKOq3QkqWAhIyTEEQATrdJ0wFMg39IBpVPQhQ/s72-c/01.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6989829.post-9070480693415615942</id><published>2011-11-14T12:37:00.001-06:00</published><updated>2012-03-11T22:40:09.564-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Jabber"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Jabber with MSN transport in Ubuntu 11.10</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
There are several ways to install a messenger service on your own servers to provide communication to your comrades or integrate a messenger service on the Intranet page in your workplace.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Ubuntu has packages to help you out,&amp;nbsp; I&#39;ll show you here how to install the Erlang Jabber/XMPP Daemon and the MSN Transport to help your users to communicate with their contacts on the MSN Messenger network.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
I&#39;ll be using the Virtual Machine created in my first post, you might want to use your own computer with Ubuntu already installed and the only difference is that you might already have the required packages installed.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;i&gt;&lt;b&gt;Preliminaries&lt;/b&gt;&lt;/i&gt;:&lt;/div&gt;
&lt;ul style=&quot;text-align: justify;&quot;&gt;
&lt;li&gt; You need a hostname to identify your server, feel free to use the IP Address of your server as it will work. Of course a Dynamic DNS entry, a conventional Domain Name System or a DNS Appliance to get a hostname will be useful if you want to provide worldwide access.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;i&gt;&lt;b&gt;Installation&lt;/b&gt;&lt;/i&gt;:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
I&#39;ll be using the IP Address 192.168.1.82 as the hostname but &lt;u&gt;you need to change it&lt;/u&gt; to your Internal IP Address, your Public IP Address or your hostname.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol style=&quot;text-align: justify;&quot;&gt;
&lt;li&gt;You need the Erlang Jabber/XMPP Daemon and the MSN Transport, to install the packages use the following:&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo apt-get install ejabberd pymsnt  
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Your hostname and your administration user are missing in the configuration file, edit the file with the following command:&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo vi /etc/ejabberd/ejabberd.cfg  
&lt;/code&gt;&lt;/pre&gt;
Add your admin user on line 58 (remember to change the IP Address accordingly, this user does not exists yet), change the line to something like the following:&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;{acl, admin, {user, &quot;myuser&quot;, &quot;192.168.1.82&quot;}}.  
&lt;/code&gt;&lt;/pre&gt;
Add your hostname on line 61 (remember to change the IP Address accordingly), change the line to something like the following:&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;{hosts, [&quot;localhost&quot;,&quot;192.168.1.82&quot;]}.  
&lt;/code&gt;&lt;/pre&gt;
Uncomment the lines from 165 to 170 (MSN Transport) and change the hostname, just delete the initial &quot;%%&quot; and change localhost, it must look like the following:&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; %% MSN Transport  
 {5557, ejabberd_service, [  
                         {ip, {127, 0, 0, 1}},  
                         {access, all},  
                         {shapper_rule, fast},  
                         {host, &quot;msn.192.168.1.82&quot;, [{password, &quot;secret&quot;}]}  
                         ]},
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the Erlang Jabber/XMPP Daemon with the following command:&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo service ejabberd restart  
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Create your admin user (remember to change the IP Address as well as myuser and mypassword accordingly) with the following command:&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo ejabberdctl register myuser 192.168.1.82 mypassword  
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Allow port 5222/TCP through the firewall with the following command:&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo ufw allow 5222/tcp  
&lt;/code&gt;&lt;/pre&gt;
Optionally, the administrator interface is available using the address http://192.168.1.82:5280/admin, use the admin user created in step 4 without the hostname, to allow the administration interface through the firewall use the following command:&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo ufw allow 5280/tcp  
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;The Erlang Jabber/XMPP Daemon is expecting the MSN Transport to connect using the port number 5557 (as we can see in step 2) but the MSN Transport is using 5347, edit the configuration file with the following command:&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo vi /etc/pymsnt.conf.xml  
&lt;/code&gt;&lt;/pre&gt;
Change the Jabber Identification on line 6
to match your hostname (remember to change the IP Address accordingly), change the line to something like the following:&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;&amp;lt;jid&amp;gt;msn.192.168.1.82&amp;lt;/jid&amp;gt;  
&lt;/code&gt;&lt;/pre&gt;
Change the port number on line 24, the line should look like following:&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;&amp;lt;port&amp;gt;5347&amp;lt;/port&amp;gt;  
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the MSN Transport with the following command:&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo service pymsnt restart  
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
At this point you should be able to use a Jabber Client like &lt;a href=&quot;http://psi-im.org/&quot;&gt;Psi&lt;/a&gt; to get access using your admin user myuser@192.168.1.82 (remember to change the IP Address accordingly), new users can register also and use the MSN Transport to get their MSN Messenger contacts in Jabber.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The secure connection is possible using a self signed certificate you can set on line 229 in the configuration file /etc/ejabberd/ejabberd.cfg, but you might want to install your own certificate if you have the experience. Even with the self signed certificate every connection can be protected using STARTTLS if the Jabber Client support this feature, a good way to keep your conversations private.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
I hope this will help someone out there, please feel free to send any comments.</content><link rel='replies' type='application/atom+xml' href='http://syavne.blogspot.com/feeds/9070480693415615942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6989829/9070480693415615942' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6989829/posts/default/9070480693415615942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6989829/posts/default/9070480693415615942'/><link rel='alternate' type='text/html' href='http://syavne.blogspot.com/2011/11/jabber-with-msn-transport-in-ubuntu.html' title='Jabber with MSN transport in Ubuntu 11.10'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08892452656916116880</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6989829.post-7748225752803075730</id><published>2011-11-08T18:08:00.006-06:00</published><updated>2012-03-11T22:45:49.358-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Instant Client"/><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Oracle Instant Client 11.2.0.3.0 in Ubuntu 11.10</title><content type='html'>As an Oracle Database Administrator, I&#39;ve been involved in several projects where the installation of the Instant Client is a requirement.&lt;br /&gt;
&lt;br /&gt;
I&#39;m aware of some tutorials where people tell you to use &quot;alien&quot; to convert Oracle RPMs to DEBs but I preffer to use ZIPs, so I&#39;ll post here how it works including the Basic package along with the SQL*Plus and the SDK.&lt;br /&gt;
&lt;br /&gt;
I&#39;ll be using the Virtual Machine created in my first post, you might want  to use your own computer with Ubuntu already installed and the only  difference is that you might already have the required packages  installed.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Preliminaries&lt;/span&gt;:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Get the following files from Oracle Download site: &lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;instantclient-basic-linux.x64-11.2.0.3.0.zip
instantclient-sdk-linux.x64-11.2.0.3.0.zip
instantclient-sqlplus-linux.x64-11.2.0.3.0.zip&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;You will need unzip for the files and SQL*Plus requires the Linux kernel AIO access library, to install the packages use the following: &lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo apt-get install unzip libaio1&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Installation&lt;/span&gt;:&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Instant Client will be installed under /usr/lib/oracle, from the directory where you have the ZIP files enter the following commands: &lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo unzip instantclient-basic-linux.x64-11.2.0.3.0.zip -d /usr/lib/oracle
sudo unzip instantclient-sdk-linux.x64-11.2.0.3.0.zip -d /usr/lib/oracle
sudo unzip instantclient-sqlplus-linux.x64-11.2.0.3.0.zip -d /usr/lib/oracle&lt;/code&gt;&lt;/pre&gt;
&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You need two Symbolic Links for compilation purposes, create them with the following commands: &lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo ln -s /usr/lib/oracle/instantclient_11_2/libclntsh.so.11.1 /usr/lib/oracle/instantclient_11_2/libclntsh.so
sudo ln -s /usr/lib/oracle/instantclient_11_2/libocci.so.11.1 /usr/lib/oracle/instantclient_11_2/libocci.so&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Dynamic Linker Run-Time Bindings must be configured, create a new file with the following command: &lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo vi /etc/ld.so.conf.d/oracle.conf&lt;/code&gt;&lt;/pre&gt;
And insert the following line: &lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;/usr/lib/oracle/instantclient_11_2&lt;/code&gt;&lt;/pre&gt;
Save the file and run the configuration of the Dynamic Linker Run-Time Bindings with the following command: &lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo ldconfig&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Some environment variables are required and you can add the directory to the path, create a new file with the following command: &lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo vi /etc/profile.d/oracle.sh&lt;/code&gt;&lt;/pre&gt;
And insert the following lines: &lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;export ORACLE_HOME=/usr/lib/oracle/instantclient_11_2
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export TNS_ADMIN=/etc/oracle
export PATH=$PATH:$ORACLE_HOME&lt;/code&gt;&lt;/pre&gt;
Please note, the NLS_LANG environment variable must match the configuration of your Oracle Database or you will have character problems I normally use one of AMERICAN_AMERICA.AL32UTF8, MEXICAN SPANISH_MEXICO.AL32UTF8, MEXICAN SPANISH_MEXICO.WE8ISO8859P1 or MEXICAN SPANISH_MEXICO.WE8ISO8859P15 but you might need another.&lt;/li&gt;
&lt;li&gt;Log out and log in again to make the new environment variables available to your user.&lt;/li&gt;
&lt;li&gt;Finally, the tnsnames.ora file must be created in the path defined in the environment variable TNS_ADMIN, create the directory with the following command: &lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo mkdir /etc/oracle&lt;/code&gt;&lt;/pre&gt;
Create the file with the following command: &lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo vi /etc/oracle/tnsnames.ora&lt;/code&gt;&lt;/pre&gt;
And insert the lines you need to configure your connections, for example: &lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;ORCL =
(DESCRIPTION =
 (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.87)(PORT = 1521))
 (CONNECT_DATA =
   (SERVICE_NAME = orcl)
 )
)&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
You can now use SQL*Plus to test your installation: &lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sqlplus myuser@orcl&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Feel free to use &quot;alien&quot; to make your own DEBs, I&#39;m not against that in any way, I&#39;m just posting this because some people I&#39;ve worked with believe that just by installing those DEB files everything will work as espected ignoring some missing steps are needed. Hopefully, this will save you some time.&lt;br /&gt;
&lt;br /&gt;
I hope this will help someone out there, please feel free to send any comments.</content><link rel='replies' type='application/atom+xml' href='http://syavne.blogspot.com/feeds/7748225752803075730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6989829/7748225752803075730' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6989829/posts/default/7748225752803075730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6989829/posts/default/7748225752803075730'/><link rel='alternate' type='text/html' href='http://syavne.blogspot.com/2011/11/oracle-instant-client-112030-in-ubuntu.html' title='Oracle Instant Client 11.2.0.3.0 in Ubuntu 11.10'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08892452656916116880</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6989829.post-7568858762858124114</id><published>2011-11-07T18:59:00.005-06:00</published><updated>2012-03-11T22:55:37.467-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ruby"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Ruby 1.8.7/1.9.3 in Ubuntu 11.10 (using RVM Single-User installation)</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
As a Ruby developer, I&#39;m often using different versions of the language to create scripts and Ruby on Rails applications. Packages for Ruby are available for Ubuntu through the official repositories but you might want to use Ruby Version Manager to keep things a bit simpler.&lt;br /&gt;
&lt;br /&gt;
I&#39;ll be using the official installation instructions for Ruby Version Manager in the Virtual Machine created in my first post, you might want to use your own computer with Ubuntu already installed and the only difference is that you might already have the required packages installed.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Preliminaries&lt;/span&gt;:&lt;/div&gt;
&lt;ol style=&quot;text-align: justify;&quot;&gt;
&lt;li&gt;You will need curl and git to get the source code using the official script, to install the packages use the following: &lt;pre style=&quot;background: url(&amp;quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo apt-get install curl git&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;If you want to use SSL you need the OpenSSL libraries available, for Ruby on Rails this is a requirement, to install the package use the following: &lt;pre style=&quot;background: url(&amp;quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo apt-get install libssl-dev&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;If you like to use the Interactive Ruby Shell (IRB), you probably want to install the GNU readline libraries using the folowing: &lt;pre style=&quot;background: url(&amp;quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo apt-get install libreadline-dev&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Installation&lt;/span&gt;:&lt;br /&gt;
&lt;br /&gt;
Everything will be done as user, no need for administrative rights (or sudo), use the following command to install Ruby Version Manager: &lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;bash &amp;lt; &amp;lt;(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Once the installer finishes and you are back to your command line you need to log out and log in again to have Ruby Version Manager available (this is the preferred way for initial installations).&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Post-Installation&lt;/span&gt;:&lt;br /&gt;
&lt;br /&gt;
After your log in, you will have Ruby Version Manager installed and it is time to install Ruby. To install both versions (1.8.7 and 1.9.3) use the following commands: &lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;rvm install 1.8.7
rvm install 1.9.3&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
After the installation of Ruby you need to select the default version to be used (even if you only installed one), use the following command to set the version 1.9.3 as default (of course, you can change the version number if you like): &lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;rvm use 1.9.3 --default&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
You can change the default Ruby version anytime you want using the previous command, or you can change it temporary in your current session or terminal using it without the default flag (everytime you log in you will have the default version available): &lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;rvm use 1.8.7&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Ruby Gems will be installed as well, no need to download and install. Please note each Ruby version will have its own Gems, you can start to install Gems right away using the gem command.&lt;br /&gt;
&lt;br /&gt;
I hope this will help someone out there, please feel free to send any comments.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://syavne.blogspot.com/feeds/7568858762858124114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6989829/7568858762858124114' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6989829/posts/default/7568858762858124114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6989829/posts/default/7568858762858124114'/><link rel='alternate' type='text/html' href='http://syavne.blogspot.com/2011/11/ruby-187192-in-ubuntu-1110-using-rvm.html' title='Ruby 1.8.7/1.9.3 in Ubuntu 11.10 (using RVM Single-User installation)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08892452656916116880</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6989829.post-2355309598417824135</id><published>2011-11-07T16:48:00.012-06:00</published><updated>2012-04-02T01:19:48.079-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="VirtualBox"/><title type='text'>Ubuntu 11.10 Server in VirtualBox 4.1.10</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
I&#39;ve been doing a lot of research over the years looking for ways to integrate new or updated Software in different environments, something I always need is a Virtual Machine in which I install all the new stuff to test it and people ask me about how I create it to start their own (and, with a bit of luck, compete with me to be the first to implement something useful to make someone&#39;s job a bit easier).&lt;br /&gt;
&lt;br /&gt;
At this time, I&#39;m using VirtualBox 4.1.10 (no Extension Pack) and Ubuntu 11.10 Server (64 bit) but you can use 32 bit as well.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Preliminaries&lt;/span&gt;:&lt;/div&gt;
&lt;ol style=&quot;text-align: justify;&quot;&gt;
&lt;li&gt;Create a Virtual Machine using all the default option for a &quot;Linux&quot; Operating System and the &quot;Ubuntu (64 bit)&quot; Version.&lt;/li&gt;
&lt;li&gt;After creation, you need to change from SATA to IDE in the Storage configuration or your system will never boot (please! don&#39;t ask me why).&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghlcxcS1rhHbJc6-wRsHwM0LtSxFQucGOKdxYD0Vsdkk07xPBuHFoFyCo_Z44CXNFqEAKv9aJfr4ccX0ZSYSZpvu9lqiKQ_r0kmmoU5CulNvzvUiseXXBH9UHjC5Bs4kbbq3a77g/s1600/01+-+IDE.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5672390333110276098&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghlcxcS1rhHbJc6-wRsHwM0LtSxFQucGOKdxYD0Vsdkk07xPBuHFoFyCo_Z44CXNFqEAKv9aJfr4ccX0ZSYSZpvu9lqiKQ_r0kmmoU5CulNvzvUiseXXBH9UHjC5Bs4kbbq3a77g/s320/01+-+IDE.png&quot; style=&quot;cursor: hand; cursor: pointer; height: 239px; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Installation&lt;/span&gt;:&lt;br /&gt;
&lt;br /&gt;
After language selection (when you can highlight the &quot;Install Ubuntu Server&quot; entry) you should press &quot;F4&quot; on the keyboard to list the available instalation modes and select &quot;Install a minimal Virtual Machine&quot;, now when you &quot;Install Ubuntu Server&quot; the installer will use a special version of the Linux Kernel made to be used in Virtual Machines.&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;f4&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjP7Nuq-R-ZZsWP34AlyGOh7d6H6MGCiykVUqt2lU_DiKZUVZ0zSXKR3mu5xjCkGba54JV6zrdlBomsd-qC45rkGV3Riw5eLkQCm0p_LAkauF3yC-PgltybYiph-_eHs9MRWRCtAA/s1600/02+-+Minimal+Virtual+Machine.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5672392624580456722&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjP7Nuq-R-ZZsWP34AlyGOh7d6H6MGCiykVUqt2lU_DiKZUVZ0zSXKR3mu5xjCkGba54JV6zrdlBomsd-qC45rkGV3Riw5eLkQCm0p_LAkauF3yC-PgltybYiph-_eHs9MRWRCtAA/s320/02+-+Minimal+Virtual+Machine.png&quot; style=&quot;cursor: hand; cursor: pointer; display: block; height: 273px; margin: 0px auto 10px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;/f4&gt;&lt;/div&gt;
&lt;f4&gt;Once the installation starts, configure everything according to you needs. I&#39;ll just list the following:&lt;/f4&gt;&lt;br /&gt;
&lt;f4&gt;&lt;/f4&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: justify;&quot;&gt;
&lt;li&gt;&lt;f4&gt;At the &quot;Partition Disks&quot; step I select &quot;Guided - Use entire Disk&quot; which will create a 534.8MB partition for Swap and leave the rest for the file system root &quot;/&quot; using EXT4.&lt;/f4&gt;&lt;/li&gt;
&lt;li&gt;&lt;f4&gt;At the &quot;Software selection&quot; step I leave everything blank to know exactly what packages I need to install when needed.&lt;/f4&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Post-Installation&lt;/span&gt;:&lt;br /&gt;
&lt;br /&gt;
You will notice a faster boot of your Virtual Machine as it is using just what it needs to run, but to have complete functionality you might want to do the following:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;ACPI Shutdown from the &quot;Machine&quot; menu in VirtualBox does not work, to make it work use the following command:&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo apt-get install acpid&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Build Essential is missing, to install the packages needed to compile use the following command:&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo apt-get install build-essential&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;No firewall installed, it is a good idea to install one if you want to understand your network services and add a level security, to install the Uncomplicated Firewall and enable it use the following commands:&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo apt-get install ufw  
sudo ufw enable  
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;There is no X server installed but you might want to use VirtualBox Shared Folders, select &quot;Install guest additions...&quot; from the &quot;Devices&quot; menu in VirtualBox and use the following commands:&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo apt-get install dkms linux-headers-virtual
sudo mount /dev/cdrom /media/cdrom
cd /media/cdrom
sudo ./VBoxLinuxAdditions.run&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
Remember to keep your packages up to date with the following commands:&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjcEig4ThSSw9mKOOzQghfNGBdgI0UlSBjo6TbdNyHXez6pk_XFNaTxRi-r6C3RvnR3wr6qxYuhtCFInc_pQMkG0d1K_tmfQsg59eakrzvvfrrcBhL-6aB2VvqjZ6Tw2465nN3g/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;sudo apt-get update
sudo apt-get dist-upgrade&lt;/code&gt;&lt;/pre&gt;
At this point you might want to export the appliance (444MB), clone the Virtual Machine or save a Snapshot.&lt;br /&gt;
&lt;br /&gt;
I hope this will help someone out there, please feel free to send any comments.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://syavne.blogspot.com/feeds/2355309598417824135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6989829/2355309598417824135' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6989829/posts/default/2355309598417824135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6989829/posts/default/2355309598417824135'/><link rel='alternate' type='text/html' href='http://syavne.blogspot.com/2011/11/ubuntu-1110-server-in-virtualbox-414.html' title='Ubuntu 11.10 Server in VirtualBox 4.1.10'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08892452656916116880</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghlcxcS1rhHbJc6-wRsHwM0LtSxFQucGOKdxYD0Vsdkk07xPBuHFoFyCo_Z44CXNFqEAKv9aJfr4ccX0ZSYSZpvu9lqiKQ_r0kmmoU5CulNvzvUiseXXBH9UHjC5Bs4kbbq3a77g/s72-c/01+-+IDE.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>