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
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
Subskrybuj:
Posty (Atom)