How to config the server to get access to mysql from external - linux

Hy!
I have a debian server with a installed mysql server.
Now my problem is that i don't get access from external.
How to config it?
Hint: netbeans doesn't support ssh; i looked into the iptables and there is no change from stock
thx

If you want access to your debian server console from the outside through ssh, you have to install the ssh daemon on it:
apt-get update
apt-get install ssh

Related

Accessing Azure Virtual Machine (Ubuntu 14.04LTS) using xRDP

Yesterday, I setup a new Ubuntu Box with Password (Classic VM) from my Azure Dashboard ( I am using classing Azure dashboard).
I am able to login using Putty (it means credentials are working).
To access this machine remotely (already setup CDN for Remote Desktop), I followed steps mentioned (https://azure.microsoft.com/en-in/documentation/articles/virtual-machines-linux-classic-remote-desktop/) to setup xRDP - please note that I am trying to access this box from Windows8.1 machine.
All seems to be successfully installed. Received errors, when tried to remote into Ubuntu VM:
Fire Run -> mstsc.exe (entered hostname/IP and credentials)
Entered credentials
Process threw few error messages
Its not working even after trying all troubleshooting steps:https://azure.microsoft.com/en-in/documentation/articles/virtual-machines-linux-troubleshoot-ssh-connection/
Installing xfce4 with
sudo apt-get install xfce4
have always worked fine for me!
I follwed this guide when I got started:
http://c-nergy.be/blog/?p=5305
You can also check out this thread for hints:
https://askubuntu.com/questions/449785/ubuntu-14-04-xrdp-grey
I repeat these step(s) once again and its working now:
sudo apt-get update
sudo apt-get install ubuntu-desktop
sudo apt-get install xrdp
sudo systemctl start xrdp
sudo systemctl enable xrdp
sudo apt-get install xfce4
Now do RDP (Run mstsc.exe) - enter hostname and passowrd

Installing beanstalkd on a shared hosting account at Godaddy

I am trying to install beanstalkd (http://kr.github.io/beanstalkd/download.html) via the Linux Terminal on a shared hosting account at Godaddy.
The previous link gives commands that should install beanstalkd on the server. I use SSH (with PuTTy) to access the Linux Terminal. I have practically tried all the commands in the previous link and am consistently obtaining errors like:
sudo apt-get install beanstalkd
error message: -bash: sudo: command not found
brew install beanstalkd
error message: -bash: brew: command not found
su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm'
su -c 'yum install beanstalkd --enablerepo=epel-testing'
error message: -bash: su: command not found
yaourt -S beanstalkd
error message: -bash: yaourt: command not found
I am not even sure what bash is exactly and if it is causing the problem, or if its because I'm using an SSH connection, or if it's really because the commands don't actually exist on the server (which would be strange because when I do man sudo or man su I do in fact get the complete manual of both commands in the terminal).
QUESTION: Why am I unable to run the previous commands to install beanstalkd on the linux server? Does it have to do with me using PuTTy (ssh connection)? What could I possibly do to get beanstalkd installed? Could it be because its shared hosting with Godaddy, and I might not have full power over the linux terminal?
SERVER INFO: When running cat /proc/version I obtain my linux distribution: Red Hat 4.4.7-16. I have a shared hosting account with Godaddy with a linux server hosting my site.
You have a RedHat distro, and they use rpm+yum for package management.
I see from yum search beanstalkd on my box that I can find it, but only on EPEL.
However, you have a really old version of RedHat, so can't just install the epel-release rpm, also, there doesn't seem to be a built version for RedHat 4.
If you had at least RedHat 5 you could do:
$ sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm
$ sudo yum install beanstalkd
You may in fact have a restricted instance of batch...
You must go to your provider's interface and do the necessary to have root access. Have you tried something like explained here?
https://uk.godaddy.com/help/enable-adminroot-access-managed-or-fully-managed-12270
If it doesn't work for you, you may also try asking https://serverfault.com/ that seems more relevant for your case.

share folder between windows and linux without root permission

I have a development server which installed ubuntu and I just have normal permission in this server. I want to share a folder with Windows to store the code and compile the code in this server but edit them in Windows. How can I achieve this without root permission?
PS. it seems that samba is installed in that server
In case you have an SSH server running on ubuntu, you can try installing e.g. MobaXTerm in windows and access ubuntu via ssh. If it works, you'll be able to use scp to transfer data efficiently!
Another option is to use rsync in combination with ssh, which can be used from linux without root permission. However, you may have to adjust windows permissions, then.
Best solution, however, is using a version control system as #Filburt mentioned in a comment above.
sudo apt-get install samba libpam-smbpass
sudo service smbd restart
sudo gedit /etc/samba/smb.conf and change the workgroup name -> workgroup = WORKGROUP
sudo service smbd restart
sudo apt-get install winbind
sudo gedit /etc/nsswitch.conf add hosts: files mdns4_minimal [NOTFOUND=return] wins dns mdns4
sudo /etc/init.d/networking restart

Install MongoDB on a virtual machine running CentOS Linux in Windows Azure

Primary Content Reference:
"http://www.windowsazure.com/en-us/documentation/articles/store-mongodb-virtual-machines-linux-install-centos/"
Beginner at linux cmd and MongoDB on Virtual Machines here.
The Tutorial: Install MongoDB on a virtual machine running CentOS Linux in Windows Azure
Is an easy follow until you reach
The Section: Install and run MongoDB on the virtual machine
As someone use to using a x64 Win8 OS I am completely lost on how I am suppose to bypass the permission denial that won't allow me to touch 10gen.repo or sudo yum install mongo-10gen mongo-10gen-server. Can someone please respond with a ELI5 format?
Related Resources:
"https://unix.stackexchange.com/questions/104916/how-do-you-configure-package-management-system-yum-for-mongodb"
You need to create the repository file with sudo as well.
Try this:
$ echo "[MongoDB]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
gpgcheck=0
enabled=1" | sudo tee -a /etc/yum.repos.d/10gen.repo
$ sudo yum update
And then:
sudo yum install mongo-10gen mongo-10gen-server
Hope it helps

Ubuntu Server Install GUI and Remote Access

How can I install a GUI for a remote server and then access it over RDP (or similar)
I've done a sudo apt-get install ubuntu-desktop and sudo apt-get install xrdp, but when I go to access it and login, I just get a blank screen. I presume the windowing system hasn't started?
Thanks
Did the desktop fail to start up because there is no display attached?
I think the easiest approach is to use LXDE (Lightweight X11 Desktop Environment) with xrdp.
Refer This Link

Resources