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

Sunday, November 30, 2014

Create a application starter in your tint2 panel

First install xdotool:
#pacman -S xdotool
Add this line in the keyboard section of your ~/.config/openbox/rc.xml

   root-menu
 
We do
$openbox --reconfigure
to update openbox menu
 Check if this works with
 $ xdotool key ctrl+alt+space
You should see the OB menu pop up near your mouse.

Now we install tint2-svn from AUR with yaourt or packer
$yaourt tint2-svn

After installing we edit the tint2rc by hand in /home/username/.configure/tint2
Under panel we add:
# Panel panel_items = LTSBC

 And we add a new section:
# Launchers
launcher_icon_theme =Adwaita
launcher_padding = 5 0 10
launcher_background_id = 9
launcher_icon_size = 85
launcher_item_app = /usr/share/applications/tint2.desktop

Now we are going to create the  tint2.desktop file in the folder  /usr/share/applications
Create a file nameit tint2.desktop and with leafpad add the text and save:

[Desktop Entry]
Categories=Panel
Comment=A menu launcher
Exec=xdotool key ctrl+alt+space
GenericName=tint2
Icon=tint2
MimeType=
Name=tint
Type=Application
X-KDE-StartupNotify=false


 Now we kill tint2 with
 $pkill tint2
 And activate it again with dmenu, alt-f3,type tint2 and enter.

If all is good you should see this:

Monday, November 24, 2014

Easiest way to change default boot order Grub2

Count on which line the desired default Os in your Grub boot menu.
Say it is on line 7.
Go to /etc/default/grub en open it with leafpad
#leafpad  /etc/default/grub
Change line GRUB_DEFAULT="0" to
GRUB_DEFAULT="6"

Why 6? Because counting starts with zero, 0.

Tuesday, November 4, 2014

Installing Sandfox in Void Linux

Update Sandfox is a  Void package now
Install with:
#xbps-install sandfox
 The second part Configuration and use of this post still is relevant.

I feel it is essential for your safety to run your browser in a sandbox.
I use sandfox for that.
Here is how I installed  Sandfox in Void Linux
First check if you have  what you need:
#xbps-install lsof inotify-tools wget
If this is OK, we can download it
$ wget https://github.com/IgnorantGuru/sandfox/raw/master/sandfox
This gave me a file called sandfox
Install with
$sudo install sandfox /usr/bin/sandfox
It should be executable ; if you encounter problems check this.

Configuration and use

Make a folder for your browser downloads, for example /home/user/sf_download
Enable this in your sandfox configuration by editing /etc/sandfox/firefox.profile; in the section home folders add a line with
bind=/home/$user/sf_download
Now you can create and start using the sandbox by doing:
$sudo  sandfox firefox
Avoid having to give your root password each time you start sandfox:
Add a line (change user name of course) in your sudoers file:
 paul ALL=(ALL) NOPASSWD: /usr/bin/sandfox

by doing
#EDITOR=nano visudo
and editing (nano commands: ctrl+o and enter to write and ctrl+x and enter to exit).

You can also add to your /home/paul/.bashrc the line:
alias firefox='sudo sandfox firefox'

For more options and scenarios see this link .

Blog Archive