learn linux.net 1264

Upload: ahmed-helal-fahmy

Post on 18-Jul-2015

138 views

Category:

Documents


2 download

TRANSCRIPT

Ubuntu Linux

:

1

/..... Ubuntu linux : * * * , . linuxac.org . .

* : .

2

: * ..................................................................40 * .................................................................70 * Ubuntu Linux.............................................................71 * ...........................................................................91 * .......................................................................73 * ..........................................................................44 * ..........................................................36 * .......................................................97 * 23 Fat .......................................19 * ...............................................................69 * NTFS .....................................99 * umask ..............................301 * .......................................................801 * / APT..........................................................911

: * Apache php/mySql ................................031 * php my admin .......................................041 * ............................................................................441 * ...............................................................251 * ........................................................................651 * ......................................................061 * .............................................071 * sudo..........................................................371

* ..................................................381 * .................................................981 * compilation....................................................691 * .......................................................312 * upgrade ( Edgy)............................812 * ..........................................................................622

3

Unix ( )Unix ( )UNIX ( AT&T ). : " " " ". "" "".

Unix : MIT ( AT&T ) ( )GE ( .(Multics . AT&T . " " " ". " " . 7- .DEC PDP 546- GE. " " . "" Unics .Unix " " 7- .PDP

4

11- PDP . 0791 "" .Assembly 3791 C . AT&T . " " Western Electric AT&T AT&T .Source code TCP/IP . Mini " " " " " " SunOS " " Sun Microsystems. AT&T 9891-7891 "" Xenix 4 SVR AT&T ! 3991 AT&T " "Novel "" NT . X/Open

5

Source code " " SCO " ". ! "" . . "" . .

6

( )Linux . "" "/" "" . .FreeBSD ( )GPL . . , . . 3002 04 000,06 [1] . .

7

Freax Free Freak X , Ari Lemmke FTP Linux Linus . Minix . Tux Torvalds Unix

72 3891 . . ( ) . . () 1991 . . . . 8

.LILO . ( ).

GNU , 5891 , ( ) Hurd , Hurd , , . "" , / , Minix , .

9

. . . . . 683 , Minix ( ) . . IBM HP / . . . - -. RISC . Mini / Mainframe 01

. .

10.0 1991 20.0 5 30.0 01.0 . . AT . 11.0 VGA EGA Hercules . 21.0 59.0 69.0 kernel.org 6.2 0 1 2 2

0.5.2 4.2 6.2 . rcX gitX pre . Linux "" ,11

: "". [2] . Hello . ( )Linus Torvalds . Hello, this is Linus Torvalds, and I pronounce .! ""Linux" as "Linux [3] [4] . : .. Leenooks Leen-nouks [5] .. + Unix .Minix ( U) + X . : .

: , 46 , 41 , . : 2991 Ext 21

2 552 , . : Ext Xia Ext 2 Ext , Ext Xia , Xia 2 Ext , 2 Ext .

, " "LAMP : ( ,Linux, Apache, MySQL )Perl/PHP/Python , . , . Symbian OS , . . . . TiVo . firewall router .router . supercomputer 5002 005 , , , 173 (2.47%) , .

31

68308 9 z IBM

( ) . . wine .

.

41

" , "distro installer system Package Manager . computer , architecture , . , . [1] , , , Unix shell .. compiler .

. . . geek . . . . 51

. . . [2] "" "" , . . "[ 3] Since then, there have been numerous independent 4] ]studies and articles .. .

- - .

. .

:ar.wikipedia.org

61

ubuntu ubuntu linux .. .. : 1- Fedora SuSe debian 2- 3- 3 .... ubuntu : 1- debian 2- 3- 71

irc.freenode.net linux live help #ubuntu ubuntu ubuntu Dapper drake 1+ ubuntu 1 2 3 4 Real Linux Live Help , 42 . Add/Remove Programs ubuntu

81

ubuntu intel ubuntu-alternate-i386.iso cd burn nero bios cd Rom drive Cd

91

install in oem mode ubuntu Gnome

02

Enter other

12

american English enter

22

hostname Ip gateway dns configure network manually : static ip gateway dns hostname :

32

Adsl Dsl : 21 ubuntu

42

manually edit partition table

52

26

ubuntu 8.31 23 fat 9

23fat enter resizing enter delete the partition enter

72

enter 23fat FREE SPACE FREE SPACE enter

82

Automatically partition The Free Space

92

finish partitioning and write changes to the disk

yes

03

creation file system

13

:

23

( GPl )

33

software

43

software enter restart ubuntu

53

ubuntu

63

: You will be able to log the system as "oem " user with the password u selected ealier

Oem ubuntu kernel :( kernel 2.6.15-20-386 )recovery mode

73

Kernel

83

oem

93

04

14

ubuntu ubuntu Graphical user interface The benefits of leaving root disabled by default include the following The installer has to ask fewer questions Users don't have to remember an extra password, which they are likely to forget It avoids the "I can do anything" interactive login by default -you will be prompted for a password before major changes can happen, which should make you think about the consequences of what you are doing Sudo adds a log entry of the command)s( run )In /var/log/auth.log(. If you mess up, you can always go back and see what commands were run. It is also nice for auditing Every cracker trying to brute-force their way into your box will know it has an account named root and will try that first. What they don't know is what the usernames of your other users are Allows easy transfer for admin rights, in a short term or long term period, by adding and removing users from

42

groups, while not compromising the root account sudo can be setup with a much more fine-grained security policy ubuntu ubuntu Gnome Dapper drake . . GuI GUI Command Line ubuntu Sudo . ubuntu

34

: 1- ubuntu .fonts fonts ! 2- Ubuntu Synaptic Package Manager ( ) Add/remove application compiling 3- search ,

44

DeskTop desktop

( ) mazda kabura concept model desktop ubuntu

54

home folder

64

74

tahoma simplified Arabic Desktop vmware workstation copy .fonts

84

94

05

Accessories Terminal

. configuration .

15

... Accessories Terminal

25

: cd /usr/share/fonts/truetype : 1-sudo nano -w fonts.cache /usr/share/fonts/truetype 1- sudo nano -w fonts.cache myfonts 1- sudo nano -w fonts.cache sudo sudo nano notepad - w nano 1- fonts.cache terminal

35

45

System >administration> language support language support arabic apply oK package

55

package

65

update

75

System >preferences >keyboard

85

Add

95

06

16

26

2 synaptic package manager System > Administration >Synaptic Package Manager

36

synaptic package manager

ubuntu ubuntu

46

Terminal Applications Terminal Accessories

sources.list nano -w sources.list nano nano -w sources.list

56

sources.list sources.list cp

66

System >Administration >synaptic package manager Reload

76

Reload Update update Close Cd-rom

86

Close

96

Emacs Editors

Mark For InsTallation Emacs Mark

07

Apply

17

27

37

( )

47

Add/remove Applicatios > Add/Remove

57

sources.list packages : //etc/apt ......

67

: sudo apt-get install XXXXX

77

: sudo apt-get remove XXXXX XXXXX ubuntu : sudo apt-cache search XXXXX XXXXX .

87

ubuntu .... : ubuntu . ubuntu /etc/apt/sources.list

http://www.4shared.com/file/4611512/7dfc247a

97

Desktop EXtract here : : cd Desktop sudo cp -p sources.list /etc/apt/sources.list : :System => administration => Synaptic package manager

Reload update : sudo apt-get update upgrade : : sudo apt-get upgrade :08

System -> Administration -> Update Manager easyubuntu plugins flash player Java codecs easyubuntu : : wget http://easyubuntu.freecontrib.org/fi...u-3.022.tar.gz tar -zxf easyubuntu-3.022.tar.gz cd easyubuntu sudo python easyubuntu.in

easyubuntu automatix : : sudo nano -w /etc/apt/sources.list : : deb http://www.getautomatix.com/apt dapper maindeb http://packages.freecontrib.org/plf dapper free non-free

18

deb-src http://packages.freecontrib.org/plf dapper free non-free deb http://archive.canonical.com/ubuntu dapper-commercial maindeb http://download.skype.com/linux/repos/debian/ stable non-free

kubuntu : deb http://www.getautomatix.com/apt kubuntu main enter ctrl+o : ctrl+x : wget http://www.getautomatix.com/apt/key.gpg.asc gpg --import key.gpg.asc gpg --export --armor 521A9C7C | sudo apt-key add : sudo apt-get update sudo apt-get install zenity sudo apt-get install automatix

: automatix

82

: Applications => System Tools => Automatix :P : J2SE Runtime Environment )JRE( with Plug-in for Mozilla Firefox : : sudo apt-get install sun-java5-jre sun-java5-plugin AGree J2SE default java virtual machine : sudo update-alternatives --config java J2SE plugin : Flash Player )Macromedia Flash( Plug-in for Mozilla Firefox :38

: sudo apt-get install flashplugin-nonfree sudo update-flashplugin

: alsa-oss package : sudo apt-get install alsa-oss : gksudo gedit /etc/firefox/firefoxrc : FIREFOX_DSP="" : FIREFOX_DSP="aoss" : PDF Reader )Adobe Reader( with Plug-in for Mozilla Firefox : :84

sudo apt-get install acroread mozilla-acroread acroread-plugins

SCIM adobe 7 acrobate SCIM SCIM : : gksudo gedit /usr/bin/acroread : #!/bin/sh # : #!/bin/sh # GTK_IM_MODULE=xim

7 adobe acrobate ftp http Download For X : sudo apt-get install d4x

58

gwget : sudo apt-get install gwget gftp ftp client : sudo apt-get install gftp )Azureus( P2P Torrent : sudo apt-get install azureus ( P2P Torrent )BitTornado : sudo apt-get install bittornado sudo apt-get install bittornado-gui )aMule( P2P Emule Client : sudo apt-get install amule ) Forst Wire( P2P Genutella Client :wget -c http://www.users.on.net/~stubby/FrostWire-4.10.9-2.i586.deb

86

sudo dpkg -i FrostWire-4.10.9-2.i586.deb : : Applications -> Internet -> FrostWire ( )Skype : sudo apt-get install skype Applications -> Internet -> Skype * For the Skype 1.3 Beta dowload the debian package * :http://www.skype.com/download/skype/linux/13beta.html

In the terminal : sudo dpkg -i skype-beta-1.3.0.37-1_i386.deb : Applications -> Internet -> Skype87

MultiMedia codecs : sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-gl gstreamer0.10-plugins-base \ gstreamer0.10-plugins-good gstreamer0.10-pluginsbad gstreamer0.10-plugins-bad-multiverse \gstreamer0.10-plugins-ugly gstreamer0.10-pluginsugly-multiverse w32codecs MP3 , RM,WAV : Mplayer : sudo apt-get install mplayer VLC with plug-in for Mozilla Firefox : sudo apt-get install vlc vlc-plugin-* mozilla-plugin-vlc : : sudo apt-get install avahi-daemon sudo apt-get install avahi-utils

88

Totem with plug-in for Mozilla Firefox : sudo apt-get install totem-gstreamer-firefox-plugin realplayer amarok : sudo apt-get install amarok sudo apt-get install realplay compiled HTML help kchmviewer xchm : sudo apt-get install xchm sudo apt-get install kchmviewer

CDS DVDS k3b GnomeBaker

: 3sudo apt-get install k3b libk3b2-mp sudo apt-get install gnomebaker Gparted98

: sudo apt-get install gparted : rar .rar unrar-free : sudo apt-get install rar sudo apt-get install unrar-free Compilers build-essential : sudo apt-get install build-essential .rpm .deb Alien : sudo apt-get install alien

.

09

mount mount Cd DVD mount mount / ( )root unmount umount 23 FAT mount 01 Suse /windows ubuntu dapper beta release mount : /dev IDE\ATA

19

primary master /dev/hda primary slave /dev/hdb secondary master /dev/hdc secondary slave /dev/hdd

: ======================================== primary master 1 /dev/hda c 5 /dev/hda d 6 /dev/hda e a b c d secondary master /dev/hdc 1 ? d 5 ? 2 ======================================== primary ( extended ) )primary d logical extended extended 4 2 3 primary c d primary 2 primary extended logical .

29

mount /mnt c,d,e : : : oem@ubuntu:~$ cd /mnt oem@ubuntu:/mnt$ sudo mkdir q w r t $oem@ubuntu:/mnt cd /mnt /mnt / root * : q w r T 5 c,d,e,f,g sudo mkdir c d e f g /mnt : mount -t vfat /dev/hda1 /mnt/c : mount -t vfat /dev/hda5 /mnt/d mount -t ntfs /dev/hda6 /mnt/e mount -t ntfs /dev/hda7 /mnt/f /mnt mount

39

fstab / etc : sudo nano -w /etc/fstab sudo nano -w nano - w fstab * : :GNU nano 1.3.10 File: /etc/fstab .etc/fstab: static file system information/ # # file system> > # Administration Networking Modem Connections Properties https://help.ubuntu.com/community/DialupModemHowto : 1- ubuntu sudo sudo ubuntu packages : 1- Complier gcc 2- 683linux-headers-2.6.15-26-386_2.6.15-26.46_i 3- scanModem 711

http://132.68.73.235/linmodems/packages/scanModem.gz 4- driver https://www.linuxant.com/drivers/hsf/full/downloads.php * HSF HCF https://www.linuxant.com/drivers/hcf/full/downloads.php /https://www.linuxant.com/drivers ======================================== https://help.ubuntu.com/community/DialupModemHowto /http://www.linmodems.org

811

APT APT . APT ubuntu APT APT Debian update APT xmms winamp source libglib1.2 libgtk1.2 libgtk1.2-common APT libraries dependencies

911

APT APT Debian APT install .tar.gz install compiling executable . dependencies config upgrade . APT Debian APT RedHat rpm APT Advanced Packaging Tool . APT : sudo root

021

sources.list : apt-get update : apt-get install XXXX XXXX upgrade : apt-get upgrade upgrade : apt-get dist-upgrade config

121

: apt-get remove XXXX XXXX config config : : apt-get --purge remove XXXX XXXX config apt-cache : apt-cache search XXXX XXXX aptitude 221

aptitude .aptitude - Curses viewer of packages installed or available Aptitude can be used from the command-line in a similar way to apt-get, but only for some commands - install and remove being the most common. However, because aptitude keeps track of more information than apt-get does, it can be considered better at install and remove .operations , dependencies : apt-cache showpkg XXXX XXXX packages package : apt-cache dumpavail packages ntfs-3g NTFS :

321

: Package: ntfs-3g-nautilus-tools Version: 0.10-1 Priority: optional Section: utils "