I figured out how to get apt-get to work again.
sudo vim /etc/gai.conf
change line ~54 to uncomment the following:
precedence ::ffff:0:0/96 100
write and quit:
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 ...
You can do this for;
sudo apt-get install openjdk-8-jdk
sudo apt-get install openjdk-8-jre
I found two repository but I do not recommend
OpenJDK builds (all archs)
OpenJDK 8 backport for trusty
If you really want to use OpenJDK, you have to compile ...
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 can be disabled for IDEA by unsetting env. variable XMODIFIERS, but ability to input national characters in IDEA will be lost:
I have used the ...
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)...
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:
Just below it, add the following line:
Then restart SSH:
service ssh reload
For Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-59-generic x86_64) ...
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 ...
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 ...
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
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
Try just doing this:
sudo php5enmod mcrypt
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.
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 ...
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 ...
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).
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
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....
Should show it located at /etc/php5/mods-available
Edit mcrypt.ini and change extension to match the path to mcrypt.so, example:
sudo php5enmod mcrypt - (optional since its already enabled during phpmyadmin setup)
Verify that new files ...
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/...
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.
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:
It's not always necessary to remove the existing Git before upgrading it, but if you ...
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
Downgrade libnl packages and wait for an upgrade of network-manager package
Try to downgrade libnl with apt-get as in @Max answer:
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.
You don't need that file to configure ...
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 ...
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.
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 ...
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
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.
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 ...