Author Archives: jan

How to activate Windows 7 with windows loader

http://www.geekylocker.com/how-to-activate-windows-7-with-win-7-loader/

Today, Geekylocker is presenting another good hack and tricks to activate your windows 7 copy trial into working version.There is two ways of activating your new os, which the first way is to use a programmed loader or product activator, and the second way, which is much harder, by tweaking and modifying your BIOS setting. There are couple of activators available on the Web today, and certainly they work with Windows 7 RTM 32 and 64 bits on almost any computer (homemade or branded) and even on Mac.

Windows 7 activator software

So, let us learn more and continue reading…

 

First, let put some notes on how act¡vators work on this new OS.
Act¡vators, also known as loaders, add a script on the boot partition (Linux Grub boot loader (GRLDR)) which will put OEM information (SLIC 2.1) into memory before Windows starts. This way Windows thinks that the SLIC 2.1 come from the BIOS (which is false). Act¡vators also install a certificate and an OEM SLP key to activate Windows.

The commonly used activator is win7 loader, which has been tested to work on many laptops such as Dell, Acer, Samsung etc. Here are the features of this loader:

  • Automatically finds your active boot partition
  • Works on all languages
  • Works alongside hidden partitions
  • Works on Windows 7, Vista and Server 2008 editions
  • Support for BIOS modded users
  • Argument support for silent installs
  • You can use this tool to activate your Windows 7/Vista ISO by editing setupcomplete.cmd

This program to this very day is still the only fully coded API driven application that handles it’s own errors and depends on itself. It’s the original program based loader and it’s arguably the best loader based program to get you activated out right now with over 2 million downloads and counting and a strong fanbase behind it.

You can get win7 loader here:

Windows 7 Loader

Instructions:

1. Download the zip folder to your USB drive or external hd, so that you can run this program in the freshly installed OS.

2. Extract it. Run the application (.exe file).

3. Check the ‘Advanced options‘ , and the options are available on the right side of the window. Choose your SLIC, certificate and serial that fits your PC or laptop.

4. Press install. Done!

If everything goes ok, your copy of windows 7 is now activated!

Walla – Geekylocker team

 

Recovering Windows 7 Bootloader

http://neosmart.net/wiki/display/EBCD/Recovering+the+Windows+Bootloader+from+the+DVD

If your Windows Vista or Windows 7 bootloader has been damaged or corrupt in some way, you’ll have to get it reset before you can use EasyBCD to configure a dual-boot.

Use this section only if you cannot boot into any version of Microsoft Windows. If you can boot into Windows, we highly recommend using our Recovering the Windows Bootloader with EasyBCD guide instead!

Booting from the Windows Installation DVD

Stop! Are you using an HP or Dell? Don’t have a Windows Setup DVD?
Many so-called “professional” computer vendors are too cheap to include a Windows Vista or Windows 7 DVD with your PC. If you’re unlucky enough to get a recovery partition or a recovery DVD without a stock Windows setup DVD too, you have no way of accessing the repair center.As a service to our users, we provide a repair CD that provides access to the functionality discussed below, which you can download from our site. There is however a handling and processing fee for the download.

IMPORTANT: You cannot use this disk to install or reinstall Vista/7. We repeat: these recovery CDs do not contain any installation files!

Put your Windows setup DVD or your System Repair Disc in the drive and restart your PC. Assuming you’ve properly configured your BIOS to boot from CDs/DVDs before hard drives (or you can press F12 if your PC supports it to boot from the CD), you should get a prompt asking you to “Press any key to boot from the CD/DVD…

Press a key, and the CD will begin to load. If you are using your Windows Installation CD, you’ll see a dialog asking you want to Install Now, or in the lower left corner, an option to “Repair your Computer,” which you’ll want to click. If you’re using our recovery CDs, just go on to the next section.

Startup Repair lists all available recovery options, choose a recovery tool

Select “Repair your computer” to continue.

After selecting your language, the recovery CD will scan for operating systems on your drive. Select operating system from the list displayed on the screen, then press next to continue.
You’ll see a welcome screen like this one:

Recovery Essentials screen

 

Option One: Automated Repair

Clicking on the “Attempt automated repair…” text with the green arrow at the top of the screen will cause the recovery CD to attempt to repair your bootloader and boot menu. Assuming your boot files have not been too badly corrupted, this step should conclude with a “Issues resolved” message and prompt you to reboot. It could literally be this easy to fix your PC.

If the automated repair feature is not successful, or after rebooting you discover that your PC still does not work, read on.

Note: The automated repair only fixes one thing at a time, and you might need several things fixed (MBR, bootmgr, boot folder). So boot from the recovery CD again and repeat the whole process. If it’s still not working after repeating the automated repair 3 times, carry on with the following manual steps:

Option Two: Manually Repairing the Windows Bootloader

Desperate times call for desperate measures. This time, we’re going to select the “Launch command prompt” option and try to manually tell the Recovery Console what needs to be fixed. Chances are, this is as far as you’ll have to go; hopefully it’ll get the job done.

Go ahead and select “Command Prompt” from that list, and you should get a window not dis-similar to the one you see when run cmd.exe from Windows.

Let’s start by telling the recovery console to fix our MBR and bootsectors:

bootrec.exe /fixmbr
bootsect.exe /nt60 all /force

Then ask it (nicely!) to try and rebuild your BCD data from scratch:

You will need to replace C:\ in the example below with the letter for your boot drive! It’s most likely C:, but it could be something else!
attrib -h -s C:\boot\BCD

del C:\boot\BCD
bootrec.exe /rebuildbcd

If you’re lucky, this’ll work and you’ll see a message telling you everything went OK.

Reboot your PC and try booting back into Windows to see if it worked. Don’t forget to remove your Windows Vista DVD or Recovery DVD from the drive, or you’ll end back in the repair center!

If your PC still doesn’t boot, read on to Option Three for a more powerful recovery option.

