Skip to content

Latest commit

 

History

History
142 lines (98 loc) · 4.88 KB

os-linux.md

File metadata and controls

142 lines (98 loc) · 4.88 KB

linux-ubuntu

Table of Contents generated with DocToc

linux problems

ssd/hdd

  1. / - 25gb
  2. swap - same as RAM
  3. /home - all space
  4. ~15% reserved space for ssd

Tips

antergos (arch)

  • sudo rm /var/lib/pacman/db.lck to fix pacman lib error

commands

  • ctrl+h - show hidden files
  • yaourt -Syua - fully upgrade the system

nvidia bumblebee

  • sudo pacman -S bumblebee mesa xf86-video-intel nvidia lib32-nvidia-utils lib32-virtualgl lib32-mesa-libgl nvidia-settings bbswitch
  • sudo gpasswd -a $USER bumblebee - (replace user with your name)
  • optirun --status - check
  • optirun pwd - run

Nvidia

After install of drivers in driver-manager

  • sudo nvidia-settings add panel widget, or go to nvidia settings
  • save a x-server profile to home folder
  • reboot

Nvidia for Ubuntu only (manually install)

  • Nvidia BinaryDriverHowto

  • usual driver install:

    • sudo add-apt-repository ppa:graphics-drivers/ppa
    • sudo add-apt-repository ppa:xorg-edgers/ppa -y xorg-edgers ppa
    • sudo apt-get update
    • sudo apt-get install nvidia-XXX (352, only major) - check latest here
    • or sudo apt-get install nvidia-current - for latest (352)

Unnecessary

In the "device" section of your xorg.conf:

ATI

  • download their latest .run file
  • sudo apt-get install build-essential
  • sudo apt-get install linux-headers-$(uname -r)
  • sudo apt-get install linux-source
  • sudo sh ati-driver-installer-9-3-x86.x86_64.run

shell

  • sudo apt-get clean - clean clears out the local repository of retrieved package files. It removes everything but the lock file from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. When APT is used as a dselect(1) method, clean is run automatically. Those who do not use dselect will likely want to run apt-get clean from time to time to free up disk space.

  • sudo apt-get autoclean - Like clean, autoclean clears out the local repository of retrieved package files. The difference is that it only removes package files that can no longer be downloaded, and are largely useless. This allows a cache to be maintained over a long period without it growing out of control. The configuration option APT::Clean-Installed will prevent installed packages from being erased if it is set to off.

  • sudo apt-get autoremove - is used to remove packages that were automatically installed to satisfy dependencies for some package and that are no more needed.

  • sudo dmidecode --type 0 hardware info

  • other commands

Ubuntu greeter

run: sudo gedit /etc/lightdm/lightdm.conf

add:

[SeatDefaults]
greeter-session=unity-greeter
allow-guest=false
play-ready-sound=false

tweaks

fonts

place new and local fonts to user /home/.fonts/

  • for global ttf fonts sudo mkdir /usr/share/fonts/truetype/newfonts
  • sudo apt-get install ttf-mscorefonts-installer
  • cd && wget http://webupd8.googlecode.com/files/install-google-fonts
  • chmod +x install-google-fonts
  • ./install-google-fonts
  • sudo fc-cache -fv
  • sudo dpkg-reconfigure fontconfig
  • fc-list

virtualbox shared folder

  • sudo adduser xxxxxxx vboxsf
  • and share it on windows for all with full access

Linux Soft