Gallery 3 installation / upgrade in Ubuntu

Installation aptitude install apache2 mysql-server-5.1 su – www-data cd /var/www/user wget http://downloads.sourceforge.net/gallery/gallery-3.0.4.zip unzip gallery-3.0.4.zip mv gallery3 gallery rm gallery-3.0.4.zip cd gallery mkdir var chmod 777 var exit mysql -u root -p SHOW DATABASES; SELECT User FROM mysql.user; CREATE DATABASE `user-gallery3`; CREATE USER `user-gallery`; SET PASSWORD FOR 'user-gallery' = PASSWORD('mysecretpassword'); GRANT ALL PRIVILEGES ON `user-gallery3`.* TO … Read more

Generate certificate StartSSL for virtual hosts in Apache

Generate certificate StartSSL for virtual hosts in Apache openssl req -new -newkey rsa:2048 -nodes -out /etc/ssl/user.zviretnik.csr -keyout /etc/ssl/private/user.zviretnik.key -subj "/C=CZ/ST=cs/L=Praha/O=/CN=user.zviretnik.eu" chmod 640 /etc/ssl/private/user.zviretnik.key https://www.startssl.com/ copy StartSSL certificate to: touch /etc/ssl/user.zviretnik.cer Show content of CSR: openssl req -in user.zviretnik.csr -noout -text

Repair splash screen of Ubuntu or Linux Mint

Quick Tip: Fix for Ugly Plymouth themes in Ubuntu / Mint http://www.ubuntugeek.com/quick-tipplymouth-themes-in-ubuntu-10-04-lucid-lynx.html Quick tip for those having trouble with their splash screens in Ubuntu / Mint. To change the default splash screen: sudo update-alternatives –config default.plymouth sudo update-initramfs -u To fix the delayed loading of the splash: sudo -s echo FRAMEBUFFER=y >>/etc/initramfs-tools/conf.d/splash update-initramfs -u

Postfix satellite configuration

dpkg-reconfigure postfix /etc/mailname faix.homelinux.net /etc/aliases postmaster: root webmaster: root www-data: root jan: jan.faix@gmail.com wassana: fern.cht@gmail.com root: jan.faix@gmail.com newaliases /etc/postfix/relay_passwd mail.faix.cz mail:xxxxxxxx chown root:root /etc/postfix/relay_passwd postmap /etc/postfix/relay_passwd /etc/postfix/main.cf myorigin = /etc/mailname smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no append_dot_mydomain = no readme_directory = no myhostname = home-desktop alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mydestination … Read more