Running 18.04 LTS I discovered an odd behavior from Slack. Instead of opening links in my regular FIrefox installation, it opened its own Firefox-instance. That instance had no plugins and was grouped as a slack process in the menu bar. Weird.
Reinstalling Slack from Ubuntu Software didn't help and I couldn't find a setting within Slack that controlled this.
The solution to my issue was to install the .deb file from Slack's homepage, instead of using Ubuntu Software. After doing so, links opened through my regular Firefox installation, instead of starting new processes belonging to Slack.
Source: askubuntu.com
måndag 4 november 2019
tisdag 1 oktober 2019
option OSS requires SDL_AUDIO
Trying to compile SDL20 I got the following message. It took a while before I realized that this wasn't a library that I needed to install, I needed to reconfigure SDL20 to add the SDL_AUDIO option.
To do that I simply ran "make config" in the SDL20 port directory and added SDL_AUDIO.
To do that I simply ran "make config" in the SDL20 port directory and added SDL_AUDIO.
FreeBSD: X needs Python 3.5 at least, but 2.7 was specified.
When trying to compile using the ports system, the error message that something needs Python 3.x, but 2.7 was specified is quite common.
This is due to the ports system "remembering" the python version that was specified by a top level package, while a dependency may require something else.
The solution is to manually compile the dependency first.
In my case I was trying to build sdl_sound, but it failed due to meson-0.51.2 needs Python 3.5 at least, but 2.7 was specified.
To fix this I compile meson first, then I go back and compile sdl_sound.
This is due to the ports system "remembering" the python version that was specified by a top level package, while a dependency may require something else.
The solution is to manually compile the dependency first.
In my case I was trying to build sdl_sound, but it failed due to meson-0.51.2 needs Python 3.5 at least, but 2.7 was specified.
To fix this I compile meson first, then I go back and compile sdl_sound.
söndag 22 september 2019
Avoid configuration prompts when installing freebsd ports
When installing ports with many dependencies, repeatedly stopping the compilation to show a configuration prompt is annoying, especially if you want the default values. This can be avoided in a couple of ways.
When installing a port, adding either of these batch flag uses default.
The batch flag can also be set as an environment variable.
What if you want to configure everything first and then compile?
Sources:
1 unix.stackexchange.com
2 unix.stackexchange.com
When installing a port, adding either of these batch flag uses default.
make install BATCH=YES
make install -DBATCH
The batch flag can also be set as an environment variable.
export BATCH=yes
What if you want to configure everything first and then compile?
make config-recursiveRemember that this command needs to be run many times until all configuration has been performed.
Sources:
1 unix.stackexchange.com
2 unix.stackexchange.com
Get octal permissions for files.
Sometimes it would be nice to read the permissions in octal, not only set it in octal.
This can be done using the stat tool.
This command will list all files/folders and their octal permission.
-c is for specifying the display format.
%a is the octal permission and %n is the file name.
Source: AskUbuntu.com
This can be done using the stat tool.
This command will list all files/folders and their octal permission.
stat -c "%a %n" *
-c is for specifying the display format.
%a is the octal permission and %n is the file name.
Source: AskUbuntu.com
söndag 11 december 2016
error while loading shared libraries: libtorrent.so.19
After compiling rtorrent on Ubuntu 16.04 I got the following error message:
rtorrent: error while loading shared libraries: libtorrent.so.19: cannot open shared object file: No such file or directory
The solution was to add the following to /etc/ld.so.conf
include /usr/local/lib
Then after doing that run
ldconfig
Source: Ubuntu Forums
rtorrent: error while loading shared libraries: libtorrent.so.19: cannot open shared object file: No such file or directory
The solution was to add the following to /etc/ld.so.conf
include /usr/local/lib
Then after doing that run
ldconfig
Source: Ubuntu Forums
fredag 18 november 2016
Raspbian upgrade from wheezy to Jessie hangs on Started Permit User Sessions.
After I upgraded from wheezy to jessie my Raspberry refused to boot. It was stuck on Started Permit User Sessions.
The solution is in editing the cmdline.txt at /boot
I changed mine from this:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:VGA8x8 plymouth.enable=0
to this:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootdelay=10 rootwait usbhid.mousepoll=0 init=/lib/sysvinit/init
After reading at the Raspberry forums and it booted fine again.
The solution is in editing the cmdline.txt at /boot
I changed mine from this:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:VGA8x8 plymouth.enable=0
to this:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootdelay=10 rootwait usbhid.mousepoll=0 init=/lib/sysvinit/init
After reading at the Raspberry forums and it booted fine again.
Prenumerera på:
Inlägg (Atom)