Ubuntu Networking :: Ad-Hoc Works With GUI But Not Command Line
Jul 17, 2010
I have two Roboards that need to communicate with one another. I have sucessfully installed Ubuntu 9.04 using the 386 kernel based on instructions found online.I can use the GUI to set up an Ad-Hoc network using one Roboard ("Create New Wireless Network"), call it Manet, and connect to "Manet" using the GUI on the other Roboard and ping/ssh between the boards. However, when I try to create the same wireless network using the command line using:
ifconfig wlan2 down
iwconfig wlan2 key off essid 'Manet' channel 5 ap any
ifconfig wlan2 up
I don't see any entry in iwconfig under "Cell". It keeps giving me "Not Associated"When I try to enter the same information on the other Roboard to try to connect to the network, it doesn't connect and under iwconfig, I don't even see any entry for ESSID. Could somebody please tell me why it works when I use the GUI and not the command line.
View 1 Replies
ADVERTISEMENT
Jan 28, 2011
Does anyone know why Nautilus would allow me to login to a server but not display any files, but when I log in via the 'ftp' command-line binary, it works and allows me to display all the files, make directories, etc.? I was able to login via FileZilla too.
Here's part of the log:
Code:
Response:220 Microsoft FTP Service
Command:USER ----
Response:331 Password required for ----.
Command:PASS ***********
Response:230-Welcome to the Alentus FTP server.
Response:230 User ---- logged in.
Command:SYST
Response:215 Windows_NT
Command:FEAT
Response:211-FEAT
Response:SIZE
Response:MDTM
Response:211 END
Status:Connected
Status:Retrieving directory listing...
View 1 Replies
View Related
Jun 18, 2011
I'm trying to configure sending mail from my site under Ubuntu 10.04 LTS.I have installed LAMP and postfix. To test mail I created the file test.php with code:
PHP Code:
$to = 'mymail@gmail.com';
$subject = 'The subject';
[code]....
View 1 Replies
View Related
Feb 19, 2011
Having an odd problem running a mysqldump via crontab. I have the script running on other servers and they work fine, so not sure how to actually troubleshoot, but the script looks like the following;
If I run it as a cronjob as root, it finishes in a second and a 20k file is there. If I run it from the command line as root it does the backup (takes a few minutes) but does complete the backup and can be unzipped and read successfully.
View 3 Replies
View Related
Jun 5, 2010
I have a very simple gawk script to add commas to numbers to make them more readable:
It works perfectly from the command line, but when run from cron it doesn't add the commas.
View 2 Replies
View Related
Feb 4, 2010
Code:
This won't work in a script but it WILL work on the commandline...
Here is my output when I try the script:
Code:
Also, what is the at the end of the path in the error?
View 3 Replies
View Related
May 9, 2011
How can I verify JavaScript on a site (not on the same server) is working from command line access of the URL?
On checking some of what was written in 2005 I find most of it isn't still relevant (if it was then - I noted the w3m-js stuff mentioned in 2005 hadn't been updated since 2003).
Since then a couple of times I've looked into it but didn't make much headway but also didn't spend a lot of time on it. So far as I could tell from other posts I'd seen others hadn't either.
Recently I found out about Mozilla's SpiderMoneky js library and that it could be linked into elinks text browser and did same on my RHEL5 system.
I found Spidermonkey rpms in the EPEL (Fedora sponsored) repository:
js-1.70-8.el5.i386.rpm
js-1.70-8.el5.x86_64.rpm
js-devel-1.70-8.el5.i386.rpm
js-devel-1.70-8.el5.x86_64.rpm
I was able to download and install using rpm then compile elinks from source to include the above. Running elinks version after that shows the ECMAScript support is compiled into the new elinks binary. Also setting various ecmas* flags in the elinks.conf does have effect so clearly it is using them. (As opposed to another system where I use the original RHEL5 provided elinks RPM it complains about the ecmas* stuff being invalid options.)
It appears that by default it has this enabled but just for good measure I added:
set ecmascript.enable = 1.
Despite that when I pull up the page I see:
This product requires use of a browser that supports JavaScript
As a test I set the above to 0 on the off chance it was backwards and saw the same thing.
I then set the following:
set ecmascript.error_reporting = 1
On pulling up the page I now see a popup box:
Quote:
JavaScript Error:
A script embedded in the current document raised the
following exception:
TypeError: Window.Focus is not a function
OK
That seems to suggest that despite the earlier message about needing a browser that supports JavaScript that it is in fact executing at least one JS but that it is getting an error. Can anyone confirm that?
Does anyone have any idea what I�d need to do to deal with the Window.Focus message?
Essentially the site is a login page and even though I am able to input username and password after opening in browser when I tell it to POST it simply returns to the same login/password page.
And of course it doesn't have to be elinks/spidermonkey. I'd be interested in finding out if anyone knows a way I can verify a site that is running JavaScript is actually responding properly from command line rather than via a browser?
The SpiderMonkey stuff from Mozilla when compiled into elinks is supposed to do that but given my results Im not sure if it is or not.
Most of the documentation I can find on JavaScript stuff appears to be aimed at developers testing their own JS code from command line rather than accessing a web page with JavaScript.
View 8 Replies
View Related
Jul 16, 2010
I'm writing a Bash script to take IPTC keywords from a text file and write them, via Exiv2, to several (first batch is 100) JPEG files in a single directory. The script has one while loop inside another while loop, both terminated, but I'm pretty sure that's not my problem. I think it's how I'm incrementing the "counter" variable, although it could also be the method of parsing the text lines from the file (using cut with delimiters that have worked fine in simpler scripts).
Here's the code as I've worked it up to this point.
Code:
And yes, "keywords" checks out in Crimson Editor, Emacs GUI and nano as an ASCII file with UNIX line endings. No issues on that score.
Feeding each line consecutively into a terminal (excepting the exiv2 command) works fine: each variable echoes with the part of the text line used as a variable value as it should, even when the b variable is incremented the quick&dirty way (up arrow three commands and hit enter).
Running the above script in eval mode (sh -x) stalls after setting the b variable to one and reading in the first line of text. I'd like to know why. I'd also like some advice on another reliable method of parsing the read-in lines.
View 14 Replies
View Related
May 13, 2010
So, in finishing my nFlux slack current edition.I have set it up for users to do certain things in console
and one of the things I want is a way to view slackbook-2.0 in runlevel 3 console.I cant find a pdf reader that works in command line mode and I cant figure out how to either convert slackbook 2.0 pdf into html/text Or find a slackbook download that is html or text?I tried converting it using pdftotext, which didnt work very well So, I need a command line pdf viewer or a converter that works good?
View 5 Replies
View Related
Dec 2, 2009
I've successfully mounted a network share with mount.cifs for the past 2 years using fstab with credfile.
[Code]....
Yesterday I moved this system to a new datacenter, but did not alter fstab or the credfile. The //server/share directory has IP rules in place, but this was updated with the new system IP while we moved the system. Now, I am mysteriously unable to automount //server/share. The local error is 13 (permission denied). The Windows server we are mounting returned a code that is defined as "username is valid but password is incorrect" Again - no changes (content or permissions) were made to my credfile or fstab entry. I've restarted netfs a few times, including rebooting the system twice. What is baffling is I can successfully mount //server/share via command line: Code: mount -t cifs //server/share /mnt/mycooldir -o username=foobar,password=1234
The username and passwords are identical in credfile and the mount options - I copied & pasted username / password from the credfile itself.
View 2 Replies
View Related
Feb 16, 2011
Writing script to create backup of file by adding datetime to file name. Basically test for file presence if there, cp with datetime then rm original cp works fine from command line but get cannot stat `full path to file': No such file or directory
Code:
Here are the errors: cp: cannot stat `~/html/CVP_dadamail/.dada_files/.logs/errors.txt': No such file or directory rm: cannot remove `...': No such file or directory
The for statement is a placeholder as I have same file to backup out of several directories. using "bash -x scriptname" -OR- inserting echos, I can see I've constructed the strings properly. Believing it might be related to the hidden directories, I tried setting the shopt "glob" options to no avail.
Ultimately I'll add the other directories to the for loop and then run this from a cron job, so if you see potential pitfalls knowing I'm headed in that direction...believe construct would be
Code:
View 4 Replies
View Related
May 29, 2010
i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?
View 5 Replies
View Related
Mar 21, 2010
Ubuntu 9.04 with working wlan. I had to restart router & wap. It doesn't seem to ever retry to connect. I know my router & wap are good, I have wireless working on other laptop (running Puppy) I had to go into 'edit connections' in drop down and use 'wireless' tab then edit 'wireless connection 1' and hit 'apply' is there a better way to do this? also, no connections show up with command 'iwconfig' edit: with ifconfig, eth1 si showing data my ip address and packets sent & rcvd. I think I'll try do duplicate this event and use 'ifconfig eth1 down' and then up again to see if it reconnects.
View 1 Replies
View Related
May 11, 2010
For reasons that are not terribly interesting I decided it would be a great idea to remove and re-install the xserver-xorg package. Which proved to be a much larger mistake than I imagined it would be. I purged the package, and then restarted.Naturally I need to have an internet connection to use apt-get to reinstall xserver-xorg, which is where my idea falls apart.I followed the directions in the How To: Manual Network Configuration. However, after I enter the command "sudo dhclient wlan1" I get the line "wmaster0: unknown hardware address type 801" twice prior to the output that the above link shows. Then I just get DHCPDISCOVER messages until I get a "No DHCPOFFERS received. No working leases in persistent database - sleeping."
I'm connecting with WEP to a router that I know works (because I'm using it to type this on my laptop right now) and I know that the wireless adapter(RTL8187) is installed properly because it automatically connected to my network when I had xserver-xorg still installed.I'm running ubuntu 9.04.I've searched for a few hours and I'm no closer to resolving the issue.
View 9 Replies
View Related
Jun 21, 2010
I have setup my wireless card via ndiswrapper and I can see that if I perform an iwconfig that the card is wlan0. I have attempted to connect with the router but I can't get any connection.I know the password is: ########## (10 digits long) but for the life of me I can't get it to work via command line.
View 2 Replies
View Related
Jun 26, 2010
I'm using a remote dedicated server running ubuntu server edition, and I have no idea what the upload/download speeds are.Is there a reliable method to test these speeds via the command line?
View 2 Replies
View Related
Aug 13, 2010
I'm trying to connect to a AP by command line but I can't yet. Using the network manager it's possible but I need the command lines to use in my code programming.
Here it's what I tryed:
Code:
sudo iwconfig wlan0 mode managed channel 6 key restricted s:'12345' essid 'cassiano-PC_AP'
and the tail: sudo tail -f /var/log/syslog
Code:
Aug 13 14:05:55 cassiano-linux kernel: [13476.935795] wlan0: direct probe to AP 00:15:af:84:29:d3 (try 1)
Aug 13 14:05:55 cassiano-linux kernel: [13476.935943] wlan0: deauthenticating from 00:15:af:84:29:d3 by local choice (reason=3)
[Code]...
View 2 Replies
View Related
Sep 1, 2010
I'm running a fresh install of Ubuntu 10.4.1 on a Dell Dimension 4700 desktop.When connected to the network (jack in wall, no router), I normally navigate my intranet and the internet.But here's the issue: this particular Dell machine has an IP addresses that is radically different from all other machines connected to the same network.I have tried to edit etc/network/interfaces to force a different IP, but then I lose connectivity. I need this to follow the IP scheme of my intranet so I can set up a server that resolves by hostname. Is there anything wrong with the NIC or is this something that can be resolved via command line?
View 9 Replies
View Related
Oct 22, 2010
i cant connect to adsl with pon dsl-provider or any command line. just network manager applet GUI works for me. i follow this guide [URL] and try about 3 hours but without success. i edit /etc/network/interfaces following this thread: [URL] but after any alteration in /etc/network/interfaces and restart network my adsl connections are not work at all and also i lost my GUI applet connections too. then i have to back /etc/network/interfaces to its original content and restart my computer to restore my connections
pon dsl-provider error is:
Quote:
Plugin rp-pppoe.so loaded.
RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
View 8 Replies
View Related
Dec 2, 2010
how to send a document to print on a network printer (via IP address) from the command line (not a GUI interface).
View 4 Replies
View Related
Jan 17, 2011
I want to run OpenBox on a netbook. For those of you not familiar, it is a very simple window manager, where I can launch a terminal with a mouse click, and I can start the few apps that I need from the command line. Basically, I am trading eye candy and easy access to a lot of stuff I don't need for a more responsive GUI.
My question is...what package should I install, and what corresponding command line would be used to launch a tool to manage the wireless LAN connection?
View 2 Replies
View Related
Jun 6, 2011
I want to connect to the internet using the command line. I'm 95% I have my wireless card installed correctly, since I'm using it right now.dhclient takes a minute or two, then finishes. It gives no output, success or failure. Then I open up Firefox and I'm not connected to the internet. What can I do to figure out what the problem is?
View 9 Replies
View Related
Mar 10, 2010
I frequently ssh into machines to do work. In some cases, the machine is headless so there is no option to log in.Under Debian and on older versions of Ubuntu I would pull out the avahi and network-manager packages and manually configure the interfaces file to my liking and be done with it.However, I would now like to learn how to work within avahi/network manager. So, is there a doc somewhere explaining how to work with modern Ubuntu networking at the command-line level? Ie: Setting up a wireless connection, setting static/dynamic IPs, etc?
View 3 Replies
View Related
May 14, 2010
Without Gdm (The GUI Desktop running), or an Internet connection, how does One get pppd or wvdial to connect to a wireless broadband modem?I'm SURE this can be done with any modern Distro without additional downloads...but seem to be missing some crucial step...? I've been trying things like: (scrips for pppd and chat and ln {links} ttyACM0 to /dev/modem?) the modem is definitely on ttyACM0.
ln -sf /dev/ttyACM0 /dev/modem
/etc/ppp/chat-script
#!/bin/sh
[code]....
View 1 Replies
View Related
Oct 11, 2010
The title about says it! I have a major problem on my laptop after installing updates. Some of my icons in the top panel are broken. So as a first step I need to reinstall a few things. The first step is to start the wireless connection from the terminal. So would someone please tell what the command is?
View 2 Replies
View Related
Mar 6, 2011
I'm running Ubuntu 10.04 LTS, Lucid Lynx and I'm having problems implementing changes to interfaces.I have made changes to my interfaces via the GUI but when I open a terminal window and so a ifconfig I find that nothing has changed. I've opened an editor and looked at etc/network/interfaces but changes made with the GUI never make it to the config file.Does the networking GUI result in changes to the etc/network/interfaces file.
View 1 Replies
View Related
Mar 12, 2011
I would like to Close/Open port 21 using command line. I have an FTP server and I don't want to have the port open all the time. I need only two hours by week to be open port 21 from outside to inside.So I need to know the command line for opening and closing the port 21 then I will implement this in a script into cron.hourly.
View 2 Replies
View Related
Apr 6, 2011
I've been familiarizing myself with the command line and am attempting to connect to a wireless network but am getting stuck at the point wherein I need to put in a password.When I run iwconfig I see my card is wlan0.I definitely know my password as I can connect using a GUI. The encryption method for my network is WPA2.Could someone tell me how I could connect to a WPA2 secured network via a command line, and/or where I went wrong with what I've been trying?
View 1 Replies
View Related
Jul 6, 2011
I wanted to run a little media server in my house, shared with my laptop only, so I could free up space on my laptop drive. I took one of my Linux boxes out of my render farm and loaded up a minimal install, command line only of Ubuntu Lucid from the mini ISO (32 bit). I had to plug in a lan cable to install, but I wanted to move my box back out to the "farm" that doesn't have wired access to my intranet.
After much research, trial and error, this is what worked for me. My wireless card uses an Atheros AR5001X+ chip, and it works with the desktop cd out of the box. I found the "just works" desktop install uses the ath5k driver that is now included in Lucid, but I'm not using a desktop or window manager. I haven't tried this on server version, if you do, let others know what you had to install to get it to work.
The things I do tell you about, I instruct you as if you are a newbie, however I have left out some things that users should know or be able to lookup easily, like if you want a static address instead of using dhcp. You may not need all of the steps or you may have to do more research and troubleshooting.
Find your wireless card (you may need to lookup what to do if it is not recognized at all)List all pci devices, only show network devices (-v verbose, -vv very verbose): >>lspci -vv | grep Network List all hardware (| less lets you pause at each page - arrow keys, page down/up to navigate, q to quit) >>lshw | less
[Code]...
View 1 Replies
View Related
Jan 7, 2010
I did a command-line installation. I dont have an ethernet connection, only wireless. For some reason the alternate installer doesnt install "wireless-tools" How do i install it? At this point I am thinking of booting off a live USB, downloading the wireless-tolls package from here Save it to a folder in the command line installation where?) then boot back into command line and install from there But I am not that savvy with command lines, and dont know where to install to...
View 1 Replies
View Related