Most Popular

1500 questions
133
votes
2 answers

External links are opened as blank tabs in new browser window in Chrome

Since I installed Ubuntu (fresh install on a new machine), and set Google Chrome as default browser, whenever I open links from external apps these are open as blank tabs in new browser window (no actual redirection to site, just a blank tab). I…
unfulvio
  • 1,655
133
votes
5 answers

CPU benchmarking utility for Linux

I am looking for a utility that will benchmark CPU performance under single and multi threaded instances. At present I have an old rig with a dual core CPU (E7500) at 3.6 Ghz and I am looking at replacing it with a quad core CPU (Q9400) at 3.2…
fatso
  • 1,331
133
votes
2 answers

Removing files older than 7 days

I write below command to delete all files that are older than 7 days, but it doesn't work: find /media/bkfolder/ -mtime +7 -name'*.gz' -exec rm {} \; How can I remove these files?
133
votes
7 answers

How do I redirect command output to vim in bash?

I am trying to redirect the output of a bash command into a new file. If I try the pipe as below : ls -la | vim Bash shows me the errors : Vim: Error reading input, exiting... Vim: preserving files... Vim: Finished. I know that I can open Vim and…
faizal
  • 3,037
133
votes
12 answers

How to automount NTFS partitions?

I have two NTFS partitions, and I don't want to mount them manually every-time I start Ubuntu. How can I do this? Is there a tool or a code to use? If so, is it safe to automount? specially when they are being used by another OS?
Binarylife
  • 16,662
133
votes
12 answers

/usr/bin/sudo must be owned by uid 0 and have the setuid bit set

I have run following command accidentally sudo chown [username] -hR / Now sudo su getting error: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set How to Solve This?
Pandya
  • 37,289
133
votes
5 answers

What is the $DISPLAY environment variable?

I am new to shell scripting. I don't understand what the $DISPLAY environmental variable is. I have Ubuntu 13.10 and I use /bin/bash shell. I have two monitors. Questions: Command echo $DISPLAY will print :0.0 on my machine (on both monitors). What…
133
votes
19 answers

Can I skip over releases when upgrading?

I am currently using Ubuntu 10.04. I know there is a 10.10 release, but can I upgrade directly to 11.04? Could you walk me through the steps please?
Jared Reyes
  • 1,341
133
votes
5 answers

How to install Flash player on Ubuntu?

Even though I have the latest Adobe Flash player 11.2 for Linux in Firefox - ref: Flash player security doubts - a particular online flash game still requests that I update to the latest flash player. I've tried this online game on my laptop…
user190160
  • 1,331
133
votes
17 answers

What's the easiest way to set up a LAMP stack?

I set up a new VPS instance of Ubuntu and am wondering what the easiest way is to get up and running with a basic LAMP stack (i.e. which packages are required, which configuration options need to be tweaked, if any, etc.).
jerhinesmith
  • 1,733
133
votes
7 answers

How to set up aliases in zsh?

I know that in bash you can set up aliases in a .bash_aliases file, so that the command you type doesn't need to be a command stored in the binaries in the system. Is there any way I can get aliases into zsh?
Thomas Ward
  • 78,878
133
votes
6 answers

Export image as SVG in GIMP

I have a project I have been working on (an image) within GIMP and I would like to export it as an SVG. Is this possible, or am I going to have to stick with exporting multiple sizes of an image? I know GIMP can read SVGs, but can it export them?
133
votes
12 answers

Problems with Chrome browser after suspending the computer on Ubuntu 20.04

Kubuntu 20.04, 64 bit GPU: Geforce GT610 nvidia-driver-390 Chrome Version 85.0.4183.83 Intel i5-4430, core 4, 4 thread , 3GHz RAM: 16GB Each time I go into suspend mode and then resume, Chrome browser displays the current tab as full of sand of…
133
votes
4 answers

Ubuntu Server 18.04 LVM out of space with improper default partitioning

I installed Ubuntu Server 18.04 with the LVM option and left the default partition setup. Now my main drive only has 4GB in a 1TB hard drive. How can I fix this without starting from scratch? Results of df -h : Filesystem …
CyborgDroid
  • 1,443
133
votes
2 answers

How can I allow SSH password authentication from only certain IP addresses?

I'd like to allow SSH password authentication from only a certain subnet. I see the option to disallow it globally in /etc/ssh/sshd_config: # Change to no to disable tunnelled clear text passwords #PasswordAuthentication yes Is there a way to apply…
ændrük
  • 78,496