Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Hot answers tagged

309

I figured out how to get apt-get to work again. Edit gai.conf: sudo vim /etc/gai.conf change line ~54 to uncomment the following: precedence ::ffff:0:0/96 100 write and quit: :wq CAUTION Look out line 50 which looks almost identical: precedence ::ffff:0:0/96 10 This is the wrong line. Go ~4 lines down and you'll find the correct line to uncomment ...


277

You can do this for; Final Update JDK sudo apt-get install openjdk-8-jdk JRE sudo apt-get install openjdk-8-jre Old Update I found two repository but I do not recommend OpenJDK builds (all archs) ppa:openjdk-r/ppa OpenJDK 8 backport for trusty ppa:jochenkemnade/openjdk-8 Original Message If you really want to use OpenJDK, you have to compile ...


259

You basically need the Guest additions, log into the Virtual Machine to install the following packages: sudo apt-get install virtualbox-guest-dkms Finally restart the VM to complete the installation.


228

There is a an open issue in jetbrains youtrack for intellij idea that recommend two solutions: Keyboard input may be unlocked by restarting IBus daemon from a console: ibus-daemon -rd IBus can be disabled for IDEA by unsetting env. variable XMODIFIERS, but ability to input national characters in IDEA will be lost: XMODIFIERS="" idea.sh I have used the ...


218

To disable ipv6, you have to open /etc/sysctl.conf using any text editor and insert the following lines at the end: net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 If ipv6 is still not disabled, then the problem is that sysctl.conf is still not activated. To solve this, open a terminal(Ctrl+Alt+T)...


206

Simply adding a password for root is not enough for Ubuntu 14.04 Server. You also need to edit /etc/ssh/sshd_config, and comment out the following line: PermitRootLogin without-password Just below it, add the following line: PermitRootLogin yes Then restart SSH: service ssh reload For Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-59-generic x86_64) ...


203

As Filip Sohajek mentioned, you need to hit Tab. Then you will see a set of options (live, live install, etc). Select the one that you like typing its name and pressing Enter.


202

Installing the below packages alone will auto-mounts your exFAT formatted drives , sudo apt-get install exfat-fuse exfat-utils Or you may try to mount it manually after installing the above packages, sudo mkdir /media/exfat sudo mount -t exfat /dev/sdxx /media/exfat /dev/sdxx - your exfat partition. In Ubuntu 14.04, exfat-fuse and exfat-utils packages ...


185

Either use a PPA or compile it yourself: Installation by a PPA (Upgrade to 3.2) sudo apt-get install software-properties-common sudo add-apt-repository ppa:george-edison55/cmake-3.x sudo apt-get update When cmake is not yet installed: sudo apt-get install cmake When cmake is already installed: sudo apt-get upgrade Compile it yourself Currently, the ...


176

sudo add-apt-repository ppa:openjdk-r/ppa sudo apt-get update sudo apt-get install openjdk-8-jdk sudo update-alternatives --config java sudo update-alternatives --config javac


170

EDIT: Dylan Pierce has confirmed that you can already install some PHP 7.2 extensions in the same way you would for PHP 5. For mbstring in particular, you can execute: sudo apt-get install php7.2-mbstring To complement sparkmood's answer, this now works for PHP 7.2 if you already imported ondrej's PPA for it. sudo apt-get install libapache2-mod-php7.2 ...


157

First you need to install unrar: sudo apt-get install unrar If you want to unpack all files within the .rar files in the same directory: unrar e -r /home/work/software/myfile.rar if you want to unpack the files in full path: unrar x -r /home/work/software/myfile.rar


155

Try just doing this: sudo php5enmod mcrypt And then: sudo service apache2 restart I have installed fresh Ubuntu 14.04 (desktop version) to my computer. This way works for enabling mcrypt that was already installed.


154

If you are on an amd64 installation, you can try to install the package libc6-dev-i386. This helped me solve the same issue you encountered while trying to compile smm from i8kutils.


150

Scheduling a shutdown To shutdown run the command: sudo shutdown -P +60 That will wait 60 mins before starting the shutdown sequence. You could do: sudo shutdown -P 1:00 to shutdown at 1 AM and sudo shutdown -P now to shutdown now. A message is broadcast to all terminals to warn about the shutdown. Cancel a pending shutdown After, starting a ...


145

It's a BUG! This is a bug that occurs in the most recent version of Ubuntu Server LTS (Ubuntu Server 14.04 LTS), when you create the boot partition (or the root partition, when the boot partition doesn't exists) inside a LVM or a RAID partition. You can get more info about this bug in Ubuntu Launchpad: Bug #1274320 "Error: diskfilter writes are not ...


