Programs that originate on Linux are less likely to duplicate functionality that already exists in a typical system or in other packages, so they depend on those things externally. Then on Linux there's a tradition of having all your libraries and executables in a shared path, while Windows prefers each app to be in their own folder. So when porting to Windows they can't expect you to install these things separately on your own, or expect to locate them if you do, or expect them to be the correct versions. So sometimes the Windows port of something will carry a substantial chunk of the OS ported along with it.
Looking at my "emscripten" folder I see over 17k files, taking 1gb space. There's over 300 exe's in there. There's clang/llvm (including 4 duplicate copies of a 37mb clang exe, and 3 of a 4.5mb llvm exe), git (111 duplicate copies of a 1.5mb exe), python, java, bash (two copies), ssh, nodejs, and various smaller tools. The initial download was only about 20mb, and it installed the rest on its own. On Linux most of those things would likely already be installed, or trivial to install separately, with none of that duplication.
I install what I can within cygwin, if it's in their repository, or if I can build it from the source (many linux apps can compile as-is). That avoids a lot of the duplication and other hassles.
There's also the recent Windows Subsystem for Linux on Windows 10 which can run Linux binaries natively (basically giving you a whole Ubuntu install in a subfolder), to answer your last question.
The traditional answer, especially if your school uses some flavor of *nux to host the autograder, is to use Cygwin to compile on the command line with GCC, but I could never for the life of me get GDB to work correctly for debugging.
If you want to stick with a non-Microsoft compiler and still use an IDE, try Code::Blocks.
But honestly, I'd say stick to what you know. If you can work faster in Visual Studio, download the latest version of VS-Express and go to town. As long as you're not getting too clever with the preprocessor or C++11, (or 14, or... 17?) extensions, your code should basically do the same thing in either environment.
1) It's almost certainly not worth switching operating systems just to learn a programming language. If you want a linux-like environment on Windows, you can use something like Cygwin or MinGW.
2) Linux and Windows use different executable formats, so an executable compiled for one will not, generally speaking, run on the other. However, you can write C code that will compile on both Linux and Windows, as long as you avoid relying on OS-specific libraries.
The Cygwin site explains it better than I could:
>What... > >...is it? > >Cygwin is: > > • a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution on Windows. > > • a DLL (cygwin1.dll) which provides substantial POSIX API functionality. > >...isn't it? > >Cygwin is not: > > • a way to run native Linux apps on Windows. You must rebuild your application from source if you want it to run on Windows. > > • a way to magically make native Windows apps aware of UNIX® functionality like signals, ptys, etc. Again, you need to build your apps from source if you want to take advantage of Cygwin functionality.
It's more of a compatibility layer than an emulator.
Ooh, that makes things a little more complicated. You see, what I've written is a script for bash
, a kind of shell that Windows does not have natively.
You have two mainstream options to get set up. The first and easiest would be to install Cygwin, which includes bash
among other things. The second would be to run a Linux distribution in a Virtual Machine (VM) using the popular and free VirtualBox (supports Windows). bash
is packaged with many popular Linux distributions by default.
A third and more recent option would be the Windows Subsystem for Linux. But I've long since left Windows, so I can't give you any help if you decide to take that route.
In either option, you'll also need to have youtube-dl
and ffmpeg
installed.
Let me know if you have any questions, it's a lot to take in at once.
Compiling either of those projects on Linux is pretty straightforward, actually. For both elinks and w3m, it's the classic ./configure && make && make install
inside the source directory. This will build the application and copy it to /usr/bin.
That said, neither of them have windows ports, so you'd have to run them in cygwin. Someone on the elinks mailing list claims to have a script that pulls the code and compiles it properly here.
Above all, though, is the question of "why"? By all accounts these are terrible browsers.
Since the OP is on Win10, installing WSL and running it in an ubuntu environment would probably be the easiest option of all.
Also, it appears lynx, another CLI browser, does have a win32 port. It's precompiled, too.
In uTorrent main window (when you can see your torrents) there's a Graphs tab showing your speed. Show me a screenshot of it where the speed drop due to throttling is visible.
If you want to, we can go somewhere more private for chatting and stuff.
Cygwin installation. Cygwin brings many of the Linux-world utilities to Windows.
I will write a new comment by then or we will change to a private chat
Sort-of. It relies on cygwin1.dll, which is a POSIX compatibility layer. MinGW is closer to natively-compiled tools. But don't just take my word for it:
>Cygwin is a Linux-like environment for Windows. It consists of a DLL (cygwin1.dll), which acts as an emulation layer providing substantial POSIX (Portable Operating System Interface) system call functionality...
Although I can appreciate the amount of time spent on making something like this, it will just be very frustrating for any individual with prior experience with unix... as none of the commands actually work like they're supposed to :)
Might as well just install the real thing, don't you think? https://cygwin.com/install.html
Cygwin comes with a tool called txt2regex. Which is a command line wizard for creating regex and will output it in perl, php, postgres, python, sed, and vim formats. While it's probably available on native linux distros, I don't think it would support conversion of one format to another. Someone who is adventurous could probably write a converter based on the above codebase...
Could you please expand on how does the fork implementation work?
I have read on the Cygwin website why it is so hard to emulate properly on Windows, so I am interested in what is your solution.
Thanks!
dd
with cygwin I suppose. Be very careful when you use it, use it on the wrong drive and it'll 100% wipe it beyond what any data recovery expect could recovery without billions of hours to manually inspect the platter with a microscope.
Run "cygwin64 terminal" as admin, then run:-
/sbin/fdisk -l /dev/sd?
And find the correct hard-drive (Disk /dev/sd?: XTiB
), the run:-
for i in {1..3}; do dd if=/dev/zero of=/dev/sdX bs=1M; dd if=/dev/sdX of=/dev/null bs=1M; done
Remember to replace both instances of 'sdX' with the correct disk.
Just a warning:-
Once you're done, check the S.M.A.R.T. status again, pending sectors should be at 0 and reallocated should be between 8 and 16.
Yeah, the docs aren't that awesome.
You're on Windows, right? I'd install Cygwin or Windows Subsystem for Linux.
You need the standard build tools. With WSL, open a command prompt, run bash
, then sudo apt-get install build-essential
. Then navigate to the directory containing the CircleMUD source code and ./configure; make
to build the source code.
Then you can bin/circle 5000
to run the MUD on port 5000.
I'm assuming Windows.
If you want a good IDE to go with it, use this. The C compiler it comes with is substandard, but it's good enough for beginners. Try to avoid getting used to any Microsoft-specific features, since they go against C's main strength of portability.
My preference is to install this. It gives you a command line compiler and a bunch of libraries. You can also get a more Unix-like experience by downloading Cygwin and choosing gcc
as one of the programs to install.
It's a BASH script, as my name suggests. You'll need some kind of bash shell to run it, so; https://cygwin.com/ for windows. And with slightly modications to the newline instance, works nativly for macOSX. It runs fine under GNU/Linux. So, get one of those. (A linux liveUSB are really easy to create and us, so i would recommend it). It creates a file that lists the tag, tital, and then direct link. (did this so all important imformation would be kept when moving all the images over). You then can run what ever program you want on the list of links. So yes, under that asumption the animated tag exsists, and is spelling right, it would create a file with all direct links in it, upon which you could run another script to download (to your current directory).
read TAGS; URL="http://rule34.paheal.net/post/list/${TAGS}/"; i=1; pages=curl --silent "${URL}${i}"| tr ' ' '\n' |grep '">Last</a><br>' | tr '/"' '\n' | grep [0-9]
; num=$pages; pages=$(( $pages + 1 )) ; while [ $i != $pages ]; do echo "$i of $num"; curl --silent --retry 5 "${URL}${i}" |grep "<div class='shm-thumb thumb'"| sed 's/" src="."><\/a><br><a href//g' | sed "s/.*b' data-//g"| sed 's/">Image Only<.//g'| sed "s/><a class='shm-thumb-link' href='/\n/g"| sed 's/width=".*"/\n/g' >> Index.txt; i=$(( $i + 1 )); done;
is the script
paste this in terminal, hit enter, type tag, hit enter again, and it will get you a list of all URLs, along with important information for power users.
then run
cat Index.txt | grep "http" >Links.txt
to get only the links, and download as you please. (personally i would use
wget -i Links.txt
to download them all)
I also have a script for gelbooru and konachat, if you so desire.
> I think the problems on Windows are with the bare cmd.exe;
We're talking about powershell core (pwsh.exe) not cmd.exe
> adding cmder+clink on top of that IIRC fixes them.
Correct, as does Windows Terminal:
> As such while oh-my-posh works fine in Windows Terminal, support is spotty in vscode integrated terminal.
Because as stated it's a ConPTY issue not a WinPTY issue.
> Zsh is IIRC not natively available on Windows - you'd have to use something like WSL and run zsh inside that.
It's available via cygwin.
https://cygwin.com/cgi-bin2/package-grep.cgi?grep=zsh-&arch=x86_64
RAID isn't a backup, so make sure you account for some form of backup.
This could be a second copy of your data to another disk, but it's better to do versioned backups in case you delete or overwrite a file and need to get the original back.
FWIW, I've been using borgbackup for a couple years now, but I don't know how well it support Windows - either Cygwin or Linux on Windows Subsystem, which is included on Windows 10.
Unix commands are traditionally entered on the command line. If you want to set up a unix-like environment on a windows computer without installing an entire OS (in a virtual machine or whatever) you could try something like Cygwin. Cygwin gives you an environment "like" linux, in which you can run programs compiled for Cygwin. The list of stuff Cygwin has is here. You won't be interested in most of this, but it does contain the bash shell.
The beginning of this tutorial (steps 1-2) concerns verifying the ISO file on Debian/Ubuntu/Mint. If you are running such a system, you can do exactly as the instructions say. If you are running another Linux distribution, we have to modify the instructions a bit. If you are running a Windows system, you will have to install Cygwin which is a small Linux-like command-line environment that runs on top of Windows. Also, when installing Cygwin, be sure to select gpg and wget for installation to be able to follow the instructions.
Essentially, the only modification of the aforementioned tutorial to make the verifying process work on other Linux distributions concerns the Debian keyring (steps 1.2. and 1.3.). That package might not be available in your distribution (or in Cygwin), so you have to import Stefano's Zacchiroli's key directly from the Debian keyring server. Instead of 1.2. and 1.3. do this:
> gpg --keyserver keyring.debian.org --keyid-format 0xlong --recv-key 0x9C31503C6D866396
Then proceed with step 1.4. as usual.
> The Cygwin distribution contains thousands of packages from the Open Source world including most GNU tools, many BSD tools, an X server and a full set of X applications.
That said, it does use a GNU userland for the most part.
There are packages for a scant few BSD tools:
bsdcat
bsdcpio
bsdiff
bsdtar
The default install, not checking any additional packages, is the minimal install and should be around 100 MB as covered here. I found this cygwin-lite which looks interesting.
Tbh I don't think being able to compile under Cygwin is a necessity (I like it, but people seem to generally prefer MingW), I just wanted to check what environment you were using.
Although I had another play and managed to get it to build... I thought there was some linking issue going on, as it wasn't finding functions in libinterface.a at link time, but it looks like it's just down to _WIN32 not being defined by Cygwin gcc. Commenting out #ifdef _WIN32
, its correspoding #endif
, the #define NTDDI_VERSION NTDDI_WIN2K
(was producing a 'version mismatch' error) and finally the #include <conio.h>
(missing header, doesn't seem to be needed though) lines seems to get a working build under Cygwin. I'm guessing it's picking up a 64-bit python27.dll from my PATH, as it didn't complain about that.
Obviously these are hacky changes just to get it to build, but IIRC there's a clean, easy way to detect both MingW and Cygwin (and Visual Studio if you end up adding a project for that). A quick google shows this.
If you want, I can tidy that up and submit a PR (although it's a pretty minor change).
~~I've just noticed with the latest version the hotkey setting isn't saved between runs. Do I need to explicitly pass a config file on the command line in order to start it with a non-default hotkey?~~
Edit: Ignore that last bit. I think it was losing the setting because I was running an older version (I hadn't updated the source, so after I got a successful build, I ran a version that doesn't have support for changing the hotkey).
Are you using 64bit or 32bit version of cygwin? A lot of people are reporting 64bit having similar issue with 0b/s and switching to 32 bit version made it work. Try that and let me know how it worked out.
Going on about 24hrs of no sleep... gotta try to make it another 12 hrs before I can let myself fall asleep or my sleep schedule will be even more out of wack.
it's because cygwin links are not windows links. see http://www.emacswiki.org/emacs/setup-cygwin.el, specifically the function "follow-cygwin-symlink". also read https://cygwin.com/cygwin-ug-net/using.html#pathnames-symlinks.
> in cygwin
Aha! That's some very small detail you failed to mentioned in your original post.
This reminds me of that guy who was complaining in an Oracle forum about some Java app performing like total crap on his computer. The discussion went on for a couple of pages before he mentioned that he was using a Raspberry Pi.
I too know the pain of getting Vagrant to behave properly on a Windows host. A few quick tips: Install the vagrant-winnfsd plugin and sync folders using nfs (much faster response time). I use Cmder as my default terminal on Windows (pretty decent for ssh too), and if I want to install any linux tools, I use Cygwin.
rsync and cygwin won't work unless the permissions you need on the files are very simple. More (too much) detail here: https://cygwin.com/cygwin-ug-net/ntsec.html
If you can map windows shares between the two servers, Robocopy is probably the easiest way to do it. Without a VPN you'd have to open the SMB ports only to the two targets, and the data (including passwords) wouldn't be reliably encrypted between the two machines, so I'd strongly recommend a VPN.
Simple googling gives me http://www.goodsync.com/ which looks to be about $30 and may solve your problem, but I haven't used it.
If anyone running Windows 10 comes across this post and is encountering the CANT_LOCATE_MAKEMKVCON
error message, check if you have any software listed as BLODA and close it. In my case it was MacType.
Cygwin maps your actual Windows paths to UNIX-like paths.
https://cygwin.com/cygwin-ug-net/using.html#using-pathnames
There's no actual Windows path associated with // (which is really just the same as /, FYI), so you can't start Windows apps there.
Thank you!
When I looked at src/auto/config.log I saw an error message saying that "lintl" couldn't be found. Installing libintl-devel from the Cygwin repo fixed the problem.
libintl-devel Cygwin Package Listing
If you don't have a hex editor at hand, you can grab cygwin from cygwin.com and use standard Unix tools for patching. Open the Cygwin Terminal after a standard installation and use:
sed -i 's/\x8B\x44\x24\x54\x85\xC0\x75\x26/\x36\x8B\x07\x90\x85\xC0\x75\x26/g' "/cygdrive/c/Program Files (x86)/steam/steamapps/common/Cyberpunk 2077/bin/x64/Cyberpunk2077.exe"
After that, just type exit. When you reopen the Cygwin Terminal, press up to go back in your command history to get exactly the same command back. This should help you if the game updates and you need to reapply the patch.
Cygwin's LS accepts windows paths, but BASH and other Linux tools don't. You need to use the Linux path to your windows files which are by default accessible through the cygdrive folder at the root of your drive.
E.G:
$ '/cygdrive/c/Windows/Notepad.exe'
You can also do this
$ $(cygpath -u 'C:\\Windows\\Notepad.exe')
Reading material:
Chapter 3. Using Cygwin (google.com)
cygpath - Cygwin cygwin.com › cygwin-ug-net › cygpath
​
Hope that helps!
You should be able to search for, and install, this package via cygwin.
https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fcygwin32-gcc-g%2B%2B%2Fcygwin32-gcc-g%2B%2B-7.3.0-1&grep=gcc
git bash is a version of a Cygwin ( https://cygwin.com ) shell with some git defaults set up in it. It isn't a separate operating system - it just translates what would be posix system calls into windows system calls.
git bash on Windows still uses the windows name resolution. The windows hosts.txt file is in c:\Windows\System32\Drivers\etc\hosts
You should consider getting a proper Cygwin shell (rather than git-bash - there are some variations) /r/cygwin , use WSL2 /r/bashonubuntuonwindows , or find some other variation of a linux VM on Windows to use.
> Read The Manual. Used to gently guide a newbie user to the manual page for the tool he's trying to use. The "F" is historical, and was initially added for emphasis. Nowadays it's just plain necessary.
> Read The Manual. Used to gently guide a newbie user to the manual page for the tool he's trying to use. The "F" is historical, and was initially added for emphasis. Nowadays it's just plain necessary.
Looks like you could give cygwin a try.
I haven't used cygwin in I don't know how long, but it may be worth the headache, depending on how many files you're editing.
libxcb appears to be an alternative interface to X11, which does not come out of the box on Windows. It seems, however, that cygwin has it. If you do not have cygwin, I'd suggest installing it, and its version of python, and Pillow into a venv within. Assuming you've done everything correctly, Pillow's install should pick it up. Let us know if it doesn't.
I provide my Gtk3 application written in C99 to M$ windows. https://cygwin.com/ would be a good point to start with.
If you have to use mingw to compile source code, I would recommend to cross compile from GNU+Linux. I experienced that the job was done much faster.
How often is it when the thread title answers the question?
Easily installed via Cygwin (on Windows) or via your usual package mangler.
I just realized I've been in the wrong order of magnitude. 56 GB is absolutely huge. If all you want to do is navigate the data to understand how it's structured, you might be better off extracting the top several thousand rows using something like Unix `head`; you can install it for Windows from cygwin.com.
What you're looking for is a UNIX shell/interpreter, which PowerShell is not. There are a few UNIX shell emulators out there for Windows:
podés usar Cugwin o Windows subsystem for linux.
Traducir eso a batch lleva el doble de código y ya ni me acuerdo como se hace.
just install it. The 2 vulnerabilities I saw listed were in version 1.x and 2.x (3.x is the current). All software has vulnerabilities anyways, seriously your OS has many more than that. (windows + explorer + whatever browser you use)
It's also a matter of how is someone going to run anything against cygwin from outside if you don't start any processes up?
I think you're just freaking out because you've learned a little bit about computers, but not enough to know what's going on. Cygwin has been around for a long time, is used by quite a few people. Either they're really good at laying low or there are no trojans.
For mirrors: it's common to use mirrors for downloads. One way to verify that what you downloaded is the original file (and not some updated/trojaned file) is to check the signature. It's like a checksum of the file, if any byte would be different the checksum won't match the one they print on their main site. They have a link that explains how it works
All three major operating systems are fine to code on. If you're using Windows, I really recommend cygwin (cygwin.com) so you have the GNU command-line tools (bash, vim, emacs, ls, grep and such).
As others have mentioned, WSL is nice to have.
Additionally, I can also recomend cygwin (https://cygwin.com/install.html), its also a great way to get a terminal/shell on windows. Before W10 it was my go-to install on every fresh windows.
I use them both, depending on my usecase.
WSL is nice since you get to use "apt-get". But it lives in its somewhat seperate filesystem and it can get tricky if you want to work on sources checked out on your C:/D: drives, I sometimes experience WSL completely breaking permission flags of windows files, making files/folders not deleteable or appear hidden. If I can stay mostly within the shell, WSL is my choice.
Cygwin plays well with the windows filesystem, but does not come with a way to "apt-get" the packages. There is only so much that is ported and it has to be installed via the cygwin-installer. What's nice about cygwin is, is that it can use the same PATH windows has. I use cygwin paired with developing in Java&Maven with IntelliJ. The project is checked out in windows, my IDE runs in windows and I use cygwin to control various things, but mostly trigger maven from there. When I use WSL for that, there is issues when im editing files in the IDE vs the shell and just costing me time.
cygwin download this should help you.
Also if you have Windows 10 and would want to use the Linux subsystem. You can follow the steps here windows subsystem for Linux. With what you are doing you can just choose Ubuntu or Branch out if you like.
I would go with the second option but mess around and see what you like. Hope this helps
I was talking about this
https://cygwin.com/cygwin-ug-net/highlights.html#ov-hi-perm
> Windows NT includes a sophisticated security model based on Access Control Lists (ACLs). Cygwin maps Win32 file ownership and permissions to ACLs by default, on file systems supporting them (usually NTFS). Solaris style ACLs and accompanying function calls are also supported. The chmod call maps UNIX-style permissions back to the Win32 equivalents. Because many programs expect to be able to find the /etc/passwd and /etc/group files, we provide utilities that can be used to construct them from the user and group information provided by the operating system.
ie how Cygwin emulates Windows "acls" with traditional Linux utilities
Some more basic info
This is one of the reasons to use cygwin over WSL. I find that not being able to edit the linux-side files with Windows apps particularly annoying, so until it gets fixed, I'm using cygwin.
You can update cygwin packages (https://cygwin.com/install.html) and cygwin has a 1.9.4 package for subversion..so should be just a matter of running the installer and updating your cygwin installation.
Downloading subversion yourself shouldn't be needed..cygwin has a proper package manager.
Sorry, I read your other post and though you were already on Linux.
If you're running Windows, pick up a copy of cygwin. Make sure to include gcc when you go through the installation.
Windows 7 is incredibly stable. Not as stable as Linux, but still, incredibly stable.
I've got Cygwin installed under 7, and I love it.
Once you install a nice X server on Windows (I use Xming, one of the few shareware programs I've paid money for), access one machine, access them all! (on a network).
Here's all the bits I used:
The top bar is a custom skin I made which I'll release once I've cleaned it up a bit (set up fonts properly, fixed the start menu not working, etc).
pdfmom is not a standard utility in Cygwin. The groff source package includes pdfmom.pl, but the binary package doesn't include it.
You may have luck bringing this up on the Cygwin mailing list and requesting the groff package maintainer to add pdfmom.
I used to develop for 8 years on Windows only (C#) before I switched the company and got a laptop with Ubuntu installed where I develop backend software with Java. After almost 2 years I think I have a good basis to compare both.
I agree with one thing: The terminal feels a bit better than the default Windows command line. But Cygwin is just one installation away, shouldn't be too much of trouble installing it for someone who tried several Linux distributions?
> I think one of the main reasons why I prefer using Linux for development is because using Git on a Linux terminal is far easier to use than any application I ever tried to use Git on Windows.
Usually I just use Git out of IntelliJ, but also had to do quite some work with Git on the command line... on Windows and on Linux. I think there is literally no difference between using Git command line on Windows or on Linux.
Workspaces are nice, though I rarely need them with 3 screens in front of me. To be honest I didn't even know that Windows 10 had them now, too. But just because I didn't know about it doesn't mean it's not there.
I think I could work just as efficient on Windows, even would save me from some trouble when Linux needs three reboots because I dared to remove the laptop from its docking station and it doesn't want to reconnect to the network anymore. Or when I have to fight with Outlook invitations or the Exchange server in general because of Thunderbird.
The difference between the systems just got smaller and smaller over the years. I think today it's just a matter of personal taste, a matter of the system you develop for and a matter of the systems the company uses.
I'm guessing your goal is to insert <BR> at every line break, not after every sentence, in which case this does the trick:
sed 's|$|<BR>|' /path/to/input-file.txt
If it's really after every sentence, this works:
sed 's|.|.<BR>|' /path/to/input-file.txt
Being able to explain the machine what you want it to do, and not be confined to dumbly pushing buttons in a GUI, is incredibly liberating.[*] You should take up BASH scripting if you want to learn that kind of thing.
On Linux it's all built-in, and installing a Linux system in parallel with your current one is probably the best way to go about it, because the whole system is there is designed around automation and things like these. But if you're a Windows peasant and refuse to see reason, cygwin will give you a usable scripting environment.
Chapter 2 of "Beginning Linux Programming" is a really good introduction to shell scripting, and the book can be found online fairly easily. That's how I learned it.
[*] Example of just how liberating: a couple of months ago I've scanned the top million websites. The script that did it was 6 lines of code plus one more line to run it in parallel as 50 instances, and the entire scan took merely 6 hours.
I know it's not WINE the other way around, but it has all of these: https://cygwin.com/cygwin-api/std-gnu.html https://cygwin.com/cygwin-api/compatibility.html#std-susv4
which,should help make things easier, no? I realize it's still a cross compile, but I would think it would be an easier cross compile at least
I dont know about openssl, i was mainly talking about the c standart library and the rest of the posix-api(linking against cygwin1.dll).
>The Cygwin™ API library found in the winsup subdirectory of the source code is also covered by the GNU GPL (with exceptions; see below). By default, all executables link against this library (and in the process include GPL'd Cygwin™ glue code). This means that unless you modify the tools so that compiled executables do not make use of the Cygwin™ library, your compiled programs will also have to be free software distributed under the GPL with source code available to all.
from the cygwin licensing terms
:) maybe.
but try as i might, windows never runs as smoothly as linux for me. it would be GREAT if it did.
otherwise i LOVE windows. if they fix all these, i'm switching. please! anyone who's listening, help me switch!!!!
Well yeah, but the port number is already hardcoded in so it doesn't really matter. If anyone changes the port number they can change the output too.
Try installing Python/pip and OpenSSL via Cygwin. That should set up all the paths etc.
here's some links
believe all the documentation is in there.
in any case, you paste the rest of the URL right after the second to last slash into the respective script.
https://cygwin.com/ for running BASH scripts on windows (probably need to install a couple commands in this, like curl)
if you read the man pages of curl you can tweak it to go slow/limit connection.
its a BASH script, which is a shell often found in MacOSX and GNU/Linux.
cygwin allows for an emulation of BASH on windows. (make sure to download all the required packages. they should have all of them except curl, which you can find by searching though the package selector ofered by cygwin)
http://www.cyberciti.biz/faq/run-execute-sh-shell-script/
tells you how to execute a shell scripts.
you copy the commands into a text file ending with .sh
for example
read URL
SITE="http://pururin.com"
File=echo ${URL} | sed 's/.*.\///g' | sed 's/\..*//g'
curl -# "${SITE}/thumbs/${URL}" | grep '<li class="I0"' | tr '" ' '\n' | grep ^/view/ | awk -v Z=$SITE '{print 'Z' $0}' | tr '\n' ' ' | xargs curl -# | grep '<img class="b" src="' | tr '"' '\n' | grep '/f/' | awk -v Z=$SITE '{print 'Z' $0}' >> "${File}.txt";
reddit formating killed it , so use the paste bin link. it has all the scripts in it.
#!/bine/bash
signifies the start of a new script
a bunch of blank lines at the end signify the end.
these scripts are sight specific and coded using basic utilities, so they're pretty fast.
i just need to get my collection of lines put together for ehentai.
i dont know about exhentai because it seems kind weird. id have to do a lot of tricking of it.
Ubuntu is essentially a flavor of Linux. Usually recommended as the best distro for newcommers to Linux.
I would be very surprised if you were unable to write C on Windows. If you're just looking to get familiar with a Linux CLI, maybe try cygwin (I know nothing about Cygwin.)
are you downloading from MacOSX or windows? I was refering to the curl utility often found in MacOSX and GNU/Linux. (and usably on windows via https://cygwin.com/).
It'll only download what ever you put between ' '. And thus, unlike a webbrowser, can't be easily exploited, cant have some fake buttons, and does not autorun files.
just a simple way to automate downloading of files, or to make sure you're downloading what you think you are.
(of which i do a lot of)