User:Silviolorusso/Report: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 23: Line 23:


In parallel to terminal, serial consoles came to exist. A serial console allowed the admin to connect to the system through it. Now the difference between serial consoles and terminal is pretty blurred.  
In parallel to terminal, serial consoles came to exist. A serial console allowed the admin to connect to the system through it. Now the difference between serial consoles and terminal is pretty blurred.  
<br/>


>>>>>>>>>>>>>>>> time jump >>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> time jump >>>>>>>>>>>>>>>>>>>
<br/>


(UNICS) UNIX, fully operating system, developed in 1969 by employers of Packard Bell research lab. The idea was to be able to breakdown everything in small parts. Modular. Doug Mcllroy:
(UNICS) UNIX, fully operating system, developed in 1969 by employers of Packard Bell research lab. The idea was to be able to breakdown everything in small parts. Modular. Doug Mcllroy:
Line 37: Line 41:


Stallman was working at AI labs and he witnesses the transformation of compunting as a collaborative working to a commercial enterprise. No recipes, bits of code  could be shared anymore. Bill Gates and others prevented that because it was considered harmful for the enterprise.
Stallman was working at AI labs and he witnesses the transformation of compunting as a collaborative working to a commercial enterprise. No recipes, bits of code  could be shared anymore. Bill Gates and others prevented that because it was considered harmful for the enterprise.
 
<br/>
Four freedoms GNU:
Four freedoms GNU:


Line 44: Line 48:
* The freedom to redistribute copies so you can help your neighbor (freedom 2).  
* The freedom to redistribute copies so you can help your neighbor (freedom 2).  
* The freedom to distribute copies of your modified versions to others (freedom 3). By doing this you can give the whole community a chance to benefit from your changes. Access to the source code is a precondition for this.
* The freedom to distribute copies of your modified versions to others (freedom 3). By doing this you can give the whole community a chance to benefit from your changes. Access to the source code is a precondition for this.
 
<br/>
How to enforce this legally? GPL license, a sort of hack on copyright.  
How to enforce this legally? GPL license, a sort of hack on copyright.  


Line 56: Line 60:


commandlinefu.com: list of recipes command
commandlinefu.com: list of recipes command
 
<br/><br/>
LIST OF SHELL COMMANDS
LIST OF SHELL COMMANDS


ls : list
ls : list <br/>
grep : find a line
grep : find a line <br/>
ps : processes
ps : processes <br/>
man : manual
man : manual <br/>
less : simple text viewer
less : simple text viewer <br/>
alias : create alias
alias : create alias <br/>
vim : text editor
vim : text editor <br/>
pwd : where I am?
pwd : where I am? <br/>
mkdir : make directory
mkdir : make directory <br/>
cd : change directory
cd : change directory <br/>
touch : create file
touch : create file <br/>
for do done : iteration loops
for do done : iteration loops <br/>
while : iteration loop, while something is true iterate some commands
while : iteration loop, while something is true iterate some commands <br/>
whereis : where is software?
whereis : where is software? <br/>
source: refresh
source: refresh <br/>
echo : print function
echo : print function <br/>
ssh : connect to a player
ssh : connect to a player <br/>
sh : a shell
sh : a shell <br/>
bash : other shell
bash : other shell <br/>
zsh : another one
zsh : another one <br/>
chmod +x : change modes of a file
chmod +x : change modes of a file <br/>
dmesg : list all kernel messages
dmesg : list all kernel messages <br/>
> : pipe writes to file
> : pipe writes to file <br/>
| : pipe
| : pipe <br/>
\ : cut oneliner
\ : cut oneliner <br/>
seq : sequence number
seq : sequence number <br/>
sed : editor text to pipe
sed : editor text to pipe <br/>
 
<br/>
ARGUMENTS
ARGUMENTS <br/>
&: run in background
&: run in background <br/>
 
<br/>
FILES AND FOLDERS AND VARIABLES
FILES AND FOLDERS AND VARIABLES <br/>
 
<br/>
.bashrc : config of bash
.bashrc : config of bash <br/>
/dev/mem : ram
/dev/mem : ram <br/>
/dev/dsp : audiocard
/dev/dsp : audiocard <br/>
~ : home
~ : home <br/>
$HOST: name of the computer
$HOST: name of the computer <br/>
$USER: name of the user
$USER: name of the user <br/>
 
<br/>
SHELL SHORTCUTS
SHELL SHORTCUTS <br/>
TAB: Completion
TAB: Completion <br/>

Revision as of 20:23, 10 October 2011

4/6 October - Install Party

Bought a brand new cheap netbook. Installed Ubuntu by myself, therefore joined the Debian group.

First day: not everything clear, especially regarding the file structure. Realized I was missing the basic terminal commands. Anyway Debian was installed and it was working fine (except for the wireless and the audio).

Second day: not able to follow, pretty much copying from the screen. Got the audio to work. Realized my netbook processor is 64. Had to reinstall from scratch. Installed Ubuntu this time.



10 October - Terminal session /part 1

In developing his mechanical loom, Joseph Marie Jacquard implemented punched cards. It was 1801. Punched cards were a crucial innovation that would eventually affect the whole computer industry becausese they were the only way to store data.

A company called Dehomeag, subsidiary to IBM, was leading the punchcards movement.

Then the punchcard technology became deprecated for the connection with Nazism: punch cards allowed Nazis to have scientific control over the repressed people. People started to think punchcard were allowing a repressive control over people.

The terminal concept was a sort of response to punchcards: instead of punching cards, writing command and data into a terminal. In fact the first terminal was not much more than a typing machine. Computer were made in a modular way: terminal were meant only to send data and to display it, not to precess them.

VT100 is an example of "dumb" terminal.

In parallel to terminal, serial consoles came to exist. A serial console allowed the admin to connect to the system through it. Now the difference between serial consoles and terminal is pretty blurred.


>>>>>>>>>>>>>>>> time jump >>>>>>>>>>>>>>>>>>>


(UNICS) UNIX, fully operating system, developed in 1969 by employers of Packard Bell research lab. The idea was to be able to breakdown everything in small parts. Modular. Doug Mcllroy:

<quote> This is the Unix philosophy: Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams, because that is a universal interface. </quote>

The philosophy took off. More than 40 years after every simple computer is directly related to this principle.

Unix → Next Step (Steve Jobs), total failure → again in mac OS X

GNU started with the GNU manifesto 1980's by Richard Stallman

Stallman was working at AI labs and he witnesses the transformation of compunting as a collaborative working to a commercial enterprise. No recipes, bits of code could be shared anymore. Bill Gates and others prevented that because it was considered harmful for the enterprise.
Four freedoms GNU:

  • The freedom to run the program, for any purpose (freedom 0).
  • The freedom to study how the program works, and change it so it does your computing as you wish (freedom 1). ** Access to the source code is a precondition for this.
  • The freedom to redistribute copies so you can help your neighbor (freedom 2).
  • The freedom to distribute copies of your modified versions to others (freedom 3). By doing this you can give the whole community a chance to benefit from your changes. Access to the source code is a precondition for this.


How to enforce this legally? GPL license, a sort of hack on copyright.

Stallman and others started to rewrite bits of code and release those in GPL.

Linux: just a Kernel without operating system. GNU didn't have a kernel. Good opportunitiy. GNU + LINUX.

Do one thing and do it well? How? Pipeline! What to pipe? Std (standard) streams in Unix (stdin / stdout / stderr)

Terminal: text-based as metaphoric as gui

commandlinefu.com: list of recipes command

LIST OF SHELL COMMANDS

ls : list
grep : find a line
ps : processes
man : manual
less : simple text viewer
alias : create alias
vim : text editor
pwd : where I am?
mkdir : make directory
cd : change directory
touch : create file
for do done : iteration loops
while : iteration loop, while something is true iterate some commands
whereis : where is software?
source: refresh
echo : print function
ssh : connect to a player
sh : a shell
bash : other shell
zsh : another one
chmod +x : change modes of a file
dmesg : list all kernel messages
> : pipe writes to file
| : pipe
\ : cut oneliner
seq : sequence number
sed : editor text to pipe

ARGUMENTS
&: run in background

FILES AND FOLDERS AND VARIABLES

.bashrc : config of bash
/dev/mem : ram
/dev/dsp : audiocard
~ : home
$HOST: name of the computer
$USER: name of the user

SHELL SHORTCUTS
TAB: Completion