LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-27-2017, 08:36 AM   #1
mkempster22
LQ Newbie
 
Registered: Feb 2017
Location: England
Distribution: RedHat/Ubuntu
Posts: 8

Rep: Reputation: Disabled
Question RHEL VNC User Network/Proxy Settings


I have been setting up RHEL6.8 VNC Desktop VM's at work for certain teams, I have created an Ansible playbook to fully configure VNC on a new server.
One thing that I really cant get to work is user network settings.
my /etc/network-scripts/ifcfg-eth0 is fully setup and is done in the script we use for provisioning servers, yet after connecting via VNC to a user desktop there is never any network or proxy settings there.
Where are the files for these individual user settings kept, I can't seem to find this anywhere on the internet and would just like to add these to my Ansible playbook so I don't have to manually log into every single user and set these up through the GUI.

Thanks in advance
 
Old 02-27-2017, 08:54 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Shouldn't that be /etc/sysconfig/network-scripts rather than /etc/network-scripts?

Anyways, I can't see what it is that you are looking for? Are you looking for the ip details or something else? I wouldn't rely on checking a file for ip details and instead would recommend checking such details with the ip command.

Code:
# ip addr show
If this isn't what you are after, a bit more clarification may help.
 
Old 02-27-2017, 09:00 AM   #3
mkempster22
LQ Newbie
 
Registered: Feb 2017
Location: England
Distribution: RedHat/Ubuntu
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi yes, missed out that in the post.

The issue is that my network properties on the server using ssh are completely correct, 'ip addr show/ip a' both show the correct properties, but when setting up GUI desktop users going into their individual network settings as you would usually on a GUI desktop there is no settings there, you have to manually add a wired device and configure the settings.
I dont use GUI linux desktops often and assumed each new user would be using the settings from ifcfg-eth0

Last edited by mkempster22; 02-27-2017 at 09:15 AM.
 
Old 02-27-2017, 09:04 AM   #4
mkempster22
LQ Newbie
 
Registered: Feb 2017
Location: England
Distribution: RedHat/Ubuntu
Posts: 8

Original Poster
Rep: Reputation: Disabled
This is my ifcfg file, the network on the server functions correctly and you can access satellite and repositories etc.
With a GUI desktop you need browser functionality and when going into the network connections in the GUI there is no device there

DEVICE="eth0"
BOOTPROTO="static"
HWADDR="###########"
IPADDR="##########"
NETMASK="255.255.254.0"
GATEWAY="###########"
DNS1="##########"
DNS2="#########"
IPV6INIT="no"
MTU="1500"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"

(##### = redacted info)

I have all my IP details, I can still configure the dektops settings manually as I know the IP, Gateway and DNS etc. but I would like to be able to have it so when setting up a new user desktop it configures the network automatically

I've attached a screen of the GUI
Attached Thumbnails
Click image for larger version

Name:	Screen01.jpg
Views:	9
Size:	80.0 KB
ID:	24346  

Last edited by mkempster22; 02-27-2017 at 09:10 AM.
 
Old 02-27-2017, 09:29 AM   #5
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Don't really use GUIs on RHEL/CentOS that much, but I believe most the GUI tools will be using network manager for managing system IP details. As you'll note from your own configuration, you aren't using NetworkManager (NM_CONTROLLED="no") and so I suspect that is why the GUI appears empty.

When you GUI in, kick open a terminal and see if the "ip addr show" commands work using the CLI tools, if so then this maybe the case.

Last edited by r3sistance; 02-27-2017 at 09:55 AM. Reason: grammar
 
1 members found this post helpful.
Old 02-27-2017, 09:36 AM   #6
mkempster22
LQ Newbie
 
Registered: Feb 2017
Location: England
Distribution: RedHat/Ubuntu
Posts: 8

Original Poster
Rep: Reputation: Disabled
[root@####### ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether ############ brd ff:ff:ff:ff:ff:ff
inet ###########/23 brd ######### scope global eth0
[root@####### ~]#


surprisingly it does come back with the right IP, good shout on the network managed part though, I will look into that, you wouldn't happen to know where NM keeps its config would you? thanks for the help so far.
hopefully someone else has set this up before.
 
Old 02-27-2017, 09:43 AM   #7
mkempster22
LQ Newbie
 
Registered: Feb 2017
Location: England
Distribution: RedHat/Ubuntu
Posts: 8

Original Poster
Rep: Reputation: Disabled
Update: Thank you r3sistance you're a life saver. Turns out I don't need to find the config location of network manager.

Setting the nm_controlled option to 'yes' in ifcfg file and then rebooting the server made it so when I connect to a desktop it already has the wired device setup. Having never used network manager or GUI based desktops for RedHat I wasn't aware of this and our script sets it to 'no' by default
 
Old 02-27-2017, 10:01 AM   #8
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
No problem, Network Manager can sometimes cause confusing behavior and so people have defaulted it off for a while but in CentOS 6 and 7 it is becoming more reliable/less troublesome than use to be. If I remember correctly, Network Manager was originally designed for laptops moving between various wireless networks and was not so good on servers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL 6 packagekit network proxy popup xion824 Linux - Server 5 04-22-2015 01:44 PM
Settings up ssh SOCKS proxy as a simple user on a network? jddancks Linux - Newbie 7 11-23-2014 02:47 PM
Locking proxy settings for standard user JoshG Fedora 1 09-05-2014 07:33 AM
[SOLVED] Proxy settings in network system settings missing rsciw Linux - Desktop 1 01-14-2013 08:31 AM
setting up network (proxy settings) sharadbirmiwal Linux - Networking 1 01-27-2005 08:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration