Greatest Hits

13
votes
5answers
50k views

How to uninstall OpenJDK?

I don't want OpenJDK installed on my Ubuntu 13.04 system, but trying to uninstall the openjdk-7-jre yields the following message: $ sudo apt-get purge openjdk-7-jre Reading package lists... Done ...
36
votes
3answers
73k views

mv: Directory not empty

I want to move content of a directory within another directory with the same folders. Here's an example: I have ./backup wich have the directories base and test. Now I want to move these directories ...
2
votes
2answers
83k views

how to fix the hard-drive Bad Sector

I tried to fix my hard drive using Ubuntu but I found that message and didn't know what to do with.... I need to fix my bad sectors fsck /dev/sdb fsck from util-linux 2.20.1 e2fsck 1.42.5 ...
7
votes
3answers
67k views

How to make an xorg.conf file

I just installed Ubuntu 12.10 and I need to make a custom xorg.conf file. By default, there is not an xorg.conf file on my system. I know what I need to write in the config, but I just don't know how ...
20
votes
7answers
70k views

Grub does not show a Windows 8 option after dual boot

So, I've successfully dual-booted my Windows 8 machine with Ubuntu 12.04 . However, I still don't have a convenient method of choosing what OS to load at boot time. After installing Ubuntu, my ...
68
votes
2answers
92k views

How do I keep track of failed SSH log-in attempts?

I'd like to see if somebody has been trying to log-in by brute-force into my Ubuntu 12.04 server over SSH. How can I see if such activities have been taking place?
14
votes
1answer
57k views

how to change the background color of terminal in Ubuntu 12.10?

How to change the dark purple color of terminal in Ubuntu 12.10. And can we place any image or photo instead of that purple color.
0
votes
1answer
35k views

error: no such partition Entering rescue mode… grub rescue>

I am using Windows 8.1 and Ubuntu 13.10 as in dual boot. I have changed my disk size using disk management in Windows 8.1-- specifically I have clubbed another partition into local disc C in Windows. ...
12
votes
2answers
74k views

How much memory (RAM) should I allocate to the Virtual Machine?

I'm installing Ubuntu in a Virtual Box; my host OS is Windows 7, and I have 6GB of RAM on my system. One tutorial on setting up Ubuntu on a virtual machine (this one, on step 14: ...
34
votes
2answers
74k views

Run a shell script as another user that has no password

I would like to run a script from the main ubuntu shell as a different user that has no password. I have full sudo priviledges, so I tried this: sudo su -c "Your command right here" -s /bin/sh ...
26
votes
3answers
112k views

How to check the information of current installed video drivers?

I have just installed Ubuntu 10.04. My CPU usage is high when I do trivial things such as scrolling through a PDF file. So I think my video driver is not properly installed. I want to confirm that by ...
6
votes
4answers
46k views

How can I install libpcap header files on Ubuntu 12.04?

How can I install libpcap header files on Ubuntu 12.04? When I use apt-get install libpcap I receive following message: Reading package lists... Done Building dependency tree Reading state ...
12
votes
6answers
37k views

How to list all symbolic links in a directory

I have a symbolic link in my /var/www/ directory that links to WordPress. When I run the command ls -la from the /var/www/ directory the link to WordPress doesn't show up. Is there a way to list all ...
9
votes
6answers
42k views

Why Apache virtual hosts on Ubuntu 14.04 is not working?

I installed Apache 2.4 on Ubuntu 14.04 and it was working fine by http://localhost/ address. But when I tried to add a new virtual host, for example http://bow.loc and restart apache, new address was ...
17
votes
1answer
53k views

How do I install Ubuntu Server (step-by-step)

I'd like to install Ubuntu server on my machine, is there a step-by-step instructions on how to accomplish that or a guide that will just go through the basic steps of installing Ubuntu Server from ...
16
votes
3answers
61k views

How to configure Apache to run PHP as FastCGI on Ubuntu 12.04 via terminal?

I'm relatively new to the world of unix command line web server management/administration. Many hosts with control panel administration options allow you to change how PHP is run with a simple ...
18
votes
6answers
73k views

How to determine if a string is a substring of another in bash?

I want to see if a string is inside a portion of another string. e.g.: 'ab' in 'abc' -> true 'ab' in 'bcd' -> false How can I do this in a conditional of a bash script?
9
votes
5answers
40k views

How do I eliminate screen tearing on 14.04 and XBMC with NVidia-331?

I have updated my 12.04 HTPC to 14.04 (new install; same hardware), and have started getting awful screen tearing where I had none before. /proc/cpuinfo AMD A4-3300 APU with Radeon(tm) HD Graphics ...
65
votes
6answers
102k views

How to split larger files into smaller parts?

I have a large file (8GB for Example). How can I split it into multiple parts, let's say 3 equal parts, and after that how do I integrate them later?
76
votes
2answers
88k views

How to show line numbering in nano when opening a file

Is there a way to tell nano to automatically show line numbering each time I open a file.
75
20
votes
2answers
50k views

How to read complete line in 'for' loop with spaces

I am trying to run a for loop for file and I want to display whole line. But instead its displaying last word only. I want the complete line. for j in `cat ./file_wget_med` do echo $j done result ...
3
votes
2answers
63k views

Copying 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 ...
16
votes
7answers
33k views

How do I update LibreOffice to next point release in 14.04?

I want to update my LibreOffice (whole package). Is there a way to do it without uninstalling old and then installing new? If there is no option for updating directly, how should I do it otherwise? ...
53
votes
6answers
112k views

Browsing the internet from the command line

How can I browse the Internet from the command line in Ubuntu?
26
votes
4answers
82k views

