środa, 21 sierpnia 2013

[Microsoft Windows] Multi Desktops



Install application to create multi desktops on your PC

Official Microsoft Website link to download Desktops 2.0

poniedziałek, 10 czerwca 2013

[Windows] Opróźnić folder WinSxS ?




Ręczne pozbycie się zawartości katalogu winsxs nie jest zbyt rozsądne. Może skutkować niemożliwością uruchomienia większości zainstalowanych programów. Lepszym wyjściem będzie odinstalowanie aplikacji, z których nie korzystamy. W ten sposób zwiekszymy ilość wolnego miejsca oraz zmniejszymy zawartość wspomnianego folderu.




wtorek, 4 czerwca 2013

[Linux] X server failed to start




Try in terminal as root:

Xorg -configure

# copy new configurafion
mv /root/xorg.conf.new /etc/X11/xorg.conf

# restart
reboot
 



Warning
You may need to reinstall display drivers

piątek, 31 maja 2013

[CentOS] Autologin







su - 
vi /etc/gdm/custom.conf


You need to edit the daemon section of the file and add or change these:


[daemon]
AutomaticLoginEnable=true
AutomaticLogin=username

poniedziałek, 27 maja 2013

[Slax] Install Slax on HDD and usefull command





# run sshd


sh /etc/rc.d/rc.sshd start

mkfs -t ext2 /dev/sdc1

sed -i 's/OLD/NEW/g' filename







Installation


fdisk /dev/sda
# delete old partition "d"
# create new partition "n"
# more http://tldp.org/HOWTO/Partition/fdisk_partitioning.html
 
mkfs.ext2 /dev/sda1
mkswap /dev/sda2
swapon /dev/sda2

cd /mnt
mkdir sda1
mount /dev/sda1 sda1
mount

cp --preserve -R /{bin,dev,etc,home,lib,root,sbin,usr,var,opt} /mnt/sda1
mkdir /mnt/sda1/{boot,mnt,proc,sys,tmp}
cp /boot/vmlinuz /mnt/sda1/boot
mount -t proc proc /mnt/sda1/proc
mount --bind /dev /mnt/sda1/dev

Startx
#Enter KDE desktop. Visit slax.org to downlad and install #grub0.93.mo for slax #and rename it as grub.lzm
#www.slax.org/modules.php?category=system&id=2493&name=Grub #install the module

slax activate grub*

grub-install --root-directory=/mnt/sda1 /dev/sda
cd /mnt/sda1/boot/grub

slax activate nano

nano /mnt/sda1/boot/grub/menu.lst


#paste

timeout 1
default 0

color white/blue black/light-gray

# Linux Kernels
title Slax6
root (hd0,0)
kernel /boot/vmlinuz max_loop=255 init=linuxrc root=/dev/sda1 ro autoexec=xconf;kdm
boot

autoexec=swapon~/dev/sdb2





poniedziałek, 20 maja 2013

[CentOS] Multimedia codecs








The following steps will use yum to install all the packages needed to have full multimedia support. Note there will be a lot of dependencies.

yum install compat-libstdc++-33 libdvdcss libdvdread libdvdplay libdvdnav lsdvd libquicktime
 
yum install flash-plugin mplayerplug-in mplayer mplayer-gui gstreamer-ffmpeg gstreamer-plugins-bad gstreamer-plugins-ugly

Install the w32Codecs. (Required for xvid and other proprietary formats.)

wget www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-20061022-1.i386.rpm 
rpm -ivh mplayer-codecs-20061022-1.i386.rpm 

wget www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-extra-20061022-1.i386.rpm 
rpm -ivh mplayer-codecs-extra-20061022-1.i386.rpm


You should now have full multimedia and video support for most popular formats.

piątek, 10 maja 2013

[Linux] VNC on display :0








Install

yum install x11vnc

Find line

ps wwaux | grep auth

1 1.7 13308 8840 tty7 Ss+ 12:35 1:14 /usr/bin/X -br -nolisten tcp :0 vt7 -auth /var/run/xauth/A:0-LluidB

Copy bold part

Open

nano /etc/xinetd.d/x11vnc

Paste to file

service x11vnc 
{
   port = 5900 type = UNLISTED  
   socket_type = stream 
   protocol = tcp  
   wait = no 
   user = root  
   server = /usr/bin/x11vnc 
   server_args = -inetd -o /var/log/x11vnc.log -display :0 -auth */var/run/xaut/A:0-LluidB* -many -bg 
   disable = no 
}




Restart xinetd
/etc/init.d/xinetd restart

Try
vncviewer yourHostAdress:0


If you need password

