SSH Port Forwarding (SSH Tunneling)

http://www.linuxhorizon.ro/ssh-tunnel.html Syntax: ssh -L localport:host:hostport user@ssh_server -N where: -L – port forwarding parameters (see below) localport – local port (chose a port that is not in use by other service) host – server that has the port (hostport) that you want to forward hostport – remote port -N – do not execute a remote command, … Read more

Installing WordPress on Ubuntu

http://www.ubuntugeek.com/installing-wordpress-3-0-on-ubuntu-10-04-lucid-lynx.html Installation apt-get install apache2 libapache2-mod-php5 mysql-server php5-mysql php5-curl php5-gd libssh2-php cd /var/www/ wget http://wordpress.org/latest.tar.gz tar -zxvf latest.tar.gz ls -la chown -R www-data:www-data wordpress rm -f latest.zip Apache /etc/apache2/sites-available/wordpress.conf <VirtualHost *:80>         ServerAdmin my@email.com         ServerName www.example.org         ServerAlias example.org         DocumentRoot /var/www/wordpress         Redirect permanent / https://www.example.org/         ErrorLog /var/log/apache2/example.org-error.log         # Possible values include: debug, info, notice, warn, error, crit, … Read more

Linux counter client

http://linuxcounter.net http://linuxcounter.net/user/207256.html Register new machine and get LiCo “Machine ID” and “Update key”. 1. Login to your profile. userid 207256 password xyz 2. Add user cron to launch Linux counter update script. useradd -m cron 3. Install lico-update.sh script. cd /usr/local/bin wget -N –no-cache https://github.com/alexloehner/linuxcounter-update-examples/raw/master/_official/lico-update.sh chown root:root /usr/local/bin/lico-update.sh chmod 755 /usr/local/bin/lico-update.sh 4. Install cron.d job. … Read more

DynDNS Linux client

http://www.dyndns.com janfai / jan.faix@gmail.com Linux Update Client http://dyn.com/support/clients/linux/ Update Client Configurator http://www.dyndns.com/support/tools/clientconfig.html hosts: faix.homelinux.net 94.230.149.155 zviretnik.dyndns.info 94.143.171.101 wget -N –no-cache http://cdn.dyndns.com/ddclient.tar.gz tar -zxvf ddclient.tar.gz cd ddclient-3.7.3 cp ddclient /usr/local/bin/ chown root:root /usr/local/bin/ddclient chmod 750 /usr/local/bin/ddclient mkdir /etc/ddclient /etc/ddclient/ddclient.conf daemon=600 syslog=yes cache=/tmp/ddclient.cache mail-failure=jan.faix@gmail.com pid=/var/run/ddclient.pid use=web, web=checkip.dyndns.com/, web-skip='IP Address' login=janfai password=xxxxxxx protocol=dyndns2 server=members.dyndns.org faix.homelinux.net chown root:root /etc/ddclient/ddclient.conf … Read more

Linux mini-howto

# Linux je operační systém s monolitickým jádrem. Moduly jsou objektové soubory, dynamické části jádra. Umožňují rozšířit za běhu funkce stávajícího jádra (LKM = Linux Loadable Kernel Module). # daemons basic operations /etc/init.d/apache status /etc/init.d/apache restart # filter file content cat /var/log/… | grep (192.168….) -v 9190 | grep 192.168…. | more tail -f /var/log/… … Read more

Installation of new computer

Installation Installation of new computer (Debian Testing) Installation images (Debian Testing) Installation images AMD64 (STABLE / unofficial / non-free / including-firmware) Installation images AMD64 (TESTING / unofficial / non-free / including-firmware) Create installation USB: dd if=firmware-9.3.0-amd64-netinst.iso of=/dev/sdX During installation, do NOT fill in root password, account will be disabled and new user will be member … Read more

Linux on USB flashdisk

http://www.cyrius.com/debian/nslu2/linux-on-flash.html If you are running your Linux system on a USB flash key, there are a number of things you might want to do in order to reduce the wear and tear on the underlying flash device (as it only supports a limited number of writes). The ext3 filesystem per default writes metadata changes every … Read more

Ubuntu Security

http://ubuntuforums.org/showthread.php?t=510812 Ubuntu Security In an effort to reduce the number of stickies, this sticky is what I consider “the basics” and if you are new to Security on Ubuntu / Linux you should start with this thread. Additional security related threads would include: Introduction to AppArmor – This thread will get you started using Apparmor. … Read more