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
Next revision Both sides next revision
project:linux_skolka:linuxova_skolka_anebo_training_linuxu_pro_zacatecniky_workshop [2019/07/14 06:10]
over23 [TOTAL BASICS Lession 1]
project:linux_skolka:linuxova_skolka_anebo_training_linuxu_pro_zacatecniky_workshop [2019/07/16 05:12]
over23 [Linux training for beginners] - zajimave vychytavky pri terminaly: https://lifehacker.com/become-a-command-line-ninja-with-these-time-saving-shor-5743814
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 + 2 : Topics to teach and work on : TOTAL BASICS ======
 {{  project:​linux_skolka:​sexy_linux.jpg?​400px}} {{  project:​linux_skolka:​sexy_linux.jpg?​400px}}
- +  ​* create USB with some linux distro ​from windows [later from *NIX] by https://​www.linuxliveusb.com/​ 
-  ​* create USB with Linux from Windows: ​https://​www.linuxliveusb.com/​ +  ​* connect 4 RPI [PICKY] to wiifi and nmap it [cyberian] 
- +  * get back password because we do not know cluster SD card config [cyberian
-===== Linux from  command line ===== +  * create user account on machine darkstar for all users [they must be able to generate secure a pub key and connect by it to server]  
- +      * next step, same it will be on PICKY [Filuta] 
-[[https://​over23.github.io/​r00t_l4b/​useful_linux.html|Everyday BASH Linux solutions]] +  * turn off connection by username [google it
-  * [[https://​labka.cz/​wiki/​doku.php?​id=project:​single_boards#​example_how_to_copy_backup_by_scp|SCP basics]] +  * add user to sudoers ​[visudo or wheel] - not lame on darkstar ​[google it, to explain su, sudo and root] 
-  * [[https://​labka.cz/​wiki/​doku.php?​id=project:​single_boards#​remove_password_to_ssh|SSH Remove password + key]] +  * show them basic of IRC [hex chat for GUI a IRSSI on tmux
-[[https://​labka.cz/​wiki/​doku.php?​id=project:​linuxfun|Advanced BASH problems]] +  * explain user rights 
-[[https://labka.cz/wiki/doku.php?​id=projects:​ssh_reverse_tunnel|SSH reverse tunnel for dynamic IP]] +  * explain pipes and > and >> 
-[[https://www.howtoforge.com/​tutorial/​linux-find-command/​|Basics of Find]]+  * explain directory structure 
 +  * explain tmux/screen and why 
 +  * show them how to google ​problems  
 +  * configure idiotic cinnamon to react to single click to copy and paste 
 +  * find how to DDC Send and DDC Accept file over IRC 
 +  * 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
  
  
-===== worknotes ===== +====== Lession 1 : worknotes ​ ====== 
-==== TOTAL BASICS Lession 1 ==== +=====  MiM ===== 
-  * connect 4 RPI to wiifi and nmap it +IRC DCC send and accept file: 
-  get back password because we do not know cluster SD card config +   ​send ToDo.txt to Secretary 
-  create user account on machine +   /dcc send Secretary /​home/​over/​ToDo.txt 
-  * create public and secret key +   secretary acceptuje ToDo.txt od Over23 
-  * turn off connection by username +   /dcc get Over23 ToDo.txt 
-  * add user to sudoers [visudo or wheel]+  * muzu konnection upplne odmitnout 
 +   /dcc close get nick file"
  
-=== MiM ===+===== 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 243: Line 252:
 [filuta@darkstar ~]$ xeyes [filuta@darkstar ~]$ xeyes
 </​code>​ </​code>​
 +{{ project:​linux_skolka:​screenshot_from_2019-07-14_06-09-46.png}}
  
-=== Rado808 === + 
-Install software:  + 
-    aptitude install ​irssi + 
-=== Cyberian === + 
-Hack password + 
-Power down and pull the SD card out from your Pi and put it into your computer. +===== Rado808 ​===== 
-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. +  * Install software: 
-When the prompt comes up, type '​su'​ to log in as root (no password needed). +<​code>​  
-Type "​passwd pi" and then follow the prompts to enter a new password. +aptitude search neco-co-hledam 
-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. +aptitude install ​neco-co-chci-installit 
-Cant write with wireless keyboard. Switched to classical USB.+</​code>​  
 +  * jak premapovat shift + ctrl + c a shit+ctrl+v v terminalu na neco normalnejsiho 
 +  * 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 269: Line 310:
  
  
 +===== REMOVE - REFORMAT - REDO =====
  
 ==== DO NOT MESS USER RIGHTS OF FILES AND DIRS ==== ==== DO NOT MESS USER RIGHTS OF FILES AND DIRS ====
Line 322: 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.txt
  • Last modified: 2019/09/13 15:15
  • by cyberian