Just a cat wandering about Tamriel.

  • 0 Posts
  • 79 Comments
Joined 10 months ago
cake
Cake day: May 1st, 2024

help-circle
  • Maiq@lemy.loltoLinux@lemmy.mlAuto Typing Script
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    5 hours ago

    You could write a simple python script using datetime and pyperclip. Datetime would supply the date format and pyperclip to copy that to your clipboard. You could setup a key binding to call the script then [Ctrl + v] to paste.

    I believe all linix distros have python installed OTB.

    There are probably a bash solution but my bash is rubbish.

    Edit:

    The bash solution that has been provided is the best option IMO. I just thought I should provide the code for my solution so you have options. This python script is easily extendable / customizable. All this depends in you installing the python module pyperclip. datetime should be part if the standard python library so you dont have to install it.

    installing pyperclip with pip.

    pip install pyperclip

    The script:

    #!/usr/bin/env python3
    """A simple script to copy a formatted datetime string to the users clipboard"""
    
    import datetime
    import pyperclip
    
    def clipboard_timestamp(initials) -> None:
        """Function to create a formatted timestamp string to users clipboard.
    
        Arguments:
           initials: Uses the provided string during formatting of the timestamp."""
    
        time = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
        pyperclip.copy(f"{initials} {time}")
    
    if __name__ == "__main__":
    
        clipboard_timestamp('ABC')
    

    The above script also adds the hours minutes and seconds to the timestamp. If not needed remove the %H:%M:%S. Dont forget to edit anything that you want like the 'ABC' near the end.

    Save script somewhere. I usually save personal scripts to ~/.local/bin so they are out of the way. I used the name clipboard_timestamp.py Doesn’t really matter as long as you remember the name. Next you have 2 options. You can make the script executable using chmod a+x clipboard_timestamp.py. If you dont want to take this step you will have to tell the shortcut that python is executing the script by prefacing the script’s full path with python like so python ~/.local/bin/clipboard_timestamp.py If you made the script executable you just use ~/.local/bin/clipboard_timestamp.py.

    I use KDE but your system should be similar-ish. in your desktop’s setting’s search for keyboard and you should see something that says something like shortcuts. Add New -> Command or Script. Point this to your newly saved python script /.local/bin/clipboard_timestamp.py. Then you choose the keystroke combination.


  • Maiq@lemy.loltoLinux@lemmy.ml...
    link
    fedilink
    arrow-up
    2
    ·
    7 days ago

    You might want to file a bug report so they can grab some info from you that could help an updater get pushed sooner and help others.

    Very glad you got up and running. Hopefully they will get a better update pushed out soon.



  • Maiq@lemy.loltoLinux@lemmy.ml...
    link
    fedilink
    arrow-up
    1
    ·
    7 days ago

    Hay if the restore works might hold off on doing an update for a few days just too see if kubuntu had pushed a bad update. If they did they did they should fix it pretty quickly when they get a bunch of people with broken systems.





  • Maiq@lemy.loltoLinux@lemmy.ml...
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    7 days ago

    Have you tried making sure network manager is enabled and started?

    sudo systemctl enable NetworkManager

    sudo systemctl start NetworkManager

    From a live USB do you have networking?








  • just trying to understand what I did wrong.

    You might not have done anything wrong.

    There is also the possibility of a bad USB drive or write memory failure. There is lots of things that could go wrong that’s not your fault. Might try a different USB or a different USB port on your machine.

    You might want to try zeroing out the USB, if=/dev/zero. Then you might need to make a new partition table. You can use something like gparted. Or https://linuxconfig.org/how-to-manipulate-partition-tables-with-fdisk-cfdisk-and-sfdisk-on-linux

    You can try GPT or DOS. I dont think it matters.

    Not sure if the ISO will have the partition table so you might want make the new partition table just to be sure the stick defiantly has one. If dd overwrites it from the iso no harm no foul.

    Thats all the troubleshooting steps I can think of right now.


  • Did you make sure that the of is correct? lsblk to make sure.

    If your sure it wrote to the right drive i would make sure that you have a good download. Did you run your checksums?

    I think fedora works with secureboot but you might want to disable it just to see if that is the issue. I believe you can reenable it after install.

    Make sure to go into the bios and boot from external drive/usb.

    Out of 15 years of using dd i have never had a problem.




  • The LWDIS page should have a basic overview of the different distro family’s and maybe a breakdown of their specialty’s or focus. Probably have a breakdown for windows and mac specific easy ways to burn an ISO in the stickie.

    Then people could field questions and guide people to the distro that might suit OP’s needs best instead of sponsoring their favorite distro.

    From there they can go to the individual distros for more complete information and questions. If that distro and their community feels like a fit for their needs I think we could have a better retention rate than what we have been doing.

    The other day I saw one of these which distro posts and most replies were not very helpful and mostly fanboy sponsorships which i don’t think would be very helpful to the OP. But their was one person there patiently and thoroughly answering OPs questions with the best info he could provide. It was tip top! That’s how we grow together!

    I get it, the fanboy thing, I’ve got it bad for arch, endeavour and garuda. Im also the geekiest twat in my town. I don’t really recommend them to people I dont intend to be their IT guy when shit goes wrong. For the most part I recomend distros that have great communities people can draw from. If a newbie goes to the arch forum and hasn’t at least read the docs and researched their problem, provide logs or terminal output they arent getting helped. At least not how they might need. But on the mint, ubuntu, fedora forum’s they can plow through just about any problem with a little hand holding if that’s what they need, and that’s not a bad thing.

    Friendliness, inclusion, understanding of the users personal needs, computer usage and goals is the way to keep people and expand our linux community IMO.


  • I want linux to be as welcoming as possible to everyone and the newbie question of what distro to use will come up a lot. I dont think it’s helpful in any way to bicker about why my choice in linux is better. We should be giving them the tools to make the best decision for themselves

    What if we built a beginners linux community (Linux, Where Do I Start -> LWDIS) and point to all the distros communities, and on those distro specific communities they had beginner friendly install, setup, rice, maintenance instructions and advice along with a difficulty rating. I don’t know if stickies are a thing here but could be helpful in keeping relevant info on top. This could be a place for fanboys to shine on there favorite distro while keeping the basic inclusive LWDIS community free of bickering about distros that might cause confusion and turn people off.