The officially official Devuan Forum!

You are not logged in.

#51 Re: Desktop and Multimedia » New (ascii from jessie) install, mouse not working » 2017-07-03 01:35:47

my emphasis added:

ghaverla wrote:

Added evdev to modprobe file.  Evdev is loaded (was before too, but I didn't know when). Gpm works on the console.  Modinfo evdev shows same thing you have (I was going to say author changed to Admiral Pavel Checkov, United Federation of Planets).

he he..
The mouse works on console !
Well that is excellent
     1. hardware / usb  OK
     2. leaves X and auth system to investigate.

Try to remove this from the journey.
Which I will step through in a separate post  if needs be
(in fact the previously mentioned next post smile

Essentially

kill the login manager  (we don't want no broker at the moment)
$ startx

       X has mouse ?
1 yes  ||  2 no

2  If no
    try again as root 
         If still NO mouse cursor then try
         apt-get install --reinstall xutils

1  If  yes
     then its quite probably permissions based
     Perhaps an auth step is broken ?
    or some console-kit foobar  tracking thing is not playing well
    Quite frankly it all gets like spaghetti voodoo at X logins with helpful nonsense breaking all over the place.

Try  installing lightdm instead of slim  ... it has more auth backends

IF *that* makes  difference

Please tell this list and  bug report slim .

Module evbug does not exist here.

Its a scary and noisy thing best not seen smile

#52 Re: Desktop and Multimedia » New (ascii from jessie) install, mouse not working » 2017-07-03 01:06:17

:::: Its less likely this is a permission thing for  $USER (you) under X  ::::
(Though maybe its one of those console-kit pieces of helpful rolling breakage)
The  include snippet _may_ help ..

However  there may be something here and you can test (see: next rambling post)

there were quite a few things being mounted, that were never in fstab.  Udev is one of them.

I was checking that input was working and devtmpfs was _ensured_ .

Which should mean "input" is working under /dev/ etc.
(not relying on say X to start something or  some other helpful complicator.)

For clarity 
I should have said:
What does mount say about option mode=nnn  and devtmpfs or maybe
(little old school )

cat /proc/mounts | grep devtmpfs
ls -lah /dev/input/mice

mode 755 for the first
notice group access for the ls -lah
But given you have  a /dev tree the above is a wander off to nowhere as :


I'm not in the group input ... mouse works with X
Or plugdev ... ditto

So perhaps another mechanism is at work.
You can check "id"  and add yourself to plugdev and netdev

FWIW

## /etc/X11/xorg.conf.d/30-mouse.conf

Section "InputDevice"
        identifier      "Mouse0"
        driver          "mouse"
        option          "AutoServerLayout"      "on"

        # /dev/input/mice will provide support for hotpluging mouse.
        # >>>Without needs to restart X server.<<<< 
        option  "device"        "/dev/input/mice"
        #option "device"       "/dev/input/mouse0" 
        #option "device"        "/dev/input/psaux"
        # To config fancy stuff like disable acceleration,
        # put into your .xinitrc something like 'xset m 1 1 &'
EndSection

(And the "AutoServerLayout on" probably  makes that reliable )
(also the psaux  is not likely smile

#53 Re: Desktop and Multimedia » New (ascii from jessie) install, mouse not working » 2017-07-02 16:05:31

I am running Linux 4.11.6-lenny i686 GNU/Linux 
I don't think the mouse issue is _directly_ kernel version related  though I still use evdev
(and my usb or ps2 mouse is working)

The whole mouse thing is (these days) a pain again...
Its the only thing that will reliably 100% fail with eudev vdev rather than udev here at least.

Maybe something here will help:
make sure you have an entry that achieves something like this in /etc/fstab.

# this "udev" gets mounted again (?) by /etc/init.d/udev
# and could probably not be here. the "udev" is really just sugar
udev  /dev   devtmpfs rw,nosuid,relatime,mode=755     0  0

The kernel exports userspace events to that tree.
udev and are supposed to just hand this stuff out when  it alters.

try restarting udev 
replug usb mouse and

$ sudo service udev restart
(which my inits do on boot but maybe i forced that at some point)
$ dmesg   may say something useful

$ sudo apt-get install gpm     
General purpose mouse .
That should work on the console at least.
(and tests usb etc)

################################
OH *ding* this made a huge difference  earlier ...
ensure evdev is loaded before X starts
add evdev  /etc/modules  (so it gets forced in at boot)
or an insmod evdev  or similar when slim (or your display manager) starts
################################

modprobe evdev
lsmod
insmod

and the always useful..

[root@lenny]: /home/pete$ modinfo evdev
filename:       /lib/modules/4.11.6-lenny/kernel/drivers/input/evdev.ko
license:        GPL
description:    Input driver event char devices
author:         Vojtech Pavlik <vojtech@ucw.cz>
alias:          input:b*v*p*e*-e*k*r*a*m*l*s*f*w*
depends:
intree:         Y
vermagic:       4.11.6-lenny SMP mod_unload modversions CORE2

? add evdev to etc/modules ?
Though I don't have that and my mouse works fine with udev loaded.
The system still works fine.
(I use it for a nic card or two)

If your kernel has it you can try loading module evbug
It will flood dmesg though.
(maybe from console)

So last resort.

sorry to shotgun stuff in mess like that but I have to sleep smile

#54 Re: Other Issues » Easy compilation portable RPN calculator? » 2017-06-29 01:24:02

There is genius

It has a command line only mode.
I think it can also work in RPN
Its way more than I need.

#### wandering off topic #####
units is hours of fun smile

Also I dont think I'm alone in firing up python 
for some simple stuff. (which is all I need)

hmmm or most  interpreters actually.
Though watch out for divide by zero on some.

or even plain old bash:

ANS=$(( 2 * 2 ))
echo $ANS

oh and emacs of course it has a -few-  calcs smile
(someone had to say it)

#55 Re: Off-topic » This post has nothing to do with Devuan or even linux... » 2017-06-29 00:57:01

Giggled I did.
Way better than any math teacher I had.

Wonders what if anything they will be riding.
Who feeds and maintains these ridees ?

Swords ! excellent !

-*- sleep -*-

#56 Re: Installation » Wi-Fi nonfunctional - Qualcom Atheros Device 0041 (rev 20) » 2017-06-28 16:29:17

fsmithred wrote:

I can tell that I will be giving away the links to Pete's posts to a lot of people. Thanks for that.

Some of the wireless firmware is in contrib, so that might need to be added to the sources along with non-free.

Bug fixed smile

Hopefully its useful.

#57 Re: Installation » Wi-Fi nonfunctional - Qualcom Atheros Device 0041 (rev 20) » 2017-06-28 12:19:30

Cool
LOL.

I do tend to be a bit um primary school about things smile

I wouldn't have done all that if I thought _you_ were an idiot.

Hopefully its useful for a genuine novice at some point.

In my defence I used to step lots (over 100) of 'Doze refugees through the basics.
Face to face though  where  its easier to assess skills etc.

In your case just add non-free and move on smile

#58 Re: Installation » Wi-Fi nonfunctional - Qualcom Atheros Device 0041 (rev 20) » 2017-06-28 09:24:08

It may be that you do not have the "contrib" and "non-free"  components  enabled for your install.
synaptic can do that for you.
It is  "non-free" accept no other spelling. .

aside:

 

Alternatively you can edit /etc/apt/sources.list.d/
    Where you would carefully add the
    contrib and non-free components after the "main" component.
example:

deb http://auto.mirror.devuan.org/merged/ jessie main non-free contrib

~$ man sources.list     
   (is probably not what you want to do right now ... perhaps later)
   It is possibly a little opaque if your new to all this.
   Please ask for help.

/aside

Meantime here is a walk through of one method of finding and installing software.

1./ lspci (list hardware on your PCI buses.)
     you visually grepped out the atheros bit...

2./ use YOUR system tools first
     apt-cache  is a good place to start or synaptic => search
     apt-cache search  foo
     apt-cache show fooz
There is also :
     dpkg -S packagefooz
     dpkg -L packagefooz
There are man pages or even plain old --help -h

synaptic actually uses these in the background ... well OK sometimes they are built in versions ...

3./ look to your local  devuan
    /usr/share/doc/fooz/ or fooz-doc
    apropos fooz
    man fooz  and or info fooz
   
4./ look upstream debian and then :
     There are links that may be helpful
     In this case as its firmware less useful sad
     But you may find information that helps with the last step.

5./ your favourite search engine
(rinse repeat)
Follow barely understood instructions down cut and pasted roads to confusion.
Drink too much cool aid and eventually realise NO ONE really understands all of this.
Not even Linus smile

Always backup any config files and you will hardly ever break stuff.
I break stuff all of the time.
Its how I  learn things best :  by making mistakes and f i x i n g them

minimalish example

1 [Wed Jun 28 05:45 PM] pete@mingus:~$ lspci

2 [Wed Jun 28 05:45 PM] pete@mingus:~$ apt-cache search atheros
firmware-atheros - Binary firmware for Atheros wireless cards

3 [Wed Jun 28 05:46 PM] pete@mingus:~$ apt-cache show firmware-atheros
Package: firmware-atheros
Source: firmware-nonfree
Version: 20161130-3
Installed-Size: 8047
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Architecture: all
Suggests: initramfs-tools
Description: Binary firmware for Atheros wireless cards
Description-md5: cc64d612094e73015861cf2915345869
Multi-Arch: foreign
Homepage: https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git
Section: non-free/kernel
Priority: optional
Filename: pool/DEBIAN/non-free/f/firmware-nonfree/firmware-atheros_20161130-3_all.deb
Size: 3131536
MD5sum: 1b4ff70d8293e5e1b2d3480ee9cc6a3b
SHA256: 98ecdada8228a647007a816a30daec33436bb58e53057b5e8f8ad45b9a85b881

There is a second version available to my system that I have snipped.
However this blob of terse info tells you much that is useful and wise.

Including:
     where the source is maintained (kernel.org )
     That it is non-free software (multiple times)
    There are also mentions of "initramfs-tools" "firmware-nonfree"
     and "linux-firmware" 
So Its worth also have an apt-cache search for those just for some context.

Probably all you need to do is:
NOTE I do NOT need this this package and it will be removed
((my atheros is a nice girl and never reads nasty dark code  smile
She was also cheap.))

The following is edited for sanities sake

4 pete@mingus:~$ sudo apt-get install firmware-atheros
<snips>
The following NEW packages will be installed:
  firmware-atheros
0 upgraded, 1 newly installed, 0 to remove and LOTS not upgraded.
Need to get 3131 kB of archives.
After this operation, 8191 kB of additional disk space will be used.
Get:1 http://au.mirror.devuan.org/merged jessie-backports/non-free i386 firmware-atheros all 20161130-3~bpo8+1 [3131 kB]
Fetched 3131 kB in 12s (260 kB/s)
Selecting previously unselected package firmware-atheros.
(Reading database ... 149922 files and directories currently installed.)
Preparing to unpack .../firmware-atheros_20161130-3~bpo8+1_all.deb ...
Unpacking firmware-atheros (20161130-3~bpo8+1) ...
Setting up firmware-atheros (20161130-3~bpo8+1) ...
 
5  pete@mingus:~$ apropos atheros
atheros: nothing appropriate.

6 pete@mingus:~$ apropos firmware
firmware: nothing appropriate.

7 barry@white:~$ ls /usr/share/doc/fir[TAB][TAB]
firefox-esr/            firmware-intel-sound/   firmware-linux-nonfree/
firmware-amd-graphics/  firmware-linux/         firmware-misc-nonfree/
firmware-atheros/       firmware-linux-free/

7 pete@mingus:~$ ls /usr/share/doc/firmware-atheros/
changelog.Debian.gz  copyright

8 pete@mingus:~$ zless /usr/share/doc/firmware-atheros/changelog.Debian.gz

Which has nothing useful for me at this time.
Proving once again that non-free stuff totally sucks.
However sometimes you have to use it.
The installer may even taken the time to add this module to your initramfs
But if you can boot without it (and unless you booting over your wireless network ....)

try :  ip l     and or   ip a
or finally wih sudo or su :

[2] [root@mingus]: /home/pete$ iwconfig
wlan0     IEEE 802.11  Mode:Master  Tx-Power=20 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

eth1      no wireless extensions.

lo        no wireless extensions.

br0       no wireless extensions.

eth2      no wireless extensions.

dummy0    no wireless extensions.

eth0      no wireless extensions.

#59 Re: Installation » SLiM - failed to execute login command - bug? » 2017-06-28 03:36:56

Slim is an excellent Display Manager
However your not alone in it either refusing to startup or reporting "failed login" (or similar).

short version:
If you install lightdm
and IT works... then we can all go and fix slim
(cause it rocks ! doesn't support remote logins by default)

I suspect that this may be because:
1/  some part of the lower end X environment is not installed (as you move from a minimal system to a full Desktop environment) 
or
2/ It needs some Desktop level part of the Auth chain that gets left behind or breaks subtly.

I notice (from the slim source code) that it is built with _either_ pam modules as a front end to auth OR logind stuff.
That may not be flexible enough for many users ... or it could just be a bad guess.
And it does little to solve your problem.

try lightdm instead.

Apparently  its default is "ugly" but effective smile

#60 Re: Devuan » Defend Devuan against Antivirus and other thinks » 2017-06-28 03:12:02

As fsmithred and greenjeans  have said you do not need an antivirus for linux.
(or *BSDs)

_the rest of this is possibly not relevant_ but as I wrote it over my first coffee ...
Here it is anyway. Random observations  thats all.

Its not impossible to write a virus that actually does something,  just very difficult to do without _social__tricks_.
Like convincing you to run your browser or office suite  as root or something startling...
(yeah I guess this could happen, we are only humans. )

The easier attack vector for "Nixen" is where they do their work on networks.
(so packet filtering and simply not running services you don't need).
Or via exploits in existing software or via the package management system or even firmware blobs.
(say in a closed driver for some zappy new IoT thing)

rkhunter
is an _excellent_ well tested tool to scan for , rootkits.

It is particularly useful where you have many users with mixed skill sets.
e.g. you are  running webservers or have shell access accounts (!)  etc.
As _one_ layer of defence along with others.

clamav
is  for scanning email and _attachments_  for windows targeted payloads.
It would also be useful if your file sharing with windows networks etc.
Or collaborating with MSoffice users a lot.

i.e. Clamav looks for _known_ bad payloads in files you probably share..
You can help protect _them_ with clamav.
This works very well.
Now all you need to do is get them to keep _their_ anti virus suites up to date.
(this is not possible)

As a general user running with no special system privileges your
web browser is the weakest link.
( other than _yourself_ and,  say sudo smile

There are other approaches like tripwire or entire suites of stuff that audit and help validate your system.
Some of them are almost attacks in their own right as they grind your cpu's down to dust... checksumming  away.

These absolutely have a real place and are critical in some use cases...
Most of those assume your software doesn't change too often.
(thats a blurry line)

So real security starts with a clean kernel and a good package manager.

Like Devuan smile 

Sorry I do rabbit on . .
You only need a virus scanner for other peoples stuff.
(or because your boss/client/user is an box checking idiot)
(which is just a special sub set of the world of stupid really)

#61 Re: Hardware & System Configuration » X without a Display Manager » 2017-06-27 16:11:22

edit:
There should be a useful version with somewhat more advanced dbus support at::

https://git.devuan.org/PeteGozz/slim/bl … trc.sample

/edit

So a slightly more baroque version.
Is nicer to the startx wrapper the  poor user and
should use dbus if its available.

(of course you can set that to "" or /bin/true)
or even better rewrite this into something useful for you.

Check and edit this to suit your needs.
Note that startx should use and digest all the system /etc/X11/Xsession.* stuff.
Not so sure about xinit.

This can also work for plain old X -query  type asks

Sheeze its been a while.

# usage: (where "foobar" will possibly match your desired window manager)
# ~$  startx foobar
# ~$ xinit foobar -- :1
# ~$ xinit -- :$(tty | tr -d /dev/tty)
# now with simple dbus detection 
# allocate to your default window manager
DEFAULT_SESSION=openbox-session

# dbus executable ?

if [ -x dbus-launch ];then
    DESKTOP_BUS="dbus-launch --exit-with-session"
else
    DESKTOP_BUS=""
fi

if [ -z $1 ];
then
    # no option for xinit then just jump to default
    exec $DESKTOP_BUS $DEFAULT_SESSION
elif [ -x $1 ];
then
    # $1 in our PATH and executable  
      case $1 in
        fluxbox )
            
            # see also: ~/.fluxbox/startup
            exec $DESKTOP_BUS startfluxbox
            ;;
        openbox )
            
            # see also: ~/.config/openbox/autostart
            exec openbox-session
            ;;
        twm)
            # it is OK to not have xbindkeys
            xbindkeys || true  &
            xterm -e /bin/bash &
            exec twm
            ;;
        icewm)
            icewmbg &
            icewmtray &
            exec $DESKTOP_BUS icewm
            ;;
        wmaker)
            exec wmaker
            ;;
        blackbox)
            exec blackbox
            ;;
        *)
            # we should not arrive here unless we fed $1 with a shell or something
            # but I'm just gunna pretend we never did and go default
            # 
            exec $DESKTOP_BUS $DEFAULT_SESSION

            ;;
      esac

