ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. Tags
    3. linux
    Log in to post
    • All categories
    • scottalanmillerS

      Installing Laravel on Ubuntu 20.04

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion linux php php 7.4 ubuntu laravel ubuntu 20.04
      28
      3 Votes
      28 Posts
      4k Views
      1

      @scottalanmiller said in Installing Laravel on Ubuntu 20.04:

      @Pete-S said in Installing Laravel on Ubuntu 20.04:

      @Pete-S said in Installing Laravel on Ubuntu 20.04:

      @scottalanmiller said in Installing Laravel on Ubuntu 20.04:

      @Pete-S said in Installing Laravel on Ubuntu 20.04:

      OK, if you are not running apache or nginx, you should install the php-cli package instead.

      So that seems to get installed anyway as a dependency on its own.

      Yes, it does. But by using the php package and not php-cli, you probably got apache installed on your system as well - by dependencies.

      You could find out by running: apt list --installed | grep apache

      Or systemctl status apache2 to see if it's running.

      Even if it was, Laravel uses Artisan's server.

      I'm guessing they are invoking php's built-in webserver.

      Regardless, the point is that if you swap php to php-cli in your install guide you don't get apache and other stuff you don't need.

    • 1

      Patching configuration files

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion linux patching configuration
      12
      0 Votes
      12 Posts
      1k Views
      stacksofplatesS

      Yeah this is bread and butter for config management tools. You'd either use a template for the config or the lineinfile module for Ansible.

      Your template would have something like this:

      PermitRootLogin {{ root_login_enabled }}

      In it and then you can control which servers allow root login with the root_login_enabled variable.

    • 1

      Searching for text in file

      Watching Ignoring Scheduled Pinned Locked Moved Solved IT Discussion linux grep bash
      7
      0 Votes
      7 Posts
      1k Views
      dafyreD

      @Obsolesce said in Searching for text in file:

      @dafyre said in Searching for text in file:

      @Pete-S said in Searching for text in file:

      If you have a text file that looks like this:

      start_folder='/folder1/abc.txt' iterations='123' passphrase='xyz' last_command='invoke' return_value='0'

      How can you pick out just xyz when looking for "passphrase"?

      I know grep will get me the line but what should I use if I want just a part of the line?
      Can it be done in one command or do I have to pipe several together?

      If you the text has a character that would be a good delimiter, you can pipe grep to cut... ie:

      cat myfile.txt|grep "iterations"|cut -d '=' -f 2 Output: '123'

      the -f # is which column you want.

      There may be other ways to do it, but that's the first way I can think of.

      You can specify a file with grep, no need to pipe in from cat.

      This is true! I always seem to get it backwards when I do that, so i just cat $thefile | grep | blah ... Cuts down on frustration, ha ha.

    • scottalanmillerS

      Using a Compose Key to Make Special Characters on Ubuntu 20.04

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion gnome ubuntu gnome tweaks keyboard linux
      1
      0 Votes
      1 Posts
      783 Views
      No one has replied
    • scottalanmillerS

      Install Skyetel Postcards on CentOS 7

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion scale hc3 docker skyetel postcards centos centos 7 vultr linux sms texting
      12
      0 Votes
      12 Posts
      3k Views
      scottalanmillerS

      @marcinozga said in Install Skyetel Postcards on CentOS 7:

      @scottalanmiller said in Install Skyetel Postcards on CentOS 7:

      @marcinozga said in Install Skyetel Postcards on CentOS 7:

      @black3dynamite said in Install Skyetel Postcards on CentOS 7:

      Still preferred fallocate instead of dd to create a swap file?

      dd if=/dev/zero of=/swapfile count=4096 bs=1MiB && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile && echo "/swapfile swap swap defaults 0 0">>/etc/fstab

      Still using swap file? Memory is cheap. I don't recall a server where I created swap partition or swap file.

      Memory is NOT cheap, not at all.

      It is if you own it. If you rent your hardware, yeah, it adds up.

      Even if I own it, throwing away 2-3GB of RAM makes no sense. Now, if I own it, I can easily assign 4GB of RAM then remove it once installed, by why? That's harder to script and still no benefit.

      It's a bad habit to see resources as cheap and so waste them just because you can. Extra memory doesn't improve performance, it hurts it (just the tiniest bit). And it's not free, if you always apply twice as much RAM as you use (or four times, here), that gets costly one way or another. Either you wasted money overspeccing in the beginning, or you are stuck buying more now.

    • scottalanmillerS

      Deploying NodeBB 1.14 on CentOS 8 with MongoDB 4.2

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion nodebb nodebb 1.14 centos linux centos 8 mongodb mongodb 4.2
      7
      0 Votes
      7 Posts
      6k Views
      JaredBuschJ

      @scottalanmiller said in Deploying NodeBB 1.14 on CentOS 8 with MongoDB 4.2:

      By default, NodeBB uses the REDIS NoSQL database,

      By default, in 1.15.x it uses Mongo

      I'm pretty sure it did in the last version I installed also. But that was months ago and I do not recall clearly.

    • 1

      File permission and samba help needed

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion permissions samba smb linux
      8
      0 Votes
      8 Posts
      1k Views
      1

      I ran some test on a VM and created some groups and added some top-level directories for those groups.

      Changed the group on each top-level directories and files below recursively with chown -R.

      Set directories to permission 2770 and files to 0660 with chmod -R.

      Changed smb.conf and added create mask=0660 and directory mask=2770.

      Now new files and directories created on the share have the right permission and belongs to the right group automatically, simply depending on what group the top-level directory belongs to.

      If you're not a member of a group, you will not even see the directories or files that belongs to that group.

      I think this is a good interim solution without too much work. Then moving to onedrive or whatever can be done in the future on a department to department basis.

      Only admin required for adding users is to add them to linux/samba and make sure they become members of the right groups.

      It's also very simple to make a separate share out of the top-level folders if you wanted.

    • EddieJenningsE

      YouTube Month in Review: June 2020

      Watching Ignoring Scheduled Pinned Locked Moved Self Promotion youtube music performance linux rhcsa powershell
      3
      0 Votes
      3 Posts
      860 Views
      EddieJenningsE

      @jmoore said in YouTube Month in Review: June 2020:

      @EddieJennings Good info thanks eddie!

      You're welcome. My RHCSA videos are truly "practice sessions" for me, but the information should be accurate. 🙂

    • scottalanmillerS

      Linux Copy a Disk Over SSH with DD

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion linux dd storage ssh
      7
      4 Votes
      7 Posts
      3k Views
      S

      if you want to also know the progress you can pipe it to pv, like in the below example

      ssh [email protected] "sudo dd if=/dev/nvme0n1" | pv | dd of=/Users/someuser/Desktop/mydisk.img
    • EddieJenningsE

      YouTube Month in Review: May 2020

      Watching Ignoring Scheduled Pinned Locked Moved Self Promotion youtube self promo music performance linux it training rhcsa
      1
      0 Votes
      1 Posts
      518 Views
      No one has replied
    • CCWTechC

      Configuring network settings for Proxmox installs

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion proxmox networking kvm linux
      5
      0 Votes
      5 Posts
      12k Views
      CCWTechC

      TY @black3dynamite

    • CCWTechC

      How to Update HPE Gen 8 Server Firmware on Proxmox / Debian

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion debian proxmox firmware linux hpe
      11
      0 Votes
      11 Posts
      3k Views
      1

      Just install one of the old supported OSes on another drive, reboot and run the firmware update. It's a self extracting executable.

      With HP and Dell, it's their intention to support you by providing an additional layer of management on top of the actual manufacturers product. But you have to be in warranty to be able to leverage that support. If you intend to run equipment longer than the 5 year warranty, don't use Dell or HP or live without any firmware upgrades or support. If you use Dell or HP, replace hardware when it's out of warranty.

      HP Gen8 servers are from 2012-2013 so 7-8 years old and not the best candidates for new installations.

    • scottalanmillerS

      Virt-Manager on Ubuntu 20.04 Getting Cannot Access Storage File Permission Denied

      Watching Ignoring Scheduled Pinned Locked Moved Solved IT Discussion kvm ubuntu linux ubuntu 20.04 virt-manager
      3
      0 Votes
      3 Posts
      13k Views
      scottalanmillerS

      To do that....

      Edit...

      sudo vi /etc/libvirt/qemu.conf

      And set...

      user = "root" group = "root"

      And then...

      sudo systemctl restart libvirtd
    • scottalanmillerS

      LXC / LXD Move Container to New Storage Pool

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion lxc lxd linux containers
      1
      2 Votes
      1 Posts
      910 Views
      No one has replied
    • EddieJenningsE

      YouTube Month in Review: April 2020

      Watching Ignoring Scheduled Pinned Locked Moved Self Promotion self promo youtube rhcsa music performance linux microsoft licensing training
      1
      0 Votes
      1 Posts
      491 Views
      No one has replied
    • scottalanmillerS

      Ubuntu 20.04 Desktop Lag

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion linux ubuntu ubuntu 20.04
      10
      0 Votes
      10 Posts
      7k Views
      scottalanmillerS

      @Seb1982 said in Ubuntu 20.04 Desktop Lag:

      My Dell XPS 13 lags after upgrading to 20.04. All graphics are fine, but the system simply does not respond quickly enough. Sometimes all is fine, but often the pointer is about half a second behind, so is typing.

      And, I assume, it was snappy under the previous version?

      Since the initial issues, mine has stayed responsive.

    • scottalanmillerS

      Installing OpenLiteSpeed on CentOS 8 LOMP Server

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion lomp litespeed openlitespeed centos centos 8 linux
      2
      0 Votes
      2 Posts
      772 Views
      scottalanmillerS

      If you install using the above method, it never tells you the random password assigned to your management interface. But no fear, there is a tool that sets that for you and is super, duper easy.

      cd /usr/local/lsws/admin/misc sh admpass.sh

      It is interactive. And voila.

    • gjacobseG

      cups: Changing URI

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion linux diet-pi raspberry pi 3b+ cups print server dymo label printing
      1
      0 Votes
      1 Posts
      485 Views
      No one has replied
    • OksanaO

      Which to Use: VMware Tools or Open-VM?

      Watching Ignoring Scheduled Pinned Locked Moved Starwind vmware windows linux openvms
      1
      1 Votes
      1 Posts
      186 Views
      No one has replied
    • EddieJenningsE

      YouTube Months in Review: February and March 2020

      Watching Ignoring Scheduled Pinned Locked Moved Self Promotion youtube self promo music education powershell linux training
      2
      0 Votes
      2 Posts
      565 Views
      black3dynamiteB

      @EddieJennings said in YouTube Months in Review: February and March 2020:

      100 Subscribers!

      👍

    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 75
    • 76
    • 6 / 76