trying to wget a file from the web on my beaglebone - wget

I just got a beaglebone today, loaded with the angstrom distribution of linux, and have hit a wall. Here is what I have done since opening the box:
Downloaded and installed 64 bit windows driver from http://beagleboard.org/static/beaglebone/latest/README.htm to allow me to attach my beagleboard via USB.
Downloaded putty from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Set up putty with my COM (COM8) and a speed of 115200, then opened up my serial USB terminal to interface with the beagleboard.
At this point, whenever I do a wget command such as:
wget http://example.com/file.py
I get an error of:
wget: bad address 'example.com'
I am connected to the internet via wireless... is there a port I should be opening up or something? It seem as though wget just can't get to the web at all.
Am I limiting myself because I am not connected to the internet via ethernet? If that's the case, am I better off downloading the files to my windows box and transferring them manually?

The problem was, not surprisingly, the wireless connection.
My windows machine was connected to the beaglebone via USB, and to the ethernet via wireless.
Plugging an ethernet cable into the beaglebone solved the problem. Still, I would like to be able to do it through my windows box.

Related

Visual Studio Code remote access to a WSL2:ubuntu on my desktop from my macbook

've looked around and can't seem to find the answer to this - probably because the feature is pretty new.
I tried the remote WSL:ubuntu connection on my windows desktop machine to connect to my WSL2 Ubuntu running on the same machine. This is pretty much perfect as it allows access to my Nvidia GPU under linux
Is there anyway I can do the same trick from my macbook? I can connect to the windows side of the desktop using the new remote tunnel feature but I'm drawing a blank on how to do for the WSL buried in that machine. It looks like it's just using the same remote connection feature so I'm thinking it should be possible but WSL2 network is not exposed the same way you can with a VM or other machine.
The desktop has way more everything than my macbook including a nvidia GPU I want to use for some machine learning.
I can do it from the desktop itself - but it's nice to be able to use that machine from my macbook at certain times of day.
I have recently started using VSCode so I'm on the learning curve with it - it may well be that it's not possible using the new remote tunnels - or requires some messing with adding a new hyper-v bridged adapter to the WSL installation. I'm hoping against hope there's an easy solve that I've somehow missed.
I tried setting up the remote tunnel as per https://code.visualstudio.com/blogs/2022/12/07/remote-even-better but it seems to setup a server to access windows not the WSL2 service.
Thanks for any help!
I had a similar problem and found this github issue. While the developers are looking into including this feature, you currently will need to install the VSCode CLI directly in WSL. You can find the downloads here
Notes
I would recommend the x64 CLI download in the Linux section. It will download a tar.gz file which will have a file named code in it when extracted.
The tunnel will launch from wherever you place that code file, so I put mine in the ~/ (home) directory.
You can then open a tunnel using the command ./code tunnel from that location. You can replace the . with the path to the code file to open the tunnel while in a different directory, i.e. ~/code.
You can still launch a tunnel from Windows with code tunnel. (note that this command does not have ./)

VS Code remote server extension shows "attempting to reconnect"

