Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 304 305 [306] 307 308 ... 350

Author Topic: The Generic Computer Advice Thread  (Read 572552 times)

wierd

  • Bay Watcher
  • I like to eat small children.
    • View Profile
Re: The Generic Computer Advice Thread
« Reply #4575 on: May 10, 2021, 08:59:40 pm »

Assuming you have the network stack still, and a machine to communicate with-- YES.


To use a windows computer as the destination/host, you will need the cifs-utils package installed.

Once it is installed, you can mount a remove windows share as if it were a disk.

syntax is like this:

mount -t cifs -o username=[windows share username],password=[user password] //[server]/[share] /mnt/[mountpoint]

For example, with my consumer NAS, I would mount it like this:

mount -t cifs -o username=guest //192.168.0.2/Public /mnt/cifs

I could then copy everything to /mnt/cifs, and it would be physically getting copied to that share.
Logged

coalboat

  • Bay Watcher
    • View Profile
Re: The Generic Computer Advice Thread
« Reply #4576 on: May 10, 2021, 09:38:46 pm »

Thanks, I’ll try this.
Logged

coalboat

  • Bay Watcher
    • View Profile
Re: The Generic Computer Advice Thread
« Reply #4577 on: May 11, 2021, 09:24:11 am »

I get the new usb stick now. How do I put files in it? I can’t see it in home directory.
Logged

wierd

  • Bay Watcher
  • I like to eat small children.
    • View Profile
Re: The Generic Computer Advice Thread
« Reply #4578 on: May 11, 2021, 05:37:03 pm »

Hang on-- let me dig out my linux box, and take some screenshots of this process.
Logged

coalboat

  • Bay Watcher
    • View Profile
Re: The Generic Computer Advice Thread
« Reply #4579 on: May 11, 2021, 07:51:03 pm »

I probably can’t see images on imgur. Just what commands to use is good enough.
Logged

Foxite

  • Bay Watcher
    • View Profile
Re: The Generic Computer Advice Thread
« Reply #4580 on: May 12, 2021, 04:37:16 am »

Can anybody here who has experience with building NAS servers, give me some advice on this build? This is pretty much the first time I build a proper server, and I would like to know if there's any pitfalls I'm about to encounter, or if cheaper/better alternatives exist.

https://tweakers.net/gallery/606715/wenslijst/?wish_id=2695910

Forgive the Dutch website, but all the necessary info is there. I wasn't able to find some of the parts on pcpartpicker.com. If you click on an item and then click on the tab that says "Kenmerken" you'll be taken to the specs of the item, which is mostly language-agnostic technical specifications. In any case you could look up the part names.

