Monday, November 2, 2015

Set delay screen blanking

I use an old laptop with Archbang as mediaplayer and want relatively quick screen blanking.
$sleep 1; xset 3 180 180
will set this display power management signaling tool to 3 minutes.

Saturday, June 13, 2015

Threesome , a nice variation of the Set Card game

I'm kind of addicted to the set card game. It is like most games a love/hate relationship. What boggles my mind is that most of the times you find a solution pretty easily and then you get stuck and are really at a loss.
This is a very simple version of it with 15 cards in stead of 12  en it is all made up of css and html code without any image files. Quite an achievement!!
It is very small and you can play it offline as long and as often as you want.
The game is hosted here and is 20 kb small.

Thursday, June 11, 2015

dir2txt via terminal


Change in terminal to desired folder  cd /path/to/folder
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/' > ~/filename.txt

source: http://www.cnet.com/news/terminal-fun-options-for-printing-folder-and-subfolder-contents/

Sunday, May 31, 2015

Install a package in Void from local repo

source: http://bbs.springlinux.org/viewtopic.php?pid=266#p266 post from Oliver:

I'm hardly an expert and this may be all wrong but if anyone wants to try an xbps pkg based on the arch PKGBUILD it's at https://mega.co.nz/#!gotQTYgR!MFiQKwUYf … JmAbQAqWqo
You'll need to add it to a local repo
$ md5sum ttf-droid-20121017_1.noarch.xbps 
c62981b46136953bf197464671793dfa  ttf-droid-20121017_1.noarch.xbps

$ mkdir ~/localrepo
$ cp ttf-droid-20121017_1.noarch.xbps ~/localrepo
$ sudo xbps-rindex -a ~/localrepo/ttf-droid-20121017_1.noarch.xbps
$ sudo  xbps-install -S --repository=~/localrepo ttf-droid



How to Create a Void Package: http://wiki.springlinux.org/index.php?title=Creating_A_Void_Package

Tuesday, February 24, 2015

Void and voidbang if you have mount problems using udevil

Be sure to have yourself added to the storage group:

# usermod -aG storage paul

Reboot or relogin for reloading group settings.

You also may have to add a polkit rule in

/etc/polkit-1/rules.d/55-storage.rules
with this content:
 polkit.addRule(function(action, subject) {
     var YES = polkit.Result.YES;
     var permission = {
     // only required for udisks1:
     "org.freedesktop.udisks.filesystem-mount": YES,
     "org.freedesktop.udisks.filesystem-mount-system-internal": YES,
     "org.freedesktop.udisks.luks-unlock": YES,
     "org.freedesktop.udisks.drive-eject": YES,
     "org.freedesktop.udisks.drive-detach": YES,
     // only required for udisks2:
     "org.freedesktop.udisks2.filesystem-mount": YES,
     "org.freedesktop.udisks2.filesystem-mount-system": YES,
     "org.freedesktop.udisks2.encrypted-unlock": YES,
     "org.freedesktop.udisks2.eject-media": YES,
     "org.freedesktop.udisks2.power-off-drive": YES
     };
     if (subject.isInGroup("storage")) {
         return permission[action.id];
     }
 });

source:  https://github.com/voidlinux/documentation/wiki/Mounting-filesystem-as-a-user

Wednesday, January 14, 2015

Voidbang multiboot problem

I booted  multiboot into Arch from  a grub.cfg that was made by / from out avoidbang installation and got kernel panic after an update.

#xbps-install -f util-linux 
and
#update-grub
and reboot solved it for me.

Monday, January 12, 2015

Voidlinux with openbox automatic login 2 solutions

Had problem with automatic login in Void/Openbox
Solution found here
Edit run file /etc/sv/agetty-tty1/run by changing in the 9th line:
GETTY_ARGS="--noclear"   to
GETTY_ARGS="-a paul --noclear"
Change name to your own username of course.

but
@pablokal RE:autologin: should mention that any changes made to /etc/sv/agetty-tty1/run will be lost each time package runit-void is updated.
i decided to just run lxdm autostart instead, to save having to fix this each time.

lxdm autostart
To log in to one account automatically on startup, without providing a password, find the line in /etc/lxdm/lxdm.conf that looks like this:
#autologin=paul
 
Be sure to edit your sudoers file in /etc/
 # EDITOR=nano visudo
with this permission
paul  ALL=(ALL) NOPASSWD: ALL

Blog Archive