Greatest Hits

27
votes
5answers
86k views

How to have my PHP Send mail?

I installed Ubuntu 11.04, LAMP using tasksel. I find that PHP mail() does not work. I suppose I need to enable it or something? How do I do that?
99
6
votes
2answers
73k views

Command to get the hostname of remote server using IP address

I want to get the hostname of a remote server using the IP address using my Ubuntu. In Windows we can get using NBTSTAT but this doesn't work in Linux. Does anyone know how to do that?
47
votes
4answers
109k views

How do I install additional drivers?

I've just installed Ubuntu and I need either video, wireless, or some sort of other manufacturer (non-opensource) driver. How can I run the tool that will fetch all of these for me? I'd like graphical ...
79
30
votes
3answers
109k 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 ...
55
votes
2answers
85k views

What is the easiest way to enable PHP on nginx?

What is the easiest way to enable PHP on nginx on Ubuntu 12.04? Best solution is the one that request minimal work, ideally just a package installation :)
76
27
votes
4answers
124k 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 ...
8
votes
3answers
51k views

Where is Firefox's plugins directory?

I know that there are extensive, "proper" methods for installing Firefox plugins. However, I would like to know where the folder is for linking shared-object (.so) files, such as libnpjp2.so and ...
49
4
votes
1answer
73k 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 ...
77
votes
4answers
68k 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?
30
votes
3answers
74k views

How to set JAVA_HOME for OpenJDK?

How can we set JAVA_HOME environment variable for OpenJDK?
80
13
votes
4answers
53k 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 ...
12
votes
3answers
62k views

how can I change the date and time on ubuntu 12.04

when I go to change the date and time it doesn't work, and I try to unlock but it just won't unlock, if there is any way to make it work please help. I know it isn't very descriptive but I really ...
39
10
votes
3answers
99k 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 ...
6
votes
3answers
28k views

Setup problems ubuntu 14.04 wifi on macbookpro 13.3 w/ retina (dual boot)

I'm new to Ubuntu and Linux in general and I'm not sure how to go about setting up my wifi. It doesn't detect any networks. I'm using a late-2013 13.3" macbookpro with retina display, so it doesn't ...
14
votes
7answers
54k views

PKG_CONFIG_PATH environment variable

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. What does this mean ?
17
votes
6answers
42k 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: ...
18
votes
2answers
22k views

fatal error: sys/cdefs.h: No such file or directory|

It has been weeks that i am trying to use Code::Blocks IDE to program Atmega16, however, i am hindered by the following error while compiling/building the program in C::B ...
7
votes
4answers
60k 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 ...
59
votes
5answers
44k views

Which one is better: using ; or && to execute multiple commands in one line?

In tutorials and how-to's I often see commands combined. For instance, sudo apt-get update && sudo apt-get install pyrenamer There seem to be four possible connectors: &, &&, || ...
17
votes
3answers
89k views

I want to install libssl.0.9.8

I'm trying to install utorrent program, and when I execute the program I get ./utserver: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or ...
22
votes
3answers
50k views

How do I fix Netflix requiring Silverlight update?

I'm running Ubuntu 12.04 LTS 64-bit, which I installed using the original release (not the newer 12.04.2 release), and have been successfully using netflix-desktop ever since the ppa:ehoover/compholio ...
43
votes
8answers
108k views

How can I find my hardware details?

Is there any built-in software or terminal method allowing me to view the hardware profiles on my system? Windows equivalent of such a feature would be Device Manager.
27
votes
4answers
59k 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 ...
10
votes
5answers
53k views

how to remove symbolic link

i was doing sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin but i accidentally typed something else. So now I want to correct it but it says symbolic link already exist. Please help, Thanks in ...
19
votes
2answers
81k views

Install windows 7 through virtual box

I am using Ubuntu 12.04. I want to install Windows 7 on my system from a CD through VirtualBox. I searched the detailed tutorials through google but I did not find one that worked. So can some one ...
20
votes
4answers
71k views

How do I reset a lost password (using recovery mode requires me to type the password)?

I need to reset my password. I have followed these steps: How do I reset a lost Administrative (root) password? However, then I go to "root" or "netroot" recovery options, it tells me: Give root ...
1
vote
6answers
28k views

Bluetooth not working in ubuntu 14.04 LTS

Since when I got rid of windows 8 and installed ubuntu, my bluetooth never really worked. Ubuntu detects the bluetooth hardware (it shows the bluetooth icon in the status bar), and I can turn it on or ...
13
votes
2answers
69k 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?
32
votes
3answers
43k views

What is the safest way to clean up /boot partition?

