ips&Tricks ======
===== set root password =====
<code sql>
shell> mysql -u root
mysql> SET PASSWORD FOR... FOR 'root'@'host_name' = PASSWORD('password');
</code>
===== grant access to a remote machine =====
<code sql>
mysql> GRANT ALL PRIVILEGES ON *.* TO 'user'... nt' IDENTIFIED BY 'password' WITH GRANT OPTION;
</code>
===== create user with a dedicated database ===
om kernel with the following additional options
<code>
options IPSEC
options IPSEC_FILTERTUNNEL
device crypto
</code>
* Install [[http://www.kame.net/racoon/|racoon]]
<code>
# cd /usr/ports/sysutils/ipsec-tools/
# make install
</code>
===== Steps to follow on each host =====
====
nd_strings_in_your_installation|localization]]): <code - conf/lang/en/lang.php>
<?php
/**
* Customizati... be modified
*/
$lang['js']['nosmblinks'] = '';
</code>
==== Image Links ====
You can also use an imag... t use indention for deeper levels
- That's it
<code>
* This is a list
* The second item
* You... t use indention for deeper levels
- That's it
</code>
Also take a look at the [[doku>faq:lists|FAQ on
e also already up and running.
===== nginx =====
<code>
server {
# put listen directives & tls... cgi_path_info;
}
}
}
</code>
===== Baïkal =====
<code bash>
curl -L -O https://github.com/fruux/Baikal/releases/download/0.4.6/baik... m -f baikal-0.4.6.zip
ln -s baikal-0.4.6 baikal
</code>
===== Roundcube =====
* First, you need to cre
==
===== Get the sources and compile 'em =====
<code bash>
$ git clone https://tildegit.org/solene/vger.git
$ cd 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 name: gemin... tabase.
Add another user? (yes/no): no
Goodbye!
</code>
===== Add a service =====
inetd requires a def
h/config, you can make SSH aliases very simply:
<code>
Host shortname
HostName longname.... 22
User username
</code>
typing "ssh shortname" will be the same as "ssh... ve to add something like that in ~/.ssh/config:
<code>
Host hostname
ProxyCommand ssh userna... e_ip_adress 22
User username
</code>
"ssh hostname" connects to the distant_private_
===== SSH =====
add to /etc/ssh/sshd_config:
<code>
ListenAddress ::
</code>
===== Lighttpd =====
add this to your main lighttpd configuration file:
<code>
server.use-ipv6 = "enable"
$SERVER["socket"] == ... .0.0.0:80" {
# listen on all ipv4 interfaces.
}
</code>
===== vsftpd =====
you'll have to run to differe
ll setup our openvpn to listen on TCP-443 port:
<code>
proto tcp-server
port 443
</code>
==== Sharing the HTTPS port with a webserver ====
Since [[http://o... he webserver IP and port to forward traffic to:
<code>
port-share remoteserver 443
</code>
==== Routing *all* traffic throught VPN ====
OpenVPN provides an
"Emacs" is the default mode.
===== Emacs =====
<code>
set -o emacs
ctrl-a Move cursor to beginning of... rl-y Paste the last thing to be cut
ctrl-_ Undo
</code>
===== VI =====
<code>
set -o vi
h Move cursor left
l Move cursor right
A Move cursor to end of lin... nds
k Move down through history commands
u Undo
</code>
====== inputrc usage ======
===== History =====
somewhere before the template definition stuff:
<code>
require_once(DOKU_INC.'inc/common.php');
if (cli... mobile())
$conf['template'] = 'dokumobile';
</code>
Of course, if you installed [[http://www.dokuwi... mobile|minimal_mobile]], the last line will be:
<code>
$conf['template'] = 'minimal_mobile';
</code>
tion on your SD card.
Open a terminal and type:
<code>
$ su
# a2sd check
</code>
(phone will reboot)
<code>
$ su
# a2sd install
</code>
==== Keyboard ====
MIUI.us is only available in Chinese and English. For
eate the following script in .vim/templates/sh:
<code bash>
#!/bin/sh
VERSION="$0 v1.0"
usage()
{
cat... # "this is the end, my friend"
#
echo ""
exit 0
</code>
* Add the following line in .vimrc:
<code vim>
au BufWritePost * if getline(1) =~ "^#!" | if get... n/" | silent !chmod a+x <afile> | endif | endif
</code>
* That's it! next time you will edit a new .s