mkdir ~/.x11vnc x11vnc -storepasswd yourPassword ~/.x11vnc/passwd

and run display

x11vnc -viewonly -display :0 -rfbauth ~/.x11vnc/passwd



środa, 20 marca 2013

[joomla] Animated favicon




W directory templates/your_template
in find place( which generate favicon.ico )

<jdoc:include type="head" /> 

paste below line above:
 
 <link rel="shortcut icon" href="templates/<?php echo $this->template ?>/favicon.gif" />

wtorek, 19 marca 2013

[Linux] Can't open display



# please check listening on port 6000. You may use command below

netstat -an | grep -F 6000

# check existing line below

tcp     0   0 0.0.0.0:6000      0.0.0.0:*              LISTEN






# if you havn't line above run command below

socat -d -d TCP-LISTEN:6000,fork,bind=0.0.0.0 UNIX-CONNECT:/tmp/.X11-unix/X0

# if you haven't socat try line below

sudo apt-get install socat

piątek, 15 marca 2013

[Linux] Script on startup after session run



I put one script in  /etc/init.d/

cp yourScript.sh  /etc/init.d/yourScript.sh

chkconfig --add yourScript.sh
 
 
 
List autostart
 
chkconfig --list 

środa, 6 marca 2013

wtorek, 26 lutego 2013

[CentOS] Grow up load average, zombie processes, uninterruptible sleep



Maybe have u zombie processes ?

try:

top -b -n 1 | awk '{if (NR <=7) print; else if ($8 == "D") {print; count++} } END {print "Total status D: "count}'

ps aux | awk '{ print $8 " " $2 }' | grep -w Z

dmesg

find parent zombie proces ( first column )
 
ps -eo ppid,pid,user,stat,pcpu,comm,wchan:32 | grep pidZombieProcess


kill  [-9 -15]  pidParentZombieProcess

niedziela, 24 lutego 2013

[CentOS] Customize prompt



export PS1="\[\033[36m\][\t] \[\033[1;33m\]\u\[\033[0m\]@\h:\[\033[36m\][\w]:\[\033[0m\] "

[CentOS] Install google chrome


In terminal:

nano /etc/yum.repos.d/google-chrome.repo

paste for 32-bit

[google-chrome] 
name=google-chrome - 32-bit 
baseurl=http://dl.google.com/linux/chrome/rpm/stable/i386 
enabled=1 
gpgcheck=1 
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

for 64-bit

[google-chrome] 
name=google-chrome - 64-bit 
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64 
enabled=1 
gpgcheck=1 
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

and install

## Install Google Chrome Stable version ## 
yum install google-chrome-stable

## Install Google Chrome Beta version ## 
yum install google-chrome-beta

## Install Google Chrome Unstable version ## 
yum install google-chrome-unstable

sobota, 23 lutego 2013

[CentOS] * is not in the sudoers file. This incident will be reported.


run in terminal : 


su -
echo 'yourUsername ALL=(ALL) ALL' >> /etc/sudoers

[CentOS] Install skype


in terminal :


yum install libXrender.i686 libstdc++.i686 fontconfig.i686 pulseaudio-libs.i686 qt-x11.i686 qt.i686 glib2.i686 zlib.i686 freetype.i686 alsa-lib.i686 libXScrnSaver.i686 libXi.i686 libXv.i686 libXrandr.i686 libSM.i686


cd /tmp
wget http://download.skype.com/linux/skype_static-4.0.0.8.tar.bz2
mkdir /opt/skype
tar -xvf skype_static-4.0.0.8.tar.bz2 -C /opt/skype --strip-components=1

ln -s /usr/lib/libtiff.so.3 /usr/lib/libtiff.so.4

touch /usr/bin/skype
chmod 755 /usr/bin/skype


nano /usr/bin/skype

fill this:

#!/bin/sh
export SKYPE_HOME="/opt/skype"

$SKYPE_HOME/skype --resources=$SKYPE_HOME $*

and run

skype

piątek, 22 lutego 2013

[CentOS] Don't boot raid5 recover filesystem



When execute line below
 cat /proc/mdstat

you can see _ sign, your raid have fail disk to repair

UUU__
md0 : active raid5 sda1[0] sdb1[4] sdd1[3] sdc1[2](F) sdb1[1](F)



Loop restart with (recover filesystem)# prompt.
To repair try:

mdadm --assemble /dev/md0 --scan --force

środa, 20 lutego 2013

[CentOS] Image resize, convert




yum install ImageMagick



Usage:

convert example.png example.jpg

convert example.png -resize 200 example.png
#width

convert example.png -resize x200 example.png
# height


If you have any problems try command below

yum install php-gd glib glib2 libpng libjpeg libtiff ghostscript freetype ImageMagick ImageMagick-perl


[CentOS] Installation from USB in Windows






CentOS Live USB Flash Drive in Windows:


Download liveusb-creator-x-x.zip and extract to your PC


Download CentOS-6*   .iso


Navigate to folder liveusb-creator and click liveusb-creator.exe to launch the tool


If you have any problems try UNetBootIn

wtorek, 19 lutego 2013

[CentOS] Install wifi card








lspci -nn | grep -i net

02:00.0 Ethernet controller [0200]: Atheros Communications Inc. AR8151 v1.0 Gigabit Ethernet [1969:1073] (rev c0) 03:00.0 Network controller [0280]: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) [168c:002a] (rev 01)

grep -i 168c /lib/modules/*/modules.alias | grep -i 002a /lib/modules/2.6.32-220.23.1.el6.x86_64/modules.alias:alias pci:v0000168Cd0000002Asv*sd*bc*sc*i* ath9k /lib/modules/2.6.32-279.5.2.el6.x86_64/modules.alias:alias pci:v0000168Cd0000002Asv*sd*bc*sc*i* ath9k /lib/modules/3.5.2-1.el6.elrepo.x86_64/modules.alias:alias pci:v0000168Cd0000002Asv*sd*bc*sc*i* ath9k

modprobe -r ath5x modprobe ath9x

service NetworkManager restart


[CentOS] unknown filesystem ntfs



wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
 
rpm -Uhv rpmforge-release-0.3.6-1.el5.rf.i386.rpm

yum install fuse fuse-ntfs-3g dkms dkms-fuse

wtorek, 5 lutego 2013

[CentOS] Transaction Check Error



Transaction Check Error:
  package XXXXXXX (which is newer than YYYYYY) is already installed

# wykonaj polecenie poniżej

yum downgrade XXXXXXX

[CentOS] Problem z RPM YUM




W przypadku poniżeszego błędu:

unning rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
xxxxx is needed by (installed) xxxx
Complete!
(1, [u'Please report this error in http://xxxx])


# wyświetl problemy

package-cleanup --problems







# zainstaluj ponownie problemowe paczki

rpm -Uvh --force *.rpm

[CentOS] Nie działa Yum "'module' object has no attribute 'HTTPSHandler'"







Reinstalacja yum

wget -c http://vault.centos.org/4.1/os/i386/CentOS/RPMS/yum-2.2.1-1.centos4.noarch.rpm
wget -c http://vault.centos.org/4.1/os/i386/CentOS/RPMS/rpm-python-4.3.3-9_nonptl.i386.rpm
rpm -i rpm-python-4.3.3-9_nonptl.i386.rpm
rpm -i yum-2.2.1-1.centos4.noarch.rpm

rpm -Uvh openssl-0.9.8e-12.el5.x86_64.rpm







Uwaga.
Problemy mogą wystąpić z wersją najlepiej pobrać najnowszą. W przypadku reinstalacji użyć opcji --force wtedy nadpisze pliki.

poniedziałek, 4 lutego 2013

[CentOS] Openfire, czyli własny server jabber



Pobierz Openfire  http://www.igniterealtime.org/downloads/index.jsp
zainstaluj

rpm -Uvh openfire-3.7.0-1.i386.rpm   


sprawdź czy serwer jest uruchominy z konta root

service openfire status

jeśli nie jest to wykonaj

service openfire reload



sprawdź czy serwer jest uruchominy z konta root

service openfire status

Obsługa przez przeglądarkę internetową 

http://localhost:9090


Uwaga. W przypadku CentOS 64 bit należy wykonać

cd /opt/openfire/jre/bin 
cp java java.bak 
rm java 
ln -s /usr/bin/java java 
service openfire start


niedziela, 3 lutego 2013

[ubuntu] Blokada /var/lib/dpkg/lock


Gdy widzimy napis poniżej to znaczy, że mamy zablokowany instalator innym procesem by go odblokować wykonaj komendę poniżej.

E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
uruchom w terminalu :

sudo fuser -vki /var/lib/dpkg/lock; sudo dpkg --configure -a

poniedziałek, 14 stycznia 2013

Kopete GTalk problem z QCA-TLS




Ze strony http://dag.wieers.com/rpm/packages/qca-tls/ należy pobrać opowiednią wersję qca-tls dla systemu następnie wykonać komendę poniżej

rpm -ivh qca-tls-1.0-1.el5.rf.i386.rpm

gdzie qca-tls-1.0-1.el5.rf.i386.rpm to odpowiednia wersja dla systemu
facebook