mongodb 如何从 tar.gz 文件安装 Robomongo 作为 Ubuntu 15.10 中的程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/35547860/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install Robomongo from tar.gz file as a program in Ubuntu 15.10
提问by Praveen George
Nowadays robomongo developers releasing the new versions of robomongo as tar.gz
not in .deb
packages that was easy for double click installations. But that option is no longer available. So how to install it as a program in Ubuntu. I have tried extracting the package and install but failed.
如今,robomongo 开发人员发布了新版本的 robomongo,tar.gz
而不是在.deb
易于双击安装的软件包中。但该选项不再可用。那么如何在 Ubuntu 中将其安装为程序。我试过解压缩包并安装但失败了。
admin@admin-lenovo:~$ cd Downloads/
admin@admin-lenovo:~/Downloads$ tar -xzf robomongo-0.9.0-rc4-linux-x86_64-8c830b6.tar.gz
admin@admin-lenovo:~/Downloads$ cd robomongo-0.9.0-rc4-linux-x86_64-8c830b6/
admin@admin-lenovo:~/Downloads/robomongo-0.9.0-rc4-linux-x86_64-8c830b6$ ./configure
bash: ./configure: No such file or directory
Also .make
and ./install
failed as no files found. How to install it as a program?
也.make
和./install
失败,因为没有文件中找到。如何将其安装为程序?
采纳答案by Praveen George
1. First Download the version from the official Robomongo website bellow:
1.首先从以下Robomongo官方网站下载版本:
Download Robomongo From Official website using this link
2.Then extract the downloaded tar.gz file in your downloads folder.
2.然后将下载的 tar.gz 文件解压缩到您的下载文件夹中。
3. Copy and paste the extracted folder into your optfolder
3. 将提取的文件夹复制并粘贴到您的opt文件夹中
/opt
NB: If you don't have permission to paste in this folder use the bellow command in terminal to access the folder.
注意:如果您无权粘贴此文件夹,请使用终端中的波纹管命令访问该文件夹。
$ sudo chmod -R 777 /opt
4.Open the opt/robomongo/bin folder and launch Robomongo by clicking the executable icon.
4.打开 opt/robomongo/bin 文件夹并通过单击可执行图标启动 Robomongo。
opt/robomongo/bin
5. Simply Create a database and right click on the Robomongo icon and select the lock to launcher option. This will create a shortcut t launch the Robomongo application at any time you need.
5. 只需创建一个数据库并右键单击 Robomongo 图标并选择锁定到启动器选项。这将创建一个快捷方式,可在您需要时随时启动 Robomongo 应用程序。
回答by mohit uprim
Robomongo is now Robo 3T. Following are the updated steps:
Robomongo 现在是 Robo 3T。以下是更新的步骤:
Download the tar file from robomongo site. The current file is
robo3t-1.1.1-linux-x86_64-c93c6b0.tar.gz
, but yours could be different.Open up the terminal, switch to download directory and run the following commands:
$ tar -xvzf robo3t-1.1.1-linux-x86_64-c93c6b0.tar.gz $ sudo mkdir /usr/local/bin/robomongo $ sudo mv robo3t-1.1.1-linux-x86_64-c93c6b0/* /usr/local/bin/robomongo $ cd /usr/local/bin/robomongo/bin $ sudo chmod +x robo3t $ sudo gedit ~/.bashrc
Add the following line to the end of
.bashrc
file:alias robomongo='/usr/local/bin/robomongo/bin/robo3t'
Save and close the file. Now reload it using the following command:
$ source ~/.bashrc
Then you can run robomongo from your terminal and it will work:
$ robomongo
从robomongo 站点下载 tar 文件。当前文件是
robo3t-1.1.1-linux-x86_64-c93c6b0.tar.gz
,但您的可能不同。打开终端,切换到下载目录,运行以下命令:
$ tar -xvzf robo3t-1.1.1-linux-x86_64-c93c6b0.tar.gz $ sudo mkdir /usr/local/bin/robomongo $ sudo mv robo3t-1.1.1-linux-x86_64-c93c6b0/* /usr/local/bin/robomongo $ cd /usr/local/bin/robomongo/bin $ sudo chmod +x robo3t $ sudo gedit ~/.bashrc
将以下行添加到
.bashrc
文件末尾:别名 robomongo='/usr/local/bin/robomongo/bin/robo3t'
保存并关闭文件。现在使用以下命令重新加载它:
$ source ~/.bashrc
然后你可以从你的终端运行 robomongo ,它会工作:
$ robomongo
回答by sstruct
You can also put the robomongo into /usr/bin like I do:
您也可以像我一样将 robomongo 放入 /usr/bin 中:
tar xf robomongo-0.9.0-rc8-linux-x86_64-c113244.tar.gz
sudo mv robomongo-0.9.0-rc8-linux-x86_64-c113244/ /usr/bin/robomongo
export PATH=/usr/bin/robomongo/bin:$PATH
If you are using fish shell, you need to change the last line to:
如果您使用的是鱼壳,则需要将最后一行更改为:
set PATH $PATH /usr/bin/robomongo/bin
Now you can start it with command:
现在您可以使用以下命令启动它:
robomongo
回答by Fred Lackey
Pulled this from my dotfiles. It's ugly but it works... and it's a bit more verbose so it should be understandable to most:
从我的点文件中提取。它很难看,但它有效......而且它更冗长,所以大多数人应该可以理解:
# Pull down and install Robomongo by copying files
cd /tmp
wget https://download.robomongo.org/0.9.0/linux/robomongo-0.9.0-linux-x86_64-0786489.tar.gz
tar xf robomongo-0.9.0-linux-x86_64-0786489.tar.gz
sudo mv ./robomongo-0.9.0-linux-x86_64-0786489 /opt/robomongo
cd /usr/sbin
sudo ln -s /opt/robomongo/bin/robomongo
# Grab image to use for icon
cd /opt/robomongo
wget http://mongodb-tools.com/img/robomongo.png
# Create desktop entry
touch /tmp/robomongo.txt
echo "[Desktop Entry]" >> /tmp/robomongo.txt
echo "Encoding=UTF-8" >> /tmp/robomongo.txt
echo "Name=Robomongo" >> /tmp/robomongo.txt
echo "Comment=Launch Robomongo" >> /tmp/robomongo.txt
echo "Icon=/opt/robomongo/robomongo.png" >> /tmp/robomongo.txt
echo "Exec=/usr/sbin/robomono" >> /tmp/robomongo.txt
echo "Terminal=false" >> /tmp/robomongo.txt
echo "Type=Application" >> /tmp/robomongo.txt
echo "Categories=Developer;" >> /tmp/robomongo.txt
echo "StartupNotify=true" >> /tmp/robomongo.txt
mv /tmp/robomongo.txt ~/.local/share/applications/robomongo.desktop
回答by Jitendra Kumar
Currently there is no installer for robomongo-0.9.0-rc4. you can create a desktop shortcut to robomongo-0.9.0-rc4-linux-x86_64-8c830b6/bin/robomongofile and use it just like any other Ubuntu app. Take a look at this tutorial https://askubuntu.com/a/142197/71544
目前没有robomongo-0.9.0-rc4 的安装程序。您可以为robomongo-0.9.0-rc4-linux-x86_64-8c830b6/bin/robomongo文件创建桌面快捷方式,并像使用任何其他 Ubuntu 应用程序一样使用它。看看这个教程https://askubuntu.com/a/142197/71544
回答by Mohammad Faisal
Wathc this VideoHow to install robomongo on ubuntu 16.4
观看此视频如何在 ubuntu 16.4 上安装 robomongo
ORFollow Below Steps
或按照以下步骤操作
Open Terminal and run the below command
打开终端并运行以下命令
wget https://download.robomongo.org/0.9.0/linux/robomongo-0.9.0-linux-x86_64-0786489.tar.gz
Extract the tar.gz file to enter below command
解压 tar.gz 文件以输入以下命令
tar -xvzf robomongo-0.9.0-linux-x86_64-0786489.tar.gz
create a dir /usr/local/bin dir name directory name robomongo and move it to extract file into robomongo directory
创建一个目录 /usr/local/bin 目录名 目录名 robomongo 并将其移动以将文件解压到 robomongo 目录中
sudo mkdir /usr/local/bin/robomongo
sudo mv robomongo-0.9.0-linux-x86_64-0786489/* /usr/local/bin/robomongo
run command only if robomongo isn't executable file
仅当 robomongo 不是可执行文件时才运行命令
cd /usr/local/bin/robomongo/bin
sudo chmod +x robomongo
./robomongo
回答by Kevin Mendez
you can do some this:
你可以这样做:
cd ~/Downloads
tar -xzf robo3t-x.x.x-linux-x86_64-xxxxxxx.tar.gz
You must rename folder
您必须重命名文件夹
mv robo3t-x.x.x-linux-x86_64-xxxxxxx robo3t
Dowload any images with format .png [click here][1]
下载任何格式为 .png 的图像 [点击这里][1]
save the images like robo3t.png and move this image to folder robo3t
将图像保存为 robo3t.png 并将此图像移动到文件夹 robo3t
and then; execute:
进而; 执行:
sudo mv robo3t /opt
and
和
sudo ln -s /opt/robo3t/bin/robo3t /usr/bin/robo3t
and Create an Unity desktop file for your launcher
并为您的启动器创建一个 Unity 桌面文件
nano ~/.local/share/applications/robo3t.desktop
and finally; paste the next code in the file newly created
最后;将下一个代码粘贴到新创建的文件中
[Desktop Entry]
Encoding=UTF-8
Name=Robo 3T
Exec=robo3t
Icon=/opt/robo3t/robo3t.png
Terminal=false
Type=Application
Categories=Development;
And Happy coding!
和快乐编码!
回答by Chetan Patil
Don't worry about how to install Robo-3T on your Linux machine, follow these simple steps:
不用担心如何在您的 Linux 机器上安装 Robo-3T,请按照以下简单步骤操作:
- Download script from Robo3T-Installation-With-Desktop Entry
Open terminal in directory where above file is downloaded and run below command
sudo chmod +x ./Robo3T-Installation-Menu.sh
Then type below command and hit enter
./Robo3T-Installation-Menu.sh
Just wait to complete it, once completed enjoy RoboMongo. Search in menu with name "Robo 3T".
- 从Robo3T-Installation-With-Desktop Entry下载脚本
在下载上述文件的目录中打开终端并运行以下命令
sudo chmod +x ./Robo3T-Installation-Menu.sh
然后输入以下命令并按回车键
./Robo3T-Installation-Menu.sh
等待完成,完成后享受 RoboMongo。在菜单中搜索名称为“ Robo 3T”。
回答by Steven
Well, I do not know if it might still help, but one efficient way to install Robomongo from tar.gz
file is the following:
好吧,我不知道它是否仍然有帮助,但是从tar.gz
文件安装 Robomongo 的一种有效方法如下:
Go to https://robomongo.org/downloadto grab the
tar.gz
file,After download,
cd Downloads/*
and then type in the terminal:
$ sudo tar xzf robo3t-1.3.1-linux-x86_64-7419c406.tar.gz -C /opt/
Make sure your file has been unzipped in the
/opt
directory by checking:$ ls -lh /opt/
Next, install it by doing:
$ sudo /opt/robo3t-1.3.1-linux-x86_64-7419c406/bin/robo3t
The installation wizard pops up and accept the terms and continue installation. Then Enjoy
转到https://robomongo.org/download获取
tar.gz
文件,下载后,
cd Downloads/*
然后在终端输入:
$ sudo tar xzf robo3t-1.3.1-linux-x86_64-7419c406.tar.gz -C /opt/
/opt
通过检查确保您的文件已在目录中解压缩:$ ls -lh /opt/
接下来,通过执行以下操作安装它:
$ sudo /opt/robo3t-1.3.1-linux-x86_64-7419c406/bin/robo3t
安装向导弹出并接受条款并继续安装。然后享受
NB:You will not see the robot3t icon in the start menu. So to start robot3t, always
/opt/robo3t-1.3.1-linux-x86_64-7419c406/bin/robo3t
to launch robo3T.
注意:您不会在开始菜单中看到robot3t 图标。所以要启动robot3t,总是
/opt/robo3t-1.3.1-linux-x86_64-7419c406/bin/robo3t
要启动robo3T。
Hope it helps ;)
希望能帮助到你 ;)