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 MakefilelibGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
sudo apt-get purge nvidia* #This will remove your current nVidia driverssudo apt-get install --reinstall xserver-xorg-video-intel libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core sudo dpkg-reconfigure xserver-xorg #This should fix Xorgsudo update-alternatives --remove gl_conf /usr/lib/nvidia-current/ld.so.confsudo apt-add-repository ppa:xorg-edgers/ppa #provides the necessary repository sudo apt-get updatesudo apt-get install bumblebee-nvidia nvidia-319 nvidia-settings-319
#include <iostream>
#include <termios.h> //TCSANOW, ICANON, ..
#include <unistd.h> //STDIN_FILENO ..
#include <stdio.h> //getchar
using namespace std;
char getch(void)
{
struct termios oldattr, newattr;
char ch;
tcgetattr( STDIN_FILENO, &oldattr );
newattr = oldattr;
newattr.c_lflag &= ~( ICANON | ECHO );
tcsetattr( STDIN_FILENO, TCSANOW, &newattr );
ch = getchar();
tcsetattr( STDIN_FILENO, TCSANOW, &oldattr );
return ch;
}
char getche(void) //with ECHO
{
struct termios oldattr, newattr;
int ch;
tcgetattr( STDIN_FILENO, &oldattr );
newattr = oldattr;
newattr.c_lflag &= ~( ICANON );
tcsetattr( STDIN_FILENO, TCSANOW, &newattr );
ch = getchar();
tcsetattr( STDIN_FILENO, TCSANOW, &oldattr );
return ch;
}
int main(int argc,char *argv[])
{
char ch1=getch();
char ch2=getche();
cout << "\nFirst : " << ch1
<< "\nSecond: " << ch2 << endl;
return 0;
}
//g++ getchx.cpp -o getchx
$sudo alsa force-reload
restart device and check if sound is workin? if it doesnt do this:$sudo apt-get remove --purge alsa-base pulseaudio
$sudo apt-get install alsa-base pulseaudio
References:
$wget -c https://download3.vmware.com/software/player/file/VMware-Player-12.5.0-4352439.x86_64.bundle
$sudo chmod u+x VMware-Player-12.5.0-4352439.x86_64.bundle
$sudo ./VMware-Player-12.5.0-4352439.x86_64.bundle
$sudo add-apt-repository ppa:atareao/atareao$sudo apt-get update$sudo apt-get install cpu-gsudo add-apt-repository ppa:cpug-devs/ppa
sudo apt-get update
sudo apt-get install cpu-g
*create drives
$qemu-img create name .img size|M|G
$qemu-img create win98hda.img 400M
*resize driver
$qemu-img resize filename [+|-]size[K|M|G|T]
$qemu-img resize win98hda.img +600M
$gparted win98hda.img #for expand physically
$qemu [-boot ] -cdrom .iso [-m size]|128M -hda disk-name.img
$qemu -boot d -cdrom win98se.iso -m 512 -hda win98hda.img
other examples:
[1] install win98 using boot iso and installer iso (two disks)
$qemu-system-i386 -hda win98s2018.img -boot d -cdrom win98boot.iso -drive file=win98se.iso,index=3,media=cdrom
$qemu-system-i386 -hda win98s2018.img -boot c -cdrom win98boot.iso -drive file=win98se.iso,index=3,media=cdrom
$qemu-system-i386 -drive file=win98s2018.img,format=raw -m 512 #other way to run
apt-get install libglib2.0-dev zlib1g-dev
$./configure --target-list=i386-softmmu #for reduce time > 5hrs (normally)
$make
$sudo make install
https://b3n7s.github.io/update/2016/06/08/windows-xp-on-qemu.html$locate mod_mono.so $sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
$echo "deb http://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
$sudo apt-get update
$sudo apt-get install mono-devel
$sudo apt install libapache2-mod-mono
$sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
$echo "deb http://download.mono-project.com/repo/debian alpha main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
$sudo apt-get update
$sudo apt-get install mono-devel mono-complete ca-certificates-mono mono-xsp4 #take time
$sudo apt-get install monodevelop=5.10.0.871-0xamarin2 #[1]
May be you will get this message at create project:Access to the path “/etc/mono/registry” is denied, then
$sudo mkdir /etc/mono/registry $sudo chmod uog+rw /etc/mono/registry
$sudo apt install radiotray python-xdg
$winetricks corefonts eufonts lucida opensymbol tahoma cjkfonts
$winetricks vb6run
$winetricks mdac28
$winetricks msxml4 mfc42 jet40 native_oleaut32
$winecfg #set libraries for overwrite
$wine msiexec /i mysql-connector-odbc-5.1.13-win32.msi #choice best driver
$wine control
Claro - PerĆŗ [1] https://cuenta.claro.com.pe/DirectorioAbonadosMovil/servlet/directorioAbonados