Home

Advertisement

Customize

Previous 20

Jan. 17th, 2010

Havaianas welcomes Winter

Amazing video...

Tags:

Jan. 16th, 2010

Saturday... rotfl :)

roftl http://www.rofl.name/f/game_roflcopter
Tags: ,

Jan. 15th, 2010

(dica rapida) pushd / popd - Alternando de diretorios rapidamente....

Para trocar alternar de diretorios rapidamente eu recomendo a utilizacao do comando pushd

Neste rapido exemplo, irei adicionar somente dois diretorios, mas podemos adicionar qnts quisermos.

$ [dougsland@medogz ~]$ pushd /tmp/
/tmp ~
$ [dougsland@medogz tmp]$

Certo, adicionamos o diretorio /tmp e agora vamos adicionar o diretorio /var

$ [dougsland@medogz ~]$ pushd /var/
/var /tmp ~

$ [dougsland@medogz var]$

Agora para ficar alternando entre os diretorios e' so' digitar pushd

[dougsland@medogz var]$ pushd
/tmp /var ~
[dougsland@medogz tmp]$ pushd
/var /tmp ~
[dougsland@medogz var]$

Para listar os diretorios que estao na lista?
[dougsland@medogz var]$ dirs
/var /tmp ~

Para remover da lista?
[dougsland@medogz var]$ popd
/tmp ~
Tags: , ,

Do not access ldap to local users

/etc/nsswitch.conf

passwd: files ldap
shadow: files
group: files
Tags: ,

How to control (long) delays to do a local login when a LDAP server is down?

Add these lines to /etc/ldap.conf

nss_reconnect_maxconntries 1
nss_reconnect_tries 3
nss_reconnect_sleeptime 1
nss_reconnect_maxsleeptime 1

------------------------------

nss_reconnect_maxconntries - This is the maximum number of reconnection tries.

nss_reconnect_tries - Number of times a reconnection attempt will be made before gives up.

nss_reconnect_sleeptime - Minimum amount of time the code will sleep between reconnection attempts. (seconds)

nss_reconnect_maxsleeptime - Maximum amount of time the code should sleep between reconnection attempts.


Recommended read: http://backdrift.org/how-to-get-pam-ldap-local-logins-to-work-when-networking-is-down
Tags:

libvirt: How to enable logs?

vi /etc/libvirt/libvirtd.conf

Add these lines (or just uncomment):
-----------------------------------------------

# Logging level: 0 none, 4 errors, 3 warnings, 2 informations, 1 debug
# basically 1 will log everything possible
log_level = 4

To show logs through a file (/var/log/libvirt/libvirtd.log)
---------------------------------------------------------------

# Logging outputs:
# An output is one of the places to save logging informations
# The format for an output can be:
# x:stderr
# output goes to stderr
# x:syslog:name
# use syslog for the output and use the given name as the ident
# x:file:file_path
# output to a file, with the given filepath
# In all case the x prefix is the minimal level, acting as a filter
# 0: everything
# 1: DEBUG
# 2: INFO
# 3: WARNING
# 4: ERROR
#
# Multiple output can be defined , they just need to be separated by spaces.
# e.g.:
log_outputs="1:file:/var/log/libvirt/libvirtd.log"


For filters use:
-----------------------

# Logging filters:
# A filter allows to select a different logging level for a given category
# of logs
# The format for a filter is:
# x:name
# where name is a match string e.g. remote or qemu
# the x prefix is the minimal level where matching messages should be logged
# 1: DEBUG
# 2: INFO
# 3: WARNING
# 4: ERROR
#
# Multiple filter can be defined in a single @filters, they just need to be
# separated by spaces.
#
# e.g:
# log_filters="3:remote 4:event"
# to only get warning or errors from the remote layer and only errors from
# the event layer.


To finish, just restart libvirt:

$ /etc/init.d/libvirtd restart

References: http://libvirt.org/logging.html
Tags: , ,

Jan. 14th, 2010

virsh connecting to (kvm) localhost + ssh + tls

Connect to localhost:
virsh -c qemu:///system

Connect through tls:
virsh -c qemu+tls://your_host/system list --all ( NOTE: just two // )

Connect through ssh:
virsh -c qemu+ssh://user@your_host/system list --all ( NOTE: just two // )