elif [ ! -x $1 ];
then
# spit some help in the middle of all those Xorg messages
    echo ""
    echo Please Note: Unable to understand: $1
    echo Try xinit  or startx with no options for $DEFAULT_SESSION
    echo "or if server in use try:  xinit -- :$(tty | tr -d /dev/tty)"
    echo Or try:  startx $1   finally try:  startx sh
else
    # we have to hope $1 is some argument an xterm or xinit understands
    xterm -e $1 || xterm &
    # this is a guess and seems a little safer than nothing
    exec $DEFAULT_SESSION 
fi

### this should never do a thing but the use cases are vast and interesting
### as this sourced thing should have been abandoned  by exec millisecs ago

if [ "$?" != "0" ]; then
    echo -e "\ntry:\t xinit -- :$(tty | tr -d /dev/tty)"
    echo -e "or plain  startx "
fi

#eof

#62 Re: Hardware & System Configuration » X without a Display Manager » 2017-06-27 15:36:45

msi wrote:
PeteGozz wrote:

an optionally dbus free window manager

As far as I can see, all window managers are "dbus-free". dbus is, for example, required by file managers for mounting external devices. See: https://dev1galaxy.org/viewtopic.php?pid=1028

That's why you would probably want to have

exec dbus-launch --exit-with-session openbox-session

instead of just

exec openbox-session

inside your ~/.xinitrc file. At least when using Thunar or PCManFM.

The type of use case as discussed above would most probably use a Display Manager in any case.
(and dbus and udev etc)

I am not suggesting that a chopped down xinit type login would have all  conveniences.
I am certainly not suggesting this is a default setting for anybody but those who are curious
or working toward smaller footprints and perhaps developing  debugging.

Its also a dying skill set smile
(and I'm not excluding myself)
In any case the next post should go some way to covering your absolutely correct note.
(untested as I have no dbus to test )
And probably even buggier now .

I need to trace startx a little more carefully as well.

Its just a hack. Not for user land.

#63 Re: Hardware & System Configuration » X without a Display Manager » 2017-06-27 15:13:46

Yes that probably is wise.
There are many apps that use dbus.

I get by without it OK though just occasionally its  a bother.
I will post a better version in any case with dbus options.

#64 Hardware & System Configuration » X without a Display Manager » 2017-06-27 07:14:57

PeteGozz
Replies: 4

I like to keep things light in desktop world.
You may not. Thats is more than fine. Its not called free software for nothing !
However, sometimes,  it feels as though loginkit and dbus is a soggy box, and certainly not a help.
So  you can live with and / or without them :

Here is part of one reasonably flexible solution.

Assuming you have:
    a/  xutils installed AND
    b/ you are allowed to login from the console.
        see: /etc/X11/Xwrapper.config
    c/ an optionally dbus free window manager

You should be able to simply login and
 
startx
or
xinit somexsessionhere -- :2

the icewm is a nice example
this _may_ override any commandline options (xinit)

# save to ~/.xinitrc  and or ~/.xsession
# ~$ man startx   for more information about why and what
# this file was originally from the sources of *slim display manager*
# edit to taste 
# usage: (where "foobar" will match your desired window manager)
# ~$  startx foobar
# ~$ xinit foo -- :1
# allocate to your default preference
# here 
DEFAULT_SESSION=openbox-session

case $1 in
    openb* | ob | foo)
    # see also: ~/.config/openbox/autostart 
        exec openbox-session
        ;;
    twm)
        # it is OK to not have xbindkeys
        xbindkeys || true  &
        xterm &
        exec twm
        ;;
     # examples 
    enlightenment)
        exec /usr/bin/enlightenment_start
        ;;
    enlightenment?*)
        exec /usr/local/bin/enlightenment_start
        ;;
    icewm)
        icewmbg &
        icewmtray &
        exec icewm
        ;;
    wmaker)
        exec wmaker
        ;;
    blackbox)
        exec blackbox
        ;;
    *)
        exec $DEFAULT_SESSION
        ;;
esac

of course you can simply try:
xinit -- :1
startx

for defaults
Or your window manager may provide an initialisation script
tab may be your friend smile

Upsides and uses include:
- testing window managers
and gui tools. (multiple logins and quick tests are easy to flip between)
- If you don't need  or want a full Desktop Manager with
DBUS and login "friends"
- Its OK with no {pulse,port}audio as well smile
you can uninstall all or some of the above  and _simplify your life_  or not. ;>
- You also wont need a Display Manager (slim or lightdm)
But you can still use them for other users. (or even yourself with a little thought)
and certainly wont need GDM or kdm etal.

Its your system its your code
break it your way.

#65 Re: Installation » SLiM - failed to execute login command - bug? » 2017-06-27 05:37:18

I had this issue when I removed dbus., logind  and possibly other desktop level helpers.
(thats another story though)

As a guess and test see if reinstalling dbus or logind helps.

apt-get update
apt-get -f install
apt-get install --reinstall  libck-connector0 consolekit dbus -t jessie  

   
also

apt-get install xutils task-lxde-desktop

That may point out any issues with packages from ascii or ceres  sneaking in ???.
Assuming your install is not pure stable / jessie ?

apt-cache show slim

(reveals  dependencies )

apt-cache show task-desktop

## digressions 101 ######################################

