ubuntu

SSH X11 Yonlendirme {SSH X11 Forwarding}

Oncelikle ssh’i bulan adama tesekuru bir borc bilirim 🙂 ne mubarek bi kolayliktir bu ssh…
Bir de benim yerime derse gitse tam olurmus…
Daha once ssh’dan bahsetmistim o yazimi okumus oldugunuzu varsayarak ssh X11 yonlendirme olayini anlatacagim…
Ssh X11 yonlendirmesini ne amacla kullaniriz? //
X11 nedir? //
X Pencere Sistemi (X), daha çok GNU/Linux ve Unix benzeri işletim sistemlerinde kullanılan grafik arayüz altyapısıdır.
Ssh x11 yonlendirme islemini yaparak ne elde ederiz? //
Karsi bilgisayardaki grafik arayuzlu programlari sanki kendi bilgisayarimizda calisiyormus gibi kullana biliriz.
Ornek olarak benim laptobumda amarok programim yuklu degil fakat masaustu bilgisayarimda amarok programi yuklu
karsi bilgisayara :

  1.  

baglandiktan sonra :

amarok //komutunu vererek laptobumda; masaustunde yuklu olan amarok programimi acip, oradan parca secip masaustumde calmasini saglayabilirim.

seklinde baglanarak ‘karsi bilgisayardaki gui’ye(grafical user interface-Grafiksel Kullanıcı Arayüzü) sahip programlari calistirabilirim…
Tabi kendi bilgisayarinizdaki kadar performansli olmasini beklemeyin…Sonucta o programin guisini internet baglantiniz araciligi ile size sunuyor ve veriler sifrelenerek akiyor…

Peki ama bunu yapabilmek icin ne yapmam gerekiyor ? //

Oncelikle karsi(sunucu-server) bilgisayarinizda ssh X11 Forwarding ozelliginin acik olmasi gerekiyor.Eger karsi bilgisayara normal ssh ile baglanip root olabiliyorsaniz /etc/ssh/sshd_config dosyasina

  1.  

satirini eklememiz gerekiyor..

Istemci(client) tarafinda da kardesim hazirlikli ol ben sunucu bilgisayara X destegiyle baglanabilirim dememiz gerekiyor bunun icin de /etc/ssh/ssh_config {her kullanici ayri yapacaksa ~/.ssh/config –>kendi home klasoru altindaki ./ssh/ klasorunun altindaki config dosyasini duzenlemelidir.}

  1.  

Eger istemci{client} tarafinda varsayilan olarak gelmesini istemiyorsaniz ayrica -X komutu ile de “ForwardX11 yes” in yaptigi isi yapabilirsiniz.

  1.  

English //

First make sure that your binary distro of ssh has X11 forwarding support. Commonly it will. But on very old systems you must upgrade it or rebuild the source tree removing ant X11 disabling funtions. On the server side, you must enable X11 forwarding by editting the /etc/ssh/sshd_config file and adding a line

  1.  

On client side we must inform ssh client to give that support so that we must edit either /etc/ssh/ssh_config or the user own ssh config file ~/.ssh/config file by adding a line:

  1.  

If you don’t want to use X11 forwarding by default at the client side, you can also turn on forwarding with -X option:

  1.  

Tags: , , , , , , , ,

Wednesday, February 4th, 2009 Bash, Linux, Network & Security, OS, Programming, Tips Comments Off on SSH X11 Yonlendirme {SSH X11 Forwarding}

Ubuntu altindaki Supriz Yumurtalar {Easter Eggs}

Nedir bu supriz yumurta ? //

Programcilar gecelerini gunduzlerine katan insanlardir…Iste bu programci kardeslerim bazen yazdiklari kodlarin icine eglencelik zararsiz bazi kod parcaciklari da eklerler…

Bazi ornekler //

Robot

1 ) Firefox 3 beta 5 :

Adres satirina about:robots yazin bakin bakalim ne oluyor 🙂

{Intrepid testers using Firefox 3 beta 5: type “about:robots” into the address bar to get a fun page of robotic references }

yada ayni sekilde adres satirina “about:mozilla” yazip enterlayin…

{ Open a Firefox tab or window, and type: “about:mozilla” in the URL field. You will get a message from the book of Mozilla:}

2 ) Gnome Yumurtalari :

Ayni anda Alt ve F2 tuslarina basip cikan yere “free the fish” yazin…Ya da ayni sekilde cikan yere “gegls from outer space” yazin..

{Hit ALT-F2 in your gnome desktop and type ‘free the fish’. Or try ALT-F2 and use ‘gegls from outer space’ for a bit of gnome gaming fun}

3 ) OpenOffice.org Star Wars :

OpenOffice.org SpreadSheet’i acin ve herhangi bir kutucuga
=Game(”StarWars”)
yazin ve entera basin.

{ Open up OpenOffice.org2 Calc, then enter:
=Game(”StarWars”)
in any cell and press enter! }

4 ) APT :

Terminalinizi acin ve atp-get yazip enterlayin 🙂 Altta “This APT has Super Cow Powers” yazdigini goreceksiniz…Daha sonra alttakileri sirasiyla yazip enterlayin

APT

  1. apt-get moo
  2. aptitude -v moo
  3. aptitude -vv moo
  4. aptitude -vvv moo
  5. aptitude -vvvv moo
  6. aptitude -vvvvv moo
  7. aptitude -vvvvvv moo

{ Anyone who has used a Debian based system is probably aware of APT’s supercow powers. If you type “apt-get” in a terminal and press ENTER, you’ll notice a message at the bottom that says “This APT has Super Cow Powers”. When you type “apt-get moo”, you’ll get a message asking “Have you mooed today?

If you try the same in aptitude, you get the message “There are no Easter Eggs in this program”. Of course, it’s lying! Try a “aptitude -vv moo”, then “aptitude -vvv moo”, increasing the v’s which usually means verbosity. Aptitude will eventually give up and give you an Egg }

Tags: , , , , , , , , ,

Wednesday, April 30th, 2008 Bash, Linux, OS, Programming Comments Off on Ubuntu altindaki Supriz Yumurtalar {Easter Eggs}

Toshiba u305 s5077 icin Chicony marka USB webcam kurulumu

Ilk olarak uvcvideo ve Video4Linux2 (v4l2_common) yuklumu konsoldan lsmod ile bakiyoruz..
Kod:
lsmod
komutuna beim bilgisayarimda karsilik gelen cikti

