*nix

Mar 192017
 
Unable to mount FreeNAS Windows shares under FreeBSD

After FreeNAS upgrade to 9.10.2-U2 I lost all Windows shares mounted under FreeBSD (10.3-REL at the time). I’m using following configuration which seem to be working just fine as far as FreeNAS 9.10.2-U1

/etc/fstab

//ROOT@NAS/DISK1     /mnt/DISK1      smbfs   rw,-N   0       0
//ROOT@NAS/DISK2     /mnt/DISK2      smbfs   rw,-N   0       0
//ROOT@NAS/DISK3     /mnt/DISK3      smbfs   rw,-N   0       0
//ROOT@NAS/DISK4     /mnt/DISK4      smbfs   rw,-N   0       0

/etc/nsmb.conf

[NAS]
 
MORE
Feb 162015
 
Mount partitions under FreeBSD 10 using diskid

In FreeBSD 10 you will notice that every partition/slice is listed under /dev/diskid/ referencing vendor and a serial number of the physical disk. On my system I can see something like below:

DISK-WD-WCASJ1263250
DISK-WD-WCASJ1263250s1

This shows that there is Western Digital hard disk, with serial number WCASJ1263250, which has 1 partition with 1 slice (s1) on it. … MORE

Feb 092015
 
Observium - new monitoring software

Observium is an autodiscovering network monitoring platform supporting a wide range of hardware platforms and operating systems including Cisco, Windows, Linux, HP, Juniper, Dell, FreeBSD, Brocade, Netscaler, NetApp and many more. Observium seeks to provide a powerful yet simple and intuitive interface to the health and status of your network.

Observium Community is available free and open source. Observium Professional … MORE

Jun 262013
 
Apache/PHP crashes on FreeBSD

I will focus on Apache/PHP as this is a primary technology stack I interact with but you can freely apply principals demonstrated to debug other applications.
There are two ways to debug an application, the easiest approach is to simply wait for it to crash and generate a core dump that can work with. Another way is to use a … MORE

Jun 192013
 
Update FreeBSD source tree using Subversion (svn)

First you will need Subversion installed on the system, to do this you can install it from the ports or packages.

From ports:

# cd /usr/ports/devel/subversion
# make install

From package:

# pkg_add -r subversion

You can accept default port configuration options. Once installed you can then update the FreeBSD source tree using following command:

# svn co svn://svn.freebsd.org/base/stable/9 /usr/src
MORE
Jun 192013
 
Migrate system from i386 (32-bit mode) to amd64 (64-bit mode)

Motivation

If an amd64 hardware has been initially installed in 32-bit mode (i.e. as a plain i386 machine), it might later be desired to turn it into a full 64-bit machine.

The recommended way to do this is to back up all personal and important data, and reinstall using an amd64 installation medium.

However, it’s also possible to migrate the … MORE

May 042013
 
Upgrading Midnight Commander (mc)

Compilation of Midnight Commander (mc) from ports usually goes with no issues. But when it comes to installing port it may actually get stuck on installation of FISH (FIles transferred over SHell protocol). At that point if you are not quick enough it will kill your box or at least make it very difficult to operate further.

To fix it … MORE

Apr 172013
 
My approach to... daily ports upgrade

I’m rather skeptic on complete automation, especially when it comes to upgrading critical systems. So I run a manual ones instead, mostly daily, but may not be the case when I’m otherwise engaged. In case of ALICE running FreeBSD the task is divided into few separate scripts which in normal run go as follows:

  1. upgrade
    • fetches all new ports and
MORE

OpenSSL Commands

 Posted by on 2013-04-14 at 12:03  *nix, FreeBSD, Linux, OpenSSL, SSL  No Responses »
Apr 142013
 
OpenSSL Commands

OpenSSL is an open-source implementation of the SSL and TLS protocols with versions available for most Unix-like operating systems (including Solaris, Linux, Mac OS X and the various open source BSD operating systems), OpenVMS and Microsoft Windows, even  IBM provides a port for the System i (OS/400).

OpenSSL is commonly used to create the CSR (Certificate Signing … MORE

Apr 112013
 
Viewing PDFs in Chromium on Linux Mint

Since the PDF library is not a free software, it isn’t included with the distribution of Chromium.

To get PDF support in Chromium:

  1. download the appropriate DEB package for your system from https://www.google.com/intl/en/chrome/browser/
  2. using the archive manager, extract libpdf.so from /opt/google/chrome/
  3. copy that file into /usr/lib/chromium-browser/ (remember you have to root or use sudo)
  4. restart Chromium if you have it
MORE
 Tagged with: