Informatics1-2017/Practice1

A MathWikiből
(Változatok közti eltérés)
75. sor: 75. sor:
 
=== File structure ===
 
=== File structure ===
  
* Tulajdonságok:
+
* Properties:
** Fa struktúra
+
** Tree stucture
** '''/''' : gyökér könyvtár. A fájlrendszer kiindulópontja.
+
** '''/''' : root folder. The start of the file structure.
** állományok:
+
** folders:
*** közönséges
+
*** general
*** speciális (pl. /dev/cdrom)
+
*** special (e.g. /dev/cdrom)
*** katalógus
+
*** catalogue
* Néhány katalógus
+
* Some catalogues
** '''/home/''': A felhasználók saját könyvtárai (teljes hozzáférés).
+
** '''/home/''': User folders.
** '''/boot/''' : A boot-oláshoz szükséges fájlok.
+
** '''/boot/''' : Files needed to boot up.
** '''/tmp/''' : Alkalmazások ideiglenes fájljai.
+
** '''/tmp/''' : Temporary files.
** '''/dev/''' : Eszközök (HDD, CD, billentyűzet)
+
** '''/dev/''' : Devices (HDD, mouse, etc.)
** '''/mnt/''' : Mount pontokat tartalmazó könyvtár
+
** '''/mnt/''' : Mount points (e.g. pendrive)
** '''./''' : Az aktuális könyvtár.
+
** '''./''' : Current folder.
** '''../''' : Az aktuális könyvtár szülő könyvtára.
+
** '''../''' : Parent of the current folder.
** '''~/''' : A felhasználó home könyvtára. Ugyanaz, mint a $HOME környezeti változó.
+
** '''~/''' : The home folder of the user, same as the $HOME environmental variable.
** Mindenkinek van egy saját mappája a '''/home/student/felhasznaloi_nev''' alatt. Ebben van egy '''public_html''' mappa, ebben van mindenkinek a saját honlapja.
+
** Everyone has a home folder at '''/home/student/felhasznaloi_nev'''. In this home folder a folder named '''public_html''' contains their homepage.
** '''~/.*''' általában user beállítások, például '''.bashrc''', '''.config/''', '''.forward'''
+
** '''~/.*''' contains user settings e.g. '''.bashrc''', '''.config/''', '''.forward'''
  
=== Alapvető programok ===
+
=== General programs ===
* terminál: Applications menu -> System Tools -> Konsole
+
* terminal: Applications menu -> System Tools -> Konsole
 
* Midnight Commander <tt>mc</tt>
 
* Midnight Commander <tt>mc</tt>
 
* <tt>top</tt>
 
* <tt>top</tt>
* szövegszerkesztők:
+
* editors:
 
** gedit
 
** gedit
 
** mcedit, nano,  
 
** mcedit, nano,  
** mindentudók: emacs, vim ([https://en.wikipedia.org/wiki/Editor_war harc a szövegszerkesztők között])
+
** for the brave: emacs, vim ([https://en.wikipedia.org/wiki/Editor_war war of the editors])
* beépített programok listázása: <tt>help</tt>
+
* list of programs: <tt>help</tt>
* segíts magadon:
+
* help yourself:
** <tt>info</tt> <parancs>
+
** <tt>info</tt> <command>
** <tt>man</tt> <parancs> (ez a régebbi UNIX)
+
** <tt>man</tt> <command>
** <parancs> <tt>--help</tt>
+
** <command> <tt>--help</tt>
  
=== Gyorsbillentyűk ===
+
=== Shortcuts ===
* Vágólap
+
* Clipboard
** egérrel kijelölés, jobb-klikk
+
** select something with your mouse, right click
 
** Ctrl+Insert, Shift+Insert
 
** Ctrl+Insert, Shift+Insert
** alkalmazásonként változhat (itt is van Ctrl+C, Ctrl+V)
+
** varies by applications (usually Ctrl+C, Ctrl+V)
* navigálás
+
* navigation
** TAB: kiegészítés
+
** TAB: completion
** HOME: sor elejére, END: sor végére
+
** HOME: beginning of line, END: end of line
* terminál
+
* terminal
** fel, le nyilak: előzmények
+
** up, down arrows: history
** Ctrl+R keresés előzményekben
+
** Ctrl+R search the history
  
=== Leibniz elérése otthoni linuxról ===
+
=== Reaching the Leibniz server from home ===
  
* Fájlkezelõbõl:
+
* From a file editor:
 
** File -> Connect to server...
 
** File -> Connect to server...
** Service type: FTP (with login), vagy ha ez nincs, akkor SFTP
+
** Service type: FTP (with login), or SFTP
 
** Server: leibniz.math.bme.hu
 
** Server: leibniz.math.bme.hu
 
** Port: 80
 
** Port: 80
** Folder: (üres)
+
** Folder: (empty)
** User name: felhasználónevetek
+
** User name: your username
  
* Terminálból:
+
* From a terminal:
** '''ssh username@leibniz.math.bme.hu''', ahol a '''username''' a felhasználónevetek, ezzel parancssoros mûveleteket végezhettek a leibnizen
+
** '''ssh username@leibniz.math.bme.hu''', where the '''username''' is your username, with this you can run commands on leibniz
** '''scp username@leibniz.math.bme.hu:~/gyak1.txt ./''' ezzel a leibniz-en található '''gyak1.txt''' fájlt másolhatjátok a jelenleg aktív mappába
+
** '''scp username@leibniz.math.bme.hu:~/prac1.txt ./''' with this you copy the file '''prac1.txt''' from leibniz to your current folder
** '''scp ./gyak1.txt username@leibniz.math.bme.hu:~/''' ezzel a saját gépeteken levõ '''gyak1.txt''' fájlt másolhatjátok a leibniz-re
+
** '''scp ./gyak1.txt username@leibniz.math.bme.hu:~/''' with this you copy the file '''prac1.txt''' from your computer to leibniz
  
== Windows bevezetés ==
+
== Windows basics ==
=== A Windows fájlrendszere ===
+
=== The Windows file structure ===
* Az egyes meghajtókból érhető el minden:
+
* Drives are everything:
** '''C:\''' rendszer
+
** '''C:\''' System
 
** '''D:\'''
 
** '''D:\'''
 
** '''E:\''' ...
 
** '''E:\''' ...
** lehetek hálózati meghajtók, ezek dupla rep-el kezdődnek: '''\\wronski'''
+
** There are network drives, these start with double reps: '''\\wronski'''
* jelenlegi és szülő könyvtár: '''.''' és '''..'''
+
* current and parent folder : '''.''' és '''..'''
* programok: '''C:\Program Files''', '''C:\Program Files (x86)''', ezekre van link, direkt elérésre ritkán van szükség
+
* programs: '''C:\Program Files''', '''C:\Program Files (x86)''', rarely needed to reach directly
* rendszer: '''C:\Windows\System32'''
+
* system: '''C:\Windows\System32'''
* falhasználó saját mappája: '''H:''', '''Z:\Homes\<felhasználó>'''
+
* home folder: '''H:''', '''Z:\Homes\<username>'''
  
=== Alapvető programok ===
+
=== General programs ===
* Notepad++ (nem jár alapból a Windows-hoz, de ingyenes)
+
* Notepad++ (free software)
* Feladatkezelő
+
* Task manager
* Fájlkezelő
+
* Explorer
* Total Commander (nem jár alapból a Windows-hoz, de ingyenes)
+
* Total Commander (free software)
  
=== Gyorsbillentyűk ===
+
=== Shortcuts ===
* Vágólap
+
* Clipboard
** egérrel kijelölés, jobb-klikk -> Másolás, Kivágás, Beillesztés
+
** select something with the mouse, right click -> copy, cut, paste
 
** Ctrl+C, Ctrl+V, Ctrl+X, Ctrl+Z, Ctrl+Y
 
** Ctrl+C, Ctrl+V, Ctrl+X, Ctrl+Z, Ctrl+Y
 
** Ctrl+Insert, Shift+Insert
 
** Ctrl+Insert, Shift+Insert
** alkalmazásonként változhat
+
** varies by applications
* Ablakok mozgatása
+
* Moving the windows
** Win+nyilak
+
** Win+arrows
 
** Alt+Tab
 
** Alt+Tab
 
** Win, Win+D, Win+S
 
** Win, Win+D, Win+S
** Alt + betű (menüsor)
+
** Alt + character (menu)
** Tab: gombok között vált gui-ban
+
** Tab: switches between buttons and fields in programs
* kurzor navigálás
+
* moving the cursor
** Shift + nyilak: kijelőlés
+
** Shift + arrows: select
** Ctrl + nyilak, szavanként ugrik (Ctrl+Shift + nyilak)
+
** Ctrl + arrows, jumps words (Ctrl+Shift + arrows)
** HOME: sor elejére ugrik, END: sor végére ugrik
+
** HOME: beginning of line, END: end of line
  
=== Leibniz elérése otthoni windowsról ===
+
=== Reaching Leibniz from a windows machine ===
  
* [[Számítástechnikai tudásbázis]]
+
* [[Számítástechnikai tudásbázis]] (sadly these are only available in hungarian at the moment)
 
* ssh: [[Putty használata]]
 
* ssh: [[Putty használata]]
 
* scp: [[WinScp használata]]
 
* scp: [[WinScp használata]]
* grafikus: [[XMing használata, grafikus felület emuláció Windows alatt]]
+
* graphical: [[XMing használata, grafikus felület emuláció Windows alatt]]
  
=== Linux emulálása otthonról ===
+
=== Emulating linux on a windows machine ===
A Windows használóknak érdemes lehet saját gépükön kipróbálni Linux-ot. Erre több lehetőség is kínálkozik.
+
There are many ways to emulate a linux on your windows machine
* Live oprendszer, ezzel a meglévő rendszerünk bármiféle változtatása nélkül ki lehet próbálni a Linux-ot. Boot-olni kell a Live CD-t vagy pendrive-ot, az utóbbihoz meg kell változtatnunk a boot sorrendet a BIOS-ban!
+
* Live operating system, with this you can try linux without having to install anything. You have to boot from a live CD or a USB, for this you have to change your boot priority.
 
** [http://www.linuxliveusb.com/ live Linux pendrive]
 
** [http://www.linuxliveusb.com/ live Linux pendrive]
 
** [http://www.ubuntu.com/download/desktop live Linux CD]
 
** [http://www.ubuntu.com/download/desktop live Linux CD]
* Virtuális gép, Windows alatt egy másik (virtuális) gép fut, egy másik oprendszerrel
+
* Virtual machine, running a linux through a windows in parallel
 
** [https://virtualbox.org/ VirtualBox]
 
** [https://virtualbox.org/ VirtualBox]
** Hyper-V, akinek van
+
*** Windows 8 or 10 is a requirement
*** Windows Server, Windows 8, 8.1 vagy 10 kell hozzá
+
*** Támogatja-e a gépemen? '''cmd -> systeminfo'''
+
 
*** [http://www.nextofwindows.com/how-to-enable-configure-and-use-hyper-v-on-windows-10 Windows 10-en]
 
*** [http://www.nextofwindows.com/how-to-enable-configure-and-use-hyper-v-on-windows-10 Windows 10-en]
 +
* Emulating just the function of a terminal
 +
**[ https://www.cygwin.com/ https://www.cygwin.com/]

A lap 2017. szeptember 4., 07:52-kori változata

Tartalomjegyzék

Login

Start screen

  • Ctrl-Alt-F5 Linux terminal (leibniz)
  • Ctrl-Alt-F6 Windows (wronski)
  • Ctrl-Alt-F7 Linux graphical (leibniz)
  • Ctrl-Alt-Backspace RESET

Password

  • Choose a strong password
    • lowercase, uppercase, number at least one of each
    • at least 8 characters
    • don't include your own name, nickname, login name
    • try not to use accents or 0 (zero)
  • how to change your password:
    • Linux: yppasswd (in terminal)
    • Windows: Ctrl-Alt-Del

Quota

  • Linux: 200MB
    • quota (in terminal)
  • Windows
    • size of H drive (from total commander or explorer)

Mailing

  • You can reach your emails on https://webmail.math.bme.hu/.
  • You can forward your emails to another email address:
    • After you log in, click on the gears (upper right): Beállítások -> Vakáció -> Haladó beállítások
    • Put your email address in the További címeim field, then change the Beérkező üzenet akció drop down menu from Megtartás to Átirányítás ide
  • When you write to others from the university, we would like you to use your math.bme.hu email address.
  • There is a way to write emails from your math.bme.hu address through gmail.
    • In gmail click on the gears (upper right) -> Settings -> Accounts and import -> Add another email address
    • In the popup window write your math.bme.hu address then click on Next Step and write your password (the one used on linux) into the password field, finally click on Add Account.
    • From now on whenever you write an email there will be a drop down menu From so you can choose which email address to send the email from.
  • You can write an email from the terminal as well:
    • On Leibniz:
$ mail -s "subject" "someone@mail.org"
Dear Someone,

This is a mail!

Best,
Me
$ _

To stop writing the mail you need to press Ctrl+D.

If you are using other mailing software, you may find these useful:

  • imap-ssl: imap.math.bme.hu :995 SSL/TLS linux password
  • submission: smtp.math.bme.hu :587 STARTTLS linus password

Software

  • Windows [1]
  • Office [2]
  • Mathematica [3] (we will give out keys for everyone)

Network connection

  • You can't just plug in a network cable into your laptop, it will not connect you to our network.
  • Wifi

Linux basics

File structure

  • Properties:
    • Tree stucture
    • / : root folder. The start of the file structure.
    • folders:
      • general
      • special (e.g. /dev/cdrom)
      • catalogue
  • Some catalogues
    • /home/: User folders.
    • /boot/ : Files needed to boot up.
    • /tmp/ : Temporary files.
    • /dev/ : Devices (HDD, mouse, etc.)
    • /mnt/ : Mount points (e.g. pendrive)
    • ./ : Current folder.
    • ../ : Parent of the current folder.
    • ~/ : The home folder of the user, same as the $HOME environmental variable.
    • Everyone has a home folder at /home/student/felhasznaloi_nev. In this home folder a folder named public_html contains their homepage.
    • ~/.* contains user settings e.g. .bashrc, .config/, .forward

General programs

  • terminal: Applications menu -> System Tools -> Konsole
  • Midnight Commander mc
  • top
  • editors:
  • list of programs: help
  • help yourself:
    • info <command>
    • man <command>
    • <command> --help

Shortcuts

  • Clipboard
    • select something with your mouse, right click
    • Ctrl+Insert, Shift+Insert
    • varies by applications (usually Ctrl+C, Ctrl+V)
  • navigation
    • TAB: completion
    • HOME: beginning of line, END: end of line
  • terminal
    • up, down arrows: history
    • Ctrl+R search the history

Reaching the Leibniz server from home

  • From a file editor:
    • File -> Connect to server...
    • Service type: FTP (with login), or SFTP
    • Server: leibniz.math.bme.hu
    • Port: 80
    • Folder: (empty)
    • User name: your username
  • From a terminal:
    • ssh username@leibniz.math.bme.hu, where the username is your username, with this you can run commands on leibniz
    • scp username@leibniz.math.bme.hu:~/prac1.txt ./ with this you copy the file prac1.txt from leibniz to your current folder
    • scp ./gyak1.txt username@leibniz.math.bme.hu:~/ with this you copy the file prac1.txt from your computer to leibniz

Windows basics

The Windows file structure

  • Drives are everything:
    • C:\ System
    • D:\
    • E:\ ...
    • There are network drives, these start with double reps: \\wronski
  • current and parent folder : . és ..
  • programs: C:\Program Files, C:\Program Files (x86), rarely needed to reach directly
  • system: C:\Windows\System32
  • home folder: H:, Z:\Homes\<username>

General programs

  • Notepad++ (free software)
  • Task manager
  • Explorer
  • Total Commander (free software)

Shortcuts

  • Clipboard
    • select something with the mouse, right click -> copy, cut, paste
    • Ctrl+C, Ctrl+V, Ctrl+X, Ctrl+Z, Ctrl+Y
    • Ctrl+Insert, Shift+Insert
    • varies by applications
  • Moving the windows
    • Win+arrows
    • Alt+Tab
    • Win, Win+D, Win+S
    • Alt + character (menu)
    • Tab: switches between buttons and fields in programs
  • moving the cursor
    • Shift + arrows: select
    • Ctrl + arrows, jumps words (Ctrl+Shift + arrows)
    • HOME: beginning of line, END: end of line

Reaching Leibniz from a windows machine

Emulating linux on a windows machine

There are many ways to emulate a linux on your windows machine

Személyes eszközök