Some important requirements I had when designing this build
- ECC ram, which requires support from the motherboard, CPU, and ram itself (though I could probably be convinced that this isn't necessary)
- Raid 10 hdds
- Raid 1 M.2 ssds (which necessitates the use of identical drives and thus eliminates motherboards which have two m.2 ports with distinctive interfaces, for example one with SATA and the other with PCIe)
- Two ethernet ports (because my network is segmented and I want this thing to provide its services to two segments at once)
- No hyperthreading
- It must be quiet because it will probably be running in my bedroom until I move. The loudest component is the 18db psu, hdds are also very quiet according to the ~160 reviews

Its purposes include:
- Database server (Postgres and Prometheus)
- Mail storage backend (several mail servers will be using its NFS mount as the location for storing mails)
- Kubernetes, docker registry, git server, nuget repository, backup archive, and of course just storing my files.
Logged
The best way to demonstrate it to him is take a save of 40 year old fortress with 150 dwarves in it on a good sized embark with a volcano that just breached the circus and install it on his gaming rig and watch it bring his rig to its knees.

Mephisto

  • Bay Watcher
    • View Profile
Re: The Generic Computer Advice Thread
« Reply #4581 on: May 13, 2021, 10:33:47 am »

I consider myself pretty technical and have my own server on which I host my own stuff but I won't touch email with a ten foot pole. I pay Migadu a pittance to do it for me.

Adding another RAM kit wouldn't do you wrong. That'll get you dual channel and some wiggle room.
« Last Edit: May 13, 2021, 10:38:44 am by Mephisto »
Logged

Foxite

  • Bay Watcher
    • View Profile
Re: The Generic Computer Advice Thread
« Reply #4582 on: May 13, 2021, 10:56:51 am »

I consider myself pretty technical and have my own server on which I host my own stuff but I won't touch email with a ten foot pole. I pay Migadu a pittance to do it for me.

That certainly is not a bad policy. My current email solution (which consists of a raspberry pi that stores all its data on an sd card, which I won't trust for much longer) was a nightmare to set up, but doing it has taught me a lot about how it all works. Even though I would still probably go back in time and tell myself not to do it.

In any case, having a self-hosted email server is useful to me right now because my employer is paying me to get technical experience with SSO systems, so I'm going to build one using IdentityServer4 and then integrate my current email setup with it.

Adding another RAM kit wouldn't do you wrong. That'll get you dual channel and some wiggle room.
Sounds good, I'm pretty sure I'd get away with 8GB but dual channel is definitely its own pro.
Logged
The best way to demonstrate it to him is take a save of 40 year old fortress with 150 dwarves in it on a good sized embark with a volcano that just breached the circus and install it on his gaming rig and watch it bring his rig to its knees.

wierd

  • Bay Watcher
  • I like to eat small children.
    • View Profile
Re: The Generic Computer Advice Thread
« Reply #4583 on: May 14, 2021, 12:41:16 am »

I probably can’t see images on imgur. Just what commands to use is good enough.

That's the thing-- I already kinda did that.  So, I am gonna give some pretty pictures.

First, when you insert the USB stick you want to get the output of dmesg---


As you can see, it detected the insertion of the device, and it has the ID of /dev/sda

Next, we see if it is already mounted. (I manually unmounted it, since I am NOT running at the recovery console, and it automatically mounted it on insertion.)

For that, we use mount piped through grep, with the string "/dev".

This will show us all the actual block devices that are currently mounted.


We clearly see only a single partition, /dev/sda1

Now we need to make a mount point for it, so we can mount it, and make use of it.

Again, the "Traditional" place to do this is /mnt . I will make a folder there called "usb" to serve this purpose. Only root can make folders there, so I am using "sudo su" to become the root user.  Since you are in the recovery console, you are already root.


Now that the mountpoint is created, we need to mount the partition there.. This is done with the mount command, like this:


Now, we want to see how much free space is available in the USB stick.  We do that with the df command.

Spoiler: results of df (click to show/hide)

The last entry in the list is the freshly mounted USB stick at /mnt/usb.  As you can see, it is mostly full. (I use this thing for all sorts of stuff.)

To copy your user files there, you would use either the cp command, or the rsync command.  I prefer to use rsync, because it gives feedback on completion, and can recover from error, or interruption, where cp will not.  It can also do recursive directory copy, can flatten symlinks (useful when copying to a fat volume, that does not support symlinks), etc.

Before I demo this, I am going to create a folder to copy data into, so I can easily clean it up off that thumbstick. ;)


(minor correction, it is --ignore-errors  not --ignore-error.)

After that, you want to ensure that the disk cache is flushed, by issuing sync

sync

then, you unmount the USB stick with umount.

umount /dev/sda1

then you can pull the stick and be on your merry way.







« Last Edit: May 14, 2021, 01:41:55 am by wierd »
Logged

coalboat

  • Bay Watcher
    • View Profile
Re: The Generic Computer Advice Thread
« Reply #4584 on: May 14, 2021, 08:18:35 am »

What is “mount piped”?

I ran “sudo fdisk -l” and it showed:
Device    Boot    Start    End (something else)
/dev/sda1 (something here) FAT32 (LBA)

Is this the stick? What should I do now?

edit:
I somehow managed to mount the usb.

edit:Thanks wierd, I think this is working! 8)
« Last Edit: May 14, 2021, 08:46:46 am by coalboat »
Logged