How to find zombie process?

System information as of Fri Mar 9 19:40:01 KST 2012 System load: 0.59 Processes: 167 Usage of /home: 23.0% of 11.00GB Users logged in: 1 Swap usage: 0% ...
32
votes
3answers
79k views

In SSH, how do I mv to my local system?

Probably bad searching/not knowing the terminology, but: I've managed to ssh into my webhost's directory for me, and tar the webapp I want to back up and download. But when I try to mv to ...
67
9
votes
3answers
88k views

How do I change directories in the terminal, and know which directory I'm in?

I am following the directions @ Ubuntu community Help; however, I am still confused about a few things. I researched it & found this post: using the terminal to change directory, but it's above me ...
2
votes
6answers
59k views

Install Ubuntu in UEFI mode (unable to boot from USB)

I recently bought a Dell Inspiron 15R SE with Windows 8 (64 bit) pre-installed (UEFI supported). I want to install Ubuntu in dual boot with Windows 8. I tried to follow all these instruction and these ...
17
votes
6answers
82k 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 ...
11
votes
5answers
77k views

How to fix “ndiswrapper not found”?

I've been using ndiswrapper to make work some wireless cards using its Windows drivers, because they are not yet supported by free Linux drivers. Until Ubuntu 12.04. Now, I can install Windows ...
20
votes
3answers
73k views

How to configure ADB access for Android devices?

I'm using Ubuntu 12.10 and I have installed Android SDK, set it's path in my user .bashrc and it works. The problem is that my phone requires adb to be ran by root for permissions, but running adb ...
12
votes
3answers
35k views

How can I install 3.16 kernel on Ubuntu 14.04

sudo apt-get update && sudo apt-get dist-upgrade do not show the newest kernel. How can I install 3.16 kernel on 14.04?
9
votes
2answers
70k 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 ...
8
votes
6answers
53k views

how to correctly install apache2, php5, mysql and phpmyadmin

What is the most correct method of installing apache 2 server, php5, mysql and phpMyAdmin? I installed it this week, and I had a lot problems without solutions, so now that I reinstalled Ubuntu 13.04 ...
28
votes
3answers
63k views

How can I install Qt 5.x on 12.04 LTS?

If you want to develop with QML 2.0 and Qt5, the base packages don't seem to exist in repository for 12.04. What PPA should I add? Is it a binary installer? a compile the toolkit yourself? Those ...
4
votes
5answers
45k views

Ubuntu 14.04 installation with USB flash drive problem

I have problems while trying to install Ubuntu 14.04 using USB flash drive. I tried to create bootable usb flash drive with UnetBootin and startup disk creator but when I boot from flash drive I get ...
21
votes
3answers
124k views

How can I make “rc.local” run on startup?

I have a script that I would like to run when my system starts. I have put it on "rc.local", but it doesn't work. How can I enable it to run on startup?
13
votes
9answers
119k 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 ...
6
votes
3answers
64k views

How to install Ubuntu on MacBook Pro as Dual Boot?

I want to install Ubuntu 13.10 in my MacBookPro. I am running Mountain Lion in my mac. I want to run both Mountain Lion and Ubuntu 13.10 in My mac. How to install Ubuntu in my macbook without ...
11
votes
3answers
65k views

Using scp to copy files from remote to home machine

This is probably a simple error, but I can't work it out. My computer hostname is Felix (hostname -f returns Felix) I am trying to move a file from my university account to my home computer using scp. ...
134
votes
8answers
7k views

Terminal 'incognito mode'?

I use Terminal a lot, and sometimes I am running commands, which aren't things I don't want others to see, but more commands that if I accidentally arrowed up to and accidentally executed would cause ...
33
votes
2answers
63k views

How do I recover my accidentally lost Windows partitions after installing Ubuntu?

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions (C:) Vista (D:) Entertainment (E:) Work (F:) Sources and I wanted to start using Ubuntu instead. So I tried ...
3
votes
5answers
39k views

mysql server start failed

I am running ubuntu server. When I tried to login to mysql(which was running),I got the following error ERROR 2002 (HY000): Can't connect to local MySQL server through socket ...
103
votes
1answer
107k views

What are the meta, super, and hyper keys?

In System -> Preferences -> Keyboard -> Layout -> Options ->Alt/Win key behavior What do meta, super, hyper mean?
32
votes
3answers
57k views

Setting JDK 7 as default

four@twenty:~$ file /etc/alternatives/java /etc/alternatives/javac /etc/alternatives/java:symbolic link to `/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java' /etc/alternatives/javac:symbolic link to ...
3
votes
4answers
12k views

No audio after updating to 15.04

Missing sound after updating form 14.10 to 15.04, installing "Ubuntu restricted extras" doesn’t help. Is there a way fix this or easy way to rollback to 14.10?
8
votes
3answers
36k views

Change default system font using terminal only in 14.04

The following question answers how to Adjust fonts using tweak tool but the luddite in me would like to know how to do this without installing unity-tweak-tool. How can I adjust the default system ...
6
votes
2answers
21k views

Can I install Kali tools on Ubuntu?

I want to know if there is any way to install Kali tools like sqlmap, nikto, john, aircrack-ng, ... on Ubuntu 12.04? If yes, then how should I proceed?
8
votes
2answers
113k views

How to map a network drive?

I am unable to map a Windows network drive in Ubuntu. I have entered the following command in the terminal: karthick@karthick:~$ sudo mount -t cifs -o username=raghu //172.29.32.184 /media/Data/ ...
7
votes
1answer
47k 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 do I install one? I searched through the Ubuntu Software Center but I can't find anything there. ...
59