This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to compile and run xv6 on windows?
We are being taught xv6 in our course. Currently we use to login to linux server of our school using putty in windows.
There we make changes in source of xv6 (using vim), then compile and run it in qemu simply
make clean
make
make qemu-nox
It is not always possible to connect to their servers therefore I want to be able to compile and run xv6 withing windows (in some emulator obviously).
What emulator I can use for above kind work? (edit code, compile and run) and how?
You should be able to build the xv6 system using cygwin from www.cygwin.org; make sure you install gcc, make and a decent editor (emacs or vim or just use a regular windows editor like notepad++). After that, you can run the resulting image with one of the qemu ports for windows; I found Qemu Manager to be quite easy to use (http://www.davereyn.co.uk/download.htm). You will have to modify the Makefile to point to the proper qemu location.
Related
I have been using the default bash of linux for over 1 year and one of colleague recommended me switch over to using iTerm2 alongwith zsh and oh-my-zsh. He also recommended this post to install and configure those :
https://www.freecodecamp.org/news/how-to-configure-your-macos-terminal-with-zsh-like-a-pro-c0ab3f3c1156/
When i asked what are they the answer he gave me was kind of confusing, so i ask you overlords kind do tell mewhat actually those are and if you have some insights about what actually a bash is, i would be happy to learn that too :)
Thank you all
Pawan
When you are at a command line, typing in commands and reading output you are working in a program called a terminal (or console on windows). The terminal is taking your commands and forwarding them to a program, called a shell, who's job is to actually execute the commands you type in to the terminal and possibly print some output. The output from the shell is then displayed in your terminal window.
The terminal is like the web browser and the shell is like the javascript engine. Your browser takes your input (click, keypresses, mousemoves) and sends them along to javascript which processes those actions and the browser displays the results.
iTerm2 is a terminal emulator meant to be a replacement for macOS terminal and is far more feature rich. It's the terminal program providing you with a command line interface.
ZSH is a specific shell, as is bash, the same way linux is a specific operating system. There are different shells that provide different syntax, features and functionality. There's bash, cshell, fish, powershell, zsh and others.
Installing ZSH, you are essentially downloading a new program and telling your terminal to use that program (say, instead of bash) to process the commands and run scripts.
oh-my-zsh provides a way of managing your zsh configurations, themes and plugins to extend the look and functionality of your shell.
I can't reccomend this setup enough- it's like the cadillac of command lines. You have a good friend there.
I'm working on a Embedded Linux application and I would like to use GDB to debug it. The problem is that, although the Kit configuration seems fine (the Debugger option is correctly pointed to the GDB correspondent to the device's GCC - device is a Linux ARM), when I ask Qt Creator to run in debug mode it returns an error in the "Application Output":
sh: gdbserver: not found
This seems strange since, as I sad, the configuration is fine and no error about that is reported by Qt Creator in any moment before starting debug mode.
I did some research on the web to find which was the exact steps to use GDB to debug an Embedded Linux application from within Qt Creator (to use breakpoints, etc.) and the closest thing to an answer I got was this commentary by Tobias Hunger:
You will need to have ssh and gdbserver installed on your board for
this to work. Then you need to set up your board [qt-project.org] in
Creator. Afterwards you need to set up a kit [qt-project.org] using
this device.
Those steps, thought, are not clear to me.
First, why would I need to have a GDB inside the device if the Kit should point to my local GDB?
Or it shouldn't?
Where would I put the GDB anyway?
How do I know if I have this ssh on my device?
If I don't, how do I install it?
All the other mentioned steps are already done, but related to the GDB located on my Desktop Ubuntu. Should I change something if I do the above steps?
And of course, is this manual my Tobias complete or do I need to do something else for this to work?
You need gdb and ssh on your Ubuntu and gdbserver and sshd on your device: actually when you deploy a project on a remote device using QtCreator, it makes use of ssh for copying the files to target, then it launches gdbserver on the device (attached to the executable that you want to debug) and then launches gdb on your Ubuntu connecting to the running gdbserver on the device.
So you need all of them to make things working.
ssh and gdb can be installed on your Ubuntu simply via apt-get. Instead the installation of sshd and gdbserver on your board is platform-specific: it can be that some boards already have them in their standard system image, or maybe in some cases it is up to you to install them... if your Linux distribution on the board has some package manager then you might try to use it... in the worst case you will have to compile them on your own for your board and install them manually.
This question already has answers here:
How to use sbt from behind proxy?
(16 answers)
Closed 8 years ago.
I am trying to run sbt behind a firewall, and there is no way I can disable it. But somehow I can get the required jars and store them on the system. Is there a way I can run sbt without internet connection on that system.
I am using Windows (Win7) as the development environment.
SBT has an offline mode, from a command line you can use:
sbt "set offline := true" run (replacing run with whatever command you need)
or if you ran sbt and are in a sbt console you can simply do set offline := true
I finally found the answer to the question after struggling for two days. The problem was not with the firewall but with the proxy set up. What I had to do was pass the proxy, username and password via command prompt so that it could get the necessary jars.
java -Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080 -Dhttp.proxyUser=proxyUsername -Dhttp.proxyPassword=proxyPassword -cp "/sbt-launch.jar" xsbt.boot.Boot
I ran this piece of code and it solved my problem.
The jars that are downloaded are stored in the .ivy/cache/ path.
Thank you #Exupery for your help.
I have made an R-GUI, now i want to make it as an application which can be used as software without running code in 'R' platform, means an executable file which can be run on every windows platform like any other image processing software or any other software like ERDAS or itself R...is it possible to make with in itself R
You cannot make an executable in the sense that people no longer need to install R. What you can do is have a look at Rscript. This enables you to create R programs, e.g. your GUI, that can be run using a shortcut. Note that this still requires your users to install R, and add the location of the R set of executables (R, Rscript, etc, all in $R_HOME/bin) to their $PATH environment variable.
See also this SO post.
I have an R script which I want to deploy so that it's idiot-proof, one click runs it etc. Unfortunately I don't have the means to pay for a server, and the environment in which it needs to run does not allow the installation of new software, only portable style apps can be run. (School computers) My script also relies on several non-base packages.
Is there any way to deploy R and my script in an easy to run way so it can be used off a usb stick?
You can install R on a USB drive and use it on any computer running the same OS. If you're using Windows, see question 2.6 of the R for Windows FAQ.
If you made the USB stick a bootable disk environment (say linux) with R installed on it, you could boot off it and do it that way.