wierd

  • Bay Watcher
  • I like to eat small children.
    • View Profile
Re: The Generic Computer Advice Thread
« Reply #4585 on: May 14, 2021, 09:32:33 am »

"piped" is a past-tense verb.  Specifically, I am referring to the pipe operator, "|".

The pipe operator is used to direct the output from a program away from standard output, and use it as an input for another program. This process is called "Piping", and the past-tense of that verb is "Piped".

Thus, "mount piped through grep"  means this:

mount |grep

grep is a program that functions as kind of a "filter" for a given expression:  It will return any line sent to it that contains that expression, and discard all the others.

This is useful for things like the output of dmesg, which can be quite... long.  If you are just looking for information about a usb device, piping dmesg through grep with a string like 'usb' on the end, will just give the lines containing the word 'usb', and omit all the others.

dmesg |grep usb

Because a running system can have lots of strange things mounted (mine has several snap containers mounted, and things like that), and we are only interested in actual hardware block devices (things in the /dev folder),  I filtered the content of mount (with no options) through grep, with a filter string of "/dev"

Logged

Starver

  • Bay Watcher
    • View Profile
Re: The Generic Computer Advice Thread
« Reply #4586 on: May 14, 2021, 05:10:39 pm »

Not really the place to put this, as it's not a cry for assistance, but it features a form of computer advice, and I thought it'd amuse the regulars to this thread, more than anyone else I could imagine telling.

I just did a Google search. Got the following at the top of the results:
Quote
It looks like there aren't many great matches for your search

Tip Try using words that might appear on the page that you’re looking for. For example, 'cake recipes' instead of 'how to make a cake'.
Need help? Take a look at other tips for searching on Google.

(For the record, the search was five perfectly cromulent words from 7 to 10 characters long (no 'silly small words', as suggested) that I woudn't be embarrassed to use in a sentence in polite company. No "quotes" to require/prefer exact matching. And, yes, it still had multiple pages of answers - it wasn't a Googlewhack - but all of them pretty much unrelated to what I actually asked for. One of the more interesting (but certainly not relevent) links given was "Topological data analysis of zebrafish patterns", and might be worth a look later for other reasons, but not at all what I was looking for in this case.)

Hey, at least I know I'm unlikely to be reinventing the wheel, on this occasion, if I actually stick with the idle programming problem I'd speculated I might like to explore this weekend if I can avoid being pestered with more mundane duties. ;)
Logged

Arx

  • Bay Watcher
  • Iron within, iron without.
    • View Profile
    • Art!
Re: The Generic Computer Advice Thread
« Reply #4587 on: May 31, 2021, 12:50:30 pm »

Really just a double check here - old GPU, no longer being picked up by BIOS or OS, fans running at full blast most of the time (but occasionally spinning down a bit). That's dead, yeah?
Logged

I am on Discord as Arx#2415.
Hail to the mind of man! / Fire in the sky
I've been waiting for you / On this day we die.

gimlet

  • Bay Watcher
    • View Profile
Re: The Generic Computer Advice Thread
« Reply #4588 on: May 31, 2021, 01:21:26 pm »

Not a great sign, but definitely try a few things first before you just chuck it out - pull it out, disconnect and reconnect all cables, and reseat it in the slot, try a different slot,  try a different power connector off the psu, try it in a different mobo...
Logged

BigD145

  • Bay Watcher
    • View Profile
Re: The Generic Computer Advice Thread
« Reply #4589 on: May 31, 2021, 02:06:09 pm »

GPU heatsink clogged with junk or clean? Is the slot clean as well? Maybe the chip has cracked solder points or desoldered itself.
Logged
Pages: 1 ... 304 305 [306] 307 308 ... 350