TeamViewer Daemon is not running

Nakon instalacije TeamViewera 8 na openSuSE12.2 64bit  sve radi normalno. Možemo se spajati, paliti/gasiti aplikaciju i opet uspješno se spojiti prijatelju na ra?unalo.  Nakon restarta ra?unala TeamViewer nam otkazuje poslušnost i javlja poruku TeamViewer Daemon is not running, Please start teamviewerd and then restart TeamViewer.

Potrebno je pokrenuti donju komandu u terminalu i ponovno pokrenuti TeamViewer

/opt/teamviewer8/tv_bin/teamviewerd

Unos VMware Workstation licence kroz terminal

Unos nove VMware Workstation licence kroz GUI (Help>Enter Licence Key…) u verziji 9.0.x na openSuSE12.2 na mojem ra?unalu iz nekog razloga jednostavno nije mogu?e napraviti. Obzirom da nije upisana validna licenca nemogu se upaliti virtualne mašine. Dolje se nalazi komanda kojom se kroz terminal upisuje licenca u Workstation.

/usr/lib/vmware/bin/vmware-vmx-debug –new-sn XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

Umjesto XXXXX-XXXXX-XXXXX-XXXXX-XXXXX stavite svoju licencu.

Izvor: https://wiki.archlinux.org/index.php/VMware

Metapixel – Izrada mozaika

Komanda za kreiranje umanjenih slika (tiles) koje ?e služiti za izradu mozaika po uzoru na original sliku:

metapixel-prepare -r /home/korisnik/putanja/do/slika/za/mozaik/ male_slike –width=64 –height=64

Korišteni switchevi:

  • -r metapixel-prepare prolazi rekurzivno kroz podirektorije /home/korisnik/putanja/do/slika/za/mozaik/
  • “male_slike” je direktorij u koji ?e se smjestiti sve umanjene slike tokom ove pripreme. Mapa se ne kreira automatski i mora postojati unaprijed pripremljena.
  • –width= i –height= su dimenzije umanjenih slika (tiles). Optimalno bi bilo da ne budu ve?e od 128×128 piksela.

Napomena: Metapixel prepoznaje samo JPEG, PNG i GIF datoteke.

Primjer komande za generiranje mozaika:

metapixel –library male_slike –metapixel mozaik_master.jpg mozaik001_scale1.jpg -s 1
metapixel –library male_slike –collage mozaik_master.jpg mozaik001_scale2.jpg -s 2

Korišteni switchevi:

  • –library male_slike ovdje odabiremo direktodij gdje u pohranjene umanjene slike
  • –metapixel ili –collage služe za generiranje mozaika ili kolaža, osobno preferiram switch metapixel jer mi on generira mozaik
  • mozaik_master.jpg je ime originalne slike na temelju koje želimo napraviti mozaik u datoteku npr. mozaik001_scale2.jpg
  • -s 2 je primjer za pove?avanje mozaika u skali 2:1 u odnosu na originalnu sliku

Izvori:

  • http://www.complang.tuwien.ac.at/schani/metapixel/
  • http://blogs.pcworld.co.nz/pcworld/tux-love/2009/09/metapixel_magic.html
  • http://doc.ubuntu-fr.org/metapixel

CheckPoint SNX na openSuSE 12.2

Za uspješno pokretanje CheckPoint SNX (SSL Network Extender) on openSuSE 12.2 64bit potrebno je instalirati nekoliko dodatnih paketa na sistem.

Kako piše na službenoj stranici https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk65210 openSuSE 12.2 32 i 64 bitna verzija OS-a je podržana verzija Linux-a, ali paketa compat-libstdc++ (compat-libstdc++.i586) na OS 12.1 jednostavno nema nego je potrebno instalirati pakete compat-openssl097g koji je zadužen za Secure Sockets and Transport Layer Security.

Popis paketa potrebnih za SNX:

  • java-1_7_0-openjdk
  • compat-openssl097g
  • compat-openssl097g
  • compat-openssl097g-32bit
  • pam-32bit
  • pam-modules
  • pam-modules-32bit

Sve to u jednom potezom možemo instalirati sljede?om komandom:

sudo zypper in compat-openssl097g compat-openssl097g-32bit pam-32bit pam-modules pam-modules-32bit java-1_7_0-openjdk

ifconfig vs ip

ifconfig vs ip

The command /bin/ip has been around for some time now. But people continue using the older command /sbin/ifconfig. Let’s be clear: ifconfig will not quickly go away, but its newer version, ip, is more powerful and will eventually replace it.

The man page of ip may look intimidating at first, but once you get familiar with the command syntax, it is an easy read. This page will not introduce the new features of ip. It rather features a side-by-side comparison if ifconfigand ip to get a quick overview of the command syntax.

