Greatest Hits

45
votes
6answers
65k views

Nginx failing to reload - how to track down why?

Hi I've had my Nginx server running great on Ubuntu server 12.04 for a while. I've been gradually bolting on various bits, and got as far as optimising load times on my wordpress page. After making ...
20
votes
5answers
86k views

How to clean /tmp?

rizhas@rizhas-laptop:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda7 67G 58G 5,2G 92% / none 4,0K 0 4,0K 0% /sys/fs/cgroup udev 1,5G 12K ...
70
20
votes
5answers
100k views

Grant a user permissions on www-data owned /var/www

I have a simple web server setup for some websites, with a layout something like: site1: /var/www/site1/public_html/ site2: /var/www/site2/public_html/ I have previously used the root user to ...
29
votes
1answer
108k views

My WiFi adapter is not working at all, how to troubleshoot?

On this site I see hundreds if not a thousand questions being asked about issues with a Wireless LAN adapter not being detected/recognized by Ubuntu. Some mainstream adapters appear to be utterly ...
12
votes
4answers
78k 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 ...
7
votes
2answers
47k 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?
16
votes
6answers
29k views

How to install Octave 4.0.0 in Ubuntu 14.04

I am using Ubuntu 14.04.2. I want to install the latest version of Octave (Octave 4.0.0 ). But in official Ubuntu repository ,there is only octave version 3.8 available for download/install. How can ...
25
votes
2answers
103k views

Copying multiple specific files from one folder to another

I have a large folder of pictures (thousands), and I have a long list of files, by exact file name, that I need to copy to another folder. I want to know if there is a way I can select several ...
54
votes
3answers
102k 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 ...
43
votes
4answers
134k views

How to detach a screen on a terminal?

Maybe this is a dumb question. I know how to start a screen or how to list different screens. screen -ls or to attached.. There are screens on: 2477.pts-0.server1 (Detached) ...
49
votes
11answers
109k views

How to find and change the screen DPI?

I am trying to find and then change the screen DPI (dots per inch) setting in 12.04 and 12.10. However, I can't seem to find any app or config file that can do this. Is there any app or conf file for ...
88
21
votes
7answers
63k views

How to avoid prompt password for sudo?

I know I can go root (super user) via the su command but I have to authorize it after firing the commands. Is there a way I can go root and authorize (with password) in one line
5
votes
1answer
113k 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 ...
45
votes
3answers
106k views

How to force Wine into acting like 32-bit Windows on 64-bit Ubuntu?

When installing Wine on 64-bit Ubuntu 12.04, both 64-bit support and 32-bit support get installed. If I run wine foo.exe where foo.exe is a 64-bit-aware installer, it thinks it's on 64-bit Windows. ...
103
20
votes
5answers
114k views

How to set up remote desktop sharing through SSH?

Is there a way to view (and control) a remote desktop through SSH? I will not have physical access to the remote host machine.
33
votes
4answers
50k views

error in installing mongo in virtual machine

I try to install mongo using mongo documentation: Install MongoDB on Ubuntu no errors were mentioned during the installation. But when I run the mongo command following error was displayed in the ...
21
votes
4answers
108k 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 ...
86
votes
2answers
127k 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?
9
votes
4answers
52k views

Ubuntu 14.04 screen resolution too low (SiS 671 graphics card)

I just installed Ubuntu 14.04 but my screen resolution is set too low , i tried to add a new one but i keep getting . xrandr: Failed to get size of gamma for output default i tried : :~$ xrandr -q ...
31
votes
5answers
147k 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 ...
16
votes
5answers
70k views

Where can I find more Unity themes?

This might already be answered, but I can't find it. I am getting a bit bored of the traditional purple feel of unity and I would like something new. Where can I find more Unity themes? I have ...
8
votes
3answers
35k views

How to Update or Re-Install the newest version of ADB?

I have an android based phone and I need ADB for installing new versions. However, until today ADB was working perfectly but today I got an error, it says "you need 1.0.32 or newer version." Yes, ...
69
votes
4answers
124k views

How do I check the SHA1 hash of a file?

How do I check the SHA1 hash of a file?
100
9
votes
3answers
62k views

permission denied for root@localhost for ssh connection

I just installed Ubuntu 14.04 and LAMP on that. Then, I wanted to configure my server, so tried out This tutorial. When I give the command: ssh root@localhost I get : Permission denied, please try ...
25
votes
1answer
77k views

How to completely remove Unity, and replace it with Cinnamon?

