diff --git a/install/install-CentOS.sh b/install/install-CentOS.sh index 1231545..c2bb166 100644 --- a/install/install-CentOS.sh +++ b/install/install-CentOS.sh @@ -1,51 +1,66 @@ #!/bin/bash -# ------------------------ -# Not Tested -# ------------------------ +################################# +# set USERNAME # +################################# -# ------------------------ -# install wireguard jq -# ------------------------ +USERNAME= -sudo yum install -y yum-utils -sudo yum install elrepo-release epel-release -sudo yum install kmod-wireguard wireguard-tools +if [ -z "$USERNAME" ]; then -# ------------------------ -# install node version 15 -# ------------------------ + # ------------------------ + # Not Tested + # ------------------------ -curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash - -yum install -y nodejs + # ------------------------ + # install wireguard jq + # ------------------------ -# ------------------------ -# install docker -# ------------------------ + sudo yum install -y yum-utils + sudo yum install elrepo-release epel-release + sudo yum install kmod-wireguard wireguard-tools -sudo yum-config-manager \ - --add-repo \ - https://download.docker.com/linux/centos/docker-ce.repo -sudo yum install docker-ce docker-ce-cli containerd.io -sudo systemctl start docker + # ------------------------ + # install node version 15 + # ------------------------ -sudo usermod -aG docker [USERNAME] + curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash - + yum install -y nodejs -# ------------------------ -# install docker-compose -# ------------------------ + # ------------------------ + # install docker + # ------------------------ -sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose -sudo chmod +x /usr/local/bin/docker-compose -sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose + sudo yum-config-manager \ + --add-repo \ + https://download.docker.com/linux/centos/docker-ce.repo -# ------------------------ -# install pm2 -# ------------------------ + sudo yum install docker-ce docker-ce-cli containerd.io + sudo systemctl start docker -sudo npm install -g pm2 + sudo usermod -aG docker $USERNAME -echo "" -echo "run ./install.sh" + # ------------------------ + # install docker-compose + # ------------------------ + + sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose + sudo chmod +x /usr/local/bin/docker-compose + sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose + + # ------------------------ + # install pm2 + # ------------------------ + + sudo npm install -g pm2 + + echo "" + echo "run ./install.sh" + echo "" +else + echo "" + echo "set USERNAME first" + echo "" +fi diff --git a/install/install-ubuntu.sh b/install/install-ubuntu.sh index 7641394..c8ea99d 100644 --- a/install/install-ubuntu.sh +++ b/install/install-ubuntu.sh @@ -49,5 +49,11 @@ if [ -z "$USERNAME" ]; then echo "" echo "run ./install.sh" + echo "" + +else + echo "" + echo "set USERNAME first" + echo "" fi diff --git a/src-local/LabLearningObject-hybrid-tmp/bxc14yyqa4p.html b/src-local/LabLearningObject-hybrid-tmp/bxc14yyqa4p.html new file mode 100644 index 0000000..0e4460e --- /dev/null +++ b/src-local/LabLearningObject-hybrid-tmp/bxc14yyqa4p.html @@ -0,0 +1,349 @@ + + + + + + + + + + +An Introduction to Linux ! + + + + + + +
+
+

1. Absolute basics

+
+ + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1. Absolute basics
CommandMeaning

ls

Displays a list of files in the current working directory.

cd directory

change directories

passwd

change the password for the current user

file filename

display file type of file with name filename

cat textfile

throws content of textfile on the screen

pwd

display present working directory

exit or logout

leave this session

man command

read man pages on command

+
+

1.1. Key combinations

+ + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2. Key combinations
Key or key combinationFunction

Ctrl+C

End a running program and return the prompt

Ctrl+Z

Suspend a program

ArrowUp and ArrowDown

Browse history. Go to the line that you want to repeat, edit details if necessary, and press Enter to save time.

Tab

Command or filename completion; when multiple choices are possible, the system will either signal with an audio or visual bell, or, if too many choices are possible, ask you if you want to see them all.

Tab Tab

Shows file or command completion possibilities.

Shift+PageUp and Shift+PageDown

Browse terminal buffer (to see text that has "scrolled off" the screen).

+
+
+

1.2. ls -l

+
+
+
# ls -al
+drwxrwxr-x 4 zeus zeus  4096 Οκτ  23 21:55 .
+drwxrwxr-x 9 zeus zeus  4096 Οκτ  15 14:28 ..
+drwxrwxr-x 8 zeus zeus  4096 Οκτ  23 21:55 .git
+drwxrwxr-x 4 zeus zeus  4096 Οκτ  14 20:24 install
+crw-------   1 root root        5,   1 Οκτ  23 21:22 console
+lrwxrwxrwx   1 root root            11 Οκτ  23 21:21 core -> /proc/kcore
+drwxr-xr-x   4 root root           100 Οκτ  23 21:22 cpu
+crw-------   1 root root       10,  59 Οκτ  23 21:21 cpu_dma_latency
+crw-------   1 root root       10, 203 Οκτ  23 21:21 cuse
+-rw-rw-r-- 1 zeus zeus  1517 Οκτ  23 21:55 INSTALL.md
+-rw-rw-r-- 1 zeus zeus 33883 Οκτ  15 14:28 LICENSE
+-rw-rw-r-- 1 zeus zeus   691 Οκτ  17 11:13 README.md
+
+
+
+

1.2.1. File types

+
+

This table gives an overview of the characters determining the file type:

+
+
+ + + + + +
+ + +drwxrwxr-x 4 zeus zeus 4096 Οκτ 14 20:24 install +
+
+ + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3. File types in a long list
SymbolMeaning

