Installing Debian GNU/Linux via USB
su root
restart: reboot, sync, init 6
shutdown: shutdown -h now, sync, init 0
Downloading Debian CD/DVD images via HTTP/FTP debian-9.9.0-i386-DVD-1.iso
- Index of /debian-cd/current/i386/iso-dvd
- http://saimei.ftp.acc.umu.se/debian-cd/current/i386/iso-dvd/debian-9.9.0-i386-DVD-1.iso
Installing Debian GNU/Linux 9.9 in Dell Computer i386 via usb
- Debian GNU/Linux installer boot menu choose Graphical Install
- Select a language Chinese (Simplified)
- Configure the network
- Hostname: debian
- Set up users and passwords (root)
- Configure the clock (default)
- Partition disks (recommended for new users)
- Software selection (don' t select any software)
- Finish the Installation
# https://jingyan.baidu.com/article/6d704a134fde4c28db51ca8b.html
restart computer
debian login: username
Password: ___________
username@debian:~$ su root
____________ # enter root password here
root@debian:/home/username# vi /etc/apt/sources.list
# https://www.runoob.com/linux/linux-vim.html
# modified # debian install cdrom
# remember commands: pwd, cd, cd.., cd /, ls, cp, dmesg, mount
root@debian:/etc/apt# apt-get install sudo
root@debian:/etc/apt# sudo apt-get install python # install python 2.7.13-2
root@debian:/etc/apt# sudo apt-get install python-pip # install pip
root@debian:/etc/apt# sudo apt-get install python-numpy # install numpy
root@debian:/etc/apt# sudo apt-get install python-scipy # install scipy
root@debian:/etc/apt# sudo apt-get install python-matplotlib # install matplotlib
root@debian:/etc/apt# su username
https://www.cnblogs.com/yuwensong/p/3860013.html
#root@debian:/etc/apt# sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose
# https://www.scipy.org/install.html
# https://www.runoob.com/w3cnote/python-pip-install-usage.html
username@debian:~$ gcc --version
username@debian:~$ g++ --version
username@debian:~$ vi
#include <stdio.h>
int main()
{
printf("This is my first Linux C program! \n");
return 0;
}
:wq linuxc.c
username@debian:~$ gcc linuxc.c -o lc
username@debian:~$ ./lc
This is my first Linux C program!
# Linux C (first linux C)
# https://www.linuxidc.com/Linux/2018-03/151117.htm
username@debian:~$ python
>>> import numpy as np
>>> x = np.arange(1, 3, 0.01)
>>> y = np.sin(x)
>>> import matplotlib.pyplot as plt
>>> plt.plot(x,y)
# error here