Tag Info

Hot answers tagged

7

Link Mint is an Ubuntu-based distribution intended for desktop systems. One of its chief priorities is "ease of use" so a firewall just puts into play something that could break things for users. It's easier if the firewall only gets turned on if the operator is someone who knows what such a thing even is versus a novice user saying "Why don't it no worky?"


5

As @Zelda mentioned the messages are hardcoded. If you want to change it beyond amending the message with additional bits: $ sudo shutdown -h +120 Save your work. You'll need to recompile shutdown, creating your own executable that includes the customized message. For example, here's a sample source file, shutdown.c. Lines such as these would need to be ...


5

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.


4

The appres utility lists the resources used by an application, both user and default. appres XTerm xterm The first argument is the class name (xterm -class Xxx). The second argument, which is optional, is the instance name (xterm -name xxx). The “Large” font is .VT100.font5 or .VT100.utf8Fonts.font5. See the manual for whether .utf8Fonts is used, it's a ...


4

You cannot change the default message, you can only add some specific message of your by providing this after the time: # shutdown 60 Down in an hour Broadcast message from zelda@mongrel2_test (/dev/pts/0) at 6:37 ... The system is going down for maintenance in 60 minutes! Down in an hour You do not have to quote the text after the number of ...


3

With setfacl you can set default permissions but not default owner/group for newly created files. To get new files to be owned by a specific user, you'd need a setuid bit that works like the setgid bit on directories. Unfortunately that is not implemented. With setfacl you can do something which is nearly equivalent in most scenarios: You can set an ACL ...


3

If using xdg-open to open applications, then use xdg-mime to set the default application for a given mime type (typically, installing xdg-utils gives you the xdg-mime and related programs). For example, to see the "filetype" (mime-type, if you will) of given file: $ xdg-mime query filetype tmp.txt text/plain $ xdg-mime query filetype foo.pdf ...


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 ...


3

Linux distributions typically don't have many services (any) running on the external interface and those that do usually require the external access. They systems don't gain significantly from having a firewall. However, I lock down each of my Linux hosts with a firewall, there are four main purposes. Log hosts scanning services that aren't running; ...


3

AFAIK there is no configuration file for cryptsetup. You can of course define an alias and put that somewhere where it gets read in at login: alias cryptsetup='cryptsetup --readonly'


3

Try going to /home/@user/.config/ and remove the whole deadbeef folder to reset. Save that file to backup configuration.


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

$EDITOR .config/gtk-2.0/gtkfilechooser.ini You are looking for the line SortColumn and SortOrder SortColumn=modified SortOrder=descending should give you what you are trying to achieve.


2

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 ...


2

The key is File|Properties. Choose this menu item with a file of the target filetype selected, go to "Open With" tab and press "Reset." Then select an application and press "Set as Default." Kitchen tested on Nautilus 3.2.1.


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

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

Keep the lines as they were in original user-dirs.dirs : XDG_MUSIC_DIR="$HOME/Music" XDG_PICTURES_DIR="$HOME/Pictures" XDG_VIDEOS_DIR="$HOME/Videos" And now create symbolic links to point to your windows folders (make sure you have no important data in the three concerned folders : cd ~ rm -fr Music Pictures Videos ln -s /windows/home/Music ln -s ...


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 ...


2

I don't have Chrome installed, only Chromium, but I hope they aren't too different for this to work. When I choose "Don't ask again", Chromiom stores the following setting in my ~/.config/chromium/Profile 1/Preferences file: { "alternate_error_pages": { "enabled": false }, "apps": { "shortcuts_have_been_created": true }, ...


1

A new file is always created belonging to the user that the process creating the file is running as. (The effective user ID, to be precise.) This cannot be changed, because allowing users to create files belonging to other users would be security hole, similar to allowing non-root users to give away a file. Whatever you're trying to do, you don't need to ...


1

You can use lsof to list all files by given process id and grep for fonts. lsof -p <process_id_of_xterm> | grep fonts for example, lsof -p `ps -a | grep xterm | cut -d' ' -f1` | grep fonts sample output: $ lsof -p `ps -a | grep xterm | cut -d' ' -f1` | grep fonts xterm 17560 testuser mem REG 253,1 137272 9154732 ...


1

Try this -- it queries the X server resource database % xrdb -q| grep -i font See also % man xrdb


1

That's expected behavior: this menu only changes options for the current instance of Emacs. The Options menu mostly provides quick access to some options that people commonly change mid-session. To make permanent changes, open the Customize interface from the Options menu. Go to “Emacs” (the toplevel customization dialog), then “Faces”, then “Basic Faces”, ...


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

I ended up using this patch for xdg-open, which just hardcodes deluge. Hack central but does the job, and at least taught me that xdg-open is a script which I can play with.


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 ...



Only top voted, non community-wiki answers of a minimum length are eligible