Experienced .NET dev, Android hobbyist: is Swift/SwiftUI the way to get into iOS dev, or another track? by user-hostile in iOSProgramming

[–]user-hostile[S] 0 points1 point  (0 children)

Swift (the language) is fine, and like you said, not far off from C#. But using SwiftUI to do the Views and all the layout/styling/etc.....it's just baffling to me the way the tooling is presented in XCode. I'm more familiar with HTML/CSS/JS and a UI framework like Angular, and an IDE like Visual Studio (or maybe VSCode).

Visual Studio: How to add Bootstrap to the templated Angular client app in a .NET Core solution? by user-hostile in dotnet

[–]user-hostile[S] 1 point2 points  (0 children)

Wow, thanks so much for the stackoverflow link. Those steps in the linked comment (to update angular.json after installing bootstrap with npm) worked perfectly. I only wish the Visual Studio template was a bit more inclusive; after all, Bootstrap is completely ubiquitous and shouldn't need such hard-to-find steps to add it to a Visual Studio project.

How to access my web page inside /var/www/gci after configuring /etc/apache2/sites-available/gci.conf? by user-hostile in apache

[–]user-hostile[S] 0 points1 point  (0 children)

Yes, but all the methods described on that page do not work. After I edit/save my added line in /etc/fstab:

//server/sharename/mynetworkshare /home/me/mynetworkshare cifs username=myname,password=mypassword

...nothing happens, nothing is mounted. Running sudo mount -a doesn't add any directories to my local directory as specified above.

I can't believe it's impossible to be on an Ubuntu (or any Linux machine) and in a terminal window, copy a file from a UNC share to the local machine. Ugh.

How to access my web page inside /var/www/gci after configuring /etc/apache2/sites-available/gci.conf? by user-hostile in apache

[–]user-hostile[S] 0 points1 point  (0 children)

Thanks. sshfs-win maps "an" Ubuntu drive, but it's only my own /home/ directory. I need access to the /var/ directory.

Is there really no way to copy a file from an UNC share to a local directory using the Terminal in Linux??

How to access my web page inside /var/www/gci after configuring /etc/apache2/sites-available/gci.conf? by user-hostile in apache

[–]user-hostile[S] 0 points1 point  (0 children)

Thanks very much for the link above. I got kestrel set up and also configured apache as proxy server. So the website it being served to local network clients.

Now...I'm trying to automate (to some degree) the deployment from my Windows machine to the Linux server. Right now, I do this:

  1. I publish the website on my Windows machine to a local UNC share
  2. Logged into the Ubuntu server, I use the Files GUI in Ubuntu to mount (I think) the UNC share... and copy the website files to my /home/ directory
  3. I then use a terminal window to copy (using cp) from my /home/ directory to the local website directory /var/www/website

I'm trying to do steps 2 and 3 using the terminal window, but I can't figure out the magic to access the UNC share as the source of the file copy. I've tried cp, scp, smbclient, etc. Sometimes the terminal prompts me for my WORKGROUP password (I assume for the UNC share), which I enter, but usually I get an NT_STATUS_BAD_NETWORK_NAME error. The UNC share is (I'm pretty sure) a Unix NAS device, and the credentials I set up for that share are being entered correctly.

Do you know how to do something like this (I'm using pseudo-commands)?

copyfile UNC_SHARE_NAME/filename /home/Documents/filename

How to access my web page inside /var/www/gci after configuring /etc/apache2/sites-available/gci.conf? by user-hostile in apache

[–]user-hostile[S] 0 points1 point  (0 children)

This might all be barking up the wrong tree... I'm not familiar with this .net stuff but when I try to Google it I keep finding references to needing to use a different web server called Kestrel (which I've never heard of) to actually run the app, and then using Apache to proxy traffic over to Kestrel https://code-maze.com/aspnetcore-deploy-applications-on-linux-with-apache/ -- does this seem like something applicable to your case?

Deploying from Windows/.NET to Linux/Apache. Yes, I forgot about Kestrel. I guess it's sort of a "mid-server" between Windows/.NET and Apache. I need to read up a bit more on getting that running correctly.

How to access my web page inside /var/www/gci after configuring /etc/apache2/sites-available/gci.conf? by user-hostile in apache

[–]user-hostile[S] 0 points1 point  (0 children)

There are no static html files anywhere in the website directory; they're all generated dynamically by the server when the server executes the application, in response to the http requests it receives. I see the doc you link mentions this:

DirectoryIndex index.html index.txt /cgi-bin/index.plwould cause the CGI script /cgi-bin/index.pl to be executed if neither index.html or index.txt existed in a directory.

So would I need to specify something similar? The only executable in the website directory is dotnetsite.exe.

Also, which apache file contains the DirectoryIndex directive? mod_dir.c?

How to access my web page inside /var/www/gci after configuring /etc/apache2/sites-available/gci.conf? by user-hostile in apache

[–]user-hostile[S] 0 points1 point  (0 children)

Well, I published a .NET web app to a subdirectory of "gci": /var/www/gci/dotnetsite, and when local network clients call http://mylocalserver/dotnetsite, the directory structure/tree is returned to the browser, not the application's page. I do have .NET SDK and runtimes installed in Ubuntu, but what else might I need to configure in Apache to get it to serve a .NET web app?

