Abekta

Nothing human is alien to me

User Tools

Site Tools


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
soft:bash [2023/11/03 12:19] – [Users and Groups] asadsoft:bash [2024/10/16 01:21] (current) – [Screen] asad
Line 2: Line 2:
 ^ Function ^ Code ^ ^ Function ^ Code ^
 | Check storage | ''df -h'' | | Check storage | ''df -h'' |
 +| Check storage | ''du -hs foldername'' |
 +| Physical volumes | ''pvs'' |
 +| Remove | rm -rf sth |
 | System usage monitor | ''htop'' | | System usage monitor | ''htop'' |
 | CPU information | ''lscpu'' | | CPU information | ''lscpu'' |
 | Check drives | ''lsblk'' | | Check drives | ''lsblk'' |
 | Check GPU | ''sudo lshw -C display'' / ''lspci | grep -e VGA'' | | Check GPU | ''sudo lshw -C display'' / ''lspci | grep -e VGA'' |
 +
 +===== - Building from source (with python) =====
 +<code bash>
 +cd software
 +mkdir build
 +cd build
 +cmake -D BUILD_WITH_PYTHON=ON -DCMAKE_INSTALL_PREFIX=<install_path> ..
 +sudo make install
 +export LD_LIBRARY_PATH=<install_path>/lib/:$LD_LIBRARY_PATH
 +export PYTHONPATH=<install_path>/lib/python3.11/site-packages:$PYTHONPATH
 +</code>
  
 ===== Ports ===== ===== Ports =====
Line 20: Line 34:
  
 ===== Screen ===== ===== Screen =====
-<code> +  * Create a screen: ''screen -S name'' 
-screen -S name +  * Detach from the screen with keyboard shortcut: ''ctrl+a d'' 
-screen -ls +  * See list of screens: ''screen -ls'' 
-screen -d -r name +  * Attach to the desired screen: ''screen -r name'' 
-</code> +  * Detach from outside (not needed usually)''screen -d -r name''
- +
-Detach screen from another ssh shell: ''screen -d -r'' +
- +
-Keyboard shortcuts: +
-  * ''ctrl+a d'': leaving a screen without terminating +
-  * ''exit'': to terminate a screen+
  
 ===== Server ===== ===== Server =====
Line 68: Line 76:
  
 ===== GPU ===== ===== GPU =====
-<code>+<code bash>
 sudo apt autoremove nvidia* --purge sudo apt autoremove nvidia* --purge
 sudo /usr/bin/nvidia-uninstall sudo /usr/bin/nvidia-uninstall
Line 81: Line 89:
 </code> </code>
  
 +===== IP setting =====
 +<code bash>
 +ip link
 +sudo nano /etc/netplan/*.yaml
 +</code>
 +
 +Create the yaml file the following way:
 +<code bash>
 +# This is the network config written by 'subiquity'
 +network:
 +  version: 2
 +  renderer: networkd
 +  ethernets:
 +    eno1:
 +      dhcp4: no
 +      addresses: [10.50.255.33/27]
 +      gateway4: 10.50.255.62
 +      nameservers:
 +          addresses: [8.8.8.8]
 +    eno2:
 +      dhcp4: no
 +  version: 2
 +</code>
soft/bash.1699035582.txt.gz · Last modified: 2023/11/03 12:19 by asad

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki