Hot answers tagged defaults
4
I'm going to guess the following
all of those tools use XdgUtils
if you type xdg-open http://google.com it'll open with Chromium
and that you have the problem described in this Ubuntu forumspost
So my suggested answer is:
$ xdg-mime default firefox.desktop x-scheme-handler/http
(and ditto for https)
4
When a new user and his home directory are created, the home directory is "inititalized" with the contents of /etc/skel.
So if you setup a desktop like you want it to be for new users and then copy the relevant config-files to /etc/skel, that's what the desktop will look like for new users.
3
I'd help you out but I no longer run gentoo so here's a faster way to find out than installing a VM. Download the latest tarball to a directory and extract it. mount proc and dev like you would for an install. chroot in and install whatever server daemons you've installed, you probably need to start them too. now run.
find /var ! -user root -ls
this ...
2
You should take a look in ~/.local/share/applications/defaults.list under [Default Applications]. There you should set the text/plain to point to the .desktop entry for vim, which is usually located in /usr/share/applications/. E.g:
text/plain=gvim.desktop
2
Well, "/var" is generally for data generated by programs, so it may not be possible to tell you exactly who should own what without duplicating your system. I can think of two ways you might fix it:
Set up another version of your web server on a spare or virtual machine and then check /var.
Just change to root/root and then see what errors come up (most ...
2
FreeBSD grep is GNU grep, with a few patches applied:
# which grep
/usr/bin/grep
# /usr/bin/grep -V
grep (GNU grep) 2.5.1-FreeBSD
Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
It ...
2
cron
Instead of doing this as a @reboot, what if you restructured things slightly so that it was say every few minutes, and did a check to see if tmux was already running, if not, then call your tmux_autostart.sh.
Example
Every 5 minutes run to see if tmux_autostart.sh is running. For starters a test like this will see if tmux_autostart.sh is up:
# down
...
2
You might be using share-level security (security = share) in your smb.conf file. In share-level security, Samba uses the share name as the username for the connection and does not ask for a username in the protocol. This is basically how Window 98 worked. You probably want security = user and you will need a proper smbpasswd file as well as Samba can't ...
1
Your @reboot job is in root's crontab. The variables set in a crontab only apply in this crontab, so the settings in /etc/crontab have no influence on the job executed by root's crontab.
The default shell in Cron is /bin/sh, and the SHELL environment variable is set to /bin/sh unless overridden. So Tmux starts with SHELL=/bin/sh.
It appears that your ...
1
Just create an alias, in bash add to your ~/.bash_profile:
alias grep /usr/local/bin/grep
(I believe other shells can do something similar.) That way you can cherry pick individual executables. Even call your alias gnugrep if you don't want to loose the system one.
1
update-alternatives changes the application to use to open a web browser, not the application to use to open a web page. The two are not directly related: “I want to browse the web” is different from “I want to browse this web page”, and there are different kinds of content that happen to all open in a web browser.
What you need to change is which ...
1
Eureka!
Thanks to a combination of the answers here, a discussion about setting the login screen's wallpaper, and a general discussion about running an X program from another console, I finally managed to solve this.
I do need to set the setting as the gdm user. But, simply running gsettings set ... as gdm will fail because of the X11 error. So, I also ...
1
Run sudo su gdm -c 'gsettings …' (or sudo sudo -u gdm gsettings …). The command sudo -u gdm prompts you for a password because you don't have a specific authorization to run commands as gdm through sudo. But root can usurp any user, and you can become root, so first become root then become gdm.
Note that I don't know if running gsettings as the gdm user ...
1
You're not supposed to login as gdm user, that's just a convenient way for the OS to assign ownership of a group of files and their associated read,write,execute permissions.
Are you logged in a console or xsession while trying
gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action 'blank'
I logged in as joeuser, did a sudo su - and ...
1
perhaps you should do a scan of your system with a tool like tiger. Tiger will pick up lots of things like this, and is a great way to get lots of advice and suggestions about how to secure your system. Tiger can also be useful as a kind of Intrusion Detection System, too.
Only top voted, non community-wiki answers of a minimum length are eligible