Skip to content

zrylzfra/linux-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 

Repository files navigation

ARCH LINUX

DOCKER

sudo usermod -aG docker your-user-name
systemctl start docker
sudo chmod 777 /var/run/docker.sock

CHROME_EXECUTABLE

sudo ln -s /usr/bin/google-chrome-stable /usr/bin/google-chrome

BSPWM

mkdir .config/bspwm
mkdir .config/sxhkd
cp /usr/share/doc/bspwm/examples/bspwmrc .config/bspwm/
cp /usr/share/doc/bspwm/examples/sxhkdrc .config/sxhkd/
nano .config/sxhkd/sxhkdrc
cp /etc/X11/xinit/xinitrc .xinitrc
sudo nano .xinitrc
sudo nano /etc/xdg/picom.conf
nitrogen
yay -S polybar pacman-contrib ttf-font-awesome siji-git pulseaudio alsa-utils
mkdir .config/polybar
nano ./config/polybar/config
https://github.com/siduck76/bspwm-dotfiles/tree/main/polybar
nano ./config/polybar/launch.sh

TAIWAN MIRRORS

Server = http://archlinux.ccns.ncku.edu.tw/archlinux/$repo/os/$arch
Server = http://free.nchc.org.tw/arch/$repo/os/$arch
Server = https://free.nchc.org.tw/arch/$repo/os/$arch
Server = http://archlinux.cs.nctu.edu.tw/$repo/os/$arch
Server = http://shadow.ind.ntou.edu.tw/archlinux/$repo/os/$arch
Server = https://shadow.ind.ntou.edu.tw/archlinux/$repo/os/$arch
Server = http://ftp.tku.edu.tw/Linux/ArchLinux/$repo/os/$arch
Server = http://ftp.yzu.edu.tw/Linux/archlinux/$repo/os/$arch
Server = https://ftp.yzu.edu.tw/Linux/archlinux/$repo/os/$arch

OFFICIAL REPO

sudo pacman -S kate konsole netbeans neofetch htop dolphin latte-dock bleachbit gwenview kcalc kdeconnect kdenlive ksysguard okular partitionmanager gparted spectacle qbittorrent libreoffice-still firefox thunderbird ttf-fira-code youtube-dl dart caprine flameshot gamemode mpv zsh-autosuggestions zsh-syntax-highlighting zsh-theme-powerlevel10k zsh-completions linux-lts gnome-keyring zip ark firewalld virtualbox elisa xf86-video-amdgpu noto-fonts-emoji vlc simplescreenrecorder kitty nemo warpinator ark pulseaudio-bluetooth zsh-history-substring-search youtube-dl cmatrix wireshark-qt foliate linux-zen audacious obs-studio

sudo pacman -S gnome

sudo pacman -S php xampp

MULTILIB

sudo pacman -S wine-gecko wine-mono winetricks steam-native-runtime steam wine

LUTRIS

sudo pacman -S xdelta3 lutris zenity python-magic

sudo pacman -S lib32-mesa vulkan-radeon lib32-vulkan-radeon vulkan-icd-loader lib32-vulkan-icd-loader

MISSING FIRMWARE

yay -S aic94xx-firmware wd719x-firmware

AUR

yay -S pamac-aur google-chrome android-studio nodejs-nativefier visual-studio-code-bin zoom ttf-ms-fonts inxi discord_arch_electron etcher-bin android-sdk-platform-tools nohang-git flutter linux-wifi-hotspot scrcpy update-grub spotify spotify-adblock-git downgrade proton-ge-custom-bin shell-color-scripts xampp

yay -S ms-office-online

VIRTUALBOX

sudo pacman -S linux-headers

yay -S virtualbox-ext-oracle

GENYMOTION

yay -S genymotion

sudo vboxreload

XAMPP

sudo xampp start
sudo xampp stop
sudo xampp restart

MANJARO

MIC

avoid-resampling = false
default-sample-rate = 44100

PACKET TRACER