Kod:
Module Size Used by
ipv6 273892 10
i915 25856 2
drm 83348 3 i915
af_packet 24840 2
binfmt_misc 12936 1
rfcomm 42136 2
l2cap 26240 11 rfcomm
bluetooth 57060 4 rfcomm,l2cap
vboxdrv 61104 0
ppdev 10244 0
acpi_cpufreq 10568 2
cpufreq_userspace 5280 0
cpufreq_powersave 2688 0
cpufreq_conservative 8072 0
cpufreq_stats 7232 0
cpufreq_ondemand 9612 1
freq_table 5792 3 acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
battery 11012 0
ac 6148 0
dock 10656 0
container 5504 0
button 8976 0
sbs 19592 0
video 18060 0
nls_iso8859_1 5120 1
nls_cp437 6784 1
vfat 14080 1
fat 54300 1 vfat
sbp2 24072 0
parport_pc 37412 0
lp 12580 0
parport 37448 3 ppdev,parport_pc,lp
joydev 11328 0
snd_hda_intel 296352 4
snd_pcm_oss 43136 0
snd_mixer_oss 17792 1 snd_pcm_oss
snd_pcm 80388 3 snd_hda_intel,snd_pcm_oss
snd_page_alloc 11400 2 snd_hda_intel,snd_pcm
snd_hwdep 10372 1 snd_hda_intel
uvcvideo 48644 0
snd_seq_dummy 4868 0
compat_ioctl32 2304 1 uvcvideo
snd_seq_oss 34944 0
videodev 29312 1 uvcvideo
v4l1_compat 15364 2 uvcvideo,videodev
v4l2_common 18432 2 uvcvideo,videodev
ndiswrapper 185240 0
snd_seq_midi 9600 0
snd_rawmidi 25984 1 snd_seq_midi
snd_seq_midi_event 8448 2 snd_seq_oss,snd_seq_midi
snd_seq 54000 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 24452 3 snd_pcm,snd_seq
snd_seq_device 9484 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
sdhci 18828 0
iTCO_wdt 11940 0
iTCO_vendor_support 4868 1 iTCO_wdt
serio_raw 8068 0
psmouse 39952 0
mmc_core 28420 1 sdhci
intel_agp 25620 1
snd 56068 17 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_dummy,snd_seq_oss, snd_rawmidi,snd_seq,snd_timer,snd_seq_device
shpchp 34580 0
pci_hotplug 32704 1 shpchp
agpgart 35016 3 drm,intel_agp
soundcore 8800 1 snd
evdev 11136 5
ext3 133896 1
jbd 60456 1 ext3
mbcache 9732 1 ext3
sg 36764 0
sr_mod 17828 0
cdrom 37536 1 sr_mod
sd_mod 30336 4
ata_generic 8452 0
usbhid 29536 0
hid 28928 1 usbhid
ohci1394 36528 0
ieee1394 96312 2 sbp2,ohci1394
r8169 32260 0
ata_piix 17540 3
libata 125168 2 ata_generic,ata_piix
scsi_mod 147084 5 sbp2,sg,sr_mod,sd_mod,libata
uhci_hcd 26640 0
ehci_hcd 36492 0
usbcore 138632 6 uvcvideo,ndiswrapper,usbhid,uhci_hcd,ehci_hcd
thermal 14344 0
processor 32072 2 acpi_cpufreq,thermal
fan 5764 0
fuse 47124 1
apparmor 40728 0
commoncap 8320 1 apparmor

Genelde ikiside UbuntuStudio (Feisty) ve sonrasinda standart olarak yuklu geliyor…Eger yuklu degilse indirip kurmaniz gerekiyor….
uvcvideo http://mxhaard.free.fr/download.html adresinden indirilip kurulabilir…

Ne yazik ki v4l1 yada v4l2 modullerinin nasil kurulacagini bilmiyorum.Ben Ubuntu Gusty kullaniyorum ikiside standart geldi…
Ikinci olarak;
ekte verdigim luvcview programini indirip ordaki readme dosyasina gore kuruyoruz…
Basitce, Synaptic Paket yoneticisiyle (libsdl1.2-dev) bulup indiriyoruz yada konsoldan
Kod:
sudo apt-get install libsdl1.2-dev
deyip indiriyoruz…
ekteki dosyayi acip konsoldan actigimiz klasore gidiyoruz….
klasorun icindeyken
Kod:
sudo make
sudo make install

diyerek kuruyoruz….

simdi sira geldi kameramizi test etmeye…Konsoldan alttaki komutu verip bakiyoruz…
Kod:
luvcview -d /dev/video0 -f yuv

diger v4l2 programlarini yukleyerek (ekiga ve aMsn) kameranizi test edebilirsiniz….
ben birde cheese programini tavsiye ederim cok eglenceli bir program….
Kod:
sudo apt-get install cheese
deyip yukleyebilirsin
daha sonra kisaca konsoldan cheese yazip deneyebilirsiniz….
umarim isinize yaramistir…..

isinize yarayabilecek linkler :
http://ubuntuforums.org/showthread.php?t=280121
http://ubuntuforums.org/showthread.php?t=512059

Tags: , ,

Sunday, April 13th, 2008 Linux, OS Comments Off on Toshiba u305 s5077 icin Chicony marka USB webcam kurulumu