Code:
mount -o bind /media/disk1/pictures /home/user1/pictures mount -o bind /media/disk1/pictures /home/user2/pictures
Code:
/media/disk1/pictures /home/add1cker/pictures none defaults,bind 0 0
Software Developer, Programming, Web resources and entertaiment. Desarrollo de software, programaciĆ³n, recursos web y entretenimiento.
mount -o bind /media/disk1/pictures /home/user1/pictures mount -o bind /media/disk1/pictures /home/user2/pictures
/media/disk1/pictures /home/add1cker/pictures none defaults,bind 0 0
$sudo apt-get install freeglut3-dev
Distribution | Username | Password
---------------|------------|-------------
Debian Squeeze | pi | raspberry
Arch | root | root
QtonPi | root | rootme
Raspbian | pi | raspberry
OpenElec | root | openelec
Pidora | root | raspberrypi
RISC OS | n/a | n/a
raspbmc | pi | raspberry
2) add users
$sudo adduser username
$
usermod -aG sudo username
3) Ports
$lsof -nP -i | grep LISTEN
$netstat -tlpn | grep LISTEN
4) vncserver (reinstall, by default sometime doesn't works)
$sudo apt-get install tightvncserver
5) Firewalls
iptables -I INPUT -p tcp --dport 5900 -j ACCEPT iptables -I INPUT -p tcp --dport 5901 -j ACCEPT
Resources:
[1] https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart
[2] direct way https://www.shellhacks.com/how-to-grant-root-access-user-root-privileges-linux/
[3] vncserver https://quaintproject.wordpress.com/2013/03/24/establish-a-vnc-connection-to-your-raspberry-pi-from-a-linux-pc/
getchar_unlocked()
and putchar_unlocked()
for taking fast single character I/O.getchar()
and puchar()
repectively
$wget https://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/pip-8.1.2.tar.gz
$tar -xzvf pip-8.1.2.tar.gz
$cd pip-8.1.2
$sudo python setup.py install
export CC=path_of_gcc/gcc-version
export CXX=path_of_g++/g++-version
cmake path_of_project_contain_CMakeList.txt
make
OR
#Current version is 6, but we need to compile using another version (installed for sure)
$CC="gcc-4.9" CXX="g++-4.9" cmake /CMakeLists.txt
OR$cmake -G "Unix Makefiles" -DCMAKE_CXX_COMPILER=/usr/bin/g++ CMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local -DWITH_TBB=ON -DBUILD_NEW_PYTHON_SUPPORT=ON -DWITH_V4L=ON -DINSTALL_C_EXAMPLES=ON -DINSTALL_PYTHON_EXAMPLES=ON -DBUILD_EXAMPLES=ON -DWITH_QT=ON -DWITH_OPENGL=ON -DBUILD_FAT_JAVA_LIB=ON -DINSTALL_TO_MANGLED_PATHS=ON -DINSTALL_CREATE_DISTRIB=ON -DINSTALL_TESTS=ON -DENABLE_FAST_MATH=ON -DWITH_IMAGEIO=ON -DBUILD_SHARED_LIBS=OFF -DWITH_GSTREAMER=ON -DWITH_OPENMP=OFF -DWITH_CUDA=OFF -DBUILD_opencv_gpu=OFF ..mmap()
combines the functions of CreateFileMapping()
and MapViewOfFile()
qmake -spec macx-g++ x.pro
on Mac OS X to generate Makefileqmake x.pro
on linux to generate Makefile (default behaviour)qmake -spec win32-g++ x.pro
on Windows to generate Makefile[1] Diario/Seq https://apps.odoo.com/apps/modules/17.0/sequence_for_journal