Open rockyhotas opened 6 years ago
Rocky Hotas writes:
Hello!
Hello Rocky!
I'm new to Luakit and quite a newbie, also as regards the
lua
language. I tried to install the browser both on Ubuntu 16.04 and 18.04 fromaptitude
. Then, I followed the instructions in the Configuration section of the Quick start guide.I followed these steps to configure and use AdBlock and, in particular, put these lines:
require "adblock" require "adblock_chrome"
in
/home/$USER/.config/luakit/userconf.lua
. The file suggested in the guide,config.rc
, does not exist in my system. Trying then to start Luakit:$ ./userconf.lua:1: module 'adblock' not found: no field package.preload['adblock'] no file './adblock.lua' no file '/usr/local/share/lua/5.1/adblock.lua' no file '/usr/local/share/lua/5.1/adblock/init.lua' no file '/usr/local/lib/lua/5.1/adblock.lua' no file '/usr/local/lib/lua/5.1/adblock/init.lua' no file '/usr/share/lua/5.1/adblock.lua' no file '/usr/share/lua/5.1/adblock/init.lua' no file '/home/lgking/.config/luakit/adblock.lua' no file '/home/lgking/.config/luakit/adblock/init.lua' no file '/etc/xdg/luakit/adblock.lua' no file '/etc/xdg/luakit/adblock/init.lua' no file '/usr/share/luakit/lib/adblock.lua' no file '/usr/share/luakit/lib/adblock/init.lua' no file './adblock.so' no file '/usr/local/lib/lua/5.1/adblock.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.1/adblock.so' no file '/usr/lib/lua/5.1/adblock.so' no file '/usr/local/lib/lua/5.1/loadall.so' [ 0.139484] E: luakit: main:189: no windows spawned by rc file, exiting
The Quick start guide states that modules are stored in
/usr/share/luakit/lib/
, but there is:
- no
adblock
, neitheradblock_chrome
in this directory in Ubuntu 18.04;- no
/usr/share/luakit/lib/
directory in Ubuntu 16.04. I added it manually from the repository after agit clone
, but then thelousy
module prevented Luakit from starting; after manually removing thelousy
directory, thesettings
module prevented Luakit from starting.How to properly use AdBlock?
I would also like to change the default screen size. I tried to put the function defined here in
/home/$USER/.config/luakit/userconf.lua
as follows, with some test new values different from the defaults:
window:set_default_size (1000, 800)
However, also in this case:
$ /home/$USER/.config/luakit/userconf.lua:3: attempt to call method 'set_default_size' (a nil value) [ 0.072601] E: luakit: main:189: no windows spawned by rc file, exiting
Is there a way to fix this? [...]
Which luakit version is shipped with Ubuntu?
Hi!!! You can find it below, together with some other information about the package itself:
$ apt-cache show luakit
Package: luakit
Architecture: amd64
Version: 2012.09.13-r1-8build1
Priority: optional
Section: universe/web
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian QA Group <packages@qa.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 599
Depends: libc6 (>= 2.4), libglib2.0-0 (>= 2.37.3), libgtk2.0-0 (>= 2.24.0), libjavascriptcoregtk-1.0-0 (>= 1.5.1), liblua5.1-0, libpango-1.0-0 (>= 1.14.0), libsoup2.4-1 (>= 2.26.1), libsqlite3-0 (>= 3.5.9), libunique-1.0-0 (>= 1.0.0), libwebkitgtk-1.0-0 (>= 1.3.10), libjs-jquery, lua5.1-filesystem
Filename: pool/universe/l/luakit/luakit_2012.09.13-r1-8build1_amd64.deb
Size: 129968
MD5sum: fa45a05e218790ffa92cbf11cc5ce679
SHA1: 9df035313e7c2e4743f0d0310134bd2806140673
SHA256: 7836ae4edfc74723a0fb911e2d1205cbaa2be1b84846d72afae98877e842ce59
Homepage: http://luakit.org/
Hello Rocky!
Rocky Hotas writes:
[...] You can find it below, together with some other information about the package itself:
$ apt-cache show luakit Package: luakit Architecture: amd64 Version: 2012.09.13-r1-8build1 ^^^^^^^^^^^^^^^^^^^^^
That's an old version and adblock' module was not present and neither loading the configuration via
useconf.lua'.
Probably better to try to update it and/or build it!
^^^^^^^^^^^^^^^^^^^^^ That's an old version and
adblock' module was not present and neither loading the configuration via
useconf.lua'. Probably better to try to update it and/or build it!
Incredibly there is no more recent version in the aptitude
repository. Thank you so much!
You can use the draft release for Debian flavour distributions (including Ubuntu's): https://github.com/luakit/luakit/releases/tag/debian%2F2.0
Hello! I'm new to Luakit and quite a newbie, also as regards the
lua
language. I tried to install the browser both on Ubuntu 16.04 and 18.04 fromaptitude
. Then, I followed the instructions in the Configuration section of the Quick start guide.I followed these steps to configure and use AdBlock and, in particular, put these lines:
in
/home/$USER/.config/luakit/userconf.lua
. The file suggested in the guide,config.rc
, does not exist in my system. Trying then to start Luakit:The Quick start guide states that modules are stored in
/usr/share/luakit/lib/
, but there is:adblock
, neitheradblock_chrome
file in this directory in Ubuntu 18.04;/usr/share/luakit/lib/
directory in Ubuntu 16.04. I added it manually from the repository after agit clone
, but then thelousy
module prevented Luakit from starting; after manually removing thelousy
directory, thesettings
module prevented Luakit from starting.How to properly use AdBlock?
I would also like to change the default screen size. I tried to put the function defined here in
/home/$USER/.config/luakit/userconf.lua
as follows, with some test new values different from the defaults:window:set_default_size (1000, 800)
However, also in this case:
Is there a way to fix this?
Thank you!
Rocky