Skip to content

Instantly share code, notes, and snippets.

@selcukakarin
Last active January 28, 2023 17:42
Show Gist options
  • Select an option

  • Save selcukakarin/57db339c499f354717acd697c33db836 to your computer and use it in GitHub Desktop.

Select an option

Save selcukakarin/57db339c499f354717acd697c33db836 to your computer and use it in GitHub Desktop.
ubuntu_commands
ubuntu useful commands

Move etmek isterken permission denied sorununu aşağıdaki komut ile çözebiliriz

sudo mv lnkclouderp.bak /var/lib/postgresql

ubuntuda yüklü tüm paketler

dpkg --get-selections

pip freeze

linux'ta requirements.txt oluşturmak için

pip freeze > requirements.txt

linux'ta bir dosyayı bir klasöre kopyalama sırasında permission denied hatası almanın çözümü

sudo nautilus

Vs Code Kurulum

sudo snap install --classic code

Virtual environment install

FOR UBUNTU

sudo apt-get install python3-venv

python3 -m venv myvenv

source myvenv/bin/activate

deactivate
FOR WINDOWS

- önce venv için bir klasor oluştur

- cd blog

- pip install virtualenv 

- virtualenv venv

- venv\Scripts\activate

- deactivate

pip kurulum

sudo apt install python3-pip

ImageField için pillow yüklenmeli

pip3 install Pillow

kaynak

Conda

Kaynak

Hayat kurtaran yeniden ubuntu paketlerini yükleme kodu

sudo apt-get install --reinstall ubuntu-desktop

Ubuntu sistem özellikleri

sudo lshw -html > system_info.html

Jupyter kurulum

sudo apt install jupyter-notebook

Sqlite kurulum

Kaynak

sudo apt-get update
sudo apt-get install sqlite3
sqlite3 --version
sudo apt-get install sqlitebrowser

Typora setup

Kaynak

wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
sudo add-apt-repository 'deb https://typora.io/linux ./'
sudo apt-get update
sudo apt-get install typora
sudo apt remove typora
sudo apt autoremove

wine setup

Kaynak Verify 64-bit architecture. The following command should respond with "amd64".

$ dpkg --print-architecture

See if 32-bit architecture is installed. The following command should respond with "i386".

$ dpkg --print-foreign-architectures

If "i386" is not displayed, execute the following.

$ sudo dpkg --add-architecture i386

Recheck with.

$ dpkg --print-foreign-architectures

Add the WineHQ Ubuntu repository. Get and install the repository key.

$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
$ sudo apt-key add winehq.key

Add the repository.

$ sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'

Update the package database.

$ sudo apt update

Install Wine

$ sudo apt install --install-recommends winehq-stable

Verify the installation succeeded.

$ wine --version

remove from dpkg

sudo dpkg --remove-architecture i386
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment