Installing Awesome WM

Post here if you are a new Porteus member and you're looking for some help.
franbcki
White ninja
White ninja
Posts: 7
Joined: 23 Jan 2017, 15:47
Distribution: Porteus 3.2 32bit
Location: Buenos Aires

Installing Awesome WM

Post#1 by franbcki » 23 Jan 2017, 16:17

Hi everyone! I've been playing with Porteus for some time now. I decided I wanted to tune it to my liking. So I downloaded Awesome and dependencies with USM, placed the xzm files in a folder in optional, added an entry to porteus.cfg with the options "noload=xfce load=awesome/". The modules (un)load fine but when I attempt to start Awesome I get this error message:

Code: Select all

W: awesome: luaA_panic:316: unprotected error in call to Lua API (attempt to index a number value)
W: awesome: luaA_panic:319: dumping backtrace
awesome(backtrace_get+0x39) [0x806d146]
awesome() [0x805f56f]
/usr/lib/liblua.so(+0x13812) [0xac56b812]
/usr/lib/liblua.so(+0x13412) [0xac56b412] 
/usr/lib/liblua.so(+0x134bd) [0xac56b4bd]
/usr/lib/liblua.so(+0x135ab) [0xac56b5ab]
/usr/lib/liblua.so(+0x25c26) [0xac57dc26]
/usr/lib/liblua.so(lua_getfield+0x63) [0xac5622b3]
awesome(luaA_init+0x49) [0x8060309]
awesome(main+0x1fc) [0x805304b]
/lib/libc.so.6(__libc_start_main+0x107) [0xac331697]
awesome() [0x80525f1] 
W: awesome: luaA_panic:320: restarting awesome
W: awesome: signal_object_emit:239: Trying to emit unknown signal 'exit'
Segmentation fault
I'm running the 32 bit version of Porteus 3.2 . Any clues? Thanks in advance!

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Re: Installing Awesome WM

Post#2 by ncmprhnsbl » 23 Jan 2017, 22:24

some possibilities:
what is the version of lua that usm provided?
and
did you make awesome module via xfce? if so, there may have been some dependencies furnished by xfce, now missing from awesome module...
>if this is the case, try booting to text mode(with noload=xfce) and running usm there...

Code: Select all

usm -g awesome
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

franbcki
White ninja
White ninja
Posts: 7
Joined: 23 Jan 2017, 15:47
Distribution: Porteus 3.2 32bit
Location: Buenos Aires

Re: Installing Awesome WM

Post#3 by franbcki » 24 Jan 2017, 03:11

usm provided lua 5.1.5 (during the dependency check), which is the one I'm activating through the optional/awesome/ folder. But, the system also has lua 5.2.0. Can't tell if I installed it for something else, by mistake or it's a default.

Concernig the download, yes, I remember thinking exactly like you, and did that. Although now I can't remember if I did it from the Text mode (in fact it loads the xfce module, just doesn't start x) or used noload. Can't remember if I had the developer module activated too. Would that had the same effect as the xfce one? I'll try again fresh and report back.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Re: Installing Awesome WM

Post#4 by ncmprhnsbl » 24 Jan 2017, 08:41

okay so i've run through this myself, and found
usm gives me:
awesome
libxdg-basedir
lua-5.1
xcb-util-cursor
xcb-util-image
xcb-util-keysyms
xcb-util-renderutil
xcb-util-wm

this wasnt enough, the error suggested lgi
so i then got:
lgi
gobject-introspection

still didnt work...scratches head(and tried some other packages) :Search:
spotted mention of gdk-pixbuf... ahhh of course!
need to run cache-module
this will create a module(009-caches.xzm(in /tmp)) with the necessary caches
another thing to do is add a symlink(xinitrc) to xinitrc.awesome in /etc/X11/xinit/ (in your awesome.xzm is a good place)

dont know if lua52 being present is a problem, but fairly sure it isnt part of the base system..
an easy way to find what package is in which module is to check /mnt/live/memory/images/<module>.xzm/var/log/packages in the live system
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

franbcki
White ninja
White ninja
Posts: 7
Joined: 23 Jan 2017, 15:47
Distribution: Porteus 3.2 32bit
Location: Buenos Aires

Re: Installing Awesome WM

Post#5 by franbcki » 28 Jan 2017, 02:03

Sorry for late reply. Thanks, I'll try this and report later!

franbcki
White ninja
White ninja
Posts: 7
Joined: 23 Jan 2017, 15:47
Distribution: Porteus 3.2 32bit
Location: Buenos Aires

Re: Installing Awesome WM

Post#6 by franbcki » 28 Jan 2017, 18:38

It worked! :Yahoo!: Don't know what cache-module does, but that was it. What is it? Why can I only run it from root? Is the 009 numeration meant to start before and after anything?
dont know if lua52 being present is a problem
The problem was I had downloaded the awesome package with usm before the lua 5.1 package. When I first tried downloading Awesome, it required lua, and I picked lua 5.2 (maybe there's a dependency issue here from Awesome's side). Sure enough, it didn't worked. So I downloaded lua 5.1 and forgot about it. The thing is, lua 5.2 stuff got bundled with awesome. I looked for the libraries doing

Code: Select all

ls -lh /usr/lib/liblua*
and found that liblua.so was linked to the lua 5.2 library. I re-linked it to the 5.1 version and was able to startx normally. I rebuilt the xzm without it and now it works fine.

Now, the only issue I have is that the modules are loaded with root privileges so I can't run them from guest, and although I did the xinitrc trick, I still boot into text. I've noticed this happens with other modules like Vim and Mozilla too. Even shutdown and reboot are root-only. How am I supposed to turn off the machine with no admin rights? Not that I have problems running around in root mode, but it feels a bit untidy.

Cheers for the help offered! :beer:

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Re: Installing Awesome WM

Post#7 by ncmprhnsbl » 31 Jan 2017, 23:05

cache-module is a script that rebuilds various caches by running the relevent commands,
and then putting the resulting caches in a module(which can then be merged into a DE module)
i presume the 009 prefix is so its loaded(into the AUFS union/loop) after most other modules
(each module(potentially) overwrites the modules preceeding it)
the order is determined numerically and/or alphabetically..

i've had a look at auto/starting awesome as guest user and am having some trouble too...
so far: added slim (and /etc/slim.conf from xfce module )
added /etc/rc.d/rc.4 from xfce module(this autostarts X/slim)
this autostarts X okay but slim fails to login to guest... root login is okay..
seems to be consolekit related..

with my openbox module i bypassed all this by reverse engineering the xfce module as per
these instructions: http://forum.porteus.org/viewtopic.php? ... 046#p47066
and in more detail with overlay "TREE" : https://github.com/ncmprhnsbl/openbox-porteus3.2
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

franbcki
White ninja
White ninja
Posts: 7
Joined: 23 Jan 2017, 15:47
Distribution: Porteus 3.2 32bit
Location: Buenos Aires

Re: Installing Awesome WM

Post#8 by franbcki » 04 Feb 2017, 21:35

Just to log progress.

Setting cheatcode login=root and creating a .xinitrc in root's home folder does the autostart of xinit.
Have yet to try with guest, though I'm not sure if it will satisfy my needs.

Post Reply