I've got 200 MB assigned for the /boot partition. Everytime I try to update the kernel I get an error message that basically says the size of /boot is full. What can I do to cleanup /boot and ...
0
votes
3answers
31k views

How to update OpenGL Driver on Ubuntu 14.04 LTS

I recently upgraded to 14.04, then I installed steam, and TF2. I get this error message, Anyway, I know I need to update my OpenGL Driver, my question is how do I do it? EDIT: I installed mesa and ...
13
votes
3answers
80k views

How can I start in safe mode?

I did a clean install of Ubuntu 12.04 on an Acer AX1430G desktop. Everything went fine until I installed the additional ATI driver. When I reboot the computer, my monitor gives a "signal out of range" ...
12
votes
2answers
67k 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 ...
54
votes
5answers
90k views

How can I change the date modified/created of a file?

Is there a way to change the date when a file was modified/created (which is shown in Nautilus or with the ls -l command)? Ideally I am looking for a command which can change the date/time stamps of a ...
24
votes
5answers
106k views

Create a new SSH user on Ubuntu Server

Just created a new virtual Ubuntu server and I'm in the process of hardening it for production use. I currently have a root account. I want to do the following: Create a new user (let's call them ...
6
votes
1answer
86k views

Moving folder and subfolder to another path

I need to move my folder with many subfolders to another path. I'm using putty and this is what I tried: MV -r fromflderpath tofolderpath What am I doing wrong?
43
votes
3answers
89k 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".)
86
13
votes
3answers
78k views

How to let a VirtualBox guest (running Windows) access the Internet?

I have a VirtualBox virtual machine. The host machine runs Ubuntu. The guest (virtual) machine runs Windows XP. I googled this problem, and people claim that they fixed it by changing adapter type to ...
2
votes
1answer
39k views

Terminal: sudo: apt-get: command not found

This is my first post here, so let me be welcomed with a serious issue to be answered. Lately some really bad things have been happening with my computer, having to do with lack of icons and all kinds ...
19
votes
2answers
45k views

ntpdate: no server suitable for synchronization found

My clock is off, so I would like to synchronize it using ntpdate. I tried several different NTP servers, but for some reason I always get the following error message: $ sudo ntpdate ntp.ubuntu.com 4 ...
31
13
votes
3answers
73k views

How do you open a command line?

I want to set up trim for my OCZ VERTEX 4 SSD, but I have no idea how to do this even after reading the instructions. How do you even access the command line or run option to put the commands into ...
15
votes
4answers
93k views

Any way to manually make a bootable USB from ISO?

I've been using Unetbootin but it occasionally fails to create a bootable usb the way I need it to, especially with the newer versions. Is there a way I could extract the iso myself?
10
votes
4answers
48k views

Why am I getting “Permission denied: make_sock: could not bind to address” when starting Apache2?

I can stop it using /etc/init.d/apache2 stop But when I want to start it again using: /etc/init.d/apache2 start I get this error: Starting web server apache2 ...
107
votes
11answers
107k views

How do I install Ubuntu to a USB key? (without using Startup Disk Creator)

If you are hurrying to reply, System → Administration → StartUp Disk Creator -- no, that's not what I'm talking about. I want to try Ubuntu 11.04's Unity without touching my existing Ubuntu ...
5
votes
4answers
54k 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 ...
9
votes
6answers
69k views

500 OOPS: vsftpd: refusing to run with writable root inside chroot() Keep user jailed

Before you close this out to repetition, I have been researching all of the proposed solutions to this bug and so far I have been unable to keep a FTP user jailed to their website directory. While I ...
23
votes
9answers
82k views

How do I get permissions to edit system configuration files?

I can't seem to edit and save config files in the root system (eg: /etc/dhcp/dhcpd.config); it just says "permission denied" or the save option is blocked in the text editor. I'm pretty sure I'm a ...
1
vote
2answers
47k views

E: Some index files failed to download. They have been ignored, or old ones used instead after apt-get update

My /etc/apt/sources.list contained: nazar_art@nazar-desctop:/etc/apt$ cat source.list deb http://security.ubuntu.com/ubuntu precise-security main universe nazar_art@nazar-desctop:/etc/apt$ cat ...
43
votes
2answers
51k views

Is there another way to restart the sound system if pulseaudio/ALSA don't work?

I was listening to music, and my sound suddenly went dead in all my applications. I'm using Ubuntu 12.04, which uses pulseaudio, so I tried sudo /etc/init.d/pulseaudio restart, but nothing happened. ...
12
votes
1answer
57k 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. ...
12
votes
4answers
68k views

How to Search for Files Recursively into Subdirectories

I am trying to look for all XML files in a particular directory and all sub-directories (recursively) inside it. ls -R *.xml is only listing files in the current directory. I am quite sure, the ...