Ask Ubuntu General Room

Normally: General discussion around Ask Ubuntu, Ubuntu & offic...
May 8, 2019 19:52
Yep o/ looking at it
May 8, 2019 19:50
@Videonauth, that helps o/
May 8, 2019 19:39
@Videonauth, do you mind sharing an example of using a dict for above code? I am working on some practice session on python. And I need to rewrite the above statement in any possible different way
May 8, 2019 19:19
self.action_space = [[i,j] for i in range(m) for j in range(m) if i!=j or i==0]
May 8, 2019 19:19
Anyone good at python here? Can someone suggests on how to rewrite the following expression in a better way?
May 14, 2018 18:39
Hello Guys, I am looking for some guidance in accessing a DB Service running inside Ubuntu Server on Azure Cloud Environment.

Basically, I have a MongoDB service running inside Ubuntu Server in Azure Cloud Environment. To access the DB, i login to the server using SSH via its Public IP Address and then do "mongo shell" to access the DB console. The database service is running as localhost. I have a GUI application for accessing the DB directly but I believe that I need to set some ssh tunnel to access the DB Service. Any pointers here would be helpful.
May 9, 2018 18:43
Have a nice day!
May 9, 2018 18:43
@Rinzwind, thank you so much. I will try that out :) Hopefully it works. Will let you know tomorrow
May 9, 2018 18:36
@ThomasWard, here is the answer for the same forums.virtualbox.org/viewtopic.php?f=7&t=82339 and I have mentioned that in my original question too.
May 9, 2018 18:36
@Rinzwind 172 is ubuntu and 192.168.2.x is ubuntu
May 9, 2018 18:28
@Rinzwind, could you shed some more pointers on how actually we can do that via putty? So that I can test that out. Bit struggling with this for last two days :|
May 9, 2018 18:25
@Rinzwind, for example from the actual host (172.16.xxx.xxx) I access the ubuntu machine via putty (127.0.0.1:2222) when this connection is active. Can we create a tunnel so that from Host2, they can access the Ubuntu Box?
May 9, 2018 18:22
@Rinzwind, is there any way to do reverse tunelling to access the box
May 9, 2018 18:19
Do you think that you could help out there
May 9, 2018 18:18
@Rinzwind, I am bit stuck with this askubuntu.com/questions/1034131/…
May 9, 2018 18:02
Hey @Rinzwind
Mar 27, 2017 16:58
@Zanna thank you
Mar 27, 2017 16:42
We don't support stuff related to Mint right ?
Mar 24, 2017 18:06
Thank you @Seth
Mar 24, 2017 18:05
have uploaded to keyserver.ubuntu.com and i can see it there
Mar 24, 2017 18:05
@Seth the key is available there
Mar 24, 2017 17:56
It says that the key has to be available in the Ubuntu Keyserver.. And the key has been send to the Keyserver already.. And now it is more than 3 hours.. But still getting the same error message
Mar 24, 2017 17:55
I have verified many times the fingerprint that I am entering is correct
Mar 24, 2017 17:55
Mar 24, 2017 17:54
I am trying to import opengpg key but get an error in the launchpad account.. Could someone help?
Mar 23, 2017 18:15
@Rinzwind once we did some reverse ssh connection right? Do you remember the method on how we did that?
Mar 23, 2017 18:15
how are you doing?
Mar 23, 2017 18:14
Hey @Rinzwind
Mar 23, 2017 18:09
we have tried that.. Due to some reason teamviewer keeps crashing in his machine :-|
Mar 23, 2017 18:00
Do you have any idea where we need to check that?
Mar 23, 2017 18:00
@Seth thank you.. He is not sure whether he is using NAT.. But he is able to login into his router settings accessing 192.168.1.1
Mar 23, 2017 17:52
A quick question, if someone has a better idea.. I wanted to access (ssh into) my colleagues machine (ubuntu) over internet for troubleshooting an issue.. He is connected to a broadband connection and i am connected to a broadband connection.. Is there a possibility here to ssh into his machine?
Mar 23, 2017 00:52
Thank you :)
Mar 23, 2017 00:50
@Mateo thank you. I have clicked on Join the team and its waiting on Approval i believe.
Mar 22, 2017 20:30
@RobotHumans thank you. I will ping him :)
Mar 22, 2017 20:12
Yep, lets see :)
Mar 22, 2017 20:10
Thank you o/
Mar 22, 2017 20:09
ok, thank you @ParanoidPanda so do i need to get in touch with some wiki team member to get the rights?
Mar 22, 2017 20:01
I am trying to modify my old wiki (wiki.ubuntu.com/karthick87) and noticed that i am not able to modify it. Is there any recent change is editing the wiki?
Nov 26, 2016 18:06
@Anwar thank you so much. Its working o/
Nov 26, 2016 18:01
development
Nov 26, 2016 18:00
Yep correct, I am not sure of the way to do that.. I am stuck there :(. I am just a beginner
Nov 26, 2016 17:58
yes right
Nov 26, 2016 17:50
@Anwar test1.example.com should return testing as environment and prod1.example.com should return production as environment
Nov 26, 2016 17:36
./hostname_based_enc.rb agent.example.com
---
parameters:
puppetserver: puppetserver.example.com
environment: production
classes:
- base
- apache
Nov 26, 2016 17:36
This is the sample output.
Nov 26, 2016 17:35
Just stuck at the environment part.. If the hostname starts from ^agent then development environment should be assigned or if the hostname starts from ^test then testing environment or if ^prod then production environment should be assigned..
Nov 26, 2016 17:34
I am writing an Puppet ENC, where based on the hostname it should assign the environment and puppet classes.
Nov 26, 2016 17:34
@Anwar so here is my code pastebin.com/raw/vJZpg4xm
Nov 26, 2016 17:32
Hello @Anwar one moment.