Permisos root/admin a usuaris Linux/Proxmox

Bones, si el que voleu es afegir usuaris amb permisos full a un proxmox:

Un cop creats al proxmox desde la mateixa interfície web com a user@pam, entreu per consola i feu:

pveum groupadd admin -comment “System Administrators”

pveum aclmod / -group admin -role Administrator

pveum usermod user@pam -group admin

Penseu a canviar user@pam per el vostre usuari.

Si el voleu afegir a un linux, podeu instal.lar el paquet sudo (apt-get install sudo) i afegir usuaris admins:

useradd -m -s /bin/bash -G sudo user

passwd user

Salut

Share

Wireshark a Ubuntu

Per si us cal esnifar alguna cosa….

sudo apt-get install wireshark
sudo groupadd wireshark
sudo usermod -a -G wireshark YOUR_USER_NAME
sudo chgrp wireshark /usr/bin/dumpcap
sudo chmod 750 /usr/bin/dumpcap
sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap
sudo getcap /usr/bin/dumpcap
Share

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

Instal.lar Aircontrol 2 en un debian 7

Entrem com sudo

apt-get update; apt-get install openjdk-7-jre traceroute iperf
wget http://www.ubnt.com/downloads/aircontrol2/aircontrol-v2.0–ubuntu.deb
dpkg -i aircontrol-v2.0–ubuntu.deb

Canvier l’enllaç per la versió que us interessi… jo he provat la beta 15

Si voleu passar les dades d’una màquina a una altre heu de passar els arxius de la carpeta /opt/Ubiquiti/AirControl2/lib/db

Salut !!

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