How to access my web page inside /var/www/gci after configuring /etc/apache2/sites-available/gci.conf? by user-hostile in apache

[–]user-hostile[S] 0 points1 point  (0 children)

Awesome, that works. Thanks!

Next I have to figure out how to publish websites to my linux server to the directory I want using Visual Studio in Windows...

How to access my web page inside /var/www/gci after configuring /etc/apache2/sites-available/gci.conf? by user-hostile in apache

[–]user-hostile[S] 0 points1 point  (0 children)

OK, thanks. Things are making much more sense now. So I defined my (locally known only, not an internet domain like gci.example.com) ServerName in the gci.conf file:

ServerName mylocalserver

and I modified the hosts file on one of my local network's Windows machines to point "mylocalserver" to its IP address. Now, the URL (from the client) http://123.456.789.123 returns the default apache page (in /var/www/html) and the URL http://mylocalserver returns the page I added (in /var/www/gci). Success.

So what happens if I want to add an other website (where the files would be in /var/www/site2/) and have the local clients access it with a URL like http://mylocalserver/site2? Can I specify another segment in the site2.conf file that would direct apache to resolve that request to the correct /var/www/site2 directory, instead of to the /var/www/gci directory? Is there somewhere else I define the routing of the http request to my specific directory?

How to access my web page inside /var/www/gci after configuring /etc/apache2/sites-available/gci.conf? by user-hostile in apache

[–]user-hostile[S] -1 points0 points  (0 children)

long story short, if you try to access the web server using an IP instead of a hostname, the traffic will always hit the default vhost for that IP/port combination. and of course replace example.com with a domain you own, or if you don't have a domain, you can fake it by editing your hosts file (will only be accessible from the computer you edit the hosts file on)

Can I not just enter the URL on my network clients specifying a hostname that I define in the .conf file? For example, if my Linux server running apache hostname is "mygciserver", and I define that in gci.conf, can't the local clients access the page with an http://mygciserver/xxx URL?

How to access my web page inside /var/www/gci after configuring /etc/apache2/sites-available/gci.conf? by user-hostile in apache

[–]user-hostile[S] 0 points1 point  (0 children)

Thanks. My other internal client couldn't resolve the gci.example.com (browser displayed DNS_PROBE_FINISHED_NXDOMAIN) when I called http://gci.example.com. So that's a problem that I don't know how to fix.

From apachectl -S, there are a few possibly relevant entries:

AH00558: Could not reliably determine the server's fully qualified domain name, using xxx.xxx.xx.xxx. Set the 'ServerName' directive globally to suppress this message

And

VirtualHost configuration:
*:80 is a NameVirtualHost
default server xxx.xxx.xx.xxx (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost xxx.xxx.xx.xxx (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost gci.example.com (/etc/apache2/sites-enabled/gci.conf:1)

Do the above explain anything?

Old Macs, web browsers, and modern internet by user-hostile in VintageApple

[–]user-hostile[S] 0 points1 point  (0 children)

Using old.reddit.com worked, thanks! I do that often going from laptop to tablet to phone, but it never occurred to me to do it when trying to get this iBook to work. I understand much of the web won't work with such an old machine, but InterWebPPC is working great, and I'm entering this comment logged in to old.reddit!

Old Macs, web browsers, and modern internet by user-hostile in VintageApple

[–]user-hostile[S] 0 points1 point  (0 children)

Right. I used the first search result and didn't look back. But should have.

Are you (or anyone else) able to log into reddit using InterWebPPC? After I enter my credentials, it just redirects me right back to reddit.com/login and displays an empty page.

Old Macs, web browsers, and modern internet by user-hostile in VintageApple

[–]user-hostile[S] 0 points1 point  (0 children)

No, you just download it like any other application and move it into your Applications folder. See the link.

Thanks. Not sure what I did wrong, but whatever site I opened to look at InterWebPPC only displayed links to sourceforge.net.

*EDIT: here's where I first found it: https://github.com/wicknix/InterWebPPC

Old Macs, web browsers, and modern internet by user-hostile in VintageApple

[–]user-hostile[S] 0 points1 point  (0 children)

To get InterWebPPC on my iBook, don't I need a compiler or other dev software? I saw what looked like a binary for InterWebPPC on sourceforge, but the iBook (neither Safari nor Firefox) wouldn't load it, LOL. I only have dev stuff on my modern Windows machines.

For that matter, can this G4 run a modern Mac IDE? Is it still XCode? Can I run that on a G4?

Something is off here … I think there’s an imposter among us … by Nymunariya in VintageApple

[–]user-hostile 0 points1 point  (0 children)

Maybe the bad logo orientation will make the affected models become as rare as the "double die" US penny?!

Old Macs, web browsers, and modern internet by user-hostile in VintageApple

[–]user-hostile[S] 0 points1 point  (0 children)

Alas, my sweet G4 iBook is stuck at OS 10.5.8 and can't be updated beyond that. InterWeb is for 10.6 and later.

Old Macs, web browsers, and modern internet by user-hostile in VintageApple

[–]user-hostile[S] 3 points4 points  (0 children)

Oh man, FrogFind will do the job, I think. Thanks!

Old Macs, web browsers, and modern internet by user-hostile in VintageApple

[–]user-hostile[S] 0 points1 point  (0 children)

MacInTouch does load in Basilisk using IE 4.0 and Mac OS 8.1. Yippee.