Additional info:
http://libvirt.org/remote.html#Remote_transports
http://libvirt.org/remote.html#Remote_URI_reference

libvirt + tls - The peer did not send any certificate.

Client trying to connect:
virsh -c qemu+tls://your_host/system list --all
( NOTE: just two // )

Server's report:
The peer did not send any certificate.
remote_internal: failed to verify peer's certificate

Solution:
Recreate the certificates (attention to CN field, which should include the host of server and client)
Additional info: http://libvirt.org/remote.html

Linux - Fedora 12: Webcam Microsoft LifeCam VX-1000 + skype 2.0

Webcam Microsoft VX-1000



lsusb:


shell> lsusb
045e:00f7 Microsoft Corp. LifeCam VX-1000

Dmesg:


shell> dmesg
gspca: probing 045e:00f7
sonixj: Sonix chip id: 11
gspca: probe ok
gspca: probing 045e:00f7
microsoft vx-1000

1) Installing softwares:


shell> sudo yum install libv4l skype -y

What's libv4l?

libv4l is a collection of libraries which adds a thin abstraction layer on
top of video4linux2 devices. The purpose of this (thin) layer is to make it
easy for application writers to support a wide variety of devices without
having to write seperate code for different devices in the same class.

2) Creating a new executable:



shell> sudo vi /usr/local/bin/webcamSkype

Add these 2 lines below:

#!/bin/bash
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype

What's v4l1compat.so?

v4l1compat.so is a wrapper of libv4l which adds v4l2 device compatibility to v4l1
applications (like skype).

3) Setting permissions:



shell> sudo chown your_linux_login:your_linux_login /usr/local/bin/webcamSkype
shell> sudo chmod u+x /usr/local/bin/webcamSkype

Starting application:



Now you can just call webcamSkype from shell or create a launcher from your desktop.

i.e:

shell> webcamSkype

Jan. 13th, 2010

Linux - Fedora 12: Webcam Microsoft LifeCam VX-500

Linux - Fedora 12: Webam Microsoft LifeCam VX-500



lsusb:


shell> lsusb
045e:074a Microsoft Corp.

Dmesg:


shell> dmesg
uvcvideo: Found UVC 1.00 device Microsoft LifeCam (045e:074a)
input: Microsoft LifeCam as /devices/pci0000:00/0000:00:1d.7/usb2/2-3/2-3:1.0/input/input8

shell> skype

Linux - Fedora 12: Webam Logitech Quickcam + skype 2.0

Linux - Fedora 12: Webam Logitech Quickcam



lsusb:


shell> lsusb
046d:08ae Logitech, Inc. QuickCam for Notebooks

Dmesg:


shell> dmesg
gspca: probing 046d:08ae
zc3xx: probe sensor -> 000e
zc3xx: Find Sensor PAS202B
gspca: probe ok
gspca: probing 046d:08ae

1) Installing softwares:


shell> sudo yum install libv4l -y

What's libv4l?

libv4l is a collection of libraries which adds a thin abstraction layer on
top of video4linux2 devices. The purpose of this (thin) layer is to make it
easy for application writers to support a wide variety of devices without
having to write seperate code for different devices in the same class.

2) Creating a new executable:



shell> sudo vi /usr/local/bin/webcamSkype

Add these 2 lines below:

#!/bin/bash
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype

What's v4l1compat.so?

v4l1compat.so is a wrapper of libv4l which adds v4l2 device compatibility to v4l1
applications (like skype).

3) Setting permissions:



shell> sudo chown your_linux_login:your_linux_login /usr/local/bin/webcamSkype
shell> sudo chmod u+x /usr/local/bin/webcamSkype

Starting application:



Now you can just call webcamSkype from shell or create a launcher from your desktop.

i.e:

shell> webcamSkype

Jan. 12th, 2010

Linux: Fedora 12 - Creative WebCam Go + skype 2.0

Creative Webcam Go



lsusb:


shell> lsusb
05a9:0511 OmniVision Technologies, Inc. OV511 Webcam

Dmesg:


shell> dmesg
gspca: probing 05a9:0511
ov519: Device custom id 15
ov519: Uploading quantization tables
ov519: I2C synced in 0 attempt(s)
ov519: starting OV7xx0 configuration
ov519: Sensor is an OV7610
gspca: video0 created

