SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to figure out how to open ports and start certain services in Slackware. To be more specific, I want to open or start port 111, among other services. I know about editing the /etc/inetd.conf file, but only a handful of ports are there. I have researched some here and google, but I haven't found the answer. I'm also trying to open applications through ssh, but I have not been very succesful. My guess is that I don't have a service running. Any help will be appreciated.
If you don't have any firewall / iptables rules in effect, then ports will be "closed" unless a service is running on that port. To open port 111 you need to start a service running on port 111. Port 111 is SunRPC - I'm curious about what you'd need that for.
When you say you can't open applications through ssh, what do you mean? Can you not login to your machine with ssh?
Try "ps -e | grep sshd" to see if ssh is running and "nmap localhost" to see what ports are open.
If you don't have any firewall / iptables rules in effect, then ports will be "closed" unless a service is running on that port. To open port 111 you need to start a service running on port 111. Port 111 is SunRPC - I'm curious about what you'd need that for.
I'm trying to use VNC. When I try to use it, it says that port 111 is not open.
Quote:
Originally Posted by odevans
When you say you can't open applications through ssh, what do you mean? Can you not login to your machine with ssh?
Try "ps -e | grep sshd" to see if ssh is running and "nmap localhost" to see what ports are open.
Ok, let me be more specific, I'm logging in from machine a to machine b through ssh. I want to use an application in machine b. So, I do export DISPLAY=machinea:0.0. I don't get any errors, but when I try start an application, like lets say, mozilla, it gives me an error. Is there a service that I need to start?
I'm using the viewer. But every time I try to connect, the connection by the remote machine is refused. Not sure what I'm missing.
Could you be a little more specific? What VNC viewer program are you using and what VNC server is running on the remote machine? As has been said, VNC usually runs on port 5800. If we know exactly what you're running, we'll be able to help get you up and running.
Could you be a little more specific? What VNC viewer program are you using and what VNC server is running on the remote machine? As has been said, VNC usually runs on port 5800. If we know exactly what you're running, we'll be able to help get you up and running.
Cheers,
odevans
Opps...figured it out. I had to set up the vncserver in the remote machine. Now I'm trying to figure out how to use remote applications through ssh.
On the remote machine (the one you want to run the application on) edit your /etc/ssh/sshd_config and uncomment (remove the #) from the line:
Code:
X11Forwarding yes
Restart the ssh server on the remote machine for that change to take effect:
Code:
root@server:# /etc/rc.d/rc.sshd restart
Now, on the local machine, from a terminal in a X window (konsole, xterm, rxvt etc):
Code:
user@client:$ ssh -X user@server
Try typing a command (eg xclock) and you should see the clock on your local display.
Thanks so much! I had gotten as far as editing the sshd_config file before, but I was editing the local machine and not the remote one. Again, thanks so much for your time. Linuxquestions rock!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.