Newer
Older
kooistra@dop466:/dop466_0/kooistra/git/hdl$ find /usr -name libstdc++.so.6
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/usr/lib/i386-linux-gnu/libstdc++.so.6
/usr/local/MATLAB/R2018a/sys/os/glnxa64/libstdc++.so.6
cd /home/software/Altera/18.0/quartus/linux64/
cp -p libstdc++.so.6 libstdc++.so.6.quartus
rm libstdc++.so.6
ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6
Dit werkt, oplossing komt uit:
https://forum.step.esa.int/t/snap9-error-libegl-warning-mesa-loader-failed-to-open-swrast/36702/2
*******************************************************************************
* Linux
*******************************************************************************
# Window outside screen
Doe Alt-F7 in window, daarna kun je het met de muis slepen.
# If login does not source .bashrc, then set bash as default shell and relogin
chsh -s /bin/bash
# Linux update via
# - system updates available icon and notifications icon in toolbar
# - of via command line:
> uname -a # linux info
> sudo -s # become root
> apt-get upgrade
> apt-get dist-upgrade
> apt autoremove
# Henk Vosmeier
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt remove
# Login on dop386 and then power off:
> sudo shutdown
> tar -cvf filename.tar dir_name/ # create tar
> tar -xvf filename.tar # extract tar
> gzip filename # zip file
> unzip filename.gz # unzip file
> zip -r apertif_matlab-v1.0.zip apertif_matlab
> zipinfo apertif_matlab-v1.0.zip
> tar -xvzf lofar2_unb2b_sdp_station_full_wg-r241070441.tar.gz
> grep -rl 'search text in files' . # -r for recursive, -l for only list filename
> scp kooistra@dop386:/home/kooistra/x.txt .
Start --> Administration --> Synaptic package manager
> sudo -s # to become root
> sudo pip install numpy # to run Python2 library installer as root
> sudo pip3 install numpy # to run Python3 library installer as root
> sudo apt-get install python3-tk # worked, now I can do: python3 test_plot.py
> sudo apt-get install pip # to install Python2 library installer
> sudo apt-get install python-matplotlib
> sudo apt-get update -y
> sudo apt-get install -y latexmk
> sudo apt-get install texlive-latex-base
> sudo apt-get install texlive-fonts-recommended
> sudo apt-get install texlive-fonts-extra
> sudo apt-get install texlive-latex-extra
> sudo apt-get install lmodern # want log gaf aan dat lmodern.sty miste, nu wel pdf gegenereerd
> sudo pip3 install jupyterlab
# Add to .bashrc: export PATH="$HOME/.local/bin:$PATH"
> jupyter-lab
WARNING: The scripts f2py, f2py3 and f2py3.8 are installed in '/home/kooistra/.local/bin' which is not on PATH.
# Markdown
> sudo pip3 install markdown # zit al in Python3, maar kan alleen md --> html
> sudo pip3 install mdutils # https://pypi.org/project/mdutils/ # kan md genereren
# primary group
# supplementary groups
groups kooistra # lists in which Linux groups I am a member of
id kooistra # lists in which Linux groups I am a member of
getent group sudo # lists which users are in the sudo Linux group
getent group software # lists which users are in the software Linux group
more /etc/group
sudo groupadd software # add new Linux group 'software'
sudo usermod -a -G software kooistra # add user 'kooistra' to a Linux group 'software'
ls -l filename # shows current user,group owners of the 'filename'
sudo chgrp software filename # change group of 'filename' to 'software'
sudo chgrp -R software dirname # recursively change group of 'dirname' to 'software'
sudo chown user_name file_name # change user,group
https://linuxmint-user-guide.readthedocs.io/en/latest/upgrade-to-mint-20.html
sudo pip3 install matplotlib
sudo apt-get install python3-pil.imagetk
> python3 base/test_plot.py # werkt nu
sudo pip3 install asyncua
./sdp_rw.py --host dop421 -l # werkt nu
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
*******************************************************************************
* ICT diensten
*******************************************************************************
Self Service Password Reset
Met Self Service Password Reset (SSPR) is het mogelijk voor gebruikers om zelf hun wachtwoord
opnieuw instellen voor diverse ldap-diensten zonder tussenkomst van ict, zoals bijvoorbeeld de
netwerkschijven (H en I), intranet, vpn, Confluence, Jira en Surfmarkt.
Door middel van uitdagingsvragen kan een gebruiker bevestigen wie hij/zij is voordat ze hun
wachtwoorden veilig kunnen resetten.
Link: https://sspr.astron.nl
SURFfilesender
SURFfilesender is een webgebaseerde applicatie waarmee geauthenticeerde gebruikers veilig en
gemakkelijk willekeurig grote bestanden naar andere gebruikers kunnen verzenden. Gebruikers zonder
een account kunnen een gastvoucher worden gestuurd door een geverifieerde gebruiker. SURFfilesender
is ontwikkeld volgens de eisen en wensen van onderwijs en onderzoek.
Link: https://filesender.surf.nl
edu.nl: privacy-vriendelijke URL-shortener
edu.nl is dé URL-shortener voor onderwijs en onderzoek. Veilig omdat gebruikers inloggen met
SURFconext. Privacy-vriendelijk omdat edu.nl geen persoonlijke gegevens van gebruikers opslaat en
bezoekers van links niet trackt. edu.nl is kosteloos voor alle bij SURF aangesloten instellingen.
Link: https://filesender.surf.nl
Een uitgebreide beschrijving van deze diensten (Home » Diensten » ICT » Manuals and Documents)
is te vinden op het intranet
https://intranet.astron.nl/diensten/ict/manuals-and-documents/manuals-and-documents
*******************************************************************************
* Python
*******************************************************************************
pycharm
https://pypi.org/project/black/ # Python code formatter
numpy tutorial:
https://lwn.net/SubscriberLink/847039/3016fa7278000b77/
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
*******************************************************************************
* Numpy, matplotlib.pyplot
*******************************************************************************
a = 20
plt.figure(figsize=(16, 6))
plt.subplot(1, 2, 1)
plt.plot(si_ampls[0:a], si_SSTs_dB[0:a])
plt.title(f"SST as function of input sine amplitude [0:{a}>")
plt.xlabel("si_ampl, ni_sigma [q]")
plt.ylabel("SST [dB]")
plt.grid()
plt.subplot(1, 2, 2)
plt.plot(si_ampls[a:], si_SSTs_dB[a:])
plt.title(f"SST as function of input sine amplitude [{a}:{FS}>")
plt.xlabel("si_ampl, ni_sigma [q]")
plt.ylabel("SST [dB]")
plt.grid()
*******************************************************************************
* Jupyter
*******************************************************************************
Installed in:
ll /home/kooistra/.local/bin/
jupyter tutorial
https://www.dataquest.io/blog/jupyter-notebook-tutorial/
https://www.dataquest.io/blog/advanced-jupyter-notebooks-tutorial/
uses Markdown
Startup with:
> jupyter-lab # lab is new,
Works from home in VPN:
* LTS --> http://test-lcu2.astron.nl:8888/notebooks/ # = dop81
* DTS --> http://dts-lcu.astron.nl:8888/notebooks/
XST indices:
* DTS --> http://dts-lcu.astron.nl:8888/tree/python_test_scripts/XST_test/XSTs
* DTS --> http://dts-lcu.astron.nl:8888/notebooks/python_test_scripts/XST_test/XST_index_test.ipynb
Get XST results h5 file per crosslet on local machine from LCU2
> ls22-statistics-writer -a dts-lcu.astron.nl
Check of SDPTR op dop369 actief is met:
> uals -u 10.87.2.36:4840 -p "0:Objects"
*******************************************************************************
* Graphana
*******************************************************************************
http://dts-lcu.astron.nl:3000/?orgId=1
*******************************************************************************
* Zenodo DOI
*******************************************************************************
- login at https://zenodo.org/
- choose Upload in main menu --> my zenodo DOIs area
- choose New Upload button
- fill in all fields, reserve a DOI and do save
- check the README.md, NOTICE.md (with the DOI) and the LICENSE.md
- create the zip file
- upload the zip file and publish the DOI.
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
*******************************************************************************
* Install OpenSCAD
*******************************************************************************
https://ubuntuhandbook.org/index.php/2019/01/install-openscad-ubuntu-18-10-18-04/
> sudo apt-get install openscad # werkt niet voor Unbuntu 18.04 = Mint 19.03
> sudo add-apt-repository ppa:openscad/releases # use Personal Package Archive = PPA instead
You are about to add the following PPA:
Backports of OpenSCAD stable releases
More info: https://launchpad.net/~openscad/+archive/ubuntu/releases
Press Enter to continue or Ctrl+C to cancel
Executing: /tmp/apt-key-gpghome.2EIWTkQ4Yk/gpg.1.sh --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys CB86A1742C718B1EEA0440B3176F9F68AD382CA4
gpg: key 176F9F68AD382CA4: public key "Launchpad PPA for OpenSCAD packagers" imported
gpg: Total number processed: 1
gpg: imported: 1
> sudo apt-get update
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://ppa.launchpad.net/openscad/releases/ubuntu bionic InRelease [15,9 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]
Hit:5 http://ppa.launchpad.net/remmina-ppa-team/remmina-next/ubuntu bionic InRelease
Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]
Hit:7 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:8 http://archive.canonical.com/ubuntu bionic InRelease
Ign:9 http://packages.linuxmint.com tricia InRelease
Get:10 http://ppa.launchpad.net/openscad/releases/ubuntu bionic/main i386 Packages [2296 B]
Hit:11 http://security.ubuntu.com/ubuntu bionic-security InRelease
Get:12 http://ppa.launchpad.net/openscad/releases/ubuntu bionic/main amd64 Packages [2296 B]
Get:13 http://ppa.launchpad.net/openscad/releases/ubuntu bionic/main Translation-en [1020 B]
Hit:14 http://packages.linuxmint.com tricia Release
Fetched 185 kB in 1s (191 kB/s)
Reading package lists... Done
> sudo apt-get install openscad
Gelukt !
*******************************************************************************
* Drawio
*******************************************************************************
Oude drawio uninstall mbv Administration/Software Manager
Nieuw heet nu diagrams.net 18.1.3 installed mbv Administration/Software Manager
Alt-F7 to move window on screen
*******************************************************************************
* DTS-lab unb2c
*******************************************************************************
> mystep
> Program FPGA using USB programmer:
> run_quartus unb2c &
- Open programmer via button icon --> Hardware setup --> Add hardware
Server name 10.87.6.204 (lab laptop) password: uniboard
JTAG settings (OK)
Hardware settings dubbel click
Auto detect
Select FPGA --> change file (sof) --> select Program/Reconfigure --> Start
> Via dop421 upe_gear:
. ./init_upe.sh
mkdir reginfo