Hot answers tagged

11

systemd units need not obey files in /etc/default, and they may or may not. systemd is easily configurable, but require that you know the syntax of a systemd unit file. Packages ship unit files typically in /lib/systemd/system/. These are not to be edited. Instead, systemd allows you to override these files by creating appropriate files in ...


8

It could not be configured, because the timeout value is defined as constant value in the mutter source. gnome-shell refers mutter library. I found the timeout value at the mutter source, mutter-3.10.4/src/core/display.c. ... #define PING_TIMEOUT_DELAY 5000 And it's used by a below function named as meta_display_ping_window ping_data->ping_timeout_id ...


8

To achieve what you want run : fortune | cowsay -f ghostbusters And for random ... : fortune | cowsay -f `ls /usr/share/cowsay/cows/ | shuf -n 1`


8

You need to edit the .desktop file. First, open it in gedit or nano with one of these commands: sudo nano /usr/share/applications/firefox.desktop sudo -H gedit /usr/share/applications/firefox.desktop Then find the line that says Name=Firefox Web Browser, and change it to Name=Firefox: Of course, the same works for Google Chrome etc.


7

The color code is #d64937 find "/usr/share/themes/Numix Daily/gtk-3.0" -type f -name '*.css' -print0 | xargs -0 grep 'd64937' therefore you have to change two files: sudo nano "/usr/share/themes/Numix Daily/gtk-3.0/gtk-dark.css" sudo nano "/usr/share/themes/Numix Daily/gtk-3.0/gtk.css" Search for @define-color selected_bg_color #d64937; And replace ...


7

Option 1: /etc/udev/rules.d/70-persistent-net.rules Option 2: /etc/NetworkManager/system-connections directory, inspect any of the files for connections listed there. Options 3: /var/log/syslog file and archived ones, syslog.*.gz. Specifically, look for something in format date hostname dhclient: Listening on LPF/wlan0/XX:XX:XX:XX:XX:XX Option 4: May be ...


7

In order to achieve this go to your Firefox Health Report (put that into the URL bar and press ENTER): about:healthreport Then click on the button in the top right hand corner: So that it becomes: You have no disabled Data Sharing, this means that the report will still be generated, but no longer shared with Mozilla.


6

Here is one that a friend of mine and I have been working on. It gives a gray dashed line when you are a normal user, then if you are running commands as a root user, it changes to red for both the dashed line and the text. In your .bashrc file, add the following code to the bottom of the file: if [ -f "$HOME/.bash_ps1" ]; then . "$HOME/.bash_ps1" ...


6

There are many possible places: Your config folder ~/.config. Watch with inotifywatch -e modify,create,delete -r ~/.config The dot files direct to your home folder. Watch, e.g. your .mozilla folder with inotifywatch -e modify,create,delete -r ~/.mozilla The files in your local folder ~/.local. Watch with inotifywatch -e modify,create,delete -r ...


5

To run Tomcat on a port below 1024 in Ubuntu/Unix, the service needs root privileges. And that you do not want. Use a port redirection via iptables iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080


5

