From 4178de0d8087e578bf89a84b6c8b51942531d09e Mon Sep 17 00:00:00 2001 From: Hugo LAMY Date: Sun, 6 Apr 2025 23:02:48 +0200 Subject: [PATCH] improved a little bit tuto server connection with ipmi --- tutos/server.md | 45 +++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/tutos/server.md b/tutos/server.md index 8f39f7a..dcf1852 100644 --- a/tutos/server.md +++ b/tutos/server.md @@ -129,28 +129,33 @@ gateway : fe80::226:bff:feef:59ff ## prevent loosing definitively ssh connection : **https://www.reddit.com/r/servers/comments/17mtlxf/how_to_set_up_a_backup_connection_to_a_server_if/** ## ipmi / idrac6 : connect to the server without ssh : -- connect to ipmi (enter the ip adress of the internet connection, not the one of the server) +- launch the ipmi session on the ecowan pannel, fill the ip address (no the server one, your internet connection one, ex by searching "what is my ip"), it will give you + - the url with the ip : `https://51.159.47.149/` + - the username : sd-51086 + - the password +### OPTION 1/2 : you can then connect to the idrac web interface - in the idrac interface, go to the console and click on 'launch virtual console' -> it will download a viewer.jnlp file -- OPTION 1/3 : open this file with java with python script : - - the script can be found here : **https://gist.github.com/TheJJ/2394cd76d3e2c34d02e3da1bd3e489b2?ref=blockdev.io** - - I added it to this config folder - - i also added it to the PATH **~/.local/bin/idracclient.py** so you can call it from anywhere like that : **idracclient.py -u ** -- OPTION 2/3 : open this file with global java yourself (last time it didn't worked) : - - install java 8 (it might works better with idrac6) : **sudo apt-get install openjdk-8-jre** - - for other versions : **https://openjdk.org/install/** - - install javaws : **sudo apt install icedtea-netx** - - to open viewer.jnlp file run : **javaws viewer.jnlp(blablabla)** - - i also needed to change the security file otherwise it wouldn't open the files because 'jar are not signed' : - - maybe see : https://unix.stackexchange.com/questions/143805/running-unsigned-javaws-code - - either do it manually : in **/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security**, change lines: - - **jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024...** to remove 'md5' - - **jdk.jar.disabledAlgorithms=MD2, RSA keySize < 1024...** - - alternatively you can have a local override, see **https://gist.github.com/xbb/4fd651c2493ad9284dbcb827dc8886d6** - - also, if needed to modify the java control panel, open it with : **/usr/bin/itweb-settings** -- OPTION 3/3 : open this file with local java yourself (last time it didn't worked) : - - same as before, but instead of installing the files with apt, you download the archives and unzip them in a folder - - see : **https://gist.github.com/xbb/4fd651c2493ad9284dbcb827dc8886d6** +### OPTION 2/2 : you can launch the console in java : +#### OPTION 2.1/3 : open the java console with python script : +- the script can be found here : **https://gist.github.com/TheJJ/2394cd76d3e2c34d02e3da1bd3e489b2?ref=blockdev.io** +- I added it to this config folder +- i also added it to the PATH **~/.local/bin/idracclient.py** so you can call it from anywhere like that : **idracclient.py -u ** +#### OPTION 2.2/3 : open this file with global java yourself (last time it didn't worked) : +- install java 8 (it might works better with idrac6) : **sudo apt-get install openjdk-8-jre** +- for other versions : **https://openjdk.org/install/** +- install javaws : **sudo apt install icedtea-netx** +- to open viewer.jnlp file run : **javaws viewer.jnlp(blablabla)** +- i also needed to change the security file otherwise it wouldn't open the files because 'jar are not signed' : + - maybe see : https://unix.stackexchange.com/questions/143805/running-unsigned-javaws-code + - either do it manually : in **/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security**, change lines: + - **jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024...** to remove 'md5' + - **jdk.jar.disabledAlgorithms=MD2, RSA keySize < 1024...** + - alternatively you can have a local override, see **https://gist.github.com/xbb/4fd651c2493ad9284dbcb827dc8886d6** +- also, if needed to modify the java control panel, open it with : **/usr/bin/itweb-settings** +#### OPTION 2.3/3 : open this file with local java yourself (last time it didn't worked) : +- same as before, but instead of installing the files with apt, you download the archives and unzip them in a folder +- see : **https://gist.github.com/xbb/4fd651c2493ad9284dbcb827dc8886d6**