COMANDO SUDO - COMMAND NOT FOUND

1. COMANDO SUDO - COMMAND NOT FOUND

Guilherme de  Souza Baptista
Kazouke

(usa Slackware)

Enviado em 09/06/2017 - 22:30h

Olá galera, considero meu problema relativamente simples: Acontece que estou fazendo um projeto pra faculdade, uma customização so Slax atraves do Slackware. Meu professor mandou um documento para suporte, que seria para colocar o Java JDK na iso do Slax... no entanto o comando "sudo ./dir2sb module_write " (topico 2.3) não vai de jeito maneira: Command not found...

material de apoio do professor:
The rootcopy (located at /home/rossano/SLAX-HOWTO/write/slax/rootcopy/)
represents the root (/) of the slax after boot. This section shows how to
install software "from scratch" using the rootcopy.
2.0 - Download the Oracle Java JDK version 8 (tar.gz linux 64 bits)
(http://www.oracle.com/technetwork/java/javase/downloads/) to directory
/home/rossano/SLAX-HOWTO/write/slax/rootcopy/
cd /home/rossano/SLAX-HOWTO/write/slax/rootcopy
mkdir opt/
cd opt/
wget ........
2.1 - Extract file and remove tar.gz file
tar -xvzf jdk-8u25-linux-x64.tar.gz
rm jdk-8u25-linux-x64.tar.gz
This command creates the directory jdk1.8.0_25. In order to allow the user
root to execute commands present in this java, you should put jdk1.8.0_25/bin
(/opt/jdk1.8.0_25/bin) in the root PATH environment variable. To do that you
should alter module 01-mycore.sb.
2.2 - Set PATH environment variable. Supposing you followed steps 1.0 to 1.2.1:
cd /home/rossano/SLAX-HOWTO/
sudo echo 'PATH="$PATH:/opt/jdk1.8.0_25/bin"' >> module_write/etc/profile
2.3 - Generate new module
export PATH=$PATH:.
sudo ./dir2sb module_write write/slax/01-mycore.sb
2.4 - Generate new DVD (step 0.5):

cd /home/rossano/SLAX-HOWTO/write
slax/boot/makeiso.sh . /tmp/my-slax2.iso

Voilá, root is able to execute command java.


  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts