Sunday, July 26, 2020

debian 10 - Activate tap to click on touchpad?

Debian Stretch and Buster (updated)

Remove the xserver-xorg-input-synaptics package. (important)

# apt remove xserver-xorg-input-synaptics

Install xserver-xorg-input-libinput:

# apt install xserver-xorg-input-libinput

In most cases, make sure you have the xserver-xorg-input-libinput package installed, and not the xserver-xorg-input-synaptics package.

As root:

create /etc/X11/xorg.conf.d/

mkdir /etc/X11/xorg.conf.d

Create the 40-libinput.conf file:

echo 'Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "Tapping" "on"
EndSection' > /etc/X11/xorg.conf.d/40-libinput.conf

restart your DM; e,g:

# systemctl restart lightdm

or

# systemctl restart gdm3

Debian wiki : Enable tapping on touchpad

Add the user to the sudo group

/sbin/usermod -aG sudo username

in debian10 /sbin is needed

debian 10 apt - The repository does not have a Release file



solution

deb [trusted=yes]
see last line



# deb cdrom:[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 xfce-CD Binary-1 20200509-10:26]/ buster main 


deb http://security.debian.org/debian-security/ buster/updates main
deb-src http://security.debian.org/debian-security/ buster/updates main

# buster-updates, previously known as 'volatile'
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.

deb http://deb.debian.org/debian/ buster  contrib main    
deb-src http://deb.debian.org/debian/ buster main contrib    

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

deb [trusted=yes] file:///home/ayush/OS/apt/debian_10_files/ buster contrib main
# deb-src [trusted=yes] file:///home/ayush/OS/apt/debian_10_files/ buster contrib main




























linux debian 10 buster issue - command usermod not found ?

root@toshayu:/home/ayush# /sbin/user

it is inside sbin

Tuesday, October 22, 2019

gtk-java issues with old

There have been quite a few changes in Gtk3. 

There is no member window exposed as part of GtkWidget anymore,

 the members have been moved to GtkWidgetPrivate which is an opaque structure so you cannot access the members directly from GtkWidget

You will have to use accessor function, in this case where you need window member of GtkWidget 

you can use gtk_widget_get_window, but that may not fix 

 Please note that the expose_event signal has been replaced with draw signal 

so you will need to update the function which is actually drawing appropriately 

 Please refer this link to see the list of changes needed to switch to Gtk3. You can refer source provided by gtk-demo application or demos/gtk-demo from Gtk3 source code to get sample code.
Regarding image not being shown in case of Gtk2, if you are working with image sample, please make sure that the image file is available in the path mentioned in the source.

Menu



Hoverable Dropdown

Move the mouse over the button to open the dropdown menu.

Maven vs Gradle

Maven vs Gradle


Ant (2000 release) did not had downRepo feature (ability to download dependencies over the network)

Maven (2004 release) has downRepo feature.
 Ant added downRepo feature  through Ivy

Gradle  (2012 , google) is based on Groovy like thing called DSL.
gradle scripts are shorter and cleaner than Ant and Maven


Maven



Gradle