Jump to content

TheMarius97

Member
  • Posts

    100
  • Joined

  • Last visited

Reputation Activity

  1. Informative
    TheMarius97 reacted to Shawnsg in Windows 11 in Virt-Manager   
    Hey, I don't usually write guides, but I couldn't find one to follow for setting up Windows 11 in QEMU, so I figured I'll write what I found myself. I did this on Manjaro, but you should be able to do it from any distro. Since I just wrote the steps I got to get it to let me install, I can't promise it'll work flawlessly. If there's any later-on issues, just let me know.
     
    Prerequisites:
    Before starting, you need the following:
    Windows 11 .iso from Microsoft [link] OVMF - you need this for UEFI/secureboot. I used edk2-ovmf from the arch official repos. SWTPM - you need this for TPM emulation. Again, i used swtpm from the arch repos. qemu & virt-manager - if you don't already have these installed, they'll be in your distro's repo, more than likely. virtio - once you have your VM set up, mount the latest image from here to install virtio drivers for things like networking [link] Getting started:
    In Virtual Machine Manager, create a new VM from the top-left corner.
    For step 1, choose local install media.
    For step 2, pick your Windows 11 iso. if it's not in the drop-down, choose it by clicking "Browse... > Browse local". It'll auto-detect the OS as Windows 10, this is fine.
    For step 3, set your memory and CPU cores. the default (4gb & 2 cores) are the minimum for W11, so I set my RAM to 8gb, but you can always change these values later.
    For step 4, make a virtual disk image. The minimum drive size for Windows 11 is 64gb, so it needs to be at least that big.
    For step 5, choose your VM name, and then tick off Customize configuration before install.
     
    Final setup:
    In the overview section, set Firmware to UEFI x86_64: /....../OVMF_CODE.secboot.fd. It has to be secure boot, otherwise Windows 11 won't install. While I was looking into this, I saw some things saying OVMF_CODE.ms.fd instead, if your list has that, that should work as well.

    In boot options, tick off your virtual CD-ROM drive, and then set that as the highest boot priority:
    ->
    Finally, add a virtual TPM module. the defaults (CRB, Emulated, 2.0) should be fine.

     
    once you've done that, you should be all set! hit begin installation in the top-left, and you should be able to install Windows 11 without issue.
    Post-install:
    Once you're in windows, I found that I had to set the DNS manually. Just go to Windows' networking settings and set your preferred DNS server:

     
     
  2. Informative
    TheMarius97 got a reaction from digitaldoughnut in Substringing in Python 3.3   
    Python calls this "slicing". See here: https://stackoverflow.com/questions/663171/is-there-a-way-to-substring-a-string-in-python/663175#663175
     
    Found like so: https://duckduckgo.com/?q=Substringing+in+Python+3.3&ia=qa
  3. Like
    TheMarius97 got a reaction from Nup in Post Linus Memes Here! << -Original thread has returned   
    someone do something with this

  4. Like
    TheMarius97 got a reaction from Tedster in Post Linus Memes Here! << -Original thread has returned   
    someone do something with this

  5. Like
  6. Like
  7. Like
  8. Like
  9. Like
  10. Like
  11. Like
  12. Like
  13. Like
    TheMarius97 reacted to givingtnt in Post Linus Memes Here! << -Original thread has returned   
    gg @LinusTech

  14. Like
  15. Like
    TheMarius97 reacted to Kawaii Besu in Post Linus Memes Here! << -Original thread has returned   
    Let's all hope that Linus' wife doesn't see this, and subsequently ban him from going to every succeeding CES ever again...
  16. Like
  17. Like
  18. Like
  19. Like
    TheMarius97 reacted to FranBunnyFFXII in why are girls never without a boyfriend   
    LOL NO. No Life for women is an outrageous amount of bullshit and retardly stupid irritations.
    First off Bleeding from your genitals EVERY FUCKING MONTH, with Cramps, and emotional swings, and your body pretty much freaking out because you decided to not get pregnant.
    Oh yeah pregnacy! Talk about the pain and misery of not only giving birth but carrying a child INSIDE YOU, as it kicks your guts and bladder and have you seen what Pregnacy does to a womans body? I tears it up, stretches your skin, damages your body and your genitals.
    As a guy all you have to deal with an awkward erection from time to time.
    You don't have to worry about breasts getting in the way, and having to wear bras, or needing tampons and worry about bleeding from a fucking hole in your body every god damned month.

    Guy sleeps with 20 women, hes a fucking champion and a badass, a girl sleeps with 20 men she's a slut and a whore.
    The only reason men pay attention to you if you;re a woman is because he wants to sleep with you, but if you don't want to sleep with him then you're a prude and a bitch.
    You have to work your ass off to be pretty and attractive and everyone comments on how unattractive you are if you don't want to do your hair wear make up and get nice clean and stylish clothes. But if you're a guy you can throw on a tshirt and pants and no one gives a fuck as long as you brush your teeth.
    If you play video games everyone treats you like you're a loser or a girl who can't find a boyfriend or they call you fake or treat you like you're just doing it for male attention.
    People harass you online, guys taunt you and ask about your tits and send you nasty messages about how they think "OH YOU'RE SO HOT FOR PLAYING VIDEO GAMES, I WANNA SLEEP WITH YOU"
    You CONSTANTLY have to prove yourself to EVERYONE even other female gamers to prove you're not just some faker or attention seeker.
    Oh and talk about PCs and people treat you like you're freaking retarded.
    PC modder, builder and geek since I was a little kid, but when people see that im female they treat me like I've never seen a motherboard before until I shove my PC enthusiast credd up their face and one up them with everything I've ever modded and overclocked THEN they treat me like I know what a PC is.
    Wanna be called by your actual gender online like a guy gets to be automatically? HOW DARE YOU WANT TO BE CALLED BY YOUR ACTUAL GENDER ONLINE! STOP ADVERTISING YOUR GENDER, HOW DARE YOU BRING ATTENTION TO THE FACT THAT YOU'RE FEMALE YOU ATTENTION WHORE!
    Take pride in being female the same way a man does? YOU FEMINAZI SEXIST (B word)!
    Talk about female rights anywhere and someone calls you a feminazi and a complainer and that you're just sexist and hate men.
    oh not to mention in most of the world you're not even treated like a person if you're female, you're treated like property, something for a man to own.
    You think being female makes life easier, you're sorely mistaken dude.
    You're so sorely mistaken.
    I'd give up everything to be a man, and happy about my gender.
    Being a woman SUCKS.
  20. Like
    TheMarius97 reacted to Lord Pantaloons in why are girls never without a boyfriend   
    So....you never seen tumblr have you?
  21. Like
    TheMarius97 reacted to kingdorian in The under 100 line challenge!   
    Here it is, its a (very basic) brainf*ck interpreter. The program that is in the current string is Mandelbrot. (brainf*ck program by Erik Bosman)
    .data string: .asciz "A simple brainfuck interpreter\nBy Dorian de Koning\n" brainfuck: .asciz"+++++++++++++[->++>>>+++++>++>+<<<<<<]>>>>>++++++>--->>>>>>>>>>+++++++++++++++[[>>>>>>>>>]+[<<<<<<<<<]>>>>>>>>>-]+[>>>>>>>>[-]>]<<<<<<<<<[<<<<<<<<<]>>>>>>>>[-]+<<<<<<<+++++[-[->>>>>>>>>+<<<<<<<<<]>>>>>>>>>]>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>>+<<<<<<<<<<<<<<<<<[<<<<<<<<<]>>>[-]+[>>>>>>[>>>>>>>[-]>>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]<<<<<<<[->>>>>>>+<<<<<<<]<+<<<<<<<<<]>+++++[-[->>>>>>>>>+<<<<<<<<<]>>>>>>>>>]>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>>+<<<<<<[<<<<<<<<<]>>>>>>>>>[>>>>>>[-<<<<<<->>>>>>]+<<<<<<[->>>>>>->>[-<<<<<<<<+>>>>>>>>]<<<<<<<<[->>>>>>>>+<<<<<<<<<<<<<<<<<[<<<<<<<<<]>>>>[-]+>>>>>[>>>>>>>>>]>+<]]+>>>>>>>>[-<<<<<<<<->>>>>>>>]+<<<<<<<<[->>>>>>>>-<<[-<<<<<<+>>>>>>]<<<<<<[->>>>>>+<<<<<<<<<<<<<<<[<<<<<<<<<]>>>[-]+>>>>>>[>>>>>>>>>]>[-]+<]]+>[-<[>>>>>>>>>]<<<<<<<<]>>>>>>>>]<<<<<<<<<[<<<<<<<<<]>>>>[-]<<<+++++[-[->>>>>>>>>+<<<<<<<<<]>>>>>>>>>]>>>>>->>>>>>>>>>>>>>>>>>>>>>>>>>>-<<<<<<[<<<<<<<<<]]>>>]" outformat: .asciz "%c" informat: .asciz "%c" pointer: .space 1024.text.global main# Printing the program intromain: movq $0, %rax movq $string, %rdi call printf# Setting up values in registers movq $0, %rcx # Setup charpointer movq $pointer, %rbx # Move adress of pointer in %rbxloop: movq $brainfuck, %rdi # Move adress of brainfuck into rax movq (%rdi,%rcx,), %rax # Move the char at the charpointer in rdi call parse # Calling parse jmp loop################################################## Parsing the current caracter ##################################################parse: cmpb $0x3c, %al # Set flags, 0x3c = "<" (ascii) je dpointer # Jump to decrement pointer cmpb $0x3e, %al # Set flags, 0x3e = ">" (ascii) je ipointer # Jump to increment pointer cmpb $0x2b, %al # Set flags, 0x3b = "+" (ascii) je ivalue # Jump to increment cmpb $0x2d, %al # Set flags, 0x3d = "-" (ascii) je dvalue # Jump to decrement cmpb $0x2e, %al # Set flags, 0x2e = "." (ascii) je output # Jump to output cmpb $0x2c, %al # Set flags, 0x3e = "," (ascii) je input # Jump to input cmpb $0x5b, %al # Set flags, 0x3e = "[" (ascii) je jumpf # Jump to jump forward cmpb $0x5d, %al # Set flags, 0x3e = "]" (ascii) je jumpb # Jump to jump back cmpb $0x00, %al je exit ret# Executed if char is <dpointer:movq $brainfuck, %rdinextdpointer: incq %rcx # Increment charpointer subq $8, %rbx # Lower pointer with 8 movq (%rdi, %rcx,),%rax # Load character at charpointer in rax cmpb $0x3c, %al # Check if next char is a < je nextdpointer # If next is < loop again ret # Return # Executed if char is >ipointer: movq $brainfuck, %rdi # Move brainfuck in rdinextip: incq %rcx # Increment charpointer addq $8, %rbx # Adding one to the pointer movq (%rdi, %rcx,),%rax # Move char at charpointer in rax cmpb $0x3e, %al # Compare flags >, rax je ipointer # Loop again if char at charpinter is > ret # Return# Executed if char is +ivalue: movq $brainfuck, %rdi # Move branfuck in rdi movq $0, %r9 # Set r9 to 0nextplus: incq %rcx # Increment the charpointer incq %r9 # Increment r9 movq (%rdi, %rcx,), %rax# Move the char at charpointer in rax cmpb $0x2b, %al # Set compare flags, char at pointer,al je nextplus # If char at charpointer is + loop addq %r9, (%rbx) # Adding the amount of +'s in a row to the pointer ret # Return# Executed if char is -dvalue: movq $brainfuck, %rdi # Move brainfuck in rdi movq $0, %r9 # put 0 in r9nextmin:incq %rcx # Increment the charpointer incq %r9 # Increment r9 movq (%rdi, %rcx), %rax # Move the char at charpointer in rax cmpb $0x2d, %al # Setup compare flags -,al je nextmin # If next char is - loop again subq %r9, (%rbx) # Decrementing the value at the pointer ret # Return# Executed if char isoutput: pushq %rcx movq $0, %rax # Mov $0 in rax movq $outformat, %rdi # Outformat adress in rdi movq (%rbx), %rsi # Mov Rbx in first print par call printf # Calling printf popq %rcx incq %rcx ret# Executed if char is ,input: pushq %rbp # Move base pointer to stack movq %rsp, %rbp # Copy stack pointer to base pointer pushq %rcx subq $8, %rsp # Reserve stack space leaq -8(%rbp), %rsi # Load adress movq $informat, %rdi # Move the first parameter movq $0, %rax # Specify scanf memory storage adress call scanf # movq -8(%rbp), %rsi # Second argument, the number movq %rsi, (%rbx) popq %rcx incq %rcx movq %rbp, %rsp # Clear local variables from stack popq %rbp # Restore base pointer ret# Executed if char is [jumpf: movq $1, %r9 # Move 1 in r9 (the bracketcounter) cmpq $0, (%rbx) # Setup compare flags je checkn # Jump to search for next bracket if the value at the pointer is 0 incq %rcx # If pointer!=0 increment the charpointer ret # And returncheckn: incq %rcx # Increment charpointer movq (%rdi, %rcx,), %rax# load next char in %rax cmpb $0x5b, %al # Check if char is [ jne notopen # If it is not jump notopen incq %r9 # Else increment r9notopen:cmpb $0x5d, %al # Check if char is ] jne checkn # Loop again if the char=!] decq %r9 # If char=] Decrement r9 cmpq $0, %r9 # If the char is a closing bracket set compare flags 0,r9 (bracketcounter) jne checkn # If r9=!0 loop again ret # return to main# Executed if char is }jumpb: movq $1, %r9 # Move 1 in r9 (the bracketcounter) cmpq $0, (%rbx) # Setup compare flags jne checkp # If the value at the pointer is not 0 search for matching bracket incq %rcx # Increment the charpointer ret # Returncheckp: decq %rcx # Decrement charpointer movq (%rdi, %rcx,), %rax# Move the char at the charpointer in rax cmpb $0x5d, %al # Setup compare flags jne notclose # If char=!] jump to notclose incq %r9 # Increment the bracketcounternotclose: cmpb $0x5b, %al # Setup flags jne checkp # If char=![ loop again decq %r9 # Decrement r9 cmpq $0, %r9 # Setup flags jne checkp # if r9 =! 0 loop again incq %rcx # Increment charpointer (Select char after matching bracket) ret # Return to main\ Its not exactly under a 100 lines (I've a less optimized version under 100 lines) but its close to it...
  22. Like
    TheMarius97 reacted to coen113 in [closed]Two Oneplus One invites to give away(again)   
    so, youre giving away 2 Twos?
  23. Like
    TheMarius97 got a reaction from ixi_your_face in Post Linus Memes Here! << -Original thread has returned   
    Clicked it and switched to my WAN-Show tab waiting for it to load since my internet is really slow. And suddenly there is the really loud audio turning on
  24. Like
    TheMarius97 reacted to H4X3R in WD Red 4TB for 187$ a good deal?   
    It's on the high side, but since you are in switzerland i'd say it's a good deal.
  25. Like
    TheMarius97 reacted to babbaj in The under 100 line challenge!   
    simple C# stuff that that stresses your cpu
    using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Threading; namespace {    class Program    {        static void Main(string[] args)        {            Thread thread1 = new Thread(new ThreadStart(Thread1));            Thread thread2 = new Thread(new ThreadStart(Thread2));            Thread thread3 = new Thread(new ThreadStart(Thread3));            Thread thread4 = new Thread(new ThreadStart(Thread4));            thread1.Start();            thread2.Start();            thread3.Start();            thread4.Start();        }                public static void Thread1()        {            while (true)            {}        }          public static void Thread2()        {            while (true)            {}        }                public static void Thread3()        {            while (true)            {}        }               public static void Thread4()        {            while (true)            {}        }    }}
×