which java
java -version
ls -ltr /usr/bin/java
ls -ltr /etc/alternatives/java
sudo yum update
yum list installed | grep "java"
sudo yum install java-1.8.0-openjdk-devel
cd /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-5.b12.el7_4.x86_64/
sudo ln -sf /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-5.b12.el7_4.x86_64/bin/java /etc/alternatives/java
Friday, January 5, 2018
Gnome hotcorner: most annoying unwanted feature ever
I have moved away from Windows because I was really fed up with Microsoft. Installed Centos with Gnome. To discover that Gnome is even worse!
If by mistake you put the mouse on the screen border, all your open windows stack up and you are forced to click back on a thumbnail to resume work.
And apparently, after 20 minutes googling, there is no easy way to disable this unasked-for, unwanted trollish feature.
Even in Applications/Utilities/Tweak tools I could not find an option to disable this stupid crap.
YAGNI: you will never need this stupid trick, then why enabling it by default? I simply hate UIs overloaded with hidden features..... KEEP IT SIMPLE !
If by mistake you put the mouse on the screen border, all your open windows stack up and you are forced to click back on a thumbnail to resume work.
And apparently, after 20 minutes googling, there is no easy way to disable this unasked-for, unwanted trollish feature.
Even in Applications/Utilities/Tweak tools I could not find an option to disable this stupid crap.
YAGNI: you will never need this stupid trick, then why enabling it by default? I simply hate UIs overloaded with hidden features..... KEEP IT SIMPLE !
Tuesday, January 2, 2018
Linux misc (iptables, dig, rpm)
echo $LANG
en_US.UTF-8
CTRL-SHIFT-U allows you to enter the 4 letters for a Unicode character (eg 03bb is greek lambda)
localectl
System Locale: LANG=en_US.UTF-8
VC Keymap: it
X11 Layout: it,us
X11 Variant: ,
to change locale:
localectl set-locale LANG=fr_FR.utf8
cat /etc/locale.conf
LANG="en_US.UTF-8"
list all available language packs:
yum langavailable
list installed language packs:
yum langlist
iptables tutorial instructions: https://www.howtogeek.com/177621/the-beginners-guide-to-iptables-the-linux-firewall/
sudo iptables -L -v
sudo iptables -F
sudo cat /etc/sysconfig/iptables
network:
dig
systemctl status firewalld
systemctl status NetworkManager
history: remove line numbers by adding to .bash_profile
HISTTIMEFORMAT="$(echo -e '\r\e[K')"
#rpm list all packages
rpm -qa | grep ansible
#this installs 1.1 without removing 1.0 if exists
rpm -ivh some-package-1.1
#this updates (if existing) 1.0 to 1.1
rpm -Uvh some-package-1.1
en_US.UTF-8
CTRL-SHIFT-U allows you to enter the 4 letters for a Unicode character (eg 03bb is greek lambda)
localectl
System Locale: LANG=en_US.UTF-8
VC Keymap: it
X11 Layout: it,us
X11 Variant: ,
to change locale:
localectl set-locale LANG=fr_FR.utf8
cat /etc/locale.conf
LANG="en_US.UTF-8"
list all available language packs:
yum langavailable
list installed language packs:
yum langlist
iptables tutorial instructions: https://www.howtogeek.com/177621/the-beginners-guide-to-iptables-the-linux-firewall/
sudo iptables -L -v
sudo iptables -F
sudo cat /etc/sysconfig/iptables
network:
dig
systemctl status firewalld
systemctl status NetworkManager
history: remove line numbers by adding to .bash_profile
HISTTIMEFORMAT="$(echo -e '\r\e[K')"
#rpm list all packages
rpm -qa | grep ansible
#this installs 1.1 without removing 1.0 if exists
rpm -ivh some-package-1.1
#this updates (if existing) 1.0 to 1.1
rpm -Uvh some-package-1.1
Subscribe to:
Posts (Atom)