~$ python -V
Python 2.7.15rc1
~$ python3 -V
Python 3.6.5
I don't know what came default with Ubuntu but I'm sure I did install python from the website, and also pip. I don't remember any of it. How do I clean up?
I am beginning to code in java, downloaded the binary from here. Then followed the instructions from here, however I was met with some errors regarding java-package and I ran into this which solved my problem and I went ahead with following the instructions on that page and installed the binary package created.
$ javac -version
javac 10.0.2
$ java -version
Command 'java' not found, but can be installed with:
sudo apt install default-jre
sudo apt install openjdk-11-jre-headless
sudo apt install openjdk-8-jre-headless
$ javac Hello.java
compiles the program successfully
Unable to run the program,
$ java Hello
Command 'java' not found, but can be installed with:
sudo apt install default-jre
sudo apt install openjdk-11-jre-headless
sudo apt install openjdk-8-jre-headless
The instructions I found online are not clear. Most of them use OpenJDK, and I know I could've gone with that but since I'm already into Oracle's I'm wanting to go with that.
So there's manual installation in which I've seen people creating their own directory and moving the extract of the binary package there and then running some update-alternative
commands to apparently set it up.
But I've followed Debian's wiki and used java-package.
I'm actually quite confused. Can someone clearly explain all this? Would be really appreciated.
I did
$ sudo gedit /etc/profile
and added these two lines at the end-
export JAVA_HOME=/usr/lib/jvm/oracle-java10-jdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
and now,
$ java -version
java version "10.0.2" 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
First of all I'd like to start off with the basic information regarding audio for HP laptops which previously shipped with Beats Audio and now with Bang & Olufsen.
There have been several questions asked for the latter:
Subwoofer and Bang&Olufsen speakers not working in HP envy 14-j107tx
subwoofer sound preferences problem
..and many more
What do I know?
Maybe it can be fixed with HDAJackRetask GUI from alsa-tools-gui
package(according to the reddit thread). I don't know the remapping for my particular laptop.
There are two front speakers powered from motherboard and two back speakers powered by separate amplifier. The speakers powered by the amplifier don't work.
The closest I've been to it is with this bug report. 2 years and still not a fix by HP. Shame. But there are some workarounds to be found in the thread(also including the mute LED which doesn't work by default). Totally worth having a look.
My personal laptop is HP Pavilion x360 Convertible 14-ba074TU with ALC295.
If someone has any knowledge related to the topic, please share.
The error being displayed is:
Err:1 http://ppa.launchpad.net/tista/adapta/ubuntu bionic/main amd64 adapta-gtk-theme all 3.94.0.1-0ubuntu1~bionic1
Connection timed out [IP: 91.189.95.83 80]
E: Failed to fetch http://ppa.launchpad.net/tista/adapta/ubuntu/pool/main/a/adapta-gtk-theme/adapta-gtk-theme_3.94.0.1-0ubuntu1~bionic1_all.deb Connection timed out [IP: 91.189.95.83 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
When I sudo apt upgrade
my box, sometimes the download of any individual file stops, the download speed indicator in the right side vanishes and then it takes at least a minute or two to display the error above.
This happens most of the times especially when the download size is a bit on the bigger size(>11MB). The interesting part is that when I enter the command to upgrade again, it resumes from where it stopped and finishes it successfully. More logs are in the comments below.
I was trying to play acestream content on Ubuntu 18.04, however acestream has provided us with the engine upto Ubuntu 16 only.
Here is the download link
I then unpacked the tarball and installed the dependencies and followed the instructions from here. However I'm not able to get the engine to run. I want to be able to play acestream links with media player of my choice so I'm using this- acestream-launcher. My issue on the same is present here.
I did my research and found an answer which is very outdated. Another question is not properly answered.
Please don't comment on the presence of the snap package(acestreamplayer) as I'm very well aware of that, and also in the issue mentioned above am able to use the acestream snap's engine with the acestream-launcher (also linked above).
I did some search, and all I get are:
Out of which conky seems to be the most anticipated but all of them seem to be deprecated.
gdesklets died and universal applets arised which also lost it's development
Screenlets went as far as 16.10 but that too is kinda buggy
There are some discussion threads, but they date back to 2008, 2010.
I'm currently using conky and it's working great with configurations from DeviantArt. Also there's CoverGloobus as a sincere music widget(I'm not sure about it's development though).
Can someone who's been around for a while guide us newcomers?
I'm fairly new to Ubuntu. I read a couple dozen articles to understand the basic functionality and the overall use(how-tos etc.).
I read and I know that I can update whatever packages I have installed by the command sudo apt update
followed by sudo apt upgrade
. I also know that the software centre is kind of in-the-works and doesn't show the updates for all the packages. So I was upgrading my packages with the help of command-line.
Today a pop-up came which said I have some updates, clicking on it opened the Ubuntu software centre with two packages showing in the updates tab. Now, when I run sudo apt update
, it shows All packages are up to date
. Let's just say that I avoid using Ubuntu Software centre and I'm not really fond of it. Why aren't those two packages listed with the sudo apt update
command and how can I upgrade them using the command line?
I'm attaching some screenshots for better understanding:
PS: I actually solved this question just before posting. But for some sake, I decided to post this anyways. See the answer ;)
I was trying a bitmap font from github, and I had to enable bitmap fonts as they are disabled by default in Ubuntu. I did not know that enabling bitmap fonts would have some side-effects. I'm sure something seems wrong with my the text in Chrome(just as if it's using a new font altogether). I don't like it. So I'd like to revert it as it was before I enabled bitmap fonts.
I used the following commands to enable bitmap fonts:
cd /etc/fonts/conf.d/
sudo rm /etc/fonts/conf.d/10* && sudo rm -rf 70-no-bitmaps.conf && sudo ln -s ../conf.avail/70-yes-bitmaps.conf
sudo dpkg-reconfigure fontconfig
Please help me to disable bitmap fonts. Thanks in advance!
I was just trying to install pip some months ago, I recall. However, I've had no use of it till date.
I recall visiting this site and going on with the command curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
. I can also verify this as I have get-pip.py
in my ~
. Then I also remember reading
"pip is already installed if you are using Python 2 >=2.7.9 or Python 3 >=3.4 downloaded from python.org or if you are working in a Virtual Environment created by virtualenv or pyvenv. Just make sure to upgrade pip."
I obviously had Python installed, so I can remember running pip install -U pip
and it installing the latest version, but I don't remember if I ever ran sudo python get-pip.py
before reading the above(it is supposed to be run if you don't have python already installed).
I don't remember it but I think I did, because I have these files:
in /usr/local/bin
with the same modified date as that of get-pip.py
in my home directory.
Now when I run pip install -U pip
, it returns Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages (10.0.1)
I'm just trying to clean my system of unwanted stuff and want to get rid of this extra installation I did(if I did it). How do I proceed with it? Thanks in advance!
So I've read this and now my question is that what is the difference between placing the fonts in ~/.local/share/fonts
vs /usr/local/share/fonts
?
The answer in the link above says that /usr/local/share/fonts
is used "if you need the fonts to be available system-wide", so my guess would be that ~/.local/share/fonts
doesn't make the font available system-wide. Although I'm not sure and hence the question.
Thanks in advance.