Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
project:linux_skolka:linuxova_skolka_anebo_training_linuxu_pro_zacatecniky_workshop [2019/07/14 06:22]
over23
project:linux_skolka:linuxova_skolka_anebo_training_linuxu_pro_zacatecniky_workshop [2019/09/13 15:15] (current)
cyberian
Line 1: Line 1:
 ====== Linux training for beginners ====== ====== Linux training for beginners ======
 |**Project owner:**| [[user:​overdrive|Overdrive]] | |**Project owner:**| [[user:​overdrive|Overdrive]] |
-|**Interested:​** | Filuta, Rado808, Cyberian, MiM | +|**Interested:​** ​| [[https://​labka.cz/​wiki/​doku.php?​id=project:​linux_skolka:​linuxova_skolka_anebo_training_linuxu_pro_zacatecniky_workshop#​filuta|Filuta]][[https://​labka.cz/​wiki/​doku.php?​id=project:​linux_skolka:​linuxova_skolka_anebo_training_linuxu_pro_zacatecniky_workshop#​rado808|Rado808]],[[https://​labka.cz/​wiki/​doku.php?​id=project:​linux_skolka:​linuxova_skolka_anebo_training_linuxu_pro_zacatecniky_workshop#​cyberian|Cyberian]][[https://​labka.cz/​wiki/​doku.php?​id=project:​linux_skolka:​linuxova_skolka_anebo_training_linuxu_pro_zacatecniky_workshop#​mim|MiM]] 
-|**Related:​**| [[https://​github.com/​Labka-cz/​Irssi_scripts|GitHub - Labka Repo : Secretary scripts]] -- [[https://​github.com/​Over23/​Linux_Configs/​blob/​master/​config|GitHub : Over's IRSSI config - comment-less]] | +|**Related:​**| [[https://​github.com/​Labka-cz/​Irssi_scripts|GitHub - Labka Repo : Secretary scripts]] -- [[https://​github.com/​Over23/​Linux_Configs/​blob/​master/​config|GitHub : Over's IRSSI config - comment-less]] -- [[https://​labka.cz/​wiki/​doku.php?​id=project:​single_boards#​example_how_to_copy_backup_by_scp| Par zakladu Linuxovych commandu - vyhodit SSH heslo a nastavit klice, SCP, tar.gz a podobne]] -- [[https://​lifehacker.com/​become-a-command-line-ninja-with-these-time-saving-shor-5743814 | zajimave vychytavky pro terminal]] | 
-| **linkz:** | [[https://​wiki.li-on.cz | Training materials - README ]] us/pw: student:​student1 ​ |+| **Linkz:** |  
 +| [[https://​wiki.li-on.cz | Training materials - README ]] us/pw: student:​student1 ​
 +| https://​www.xquartz.org/​ | w11 pro mac | 
 +| http://​www.geo.mtu.edu/​geoschem/​docs/​putty_install.html | X11 forward s PUTTY a XMING | 
 +| https://​mobaxterm.mobatek.net/​ | nahrada PUTTY s vlastnim X serverem, MUSH, telnetem a hromadou vychytavek ​|
 | **License:​** | [[https://​creativecommons.org/​licenses/​by-sa/​3.0/​|Uveďte původ-Zachovejte licenci CC BY-SA]] ​ | | **License:​** | [[https://​creativecommons.org/​licenses/​by-sa/​3.0/​|Uveďte původ-Zachovejte licenci CC BY-SA]] ​ |
  
-===== Install Linux from Windows as DualBoot ​===== +====== ​Lession 1 Topics to teach and work on TOTAL BASICS ​======
-  * create USB with Linux from Windows: https://​www.linuxliveusb.com/​ +
-===== Linux from  command line ===== +
- +
-[[https://​over23.github.io/​r00t_l4b/​useful_linux.html|Everyday BASH Linux solutions]] +
-  * [[https://​labka.cz/​wiki/​doku.php?​id=project:​single_boards#​example_how_to_copy_backup_by_scp|SCP basics]] +
-  * [[https://​labka.cz/​wiki/​doku.php?​id=project:​single_boards#​remove_password_to_ssh|SSH Remove password ​key]] +
-[[https://​labka.cz/​wiki/​doku.php?​id=project:linuxfun|Advanced BASH problems]] +
-[[https://​labka.cz/​wiki/​doku.php?​id=projects:​ssh_reverse_tunnel|SSH reverse tunnel for dynamic IP]] +
-[[https://​www.howtoforge.com/​tutorial/​linux-find-command/​|Basics of Find]] +
- +
- +
-====== worknotes====== ​+
 {{  project:​linux_skolka:​sexy_linux.jpg?​400px}} {{  project:​linux_skolka:​sexy_linux.jpg?​400px}}
-==== TOTAL BASICS Lession 1 + 2 ====+  * create USB with some linux distro from windows [later from *NIX] by https://​www.linuxliveusb.com/​
   * connect 4 RPI [PICKY] to wiifi and nmap it [cyberian]   * connect 4 RPI [PICKY] to wiifi and nmap it [cyberian]
   * get back password because we do not know cluster SD card config [cyberian]   * get back password because we do not know cluster SD card config [cyberian]
Line 35: Line 27:
   * configure idiotic cinnamon to react to single click to copy and paste   * configure idiotic cinnamon to react to single click to copy and paste
   * find how to DDC Send and DDC Accept file over IRC   * find how to DDC Send and DDC Accept file over IRC
-=== MiM ===+  * naucit je poznat verzi kernelu a verzi systemu 
 +  * ukazat, proc je dobre si zmenit nastaveni bashe PS1 [[http://​bashrcgenerator.com/​|generator bash PS1 promenne, nacpat do ~/​.bashrc]] 
 +  * naucit pouzivat man, less, heledani, zaklady vim/vi, tar.gzip, scp, mount, roury, grep, find 
 + 
 + 
 +====== Lession 1 : worknotes ​ ====== 
 +=====  ​MiM ===== 
 +IRC DCC send and accept file: 
 +   * send ToDo.txt to Secretary 
 +   /dcc send Secretary /​home/​over/​ToDo.txt 
 +   * secretary acceptuje ToDo.txt od Over23 
 +   /dcc get Over23 ToDo.txt 
 +  * muzu konnection upplne odmitnout 
 +   /dcc close get nick file"​ 
 + 
 +===== Filuta ===== 
 +{{ project:​linux_skolka:​screenshot_from_2019-07-14_06-21-43.png?​400px}}
  
-=== Filuta === 
 * Takhle nejak je spravne generovani klicu * Takhle nejak je spravne generovani klicu
  
Line 249: Line 256:
  
  
-=== Rado808 === + 
-Install software:  + 
-    aptitude install ​irssi + 
-=== Cyberian === +===== Rado808 ​===== 
-Hack password + 
-Power down and pull the SD card out from your Pi and put it into your computer. +  * Install software: 
-Open the file '​cmdline.txt'​ and add '​init=/​bin/​sh'​ to the end. This will cause the machine to boot to single user mode. +<​code>​  
-Put the SD card back in the Pi and boot. +aptitude search neco-co-hledam 
-When the prompt comes up, type '​su'​ to log in as root (no password needed). +aptitude install ​neco-co-chci-installit 
-Type "​passwd pi" and then follow the prompts to enter a new password. +</​code>​  
-Shut the machine down, then pull the card again and put the cmdline.txt file back the way it was by removing the '​init=/​bin/​sh'​ bit. +  * jak premapovat shift + ctrl + c a shit+ctrl+v v terminalu na neco normalnejsiho 
-Cant write with wireless keyboard. Switched to classical USB.+  * v horni liste terminalu do "​Edit"​ -> "​Preferences"​ 
 +  * celosystemove jsem to zatim jeste nenasel 
 +{{project:​linux_skolka:​screenshot_from_2019-07-14_06-43-53.png?​600px}} ​    
 +  * klavesove zkratky v Linux Minutu na screenshoty [na ebu je jeste klavesovka na nahravani obrazovky, ale stejne bez zvuku] 
 +{{project:​linux_skolka:​screenshot_from_2019-07-14_06-51-11.png?​600px}} 
 +     
 +     
 +===== Cyberian ​===== 
 + 
 +__**THEORY ::​**__ ​Hack password ​ON rpi we do have SD card but we do not know user and pwd  
 +Power down and pull the SD card out from your Pi and put it into your computer. 
 +Open the file '​cmdline.txt'​ and add '​init=/​bin/​sh'​ to the end. This will cause the machine to boot to single user mode. 
 +Put the SD card back in the Pi and boot. 
 +When the prompt comes up, type '​su'​ to log in as root (no password needed). 
 +Type "​passwd pi" and then follow the prompts to enter a new password. 
 +Shut the machine down, then pull the card again and put the cmdline.txt file back the way it was by removing the '​init=/​bin/​sh'​ bit. 
 + 
 +__**REAL LIFE:**__ 
 +  * '​init=/​bin/​sh'​ in  '​cmdline.txt'​ does not work, add 
 + 
 +<​code>​ 
 +systemd.unit=emergency.target 
 +</​code>​ 
 + 
 +  * Cant write with wireless keyboard. Switched to classical USB. 
 +  * to  change password you need to remount '/'​ as read-write not read-only
  
 <​code>​ <​code>​
 mount -o remount, rw / mount -o remount, rw /
-sudo passwd root</​code>​ +</​code>​
-Used password: **dexGauner**+
  
-erased init=bin/sh from cmdline.txt. Applied to all four RPI+<​code>​ 
 +sudo passwd root 
 +Used password: **dexGauner** 
 +</​code>​ 
 +erased ​'init=bin/sh' ​ and '​systemd.unit=emergency.target' ​from cmdline.txt. ​ 
 +Applied to all four RPI
  
 note: note:
Line 274: Line 310:
  
  
 +===== REMOVE - REFORMAT - REDO =====
  
 ==== DO NOT MESS USER RIGHTS OF FILES AND DIRS ==== ==== DO NOT MESS USER RIGHTS OF FILES AND DIRS ====
Line 327: Line 364:
 instead of  instead of 
    ssh [some_user]@193.84.207.21    ssh [some_user]@193.84.207.21
 +
 +
 +===== MOAR RELATED LINKS : Linux from  command line =====
 +
 +[[https://​over23.github.io/​r00t_l4b/​useful_linux.html|Everyday BASH Linux solutions]]
 +  * [[https://​labka.cz/​wiki/​doku.php?​id=project:​single_boards#​example_how_to_copy_backup_by_scp|SCP basics]]
 +  * [[https://​labka.cz/​wiki/​doku.php?​id=project:​single_boards#​remove_password_to_ssh|SSH Remove password + key]]
 +[[https://​labka.cz/​wiki/​doku.php?​id=project:​linuxfun|Advanced BASH problems]]
 +[[https://​labka.cz/​wiki/​doku.php?​id=projects:​ssh_reverse_tunnel|SSH reverse tunnel for dynamic IP]]
 +[[https://​www.howtoforge.com/​tutorial/​linux-find-command/​|Basics of Find]]
  
  
  • project/linux_skolka/linuxova_skolka_anebo_training_linuxu_pro_zacatecniky_workshop.1563078135.txt.gz
  • Last modified: 2019/07/14 06:22
  • by over23