Tuesday, 20 December 2016

Install file linux

Dể cài đặc 1 file tải về có phần mở rộng .sh
Sudo ./ file.sh hoạc bash file.sh

Đối với file .run thì phải cấp quyền trươc
Chmod +x file.run then ./ file.run
Khi cai dat xong co mot so truong hop menu cua ung dung k hien thi ra hay vao thu muc bin va tim den file co ten menu.sh va ./menu.sh
ex: ./add-menuitem.sh
2. Cai dac tu file debian . Deb
dpkg -i sublime-text_build-3126_amd64.deb
dpkg -i atom-amd64.deb


Kiem tra xem ung dung cai dac o dau dung lenh:Check to see where it installed
3. Install file.tar
1.2 extract tar.gz file
 tar -xvzf robomongo-0.9.0-linux-x86_64-0786489.tar.gz
1.3 mv files and folders into the result folder from extraction operation into folder robomongounder /usr/local/bin
sudo mkdir /usr/local/bin/robomongo
sudo mv  robomongo-0.9.0-linux-x86_64-0786489/* /usr/local/bin/robomongo
1.4 make sure excute file for robomongo program which exists under/usr/local/bin/robomongo/bin folder is excutable file

cd /usr/local/bin/robomongo/bin
sudo chmod +x robomongo ## run command only if robomongo isn't excutable file
./robomongo

No comments:

Post a Comment