Instal.lar samba a un linux

A vegades cal compartir alguna carpeta del servidor per tots els equips de casa de forma senzilla…. ho farem amb samba

apt-get install samba

mkdir public

chmod 777 public/

nano /etc/samba/smb.conf

On modifiquem el seguent:

workgroup = REDCASA

security = share

i al final del fitxer afegim la parrafada…..

[comun]

path = /public/

read only = no

security = share

null password = yes

case sensitive = no

comment = Carpeta publica accesible desde Web

guest ok = yes

browseable = yes

umask = 000

Reiniciem el servei….

service samba restart

Ja ho tindriem, ara tansols cal posar al client linux:

smb://ipdelservidor

o a un windows afegir la carpeta de xarxa:

net use Z: \\ipdelserver\nombrecarpetacompartida

 

 

Share

Unifi Video i els ports utilitzats en diferents versions NVR

UniFi Video 3.1.x

Between Camera & NVR

  • 22 – SSH
  • 6666 – Live FLV for incoming Gen2 camera streams
  • 7080 – WebSockets/HTTP
  • 7443 – WebSockets/HTTPS

Between Client & NVR

  • 7080 – HTTP web UI & API
  • 7443 – HTTPS web UI & API
  • 7445 – Video over HTTP
  • 7446 – Video over HTTPS
  • 7447 – RTSP re-streaming via Controller

UniFi Video 3.0.x

  • 1935, by user (RTMP video)
  • 7443, by user (HTTPS), by camera (HTTPS)
  • 7080, by user (HTTP), by camera (HTTP)
  • 6666, by camera (video push)

airVision 2.x *

The following ports are used on airVision host:

  • 1935 (TCP), by user, RTMP (Video)
  • 7443 (TCP), by user, HTTPS
  • 7080 (TCP), by user, HTTP
  • 123 (UDP), by airCam, NTP

The following ports are used on airCam[X,Y,Z] device:

  • 554 (TCP), by airVision, RTSP
  • 22 (TCP), by airVision, SSH

* External or remote access using third-party applications (i.e. smart-phones apps) also requires an airVision account used for authentication enabled with PKI Key access (see airVision User Accounts tab for details) before any video data is allowed to be rendered (viewed) outside of the airVision management interfaces.
airVision 1.x

NVR to Camera: ports on camera

  • 80 (TCP), HTTP
  • 554 (TCP), RTSP

airVision to Camera: ports on camera

  • 80 (TCP), HTTP
  • 554 (TCP), RTSP
  • 10001 (UDP), UBNT Discovery Protocol (not necessary if/when devices are managed by hand)

airVision to NVR: ports on NVR

  • 7079 (TCP), HTTP
  • 9112 (UDP/TCP), UBNT Discovery Protocol

Browser to airVision management console: ports on airVision server (Forward these ports on firewall(s) to access airVision remotely.)

  • 7443 (TCP), HTTPS
  • 7080 (TCP), HTTP
  • 843 (TCP), Adobe Flash Policy
Share

Crear llançadors al escriptori d’Ubuntu

Si voleu fer un estic “accés directe” tansols cal instal.lar el paquet

sudo apt-get install gnome-panel

Llavors podeu fer els que volgueu amb la comanda:

gnome-desktop-item-edit ~/Escriptori --create-new

I busqueu el programet dins /usr/bin/

També podeu fer que us llanci una aplicació com a root posant suda al davant

Salut !!

 

 

 

Share

Instal.lar impressora Ricoh SP204 SFN amb Linux

Ricoh no dona suport a Linux… doncs cal que ens espavilem.

Us deixo material per poder-ho fer aquí

git clone https://github.com/madlynx/ricoh-sp100

Consell instal.lar els seguents paquets: cups-driver-gutenprint git, jbigkit-bin, printer-driver-foo2zjs

1) Open terminal, execute sh check-requirements script, you should see, that
all required components are correctly installed and available.

2) Install unavailable components

3) Copy `pstoricohddst-gdi` to cups’ filters directory (usually
/usr/lib/cups/filter).

4) Make sure it is executable by lp user and owned by root:root (i.e.
chown root:root pstoricohddst-gdi)

5) Add printer through CUPS’ web interface (usually
http://localhost:631/), click ‘Choose file’ and select one of provided PPD-files

6) Print!

A part d’això he tingut problema de permisos que he tingut que canviar amb:

chmod 755 /usr/lib/cups/filter/pstoricohddst-gdi

També hem faltava un paquet:

apt-get install jbigkit-bin

Sort !!!

Share

Instal.lar impressora brother DCP-J152W al linux

Bones, acabo de canviar la impressora per una barateta i compatible amb tot el que faig servir…. linux, cups, android, wifi…

Vaig segir les intruccions de la plana del fabricant sense problemes

Step1. Download the tool.(linux-brprinter-installer-*.*.*-*.gz)

The tool will be downloaded into the default “Download” directory.
(The directory location varies depending on your Linux distribution.)
e.g. /home/(LoginName)/Download

Step2. Open a terminal window and go to the directory you downloaded the file to in the last step.

Step3. Enter this command to extract the downloaded file:

Command: gunzip linux-brprinter-installer-*.*.*-*.gz

Step4. Get superuser authorization with the “su” command or “sudo su” command.

Step5. Run the tool:

Command: bash linux-brprinter-installer-*.*.*-* DCP-J152W

 

Share

Comandes bàsics per Unifi’s

A vegades ens convé accedir per ssh als unifis per fer un reset de fàbrica perquè no els podem adoptar…

  • Reset AP to Factory Default
    syswrapper.sh restore-default
  • Manually Upgrade AP
    syswrapper.sh upgrade http://ip-of-controller:8080/dl/firmware/BZ2/2.3.8.1597/firmware.bin
  • Enter CLI
    mca-cli
  • Set Inform Server
    set-inform http://ip-of-controller:8080/inform

 

Share

Ressetejar la PRAM i la SMC del teu Macbook Air

Els Macs també fallen !! jajaja quin fart !!!

Tot d’una l’altre dia hem va deixar de funcionar el trackpad del macbook air i de tant en tant el teclat feia el tonto…

Primer pots provar de fer reset a la PRAM (Parameters Ram)

  • Reiniciar el Mac, e inmediatament abans no encengui cliques al mateix temps les tecles CMD + Alt + P + R

Si es fa be has d’escolar dues vegades el pito de inici.

Si amb això no ho soluciones pots provar el que hem va funcionar…

Solució: Ressetejar la SMC (System manager controller) diguem que es on guarda totes les configuracions del teclat, pad, etc….

  • Apagar PC
  • Connecta l’adaptador de corrent
  • Mantenir pitjat: Majúscules + Control + Option Alt + Boto d’ences al mateix temps uns segons
  • Lliberar les tecles i encendre el Mac com sempre…

Amb això hauries de solventar gran part dels problemes de configuracio corrumputs

Salut !!

 

Share