Connecting to a VPN when using UFW https://askubuntu.com/questions/572497/cant-connect-to-pptp-vpn-with-ufw-enabled-on-ubuntu-14-04-with-kernel-3-18 sudo ufw allow proto gre from 86.121.33.88 You might also need to put into /etc/modules-load.d/pptp.conf: nf_conntrack_proto_gre nf_conntrack_pptp
Configuration
Yoast SEO hints
Meta keywords template in Post Types Use %%tag%%, %%category%% for Meta keywords template in order for the post’s tags and categories to be used as meta keywords. It will generate something like e.g.: See also in the Help center the […]
X server and related managers
See also # nice explanation about the entire startx workflow http://unix.stackexchange.com/questions/243195/what-desktop-environment-does-startx-run-and-how-can-i-change-it # explanation about sessions http://askubuntu.com/questions/62833/how-do-i-change-the-default-session-for-when-using-auto-logins # list available desktop environments ls -l /usr/share/xsessions # show current login/display manager cat /etc/X11/default-display-manager # see also lightdm-greeter from Alternatives Configurator: ls -l […]
Transmission on Ubuntu
Important files /etc/init.d/transmission-daemon -> SysV service /etc/default/transmission-daemon -> run by /etc/init.d/transmission-daemon /****/.config/transmission-daemon -> CONFIG_DIR in /etc/default/transmission-daemon /****/.config/transmission-daemon/settings.json User and Group running transmission-daemon change to desired ones (e.g. USER=****) in /etc/init.d/transmission-daemon
Boost website performance
install ab command sudo apt install apache2-utils ### configure /etc/sysctl.conf: # Uncomment the next line to enable TCP/IP SYN cookies # See http://lwn.net/Articles/277146/ # Note: This may impact IPv6 TCP sessions too net.ipv4.tcp_syncookies=0 # https://linux.die.net/man/5/proc # https://www.kernel.org/doc/Documentation/sysctl/fs.txt fs.file-max = 6815744 […]
zoneminder
https://wiki.zoneminder.com/Ubuntu_Server_14.04_64-bit_with_Zoneminder_1.30.0_the_easy_way # when already have mysql do: sudo systemctl start mysql sudo apt-get install zoneminder sudo chmod +r /etc/zm/zm.conf sudo chmod g+rw /etc/php/7.0/apache2/php.ini # edit /etc/php/7.0/apache2/php.ini date.timezone = Europe/Bucharest # create mysql user zmuser/zmpass and mysql schema zm # grant […]
gitweb on apache
projects web page will be: https://192.168.1.8/gitweb/ # Create a git project (e.g. testproject.git): # mkdir -p /opt/GITRepositories/testproject.git # cd /opt/GITRepositories/testproject.git # git init –bare –shared # cp -v /opt/GITRepositories/test.git/hooks/post-update.sample /opt/GITRepositories/test.git/hooks/post-update # now https://192.168.1.8/testproject.git is ready for cloning: # git […]
gitweb on nginx
nginx configuration # Let Nginx handle static files # location ~ ^..git/objects/([0-9a-f]+/[0-9a-f]+|pack/pack-[0-9a-f]+.(pack|idx)) { location ~ ^/[^/].git/objects/([0-9a-f]+/[0-9a-f]+|pack/pack-[0-9a-f]+.(pack|idx)) { auth_basic “strong authentication”; auth_basic_user_file /****/apps/etc/basic.auth.strong.passwords.txt; root /****/GITRepoUbuntu/; } # Pass Git Smart HTTP requests to git-http-backend. Require Auth for everything. # see man […]
Ubuntu and Oracle
see also https://wiki.centos.org/HowTos/Oracle12onCentos7 # see also https://adrhc.go.ro/wordpress/centos-and-oracle/ # Follow this (works with Ubuntu 16.04 too): # http://www.techienote.com/install-oracle-12c-on-ubuntu/ # systemd oracle.service (working when only one db is automatically started with /etc/oratab) [Unit] Description=Oracle 12c After=local-fs.target Wants=local-fs.target [Service] Type=forking User=oracle Group=oinstall […]
CentOS and Oracle
https://wiki.centos.org/HowTos/Oracle12onCentos7 # rsync -cEhikLmrtz –progress –delete-after KIT/Oracle/linuxamd64_12102_databasese2 root@172.16.148.136:/root/KIT # scp KIT/Oracle/linuxamd64_12102_databasese2 root@172.16.148.137:/root/KIT # run as root … groupadd oinstall groupadd dba useradd -g oinstall -G dba oracle passwd oracle # For Intel N3150 CPU I changed the original “kernel.shmmax […]
Mount DAV directory
see http://linux.die.net/man/5/davfs2.conf # see http://www.freebsd.org/cgi/man.cgi?query=mandoc_char&sektion=7&apropos=0&manpath=NetBSD%2B6.0 -> for cq character # see http://passwordsgenerator.net/ # edit /etc/updatedb.conf: # PRUNEFS=”… davfs davfs2″ adrhcbImpl() { # sudo mkdir -p /mnt/adrhc # sudo chmod g+rw /mnt/adrhc # sudo chmod u+s /sbin/mount.davfs # sudo usermod […]
Make ubuntu or applications run faster
See also https://doc.ubuntu-fr.org/optimisation Check ubuntu startup times systemd-analyze blame /etc/fstab http://www.lgqyc.com/move-tmp-to-ram/ http://jsmylinux.no-ip.org/performance/improving-performance/ http://askubuntu.com/questions/173094/how-can-i-use-ram-storage-for-the-tmp-directory-and-how-to-set-a-maximum-amount http://www.digitalinternals.com/unix/linux-io-performance-tuning-noatime-nodiratime-relatime/388/ mount | grep -P “^tmpfs.+/(tmp|var/run)” sudo du -sh /tmp /var/tmp; du -sh /****/apps/tmp /****/apps/var/run /run/user/id -u
/tmp/tomcat 2>/dev/null tmpfs /tmp tmpfs defaults,relatime,mode=1777,size=4G 0 0 tmpfs /var/tmp […]
IBM WebSphere 6.1 on Ubuntu
Install 1. install java 1.5 from oracle 2. start WAS install: cd /****/Downloads/was.cd.6100.trial.base.linux.ia32/WAS/ /****/apps/opt/java/jdk1.5.0_22/bin/java -jar setup.jar 3. WAS install window should start … Configuration export JAVA_HOME=/****/apps/opt/java/jdk1.5.0_22 export PATH=”/****/apps/opt/java/jdk1.5.0_22/bin:$PATH” cd /****/apps/opt/WebSphere/AppServer/bin mv /****/apps/opt/WebSphere/AppServer/java/bin/java /****/apps/opt/WebSphere/AppServer/java/bin/java1 ln -s $JAVA_HOME/bin/java /****/apps/opt/WebSphere/AppServer/java/bin/java ./manageprofiles.sh help -> […]
Ubuntu 16.04 XRDP (remote desktop)
installation Consider ubuntu xrdp error problem connecting 5910 solution: tightvncserver MUST be installed before xrdp!!! sudo apt-get install xubuntu-desktop sudo apt-get install tightvncserver sudo apt-get install xrdp sudo usermod -aG xrdp adr configure XRDP (option 1) cat ~/.xsession echo ‘xfce4-session’ […]