-

Regular file

d

Directory

l

Link

c

Special file

s

Socket

p

Named pipe

b

Block device

+
+ + + + + +
+ + +-rw-rw-r-- 1 zeus zeus 1517 Οκτ 23 21:55 INSTALL.md +
+
+
+
+

1.2.2. Access rights

+ + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4. Access rights
CodeMeaning

0 or -

The access right that is supposed to be on this place is not granted.

4 or

read access is granted to the user category defined in this place

2 or

write permission is granted to the user category defined in this place

1 or

execute permission is granted to the user category defined in this place

+
+
+

1.2.3. User group codes

+ + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5. User group codes
CodeMeaning

u

user permissions

-rw-rw-r--

g

group permissions

-rw-rw-r--

o

permissions for others

-rw-rw-rw-

+
+
+

1.2.4. Exercises

+
+
+
touch example
+chmod 400 example
+ls -l example
+chmod 500 example
+ls -l example
+chmod 600 example
+ls -l example
+chmod 644 example
+ls -l example
+chmod 660 example
+ls -l example
+chmod 700 example
+ls -l example
+chmod 755 example
+ls -l example
+chmod 775 example
+ls -l example
+ls -l example
+chmod 777 example
+ls -l example
+
+
+
+


+
+

+
+
+
+
+
+
+ + + + \ No newline at end of file diff --git a/src-local/LabLearningObject-hybrid-tmp/qjjaun7xfi.html b/src-local/LabLearningObject-hybrid-tmp/qjjaun7xfi.html new file mode 100644 index 0000000..0e4460e --- /dev/null +++ b/src-local/LabLearningObject-hybrid-tmp/qjjaun7xfi.html @@ -0,0 +1,349 @@ + + + + + + + + + + +An Introduction to Linux ! + + + + + + +
+
+

1. Absolute basics

+
+ + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1. Absolute basics
CommandMeaning

ls

Displays a list of files in the current working directory.

cd directory

change directories

passwd

change the password for the current user

file filename

display file type of file with name filename

cat textfile

throws content of textfile on the screen

pwd

display present working directory

exit or logout

leave this session

man command

read man pages on command

+
+

1.1. Key combinations

+ + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2. Key combinations
Key or key combinationFunction

Ctrl+C

End a running program and return the prompt

Ctrl+Z

Suspend a program

ArrowUp and ArrowDown

Browse history. Go to the line that you want to repeat, edit details if necessary, and press Enter to save time.

Tab

Command or filename completion; when multiple choices are possible, the system will either signal with an audio or visual bell, or, if too many choices are possible, ask you if you want to see them all.

Tab Tab

Shows file or command completion possibilities.

Shift+PageUp and Shift+PageDown

Browse terminal buffer (to see text that has "scrolled off" the screen).

+
+
+

1.2. ls -l

+
+
+
# ls -al
+drwxrwxr-x 4 zeus zeus  4096 Οκτ  23 21:55 .
+drwxrwxr-x 9 zeus zeus  4096 Οκτ  15 14:28 ..
+drwxrwxr-x 8 zeus zeus  4096 Οκτ  23 21:55 .git
+drwxrwxr-x 4 zeus zeus  4096 Οκτ  14 20:24 install
+crw-------   1 root root        5,   1 Οκτ  23 21:22 console
+lrwxrwxrwx   1 root root            11 Οκτ  23 21:21 core -> /proc/kcore
+drwxr-xr-x   4 root root           100 Οκτ  23 21:22 cpu
+crw-------   1 root root       10,  59 Οκτ  23 21:21 cpu_dma_latency
+crw-------   1 root root       10, 203 Οκτ  23 21:21 cuse
+-rw-rw-r-- 1 zeus zeus  1517 Οκτ  23 21:55 INSTALL.md
+-rw-rw-r-- 1 zeus zeus 33883 Οκτ  15 14:28 LICENSE
+-rw-rw-r-- 1 zeus zeus   691 Οκτ  17 11:13 README.md
+
+
+
+

1.2.1. File types

+
+

This table gives an overview of the characters determining the file type:

+
+
+ + + + + +
+ + +drwxrwxr-x 4 zeus zeus 4096 Οκτ 14 20:24 install +
+
+ + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3. File types in a long list
SymbolMeaning

-

Regular file

d

Directory

l

Link

c

Special file

s

Socket

p

Named pipe

b

Block device

+
+ + + + + +
+ + +-rw-rw-r-- 1 zeus zeus 1517 Οκτ 23 21:55 INSTALL.md +
+
+
+
+

1.2.2. Access rights

+ + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4. Access rights
CodeMeaning

0 or -

The access right that is supposed to be on this place is not granted.

4 or

read access is granted to the user category defined in this place

2 or

write permission is granted to the user category defined in this place

1 or

execute permission is granted to the user category defined in this place

+
+
+

1.2.3. User group codes

+ + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5. User group codes
CodeMeaning

u

user permissions

-rw-rw-r--

g

group permissions

-rw-rw-r--

o

permissions for others

-rw-rw-rw-

+
+
+

1.2.4. Exercises

+
+
+
touch example
+chmod 400 example
+ls -l example
+chmod 500 example
+ls -l example
+chmod 600 example
+ls -l example
+chmod 644 example
+ls -l example
+chmod 660 example
+ls -l example
+chmod 700 example
+ls -l example
+chmod 755 example
+ls -l example
+chmod 775 example
+ls -l example
+ls -l example
+chmod 777 example
+ls -l example
+
+
+
+


+
+

+
+
+
+
+
+
+ + + + \ No newline at end of file