Jump to content
To encourage social distancing, you must leave two blank lines at the start and end of every post, and before and after every quote. Failure to comply may result in non-essential parts of the forum closing. Click for more details. ×
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited


This user doesn't have any awards

About kompetenzbolzen

  • Title

Contact Methods

Profile Information

  • Gender
  • Location
  • Interests
    Electronics, Linux, Networking
  • Occupation


  • CPU
    i7 5820k
  • Motherboard
    ASRock X99X Killer
  • RAM
  • GPU
    RTX 2070
  • Case
    NZXT Noctis 450
  • PSU
    Seasonic 650W
  • Display(s)
  • Operating System
    Arch Linux

Recent Profile Visitors

415 profile views
  1. "just work" is what pfsense always did for me, especially since it normally auto-configures an anti-lockout on the LAN interface. Could you provide a bit more info?
  2. Yes not using string functions is always better. since you know the length from recv() or at least know your buffer length, there is no need to rely on potentially dangerous functions. The String is only terminated because the data from the socket is. If your buffer is smaller than the data available, your buffer won't be terminated, as seen here: char *buff = malloc(3); int fd = open("test.txt", O_RDONLY); //test.txt has more than 3B of data in it read (fd, buff, 3); for(int i = 0; i < 3; i++) printf("%x ", buff[i]); free(buff); This outputs only 3 chars and no null termination.
  3. Also i believe recv() returns the number of read bytes. pass that. Please don't use strlen. I beg you. You're just asking for trouble...
  4. foo(char* bar, int barlen); or use strlen() to determine the lenght of a string you are absolutely sure is correctly terminated. Do that only of you can't do it any other way.
  5. I would assume sizeof() cant get the size of an array passed as an argument and thus returns zero as lenght. Remember that since arrays are just fancy notation for pointers, passing arrays does not copy them, it just passes the pointer.
  6. I don't know how nextcloud works exactly, but i think it uses a database for files and just does not show files directly added to the drive.
  7. Try this: sudo chown -R www-data:www-data /mnt/sdb1 sudo chmod -R 0770 /mnt/sdb1 sudo usermod -G www-data -a talaftw You want the directory to be owned by www-data (the user the webserver runs as), but add your user to the group www-data to also be able to access the files
  8. https://en.wikibooks.org/wiki/Linux_Guide I think this serves as a pretty good starting point to get you to know what to google when things don't work. As for your problem: What exactly did you do until know and what does not work exactly?
  9. I would suggest you look up how Linux file permission work. But here's a quick rundown: Files and folders have both an owner an an owner group. Files and folders also have three sets of permissions: 1. What the owner can do 2. what members of owner group can do 3. what everyone else can do Those 3digit numbers work like this: the digits represent seperate sets of permissions (owner,group,everyone) digits are calculated with: +1 for execute permission, +2 for write, +4 fo read. (eg. 7 = 1+2+4 => full access)
  10. No, just run the commands you used to give nextcloud permission and replace the chmod 750 with chmod 770, then run the usermod. What you're doing is setting /mnt/sdb1 to be owned by user www-data and group www-data with chown. If you add your user to the group www-data with usermod, the second set of permissions ( 770 ) will apply to your user because it's in the group www-data.
  11. add your user to the group www-data by using usermod -G www-data -a User Edit: Forgot to mention: you need to allow writes from owner groups with sudo chmod -R 0770 /mnt/sdb1
  12. I use an IBM x3650 m2, tho m3 and m4 are now getting affordable too. Most fo them come with an LSI RAID controller, but only have 2.5" bays. They have a dual socket board with enough memory slots and lots of PCIe. Mine has 2 Gbit ethernet ports with a proprietary expansion to 4 (which you can get really cheap) Also the Dell Poweredge R line and HP ProLiants (DL380 maybe?) from a few years back should reasonably cheap on ebay . Edit: Newer x3650s might be lenovo branded
  13. Everything where you want control. Some examples: -Link aggregation -VLANs for seperating networks on one wire -Quality of service (eg for VOIP) -Routing (on very high end models) -Bandwidth limiting and many more
  14. Hardware seems fine. Be aware that switchable laptop graphics might need some googling, but i heard that POP is pretty good with drivers. Setting up a dual boot is pretty easy for most distributions, they provide an option in the setup. Your PC will then boot the Linux bootmanager (GRUB) which will have windows as a boot option.