If JetPack reports error 500 when activated and https://example.com/xmlrpc.php seams to work (reports XML-RPC server accepts POST requests only.) then try installing security/php72-filter and textproc/php72-ctype (replacing 72 with the version you are using).
One way to set a user’s locale and charset is to:
- create a new login class,
- set the login class’s locale and
- set the user’s login class as the newly created class.
Example: Setting petur‘s locale and charset to en_GB.UTF-8 and UTF-8, respectivly.
Append the following to /etc/login.conf
danishKeyboard|Users with a Danish Keyboard:\ :charset=UTF-8:\ :lang=en_GB.UTF-8:\ :tc=default:
Update the capability database by executing cap_mkdb /etc/login.conf.
Set danishKeyboard as petur‘s login class by executing pw user mod petur -L danishKeyboard.
Finally, log in as petur and confirm that the locale has been correctly set as well as that the console correctly displays UTF8 characters.
See man sw_vers. Example:
petur:~ petur$ sw_vers ProductName: Mac OS X ProductVersion: 10.13.4 BuildVersion: 17E199
When installing High Sierra on VMWare Fusion, I had to provide the installation files. This is done by finding High Sierra in the App Store, then clicking on “Download”. Once downloaded, the “Install macOS High Sierra.app” is to be dragged from /Applications and into VMWare, as shown here:
Unfortunately, doing so results in the error “Unable to create the installation medium.”, as shown here:
The solution is to drag “Install macOS High Sierra.app” (hold down the left options key before and while you release the app) to a directory owned by your user, such as ~/Downloads, then drag it from there to the “Select the Installation Method” window.
Goal: Click a dock icon to open a remotely tmux’ed irssi session. The dock icon shows irssi’s logo.
Prerequisites: irssi running in a named tmux session on a remote machine.
- Open Script Editor.app
- Paste in the following script:tell application “Terminal”
do script “/usr/bin/ssh -t YOURSERVER ‘tmux attach -t SESSION'”
In which you replace YOURSERVER with ip/host of the machine running tmux/irssi and SESSSION with the tmux session name in which irssi is running.
- Save the script as an app (File -> Save, select Application as the file format.) to /Applications/
- Drag irssi.app from /Applications to the Dock
- irssi.app has a default icon. Lets change that.
Find an icon for irssi. This should be a .png file which is atleast 256×256 with a transparent background. It is important that the background is transparent otherwise the icon will appear in a ugly white frame. Here is one:
Execute the following to create an .icns file for the above icon.
mkdir -p ~/tmp/irssi
mv ~/Downloads/2000px-Irssi_logo.svg.png ~/tmp/irssi/
mv 2000px-Irssi_logo.svg.png icon.png
sips -z 256 256 icon.png –out irssi.iconset/icon_256x256.png
sips -z 128 128 icon.png –out irssi.iconset/icon_128x128.png
sips -z 32 32 icon.png –out irssi.iconset/icon_32x32.png
sips -z 16 16 icon.png –out irssi.iconset/icon_16x16.png
iconutil -c icns irssi.iconset
- The output of step 6 is an .icns file.
- Head back to /Applications, select irssi.app and open it’s Info.
- Drag the irssi.icns file you just created and release it on top of the icon shows in irssi.app Info.
- Repeat step 4 to update the icon shown in the dock.
This is the final result; Clicking on the irssi logo launches a terminal, performs an ssh to the remote machine and resumes a tmux session in which irssi is running.
I prefer the Caps Lock key over ESC because the travel to that key is shorter.
To map Caps Lock to ESC add the following to a script and ensure it executes shortly after logging into X.
#!/bin/sh /usr/local/bin/xmodmap -e "clear Lock" /usr/local/bin/xmodmap -e "keysym Caps_Lock = Escape"
In my case, I use XFCE so I auto start it by adding /home/<user>/bin/capsToEsc.sh under Settings -> Session and Startup -> Application Autostart -> Add -> Command.
Step by step instructions on installing BitBucket on FreeBSD 11.1.
pkg install openjdk8
Mount filesystems on boot
Add the two following lines to /etc/fstab:
fdesc /dev/fd fdescfs rw 0 0 proc /proc procfs rw 0 0
mount -t fdescfs fdesc /dev/fd mount -t procfs proc /proc
pkg install perl5
pkg install git
pkg install bash cd /bin ln -s /usr/local/bin/bash
pkg install postgresql96-server echo 'postgresql_enable="YES"' >> /etc/rc.conf /usr/local/etc/rc.d/postgresql initdb /usr/local/etc/rc.d/postgresql start
su - postgres createuser -sdrP dba psql CREATEROLE bitbucketuser WITHLOGIN PASSWORD'foobar'VALID UNTIL 'infinity'; CREATEDATABASEbitbucket WITHENCODING='UTF8'OWNER=bitbucketuser CONNECTIONLIMIT=-1;
Create a user for BitBucket
adduser #default values for all but Shell; set bash as the shell.
tar xzf atlassian-bitbucket-5.8.1.tar.gz -C /usr/local cd /usr/local mv atlassian-bitbucket-5.8.1/ bitbucket chown -R bitbucket:bitbucket bitbucket cd /usr/local/etc mkdir bitbucket chown -R bitbucket:bitbucket bitbucket su - bitbucket
- Add and export JAVA_HOME.
- Append JAVA_HOME/bin to PATH (uncomment PATH if commented out)
- Add BITBUCKET_HOME=/usr/local/etc/bitbucket; export BITBUCKET_HOME
cd /usr/local/bitbucket/bin ./start-bitbucket.sh
su: BAD SU <user> to root on /dev/ttyv0 then login as root and add your user to the wheel group.
pw usermod <user> -G wheel
cron parses crontab every minute. In order to check crontab for syntax errors, check the logs output:
sleep 60; grep crontab /var/log/syslog | tail
Installing a guest on FreeBSD’s bhyve, assuming bhyve has previously been installed and is hosting at least one vm.
The guest’s hostname will be mailpile, its shall have 100GiB of storage and 2048 MiB of RAM.
# Obtain a list of iso's known to bhyve. vm iso # Create debian Linux guest. It shall have the hostname mailpile and have access to 100GiB of storage space. vm create -t debian -s 100G mailpile # Autostart the guest when the system comes up. add mailpile to vm_list in /etc/rc.conf # Configure the guest (add more RAM to it, I used 2048M). vm configure mailpile # Install debian to the guest. Spell out an iso file from "vm iso". vm install mailpile debian-...myversion.iso # Connect to the guest. vm console mailpile
You should now be in the Debian installer.