tips for servers ======
Here you'll find configuration for both ipv4/ipv6 accesses on some servers I ... ttpd =====
add this to your main lighttpd configuration file:
<code>
server.use-ipv6 = "enable"
$SERVE... ten_ipv6=YES
</code>
Then run each instance separately:
<code>
# /path/to/vsftpd /etc/vsftpd.conf
# /path/to/vsftpd /etc/vsftpd_ipv6.conf
</code>
=====
o it on port 666 (change it if you like) and do what you want
#
# note: bash is the default shell unde... d /dev/pts ${CHROOTDIR}/dev/pts
mount --make-rprivate / # necessary for pivot_root to work
cp -vrp /u
rsion on FreeBSD
For minimal downtime during migration, we will use `pg_upgrade` tool, which needs bo... use FreeBSD's ports system, without `make clean` at first to keep compiled binaries.
## A note about... le ensuing `initdb` command, like this:
```bash
FATAL: could not load locale "sr_YU.ISO8859-5"
```
... code:
```diff
--- /var/ports/basejail/usr/ports/databases/postgresql15-server/work/postgresql-15.2/sr
vger
$ make
$ sudo make install
</code>
===== Create a dedicated user =====
Create a user with no shell and no password
<code bash>
# adduser
Username: gemini
Full... e empty for default):
Use password-based authentication? [yes]: no
Lock out the account after creation
t, along with mobile devices & desktop synchronization using dav* protocols.
This obviously needs a... not be covered there. This document also assume that nginx, fpm and mysql are also already up and runn... g /var/log/nginx/groupware-error.log;
location / {
index index.php;
root /path/to/roundcube;
dav_ext_methods P
use a publicaly available IP host to reach a private host, using a single command. For this to work you have to add something like that in ~/.ssh/config:
<code>
Host hostname
P... ssh username@longname.domain.tld nc distant_private_ip_adress 22
User username
</... code>
"ssh hostname" connects to the distant_private_ip_adress adress server using the public longnam
ver monitor, with graphing capabilities and integrated configurator. We will use the following tools:
* Any webserver running php
* [[http://www.nagio... main idea here is to use Nagios' frames to integrate the other tools. This can also be used with Nagi... , [[http://www.thruk.org/|Thruk]]), other configuration tools ([[https://github.com/senecon/nagiosadmi
Y 'password' WITH GRANT OPTION;
</code>
===== create user with a dedicated database =====
<code sql>
mysql> CREATE DATABASE db;
mysql> GRANT ALL PRIVILEGES ON db.* TO 'user'@'clien
====== How to quickly create fully functional shell scripts using VIM ======
* Download the [[http:... im.org/scripts/script.php?script_id=1172|VIM template script]]
* Install it (:source path_to_vim_script)
* Create the following script in .vim/templates/sh:
<code bash>
#!/bin/sh
VERSION
gfox]] : Displays a country flag depicting the location of the current website's server and provides quick access to detailed location and webserver information
* [[https://addons.mozilla.org/firefox/addon/433|Flashblock]] : Disable/Enable automatic flash content display, which can activated on-d
ed port on FreeBSD ======
Sometimes we use alternate ports (in my case, openssl111, to get TLS 1.3 un... with another one with the same version, we can create a temporary port. I use jails so I have to do this in basejail:
<code>
cd /path/to/basejail/usr/ports
cp -vrp openssl openssl111
e-top/|apache-top]] is used to parse the server-status/ apache page (usage: apache-top.py http://servername/server-status, so the server needs - obviously - mod_status)
Note: Not to be confused with [[http://freshmeat.net/projects/apachetop/|apachetop]], which use ap
Gmail (from a low memory machine ) ======
A great tool to backup your mailbox (accessible via IMAP)... miral.info/|imapsync]].
However, imapsync keeps eating your RAM until it has finished its job...if yo... ed your (huge) e-mail account accordingly. just crate a simple shell script like this one:
<code>
#!/... le2 /etc/secret2 --authmech2 LOGIN --syncinternaldates --delete2'
/usr/local/bin/imapsync ${IMAPSYNCO