Option Three: Nuclear Holocaust

Back at the main page of the recovery center, go ahead and select “Command Prompt” yet again from that list.

The first order of business is to make sure the MBR and bootsector contain the right references to the Windows bootloader:

bootrec.exe /fixmbr
bootsect.exe /nt60 all /force

Now we get rid of the old BCD registry, and create a new one instead.

Note: We’re assuming that the boot drive is drive C: below. If your computer is configured differently, be sure to use the appropriate drive letter here instead.

attrib -h -s C:\boot\BCD

del C:\boot\BCD
bcdedit /createstore c:\boot\bcd.temp
bcdedit.exe /store c:\boot\bcd.temp /create {bootmgr} /d "Windows Boot Manager"
bcdedit.exe /import c:\boot\bcd.temp
bcdedit.exe /set {bootmgr} device partition=C:
bcdedit.exe /timeout 10
attrib -h -s C:\boot\bcd.temp
del c:\boot\bcd.temp

Now we have a clean, working Vista bootloader. But we need to add a Windows entry to it:

bcdedit.exe /create /d "Microsoft Windows" /application osloader

bcdedit.exe should return a message with a GUID for the newly-created entry, something like this:
The entry {c0dfc4fa-cb21-11dc-81bf-005056c00008} was successfully created.

You’ll need to use the value that bcdedit.exe returned for you below, along with the drive letter for the drive that Windows is installed to:

Again, make sure to replace C: with whatever the correct drive is for your Windows Vista/7 installation.

bcdedit.exe /set {c0dfc4fa-cb21-11dc-81bf-005056c00008} device partition=C:
bcdedit.exe /set {c0dfc4fa-cb21-11dc-81bf-005056c00008} osdevice partition=C:
bcdedit.exe /set {c0dfc4fa-cb21-11dc-81bf-005056c00008} path \Windows\system32\winload.exe
bcdedit.exe /set {c0dfc4fa-cb21-11dc-81bf-005056c00008} systemroot \Windows

And, last of all, tell the bootmgr bootloader to list the new entry or else it’ll remain hidden:

bcdedit.exe /displayorder {c0dfc4fa-cb21-11dc-81bf-005056c00008}

Now your bootloader has been completely removed and rebuilt from scratch. If you got this to work, feel free to consider yourself one of the finest graduates of the NeoSmart Technologies Institute of BCD Learning.

At this point, you have a clean, untouched, and (hopefully) fully-working bootloader with one entry for Windows. Go ahead and reboot your PC, get back into Windows, and use EasyBCD to further tweak the bootloader to your heart’s content. We advise backing up the BCD registry immediately with EasyBCD before making any changes.

How to reinstall Grub 2 to master boot record

How to reinstall Grub 2 to master boot record

https://answers.launchpad.net/me-tv/+question/79735

GRUB

Using Ubuntu livecd

Here assuming the Ubuntu partition is sda7 and /boot partition is sda6 (if you have a separate /boot partition).

Boot up ubuntu from the livecd, open terminal and run:

sudo -i
mount /dev/sda7 /mnt
mount /dev/sda6 /mnt/boot  #skip this one if not have a separate /boot partition
grub-install --root-directory=/mnt/ /dev/sda

If you miss grub.cfg file,use following to recreate:

mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
chroot /mnt update-grub
umount /mnt/sys
umount /mnt/dev
umount /mnt/proc
exit

Using the cd/usb boot up with GRUB

Boot up the CD/USB, press “c” in grub menu. Type:

find /boot/grub/core.img
root (hdx,y)   (previous command will output the x,y)
kernel /boot/grub/core.img
boot

After the boot command,you’ll go into GRUB 2 menu. Select to boot up Ubuntu and run this command to restore GRUB:

sudo grub-install /dev/sda

How to add Vista/Windows 7 partition to Grub 2

http://erickoo.wordpress.com/2009/06/14/how-to-add-vista-partition-to-grub-2-ubuntu-9-10-karmic-koala/

sudo fdisk -l /dev/sda

According to this my Windows partition is hda1. To continue with my plan to add Windows boot option I typed in the following line:

sudo nano /etc/grub.d/11_Windows

This created a new a new file. I then added the following lines:

#! /bin/sh -e
echo "Adding Windows" >&2
cat << EOF
menuentry "Windows 7" {
set root=(hd0,1)
chainloader +1
}
EOF

Now save the 11_Windows file.

Bare in mind that in earlier version of GRUB, if your Windows was installed on first partition then you need to give root=(hd0,0). Thats how GRUB used to number partitions. Starting from GRUB 2, you need to give root=(hd0,1), if your Windows is installed on first partition. So under GRUB 2 it looks like this:

First partition (/dev/sda1): root=(hd0,1)

Next type the following command:

sudo chmod a+x /etc/grub.d/11_Windows

Next type in the following command:

sudo update-grub

You should be able to see something like this:

# sudo update-grub
Generating grub.cfg
Found linux image: /boot/vmlinuz-2.6.30-9-generic
Found initrd image: /boot/initrd.img-2.6.30-9-generic
Found linux image: /boot/vmlinuz-2.6.30-8-generic
Found initrd image: /boot/initrd.img-2.6.30-8-generic
Adding Windows
Found memtest86+ image: /boot/memtest86+.bin
done

Now close all the open programs and type in the following command to your terminal:

sudo reboot

If all went well you should see Windows 7 option in your GRUB2.

Securing a New Linux Installation

http://linuxgazette.net/105/odonovan.html

Linux Internet Server Security and Configuration Tutorial
http://www.yolinux.com/TUTORIALS/LinuxTutorialInternetSecurity.html

Install basic security tools

aptitude install portsentry fail2ban denyhosts logwatch rkhunter

Configure basic security tools

OSSEC

http://www.ossec.net/main/manual/manual-installation
http://dcid.me/texts/my-ossec-setup-manual.php