I use Visual Studio Code and RemoteSSH extension to connect to a remote server located across the ocean via the corporate VPN, The connection gets established when I connect via my mobile hotspot, but it keeps showing "Attempting to reconnect" asking for password repeatedly when I use my broadband.
I have compared the internet speed of both the service providers and below are the results.
1)Airtel hotspot(remote ssh works)
2)Hathway broadband(remote ssh does'nt work)
From the above images it is evident that my broadband speed(upload and download) is much better than my internet hotspot speed, In spite of this I am unable to use remote ssh to code using my broadband network, Is there something that needs to be tweaked, or are the internet speed tests in a way inaccurate?
I had similar experience and there are many threads on the subject, none of which resolved it for me.
I am working on a Windows laptop and connecting to remote Centos linux.
I also connect to company network via their VPN.
I resolved it in the following manner, maybe not all steps are required, but this is what I did -but firstly, I setup ssh keys so as not to have to keep using a password, well worth the effort.
Updated the fileWatcher in code to ignore .git folder and venv folder, this improves performance
Updated WSL to WSL2
Install a linux shell on Windows - I was already using an Ubuntu one, installed prior to vscode, but hints online suggested installing it after vscode, so I installed the Kali shell.
Installed openssh-server (to get ssh-keygen) on kali
Launched code from the kali shell, let it do its setup
Even though all extensions were installed on both machine, vscode didn't recognize that and I had to use the option in the extension section to "install exentsions on remote server"
After that, every thing was fine.
Hope that helps anyone else searching this problem.
In Airtel hotspot, your public IP address remains the same.
In case of Hathway broadband, public IP changes very frequently. So, if your VPN is redirecting you over IP, there may be possibility of delay because of authentication verification.

Unable to create bootable USB for windows xp installation

I have mistakenly formatted windows xp partition of my hardrive while trying to install lubuntu operating system.
Now I can only have access to my computer through the live USB disk of lubuntu.
I have couple of .iso files of windows xp cd.
But when I tried to create bootable USB drive from it, it doesn't work.
It either shows "bootmgr is missing" message or it show a blinking cursor and nothing happens while booting.
The iso's that I have, contain all the necessary installation files required.
Is there a way to make USB drive boot from it?
I tried softwares like rufus but that too doesn't work with iso that I have.
try to google a software called ultraiso, it can create an installation usb using an installation Windows cd or iso, no matter the Windows is xp or 7 or 8 or Windows Server.
If you can't find it in google, try to find it using another search engine such as www.baidu.com
then using the usb, you can install Windows again in your hard drive

With RealVNC and a Raspberry Pi, how can I connect to the same session as the raspberry itself?

I have a Raspberry Pi with Raspbian Wheezy installed. I'm using TightVNC server on the Raspberry Pi and RealVNC on my MAC to connect to it. However, when I log in with RealVNC, I'm given a new session, with my own desktop, applications etc.
I want to login to the SAME session as the already running Raspberry, so I can refresh the browser etc (We're using this to display a company desktop application).
How can I achieve this?
I don't believe this is supported by TightVNC (which I think only does "Virtual" sessions). But I may be wrong...
The answer here: https://serverfault.com/questions/27044/how-to-vnc-into-an-existing-x-session suggests a few alternatives (at least ones which work on Fedora based Unix distros)
I know RealVNC can do it (it's known as "User Mode" or "Service Mode" as opposed to "Virtual Desktop" mode), but depending on your users, you may have to license it, or the free mode may suffice.

Windows Phone 8 Emulator- Deployment Error

I am using Visual Studio 2012 in Windows 8. I have set up Windows Phone 8 sdk and everything was working fine until I made some changes to network settings. First I was unable to connect to internet through the emulator. But I managed to set up internet connectivity by sharing the physical connection with my USB modem. However now I'm having problems in launching the emulator which has been working absolutely fine before. When I run the emulator separately (via Hyper-V manager) everything is okay and I can connect to internet but the problem is when I launch the emulator from Visual Studio 2012.
A related question can be found here [1] but the answer is not what I am looking for. Is there a way to fix this issue without running the emulator on a virtual machine?
Thanks
1 Windows Phone 8 Emulator Deployment Issue with Internet
When I ran into this it was caused by my anti-virus software. Specifically, the 'AVG network filter driver' was enabled for the Hyper-V virtual adapter. Unchecking this option fixed the problem for me.
Interference from other virtualization or networking software and drivers outlines specifically which items should be checked for the virtual adapter.
The debugger runs over a TCP/IP connection so if you've changed the HyperV network settings it's possible you've isolated the VM from the host so it cannot open a connection. Try and reset the connection back to it was before you changed it to get the Internet working and this should re-store your debugger.
Edit the .VMX file in your virtual machine folder
vhv.enable = "TRUE"
hypervisor.cpuid.v0 = “FALSE”
and save it.
A little late, but I had to face the same problem and found this solution (all the other solutions didn't work for me)
1.go to network and sharing center
2.go to change adapter setting
3.go to v Ethernet (internal Ethernet port windows phone emulator internal switch)
4.right click it and enable it(if already enabled then disable and enable it again).