1) Installing softwares:


shell> sudo yum install libv4l -y

What's libv4l?

libv4l is a collection of libraries which adds a thin abstraction layer on
top of video4linux2 devices. The purpose of this (thin) layer is to make it
easy for application writers to support a wide variety of devices without
having to write seperate code for different devices in the same class.

2) Creating a new executable:



shell> sudo vi /usr/local/bin/webcamSkype

Add these 2 lines below:

#!/bin/bash
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype

What's v4l1compat.so?

v4l1compat.so is a wrapper of libv4l which adds v4l2 device compatibility to v4l1
applications (like skype).

3) Setting permissions:



shell> sudo chown your_linux_login:your_linux_login /usr/local/bin/webcamSkype
shell> sudo chmod u+x /usr/local/bin/webcamSkype

Starting application:



Now you can just call webcamSkype from shell or create a launcher from your desktop.

i.e:

shell> webcamSkype

Dec. 31st, 2009

Linux: Modem 3G Claro - ZTE MF626 + Fedora

1) yum install usb_modeswitch wvdial -y

2) vi /etc/usb_modeswitch.conf

Remover o '#' das seguintes linhas:
###############################
# ZTE MF628+ (tested version from Telia / Sweden)
# ZTE MF626
# ZTE MF633
# ZTE MF636 (aka "Telstra / BigPond 7.2 Mobile Card")
#
# Contributor: Joakim Wennergren

DefaultVendor= 0x19d2
DefaultProduct= 0x2000

TargetVendor= 0x19d2
TargetProduct= 0x0031

# only for reference and 0.x versions
MessageEndpoint=0x01

MessageContent="55534243123456782000000080000c85010101180101010101000000000000"

# if that command doesn't work, try the other ("eject")
MessageContent="5553424312345678000000000000061b000000030000000000000000000000"

3) vi /etc/wvdial.conf

[Dialer Defaults]
Auto DNS = on
Init1 = ATX3
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","claro.com.br"
Stupid Mode = 1
New PPPD = yes
Modem Type = Analog Modem
ISDN = off
Phone = *99***1#
Modem = /dev/ttyUSB3
Username = claro
Password = claro
Baud = 460800

4) Executar

# usb_modeswitch
# wvdial

5) /etc/resolv.conf
nameserver 200.169.116.23
nameserver 200.169.117.252

Dec. 14th, 2009

Videos from Japan Linux Symposium

Videos from Japan Linux Symposium:
http://video.linuxfoundation.org/categories/conferences-symposiums/2009-japan-linux-symposium

Dec. 9th, 2009

Video: Japan Linux Symposium: IO Controller State of the Art

Japan Linux Symposium: IO Controller State of the Art by Munehiro Ikeda

Dec. 8th, 2009

Video - JLS: Measuring Function Duration with Ftrace

Japan Linux Symposium: Measuring Function Duration with Ftrace by Tim Bird

Video: JLS - Flight Recorder: A Solution for Investigating Linux Kernel Accidents

Japan Linux Symposium: Flight Recorder: A Solution for Investigating Linux Kernel Accidents by Zhao Lei and Lai Jiangshain KOSAKI Motohiro.

Dec. 4th, 2009

Video: JLS - The KVM qemu storage stack

Japan Linux Symposium - The KVM qemu storage stack by Christoph Hellwig

Video: Write and Submit your first Linux Kernel Patch

Japan Linux Symposium: Write and Submit your first Linux Kernel Patch by Greg Kroah Hartman

Dec. 3rd, 2009

Linux - Fedora 12: How to install Cinelerra

1) rpm --import http://ATrpms.net/RPM-GPG-KEY.atrpms

2) vi /etc/yum.conf
[atrpms]
name=Fedora Core $releasever - $basearch - ATrpms
baseurl=http://dl.atrpms.net/f$releasever-$basearch/atrpms/stable
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1

3) yum install cinelerra -y

4) cinelerra

Previous 20

January 2010

S M T W T F S
     12
3456789
10111213141516
17181920212223
24252627282930
31      

Tags

Syndicate

RSS Atom
Powered by LiveJournal.com

Advertisement

Customize