SSH Server configuration
Change following settings: /etc/ssh/sshd_config Port 22 Protocol 2 PermitRootLogin no RSAAuthentication yes PubkeyAuthentication yes PermitEmptyPasswords no X11Forwarding yes UsePAM yes UseDNS no
Change following settings: /etc/ssh/sshd_config Port 22 Protocol 2 PermitRootLogin no RSAAuthentication yes PubkeyAuthentication yes PermitEmptyPasswords no X11Forwarding yes UsePAM yes UseDNS no
http://1000umbrellas.com/2010/04/29/how-to-set-up-the-firewall-using-ufw-on-ubuntu-lucid-lynx-server Today I learned a different way to configure the firewall on my Ubuntu / Debian Server: the ufw command. UFW stands for “Uncomplicated FireWall” and it’s just that. It provides a simpler interface to add or remove firewall rules to iptables, the default Linux firewall. It’s installed on Ubuntu Server by default. To set … Read more
http://www.debianadmin.com/setup-cups-common-unix-printing-system-server-and-client-in-debian.html The Common UNIX Printing System™, or CUPS, is the software you use to print from applications like the web browser you are using to read this page. It converts the page descriptions produced by your application (put a paragraph here, draw a line there, and so forth) into something your printer can understand and … Read more
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 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
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
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
http://www.debian-administration.org/articles/412 http://fob.po8.org/node/289 If you are running multiple websites with Apache2 with mixed ports (usually http port 80, https port 443) change following configuration files. Variable NameVirtualHost should be only in file virtual.conf, find and comment it in other configuration files! FOB: I recently reported being stuck trying to set up multiple SSL name-based virtual hosts … Read more
http://www.unixmen.com/fix-delay-in-ssh-login/ /etc/ssh/sshd_config UseDNS no /etc/resolv.conf options single-request-reopen /etc/init.d/ssh restart
Change permissions of files and directories recursively find . -type d -exec chmod 775 {} \; find . -type f -exec chmod 664 {} \;