I installed Cinnamon 1.8 on Ubuntu 13.04, and now I would like to completely remove Unity and everything related to it, but I'd like to keep the programs, LightDM and Software Center. What packages ...
25
votes
4answers
164k 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?
14
votes
3answers
84k views

Upgrade OpenSSL on Ubuntu 12.04

I wanted to upgrade OpenSSL to 1.0.1 on an Ubuntu 12.04 system. I have noticed that an apt-get upgrade openssl does not end up upgrading OpenSSL. Is the newer OpenSSL supported on Ubuntu? I have also ...
16
votes
11answers
118k views

Access files on Samsung Galaxy S3 external sd card?

I have a Samsung Galaxy s3 running the stock Samsung ROM and I'm trying to transfer files - videos, photos, music and downloads, from my handset to my system via USB running Ubuntu 12.04. I have ...
80
49
votes
3answers
79k views

How to see time stamps in bash history?

Is there any way I can see at what time the commands were executed from the bash history? We can see the order but is there any way I can get the time also? Bottom-Line: Execution time in the Bash ...
9
votes
3answers
48k views

APT way to get Adobe Flash Player latest version for Linux not working

I am running Ubuntu 14.10 and I am trying to get the latest version of Adobe Flash Player for Linux (which apparently is 11.2), I am selecting the option for APT for Ubuntu 10.04+ here: But when I ...
8
votes
1answer
111k views

Apache2: Forbidden You don't have permission to access /dir/ on this server

I can access localhost but not the sub directories index.html My default conf looks like: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> ...
55
35
votes
4answers
50k views

Why doesn't running “sudo shutdown now” shutdown?

When I issue the following: sudo shutdown now ..my newly commissioned Ubuntu 14.04 server doesn't shutdown. It stops with the following message: * Stopping System V runlevel compatibility Give ...
44
votes
7answers
118k views

Bash remove first and last characters from a string

I have a string like that: |abcdefg| And i want to get a new string called in someway (like string2) with the original string without the two | at the start and at the end of it so that i will ...
10
votes
3answers
126k 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 ...
20
votes
2answers
76k views

Installing Eclipse Kepler

I need some help to set up the Eclipse Kepler 4.3 on Xubuntu, I whould like to do it by the command terminal. Which are the right commands?
18
votes
3answers
91k 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. ...
38
votes
3answers
129k views

How do I enable the “multiverse” repository?

I keep seeing places refer to the "multiverse" repository as a place I can get software, how can I enable this repository? Please specify how to do this graphically and via command line.
7
votes
5answers
37k 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?
15
votes
5answers
22k views

Network interface name changes after update to 15.10 - udev changes

I updated a virtual machine running Ubuntu server 15.04 to the just released new stable 15.10. There were no apparent problems, but after reboot the machine lost its network connection. lspci showed ...
23
votes
3answers
91k 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 ...
32
votes
4answers
110k views

How do I install a VNC server?

I want to install some VNC server on my ubuntu 12.04. which one is the best / recommended? how do i configure it? all i want is to be able to connect my desktop computer through my laptop. i want ...
86
3
votes
3answers
57k views

The following packages have unmet dependencies!

I am writing this because I am very confused about installing postgresql 9.3 on mine Ubuntu 14.04. First I need it for mine Python/Django development, and I ran in to the problem, when i tried to ...
15
votes
3answers
95k 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. ...
9
votes
5answers
82k views

How to install OneDrive on ubuntu 13.10 x64

I have Ubuntu 13.10 and I don't know how to install OneDrive on ubuntu 13.10 x64.
28
votes
3answers
104k 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 ...
43
votes
3answers
84k 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 ...
7
votes
5answers
88k views

How to run mysql command from terminal?

I have the following sql command which I usually run in phpmyadmin by selecting the database, then running it in the command window. DELETE FROM `wp_posts` WHERE `post_type` = "attachment" However ...
26
votes
1answer
125k views

The program 'curl' is currently not installed

I am trying out Meteor http://meteor.com/examples/leaderboard I have to use CURL, which I am familiar with on Windows. Now I try to install it on Ubuntu 12.04. But i get these errors: ...
41
25
votes
4answers
45k views

How can I use Kernel 3.19 in 14.04 now?

So I'm rebuilding my storage server. For stability, I want to use Ubuntu server 14.04 LTS as the OS. However, I'm planning to use Btrfs with RAID 5, and this has been greatly improved in kernel 3.19. ...
23
votes
6answers
103k 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?