Code Monkey home page Code Monkey logo

install-linux's Introduction

install linux

Softwares to install on Linux with just one command

Usage

Just run:

Ubuntu (Debian like):

bash -c "$(wget -O - https://raw.githubusercontent.com/fdaciuk/install-linux/master/install.sh)"

Apricity (Arch Linux like):

bash -c "$(wget -O - https://raw.githubusercontent.com/fdaciuk/install-linux/master/apricity-install.sh)"

To install some softwares, you will need yaourt.

Edit your /etc/pacman.conf, adding this lines:

[archlinuxfr]
Server = http://repo.archlinux.fr/$arch

After that, update the system:

sudo pacman -Sy

If yaourt is not installed, install it:

sudo pacman -S yaourt

Then, use yaourt -S to install any package ;)


Softwares that will be installed:

  • XSel
  • SMB Client
  • HTop
  • OpenSSH Server
  • S3 CMD
  • ZSH
  • Terminator
  • Curl
  • Vim (Gnome)
  • KeePassX
  • VLC
  • Git
  • PlayOnLinux
  • Chrome
  • Docker
  • Dropbox
  • Diffmerge
  • Skype
  • Strem.io
  • Simple Screen Recorder
  • NVM
    • Nodemon
  • Apache 2
  • MySQL
  • PHP
  • PHPMyAdmin
  • WP-CLI
  • Composer
  • Redis Server
  • OH My ZSH
  • Heroku Toolbelt
  • MongoDB

Enjoy it ;)

Other softwares to install

After Install

Configure GIT:

git config --global user.email "your@email"
git config --global user.name "Your name"
git config --global merge.tool meld // Install meld first with `sudo apt install meld`
git config --global pull.rebase true // always rebase when "pull" instead of merge
git config --global init.defaultbranch main // make "main" the default branch for new projects

Generate SSH Keys (or copy, if you already have one):

ssh-keygen -t rsa -b 4096 -C "your@email"

# Try
ssh -T [email protected]
ssh -T [email protected]

Generate GPG Keys:

Then, just commit using git commit -S =)

Install Top Icons (Gnome Shell)

https://github.com/phocean/TopIcons-plus

Install fonts

Consolas:

fonte: http://ssup2.iptime.org/wiki/Ubuntu_Consolas_Font_Install

Source Code PRO:

bash -c "$(wget -O - https://gist.githubusercontent.com/fdaciuk/8b3269a3d797ee723672/raw/c8344f9cd4f91a8ae69535c833253ae87ef86d5b/sourcecodepro.sh)"

Useful commands

Auto mount a partition:

Add entry on your /etc/fstab file:

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/sdaX       /media/storage  ext4    defaults        0       1

Relase idle memory

sudo sysctl -w vm.drop_caches=3

Update swappiness (how much percent of memory should be in use before using swap?)

To set swappiness to 10% (instead default of 60%):

sudo sysctl vm.swappiness=10

Then, restart the system or run clear swap commands (see below).

Clear swap

sudo swapoff -a
sudo swapon -a

Removing dpkg package

sudo dpkg -r <package>

Stop services from startup without remove

sudo update-rc.d -f <service> remove

Check which services are running

service --status-all

Clone an installation

After boot from a Live USB, run on terminal:

dd if=/dev/sdb3 of=/dev/sda3 status=progress

Where sdb3 is the origin, and sda3 is the destination.

After that, run:

sudo mount /dev/sda3 /mnt 

Where sda3 contains the recently copied boot and root partitions.

sudo mount --bind /dev/ /mnt/dev/
sudo mount -t /proc none /mnt/proc
sudo chroot /mnt
# note this is `sda` not `sda3`
sudo grub-install /dev/sda 
sudo update-grub
exit

Force Reload audio (alsa + pulseaudio)

Run the command:

pulseaudio -k && sudo alsa force-reload

Then, restart the computer.

Use Jack instead of pulseaudio

sudo apt-get install qjackctl pulseaudio-module-jack
pactl load-module module-jack-sink
pactl load-module module-jack-source
pactl set-default-sink jack_out # Or open Sound Configuration and select "Jack"

Flatpak Permissions

To give permissions for a flatpak app to access everything that is in the host, just run:

sudo flatpak override ApplicationIDHere --filesystem=host

License

MIT © Fernando Daciuk

install-linux's People

Contributors

fdaciuk avatar caarlos0 avatar frank3427 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.