Greatest Hits

25
votes
4answers
102k views

How to edit files in a terminal with nano?

Sometimes, a graphical text editor like gedit or kate cannot be used (because you're in a virtual console for example). Luckily, there are text editors for the terminal. An easy one is nano, but I ...
50
votes
3answers
90k views

How to get to the GRUB menu at boot-time?

This issue came up recently for me (and I've been prompted to lodge it as a specific question about it): My system is not dual-boot, I run a standard Ubuntu desktop system "on the metal" (I think ...
10
votes
2answers
57k views

How to uninstall VirtualBox in 12.04?

Can anyone help me removed VirtualBox? By the way, I couldn't install some softwares, is it because it is a 64-bit version?
4
votes
4answers
61k views

How to install startupmanager in 12.04?

I installed 12.04 today. I have two hard disks and separate OS. I want to install startupmanager. I previously installed startupmanager in 11.10 for dual hard disk booting with XP but after 12.04 ...
9
votes
2answers
55k views

How to compile C++ source code (“iostream.h not found” error)?

I do not want to discuss about C++ or any programming language!I just want to know what am i doing wrong with linux ubuntu about compiling helloworld.cpp! I am learning C++ so my steps are: open ...
4
votes
1answer
59k views

Trying to configure eth0 and eth1 but Failed to bring up eth1

Trying to do below on Ubuntu 12.04. Trying to configure eth0 and eth1, eth0 works fine, but failed to bring eth1. Below is the settings /etc/network/interfaces: auto eth0 eth1 iface eth0 inet ...
27
votes
5answers
89k views

How to change the LightDM theme/greeter?

I downloaded a couple greeters for LightDM, but I have not figured out how to enable them. Is there a way to switch greeter, either by graphical or command-line method?. I do not intend to change ...
57
6
votes
3answers
47k views

MicroSD card is set to Read-only state. How can I write data on it?

I have a MicroSD card reader in my notebook. When I insert a MicroSD memory card into it, I can't write any data on it - it's read-only. The same thing happens when I try to do it under root. And I ...
15
votes
5answers
71k views

How to find the Process ID (PID) of a running terminal program?

I am running a program in the terminal that I can't escape with Ctrl-C and that I want to kill. How can I find its PID?
28
votes
3answers
93k views

'chmod u+x' versus 'chmod +x'

What is the difference between chmod u+x and just chmod +x? I have seen a ton of tutorials that say to use u+x to make scripts executable. However, the u is not mentioned in the chmod help or ...
36
votes
3answers
58k views

Can a Raspberry Pi run Ubuntu?

I was thinking about buying a Raspberry Pi, and running Ubuntu on it. I have looked around the web, and a lot of stuff says that it's difficult for it to work on ARM processors. Has anyone figured out ...
18
votes
5answers
74k views

passwordless ssh not working

I've tried to setup a password-less ssh b/w A to B and B to A as well. Generated the public and private key using ssh-keygen -trsa on both the machines. Used the ssh-copy-id utility to copy the ...
12
votes
6answers
41k views

Trying to do ssh authentication with key files: server refused our key

I'm trying to setup ssh authentication with key files in stead of username/password. The client is a Windows box running PuTTY and the server is a Ubuntu 12.04 LTS server. I downloaded puttygen.exe ...
5
votes
1answer
35k views

Graphical GRUB editor for Ubuntu 13.10

I wanted to ask what graphical GRUB editors are there for the latest Ubuntu release (13.10)? And how to install one? I searched through the Ubuntu Software Center but I can't find anything there. I ...
48
3
votes
4answers
43k views

How to change ip address in ubuntu desktop through command line

In Ubuntu desktop 13.04 changing /etc/network/interfaces file don't change ip address or convert DHCP to static network interface configuration. after changing the file I tried sudo service ...
15
votes
4answers
55k views

How do I change keyboards from the command line?

How I change keyboard layouts from the command-line? For example, I want to switch from English to Hebrew. I'm able to do it from lightdm with the little icon in the corner of my screen.
16
votes
5answers
94k views

How to set up Ubuntu Server as a NAS?

I am looking to set up Ubuntu Server as a headless NAS for my home. I would like to have file storage there, as well as a central hub for my MP3s and pictures. What are the best packages out there to ...
77
21
votes
4answers
46k views

How to install an init.d script in ubuntu?

I am trying to install an init.d script, to run celery for scheduling tasks. Here is the steps I followed: copied the file celeryd and pasted it in folder /etc/init.d/ created a configuration file ...
18
votes
10answers
93k views

Fix corrupt NTFS partition without Windows

MY NTFS Partition has gotten corrupt somehow (it's a relic from the days when I had Windows installed). I'm putting the debug output of fdisk and blkid here. At the same time, any OS is unable to ...
6
votes
3answers
69k views

How do I remove the FGLRX drivers after I've installed them by hand?

I installed ati-driver-installer-11-9-x86.x86_64.run downloaded from the ATI Website. However I installed the generic version instead of building a distribution specific installer. Now I have the ...
19
votes
5answers
57k views

Ripping DVD to iso - Accurately

I have been using Brasero to rip my DVD collection to .iso. However, I've discovered some errors in some of the DVDs through playback e.g. VLC player would just stop playing the iso file when a bad ...
73
11
votes
3answers
14k views

Keybord input not work in Chromium 34 Ubuntu 14.04 aura (260972) [using Fcitx would avoid this issue]

Updated: Replacing iBus with Fcitx would be a good solution for this issue. After my test, Fcitx English, Chinese input methods do work in Chromium 34 Ubuntu 14.04 aura (260972), and of course in ...
42
votes
1answer
53k views

Dual boot Surface Pro with Ubuntu?

How could I setup a dual boot for Ubuntu and Windows 8 on my Microsoft Surface Pro with 128 GB. Note: My dual boot solution is below.
29
votes
4answers
58k views

How can I upgrade the Ubuntu LTS kernel to newer?

I just installed Ubuntu 12.04.2 64-bit on my desktop PC and I see the kernel in System Monitor is 3.5.0-23 but in Ubuntu 12.04.2 in my laptop the kernel is 3.2.0-38. I have already tried to run the ...
43
2
votes
2answers
22k views

How do I install utorrent on ubuntu 14.04 other instructions seem specific to older versions of the os

I have tried following some of the step by step instructions given but I think some of eh codes and instructions that need to be entered into the terminal window may be specifically for older versions ...
13
votes
4answers
48k views

How to use Whatsapp mobile application on Ubuntu Touch?

In my Android I have "Whatsapp" application running. But mobile freak I am not, and specially the mobile keyboards. So how can I run my same application, same account from my Ubuntu desktop PC? ...
11
votes
4answers
48k views

run python in terminal

Trying to learn how to run my scripts through Ubuntu's terminal regularly. That being said I am familiar with bash, wget, and awk being called but how do I call python files to run in the terminal? ...
64
16
votes
4answers
62k views

I receive the error 'grub-install /dev/sda failed' while attempting to install Ubuntu as the computer's only OS.

I am attempting to install Ubuntu on a box which was previously running Windows 7. I have also experienced the dreaded "Unable to install GRUB" error. I am not attempting to dual boot. I have ...
9
votes
3answers
81k views

Enable graphics Card in Virtual Box

I recently brought a new laptop with following configuration Intel i5 2450 8 Gb DDR3 RAM Nvidia geforce gtx 520 1 GB card I had setup a Windows 7 virtual machine using VirtualBox. I want to use my ...
9
votes
1answer
46k views

How do I mount a CIFS share via FSTAB and give full RW to Guest

I want to create a Public folder that has full RW access. The problem with my configuration is that Windows users have no issues as guests (they can RW and Delete), my Ubuntu client can't do the same. ...
0
votes
2answers
14k views

How to run Terminal as root?

When we want to run a programs as root we use sudo, gksu, gksudo and etc. Now my question is how do we can run a Terminal as the root user in Terminal? I tried with using gksudo terminal and gksu ...
34
votes
2answers
74k views

How do I configure a new Ubuntu installation to accept ssh connections?

I just installed Ubuntu 11.04 (in a VM). How do I set it up to allow me to ssh into it? (Right now I get "ssh: connect to host x.x.x.x port 22: Operation timed out".)
74
42
votes
5answers
98k views

Installing Ubuntu on a SSD

Going to install Ubuntu 10.10 on new intel x25M 80GB SSD. It will be fresh install. I have been googling for past few days and getting overwhelming articles/blogs/Q&As. One particularly very ...
18
votes
5answers
69k views

fsck can't find fsck.ntfs

On several machines that I've upgraded from Natty to Oneiric, I get an error every boot (one for every NTFS partition): Serious errors were found while checking the disk drive for /windows/c. Press ...
69
7
votes
4answers
60k views

How do I update/install Perl

The Perl package is in /usr/bin and is an older version (5.12.4) and the current stable release appears to be 5.14.2. How do I update this version? Root access is required, and I do not want to ...
71
8
votes
3answers
35k views

E: Unable to correct problems, you have held broken packages

I am using Ubuntu 13.04 which I installed few days back. I am trying to install nodejs and npm. I tried to install from command line first and then uninstalled it. Then something broke. sudo apt-get ...
6
votes
2answers
54k views

How do I mount my Android phone?

I'm puzzled because my phone used to just appear when I plugged it in. It doesn't anymore and The development options are definitely set to allow USB debugging. The phone is charging via USB but ...
-2
votes
4answers
28k views

How do I read a variable from a file?

I want to insert in my script a value (string) that I would read from a text file. For example, instead of: echo "Enter your name" read name I want to read a string from another text file so the ...
15
votes
6answers
33k views

Not able to execute a .sh file: /bin/bash^M: bad interpreter

I wanted to execute a shell script: -rwxr-x--x 1 root root 17234 Jun 6 18:31 create_mgw_3shelf_6xIPNI1P.sh I tried to do a standard procedure, but I am got this error: ...
6
votes
2answers
66k views

Install Ubuntu next to Windows 8 (UEFI dual boot)

Windows 8 is already jnstalled in UEFI mode on an Asus g55vw laptop. Sad but true, I need it - for now. Downloaded the last version of Ubuntu 12.10. Made a bootable CD from the iso-file. Reboot in ...
34
votes
5answers
59k views

How to search for strings inside files in a folder?

Is there any utility to make searches for a string inside ASCII files to avoid command line searches? How to make a command line search, for example for the string "test" inside all files in the ...
2
votes
2answers
46k views

Moving file from folder 1 to folder 2 in terminal

I am trying to move a text file from folder 1 to folder 2 via terminal. I'm doing this for a school project to show what actually happens when you copy paste. I'm doing cp/home/rits/desktop/folder1 ...
9
votes
3answers
39k views

How do I install filezilla?

I'm using 13.04 I go to ubuntu software center and find filezilla but there is no button to install. I try to find it in ubuntu start button at application or ubuntu dash how its called and click ...
34
votes
3answers
87k views

Where are the Apache and PHP log files?

I've installed Apache, PHP, and MySQL on Ubuntu 10.10 desktop edition, and it's working fine. Except I have no clue where to look for Apache or PHP log files.
64
votes
4answers
52k views

How can I get octal file permissions from command line?

There is a chmod command to set file permissions, but can I get file permissions in octal mode (such as 755) from the command line?
14
votes
2answers
64k views

Bash: ./filename : Cannot execute binary file

I couldn't execute a fortran compiled code in ubuntu 11.10 32 bit. Error message is Bash: ./filename : Cannot execute binary file. I've installed the gcc and gfortran libraries too. Could anyone ...
6
votes
4answers
45k views

'Some index files failed to download' while updating

When running sudo apt-get update I get these following errors: Err archive.ubuntu.com quantal InRelease Err archive.ubuntu.com quantal-updates InRelease Err archive.ubuntu.com quantal-backports ...
12
votes
8answers
100k views

How to boot Ubuntu from EFI/UEFI?

I installed Ubuntu 11.10 on a newly bought Lenovo ThinkCentre Edge 71 (model: 1577-G3G) with EFI boot enabled. I opted for the Use Entire Disk option. Even though the installation process went without ...
14
votes
6answers
67k views

How to make hdd's mount at startup in ubuntu 12.04

How do you make HDDs and partitions mount at startup with the ubuntu system? I always keep my media and data files on separate partitions - one 2tb HDD and a 400 odd gig partition. I have been ...
4
votes
3answers
47k views

Ubuntu won't boot from a USB on my Windows 8 laptop

Yesterday I set up Ubuntu on a 32GB Sandisk flash drive. I booted it up on my Windows 7 PC, and it works flawlessly. I haven't had any problems getting it to boot with USB priority on that machine, ...