Most voted "ubuntu" questions
Ubuntu is a free operating system, used on desktops and servers, based on Debian GNU/Linux. Remember that http://askubuntu.com is dedicated specifically to Ubuntu issues (in English). Here the tag should only be used for PROGRAMMING QUESTIONS that are specific to Ubuntu. Desktop and shell usage issues are not within the scope of the site.
Learn more…400 questions
Sort by count of
-
12
votes3
answers23020
viewsHow to initialize postgresql with Ubuntu?
I have the following problem, every time I turn on my machine, I go to the terminal and give sudo service postgresql status, always appears 9.3/main (port 5432): down. On other machines I have…
-
11
votes1
answer28571
viewsEnable . htaccess in Ubuntu
I’m using the Ubuntu system on my PC and my apache doesn’t seem to recognize htaccess, none, because I created one. htaccess to my project only that it does not interpret what is in the content. The…
-
10
votes3
answers9800
viewsHow to keep a server nodejs running permanently?
I want to know how to maintain my server nodejs permanently running on my vps Ubuntu I bought without the need to run Putty and run the command node app.js. I made a REST API that will be consumed…
-
10
votes1
answer19729
viewsSending Files on Nginx Error "413 Request Entity Too Large"
I’m trying to send a file from 2MB using Nginx, but I keep receiving the 413 arquivo muito grande. Version: Nginx/1.4.6 OS: Ubuntu 14.04 LTS
-
9
votes2
answers598
viewsGit workflow (workflow) using Github?
I need to learn how to clone a project from github to my local computer and, after making the necessary changes, send the modifications back to the remote project. Basically the workflow git by…
-
8
votes2
answers13586
viewsHow to install the PDO_PGSQL driver in Ubuntu?
I have already installed PHP 7, Apache 2 and Postgresql 9.5. I’ve already enabled the extension on php.ini but it doesn’t work. In Windows just enable this extension on php.ini that already works…
-
7
votes3
answers22225
viewsHow to compile a. java file using the Ubuntu terminal
I am a beginner user and I need to compile a. java file using the Ubuntu terminal, how to proceed?
-
7
votes1
answer5068
viewsProject directory list in Laravel is displayed instead of running the application
I would like your help to know why my PHP project with Laravel Framework does not work, I did all the steps correctly, but instead of seeing the framework, I am seeing your folders…
-
7
votes1
answer14471
viewsRemove PHP from Ubuntu 14
I used the following commands to remove PHP from Ubuntu: sudo apt-get purge php5 php5-cli libapache2-mod-php5 php5-mysql phpmyadmin sudo rm -rf /etc/php5 But when executing the command php -v at the…
-
7
votes1
answer9516
viewsHow to change the version of PHP in which Composer runs on Linux?
I installed Composer on my Ubuntu via the following command: apt-get install composer Ubuntu currently supports multiple installed PHP versions. I have PHP5.6, PHP7.0 and PHP7.1 installed on my…
-
7
votes2
answers2160
viewsHow to install Pip for a particular version of Python?
I have Ubuntu 17.10 installed and it came with Python 2.7 and 3.6. I installed Python 3.4 but I can’t install Pip on it, it always goes to the latest version with pip3 which is 3.6 How can I install…
-
7
votes1
answer1984
viewsHow to have two versions of php on the same Apache server?
I have an Apache/2.4.10 (Ubuntu) server running a site in php 5.5. But I’m creating a new site and it needs php 5.6. It has to have two versions of php installed on my server and use each one in…
-
6
votes2
answers10814
viewsHow to set password for Postgresql administration?
I installed Postgresql on my Ubuntu using "apt-get". I’ve been using "sudo" to perform operations (actually following a tutorial), but now I want to manage DBMS with a client that asks me the…
-
6
votes1
answer2288
viewsMysql falling due to lack of memory
I have a dedicated server Linux Ubuntu 12.04 LTS with Mysql/Apache/Wordpress, Only since he has only 1Gb of RAM, sometimes he falls for lack of memory. No syslog marks with the message Out of…
-
6
votes3
answers9222
views -
6
votes1
answer787
viewsHow to find out if a directory is empty by the terminal?
I sent some files, via ftp, to put my application into production. Due to some error occurred in the application, I realized that some files were missing. When I gave a ls I realized that some…
-
6
votes2
answers198
viewsShellscript does not find the directory
I’m starting with shellscript ,I have to checksum some files, so I decided to automate things with a bash script.. I made two scripts, one that uses one ls recursive in the directory set by me and…
-
6
votes2
answers49314
viewsCommands to update Ubuntu apt-get update or apt update sem get?
In the company we received the instruction to run the following commands every morning, but the current project manager did not know how to answer me the reason and in the internet search I did not…
-
5
votes4
answers9489
viewsHow to call a new terminal from a shell script?
I would like to know how to call a new terminal/xterm from within a command in the shell script, so that the shell script that called the other script keeps running non-stop. Does anyone have any…
-
5
votes4
answers64762
viewsMysql installation socket error
I am unable to uninstall or make Mysql 5.5 work on my Ubuntu Linux 14.04.LTS, every time I try to access it, I get the following message: ERROR 2002 (HY000): Can’t connect to local Mysql server…
-
5
votes1
answer627
viewsWhat is the difference between reset and clear in Terminal?
In the Terminal, what is the difference between the commands reset and clear? I’m using the Terminal of Ubuntu and apparently the two commands clear the screen.…
-
5
votes2
answers7523
viewsconio. h library in C language for Ubuntu
I’m programming in C on Ubuntu’s Codeblock. I am trying to add a library conio.h. During several researches I found a site that for the sake of incompatibility in Ubuntu with the conio library. h, a…
-
5
votes2
answers606
viewsDetermine specific size for console in C
It is possible to set a specific size for the codeblock console (In C language) to open when I run the program? I need it to open at a certain size because I won’t use the whole screen. I saw…
-
5
votes1
answer489
viewsError installing mongodb 3.0 on Ubuntu 15.10 Linux?
I’m trying to install the MongoDB in the Ubuntu 15.10, but, I cannot install Mongo always returning the following error when starting the service. Failed to start mongod.service: Unit mongod.service…
-
5
votes1
answer125
viewsError importing xml.parsers.Expat in Python 2.7 only works with Python3
Good morning, a few months ago I started with python I’m using it to do tests on android applications. I have the following problem importing the xml.parsers.expat. when running straight into the…
-
5
votes1
answer545
viewsHow to install php-5 in Ubuntu?
I’m a new user on Ubuntu, and I’m unable to install the PHP-5 via apt-get, since the stable version is PHP-7, get an error saying no package was found. I tried using the following commands sudo…
-
5
votes1
answer94
viewsUpgrade to PHP 7 Ubuntu
After updating PHP on my Ubuntu server my phpinfo() continues showing the previous version 5.5 even when executed php -v (returns to version 7.0). I’ve tried Re-start on apache and on php7.0-fpm and…
-
5
votes2
answers74
viewsList the amount of space occupied by a file type in the terminal
I suspect that the Pcs I use have many files .RData, used by the R program to save data sets. I want to do a cleaning in these files, but without going into directory by directory, on computer by…
-
5
votes1
answer9357
viewsRun JNLP Ubuntu
My current version of java is as follows: openjdk version "1.8.0_131" OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11) OpenJDK 64-Bit Server VM (build 25.131-b11, mixed…
-
5
votes1
answer139
views -
4
votes1
answer260
viewsError compiling php 5.3.28 using php-build
I am trying to install PHP 5.3.28 using 'php-build' in Linux Mint 16 (Ubuntu) but it does not compile. I’m using the following command: php-build -i Development 5.3.28 ~/local/php/5.3.28 After…
-
4
votes3
answers1877
views -
4
votes2
answers247
viewsStrange redirection
Even without the . htaccess and without the active apache rewriter module if I call meudominio.com.br/page it will search first.html page if it does not find it will fetch.php page. How do I disable…
-
4
votes4
answers1075
views -
4
votes0
answers178
viewsProblem with Ubuntu window focus setting when using Java
I was making a program in which a circle is drawn on the screen and it is walking around the screen, using the classes JFrame to create the window, a thread to control the circle I insert on the…
-
4
votes1
answer442
viewsHow to use acute accent inside a string in a bash script?
I use the script below to download Audios from google translator to use in a personal program that narrates codes and quantities of my stock. The problem is that the high-pitched "oh" accent of the…
-
4
votes1
answer918
views -
4
votes3
answers1108
viewsWhy isn’t Vagrant synchronizing the folders?
I’m using: Windows 8 64 bits Vagrant 1.7.2 Virtual box 4.3.28 GitBash 1.9.4 para conexão SSH Box Ubuntu 14.04.02 Trusty 32 bits Box Ubuntu 14.04.02 Trusty 64 bits I am developing with Ruby on Rails,…
-
4
votes1
answer306
viewsError while installing User
I am trying to install the User on my localhost, but when I arrived at the step of putting the database, user and password I had to check the Skip base URL option (I am using virtual host). the page…
-
4
votes1
answer648
viewsaccent problems when running php
Good morning guys, I’m having trouble executing the code php in the browser, in any browser, it does not recognize the accent. It was necessary to use the following line of code for the accent to be…
-
4
votes1
answer3334
viewsClone private repository by passing password as parameter
I have a script on my production server that automates the entire process of checking new commits, generating the build and publishing the new changes. It works perfectly with open repositories…
-
4
votes1
answer91
viewsfind_package failed to generate project (in Qt) with Cmake
I’m trying to generate the build configuration of a simple Qt example using Cmake. The code of the example is this: #include <QApplication> #include <QTextEdit> int main(int argc, char**…
-
4
votes2
answers7486
viewsAn Exception PDO occurs when localhost is used as a host
Consider the following adaptor class DbAdapterMySQL that extends the class PDO: class DbAdapterMySQL extends \PDO implements DbInterface { public function __construct(array $config) { $dsn =…
-
4
votes2
answers3495
viewsDevelop in C# and . NET on Ubuntu Linux?
Recently I had to migrate from Windows to Linux, because my work notebook burned and I am using an old one with Intel Atom and only 2GB of RAM, I was insecure to use Windows because it is a very…
-
4
votes1
answer9659
views502 Bad Gateway - Linux, php7, Nginx. How to resolve this error?
I am having a 502 error that represents some configuration on the server, when I try to open a site using linux, Nginx and php7. Researching some other POSTS, link about the same error I see that…
-
4
votes1
answer260
viewsHow to install Python 3
I’m new to Ubuntu and I’m learning Python. I have installed on my pc Pyhton 2.7.12 and would like to know how I do to upgrade to version 3. I’m taking a course where I need to use a lib. import…
-
4
votes1
answer5871
viewsPHP execute sudo command with shell_exec()
I’m having the following problem, I’m on time trying to run a file sh with php using shell_exec for example: echo shell_exec("./example etc etc"); My problem is that it does not perform, is it a…
-
4
votes1
answer763
viewsHow to perform operations with really large numbers in C/C++?
How to perform sum operations with really large numbers? Numbers that can reach 50 or 1000 digits. Is it necessary to install a library? How to install this library in Ubuntu? You can post some…
-
4
votes1
answer162
viewsCompiling code on Ubuntu and running on windows
Hi, I was wondering how can I compile a C code on Ubuntu and what execute on Windows. I tried to put the extension ". exe" at the end of the file, but when I sent the executable to my teacher he…
-
3
votes2
answers45591
viewsHow to change the www (Documentroot) folder to another partition in Apache 2.4 (Ubuntu 14.04)?
I tried to change the Document Root changing the files default.conf on sites-available. But I get the message that I’m not allowed to access the localhost. Would anyone know the exact procedure? May…