I installed a new debian 8.6 from a CD on an already partitioned hdd. The disk is partitioned as
/dev/sda1 / /dev/sda5 /home
so I could reformat only the root filesystem keeping the files of the users.
adduser --no-create-home --home /home/edo edo chown -R edo:edo /home/edo service apache2 restart
Follow the directions from DebianWiki.
apt-get install apache2 php5 a2enmod userdir chgrp -R www-data /home/edo/public_html/
Follow this link.
I installed the amd64 architecture. It may be useful to install a multiarch enviroment (especially for Android development) Sometimes it may happen that files on the hard disk cannot be executed with a confusing message file not found
. Even if they are there.
dpkg --add-architecture i386 apt-get update apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386
Developing on a device. Changes needed to make Android studio work: the above mentioned multiarch,
usermod -a -G plugdev edo
Create a /etc/udev/rules.d/51-android.rules files with this content
#Acer SUBSYSTEM==usb, SYSFS{idVendor}==0502, MODE=0664, GROUP=plugdev #ASUS SUBSYSTEM==usb, SYSFS{idVendor}==0b05, MODE=0664, GROUP=plugdev #Dell SUBSYSTEM==usb, SYSFS{idVendor}==413c, MODE=0664, GROUP=plugdev #Foxconn SUBSYSTEM==usb, SYSFS{idVendor}==0489, MODE=0664, GROUP=plugdev #Garmin-Asus SUBSYSTEM==usb, SYSFS{idVendor}==091e, MODE=0664, GROUP=plugdev #Google SUBSYSTEM==usb, SYSFS{idVendor}==18d1, MODE=0664, GROUP=plugdev #HTC SUBSYSTEM==usb, SYSFS{idVendor}==0bb4, MODE=0664, GROUP=plugdev #Huawei SUBSYSTEM==usb, SYSFS{idVendor}==12d1, MODE=0664, GROUP=plugdev #K-Touch SUBSYSTEM==usb, SYSFS{idVendor}==24e3, MODE=0664, GROUP=plugdev #KT Tech SUBSYSTEM==usb, SYSFS{idVendor}==2116, MODE=0664, GROUP=plugdev #Kyocera SUBSYSTEM==usb, SYSFS{idVendor}==0482, MODE=0664, GROUP=plugdev #Lenevo SUBSYSTEM==usb, SYSFS{idVendor}==17ef, MODE=0664, GROUP=plugdev #LG SUBSYSTEM==usb, SYSFS{idVendor}==1004, MODE=0664, GROUP=plugdev #Motorola SUBSYSTEM==usb, SYSFS{idVendor}==22b8, MODE=0664, GROUP=plugdev #NEC SUBSYSTEM==usb, SYSFS{idVendor}==0409, MODE=0664, GROUP=plugdev #Nook SUBSYSTEM==usb, SYSFS{idVendor}==2080, MODE=0664, GROUP=plugdev #Nvidia SUBSYSTEM==usb, SYSFS{idVendor}==0955, MODE=0664, GROUP=plugdev #OTGV SUBSYSTEM==usb, SYSFS{idVendor}==2257, MODE=0664, GROUP=plugdev #Pantech SUBSYSTEM==usb, SYSFS{idVendor}==10a9, MODE=0664, GROUP=plugdev #Philips SUBSYSTEM==usb, SYSFS{idVendor}==0471, MODE=0664, GROUP=plugdev #PMC-Sierra SUBSYSTEM==usb, SYSFS{idVendor}==04da, MODE=0664, GROUP=plugdev #Qualcomm SUBSYSTEM==usb, SYSFS{idVendor}==05c6, MODE=0664, GROUP=plugdev #SK Telesys SUBSYSTEM==usb, SYSFS{idVendor}==1f53, MODE=0664, GROUP=plugdev #Samsung SUBSYSTEM==usb, SYSFS{idVendor}==04e8, MODE=0664, GROUP=plugdev #Sharp SUBSYSTEM==usb, SYSFS{idVendor}==04dd, MODE=0664, GROUP=plugdev #Sony Ericsson SUBSYSTEM==usb, SYSFS{idVendor}==0fce, MODE=0664, GROUP=plugdev #Toshiba SUBSYSTEM==usb, SYSFS{idVendor}==0930, MODE=0664, GROUP=plugdev #ZTE SUBSYSTEM==usb, SYSFS{idVendor}==19d2, MODE=0664, GROUP=plugdev
chmod a+r /etc/udev/rules.d/51-android.rules
Compiz for debian 10 https://packages.debian.org/buster/compiz.
The filters below have made to the compiz code base so they are available out-of-the-box in Debian 10!!! What you need to do to enable it is to instruct compiz to use the two filters with the Colour filter
/usr/share/compiz/filters/swap-hue /usr/share/compiz/filters/negative
For Debian 9 https://compiz-debian.tuxfamily.org/
I use the special color filter to map dark into light colors and viceversa.
To achieve it one should first use a negative filter followed by a swap-hue filter.
!!ARBfp1.0 TEMP temp, neg; TEX temp, fragment.texcoord[0], texture[0], RECT; RCP neg.a, temp.a; MAD temp.rgb, -neg.a, temp, 1.0; MUL temp.rgb, temp.a, temp; MUL temp, fragment.color, temp; MOV result.color, temp; END
!!ARBfp1.0 TEMP output, tmp, YPbPr; TEX output, fragment.texcoord[0], texture[0], RECT; MOV tmp, output; DP3 YPbPr.x, tmp, {0.333, 0.333, 0.333, 1}; SUB YPbPr.y, YPbPr.x, tmp.b; SUB YPbPr.z, YPbPr.x, tmp.r; ADD tmp.r, YPbPr.x, YPbPr.z; ADD tmp.b, YPbPr.x, YPbPr.y; SUB tmp.g, YPbPr.x, YPbPr.z; SUB tmp.g, tmp.g, YPbPr.y; MOV result.color, tmp; END
xrandr --output LVDS1 --brightness 0.8
redshift -O 3500
The NAS is on 192.163.2.13 with SMB shares. Add this line to /etc/fstab
192.168.2.13:/mnt/HD/HD_a2 /mnt/share nfs rw,hard,intr,user 0 0
Depends on package nfs-common
Some info to mount the nas
#//192.168.2.13/Volume_1/ /mnt/share cifs uid=0,guid=0,rw 0 0 192.168.2.13:/mnt/HD/HD_a2 /mnt/share nfs rw,hard,intr,user 0 0
Go to https://localhost:631
and add a printer.
apt install network-manager-pptp-gnome
and create a new PPTP vpn connection. Specify PPP encryption (MPPE)
and disable all data compression.