User Tools

Site Tools


cluster-linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cluster-linux [2024/05/26 11:13] gabrielecluster-linux [2026/06/02 10:42] (current) gabriele
Line 7: Line 7:
   - Common Commands   - Common Commands
   - Text editing in command line   - Text editing in command line
 +  - Displaying images in command line
 +  - Displaying images from command line (using X11 forwarding)
 +  - Displaying NIFTI images in command line
 +  - X11 Forwarding
  
  
Line 152: Line 156:
  
  
-===== 5. Displaying images from command line =====+===== 5. Displaying images from command line (using X11 forwarding) =====
 Another option to open an image saved on a remote server is to establish an X11 forwarding connection to the server and use an image viewer. For that, you need to: Another option to open an image saved on a remote server is to establish an X11 forwarding connection to the server and use an image viewer. For that, you need to:
   - Ensure you have X11 installed on your local machine (XQuartz on macOS, typically installed X server on Linux).   - Ensure you have X11 installed on your local machine (XQuartz on macOS, typically installed X server on Linux).
Line 173: Line 177:
   fim /home/gbellucci/results/my_beautiful_result_image.jpg   fim /home/gbellucci/results/my_beautiful_result_image.jpg
  
-You can also open your image by using ''Eye of GNOME'', which tend to display images with higher resolution:+You can also open your image by using ''Eye of GNOME'', which tends to display images with higher resolution:
  
   eog /home/gbellucci/results/my_beautiful_result_image.jpg   eog /home/gbellucci/results/my_beautiful_result_image.jpg
  
  
-===== 5. Displaying NIFTI images in command line =====+===== 6. Displaying NIFTI images in command line =====
 To quickly preview neuroimaging images in NIFTI format on the terminal, you can use ''niicat'' (see [[https://github.com/MIC-DKFZ/niicat?tab=readme-ov-file|here]]). For that, you would not need an X11 forwarding connection, as it prints the image in your terminal using [[https://github.com/saitoha/libsixel|libsixel]]. ''niicat'' can display niftii, png, jpg, or similar images. Importantly, though, to display images with ''niicat'', you need to work on a terminal that supports sixel (see [[https://github.com/saitoha/libsixel#terminal-requirements|here]]). To quickly preview neuroimaging images in NIFTI format on the terminal, you can use ''niicat'' (see [[https://github.com/MIC-DKFZ/niicat?tab=readme-ov-file|here]]). For that, you would not need an X11 forwarding connection, as it prints the image in your terminal using [[https://github.com/saitoha/libsixel|libsixel]]. ''niicat'' can display niftii, png, jpg, or similar images. Importantly, though, to display images with ''niicat'', you need to work on a terminal that supports sixel (see [[https://github.com/saitoha/libsixel#terminal-requirements|here]]).
  
Line 192: Line 196:
  
  
-===== 5. X11 Forwarding =====+===== 7. X11 Forwarding =====
 X11 forwarding is a feature that allows you to run graphical applications installed on a remote server and display them on your local machine as if they were running locally. The “X11” part refers to the X Window System (version 11), which is a protocol and system for managing graphical displays on UNIX and UNIX-like operating systems. X11 forwarding is a feature that allows you to run graphical applications installed on a remote server and display them on your local machine as if they were running locally. The “X11” part refers to the X Window System (version 11), which is a protocol and system for managing graphical displays on UNIX and UNIX-like operating systems.
  
Line 240: Line 244:
 Windows does not natively support X11 forwarding because it does not use the X Window System. However, you can use third-party software like Xming, VcXsrv, or MobaXterm to run an X server on Windows. Combine these with an SSH client like PuTTY or use the built-in SSH in Windows 10 (using the Windows Subsystem for Linux, WSL). See [[https://kb.iu.edu/d/bdnt|here]] for more information. Windows does not natively support X11 forwarding because it does not use the X Window System. However, you can use third-party software like Xming, VcXsrv, or MobaXterm to run an X server on Windows. Combine these with an SSH client like PuTTY or use the built-in SSH in Windows 10 (using the Windows Subsystem for Linux, WSL). See [[https://kb.iu.edu/d/bdnt|here]] for more information.
  
 +
 +===== 8. Changing password on Cluster =====
 +To change your own password, write ''passwd'' in the Terminal without any arguments and press enter: 
 +
 +  passwd
 +  
 +You will be prompted to enter your current password. If correct, the command will ask you to enter and confirm the new password. You will then see that the password has been successfully updated. Log in again using the new password.
  
  
cluster-linux.1716721995.txt.gz · Last modified: 2024/05/26 11:13 by gabriele

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki