Greatest Hits

28
votes
6answers
147k views

How to find a computer name in a LAN from the IP address?

My network includes machines running Linux and others running Windows. And my machine is running Linux.
118
62
votes
8answers
80k views

Repeat a command every x interval of time in terminal?

How can I repeat a command every interval of time , so that it will allow me to run commands for checking or monitoring directories ? There is no need for a script, i need just a simple command ...
10
votes
4answers
140k views

How do I navigate between directories in terminal?

I am new to Linux and Ubuntu and have tried changing to folders/directories with some difficulty. Could someone explain why the following commands failed to change to the desired target ...
39
votes
2answers
112k views

Configure screensaver in Ubuntu

How do I configure the screensaver in Ubuntu? I can see that gnome-screensaver is running.
9
votes
2answers
16k views

Steam won't open in Ubuntu 15.10

Been trying over and over, but nothing happens. Tried reinstalling Steam along with Ubuntu but that didn't do anything either. Tried other forums with helpful tips but no good. I'm running out of ...
139
28
votes
2answers
89k views

Install Popcorn Time from source files

How can I install Popcorn Time beta ? I see on their website that they only offer a 64-bit installation files, but the sources are open. I can't use the usual ./configure && make. So, what ...
80
votes
3answers
145k views

Choose gcc and g++ version

So I have installed gcc-4.4 and gcc-4.3 (same for g++). Now as far as I remember there is a tool in Ubuntu which sets the symlinks for you if you just tell it which version you want. However it does ...
153
45
votes
8answers
171k views

Enable remote VNC from the commandline?

I have one computer running Ubuntu 10.04, and is running Vino, the default VNC server. I have a second Windows box which is running a VNC client, but does not have any X11 capabilities. I am ssh'd ...
142
154
votes
2answers
175k views

How to enable TRIM?

I know that the Linux kernel supports TRIM as of version 2.6.33, so there should be TRIM support in ubuntu. Is TRIM enabled by default or do I need to change some settings or install additional ...
131
39
votes
5answers
178k 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 ...
17
votes
5answers
65k views

Google Chrome proxy settings?

When I try to set Google Chrome's proxy settings (on chrome://linux-proxy-config/), I get the following message: When running Google Chrome under a supported desktop environment, the system ...
21
votes
4answers
92k views

How do I fix DNS resolving which doesn't work after upgrading to Ubuntu 13.10 (Saucy)

After upgrade to 13.10 my DNS resolving fails. It seems the DNS servers which I get by DHCP (LAN) are not used. I could temporary solve the problem by adding nameserver 8.8.8.8 to /etc/resolv.conf. ...
87
votes
4answers
118k views

How do I sudo a command in a script without being asked for a password?