143

Yes, you can use OpenVPN directly. This way you can use more settings as well. First you need the openvpn package: sudo apt-get install openvpn Then you can connect like this: sudo openvpn --config /path/to/config.ovpn The sudo is important because OpenVPN won't be able to connect otherwise (I think because it has to change the routes).


139

I still don't understand why, but I have to run npm install -g npm twice for it to have the desired effect: vagrant@box:~$ npm -v 1.3.10 vagrant@box:~$ sudo npm install -g npm npm http GET https://registry.npmjs.org/npm npm http 200 https://registry.npmjs.org/npm npm http GET https://registry.npmjs.org/npm/-/npm-2.1.12.tgz npm http 200 https://registry....


138

Try this: sudo updatedb locate mcrypt.ini Should show it located at /etc/php5/mods-available locate mcrypt.so Edit mcrypt.ini and change extension to match the path to mcrypt.so, example: extension=/usr/lib/php5/20121212/mcrypt.so Now this: sudo php5enmod mcrypt - (optional since its already enabled during phpmyadmin setup) Verify that new files ...


135

Try reseting its configuration dconf reset -f /com/canonical/indicator/datetime/ If it didn't show up try kill it, it should restart pkill -f datetime For similar cases, better to explain how you may get it: Check if it is running, if yes then possibly a configuration problem $ ps ax | grep -i indicator-datetime 2863 ? Ssl 0:00 /usr/lib/...


125

VLC out of the box does not play HEVC files. To fix this we need to install libde265 via PPA, which is an open source implementation of the h.265 video codec. Open up the Terminal and run the commands below: sudo apt-add-repository ppa:strukturag/libde265 sudo apt-get update sudo apt-get install vlc-plugin-libde265 VLC should now play these media files. ...


124

You need to add the Git Maintainers repository in order to get the latest Git version. Please run these commands in order: sudo add-apt-repository ppa:git-core/ppa sudo apt-get update sudo apt-get install git Then, check the version of the installed Git: git --version It's not always necessary to remove the existing Git before upgrading it, but if you ...


124

Cause This is caused by a regression introduced with a fix for libnl3 bug #1511735. Resulting network-manager crash has been reported in network-manager bug #1539513 or network-manager bug #1539634 Solution Downgrade libnl packages and wait for an upgrade of network-manager package Step 1 Try to downgrade libnl with apt-get as in @Max answer: sudo apt-...


103

Ubuntu doesn't use httpd.conf as standard, instead global configuration stuff for apache is found in /etc/apache2/apache2.conf. You can create a httpd.conf in the apache2 directory, and load any further configuration from it by including the following line in /etc/apache2/apache2.conf. Include /etc/apache2/httpd.conf You don't need that file to configure ...


100

NetworkManager is the program which (via the resolvconf utility) inserts address 127.0.1.1 into resolv.conf. NM inserts that address if an only if it is configured to start an instance of the dnsmasq program to serve as a local forwarding nameserver. That dnsmasq instance listens for queries at address 127.0.1.1. If you do not want to use a local forwarding ...


96

I installed SQL Developer with these steps: (See the comments—this might not be necessary) Download and re-install newest Ubuntu 14.04 LTS from Ubuntu website. Install Java: Java Version JDK 7: sudo apt-get install openjdk-7-jdk openjdk-7-jre icedtea-7-plugin sudo update-alternatives --config java Java Version JDK 8 (in some installations this is a ...


96

Enter the following commands in a Terminal: sudo rm -vf /var/lib/apt/lists/* sudo apt-get update


94

Install from Terminal: Note: If you installed older version of Tor-Browser, in first you must clear the old .tor-browser-en folder from home folder. Just clear that by using: cd ~ && rm -r .tor-browser-en Then type following line one by one in Terminal ( Ctrl+Alt+T ) to install Tor-Browser. sudo add-apt-repository ppa:webupd8team/tor-browser ...


88

The fix for 14.04 is indeed different, but not that different: sudo apt-get install linux-headers-generic build-essential dkms sudo apt-get remove --purge virtualbox-dkms sudo apt-get install virtualbox-dkms The install virtualbox-dkms command was actually failing applying the 13.10 fix. By fully purging the package things got back to normal. Update [17-...


86

My guess is that only full disk encryption using a strong algorithm and, most important, good password is the only thing that can secure your locally stored data. This gives you probably 99.99% security. Please refer to one of the many guides on how to do this. Besides than that, it is NOT possible to secure your machine from an experienced hacker with ...


Only top voted, non community-wiki answers of a minimum length are eligible