curl -s https://raw.githubusercontent.com/marcelobaptista/packettracer/master/install_pt.sh | sudo bash

GIT PUSH

Create a new repository on the command line

echo "# myself-html" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/ZyArko/practice.git
git push -u origin master

Push an existing repository from the command line

git remote add origin https://github.com/ZyArko/practice.git
git branch -M master
git push -u origin master

SCRCPY

Installing app/scrcpy to /home/apple/aur/scrcpy/pkg/scrcpy/usr/bin
Stripping target 'app/scrcpy' using strip.
Installing server/scrcpy-server to /home/apple/aur/scrcpy/pkg/scrcpy/usr/share/scrcpy
Installing /home/apple/aur/scrcpy/src/scrcpy-1.16/app/scrcpy.1 to /home/apple/aur/scrcpy/pkg/scrcpy/usr/share/man/man1

GAMEMODE

systemctl --user enable gamemoded

POWERLEVEL10K

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc

SQL SERVER

clone the mssql-sqlserver, msodbcsql , mssql-tools
activate the license
12345 #administrator password
systemctl enable mssql-server # start for the mean time.
systemctl enable mssql-server # start on boot #dont sudo
systemctl enable mssql-server # status
sqlcmd #list of commands
use mssql server in vs code

PACMAN MIRRORS

sudo pacman -R package_name

-R to remove the application

sudo reflector --latest 5 --sort rate --save /etc/pacman.d/mirrorlist

ARCH

sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu

MANJARO

pacman-mirrors --get-branch

GET BRANCH

sudo pacman-mirrors --continent && sudo pacman -Syyu

COUNTRY REPO

sudo pacman-mirrors --geoip && sudo pacman -Syyu

COUNTRY REPO

sudo pacman-mirrors --country all --api --protocols all --set-branch stable && sudo pacman -Syyu

RESET MIRRORS

YAY

yay package_name

search the package name in aur

yay -Ss package_name

search the package name both aur and pamac

yay -S package_name

install package

yay -Sua

update

yay -S package name

update

OH MY ZSH GIT

/usr/share/oh-my-zsh/tools/install.sh
You have to execute 'cp /usr/share/oh-my-zsh/zshrc ~/.zshrc' to use it add zsh-theme-powerlevel10k ZSH_THEME="powerlevel10k/powerlevel10k" add plugins=git zsh-autosuggestions zsh-syntax-highlighting

TLP

systemctl status tlp

sudo tlp-stat

Notice: tlp.service is not enabled -- invoke "systemctl enable tlp.service" to correct this!
Notice: tlp-sleep.service is not enabled -- invoke "systemctl enable tlp-sleep.service" to correct this!
Notice: systemd-rfkill.service is not masked -- invoke "systemctl mask systemd-rfkill.service" to correct this!
Notice: systemd-rfkill.socket is not masked -- invoke "systemctl mask systemd-rfkill.socket" to correct this!

GIT

sudo nano /etc/makepkg.conf # to enabling parallel compiling on your system to improve the compiling speed
CTRL + W, you can search for a term MAKEFLAGS then hit enter.
The variable $(nproc) will define a number of available threads in your processor automatically.

INSTALL GIT REPOSITORY

ls
cd spotify
check PKGBUILD

makepkg -si or -sia or -sirc

to compile and install the program

UPDATE GRUB

grub-mkconfig -o /boot/grub/grub.cfg

INTRO IN ARCH

dont add plasma-application
add konsole, kate, cronie and timeshift, to setup first

WINE

Run 'systemctl restart systemd-binfmt' in order to make the wine binfmt available on your system.

VIRTUALBOX

===> You must load vboxdrv module before starting VirtualBox:
===> # modprobe vboxdrv
sudo vboxreload # reboot virtualbox module to the kernel
https://wiki.manjaro.org/index.php?title=Virtualbox //virtualbox installation

OPENSDK