I want to turn my system on automatically every day. So I use the below code in my Python script, but sudo asks me for a password every time: os.system('sudo sh -c "echo date \'+%s\' -d \'+ \ ...
138
7
votes
6answers
79k 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 ...
46
votes
5answers
133k 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?
151
16
votes
3answers
145k views

What is the equivalent terminal command to ipconfig /all?

In windows I can use ipconfig /all and this displays all the info about my connection. In terminal using ifconfig does not and only supplies limited info. I can use network manager, but it would be ...
40
votes
4answers
97k 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 ...
76
19
votes
2answers
96k views

give specific user permission to write to a folder using +w notation

I know I can assign the permission to write to an owner\group\others like this: chmod u+w myfolder Can I specify the specific user here? Some like this: chmod username u+w myfolder
49
votes
3answers
170k 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 ...
20
votes
1answer
145k views

HTTP POST and GET using cURL in linux

I had server application in asp.net in windows in that i had a web service for that . how can i call web service in ubuntu using shell script by using cURL command
21
votes
1answer
104k views

Cannot update grub with paramters on live USB

I have booted from a live USB ("Try Ubuntu"), that also has a persistent option set (I used LiLi to create one) to do some tests for this pcie hotplug issue I'm having. I'm trying to test some boot ...
27
votes
4answers
122k views

Failed to get canonical path of /cow

I am trying to install Ubuntu 12.10 for quite some time, and passing hurdles one by one. Now I am in a situation as follows. I have got a PC and 10 GB HDD which will be totally dedicated to Ubuntu so ...
19
votes
3answers
67k views

Installing Anaconda python on ubuntu

How to install anaconda python on ubuntu? https://store.continuum.io/cshop/anaconda/ Is there a way to apt-get install it? I only have command line access to my server, how do i install anaconda ...
17
votes
3answers
126k 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?
42
votes
7answers
195k views

How can I uninstall software?

Seeing there are various ways to install on Ubuntu. What are the various ways to uninstall items? Which ways always work? How can I be sure something was uninstalled?
119
33
votes
5answers
126k views

How do I find the path to pg_hba.conf from the shell?

I would like to obtain the path to pg_hba.conf from the shell. The path varies between versions of PostgreSQL. For instance, for 8.4 and 9.1: /etc/postgresql/8.4/main/pg_hba.conf ...
14
votes
5answers
54k views

ERROR: 32-bit Linux Android emulator binaries are DEPRECATED when attemping to run the Android emulator

I have set the android development environment in Ubuntu 10.10, 32 bit. After creating the AVD when I launched the emulator I have received the following error. ERROR: 32-bit Linux Android ...
12
votes
4answers
79k views

Drivers for Broadcom BCM43142 on Ubuntu 14.04 (Trusty Tahr)

I am not able to install drivers for my Wi-Fi + Bluetooth card (Broadcom BCM43142). What I have done till now: I have tried using the drivers at this website. I tried following the instructions ...
27
votes
7answers
114k views

How do I install python imaging library (PIL)?

How do I install the python imaging library (PIL) on Ubuntu? I tried doing sudo apt-get install python-imaging but now when i run python selftest.py (a script I got from somewhere on the ...
18
votes
6answers
124k views

How to setup x11vnc to access with graphical login screen?

I have a server running Ubuntu 12.10 and need to be able to remote to this server without being logged-in. I have found many solutions, but none seem to work with 12.10. Can anyone give me ...
104
15
votes
4answers
120k views

How do you open a command line?

How do you access the command line or run option to put the commands into the system?
97
votes
6answers
159k views

How do I install the Cinnamon Desktop?

I have read that there is a new Gnome-2 like interface called Cinnamon produced by the Linux Mint developers. Is this available for Ubuntu users - and if so how do I install it?
67
votes
1answer
95k views

What is the loopback device and how do I use it?

What are loopback and localhost? Why do they exist, what are they used for, and how would I use them?
23
votes
7answers
104k 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 ?
31
votes
6answers
83k views

How to create a virtualenv with Python3.3 in Ubuntu?

I'm running Precise Pangolin amd64. I installed Python 3.3 from ppa:fkrull/deadsnakes. Now I want to actually use this new Python version in a virtualenv. But How can I do this? I get the following ...
25
votes
5answers
103k 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 ...
77
18
votes
6answers
102k views

How do I find my network IP address, netmask, and gateway info?

I'm trying to make my IP address static as I hear it fixes slow browsing issues. When I click on connection information under the networking menu of the gray taskbar, it tells me about the IP ...
40
votes
3answers
54k views

Flux for ubuntu 14.04 - possible?

Is it possible to make Flux work in ubuntu 14.04? If so, maybe you can share your knowledge or point me to a guide? (Flux is software which adjusts temperature of your display according to time of the ...
5
votes
5answers
96k views

How can I determine the sudo password?

What is the default password of the sudo? I visit some forums, it tells that the default password is password, but it doesn't work, how can I determine the password?
118
57
votes
7answers
157k views

How to install the latest stable version of Chromium?

Is there an easier way to install Chromium than what is described here? Furthermore, is there an easier way to stay up to date with current Chromium releases rather than having to re-build Chromium ...
103
60
votes
7answers
82k views

Make default `python` command to use Python 3

I can access Python 3 via python3 command. But I want to make the default interpreter to use python command for Python 3. Simple typing python takes me to Python 2. How to upgrade?
33
votes
2answers
85k 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 ...
61
votes
7answers
182k 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.
103
9
votes
1answer
80k views

Format disk in 14.04

I remember using Disk Utility to format disks and USBs in 12.04. Now, after upgrading to Ubuntu 14.04, I can't seem to find the Disk Utility application. How do I format disks in 14.04? Looking for ...
29
votes
4answers
67k views

How to configure lightdm to allow manual logins in Ubuntu 14.04

I used to modify /etc/lightdm/lightdm.conf, adding the line greeter-show-manual-login=true, in order to allow login for hidden users and root. Now I've just installed the new Ubuntu 14.04 and the ...
26
votes
15answers
38k views

Mouse cursor invisible after 15.04 update

My mouse pointer became invisible after some updates after I upgraded to 15.04 from 14.10. In all standard settings the mouse pointer is activated (system settings, dconf...) I also tried different ...
12
votes
4answers
71k views

Changing colour of text and background of terminal?

I can change the colour through preference , but how can I change the background colour and text colour of terminal through the command line?
42
votes
4answers
110k views

How to install an init.d script?

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 ...
23
votes
2answers
96k views

How do I install ncurses header files?

I was trying to configure the kernel and I got the following error. Can somebody please tell me what should I do? root@nitr-desktop:/usr/src/linux# make menuconfig *** Unable to find the ncurses ...
121
19
votes
5answers
96k views

How to find my current JAVA_HOME in ubuntu?

How to find my current JAVA_HOME in ubuntu? I have to set java_home path when installing maven.