Greatest Hits

121
votes
8answers
307k views

How to clear bash history completely?

I want to clear all before command from history of my server. I use history -c it seems all things are cleared but when I ssh to the server,all commands are still there. How can I clear them ...
220
votes
3answers
463k views

What does “cp: omitting directory” mean?

I've issued the following command: sudo cp ~/Transfers/ZendFramework-1.11.4-minimal/library/Zend/* ~/public_html/cmsk.dev/library/ When I do this, I start getting the following messages: cp: ...
460
111
votes
6answers
476k views

How to access a usb flash drive from the terminal? (How can I mount a flash drive manually?)

I only have access to the command line I need to backup my data (on the user folder) to a pen. I don't know where/how can I do this is order to access the pen, and then do the cp command. How can ...
143
votes
12answers
295k views

How to check Internet Speed via Terminal?

Instead of going to sites like speedtest.net, or others, I want to check my current Internet speed from the terminal on Ubuntu. How can I do it?
15
votes
3answers
301k views

How to install Synaptic Package Manager?

I tried to install Synaptic Package Manager but I get the following error message: Package dependencies cannot be resolved. This error could be caused by required additional software packages which ...
63
votes
10answers
255k views

How to install NVIDIA.run?

I have a Nvidia Ge force Ge6150 SE graphics card. I am running ubuntu 12.04. When I try to install the .run file it fails. It shows the message like this: I Itried to install it after ...
33
votes
5answers
294k views

“Unable to locate package” while trying to install packages by apt

When I try to install any package through the command line, I get an error. Can anyone help me on this? $ sudo apt-get install <package> Reading package lists... Done Building dependency tree ...
318
votes
3answers
428k views

How to extract files to another directory using 'tar' command?

I thought tar archive.tar /users/mylocation would work, but it doesn't. How can I do that?
463
143
votes
25answers
234k views

How to fix Duplicate sources.list entry?