meantime
startx   

should work for the system default BUT if you dont have any/much X yet this can get a little tricky.
configure a xinitrc so then you have options.
like
xinit openbox -- :2

e.g.

echo "exec openbox-session" >> ~/.xinitrc 

(startx is easier and it should use the system confs if they are about.)
(/etc/X11/ ish)

#66 Re: Other Issues » upgrading all machines on a LAN, and apt-cacher-ng » 2017-06-23 03:47:02

Do I need to update the machine with the apt-cacher-ng before the other machines?  I was actually planning to upgrade the smallest system first.  Are there any problems with having apt-cacher-ng working with Debian and Devuan?

It would not hurt to do the caching machine first if only so that _its_ caching software is up to date.
However it shouldn't really matter.

I _did_ have issues a while ago with apt-cacher-ng and switched to a squid plugin type system called  squid-deb-proxy.
However that was appropriate as I was running squid3 in any case.
Just in case smile (though unless you want squid3 ... )

Package: squid-deb-proxy
Status: install ok installed
Priority: extra
Section: net
Installed-Size: 106
Maintainer: Michael Vogt <mvo@debian.org>
Architecture: all
Version: 0.8.9
Depends: debconf (>= 0.5) | debconf-2.0, squid3
Recommends: avahi-utils
<snipped>
Description: Squid proxy configuration to optimize package downloads
<snipped>
Homepage: https://launchpad.net/squid-deb-proxy