Gnome Shell can be changed using Gnome Extensions - I think this extension will work for you: This is done by dragging and dropping the windows into position, it will show a orange highlight (doesn't seem to match the theme :/ ). You can change the gap between windows in the settings: Though currently this extension is not available for GNOME 3.18, so ...


5

First of all, open up your ~/.bashrc file and enable color prompts: nano ~/.bashrc uncomment then line #force_color_prompt=yes Then, change the PS1 line directly under the line if [ "$color_prompt" = yes ]; then to: PS1='${debian_chroot:+($debian_chroot)}\[\033[00;32m\][\t] \[\033[01;34m\]\u@\h:\w\$ ' As you can see, 01:34m is light blue and 00:32m ...


5

As I wrote already here for Firefox and Google Chrome, here the part for Firefox: The history can be found in a database table in places.sqlite in SQLite format 3: $ file ~/.mozilla/firefox/rsbxl7fx.default/places.sqlite ~/.mozilla/firefox/rsbxl7fx.default/places.sqlite: SQLite 3.x database, user version 26 rsbxl7fx.default Depending on your profile ...


5

According to man 5 sshd_config: %h is replaced by the home directory of the user being authenticated This means the file will be /home/user/.ssh/authorized_keys. If the .ssh directory is missing (which seems normal if not previously configured) you can create it and also the authorized_keys file within and then populate the file's contents with your ...


4

You can get the file from the OpenSSH client package: apt-get download openssh-client dpkg-deb --fsys-tarfile openssh-client_*.deb | sudo tar -xC / ./etc/ssh/ssh_config This will extract the ssh_config from that package directly to its destined location /etc/ssh/.


4

To tell Bazaar who you are, simply run: $ bzr whoami "Bob Dobbs <subgenius@example.com>" $ bzr launchpad-login subgenius whoami will tell Bazaar which name and email address it should use for your commit messages. With launchpad-login you set your Launchpad ID. This way code that you publish in Launchpad will be associated with you. ...


4

According to this mozillazine page the history for the browser is stored in places.sqlite file in the profiles folder (.mozilla/firefox/ on Ubuntu.) So, I pulled that file up and took a look at the tables within the database. Within the moz_places table there is a column last_visit_date which provides you with an Unix time/Epoch time number. However, there ...


4

Open skype's Options window, select the Advanced tab and enter your desired port number into the number field on the right. You should just take care that the new port is not already used by any other application and that you chose a number greater than 1023, as those are reserved.


4

Open the file /etc/nanorc (run sudo nano /etc/nanorc) and comment out the line set historylog in this section: ## Enable ~/.nano_history for saving and reading search/replace strings. set historylog Which should then look like this: ## Enable ~/.nano_history for saving and reading search/replace strings. # set historylog Then exit&save and you're ...


4

You can switch off online search results with the command: gsettings set com.canonical.Unity.Lenses remote-content-search 'none' To make the command run on startup, and make sure it is set after a restart, add the following to your startup applications: /bin/bash -c "gsettings set com.canonical.Unity.Lenses remote-content-search 'none'"


4

You need to use a binary number (2,4,8,16, 32) so either you use a bigger or a smaller range. Exactly 20 hosts just is not possible with a bitmask in a single rule: 16 hosts (192.168.1.16 to 192.168.1.31): sudo ufw allow proto tcp from 192.168.1.16/28 to 192.168.1.48 port 80 Details Address: 192.168.1.16 11000000.10101000.00000001.0001 0000 ...


4

On the edge of posting a duplicate of this one (but the question slightly differs), the script below does what you describe, if you run it with the arguments python3 /path/to/script.py 2 2 However, if there are more than four windows (or more than the cells of a grid, if you use other arguments than 2 2), the script places only the four oldest windows in ...


4

When you hover the mouse over that text, it says that config files will be saved in $(PWD) where you run tox rather than in $HOME/.config. For example, if my qtox executable is on Desktop, the configs will be on Desktop. This makes it easier to transport qTox as it will put everything in one place (folder).


4

Where Settings menu information is stored depends on some of the items. Such things as desktop background, themes, language, and keyboard shortcuts ( including custom ones ) - those all go into dconf schemas, while such things as Display settings and Network settings have to interface with xrandr and network-manager programs respectively. For instance, in ...


4

Well, the schemas for that section are in the package libgtk-3-dev so make sure that that is installed with: sudo apt-get install libgtk-3-dev And then if that is already installed, or installing that does not help you will need to manually load the schemas with: sudo glib-compile-schemas /usr/share/glib-2.0/schemas/ This command should be run upon ...


3

One possible general approach is this. Close all other programs except the one you're going to tweak. Make your tweak. Then, immediately run something like this: find ~/ -mmin -1 -type f -ls You may see some hits you may decide aren't relevant. find allows you to eliminate them: find ~/ ! -path "*mozilla*" ! -path "*google-chrome*" ! -path "*cache*" ! ...


3

1) First Go to System Settings → Window Behavior 2) Open Window Behavior, Select Window Actions by again selecting Window Behavior 3) In Inner Window, Titlebar & Frame section, Use the Mouse Wheel action to Change opacity Here is a transparent window


3

Using the Activities Configuration. You can disable the hot corner and there are plenty of other settings. Open the URL via Firefox browser to install the extension directly. After that, open the Tweak Tool for the configuration


3

On my installations the directory /etc/usb_modeswitch.d does not exist by default, so it must be created first: sudo mkdir /etc/usb_modeswitch.d To create the file, you could use the simple text editor nano to achieve this, using the following command: sudo nano /etc/usb_modeswitch.d/HuaweiE3531s-2.conf This will open the editor, where you can type in ...


3

The effect occurs when you use a sRGB JPG. Convert the image into RGB JPG or into a PNG and the effect/bug is gone.



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