I keep getting this warning whenever I try to run sudo apt-get update. W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages (/var/lib/apt/lists/archive....
175
votes
5answers
343k views

How to increment a variable in bash?

How to increment a numeric variable in bash? I tried with var=$var+1 and var=($var+1) but it doesn't work. My variable is a number, but bash think that is a string. My bash version is 4.2.45(1)-...
247
123
votes
12answers
471k views

How to format a USB flash drive?

In Windows there is a straightforward "Format" option in a flash drive's right-click pop-up menu. Where's that in Ubuntu?
32
votes
5answers
423k views

Recovering moved .mod files using grubrescue

I did a dumb thing... I forgot that Ubuntu 10.04 (Lucid Lynx) switched to GRUB 2 which puts a ton of *.mod files (kernel modules) in /boot/grub. I thought they were soundtrack files put there ...
135
votes
6answers
479k views

How to format a USB or external drive?

Using Ubuntu 11.10, how do I format an external or USB drive? I don't find an option to 'format' when I right click. In the new version, the drives don't come up on the desktop but instead come on ...
371
75
votes
6answers
46k views

Last upgrade crashes network manager (no internet connection, no applet)

While upgrading today, something caused my wireless network manager to disappear. Not even connecting via wired connection. This error is being shown by files: **(nm-applet:2716): WARNING **: Could ...
148
votes
5answers
479k views

What is the correct way to install proprietary ATI Catalyst Video Drivers (fglrx) directly from AMD?

I am planning on doing a fresh install of Ubuntu and want to know what is the correct way to install ATI Catalyst Video Driver? There are multiple valid answers for this question spanning over ...
366
votes
8answers
308k views

How to enable hibernation?

In Ubuntu 12.04 and newer, hibernation has been disabled by default in policykit. How can I enable this back?
78
votes
6answers
493k views

How do I install .run files?

My PC has both Ubuntu and Windows 7 installed. I have installed all my drivers in Windows like Nvidia graphics, motherboard etc. Shall I install them in Ubuntu too? I looked on the web for my Nvidia ...
261
votes
7answers
452k views

How do I change the hostname without a restart?

I want to change the OS hostname but I do not want to restart. I have edited /etc/hostname but it requires a restart to get implemented. How to avoid this?
47
votes
2answers
197k views

How to uninstall Google Chrome?

I decided to try out Google Chrome and see if it was any different from Chromium, but now I can't figure out how to uninstall it. That's what I have installed. How to get rid of it is the question.
48
votes
6answers
193k views

How do I fix a “Wireless is disabled by hardware switch” error?

I just updated to Ubuntu 12.04 from 11.10 but soon after updating I was disappointed to see that Wireless is disabled by hardware switch. I can not click the button 'Enable wireless' which is ...
231
votes
7answers
272k views

How to install software or upgrade from an old unsupported release?

Recently I have installed an older version of Ubuntu on my old machine. When ever I am trying to install any software it is giving error sudo -i apt-get install vlc The error being flagged is under ...
51
votes
4answers
196k views

Boot Error - ACPI PCC Probe Failed

ACPI PCC Probe Failed is the error that pops up instead of the default GRUB loader after I updated my kernel to 3.19. I searched around and couldn't find much information except that it is a known ...
165
26
votes
3answers
403k views

What is the default root password?

I installed Ubuntu 12.04 LTS (Precise Pangolin), 64 bit. Nowhere was I asked to set password for root. I just installed AccuRev SCM software. It was installed under the /root folder by default. Now I ...
319
68
votes
10answers
164k views

VirtualBox '/etc/init.d/vboxdrv setup' issue

I have installed VirtualBox through the software centre, but when I try to start a VM, I get the following error: Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver (...
431
votes
44answers
335k views

What should I do when Ubuntu freezes?

All operating systems freeze sometimes, and Ubuntu is no exception. What should I do to regain control when... just one program stops responding? nothing at all responds to mouse clicks or key ...
75
votes
7answers
284k views

How to create a bootable Ubuntu USB flash drive from terminal?

Is there any way to create a bootable Ubuntu USB flash drive from the terminal without using any third-party applications like YUMI,Unetbootin, etc. I tried to create a bootable Ubuntu flash drive ...
111
votes
16answers
294k views

Higher screen resolution in VirtualBox?

I've just installed Ubuntu 10.04 into VirtualBox on Windows 7. Unfortunately the only options showing for screen resolution are 640x480 and 800x600 and the monitor is showing as 'Unknown'. How ...
45
votes
10answers
455k views

How to solve 'Connection refused' errors in SSH connection?

I have an Ubuntu Server 10.10 32-bit in my home. I'm making SSH connections to it from my PC via Putty. The problem is, sometimes I'm able to login seamlessly. However, sometimes it gives me an error ...
396
27
votes
5answers
245k views

Windows installer for Ubuntu 14.04 LTS onwards

Is there any windows installer(wubi) for Ubuntu 14.04 LTS? When I mount .iso file with daemon tools and run wibu.exe it just ask me if I want to reboot(I think it's usefull only when .iso burned on ...
278
64
votes
4answers
261k views

How to successfully restart a network without reboot over SSH?

In Ubuntu 14.04 neither sudo service networking restart nor sudo /etc/init.d/networking restart do anything any more. They also both exit with code 1. Something has obviously changed (or half changed) ...
30
votes
3answers
344k views

How to change root password for mysql and phpmyadmin

I've set up mysql and phpmyadmin and chose not to set a password when installing hoping that once set up i could login with root and no password but i get the following error from phpmyadmin: Login ...
62
votes
16answers
348k views

How do I open a text file in my terminal?

There is a file named RESULTS.txt and I want to open this file in my terminal. (I mean I want to see the file contents be displayed in the terminal and not in some text editor) How do I do that ?
90
votes
10answers
328k views

How to mount an ISO file?

I'm running into trouble trying to mount a large iso: dev@dev-OptiPlex-745:~$ sudo mount -o loop /home/dev/Hämtningar/matlab2011a_64.iso /cdrom mount: warning: /cdrom seems to be mounted read-only. ...
380
49
votes
8answers
218k views

An easy way to create a desktop shortcut?

I wonder, isn't still there an easy way to create a desktop shortcut in Ubuntu 14.04 (or Unity)? There is no context menu on desktop doing this. So I tried the following: I looked for an app I want ...
227
votes
7answers
185k views

How to add “Open terminal here” to Nautilus' context menu?

I am working on Ubuntu 12.04 64bit. I want to add "Open terminal here" to Nautilus context or right-click menu but it tries to download 32bit version from Internet.
124
votes
22answers
154k views

How to disable the touchpad?

I want my touchpad to be disabled when I use my mouse. How can I do that? touchpad-indicator has stopped working on 11.10. It used to work on 11.04. Gnome3 is not a solution as I don't like it and ...
587
399
votes
6answers
379k views

How to upgrade a single package using apt-get?

How do I update a single package? As far as man apt-get says apt-get upgrade doesn't take a package/list of packages as parameter: upgrade upgrade is used to install the newest versions of ...
409
73
votes
4answers
475k views

How do I remount a filesystem as read/write?

I'm trying to mount an hfsplus filesystem in a Xubuntu 12.04 VM (kernel version 3.2.0-23-generic) but when I type mount -o remount, rw /dev/sdb3 in command line it returns not mounted or bad option. ...
149
votes
4answers
191k views

How do I patch/workaround SSLv3 POODLE vulnerability (CVE­-2014­-3566)?

After the BEAST attack and Heartbleed bug, now I've heard about a new vulnerability in SSL/TLS called POODLE. How do I protect myself against being exploited? Are only servers or also clients ...
178
votes
6answers
213k views

How can I recursively delete all files of a specific extension in the current directory?

How do I safely delete all files with a specific extension (e.g. .bak) from current directory and all subfolders using one command-line? Simply, I'm afraid to use rm since I used it wrong once and now ...
28
votes
2answers
135k views

Install GNOME Desktop Ubuntu 15.04

How can I install Gnome Desktop on Ubuntu 15.04 with unity? Don't want to make a new clean install-- Any idea? Can't find any information about it!
40
votes
3answers
377k views

How to start GUI from command line?

I've installed the following version of ubuntu om my machine. ubuntu-12.04-desktop-i386.iso But when I switch on the computer, I get command line. Ubuntu 12.04 LTS COMP-1245 tty1 Once I ...
131
votes
14answers
214k views

How can I reduce the file size of a scanned PDF file?

I have a 72.9MB PDF file that I need to shrink into under 500KB. The file was a JPEG image that I had scanned, and then converted to pdf.
152
votes
10answers
196k views

How do I fix the GPG error “NO_PUBKEY”?

I added some extra repositories with the Software Sources program. But when I reload the package database, I get an error like the following: W: GPG error: http://ppa.launchpad.net trusty ...
554
107
votes
14answers
311k views

How can I install Windows after I've installed Ubuntu?

I have Ubuntu on my laptop. Now I want install Windows 7 in a dual-boot. How can I do this? I can't lose my Ubuntu files, and I'm afraid that I might break GRUB.
109
votes
8answers
371k views

How can I resize an ext root partition at runtime?

How can I increase the size of the root partition of a system at runtime? I have a partition that is not allocated after the root partition (which is also ext4), how can I add that unallocated space ...
108
votes
5answers
361k views

How to download a file from a website via terminal?

Suppose that we have a full URL of desired file e.g. http://domain.com/directory/4?action=AttachFile&do=view&target=file.tgz I would like to go without installing a new software. Is it ...
7
votes
3answers
126k views

How to use(/enable) FN keys to adjust volume at my asus laptop?

I have an ASUS laptop (ASUS X53S series) and I want to adjust the volume by using the FN key and F10 (mute), F11 (vol down), F12 (vol up). Also F9 key is not working as well(this is for enabling/...
43
votes
5answers
80k views

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 ...
88
70
votes
11answers
168k views

How can I move all the window controls to the right (or left)?

Downloaded Ubuntu tweak and set window controls to the right side. Only some programs follow the rule. Pidgin as an example has window controls on the right. But Chrome, Thunderbird, Geany, still have ...
505