You should not have issues with keeping debian devuan ubuntii on <em>either</em>. 
Well I never did with apt-cacher-* and still don't with the squid proxy.
(beyond drive space !)
apt-cacher keeps nice easy to understand mirrors which you can also use as repros smile
The squid thing is way harder to grok ! Though fully automatic, and near zero thought required after its all working.

For what its worth my home network is a similar size even has the RPies smile
The proxies are also handy for upgrading _other_ peoples systems (which are usually debian or ubuntu ).
I guess one day I will explore the avahi auto thing for it but there is no need  and I'm always breaking "helpful" guff like avahi smile

#67 Re: DIY » X11 Programming Development Forum? » 2017-06-21 09:29:53

As this may be helpful for somebody else:
Success on TWM

_Caveat_
I had to add (restore ?) a conf file so X would let me start as a normal user from console.
(see end of this post if startx as a normal user doesn't work )

you will need to organise for xbindkeys to start
so perhaps something like this in ~/.xinitrc
( simple copy of mine so YOU need to edit / uncomment to taste )
As you experiment ONE variable thing at a time

# the following variable defines the session which is started if the user
# doesn't explicitly select a session
DEFAULT_SESSION=openbox-session 

case $1 in
    twm)
	#xbindkeys &
	#xterm &
	exec twm
	;;
    
    enlightenment)
	exec /usr/bin/enlightenment_start
	;;
    enlightenment?*)
	exec /usr/local/bin/enlightenment_start
	;;
    icewm)
	icewmbg &
	icewmtray &
	exec icewm
	;;
 
    *)
	exec $DEFAULT_SESSION
	;;
