Hot answers tagged

77

You can use the grep command from terminal: grep -r word * This command will find all occurrences of "word" in all the files under the current directory (or subdrectories).


73

Run Tools —> Create Desktop Entry in top menu of IDE.


62

Use IDE to create launcher. Open Tools -> Create Desktop Entry... Alternate method: You need to create a application launcher first. Installing gnome-panel sudo apt-get install --no-install-recommends gnome-panel To create launcher sudo gnome-desktop-item-edit /usr/share/applications/ --create-new This will open up a "Create Launcher" window ...


57

You can also press alt + ` (the key above Tab) to switch between instances of the current application.


57

Type gnome-shell --version in a terminal


56

The nginx: unrecognized service error means the startup scripts need to be created. Fortunately the startup scripts have already been written. We can fetch them with wget and set them up following these steps: # Download nginx startup script wget -O init-deb.sh https://www.linode.com/docs/assets/660-init-deb.sh # Move the script to the init.d directory ...


55

Make sure port 3389 is opened on your firewall and router. In Remmina edit your connection, click the "Advanced" tab and choose RDP under the "Security" option and save.


53

Open System Settings -> Keyboard -> Shortcuts Select Custom Shortcuts(you can go to Screenshot-s too and it will work) Click + Fill fields Name to Take a screenshot of area Command to gnome-screenshot -a or shutter -s(if u prefer shutter) Click OK Double-click on what you make and set shortcut Shift+PrtSc — And that's all ... ;)


51

You can easily change the hotkey for the HUD by going to System Settings --> Keyboard --> Short-cuts as in the following picture : Note that: Clicking ALT fast , shows the HUD. But When you click and hold you can use it easily for another function. I use ALT without any problems.


51

You can type in the terminal: cd /home/myUser/some/long/path/to/a/directory and then: nautilus . The above command will open nautilus in the folder /home/myUser/some/long/path/to/a/directory (the period is the current directory) Or in the Terminal just type: nautilus /home/myUser/some/long/path/to/a/directory


50

Good news: you can have Sticky Notes in Ubuntu 12.04 or 12.10. sudo add-apt-repository ppa:umang/indicator-stickynotes sudo apt-get update sudo apt-get install indicator-stickynotes If you'd also like to try an alternative, I can suggested XPad as well, which should be in the official repositories. Here's more info: ...


45

Install gnome-search-tool. sudo apt-get install gnome-search-tool Open Search for files select Select More Options and


44

The same snap feature exists in Ubuntu 12.04, only in Ubuntu you use CTRL+FLAG+UP/DOWN/LEFT/RIGHT. This only works for Unity 3D though. In Unity 2D you'll still have UP and DOWN, but not LEFT and RIGHT. With FLAG I mean the flag/Windows/system/super/... key.


42

You have to change the computers hostname as well. Edit the hostname file and replace the name gksudo gedit /etc/hostname also change the name in hosts gksudo gedit /etc/hosts Leave the other stuff there untouched. For the username, it would be cleaner if you deleted the old user and created your new one.


42

The second approach mentioned in this link worked for me. Manually download the key and add it. Hope that helps others too. The link above provides detailed explanation with screenshots. It also has some other simple methods that could be tried before doing this manually. Since it is not accessible from some regions let me describe the method that worked ...


41

Apache sudo update-rc.d -f apache2 disable Apache is still using rc.d init script, which is why you must disable it using update-rc.d. MySQL echo manual | sudo tee /etc/init/mysql.override MySQL on the other hand has converted to an upstart configuration file. The recommended way of disabling upstart services is to use an override file.


40

That shortcut is already built-in: Shift+PrtScr :) The full-list of screenshot keyboard shortcuts is:


39

If we check ownership of site1, we will find something like this, ls -ld /var/www/site1/ drwxr-xr-x 2 root root 4096 Oct 24 21:06 site1/ This means that the directory is owned by user root, group root. While user root has write permission (plus read and execute permissions) to the directory, group root has only read and execute permissions. We will ...


38

Instead I think this CPU usage is not normal and is related to the well-known kworker bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/887793 The solution for me and for many others was, first of all, find out the "gpe" that is causing the bad stuff with something like: grep . -r /sys/firmware/acpi/interrupts/ and check for an high value (mine ...


38

Try to press right Ctrl and your keyboard will be fully functional in remote computer. You will be able to use Alt+Tab. Clicking on the "keyboard" icon (which means "Grab all keyboard events") does the same.


37

This worked for me: Add these lines to the bottom of sysctl.conf net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 Then run sudo sysctl -p or reboot source: http://www.noobslab.com/2012/05/disable-ipv6-if-your-internet-is.html This of course won't stop bind from blindly trying to use ipv6 ...


37

Resolved it : /etc/vim/vimrc Already contains necessary feature. Just need to uncomment it: " Uncomment the following to have Vim jump to the last position when " reopening a file if has("autocmd") au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif endif (Infact, you can refer to ...


35

"Compiz is a compositing manager, which means that it enhances the overall user interaction by adding fancy effects to your windows, from drop shadows to awesome desktop effects like the Desktop Cube or the Expo view. Compiz can also be a window manager, which means that it is the software between you and your desktop apps. It enables you to move or resize ...


35

By opening System Settings > Displays you can change your "primary" screen by dragging the black little bar to the display you want and hit the Apply button. Restarted my PC and i didn't have to use xrandr anymore ^_^ Better explanation than mine you can find here: http://www.thebinaryidiot.com/archives/2011/11/11/gnome-shell-3-2-and-multiple-monitors/


34

1) It is NOT about how hard you push the mouse cursor to the screen edge, but how far you push it. To be able to reveal the launcher, you must continuously push the cursor against the edge to reveal it. 2) To fix the launcher reveal sensitivity: a. Install then start "CompizConfig Settings Manager" b. Navigate to "Desktop" -> "Ubuntu Unity Plugin" -> ...


34

Compiz looked like it worked. But it didn't work. So the solution to this is the following. First we check available modes. $ xrandr 1440x900 59.9+* 75.0 1280x1024 75.0 60.0 Then we pick the mode, including resolution and refresh rate. $ xrandr -s 1440x900 -r 75 Or just the refresh rate $ xrandr -r 75 Let's see if it worked $ xrandr ...


34

Quit google-musicmanager. Delete the directory ~/.config/google-musicmanager. Start google-musicmanager again. You'll get an initial setup wizard again - this time, choose an empty directory to upload music. Then the bug will not be there anymore. I found this workaround on ubuntuforums.org.


34

This is what works for me (Ubuntu 13.10): Reinstall vim as vim-gtk: sudo apt-get install vim-gtk select what you want using the mouse - then type to copy to clipboard: "+y to paste to vim from clipboard type: "+p I don't know why but comparing the output of vim --version shows that the usual vim installation is quite restricted compared to ...


34

tl;dr Yes it's the correct way. But to be more semantic: Yes, it's the correct way to allow .htaccess to override all directives in the /var/www directory. As you found out, AllowOverride is allowed only under the Directory section. Using your example: <Directory "/var/www"> AllowOverride All </Directory> This is telling apache, that ...


33

Installing Mono develop 4 on 12.04 precise Option 1 Compile Git version from source First un install your current version of mono develop with the software centre then from the terminal sudo apt-get install build-essential automake checkinstall intltool git sudo apt-get install mono-complete mono-addins-utils gtk-sharp2 gnome-sharp2 git clone ...



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