...
Code Block | ||
---|---|---|
| ||
chmod 777 ./create_zone.sh |
Info |
---|
Now you will be able to run it with the format of
|
3. Prepare script to get dependencies for components.
Create a folder for the local repository and enter it:
...
language | bash |
---|
...
Update the /etc/apt/sources.list
file:
Code Block | ||
---|---|---|
| ||
cat > /etc/apt/sources.list <<EOT
deb http://10.20.50.188/dilos4 du4-unstable main contrib non-free
deb http://10.20.50.188/dilos dg2-unstable main contrib non-free
deb-src http://10.20.50.188/dilos4 du4-unstable main contrib non-free
EOT
apt-get update
|
Info |
---|
Now you will be able to run it with the format of
|
3. Prepare script to get dependencies for components.
Create a folder for the local repository and enter it:
Code Block | ||
---|---|---|
| ||
mkdir -p /data/repo/pkg
cd /data/repo/pkg
|
To make the following script workable you have to create the list_component
file with a content from here.
...
If you have to get the error log then put the log name to the string LOG_FILE=""
, for example:
Code Block |
---|
LOG_FILE="/export/admin/repo.log" |
4. Create a zone for the local repository
Create the new zone and enter it:
Code Block | ||
---|---|---|
| ||
cd ~
./create_zone.sh zonerepo 192.168.0 2
zlogin zonerepo
|
Info |
---|
All the following commands are executed in the zonerepo. |
...
="/export/admin/repo.log" |
4. Create a zone for the local repository
Create the new zone and enter it:
Code Block | ||
---|---|---|
| ||
cat > /etc/apt/sources.list <<EOT deb http://10.20.50.188/dilos4 du4-unstable main contrib non-free deb http://10.20.50.188/dilos dg2-unstable main contrib non-free deb-src http://10.20.50.188/dilos4 du4-unstable main contrib non-free EOT apt-get update cd ~ ./create_zone.sh zonerepo 192.168.0 2 zlogin zonerepo |
Info |
---|
All the following commands are executed in the zonerepo. |
Install packets required for working in the zone:
...
Expand | ||||
---|---|---|---|---|
| ||||
If you are connected by SSH and would like to turn off SSH session or even temporary turn off your computer, then you have enter the following command for tests running:
Then you can in any time press Ctrl-A d and after that close your SSH session. When you would like to get back, login again to SSH please and enter the command:
|
...
Expand | ||||
---|---|---|---|---|
| ||||
If you are connected by SSH and would like to turn off SSH session or even temporary turn off your computer, then you have enter the following command for tests running:
Then you can in any time press Ctrl-A d and after that close your SSH session. When you would like to get back, login again to SSH please and enter the command:
|
...