esac

## EOF
startx twm 

  or

xinit  twm -- :2 

 

Then generate a default by a run of:

$ xbindkeys --default  > .xbindkeys

discover the combinations with:

$ xbindkeys --keys

--help and man pages should be available
It is quite helpful and can even show a redirection example for the conf file :)
(move any existing version out of the way.)

Finally there appear to be other ways  to set keyboard shortcuts but life is short.
The scheme version is way more flexible, though probably not for a first attempt.
(the examples are excellent)

(and my system is broken enough already !)

#######################################

startx  wont work for $USER ?
try setting this in /etc/X11/Xwrapper.config  :

# one of the following values:
# rootonly,console,anybody
allowed_users=anybody
#nice_value=12
#eof

worked for me _EVENTUALLY_
oh the nice value is not needed its just MY pref.
and it should be console but I want to play with remote stuff ...

This WILL make your system less secure.

#68 Re: DIY » X11 Programming Development Forum? » 2017-06-21 08:00:26

Replying to myself

Xbindkeys looks promising it will even write a config file for you in either plain text or guile
however I think my window manger is grabbing (back) the keys or I have to  log out in again ... no idea

#69 Re: DIY » X11 Programming Development Forum? » 2017-06-21 07:23:42

xbindkeys -dg
is full of guile cool smile

Hope it actually works these days.

I will also test here as _some_  EFL based (at least) apps wont launch when run under slim.
But will launch when run from startx.
(getting that back was a small journey in itself)

#70 Re: DIY » X11 Programming Development Forum? » 2017-06-21 07:16:41

This _should_ let you build you own user specific .xbindkeys
I'm not using TWM (openbox)

apt-get install xbindkeys   
man xbindkeys

has examples

Board footer

Forum Software