<VirtualHost *:80>
    ServerName localhost
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot /home/*/public_html
    <Directory /home/*/public_html>
        AllowOverride all
    </Directory>
    ErrorLog  /var/log/www/localhost-error_log
    CustomLog /var/log/www/localhost-access_log common
</VirtualHost>

Comments No Comments »

Comments No Comments »

find -name '*.php' -exec iconv -f cp1251 -t utf8 '{}' -o '{}'.utf8 \;

Source: http://dev.horemag.net/2008/11/27/linux-batch-encoding-convert-one-liner/

Comments No Comments »

<?php
// Check for safe mode
if( ini_get('safe_mode') ){
    // Do it the safe mode way
    print "ON";
}else{
    // Do it the regular way
    print "OFF";
}

?>

Comments No Comments »

A lot has changed for Grub with version 2.0 (Ubuntu 9.10, 10.04 etc.), so if your Linux installation is using grub 2.0 then this is trick should work for you.

With Grub 2 you can no longer edit grub.conf or menu.lst files located in /boot/grub folder. The file to be edited is now “grub” located in /etc/default/ folder, you can edit it by running the following command from terminal (sudo gedit /etc/default/grub). The contents would look like this:

If you change this file, run ‘update-grub’ afterwards to update

    # /boot/grub/grub.cfg.

    GRUB_DEFAULT=0
    #GRUB_HIDDEN_TIMEOUT=0
    GRUB_HIDDEN_TIMEOUT_QUIET=true
    GRUB_TIMEOUT=10
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
    GRUB_CMDLINE_LINUX=”"

    # Uncomment to disable graphical terminal (grub-pc only)
    #GRUB_TERMINAL=console

    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo’
    #GRUB_GFXMODE=640×480

    # Uncomment if you don’t want GRUB to pass “root=UUID=xxx” parameter to Linux
    #GRUB_DISABLE_LINUX_UUID=true

    # Uncomment to disable generation of recovery mode menu entrys
    #GRUB_DISABLE_LINUX_RECOVERY=”true”
    

To change the default boot option, you just need to change the GRUB_DEFAULT parameter. 0 is the first entry, so if you want windows to be your default boot option which is, say at, 6th position in the grub menu, then you just need to change the GRUB_DEFAULT value to 5 and save the file and close it. If you want to change the Auto Boot preset time then you would need to change the value of GRUB_TIMEOUT parameter, it should be assigned a value in seconds and would determine the delay in seconds before grub boots the default choice, automatically. Now from the terminal run following command and your grub default boot order would be changed when you boot the next time:

sudo update-grub

Source: http://www.hackourlives.com/change-default-boot-order-ubuntu-10-04-lucid/

Comments No Comments »

ctrl + f12 -> Tab[ Forms ] -> password manager

Comments No Comments »

egrep 'ad[0-9]|cd[0-9]' /var/run/dmesg.boot

Source:

http://www.cyberciti.biz/faq/freebsd-hard-disk-information/

Comments No Comments »

Za vse, ki so se želeli pobližje spoznati z Linuxom ali ga morda preizkusiti, pa jih je skrbelo pomanjkanje ustrezne literature v slovenskem jeziku, je sedaj na voljo priročnik Linux na namizju – uporaba Ubuntu Linuxa na namiznem računalniku, ki ga je spisal Matej Kovačič.

Kot rečeno je knjiga namenjena začetnikom v svetu Linuxa. Na začetku je na kratko razloženo, kaj je to Linux in kaj omogoča, sledi pa opis uporabe Ubuntu Linuxa na namiznem računalniku. Skozi vodič Linux na namizju se tako uporabniki seznanijo z nastavitvami sistema ter osnovnimi administrativnimi opravili, dodajanjem in upravljanjem uporabnikov in skupin, delom z datotekami, uporabo multimedije, povezovanjem v omrežja, nameščanjem programskih paketov itd. pa tudi z nekaterimi naprednejšimi opravili kot na primer izdelovanjem varnostnih kopij, poganjanjem Windows aplikacij znotraj Linux sistemov in virtualizacijo.

Del knjige je posvečen tudi varnosti, zlasti uporabi šifriranja, zelo na kratko pa je omenjena tudi ukazna vrstica in njene zmožnosti. Priročnik je bil sicer napisan z namenom doslednemu izogibanju omenjanja ukazne vrstice za upravljanje sistema. Na koncu je na kratko predstavljena tudi namestitev sistema.

Vir: stromar.si

Tags: , ,

Comments No Comments »

cd /usr/local/lib
ln -s libintl.so.8 /usr/local/lib/libintl.so.6

Comments No Comments »

Adobe PDF in select menu window !!!

Comments No Comments »

Page 2 of 4112345678910...Zadnja »
Urban Cetinski