Show network devices and configuration 

ifconfig
ip addr show
ip link show

Enable a network interface 

ifconfig eth0 up
ip link set eth0 up

A network interface is disabled in a similar way:

ifconfig eth0 down
ip link set eth0 down

Set IP address 

ifconfig eth0 192.168.0.77
ip address add 192.168.0.77 dev eth0

This was the simple version of the command. Often, also the network mask or the broadcast address need to be specified. The following examples show the ifconfig and ip variants.

Needless to say that the netmask can also be given in CIDR notation, e.g. as 192.168.0.77/24.

ifconfig eth0 192.168.0.77 netmask 255.255.255.0 broadcast 192.168.0.255
ip addr add 192.168.0.77/24 broadcast 192.168.1.255 dev eth0

Delete an IP address 

With ip it is also possible to delete an address:

ip addr del 192.168.0.77/24 dev eth0

Add alias interface 

ifconfig eth0:1 10.0.0.1/8
ip addr add 10.0.0.1/8 dev eth0 label eth0:1

ARP protocol 

Add an entry in your ARP table.

arp -i eth0 -s 192.168.0.1 00:11:22:33:44:55
ip neigh add 192.168.0.1 lladdr 00:11:22:33:44:55 nud permanent dev eth0

Switch ARP resolution off on one device

ifconfig -arp eth0
ip link set dev eth0 arp off

Skidanje web sajta kroz CLi sa wget

Ova komanda slika web sajt na adresi www.website.hr/upute/.

wget –recursive –no-clobber –page-requisites –html-extension –convert-links –restrict-file-names=windows –domains websajt.hr –no-parent www.websajt.hr/upute/

Opis opcija koje su korište redom:

  • –recursive: skini cijeli websajt
  • –no-clobber: nemoj prepisati ve? skinute datoteke (u slu?aju da je skidanje prekinuto i ponovno pokrenuto)
  • –page-requisites: skini sve komponente koje ?ine stranicu (slike, CSS, js i ostalo)
  • –html-extension: snimi datoteke sa .html nastavkom/ekstenzijom
  • –convert-links: pretvori linkove da su funkcionalni i lokalno korištenje (off-line)
  • –restrict-file-names=windows: promijeni imena datoteka da rade ispravno u Windows-ima
  • –domains websajt.hr: nemoj pratiti linkove koji nisu na domeni
  • –no-parent: nemoj pratiti linkove izvan direktorija upute/

sys-unconfig: Reconfigure the System Upon Next Boot

I can use unconfigure command on a previously configured Solaris Unix box and leave it in an unconfigured state. How do I unconfigure CentOS Linux OR RHEL 6.x on HP server. How do I reconfigure the system upon next boot?

You can use sys-unconfig command whoch provides a simple method of reconfiguring a system in a new environment. Upon executing sys-unconfig will halt your system, and run the following configuration programs at boot:

  1. Change the root password.
  2. Reconfigure networking / routing.
  3. Reconfigure time / date / time zone etc.
  4. Reconfigure Keyboard and mapping.
  5. Reconfigure system authentication resources.
  6. Reconfigure system runlevel.
  7. Reconfigure system services.

Type the following command as root user. Warning: do not type the following command on a production server for just testing purpose. The system will go down immediately:

# sys-unconfig

This command will create a file called /.unconfigured. The presence of this file will cause /etc/rc.d/rc.sysinit to run the programs mentioned above. Also, all persistent rules will be deleted from /etc/udev/rules.d/.

Izvor: http://www.cyberciti.biz/faq/redhat-rhel-centos-fedora-linux-sys-unconfig-command/

Kako snimiti na brzaka audio stream

Kako najednostavnije krenuti sa snimanjem streama sa neke web adrese? Na Linuxu nam stoji na rasploaganju program mplayer.

mplayer mms://xxx.x.hostname:port1234/path -nocache -ao pcm:file=recstream.wav -vo null -vc dummy

Par primjera snimanja audio streama Radio Samobor

mplayer http://85.94.70.42:8000 -nocache -ao pcm:file=radio_samobor_stream.wav -vo null -vc dummy

mplayer http://85.94.70.42:8000 -nocache -ao pcm:file=kidesign_radio_samobor.wav -vo null -vc dummy

Ukoliko želite snimati stream bez nadzora pogledajte odli?nu skriptu na http://linuxgazette.net/183/brownss.html (Unattended stream recording with MPlayer)

 

Konverzija wav u ogg

sox kidesign_radio_samobor.wav kidesign_radio_samobor.ogg

Preslušavanjesa sox komandom play

play kidesign_radio_samobor.wav

play kidesign_radio_samobor.ogg

ili izravno sa mplayer

mplayer kidesign_radio_samobor.ogg