apt-get install gcc make libc-dev
wget http://www.ossec.net/files/ossec-hids-2.6.tar.gz
tar zxvf ossec-hids-2.6.tar.gz
cd ossec-hids-2.6
sudo ./install.sh
Select: local (if you only have one system to monitor), root@localhost, enable active response [n]
ln -s /var/ossec/bin/ossec-logtest /var/ossec/ossec-logtest

Find what is running and what type of logs are available.
lsof | grep log

Compare with what OSSEC added automatically
cat /var/ossec/etc/ossec.conf |grep "/"

Add manually the logs that are missing using the util.sh tool that comes with OSSEC:
(Get util.sh, run hg clone https://bitbucket.org/dcid/ossec-hids, find it in contrib directory)

/var/ossec/bin/util.sh addfile /var/log/httpd/site4.access.log

  • Tests the logs
  • cat /var/log/syslog | /var/ossec/bin/ossec-logtest -a

  • Add monitoring of important files or directories
  • /var/ossec/etc/ossec.conf
    /var/www
    or ignore often changed files

    /etc/motd
    

  • To start/stop OSSEC HIDS
  • /var/ossec/bin/ossec-control

    Fail2ban

    http://www.fail2ban.org/wiki/index.php/Whitelist

    /etc/fail2ban/jail.local

    action = %(action_mw)s
    

    /etc/fail2ban/fail2ban.conf

    ignoreip = 127.0.0.1 192.168.1.0/24
    

    http://linux.m2osw.com/zmeu-attack

    [apache-badbots]
    enabled = true
    port = http,https
    filter = apache-badbots
    logpath = /var/log/apache*/*access.log
    maxretry = 3
    findtime = 5
    bantime = 14400
    
    [webmin-auth]
    enabled = true
    port = 10000
    filter = webmin-auth
    logpath = /var/webmin/miniserv.log
    maxretry = 3
    findtime = 5
    bantime = 14400

    /etc/fail2ban/filter.d/apache-badbots.conf

    [Definition]
    badbotsmy = admin|phpmyadmin|phpMyAdmin|pma|PMA|forum|board|guestbook|scripts|db|web|sql|php|mysql|
    
    failregex = ^ -.*"(GET|POST).*HTTP.*"(?:%(badbots)s|%(badbotscustom)s)"$
    ^ -.*"(GET|POST).*(?:%(badbotsmy)s).*HTTP.*"$

    /etc/init.d/fail2ban restart

    RK Hunter

    /etc/default/rkhunter

    CRON_DAILY_RUN="true"
    CRON_DB_UPDATE="true"

    /etc/cron.daily/rkhunter change parameter

    --report-warnings-only
    
    to
    --no-mail-on-warning
    

    Logwatch

    /etc/logwatch/conf/logwatch.conf

    LogDir = /var/log
    TmpDir = /var/cache/logwatch
    Output = stdout
    Format = text
    Encode = none
    MailTo = root
    MailFrom = Logwatch
    Range = yesterday
    Detail = High
    Service = All
    Service = "-eximstats"
    mailer = "/usr/sbin/sendmail -t"

    mkdir /var/cache/logwatch

    Denyhosts

    /etc/denyhosts.conf

    ADMIN_EMAIL =
    

    Prey for notebooks

    http://preyproject.com

    aptitude install curl
    wget http://preyproject.com/releases/0.5.3/prey-0.5.3-linux.zip
    unzip prey-0.5.3-linux.zip
    mv prey /usr/share
    rm -f unzip prey-0.5.3-linux.zip
    touch /var/log/prey.log
    touch /tmp/prey-curl-headers.txt

    /usr/share/prey/config

    # you can get both of these from Prey's web service
    api_key='xyz'
    device_key='xyz'
    # mailbox to send the report
    mail_to='jan@faix.cz'
    # the password is now stored base64 encrypted
    # if you wish to generate it by hand, run
    # $ echo -n "password" | openssl enc -base64
    smtp_server='mail.faix.cz:25'
    smtp_username='jan@faix.cz'
    smtp_password='cHJkZWw='

    (sudo crontab -l | grep -v prey; echo "*/20 * * * * /usr/share/prey/prey.sh &gt; /var/log/prey.log") | sudo crontab -

    Tripwire

    is obsolete, use OSSEC instead!!!

    Aptitude

    Záloha a obnova nainstalovaných balíčků

    Pokud budete zálohovat Debian nebo na něm založenou distribuci, budete asi chtít zálohovat spíše seznam explicitně nainstalovaných balíčků než seznam všech nainstalovaných balíčků.

    Pokud používáte nástroj Aptitude, pak víte, že tento nástroj si zapamatuje, co bylo nainstalováno jen jako závislost, a pokud pak odinstalujete původní balíček, Aptitude vám nabídne k odstranění i ty balíčky, které byly nainstalovány jako závislosti. To je velice užitečná funkce z hlediska údržby systému. Pokud byste zálohovali seznam všech balíčků, zahrnuli byste do toho i ony závislosti a po obnově systému (nebo při jeho migraci jinam) by váš Aptitude tuto svou funkci ztratil. Naštěstí není problém nechat si vypsat explicitně nainstalované balíčky:

    aptitude -F %p search "?and(?installed,?not(?automatic))" > pkglist.txt

    A posléze je nainstalovat do nového systému:

    xargs aptitude --schedule-only install < pkglist.txt && aptitude install

    Upgrade na nový release Ubuntu se provede příkazem: do-release-upgrade

    Instalace klíče k novému repozitáři

    V záhlaví PPA’s stránky najdete podpisový klíč “Signing key”. Bude vypadat přibližně takto:
    1024R/72D340A3

    Zkopírujte část následující za lomítkem, např.: 72D340A3

    Nyní je třeba přidat klíč do vašeho systému, aby Ubuntu mohlo ověřit balíčky z PPA repozitáře.

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 72D340A3

    Nastavení automatických aktualizací pomocí anacron

    apt-get install unattended-upgrades
    /etc/apt/apt.conf.d/10periodic

    APT::Periodic::Enable "1";
    APT::Periodic::Update-Package-Lists "1";
    APT::Periodic::Download-Upgradeable-Packages "1";
    APT::Periodic::AutocleanInterval "5";
    APT::Periodic::Unattended-Upgrade "1";
    APT::Periodic::RandomSleep "1800";

    /etc/apt/apt.conf.d/50unattended-upgrades

    Ubuntu

    // Automatically upgrade packages from these (origin, archive) pairs
    Unattended-Upgrade::Allowed-Origins {
    // ${distro_id} and ${distro_codename} will be automatically expanded
    "${distro_id} stable";
    "${distro_id} ${distro_codename}-security";
    "${distro_id} ${distro_codename}-updates";
    };

    Debian

    Unattended-Upgrade::Origins-Pattern {
    "o=Debian,a=testing";
    "o=Debian,a=testing-updates";
    "o=Debian,a=proposed-updates";
    "origin=Debian,archive=${distro_codename},label=Debian-Security";
    };
    
    Unattended-Upgrade::Package-Blacklist {};
    Unattended-Upgrade::Mail "root";
    Unattended-Upgrade::MailOnlyOnError "true";

    Test you configuration

    unattended-upgrades --dry-run
    unattended-upgrades --debug

    and check the log:
    cat /var/log/unattended-upgrades/unattended-upgrades.log

    HTPC a NAS configuration

    Aktuální HW konfigurace – položky:

    skříň: Cooler Master Elite 361
    základní deska: ASUS P8H61-M PRO (rev 3.0)
    CPU: Intel Pentium G630T
    RAM: Kingston 4GB KIT DDR3 1600MHz CL9 HyperX blu Edition
    SSD: ADATA Premier SP800 32GB
    HDD: Western Digital Green 2000GB 64MB cache (2x)
    NIC: AXAGO PCEE-GR
    Zdroj: Chieftec GPS-450A
    Chladič: Zalman CNPS8900 quiet
    Monitor: 42″ LG 42LS5600

    Cooler Master Elite 361

    Parametry a specifikace:

    Obecné:
    Barva: černá
    Materiál: SECC konstrukce / části z ABS plastu
    Formát skříně: Mini Tower
    Pro základní desky: Micro ATX, ATX

    Pozice:
    1x 5,25″ externí
    1x 3,5″ externí
    4x 3,5“ interní

    Konektory na externím panelu:
    2x USB 2.0
    1x výstup na sluchátka
    1x vstup pro mikrofon

    Systém chlazení:
    1x přední 80 mm pozice
    2x zadní 80 mm pozice
    1x vrchní 120 mm ventilátor
    1x boční 80/90/120 mm pozice

    Rozšiřující sloty:
    7x

    Zdroj:
    Skříň je dodávána bez zdroje (standardní ATX pozice)

    Ostatní:
    Speciální design umožňuje horizontální i vertikální instalaci
    Bezšroubková instalace komponent
    Max. výška CPU chladiče: 122 mm
    Max. délka grafické karty (s HDD / bez) : 227 / 312 mm

    Provedení:
    Rozměry: 150 x 368 x 464 mm
    Hmotnost: 4,8 kg
    Parametry a specifikace:
    Určení Kancelářské PC, Stylové PC, HTPC
    Velikost Mini Tower
    Barva Černá
    Formát základní desky ATX, mATX
    Počet interních 5,25″ slotů 0×
    Počet interních 3,5″ slotů 4×
    Pozice zdroje Jiná
    Další vybavení Cable management, Bezšroubková instalace
    Vnější uspořádání
    Externí 5,25″ pozice 1×
    Externí 3,5″ pozice 1×
    Umístění předního panelu Zepředu
    Konektory předního panelu USB 2.0, Sluchátka, Mikrofon
    Chlazení
    Velikost předního ventilátoru 80 mm
    Velikost zadního ventilátoru 80 mm
    Počet pozic pro ventilátory 5×
    Rozměry
    Šířka 150 mm (15 cm)
    Výška 368 mm (36,8 cm)
    Hloubka 464 mm (46,4 cm)
    Hmotnost přesně 4,8 kg

    ASUS P8H61-M PRO (rev 3.0)

    Parametry a specifikace:
    Socket Intel Socket 1155
    Formát mATX (Micro ATX)
    Základní funkce Integrovaná grafická karta, Integrovaná síťová karta, Integrovaná zvuková karta, UEFI BIOS, USB 3.0
    Externí DVI, HDMI, VGA (D-Sub), Jack, Optical out, PS/2, USB 2.0, USB 3.0, RJ-45 (LAN)
    Interní USB 2.0 bracket, Serial ATA II, S/PDIF bracket
    PCI Express x16 2×
    PCI Express x8 0×
    PCI Express x1 2×
    USB 2.0 10×
    USB 3.0 2×
    Serial ATA II 4×
    Serial ATA III 0×
    AGP 0×
    Operační paměť
    Typ paměti DDR3
    Počet slotů RAM 2×
    Režim zapojení Dual-channel
    Maximální frekvence 1 333 MHz
    Pokročilé parametry
    Čipset Intel H61
    Typ zvukové karty Realtek ALC887
    Počet kanálů zvukové karty 7.1

    Intel Pentium G630T

    Parametry a specifikace:
    Typ integrované grafické karty Intel HD Graphics
    Frekvence 850 MHz
    Rodina procesoru Sandy Bridge
    Socket Intel Socket 1155
    Řada procesoru Intel Pentium
    Počet jader
    Počet jader procesoru 2×
    Frekvence
    Frekvence procesoru 2 300 MHz (2,3 GHz)
    Maximální frekvence 2 300 MHz (2,3 GHz)
    Pokročilé parametry
    Funkce Virtualizace, Snížená spotřeba, Integrované GPU, Chladič v balení
    TDP procesoru 35 W
    Výrobní technologie 32 nm
    L2 cache 0,5 MB
    L3 cache 3 MB

    Kingston 4GB KIT DDR3 1600MHz CL9 HyperX blu Edition

    Parametry a specifikace:
    Určení Pro počítač
    Typ paměti DDR3
    Kapacita paměti 4 GB
    Počet modulů v balení 2 ks
    Kit vhodný pro Dual-channel
    Frekvence a časování
    Frekvence paměti 1 600 MHz
    Časování CL9
    Pokročilé parametry
    Další vlastnosti Pasivní chladič

    ADATA Premier SP800 32GB

    Parametry a specifikace:
    Použití Do počítače, Do notebooku
    Typ úložiště SSD
    Kapacita disku 32 GB (0,03 TB)
    Formát 2,5″
    Barva Černá
    Pokročilé parametry
    Rozhraní interní Serial ATA II
    Rychlost čtení 280 MB/s
    Rychlost zápisu 260 MB/s
    Řadič SandForce
    Speciální funkce TRIM, RAID
    Rozměry
    Šířka 69,85 mm (6,99 cm)
    Hloubka 100 mm
    Výška 9,5 mm (0,95 cm)
    Hmotnost
    Hmotnost přesně 68 g (0,07 kg)
    Spotřeba
    Typická spotřeba 0,7 W
    Stand-by spotřeba 0,5 W (500 mW)

    Western Digital Green 2000GB 64MB cache

    Typ úložiště HDD
    Kapacita disku 2 000 GB (2 TB)
    Formát 3,5″
    Rozhraní interní Serial ATA III
    Rychlost zápisu 3 Gb/s
    Vyrovnávací paměť 64 MB
    Rychlost otáček HDD 7 200 ot/min
    Rozměry
    Šířka 102 mm (10,2 cm)
    Výška 26 mm (2,6 cm)
    Hmotnost
    Hmotnost přesně 730 g (0,73 kg)
    Spotřeba
    Typická spotřeba 6 W
    Stand-by spotřeba 0,8 W (800 mW)

    AXAGO PCEE-GR

    Vstupní rozhraní:
    PCI-Express

    Porty:
    1x RJ45 LAN port

    Přenosová rychlost:
    10/100/1000 Mbps

    Vstupní rozhraní:
    Kompatibilní s 1-Lane (x1) PCI-Express s propustností 2.5 Gb/s.
    Vyhovuje PCI Express Base specifikaci revize 1.1.
    Plná podpora Plug and Play.

    Vlastnosti:
    10/100/1000Base-T Ethernet LAN adapter.
    1x RJ-45 konektor pro připojení UTP nebo STP kabelem.
    Kompatibilní se stávající CAT-5 UTP kabeláží.
    Podporované specifikace IEEE 802.3 10Base-T, IEEE 802.3u 100Base-TX, IEEE 802.3ab 1000Base.
    Podpora Full Duplex Flow Control (IEEE 802.3x).
    10/100/1000 Mbit/s autodetekce.
    Crossover detekce a autokorekce.
    Podpora pair swap/polarity/skew korekce.
    Podpora IEEE 802.1P Layer 2 priority encoding.
    Podpora IEEE 802.1Q VLAN tagging.
    Podpora IEEE 802.3az Draft 3.0 (EEE) Energy Efficient Ethernet – sní?žení spotřeby v klidovém stavu.
    Podpora Power Management offload (ARP & NS).
    Dvě LED diody pro indikaci aktivity a připojení k síti.
    Použit čipset Realtek RTL8111E.

    Podporované operační systémy:
    Linux kernel 2.4.x / 2.6.x / 3.x

    Chieftec GPS-450A

    Napájení 450 W, 100 – 240 V 45 – 63 Hz, 4/8 A
    Výstupy +5V/+3.3V/+12V1/+12V2/-12V/+5VSB
    Ochrany:Overload, Over current, Over voltage, Short circuit, Under voltage
    Hlučnost 24.4 dB
    Rozměry 150 x 140 x 87 mm
    Barva bílá

    Zalman CNPS8900 quiet

    Maximální rychlost 1 500 ot/min
    Maximální hlučnost 25 dB
    AMD Socket AMD Socket AM3
    Intel Socket Intel Socket 775, Intel Socket 1366
    Šířka 120 mm (12 cm)
    Výška 60 mm (6 cm)
    Hloubka 120 mm (12 cm)

    21.5″ Packard Bell Maestro223DXLAbid

    Parametry a specifikace:
    Úhlopříčka displeje 21,5″
    Určení Hry, Filmy
    Rozlišení displeje FullHD (1920×1080)
    Odezva 5 ms
    Technologie obrazu TN
    Barva
    Barva Černá
    Výbava
    Výbava LED podsvícení
    Vstupy/Výstupy
    Grafické vstupy DVI, HDMI

    32″ LG 32LH3000

    Parametry a specifikace:

    Speciální vlastnosti:
    Full HD 1920 x 1080p
    Smart Energy Saving 3. Picture Wizard
    Invisible Speaker Laděné Markem Levinsonem

    Vlastnosti:
    Velikost uhlopříčky: 32″
    Velikost uhlopříčky: 82 cm
    Rozlišení: 1920 x 1080
    Jas: 500 cd/m2
    Dynamický kontrastní poměr: 50000:1
    Pozorovací úhel: 178/178
    Čas odezvy: 5 m/s
    WCC (Wide Color Control)
    Životnost panelu: 60 000 hod
    Doporučená sledovací vzdálenost 1,5 – 2 m

    Systém TV příjmu:
    Analogové
    DVB-T

    Obraz:
    Obrazový procesor: (XD Engine)
    Poměr stran: 16:9
    Nastavení teploty barev: Chladná/Střední/Teplá
    Nastavení poměru stran: 16:9/Just scan/Original/4:3/14:9/Zoom/ Cinema Zoom/full wide
    AV Režim: (Kino/Hra/Sport) Vivid/Standard/Natural/Cinema/Sport/Game
    Nastavení obrazu pro pokročilé
    24p Real Cinema

    Zvuk:
    Výkon reproduktorů (W): 10 W + 10 W
    Čistý hlas (Clear Voice)
    Zvukové režimy 5 (Standardní/Hudba/Kino/Sport/Hra)
    Režim prostorového zvuku SRS Trusurround

    Speciální funkce:
    EPG (SI): 8 dní
    Podopora signálu: 1080P HDMI 60p/50p/30p/24p, komponentní 60p/50p
    SIMPLINK (HDMI – CEC)

    Teletext:
    Teletext / počet stran: 1000p

    Časové nastavení:
    Hodiny
    Budík
    Časovač vypnutí
    Automatické vypnutí

    Vstupy a výstupy – boční panel:
    1x Výstup na sluchátka
    1x AV vstup
    1x HDMI vstup

    Vstupy a výstupy – zadní panel:
    1x RF vstup
    1x Plný Scart (TV výstup)
    1x Poloviční Scart (MNT/DTV výstup)
    1x Digitální optický audio výstup (optický)
    1x Komponentní vstup + Audio (480i/480p/576i/576p/720p/1080i/1080p) – 1080p : 60p/50p
    1x RGB vstup (D-Sub 15pin)
    1x HDMI / HDCP vstup (480p/576p/720p/1080i/1080p) – 1 Port PC Mode
    1x PC Audio vstup
    1x RS-232C (Control / SVC)
    1x USB (SVC) (servisní)

    Vzhled:
    Stříbrný dekorativní lem na spodní liště
    Vysoce lesklý povrch
    Reproduktory Skryté reproduktory
    Otočný stojan
    VESA kompatibilní

    Elektrické vlastnosti:
    Spotřeba (příkon): 150 W
    Pohotovostní režim: 1 W

    Další vlastnosti:
    Menu České a slovenské menu

    Hmotost:
    Hmotnost: bez stojanu 10,6 kg
    Hmotnost: se stojanem 11,7 kg

    Rozměry:
    Rozměry bez stojanu: 805 x 531 x 79,9 mm
    Rozměry se stojanem: 805 x 583 x 224 mm

    22″ LG 22LH2000

    Parametry a specifikace:

    Obrazovka:
    Úhlopříčka: 22″ (56 cm)
    Rozlišení: 1366 x 768 bodů
    Jas: 350 cd/m2
    Dynamický kontrastní poměr: 8000:1
    Pozorovací úhel: 170o/ 160o
    Čas odezvy: 5 ms
    Životnost panelu: 60 000 hod (udáno pro hodnotu jasu)
    Doporučená sledovací vzdálenost: 1,5 m

    Televizní tuner:
    Analogový
    Digitální (DVB-T, MPEG2/ MPEG4)
    Teletext s pamětí 1000 stran
    EPG na 8 dní

    Nastavení obrazu:
    Obrazový procesor (XD Engine)
    Poměr stran 16:9, HD Ready
    Nastavení teploty barev (Chladná/ Střední/ Teplá)
    Nastavení poměru stran (16:9/ Just scan/ Original/ 4:3/ 14:9/ Zoom/ Cinema Zoom/ full wide)
    AV Režimy (Standardní/Hudba/Kino/Sport/Hra)
    Nastavení obrazu pro pokročilé
    24p Real Cinema
    Menu v českém jazyce

    Audio:
    Výkon reproduktorů: 3 W + 3 W
    Zvukové režimy (Standardní/ Hudba/ Kino/ Sport/ Hra)
    Režim prostorového zvuku SRS Trusurround

    Časové funkce:
    Hodiny, budík
    Časovač vypnutí
    Automatické vypnutí

    Vstupy a výstupy:
    1 x Výstup na sluchátka
    1 x AV vstup
    1 x RF vstup
    1 x Plný SCART
    1 x Poloviční SCART
    1 x Digitální optický audio výstup
    1 x Komponentní vstup + Audio
    1 x RGB vstup (D-Sub 15pin)
    1 x HDMI
    1 x PC Audio vstup
    1 x RS-232C (pro servisní účely)
    1 x USB (pro servisní účely)

    Instalace:
    Kompatibilní s držákem VESA

    Spotřeba:
    Spotřeba během provozu: 55 W
    Pohotovostní režim: 1 W

    Rozměry:
    Bez stojanu: 533,4 x 351,7 x 65 mm
    Se stojanem: 533,4 x 397 x 171 mm

    Hmotnost:
    Bez stojanu: 4,6 kg
    Se stojanem: 4,8 kg

    42″ LG 42LS5600

    Parametry a Specifikace:

    Vlastnosti displeje:
    Úhlopříčka obrazovky: 42“ (107 cm)
    Rozlišení: 1920 x 1080 bodů
    Typ panelu: LCD
    Podsvícení: LED
    Zobrazovací frekvence: 100 Hz – Motion Clarity Index – dynamický
    Další: Triple XD Engine

    Příjem TV signálu:
    Analogový tuner
    DVB-T tuner pro příjem digitálního pozemního vysílání / HD DVB-T tuner pro příjem digitálního pozemního vysílání ve vysokém rozlišení (MPEG-4)
    DVB-C tuner pro příjem kabelové televize / HD DVB-C tuner pro příjem kabelové televize ve vysokém rozlišení (MPEG-4)

    Video vstupy a výstupy:
    3x HDMI (2x na zadním panelu + 1x na boku)
    1x VGA (D-SUB)
    1x Komponentní vstup
    1x SCART

    Zvukové vstupy a výstupy:
    Výstup na sluchátka (Na boku)
    Digitální optický výstup
    Vstup PC audia

    Další výbava:
    1x USB 2.0 (Dolby Digital/EAC3/HAAC/AAC/MPEG/MP3/LPCM/DivX HD/JPEG)
    Slot pro karty CI (Common Interface)
    Ethernetový vstup (Podporuje DLNA)
    Světelný senzor (LG Intelligent Sensor)

    Ozvučení:
    Výkon reproduktorů 2x 10 W
    Technologie: Infinite Surround (prostorový zvuk), Clear Voice
    5 režimů (Standard/Music/Cinema/Sport/Game)

    Další technologie:
    EPG a Teletext / e-manuál / zámek kláves / Simplink (HDMI CEC) / technologie Smart energy saving PLUS (možnost vypnout obraz) / průvodce obrazovým nastavením – Picture Wizard II, ideální AV nastavení obrazu pro 5 režimů / dětská pojistka / budík / časovač vypnutí / automatické vypnutí

    Údaje o spotřebě:
    Typická spotřeba: 60 W
    Spotřeba ve Stand-by: 0,3 W

    Provedení televizoru:
    Barva: černá
    Rozměry (Se stojanem): 979 x 660 x 269 mm (Š x V x H mm)
    Rozměry (Bez stojanu): 979 x 593 x 35,5 mm (Š x V x H mm)
    Hmotnost: (Se stojanem): 15,1 Kg
    Hmotnost: (Bez stojanu): 12,7 Kg
    Otočný podstavec
    VESA uchycení: 400 x 400 mm

    Reproduktory

    Microlab Solo7c, 2 ks satelitních reproduktorů, celkový výkon setu RMS 110 W, přenosová frekvence 55 Hz-20 kHz, odstup signál / šum 85 dB, magnetické stínění, regulace hlasitosti, ovládač, barva hnědá (http://www.k24.cz)
    Gembird WCS-049HQ 2.0 černo-hnědé (reproduktory 2.0, třípásmové, dřevěné, výkon 100W RMS, 20Hz až 20kHz)

    Apache2 security – mod_rewrite, mod_security

    Enable mod_rewrite in Apache2

    http://www.grosseosterhues.com/2011/07/enabling-mod-security-protection-in-apache2-on-ubuntu/
    http://www.linuxlog.org/?p=135

    a2enmod rewrite

    /etc/apache2/sites-available/000-default

    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order allow,deny
    allow from all

    /etc/init.d/apache2 restart

    .htaccess

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    Enable mod_evasive and mod_security in Apache2

    aptitude install libapache-mod-security libapache2-mod-evasive

    a2enmod mod-security mod-evasive

    ln -s /usr/sbin/sendmail /bin/mail
    mkdir /var/log/mod_evasive
    chown www-data:www-data /var/log/mod_evasive/

    /etc/apache2/conf.d/modevasive

    <ifmodule mod_evasive20.c>
    DOSHashTableSize 3097
    DOSPageCount 2
    DOSSiteCount 50
    DOSPageInterval 1
    DOSSiteInterval 1
    DOSBlockingPeriod 10
    DOSLogDir /var/log/mod_evasive
    DOSEmailNotify jan.faix@gmail.com
    DOSWhitelist 127.0.0.1
    </ifmodule>

    Check if /etc/apache2/apache2.conf contain:

    # Include generic snippets of statements
    Include /etc/apache2/conf.d/[^.#]*

    mkdir /etc/apache2/mod_security_rules
    chown -R root:root /etc/apache2/mod_security_rules
    sed '/^$/d; /^#/d;' /usr/share/doc/mod-security-common/examples/rules/*conf >> /etc/apache2/mod_security_rules/modsecurity_crs_10_config_global.conf
    cp /usr/share/doc/mod-security-common/examples/rules/base_rules/* /etc/apache2/mod_security_rules/
    touch /var/log/apache2/modsec_audit.log /var/log/apache2/modsec_debug.log
    chown www-data:www-data /var/log/apache2/modsec_audit.log /var/log/apache2/modsec_debug.log

    /etc/apache2/mod_security_rules/modsecurity_crs_10_config_global.conf

    SecAuditLog /var/log/apache2/modsec_audit.log
    SecDebugLog /var/log/apache2/modsec_debug.log

    /etc/apache2/conf.d/mod_security

    <IfModule security2_module>
    Include /etc/apache2/mod_security_rules/*.conf
    </IfModule>

    cd /etc/apache2/mod_security_rules/
    mv modsecurity_crs_41_phpids_filters.conf modsecurity_crs_41_phpids_filters.conf.disabled

    /etc/init.d/apache2 restart

    Test mod_security

    /var/www/test.php

    <?php
    $secret_file = $_GET['secret_file'];
    include ( $secret_file);
    ?>

    http://yourserver.tld/test.php?secret_file=/etc/passwd

    Correct response is “403 Forbidden” error message.

    rm -f /var/www/test.php

    Test mod_evasive

    Run from another box than your server, change domain to your web server.
    Correct response is HTTP/1.1 404 Not Found.

    ~/test.pl

    #!/usr/bin/perl
    # test.pl: small script to test mod_dosevasive’s effectiveness
    use IO::Socket;
    use strict;
    for(0..100) {
    my($response);
    my($SOCKET) = new IO::Socket::INET( Proto => "tcp",PeerAddr=> "faix.homelinux.net:80");
    if (! defined $SOCKET) { die $!; }
    print $SOCKET "GET /?$_ HTTP/1.0\n\n";
    $response = <$SOCKET>;
    print $response;
    close($SOCKET);
    }

    rm -r ~/test.pl

    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, (you will not have the shell, see below)
    user – user that have ssh access to the ssh server (computer)
    ssh_server – the ssh server that will be used for forwarding/tunneling

    Without the -N option you will have not only the forwarding port but also the remote shell. Try with and without it to see the difference.

    Note:
    1. Privileged ports (localport lower then 1024) can only be forwarded by root.
    2. In the ssh line you can use multiple -L like in the example…
    3. Of course, you must have ssh user access on secure_computer and moreover
    the secure computer must have access to host:hostport
    4. Some ssh servers do not allow port forwarding (tunneling). See the sshd man
    pages for more about port forwarding (the AllowTcpForwarding keyword is set to
    NO in sshd_config file, by default is set to YES)…

    Example:
    ssh -L 4443:10.0.0.138:80 user@example.org -N
    ssh -L 8888:www.linuxhorizon.ro:80 user@computer -N
    ssh -L 8888:www.linuxhorizon.ro:80 -L 110:mail.linuxhorizon.ro:110 25:mail.linuxhorizon.ro:25 user@computer -N

    The second example (see above) show you how to setup your ssh tunnel for web, pop3
    and smtp. It is useful to recive/send your e-mails when you don’t have direct access
    to the mail server.

    For the ASCII art and lynx browser fans here is illustrated the first example:

       +----------+<--port 22-->+----------+<--port 80-->o-----------+ 
       |SSH Client|-------------|ssh_server|-------------|   host    | 
       +----------+             +----------+             o-----------+ 
      localhost:8888              computer      www.linuxhorizon.ro:80 
    

    Open your browser and go to http://localhost:8888 to see if your tunnel is working.

    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,
            # alert, emerg.
            LogLevel warn
    
            CustomLog /var/log/apache2/example.org-access.log combined
    </VirtualHost>

    /etc/apache2/sites-available/wordpress-ssl.conf

    <VirtualHost *:443>
            ServerAdmin my@email.com
            ServerName www.example.org
            ServerAlias example.org
            DocumentRoot /var/www/wordpress/
    
            <Directory /var/www/wordpress>
                    Options -Indexes +FollowSymLinks +MultiViews
                    AllowOverride All
                    Order allow,deny
                    allow from all
                    DirectoryIndex index.php
            </Directory>
    
            Alias /wordpress /var/www/wordpress
    
            ErrorLog /var/log/apache2/example.org-ssl-error.log
    
            # Possible values include: debug, info, notice, warn, error, crit,
            # alert, emerg.
            LogLevel warn
    
            CustomLog /var/log/apache2/example.org-ssl-access.log combined
    
            SSLEngine on
            SSLProtocol all -SSLv2
            SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
            SSLCertificateFile /etc/ssl/example.org.cer
            SSLCertificateKeyFile /etc/ssl/private/example.org.key
            SSLCertificateChainFile /etc/ssl/startssl.sub2.ca.pem
            SSLCACertificateFile /etc/ssl/startssl.root.cs.pem
            SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
    
            CustomLog /var/log/apache2/example.org-ssl-request.log \
             "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
    </VirtualHost>

    /var/www/wordpress/.htaccess

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    Activate both new sites and modules:

    a2ensite wordpress wordpress-ssl
    a2enmod ssl rewrite headers

    MySQL

    mysql -u root -p
    SHOW DATABASES;
    SELECT User FROM mysql.user;
    DROP DATABASE drupal6;
    DELETE FROM mysql.user WHERE User=`drupal6`;
    CREATE DATABASE `wp_db`;
    CREATE USER `wp_user`;
    SET PASSWORD FOR 'wp_user' = PASSWORD('mysecretpassword');
    GRANT ALL PRIVILEGES ON `wp_db`.* TO 'wp_user'@'localhost' IDENTIFIED BY 'mysecretpassword';
    FLUSH PRIVILEGES;
    EXIT
    rm -f ~/.mysql_history

    service mysql restart

    Configuration

    cd /var/www/wordpress
    cp wp-config-sample.php wp-config.php
    chown www-data:www-data wp-config.php

    /var/www/wordpress/wp-config.php

        DB_NAME: Database Name used by WordPress
        DB_USER: Username used to access Database
        DB_PASSWORD: Password used by Username to access Database
        DB_HOST: The hostname of your Database Server

    https://api.wordpress.org/secret-key/1.1/salt/

        AUTH_KEY
        SECURE_AUTH_KEY
        LOGGED_IN_KEY
        NONCE_KEY

    service apache2 restart

    http://your.domain/wp-admin/install.php

    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.
    /etc/cron.d/linuxcounter

    00 21 * * 0 cron /usr/local/bin/lico-update.sh -m >> /var/log/lico-update 2>&1
    30 21 1 * * root /usr/local/bin/lico-update.sh -update && chmod 755 /usr/local/bin/lico-update.sh>> /var/log/lico-update 2>&1

    chown root:root /etc/cron.d/linuxcounter
    chmod 644 /etc/cron.d/linuxcounter
    touch /var/log/lico-update
    chown root:cron /var/log/lico-update
    chmod 664 /var/log/lico-update
    mkdir /root/.linuxcounter/
    ln -s /home/cron/.linuxcounter/$(hostname) /root/.linuxcounter/
    

    5. Register new machine, choose option [1] Create a new machine in your linuxcounter account.

    su cron -
    /usr/local/bin/lico-update.sh -i
    cat /home/cron/.linuxcounter/$(hostname)
    /usr/local/bin/lico-update.sh -m
    

    Upgrade from version 0.3.20 to 0.0.4 😉

    Proceed with steps 3. and 4. above.
    Copy your ApiKey from your Profile.

    su - cron

    Keep your “update_key” and “machine_number” from already registered machine.
    grep 'update_key\|machine_number' /home/cron/.linuxcounter/$(hostname)

    /usr/local/bin/lico-update.sh -i

    Choose option [3] Rescan the system and replace the current configuration with the scanned data.

    Open your favorite editor:
    vi /home/cron/.linuxcounter/$(hostname)

    Use your “update_key” and “machine_number” you got above:

    update_key='xxxxxxxxx'
    machine_number='nnnnnn'

    And paste values in new variables “machine_updatekey” and “machine_id”.

    machine_updatekey=""
    machine_id=""

    Send new data to server:
    /usr/local/bin/lico-update.sh -m

    As user #root try script update function:
    /usr/local/bin/lico-update.sh -update && chmod 755 /usr/local/bin/lico-update.sh