Skip to content

oguzkaganeren/my-system-notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 

Repository files navigation

notes

Update Your System

sudo pacman -Syu

Packages I use

sudo pacman -S yay aria2 speedtest-cli telegram-desktop kdenlive inkscape virtualbox fish flameshot neofetch gtop kolourpaint gedit autoconf binutils make gcc pkg-config fakeroot libtool automake patch dbeaver tilix x11-ssh-askpass drawing opera chromium spotify-launcher

Aur Packages I use

yay -S android-studio woeusb vscodium-bin mailspring raven-reader-bin

Change the bash shell to fish

chsh -s /usr/bin/fish
curl -L https://get.oh-my.fish | fish
omf install https://github.com/simnalamburt/shellder

SSD

❗ If you have a SSD, you should enable fstrim.

sudo systemctl enable fstrim.timer

To fix background noise

sudo gedit /etc/tlp.conf

SOUND_POWER_SAVE_ON_AC=1
SOUND_POWER_SAVE_ON_BAT=1

Auto mount other partitions

If you have other partitions(E, D etc.). It can be mounted on the startup.

lsblk -f

The command shows your disks uuid.

sudo gedit /etc/fstab 

Open your fstab config with the command. You should add codes similar to the following example. You should change UUID and /run/media/yourUserName/Partition.

UUID=b336b98e-d0b5-4254-b6aa-9e66f85b0dfc /run/media/oguz/Files ext4 defaults  0 0

❗ If you use manjaro with dual boot, you should close fast-startup,hibarnate on your Windows, otherwise, you have not a write permission for other partitions.

To fix second screen lagging when lid closed

Open /etc/UPower/UPower.conf and then change the line as true

IgnoreLid=true

Also edit /etc/systemd/logind.conf

HandleLidSwitch=ignore

If your headphones is not detected when restart your system[dell-7559]

sudo nano /etc/pulse/default.pa

at the bottom under ### Make some devices default put

set-default-sink 3
set-default-source 3

Touchpad tap-to-click

sudo nano /etc/X11/xorg.conf.d/30-touchpad.conf

Section "InputClass"
Identifier "touchpad"
Driver "libinput"
MatchIsTouchpad "on"
Option "Tapping" "on"
Option "NaturalScrolling" "off"
Option "DisableWhileTyping" "on"
Option "HorizontalScrolling" "on"
Option "Tapping" "on"
Option "TappingDrag" "on"
EndSection

For Android Studio(KVM);

sudo pacman -S virt-manager qemu vde2 ebtables dnsmasq bridge-utils openbsd-netcat
sudo systemctl enable libvirtd.service
sudo systemctl start libvirtd.service

Android emulator sound problem

In /etc/pulse/default.pa change load-module module-udev-detect to load-module module-udev-detect tsched=0

and in /etc/pulse/daemon.conf change ; default-sample-rate = 44100 to default-sample-rate = 48000

Finally restart pulseaudio with pulseaudio -k

DVD/CD Mounting

If you have a external CD/DVD,

sudo pacman -S k3b

Format USB with Terminal

sudo umount /dev/sdxx
sudo mkdosfs -F 32 -I /dev/sdxx

For Developers

Docker

sudo pacman -S docker-compose 
sudo usermod -aG docker oguz 
sudo systemctl start docker
sudo systemctl enable docker

reboot

PostgreSQL

sudo pacman -S postgresql
sudo su postgres -l # or sudo -u postgres -i
initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data/'
exit
sudo systemctl enable --now postgresql.service
sudo pacman -S pgadmin4

ERROR: Node.js version 11.15.0 is no longer supported. sudo npm install -g n sudo n latest

Nvidia Overclock

sudo gedit /etc/X11/xorg.conf

Unlock everything under Nvidia X Server Settings gui including fan control and overclocking. Add this under both “Device” and “Screen” sections.

Option         "Coolbits" "31"

Also, enable TripleBuffer under the “Device” section.

By default TripleBuffer is disabled. This even in some cases can help load times with the driver and games.

Option 	   "TripleBuffer" "True"

To bypass PowerMizer and Adaptive Clocking add this under the “Device” section.

Option         "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x3322; PowerMizerDefaultAC=0x1"
PowerMizerEnable=0x1 turns on PowerMizer.
PerfLevelSrc=0x2222 tells the video card to operate at full on both AC & battery.
PowerMizerDefaultAC=0x1 tells the card to behave as if AC power is connected.

PerfLevelSrc=0x2222 is for desktops.

Source https://forum.level1techs.com/t/nvidia-gpu-settings-guide-for-better-performance/131660

Change Default Java Version

sudo archlinux-java status
sudo archlinux-java set java-10-openjdk

PostgreSQL

sudo pacman -S postgresql
sudo su postgres -l # or sudo -u postgres -i
initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data/'
exit
sudo systemctl enable --now postgresql.service
sudo pacman -S pgadmin4

Tricks

SVG to PNG for all subdirectories

find -name "*.svg" -exec sh -c 'inkscape $1 --export-png=${1%.svg}.png' _ {} \;

Some Errors and fixer

Virtualbox

NS_ERROR_FAILURE (0x80004005) Error

Result Code: 
NS_ERROR_FAILURE (0x80004005)
Component: 
MachineWrap
Interface: 
IMachine {85cd948e-a71f-4289-281e-0ca7ad48cd89}

This is the error and we can fix it with this;

sudo pacman -Syyu
sudo pacman -S virtualbox-host-dkms
sudo pacman -S linux-headers
sudo modprobe vboxdrv
sudo /sbin/rcvboxdrv setup

VirtualBox: Error -610 in supR3HardenedMainInitRuntime!

This is the error.

VirtualBox: Error -610 in supR3HardenedMainInitRuntime!
VirtualBox: dlopen("/usr/lib/virtualbox/VBoxRT.so",) failed: <NULL>

VirtualBox: Tip! It may help to reinstall VirtualBox.

Maybe it can fix with(I didn't try it);

sudo chmod -002 /usr/lib/virtualbox

Or, I fix it with;

sudo chmod -002 /usr

ENOSPC: System limit for number of file watchers reached

sudo gedit /etc/sysctl.conf

add

fs.inotify.max_user_watches=524288

Then

sudo sysctl -p

Stuck at hardware detection

❗ When installing, It can be stuck at hardware detection. You can apply these settings. It does not appear the newer iso.

sudo gedit /lib/calamares/modules/mhwdcfg/main.py

edit it with this;

def run():
    """ Configure the hardware """
    
    mhwd = MhwdController()
    
    # return mhwd.run()
    return None # <- Add this and comment the above line

Fix ERROR: Cannot find the strip binary required for object file stripping.

sudo sudo pacman -S binutils make gcc pkg-config fakeroot

nodejs error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’?

remove nodejs then install nodejs-lts-fermium

sudo pacman -S nodejs-lts-fermium

HDMI unplugged problem

sudo gedit /etc/udev/rules.d/90-mhwd-prime-powermanagement.rules 

Then add to comment these lines:

# Remove NVIDIA Audio devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", ATTR{remove}="1"

Dual-boot Wrong time problem

When you use the dual-boot(windows-linux), then you get wrong time problem. To solve it, you can use below command.

timedatectl set-local-rtc 1 --adjust-system-clock

Useful commands and links

sudo dmesg --level emerg,alert,crit,err,warn https://askubuntu.com/questions/1250040/how-do-i-fix-mds-cpu-bug-present-and-smt-on-data-leak-possible-errors-from-lo

Releases

No releases published

Packages

No packages published