How to set super key win key like shortcut for kde menu or other kubuntu launcher ONLY PLASMA5.8


Hello now that i am going to ONLY PLASMA5.8  series i am updating some articles and here it is you wanna just press the silly WIN key and get the kde menu on the screen ?!!

here it is STEP 1

kate ~/.config/kwinrc

now add this shit 😀

[ModifierOnlyShortuts]
Meta=org.kde.plasmashell,/PlasmaShell,org.kde.PlasmaShell,activateLauncherMenu
Shift=
Alt=
Control=

CLOSE KWIN BEFORE OR IT WILL DELETE THE KWINRC FILE !

some interesting thing you could just link shift withfor example

 qdbus  org.kde.krunner /App display

STEP 2 RESTART KWIN

just do in launcher (ALT F2 )

kwin_x11 –replace

BASH: How to check if your router has a door open


You want to check if your router has correctly open a door ?

k dude here we go

the fist get your ip from internet
the second command uses NMAP , sudo apt-get install nmap

it checks a range of port UDP and TCP from 20000 to 20001
brainless should not try this at home 😀 but with UDP THERE IS A PROBLEM WITH THIS CODE SO SEE THE NEXT

ip=$(dig +short myip.opendns.com @resolver1.opendns.com); nmap -p U:20000-20001,T:20000-20001 $ip 

USE ROOT USER TO RUN THIS :d

 ip=$(dig +short myip.opendns.com @resolver1.opendns.com); nmap -T5 -A -p 20000 -sU $ip

multi Multiple mouse kubuntu linux


ORIGINAL ARTICLE FROM  http://ao2.it/en/blog/2010/01/19/poor-mans-multi-touch-using-multiple-mice-xorg

i will save the stuff here just in case the link will not be accessible

on kubuntu you can use multi mouse easily
yuu need just to do :

  • get the id for the new mouse  with xinput list command
  • add the new pointer
  • link the new pointer with the new mouse
  • eventually map the buttons of the new mouse differently

so FOR EXAMPLE

xinput list

Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ HID 04f3:0103 id=11 [slave pointer (2)]
⎜ ↳ Logitech USB Optical Mouse id=12 [slave pointer (2)]               MY MOUSE NUMBER 1 
⎜ ↳ SynPS/2 Synaptics TouchPad id=16 [slave pointer (2)]
↳ USB OPTICAL MOUSE id=21 [slave pointer (2)]                           THE NEW MOUSE 
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Sony Vaio Keys id=7 [slave keyboard (3)]
↳ Video Bus id=8 [slave keyboard (3)]
↳ Power Button id=9 [slave keyboard (3)]
↳ HID 04f3:0103 id=10 [slave keyboard (3)]
↳ UVC Camera (046d:081b) id=13 [slave keyboard (3)]
↳ USB2.0 Camera id=14 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=15 [slave keyboard (3)]

create a new cursor

xinput create-master newmousename

now how you should see more lines just like these

⎡ newmousename pointer id=17 [master pointer (18)]
⎜ ↳ newmousename XTEST pointer id=19 [slave pointer (17)]
⎣ newmousename keyboard id=18 [master keyboard (17)]
↳ newmousename XTEST keyboard id=20 [slave keyboard (18)]

 

attach the device id 21 in my case to the new cursor

xinput reattach 21 “newmousename pointer”

map if you want differently the new mouse this step is not required of course if you are satisfied with

xinput set-button-map 12 1 2 3

if you want delete the new pointer just do

xinput remove-master 17

MAKE SURE YOU REMOVE THE MASTER AND NOT THE SLAVE :d