From c6581121f6fde4631187b3c375bcd43c3462621f Mon Sep 17 00:00:00 2001 From: thorrrr Date: Fri, 15 Mar 2024 09:45:00 +0000 Subject: [PATCH] new virtmanager --- AUR/install-qemu-old.sh | 69 ++++++++++++ AUR/install-qemu.sh | 6 -- .../basic/profiles/Untitled/basic.ini | 102 ------------------ .../obs-studio/basic/scenes/Untitled.json | 1 - .../obs-studio/basic/scenes/Untitled.json.bak | 1 - Personal/settings/obs-studio/global.ini | 72 ------------- 6 files changed, 69 insertions(+), 182 deletions(-) create mode 100755 AUR/install-qemu-old.sh delete mode 100755 Personal/settings/obs-studio/basic/profiles/Untitled/basic.ini delete mode 100755 Personal/settings/obs-studio/basic/scenes/Untitled.json delete mode 100755 Personal/settings/obs-studio/basic/scenes/Untitled.json.bak delete mode 100755 Personal/settings/obs-studio/global.ini diff --git a/AUR/install-qemu-old.sh b/AUR/install-qemu-old.sh new file mode 100755 index 0000000..d37308a --- /dev/null +++ b/AUR/install-qemu-old.sh @@ -0,0 +1,69 @@ +#!/bin/bash +#set -e +################################################################################################################## +# Author : Dale Holden +################################################################################################################## +# +# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK. +# +################################################################################################################## +#tput setaf 0 = black +#tput setaf 1 = red +#tput setaf 2 = green +#tput setaf 3 = yellow +#tput setaf 4 = dark blue +#tput setaf 5 = purple +#tput setaf 6 = cyan +#tput setaf 7 = gray +#tput setaf 8 = light blue +################################################################################################################## + +#tutorial https://www.youtube.com/watch?v=JxSGT_3UU8w + +#https://computingforgeeks.com/install-kvm-qemu-virt-manager-arch-manjar/ + +sudo pacman -Rdd iptables --noconfirm +sudo pacman -S --noconfirm --needed iptables-nft +sudo pacman -S --noconfirm --needed ebtables + +sudo pacman -S --noconfirm --needed qemu-full +sudo pacman -S --noconfirm --needed virt-manager +sudo pacman -S --noconfirm --needed virt-viewer +sudo pacman -S --noconfirm --needed dnsmasq +sudo pacman -S --noconfirm --needed vde2 +sudo pacman -S --noconfirm --needed bridge-utils +#ovmf +sudo pacman -S --noconfirm --needed edk2-ovmf + +#sudo pacman -S --noconfirm --needed spice-vdagent +#sudo pacman -S --noconfirm --needed xf86-video-qxl + +sudo pacman -S --noconfirm --needed dmidecode + +#starting service + +sudo systemctl enable libvirtd.service +sudo systemctl start libvirtd.service + + +echo -e "options kvm-intel nested=1" | sudo tee -a /etc/modprobe.d/kvm-intel.conf + +user=$(whoami) +sudo gpasswd -a $user libvirt +sudo gpasswd -a $user kvm + + +echo ' +nvram = [ + "/usr/share/ovmf/x64/OVMF_CODE.fd:/usr/share/ovmf/x64/OVMF_VARS.fd" +]' | sudo tee --append /etc/libvirt/qemu.conf + +sudo virsh net-define /etc/libvirt/qemu/networks/default.xml + +sudo virsh net-autostart default + +sudo systemctl restart libvirtd.service + +echo "############################################################################################################" +echo "##################### FIRST REBOOT #####################" +echo "############################################################################################################" diff --git a/AUR/install-qemu.sh b/AUR/install-qemu.sh index d37308a..8303a98 100755 --- a/AUR/install-qemu.sh +++ b/AUR/install-qemu.sh @@ -52,12 +52,6 @@ user=$(whoami) sudo gpasswd -a $user libvirt sudo gpasswd -a $user kvm - -echo ' -nvram = [ - "/usr/share/ovmf/x64/OVMF_CODE.fd:/usr/share/ovmf/x64/OVMF_VARS.fd" -]' | sudo tee --append /etc/libvirt/qemu.conf - sudo virsh net-define /etc/libvirt/qemu/networks/default.xml sudo virsh net-autostart default diff --git a/Personal/settings/obs-studio/basic/profiles/Untitled/basic.ini b/Personal/settings/obs-studio/basic/profiles/Untitled/basic.ini deleted file mode 100755 index 580154a..0000000 --- a/Personal/settings/obs-studio/basic/profiles/Untitled/basic.ini +++ /dev/null @@ -1,102 +0,0 @@ -[General] -Name=Untitled - -[Output] -Mode=Simple -FilenameFormatting=%CCYY-%MM-%DD %hh-%mm-%ss -DelayEnable=false -DelaySec=20 -DelayPreserve=true -Reconnect=true -RetryDelay=2 -MaxRetries=25 -BindIP=default -IPFamily=IPv4+IPv6 -NewSocketLoopEnable=false -LowLatencyEnable=false - -[Stream1] -IgnoreRecommended=false - -[SimpleOutput] -FilePath=/home/erik -RecFormat2=mkv -VBitrate=2500 -ABitrate=160 -UseAdvanced=false -Preset=veryfast -NVENCPreset2=p5 -RecQuality=Stream -RecRB=false -RecRBTime=20 -RecRBSize=512 -RecRBPrefix=Replay -StreamAudioEncoder=aac -RecAudioEncoder=aac -RecTracks=1 -StreamEncoder=x264 -RecEncoder=x264 - -[AdvOut] -ApplyServiceSettings=true -UseRescale=false -TrackIndex=1 -VodTrackIndex=2 -Encoder=obs_x264 -RecType=Standard -RecFilePath=/home/erik -RecFormat2=mkv -RecUseRescale=false -RecTracks=1 -RecEncoder=none -FLVTrack=1 -FFOutputToFile=true -FFFilePath=/home/erik -FFExtension=mp4 -FFVBitrate=2500 -FFVGOPSize=250 -FFUseRescale=false -FFIgnoreCompat=false -FFABitrate=160 -FFAudioMixes=1 -Track1Bitrate=160 -Track2Bitrate=160 -Track3Bitrate=160 -Track4Bitrate=160 -Track5Bitrate=160 -Track6Bitrate=160 -RecSplitFileTime=15 -RecSplitFileSize=2048 -RecRB=false -RecRBTime=20 -RecRBSize=512 -AudioEncoder=libfdk_aac -RecAudioEncoder=libfdk_aac - -[Video] -BaseCX=1920 -BaseCY=1080 -OutputCX=1920 -OutputCY=1080 -FPSType=0 -FPSCommon=60 -FPSInt=30 -FPSNum=30 -FPSDen=1 -ScaleType=bicubic -ColorFormat=NV12 -ColorSpace=709 -ColorRange=Partial -SdrWhiteLevel=300 -HdrNominalPeakLevel=1000 - -[Audio] -MonitoringDeviceId=default -MonitoringDeviceName=Default -SampleRate=48000 -ChannelSetup=Stereo -MeterDecayRate=23.53 -PeakMeterType=0 - -[Panels] -CookieId=25DF4A3B2FB75DD2 diff --git a/Personal/settings/obs-studio/basic/scenes/Untitled.json b/Personal/settings/obs-studio/basic/scenes/Untitled.json deleted file mode 100755 index 4118ba9..0000000 --- a/Personal/settings/obs-studio/basic/scenes/Untitled.json +++ /dev/null @@ -1 +0,0 @@ -{"DesktopAudioDevice1":{"prev_ver":503316482,"name":"Desktop Audio","uuid":"42f8d836-5967-4dcf-98a0-93a76df2fdb1","id":"pulse_output_capture","versioned_id":"pulse_output_capture","settings":{"device_id":"default"},"mixers":255,"sync":0,"flags":0,"volume":0.30741775035858154,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"libobs.mute":[],"libobs.unmute":[],"libobs.push-to-mute":[],"libobs.push-to-talk":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}},"AuxAudioDevice1":{"prev_ver":503316482,"name":"Mic/Aux","uuid":"f8a20e82-ff34-4dea-bfab-bbb129ffd95f","id":"pulse_input_capture","versioned_id":"pulse_input_capture","settings":{"device_id":"default"},"mixers":255,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"libobs.mute":[],"libobs.unmute":[],"libobs.push-to-mute":[],"libobs.push-to-talk":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}},"current_scene":"Scene","current_program_scene":"Scene","scene_order":[{"name":"Scene"}],"name":"Untitled","sources":[{"prev_ver":503316482,"name":"Scene","uuid":"26a4b686-25e4-41cd-9b78-9c925324ba7e","id":"scene","versioned_id":"scene","settings":{"id_counter":2,"custom_size":false,"items":[{"name":"Audio Input Capture (PulseAudio)","source_uuid":"efaee535-2934-42c5-9090-50a7ce60ea46","visible":true,"locked":false,"rot":0.0,"pos":{"x":0.0,"y":0.0},"scale":{"x":1.0,"y":1.0},"align":5,"bounds_type":0,"bounds_align":0,"bounds":{"x":0.0,"y":0.0},"crop_left":0,"crop_top":0,"crop_right":0,"crop_bottom":0,"id":1,"group_item_backup":false,"scale_filter":"disable","blend_method":"default","blend_type":"normal","show_transition":{"duration":0},"hide_transition":{"duration":0},"private_settings":{}},{"name":"Wayland output(scpy)","source_uuid":"9bdd7546-4b58-4af2-b169-60c1781ca54e","visible":true,"locked":false,"rot":0.0,"pos":{"x":0.0,"y":0.0},"scale":{"x":1.0,"y":1.0},"align":5,"bounds_type":0,"bounds_align":0,"bounds":{"x":0.0,"y":0.0},"crop_left":0,"crop_top":0,"crop_right":0,"crop_bottom":0,"id":2,"group_item_backup":false,"scale_filter":"disable","blend_method":"default","blend_type":"normal","show_transition":{"duration":0},"hide_transition":{"duration":0},"private_settings":{}}]},"mixers":0,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"OBSBasic.SelectScene":[],"libobs.show_scene_item.1":[],"libobs.hide_scene_item.1":[],"libobs.show_scene_item.2":[],"libobs.hide_scene_item.2":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}},{"prev_ver":503316482,"name":"Audio Input Capture (PulseAudio)","uuid":"efaee535-2934-42c5-9090-50a7ce60ea46","id":"pulse_input_capture","versioned_id":"pulse_input_capture","settings":{"device_id":"alsa_input.usb-RODE_Microphones_RODE_AI-1_3D43D9B7-00.mono-fallback"},"mixers":255,"sync":0,"flags":0,"volume":0.27299398183822632,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"libobs.mute":[],"libobs.unmute":[],"libobs.push-to-mute":[],"libobs.push-to-talk":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}},{"prev_ver":503316482,"name":"Wayland output(scpy)","uuid":"9bdd7546-4b58-4af2-b169-60c1781ca54e","id":"wlrobs-scpy","versioned_id":"wlrobs-scpy","settings":{"output":"HDMI-A-1","show_cursor":true},"mixers":0,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}}],"groups":[],"quick_transitions":[{"name":"Cut","duration":300,"hotkeys":[],"id":1,"fade_to_black":false},{"name":"Fade","duration":300,"hotkeys":[],"id":2,"fade_to_black":false},{"name":"Fade","duration":300,"hotkeys":[],"id":3,"fade_to_black":true}],"transitions":[],"saved_projectors":[],"current_transition":"Fade","transition_duration":300,"preview_locked":false,"scaling_enabled":false,"scaling_level":0,"scaling_off_x":0.0,"scaling_off_y":0.0,"modules":{}} \ No newline at end of file diff --git a/Personal/settings/obs-studio/basic/scenes/Untitled.json.bak b/Personal/settings/obs-studio/basic/scenes/Untitled.json.bak deleted file mode 100755 index 4118ba9..0000000 --- a/Personal/settings/obs-studio/basic/scenes/Untitled.json.bak +++ /dev/null @@ -1 +0,0 @@ -{"DesktopAudioDevice1":{"prev_ver":503316482,"name":"Desktop Audio","uuid":"42f8d836-5967-4dcf-98a0-93a76df2fdb1","id":"pulse_output_capture","versioned_id":"pulse_output_capture","settings":{"device_id":"default"},"mixers":255,"sync":0,"flags":0,"volume":0.30741775035858154,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"libobs.mute":[],"libobs.unmute":[],"libobs.push-to-mute":[],"libobs.push-to-talk":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}},"AuxAudioDevice1":{"prev_ver":503316482,"name":"Mic/Aux","uuid":"f8a20e82-ff34-4dea-bfab-bbb129ffd95f","id":"pulse_input_capture","versioned_id":"pulse_input_capture","settings":{"device_id":"default"},"mixers":255,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"libobs.mute":[],"libobs.unmute":[],"libobs.push-to-mute":[],"libobs.push-to-talk":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}},"current_scene":"Scene","current_program_scene":"Scene","scene_order":[{"name":"Scene"}],"name":"Untitled","sources":[{"prev_ver":503316482,"name":"Scene","uuid":"26a4b686-25e4-41cd-9b78-9c925324ba7e","id":"scene","versioned_id":"scene","settings":{"id_counter":2,"custom_size":false,"items":[{"name":"Audio Input Capture (PulseAudio)","source_uuid":"efaee535-2934-42c5-9090-50a7ce60ea46","visible":true,"locked":false,"rot":0.0,"pos":{"x":0.0,"y":0.0},"scale":{"x":1.0,"y":1.0},"align":5,"bounds_type":0,"bounds_align":0,"bounds":{"x":0.0,"y":0.0},"crop_left":0,"crop_top":0,"crop_right":0,"crop_bottom":0,"id":1,"group_item_backup":false,"scale_filter":"disable","blend_method":"default","blend_type":"normal","show_transition":{"duration":0},"hide_transition":{"duration":0},"private_settings":{}},{"name":"Wayland output(scpy)","source_uuid":"9bdd7546-4b58-4af2-b169-60c1781ca54e","visible":true,"locked":false,"rot":0.0,"pos":{"x":0.0,"y":0.0},"scale":{"x":1.0,"y":1.0},"align":5,"bounds_type":0,"bounds_align":0,"bounds":{"x":0.0,"y":0.0},"crop_left":0,"crop_top":0,"crop_right":0,"crop_bottom":0,"id":2,"group_item_backup":false,"scale_filter":"disable","blend_method":"default","blend_type":"normal","show_transition":{"duration":0},"hide_transition":{"duration":0},"private_settings":{}}]},"mixers":0,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"OBSBasic.SelectScene":[],"libobs.show_scene_item.1":[],"libobs.hide_scene_item.1":[],"libobs.show_scene_item.2":[],"libobs.hide_scene_item.2":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}},{"prev_ver":503316482,"name":"Audio Input Capture (PulseAudio)","uuid":"efaee535-2934-42c5-9090-50a7ce60ea46","id":"pulse_input_capture","versioned_id":"pulse_input_capture","settings":{"device_id":"alsa_input.usb-RODE_Microphones_RODE_AI-1_3D43D9B7-00.mono-fallback"},"mixers":255,"sync":0,"flags":0,"volume":0.27299398183822632,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"libobs.mute":[],"libobs.unmute":[],"libobs.push-to-mute":[],"libobs.push-to-talk":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}},{"prev_ver":503316482,"name":"Wayland output(scpy)","uuid":"9bdd7546-4b58-4af2-b169-60c1781ca54e","id":"wlrobs-scpy","versioned_id":"wlrobs-scpy","settings":{"output":"HDMI-A-1","show_cursor":true},"mixers":0,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}}],"groups":[],"quick_transitions":[{"name":"Cut","duration":300,"hotkeys":[],"id":1,"fade_to_black":false},{"name":"Fade","duration":300,"hotkeys":[],"id":2,"fade_to_black":false},{"name":"Fade","duration":300,"hotkeys":[],"id":3,"fade_to_black":true}],"transitions":[],"saved_projectors":[],"current_transition":"Fade","transition_duration":300,"preview_locked":false,"scaling_enabled":false,"scaling_level":0,"scaling_off_x":0.0,"scaling_off_y":0.0,"modules":{}} \ No newline at end of file diff --git a/Personal/settings/obs-studio/global.ini b/Personal/settings/obs-studio/global.ini deleted file mode 100755 index 8874d97..0000000 --- a/Personal/settings/obs-studio/global.ini +++ /dev/null @@ -1,72 +0,0 @@ -[General] -Pre19Defaults=false -Pre21Defaults=false -Pre23Defaults=false -Pre24.1Defaults=false -MaxLogs=10 -InfoIncrement=-1 -ProcessPriority=Normal -EnableAutoUpdates=true -ConfirmOnExit=true -HotkeyFocusType=NeverDisableHotkeys -FirstRun=true -LastVersion=503316482 - -[Video] -Renderer=OpenGL - -[BasicWindow] -PreviewEnabled=true -PreviewProgramMode=false -SceneDuplicationMode=true -SwapScenesMode=true -SnappingEnabled=true -ScreenSnapping=true -SourceSnapping=true -CenterSnapping=false -SnapDistance=10 -SpacingHelpersEnabled=true -RecordWhenStreaming=false -KeepRecordingWhenStreamStops=false -SysTrayEnabled=true -SysTrayWhenStarted=false -SaveProjectors=false -ShowTransitions=true -ShowListboxToolbars=true -ShowStatusBar=true -ShowSourceIcons=true -ShowContextToolbars=true -StudioModeLabels=true -VerticalVolControl=false -MultiviewMouseSwitch=true -MultiviewDrawNames=true -MultiviewDrawAreas=true -MediaControlsCountdownTimer=true -geometry=AdnQywADAAAAAAeAAAAAAAAADu0AAAP8AAAAAAAAAAAAAAOxAAAD/AAAAAECAAAAB4AAAAeAAAAAAAAADu0AAAP8 -DockState=AAAA/wAAAAD9AAAAAQAAAAMAAAduAAAA3/wBAAAABvsAAAAUAHMAYwBlAG4AZQBzAEQAbwBjAGsBAAAAAAAAAXEAAACgAP////sAAAAWAHMAbwB1AHIAYwBlAHMARABvAGMAawEAAAF1AAABbwAAAKAA////+wAAABIAbQBpAHgAZQByAEQAbwBjAGsBAAAC6AAAAeEAAADeAP////sAAAAeAHQAcgBhAG4AcwBpAHQAaQBvAG4AcwBEAG8AYwBrAQAABM0AAAFEAAAAoAD////7AAAAGABjAG8AbgB0AHIAbwBsAHMARABvAGMAawEAAAYVAAABWQAAAJ4A////+wAAABIAcwB0AGEAdABzAEQAbwBjAGsCAAACYgAAAbgAAAK8AAAAyAAAB24AAALhAAAABAAAAAQAAAAIAAAACPwAAAAA -AlwaysOnTop=false -EditPropertiesMode=false -DocksLocked=false -SideDocks=false - -[Basic] -Profile=Untitled -ProfileDir=Untitled -SceneCollection=Untitled -SceneCollectionFile=Untitled -ConfigOnNewProfile=true - -[Accessibility] -SelectRed=255 -SelectGreen=65280 -SelectBlue=16744192 -MixerGreen=2522918 -MixerYellow=2523007 -MixerRed=2500223 -MixerGreenActive=5046092 -MixerYellowActive=5046271 -MixerRedActive=5000447 - -[PropertiesWindow] -cx=720 -cy=580