Search This Blog

Friday, February 3, 2017

Wagtail CMS (new site setup FreeBSD 11)

sudo pkg install bash

bash requires fdescfs(5) mounted on /dev/fd

If you have not done it yet, please do the following:

        mount -t fdescfs fdesc /dev/fd

To make it permanent, you need the following lines in /etc/fstab:

        fdesc   /dev/fd         fdescfs         rw      0       0
===
sudo pkg install emacs-nox11

To run tcsd automatically, add the following line to /etc/rc.conf:

tcsd_enable="YES"

You might want to edit /usr/local/etc/tcsd.conf to reflect your setup.

If you want to use tcsd with software TPM emulator, use the following
configuration in /etc/rc.conf:

tcsd_enable="YES"
tcsd_mode="emulator"
tpmd_enable="YES"

To use TPM, add your_account to '_tss' group like following:

# pw groupmod _tss -m your_account
===

portsnap fetch extract

===

cd /usr/ports/lang/python3
make install clean BATCH=YES

===
cd /usr/ports/databases/postgresql96-server/
make install clean BATCH=YES

sudo /usr/local/etc/rc.d/postgresql initdb
The files belonging to this database system will be owned by user "postgres".
You can now start the database server using:

    /usr/local/bin/pg_ctl -D /var/db/postgres/data96 -l logfile start

su postgres
$ createuser freebsd
$ createdb gchen

sudo -u postgres psql postgres
(username postgres, databasename postgres) 
alter user freebsd password 'mypassword' 


===
cd /usr/ports/databases/postgresql-libpqxx
make install clean BATCH=YES

===
cd /usr/ports/www/nginx-devel/ && make install clean
===
cd /usr/ports/sysutils/py-supervisor/ && make install clean
===
cd /usr/ports/devel/py-virtualenv/ && make install clean  
===
cd /usr/ports/devel/py-pip/ && make install clean 
==
/usr/ports/ports-mgmt/portupgrade-devel
==
cd /usr/ports/devel/git
 
===
cd /usr/ports/graphics/jpeg
===
 sudo tzsetup 
===
bash 
virtualenv -p /usr/local/bin/python3 py3wt 
pip install -r mypip.txt (mypip.txt is the requirement file)
python manage.py migrate
python manage.py runserver 
python manage.py collectstatic

===
 /usr/local/etc/supervisord.conf

===
cd /usr/ports/security/py-fail2ban/ && make install clean
 
Please do not edit the fail2ban.conf and jail.conf files as they
will be overwritten upon each upgrade of the port.

Instead, create new files named fail2ban.local and jail.local

For more information, see the official manual:

http://www.fail2ban.org/wiki/index.php/MANUAL_0_8#Configuration

If you are upgrading from 0.8.x consider adopting the new
configuration style.
 
===
sudo ee /etc/ssh/sshd_config
ChallengeResponseAuthentication no
sudo service sshd restart
 
 
===
/usr/ports/lang/python36
/usr/ports/databases/py36-sqlite3
binary: /usr/local/bin/python3.6 
===
 
cd /usr/ports/sysutils/tmux/ && make install clean
===
/usr/ports/devel/qt5-core
/usr/ports/devel/qmake5
/usr/local/lib/qt5/bin/qmake 
 
/usr/local/lib/qt5/bin/qmake -project
QT += core
QT -= gui
 
add cpp file, e.g. "main.cpp" 
/usr/local/lib/qt5/bin/qmake -makefile 
make 
=== 
/usr/ports/www/w3m-img
  **********************************************************
* To display images in proper positions,                 *
* you should set font size of your terminal emulator to  *
* "# of pixels per character" and "# of pixels per line" *
* in Option Setting Panel.                               *
*                                                        *
* For example, if you use 14 pixel fonts, the values     *
* should be these.                                       *
*                                                        *
* # of pixels per character = 7                          *
* # of pixels per line = 14                              *
********************************************************** 
===
 usr/ports/devel/boost-python-libs
Don't forget to add -pthread to your linker options when
linking your code.

You have built the Boost.Python library. You have to add the following
options when building your own code:

Compiler options:
   -I/usr/local/include/python2.7 -I/usr/local/include

Linker options:
   -L/usr/local/lib/python2.7 -L/usr/local/lib -lboost_python -lpython2.7
===
 cd /usr/ports/net/rabbitmq 
===
/usr/ports/devel/catch 
===
/usr/ports/databases/postgresql96-contrib
===
/usr/ports/devel/boost-python-libs
Compiler options:
   -I/usr/local/include/python2.7 -I/usr/local/include

Linker options:
   -L/usr/local/lib/python2.7 -L/usr/local/lib -lboost_python -lpython2.7
=== 
 /usr/ports/www/youtube_dl
If you want to use mp3 audio conversion please make sure multimedia/ffmpeg is
built with the "LAME" option enabled.
 ===
/usr/ports/security/py-certbot 


No comments: