LinuxMCE Forums
May 18, 2013, 11:14:24 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: Change network  (Read 1241 times)
awakatanka
Newbie
*
Posts: 8


View Profile
« on: March 28, 2007, 02:36:44 pm »

Is it possible to change from network card to wireless? I have used eth0 to get everything working and installed the wireless ra0 after the install. I want now to change eth0 to ra0 but can't figure out how to do it. Our do i need to reinstall and asign the ra0 from the beginning?

Didn't want to tweak wireless till i know linuxmce was working for me.
Logged
asgard
Regular Poster
**
Posts: 27


View Profile
« Reply #1 on: March 28, 2007, 10:35:11 pm »

Linuxmce is not officialy supporting wireless now, i mean you cannot setup the wireless params from somewhere withing linuxmce. This doesn't mean that it ain't going to work with your wireless card but some tweaking is involved for now. You need to modify a DeviceData entry for your core

1) First step, see what is the current value:
Code:
echo "SELECT IK_DeviceData from Device_DeviceData WHERE FK_DeviceData = 32 AND FK_Device=1" | mysql pluto_main;

This will show you your current network options. The devicedata 32 (network settings) for device 1 (core). Try to make a note so you can revert if something works wrong. For me is something like this now:
Code:
eth0,192.168.141.18,255.255.255.0,192.168.141.1,192.168.12.238|eth0:0,192.168.80.1,255.255.255.0

2) Change _first_ 'ethX' entry (eth0) in my case, with the device name of your wireless card (probably ra0/wlan0 or something similar). If you had only one network card as i do in my example i recommend to use the wired one as your external interface and not do an alias on the wireless one since the wired one is faster for pxe booting other computers or sharing data via nfs/samba. This means you want to change 'eth0:0' to eth0, or if you decide to use only the wireless card, change eth0:0 with wlan0:0 (or what is applyable in you hardware).

Code:
UPDATE Device_DeviceData SET IK_DeviceData = '$NewValue' WHERE FK_Device=1 AND FK_DeviceData = 32

where $NewValue is the modified string, for example in my case:
Code:
NewValue="wlan0,192.168.141.18,255.255.255.0,192.168.141.1,192.168.12.238|eth0,192.168.80.1,255.255.255.0"
or
Code:
NewValue="wlan0,192.168.141.18,255.255.255.0,192.168.141.1,192.168.12.238|wlan0:0,192.168.80.1,255.255.255.0"

Of course you can do any combination, you only need to know the the first device is the external one and the second the internal one

3) Run /usr/pluto/bin/Network_Setup.sh to apply your changes

PS: This guide assumes that you configure your wireless setting for the wireless card by hand
PS2: If anything goes wrong you can go set your device data to the original state and run Network_Setup.sh again

Logged
itspac
Veteran
***
Posts: 136


View Profile
« Reply #2 on: May 29, 2008, 07:59:42 am »

thanks  this post has been real helpful to me
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!