Configuring java-runtime-common...
For the complete set of Java binaries to be available in your PATH,
you need to re-login or source /etc/profile.d/jre.sh
Please note that this package does not support forcing JAVA_HOME as former package java-common did
Configuring jre-openjdk...
when you use a non-reparenting window manager,
set _JAVA_AWT_WM_NONREPARENTING=1 in /etc/profile.d/jre.sh

WARPINATOR

systemctl start sshd

and then verify 22 is listening with that same netstat command.

WINETRICKS

cd wine

wine bottle

WINEARCH=win32 WINEPREFIX=~/wine/winebottle winetricks

WINEARCH=win32 WINEPREFIX=~/wine/winebottle wine ~/wine/winebottle/drive_c/testprogram.exe

to execute direct into drive c

wine ./setup.exe

to install ms office 2013

ARDUINO

Add yourself to the uucp group to access the serial ports:
sudo usermod -a -G uucp
Please checkout the wiki for further information.

WPS OFFICE

ATTENTION: When you shut down wps, the wpsoffice process may still exist.
You can do 'sudo chmod -x /usr/lib/office6/wpsoffice' to fix it. But
this might bring you problem with signing in.

FREE OFFICE

035316509684 //Free Office Product Key

WEBDEV SERVE FOR DART

export PATH="$PATH":"$HOME/.pub-cache/bin"

WINE

Run 'systemctl restart systemd-binfmt' in order to make the wine binfmt available on your system.

FIREWALLD

systemctl start firewalld # start the service for the mean time
systemctl enable firewalld # enable the service to auto-start at boot time
systemctl status firewalld # view service status

XAMPP

XAMPP is now installed below the /opt/lampp directory
To start, stop or restart XAMPP simply call the command:
lampp {start, stop, restart} or xampp {start, stop, restart}
Then you can check that everything really works,
Just enter the following URL at your web browser: http://localhost

COMMANDS

inxi -Fxzc0 //specs
sudo pacman -Syu // to update arch base
acpi_backlight=vendor // backlight error in boot
sudo update-grub // to update grub

TOR BROWSER

edit /etc/apparmor.d/local/torbrowser.Browser.firefox and add the following line:
owner /{dev,run}/shm/org.mozilla.. rw,
Also add exactly the same line to /etc/apparmor.d/local/torbrowser.Browser.plugin-container.
Then: sudo systemctl restart apparmor

INSTALLING FLUTTER

groupadd flutterusers
gpasswd -a apple flutterusers
chown -R :flutterusers /opt/flutter
chmod -R g+w /opt/flutter
newgrp flutterusers
export PATH="$PATH":"opt/flutter/bin"

ANDROID STUDIO

sudo chmod -R 777 /opt/android-sdk

DEBIAN

SNAP

sudo apt update
sudo apt install -y snap
sudo snap install hello-world(name)

GUI Laptop Mode Tools:

sudo lmt-config-gui

XAMPP

XAMPP: // lampp need to access as root folder then exec manager-linux-x64.run
sudo chmod 777 -R /opt/lampp/htdocs
sudo chmod 755 /opt/lampp/phpmyadmin/config.inc.php

COMMANDS IN DEB

sudo apt update // check the updates
sudo apt upgrade // to update deb
sudo apt-get autoclean // You can clean partial packages using a command
sudo apt-get clean // You can auto cleanup apt-cache
sudo apt-get autoremove // You can clean up of any unused dependencies

VIDEO CARD (GPU) MEMORY RAM SIZE

lspci // use string called devices in the specified domain
lspci | grep VGA // or open specific VGA
lspci -v -s 03:00.0 // Raven Rige
neofetch
htop

PERMISSION

sudo chmod -R 777 /home/sixven/camp_sms/inputs //for change the permission of the folder
sudo cp -r (your current folder directory) (file directory of where you want to copy the file) // For example : If you are copying file from downloads to boot folder then type //For copying the files of with permission
sudo cp -r /home/lw/Downloads/sampleImage.png boot/themes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published