006. lap

Debian csomag telepítése Ubuntu-ra

sudo dpkg -i csomag.deb

SAMBA find IP of share

sudo apt-get install samba-common-bin
nmblookup -S <SHARENAME>

SAMBA Symlinks

[global]
...
follow symlinks = yes
wide symlinks = yes
unix extensions = no

sudo service samba restart

Raspbian Samba server

Setup Samba server on Raspbian

Sendmail

Jenkins

GDM restart

sudo service lighdm restart

Mouse restart

sudo rmmod psmouse
sudo modprobe psmouse

Raspbian PostgreSQL server

PostgreSQL server on Raspbian

PostgreSQL select Text field

select convert_from(loread(lo_open(some-text-field::int, x'40000'::int), x'40000'::int),  'UTF8') from candidate;

PostgreSQL change default password

sudo -u postgres psql
\password postgres

PostgreSQL create user

CREATE USER name WITH PASSWORD 'password';

PostgreSQL remote access

postgresql.conf

listen_addresses = 'localhost,$LISTENING_IP'

pg_hba.conf

host    all             all             192.168.1.0/24          md5

sudo /etc/init.d/postgresql restart

Update Squeeze

wiki.debian.org

sudo apt-get install debian-archive-keyring
apt-get install debian-keyring

CentOS 7 VirtualBox

sudo yum install epel-release
sudo yum install dkms
sudo yum install kernel-devel
 
#sudo yum install gcc*
#sudo yum groupinstall "Development Tools"
 
sudo VBoxLinuxAdditions.run

CentOS YUM proxy

/etc/yum.config -> proxy=HTTP://{IP}:{PORT}
ahol IP és PORT a proxy adatai

VirtualBox mount shared folder

sudo usermod -a -G vboxsf $USER
sudo mount -t vboxsf share-name /home/toto

Docker

For Windows see boot2docker linux distro.

Docker on ubuntu 17.04

sudo apt install docker.io
sudo gpasswd -a ${USER} docker
sudo reboot

Tuleap on docker

See Howto install Tuleap on docker.

Proxy Settings for boot2docker

Add enviroment variables to /var/lib/boot2docker/profile

vi /var/lib/boot2docker/profile
export HTTP_PROXY=http://proxyhost:proxyport
export HTTPS_PROXY=http://proxyhost:proxyport
:wq
/etc/init.d/docker restart

Proxy Settings for Kitematic

Add Windows enviroment variables:

http_proxy=http://proxyhost:proxyport
https_proxy=http://proxyhost:proxyport

List containers

docker ps -a

Exec command

docker exec -ti <container_name> cat /data/root/.tuleap_passwd

Remove stopped containers

docker rm `docker ps -aq -f status=exited`

UTC - localtime (problem with parallel OS)

timedatectl set-local-rtc 1 --adjust-system-clock

How to fix

Hálózat felderítés

sudo netdiscover

Memória információk

how-to-determine-the-amount-of-ram-slots-in-use

Bluetooth file fogadó szolgáltatás Ubuntu 17.04-en

sudo apt-get install obex-data-server gnome-user-share
gnome-file-share-properties
 
systemctl --user start obex
sudo systemctl --global enable obex
 
hcitool scan
bluetooth-sendto --device=[device-id] filename

wdfs (WebDav) fájlrendszer csatolása

sudo apt-get install checkinstall libfuse-dev libneon27 libneon27-dev
sudo apt-get install python-fuse
 
#create deb package
sudo apt-get install libglib2.0-dev
wget http://noedler.de/projekte/wdfs/wdfs-1.4.2.tar.gz
tar xzvf wdfs-1.4.2.tar.gz
cd wdfs-1.4.2
./configure
sudo checkinstall
 
#install deb package
sudo dpkg -i wdfs_1.4.2-1_*.deb
 
wdfs http://[address]/webdav/ ~/gnote-share/

Wireshark

sudo apt-get install wireshark
gksu wireshark

Synaptic Ubintu 17.10

xhost +si:localuser:root
sudo synaptic