Showing posts with label FreeBSD. Show all posts
Showing posts with label FreeBSD. Show all posts

Sunday, December 22, 2019

Getting "common.c: unimplemented subshell type 1" running mc in FreeBSD

I am getting the following error message as a regular user in FreeBSD (12.1)

common.c: unimplemented subshell type 1
read (subshell_pty...): No error: 0 (0)

As a workaround, do:

$: SHELL=/bin/csh mc

Reference:
https://forums.freebsd.org/threads/misc-mc-problem.55627/

su: Sorry on FreeBSD

When running su on FreeBSD and you are getting su: Sorry that could mean that the user is not part of the wheel group. To fix this, do:

  1. Login as root, this can be rebooting the machine or open another TTY terminal (Alt+F2 might help).
  2. Re-mount root filesystem for read/write operation
  3. #: mount -u -w /
    
  4. Add user to the wheel group. Assume below that u1 is the user that will be added to the group
  5. #: pw usermod u1 -G wheel
    
  6. Remount root filesystem back to read-only
  7. #: mount -u -r /
    
If you go back to the psuedo terminal of the u1 user, you should be able to run su this time.

Reference:
https://graspingtech.com/freebsd-fix-su-sorry-message/

Installing FreeBSD 12.1 on VirtualBox (Windows 10 host) failed with Guru Mediation

Installing FreeBSD 12.1 on VirtualBox 6.1.0 (Windows 10 host) failed with Guru Mediation.



As a workaround, from the command line, do:
c:\> "C:\Program Files\Oracle\VirtualBox\VBoxManage" modifyvm "FreeBSD" --spec-ctrl on

Reference:
https://forums.virtualbox.org/viewtopic.php?f=6&t=94390#p455778

Friday, May 21, 2010

Install GNOME 2 in FreeBSD 8

This is a quick guide to install GNOME in FreeBSD 8.0.

Create a minimal install of FreeBSD, see this post.

As of 5/21/2010, this will install GNOME 2.26.3

As a root user add the following packages.
pkg_add -r xorg pkg_add -r gnome2
Edit /etc/rc.conf and add the following if not there yet.
gdm_enable="YES" gnome_enable="YES" dbus_enable="YES"

That's it...reboot the machine and enjoy!!!

~ts

Sunday, May 16, 2010

FreeBSD minimal install on Virtual Box

This is a screen capture documentation of FreeBSD 8.0 minimal install on VirtualBox.

Before we can start the install, we need to have:
a) Guest machine configuration for FreeBSD 8.0.
b) ISO installer, we will be using bootonly in this case.

As usual, create a guest machine configuration, below is my configuration:
General Name: fbsd80 OS Type: FreeBSD System Base Memory: 512 MB Processor(s): 1 Boot Order: CD/DVD-ROM, Hard Disk VT-x/AMD-V: Enabled Nested Paging: Enabled Display Video Memory: 9 MB 3D Acceleration: Disabled 2D Video Acceleration: Disabled Remote Display Server: Disabled Storage IDE Controller IDE Primary Master: fbsd80.vdi (Normal, 80.00 GB) IDE Secondary Master (CD/DVD): Empty Floppy Controller Floppy Device 0: Empty Audio Host Driver: Windows DirectSound Controller: ICH AC97 Network Adapter 1: Intel PRO/1000 MT Desktop (Bridged adapter, Microsoft Loopback Adapter) Serial Ports Disabled USB Device Filters: 0 (0 active) Shared Folders None
With ISO now downloaded and VirtualBox configuration ready, start the FreeBSD 8.0 virtual machine. Below is a slideshow with the settings that I picked for my minimal FreBSD install.


Enjoy! ~ts

Monday, January 08, 2007

FreeBSD common commands

Install fluxbox
#: cd /usr/ports/x11-wm/fluxbox ; make install clean
Run fluxbox when executing startx
$: cd ~
$: touch .xinitrc
$: echo "exec fluxbox" > .xinitrc
Installing vmware-tools (FreeBSD 6.1, comes with XOrg 7.x)
#: mount /cdrom
#: cp /cdrom/vmware-freebsd-tools.tar.gz /tmp
#: cd /tmp
#: tar xvzf vmware-freebsd-tools.tar.gz
#: cd vmware-tools-distrib
#: ./vmware-install.pl ;defualts here should be fine
#: cd /usr/X11R6/lib/modules/drivers ;we need the following since vmware-install.pl does not install the mouse driver
#: cp /tmp/vmware-tools-distrib/lib/configurator/XOrg/6.8.x/vmmouse_drv.o
#: vi /etc/X11/xorg.conf
In vi, change the following lines:
Section "InputDevice"
 Identifier  "Mouse0"
 Driver      "vmmouse" #<<-- this line (changed from "mouse")
 Option     "Protocol" "ps/2"
 Option     "Device" "/dev/input/mouse0"
 Option     "ZAxisMapping" "4 5 6 7"
EndSection
//@end@\\

CPP Quick Guide

Basics Hello world User input While loop If statement For loop Switch statement Read file using ifstream Write to a file using ofstr...