Slackware :: Script Which Reinstates Original Content Of /etc/resolve.conf After Using Wicd
Dec 16, 2010
I have discovered that after employing the Wicd Network Manager I can no longer connect via ppp. The reason, it seems, is that each instance of Wicd changes the content of my /etc/resolv.conf file from:
Code:
search SPRINT
nameserver 195.128.182.5
to:
Code:
Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
# /etc/resolv.conf.tail can replace this line
It has been suggested that I write a script that does this.
I replaced the trusty old aironet wireless card with a trendnet scanbus wireless card so I could secure my home wireless with wpa encryption. It uses the ath5k module, and the wireless is set up with wicd. The issue is that if I stop browsing for about 2 minutes, the next time I start to browse, it will disconnect, then reconnect no problem. I don't know if this is supposed to be a feature, but it is sure annoying. Is there a tweak somewhere to stop this? The other option would be to use ndiswrapper and use windows drivers, but I'd rather explore tweaking, if possible. If I have to use ndiswrapper, would I have to rmmod ath5k first, or would it be ok to use ndiswrapper directly?
I need advice in getting the original blacklist.conf of the directory /etc/modprobe.d/ because I erased and I don't know if that file could make me have some issues in the future, so if any body can lend me a copy of that file or refere me to some page where i can get it. Is for the slackware 13 32bits distro.
(Background: my wireless worked fine for a long time using wicd-1.6.2.1 and then all networks became hidden. The wicd website said there was a bug in 1.6.2.1 and to upgrade.) I obtained wicd-1.7.0.tar.bz2 from sourceforge.net. Slackware man pages recommend "installpkg <name>". I did "removepkg wicd..." and then install. Installpkg said it could not install it because it did not end in .tgz,.tbz,.tlz, or .txz. I changed the name to wicd-1.7.0.tbz(assuming that was equivalent) and did installpkg again. That gave "Verifying..., Installing..., Warning: package has not been created with 'makepkg'. Package wicd-1.7.0.tbz installed." There is no entry for it in the Kickoff Application Launcher. There is an entry for it in /var/log/packages. There is in /etc/rc.d./rc.wicd a script marked executable. Can anyone see what got lost?
I have installed WICD on Debian . I can now access a new a Network Manager screen, which did not exist before, but it does not display/detect any wireless networks. It is like dead. Before installing WICD I did at least have a wireless WPE encrypted network, which was detected, although it often disconnected for no known reasons. Now even that Network has gone and I can't go on line. Can anybody help here? How can I configure the WICDNetwork Manager to detect an existing network or create a new one? In the latter case, would I have to reconfigure the Router settings to setup/connect to a network in Debian? May be I have to do this, because Tor/Vidalia changes my IP address and so my Network Adapter ( Linksys) can no longer connect to the router. Also, when trying to follow troubleshooting leads in this connection, the Terminal screen on Debian ( CMD) would often return a PERMISSIONS DENIED message.
I use red hat Es 5.5 64 bit.. I find the item nameserver in resolv.conf cannnot be saved. Everytime ,reboot or restart the netwrok service . The data in resolv.conf will be removed and clear . I need to edit it again . I also try to add DNS1=XX.XX.XX.Xx in ifcfg-eth2 but the same problem. in it , the resolv.conf is still need to edit every network service restart . So, how to save the resolve.conf about nameserver forever ??
[root@vls etc]# cat resolv.conf # Generated by NetworkManager # No nameservers found; try putting DNS servers into your # ifcfg files in /etc/sysconfig/network-scripts like so: # # DNS1=xxx.xxx.xxx.xxx # DNS2=xxx.xxx.xxx.xxx
I wanted to change screen resolution manually from xorg.conf and apparently a missed it up and my fedora core stucks and wont start, how can i start fedora in command line (so that i can remove xorg.conf), i tryed ctrl+alt+f1, ctrl+alt+backspace and still cant start in command prompt.
I am not able to find /etc/resolve.conf on my centos machine.it says no such file or dir .with out this file i am not able to connect to internet.when i ping my localhost and my machines ip address i am getting a reply.but when i ping some domain(eg - google.com) i get no reply.i tried manually entering the dns nameserver from system->adminstration->network->dns tab.i dono what ip to enter there..
I am using Ubuntu 9.10 Desktop Version and the entries did in /etc/resolve.conf all the time it is cleaning as and when i am restarting my systems. How to make is permanent solution to keep all the entries done in /etc/resolve.conf
on my laptops I used to use Wicd with the Gtk GUI. However, now there is a KDE client, which I want to use instead, from now on:
Wicd Client KDE
I installed it, and it works quite well, so far. However, whenever I logon to a KDE session, the older Gtk client is started, too. I then have both Wicd clients sitting next to each other on my panel bar, and I have to manually kill the Gtk client. How do I get rid of the Gtk client in KDE, permanently? BTW, my laptops are running Slackware 13.1 stable with all patches up to now and some additional software from various repositories.
I'm working with .conf files which I need to edit (with gedit for example) and an .sh file which I need to run occasionally.
And every time I open a .conf file it pops the "Do you want to run or display its content?" question.
I tried to configure Nautilus to stop prompting me every time by setting the Edit->Preferences->Behavior to Run executable text files when they are opened.
But now every time I try to run the .sh file it opens it in gedit instead of running it.
Is there anyway to set the behavior for specific file types?
Like so it'd open the .conf files in a text editor and run the .sh files?
(Maybe I should mention that I'm running Ubuntu 10.04 with Gnome)
I have no idea where to start with WICD. I know it's on the Slackware 13 CD and where it is on the cd but from there I'm really just lost as what to do with the files there and such. I'm so used to Windows and programming on Windows in C# .NET and tweaking/hacking there that I have no idea where to really start with Linux so if you have any special tips or places to go to read up on stuff so I can maybe figure out more about Linux and this I'd like that a lot.
I have been using wicd successfully for some time, lately with slackware 12. However, when traveling I sometimes find a place that gives an error message "encryption must be enabled".Probably this means that wpa-supplicant must be set up right, but I do not know how to do that.I have wicd starting at startup, then I type wicd on the command line until a prompt does not return, go to a different window, type wicd-client, then start kde and use its link to start wicd. So frequently this works fine; I get a connection to something I have a user name and password for, or am in a coffee shop where no such are required. But sometimes I get the above message. This happened to me in a coffee shop in Helsinki where I was given a user name and password, but still got the above message and could not proceed.
My area does not have broadband, but I am able to get 3G on my cell phone. So, I've been tethering it to my laptop when needed, but what I'd like to do is set up my Slackware 13.0 box (which is configured to run as firewall/router/dhcp server so that I can just turn on my phone's wireless router program, and then share it out over the whole network in my house. I'm using a Gigabyte b/g wireless card, which has the RT61 chipset in it. I have NO problems at all getting the wireless card to work with just setting up rc.inet1.conf. The only problem here is when I need to take my cell phone with me, I will not be able to simply turn it back into a WAP, and have my Slackware box auto reconnect to it.
This is why I started looking into using WICD. I do NOT run X, so that's why WICD fits the bill, since it has a cli version. First I tried installing the version that came on the CD. No dice there. I removed that package, and tried the 1.7 package that's on the mirrors under current. I used slackpkg to install it. WICD will run, see wlan0, sees my WAP and a few others, but it fails to connect. It attempts to up the interface, and use dhcp to get an ip, but it fails everytime. My phone's WAP program only does WEP, but I can't get WICD to get an IP with our without WEP enabled. I made sure that my rc.inet1.conf file does not reference any interfaces.
I'm running Slack13-64 and using wicd for my network connections. Is there any way that I can get it to recognize my usb tethered phone? I have a HTC Touch running WinMo, and when I plug it in it becomes eth1.Is there a way that wicd can find it? It only picks up eth0(Wired) and wlan0.
I've seen posts revolving around this issue on many different forums but none really have given and answer to the problem that i've seen thus far. so I'm trying to connect to a wireless network with WPA/WPA2 encryption. Every time WICD gets to the point where it searches for a DHCP server but cannot aquire an IP address. This only happens if the network is encrypted though. If I take the encryption of the network I can connect no problem. Looking in the wicd.log file I find a few errors that I have searched for but cannot find any answers.
2011/01/16 15:19:37 :: Connecting to wireless network The_Welchs_Media 2011/01/16 15:19:37 :: Running command ['wpa_cli', '-i', 'wlan0', 'terminate'] failed: [Errno 2] No such file or directory 2011/01/16 15:19:37 :: Putting interface down 2011/01/16 15:19:37 :: Releasing DHCP leases...
[Code]....
I'm kind of lost as to why I'm getting the no such file or directory outputs along with the PSK generation failure.
I once had wicd running at KDE startup as I was just playing around with it. The problem is I now have turned off rc.wicd and don't want to use wicd any more. Every time I start KDE it still asks for the root password which I cancel and it then tells me it can't connect to wicd's dbus. This is getting really annoying as I have been trawling through my ~ looking for the setting that starts this up. I just want wicd turning off completely and this message to go away.
I've been using wicd since starting out with 13.0 and it works flawlessly when using three different WPA wireless networks and a couple of wired networks. But, every time I get on a virgin train and try and connect to the internet via the open wireless network, wicd just hangs at the dhcp stage. If I stop wicd and edit rc.inet1.conf to contain this:
wicd keeps dropping my wifi connection most of the time I can just tell wicd to reconnect the connection never stays up for more than 10 minuets with out doing other times it looks like it connected when it didn't other times it times out when obtaining the ip address in these 2 cases I have to run "etc/rc.d/rc.wicd restart then tell it to connect sometimes posting on forums requires me to copy my text hit submit hope the connection is still up maybe restart wicd reconnect.is there a bug in wicd or python ?
I have recently started using this laptop as a host for tinkering with vmware. I have wicd installed on it, which normally brings up wlan0 and connects to the nearest configured wireless lan automatically.
Vmware has installed another, virtual, NIC on the host, called vmnet8. I configured it in /rc.d/rc.inet1.conf with a static IP.
Now when I boot up the laptop vmnet8 starts up and running and correctly configured, but wlan0 doesn't. I have the wicd icon in my systray but it doesn't find a network, even when i click on it and refresh etc. I have to open a terminal and "ifconfig wlan0 up" in order to get the NIC up. Then wicd works fine.
Networking configuration in Slackware looks like a bit of a nightmare frankly (why i usually use wicd!) so I thought i'd ask you chaps before messing about too much.
1. What is the difference between files (xorg.conf and xorg.conf-vesa)
2. No matter how hard I try I can't change keyboard layout in xorg.conf-vesa (I change it in file ) but there is no actually anything changing, it starts to get annoying - for example - below goes my xorg.conf-vesa, if I uncomment and set line from
After 2 weeks of work to restore my server to working condition (after a failed HDD) I am facing a very strange problem. Basically, random files (config, scripts, etc) are either going mising or are reverted to original states. Example1: This morning, I went to use VNC to remote login in my server. I couldnt start the VNC server. I used ssh to login and searched for a lock file (.pid) or anything else preventing VNC from starting, only a few minutes later to open rc.local_shutdown and discover that it was only containing:
Code: #!/bin/sh # # /etc/rc.d/rc.local: Local system initialization script. # # Put any local startup commands in here. Also, if you have # anything that needs to be run at shutdown time you can # make an /etc/rc.d/rc.local_shutdown script and put those # commands in there. All my custom commands were gone...
Example2: Yesterday, I was still using my NFS shares to play music and movies. All worked perfectly. A few minutes ago, I tried to mount the NFS shares on my laptop but it did not work. I used ssh again to login in the server and discovered that nfsd was not running. I tried to start it and it said that there were no exports to share (or something like that). I opened /etc/exports and it was PLAIN empty!! However, I had a export.orig file in /etc... SO somehow, something erased my exports file but care to create a backup of it!
Question: What could do such stupid stuff? Hints: I did not install anything. I did not fool around with anything. The server was unpowered between yesterday and today.
I just upgraded to 13.37, and for some reason wicd now cannot connect to my wireless point. It keeps saying the password is wrong, when I know for an absolute fact that it is correct (even changed the password to '1' just to make sure, and no dice. Which is weird because even though its the exact same version of wicd, and not only that, it no longer seems to be able to see networks with my built in card, so having to use a USB card. Anyway, googling turned up very little. Seems to be a common problem across distros, and some people reported that downgrading to 1.6.x fixes it.
So, I ran Code: removepkg wicd And it uninstalled wicd. Downloaded wicd-1.6.2.1-x86_64-1.txz from a 13.0 mirror and did
Code: installpkg wicd-1.6.2.1-x86_64-1.txz While in the correct directory. It installed, and I ran wicd. But checking the version number when it loaded, it says its 1.7.0 again.
Not really sure why this happens. I'm assuming there's some remnant of wicd that removepkg doesn't dump, and its preventing me from installing this older version of wicd. What do I need to do for this? If anyone has a surefire way to make 1.7 work again, that would be fine.
I have installed Slackware 13.1 without a problem and have a working wired ethernet connection. However I need to set up wireless but each time I try to do this using wicd I have a total system crash during the start up screens at the very last line before the welcome line appears.
Nothing works to resolve it, and I need to press and hold the start button and restart. I have checked the md5sum, installed the software again several times but the same happens each time which results in me having to reinstall.
I have installed wicd using slackpkg update, then slackpkg install wicd.
I have also tried downloading wicd from the slackware /extras folder and installing it on its own. Either way the same happens.
I have tried various manual approaches to setting up wireless following various links but again without success.
I now have a clean install again but am not wanting the same to happen.
Can anyone suggest what I might need to do?
I am using an intel Pentium 4, 2.53 ghz, 512Mb ram, GeForce4 MX 440.
So, in any other Desktop WM, wicd never asks for passwordyesterday I installed Openbox,etc from SlackBuilds and each time I start Openbox it asks for my user's password.I did some googling but couldn't find anything regarding Slackware & wicdand I'm using -currentUser is part of netdev group so what's the issue
I'v just installed wicd. I can't get it to sart, I get errors saying that wicd couldn't connect to it's dbus interface and the wicd deamon has shut down. Then there's a report from SELinux saying that it's preventing /usr/bin/python "write" access on /etc/dhcp/manager-settings.conf and that access is denied to wicd. I can get wicd to start if I su to root, but I'd like to not have to do that every time I boot. Is there a fix?