Most Popular
1500 questions
125
votes
9 answers
How to mount a NTFS partition in /etc/fstab?
I have two partitions that I want to mount on startup:
/dev/sda3 /mnt/devel ext4 defaults 0 2
/dev/sda2 /mnt/excess ntfs defaults 0 2
The ext4 partition mounts fine (owned by me, writable only by me), but the NTFS mounts owned…
Amanda
- 9,723
125
votes
3 answers
Copy a file and keep the same timestamp of the original file
I need to a copy file and after that I need to change the timestamp attributes as the original file. How can I do it with the terminal or any other way?
user829468
125
votes
4 answers
How to separate opened windows in alt+tab switcher in Ubuntu 18.04?
When I have multiple windows of an application opened e.g. Chrome main window and Incognito window, and I press Alt+Tab to switch between them, I see only one Chrome icon. I have to then press down key and then right (or left) to switch to the…
Mazhar
- 1,353
124
votes
10 answers
Strange artifacts along window borders after waking computer from sleep mode
NB: Nvidia has released an official fix; please see ByteCommander's answer, my own answer and/or Kaz Wolfe's answer.
Upon waking up Ubuntu 16.04 from Suspend, the following graphical glitches appear around all windows, context menus, and…
You'reAGitForNotUsingGit
- 14,969
124
votes
7 answers
Prevent gedit from creating files with the '~' (tilde) suffix
I have observed that in gedit if I edit a file, another file is created in the same directory (the one with the same filename and a tilde '~' suffix). The extra file remains even if I close gedit.
I understand the need for a temp file (eg. in case…
George Kastrinis
- 1,395
124
votes
5 answers
How do I turn off Caps Lock (the lock, not the key) by command line?
For some reason my laptop is stuck in Caps Lock. I have the Caps Lock key mapped by xmodmap to hyper_l, so I don't have a caps_lock key to turn it off. Is there a way I can turn it off by command line? It would be nice if I could reset the lock…
Echogene
- 2,345
124
votes
9 answers
16.04 LTS wifi connection issues with Realtek RTL8723BE adapter
I discovered several issues with wifi connection after installing 16.04 LTS.
First, wifi doesn't reconnect normally after sleep or hibernation. Sometimes the network icon turns into a "up and down arrows"(I don't know what it is for) after waking…
aaa
- 2,624
- 5
- 17
- 22
124
votes
9 answers
How to install PHP 7?
PHP 7 came out yesterday and I would like to give it a try.
PHP 7.0.0 comes with a new version of the Zend Engine, numerous improvements and new features such as
Improved performance: PHP 7 is up to twice as fast as PHP 5.6
Significantly reduced…
hg8
- 13,582
124
votes
8 answers
fatal error: sys/cdefs.h: No such file or directory|
It has been weeks that I am trying to use Code::Blocks IDE on Ubuntu 14.04 LTS to program Atmega16, however I am hindered by the following error while compiling/building the program in C::B
/usr/include/features.h|374|fatal error: sys/cdefs.h: No…
Mandar
- 1,361
124
votes
21 answers
virt-manager can't connect to libvirt
I'm running Ubuntu 12.04.2 32 bits.
The error doesn't show up if I start gksudo virt-manager.
libvirt-bin is installed.
I don't know how to check for the daemon.
I am a member of libvirtd.
Output of ps ax | grep libvirt:
9225 ? Sl 0:04…
That Brazilian Guy
- 4,490
124
votes
12 answers
How to search for all the files starting with the name "ABC" in a directory?
I need to search for files starting with some particular name. There can be multiple files starting with a particular pattern and I want to list all such files present in the directory.
R11G
- 1,573
124
votes
2 answers
What does `nomodeset` do
Since installing Ubuntu 12.10 I have been playing around trying to get my Radeon HD 5450 gpu to work with the proprietary driver, as from the start installing the driver meant losing unity.
I won't list the steps I took as it is not a requirement to…
Chris Carter
- 3,057
124
votes
6 answers
SSH Public Key - No supported authentication methods available (server sent public key)
I have a 12.10 server setup in a virtual machine with its network set to bridged (essentially will be seen as a computer connected to my switch).
I installed opensshd via apt-get and was able to connect to the server using putty with my username and…
F21
- 4,349
124
votes
5 answers
How do I get the parent process ID of a given child process?
How to get parent PID from a given child's PID?
I know I can manually check it under /proc, I wonder if there is a smart/better way to achieve this in Ubuntu. Note the parent may or may not be killed.
Thanks
cache
- 1,541
124
votes
1 answer
Key is stored in legacy trusted.gpg keyring after Ubuntu 22.04 update
I get 3 warnings after Ubuntu 22.04 update on a Digital Ocean LAMP stack droplet.
W: http://repo.mysql.com/apt/ubuntu/dists/bionic/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in…
newcat1000
- 1,594