Skip to content

Instantly share code, notes, and snippets.

@cesc1989
Last active May 19, 2024 03:10
Show Gist options
  • Save cesc1989/5f538428d143d8e5427f to your computer and use it in GitHub Desktop.
Save cesc1989/5f538428d143d8e5427f to your computer and use it in GitHub Desktop.
Get Linux distro in a ready-to-work state with this bash script
#!/bin/bash
# Update system
echo "Updating system and installing new packages"
sudo apt-get update
sudo apt-get upgrade
# Install dependencies and utilities
echo "Install utilities"
sudo apt-get -y install rar unrar zip unzip
# Install Git
echo "Installing git"
sudo apt-get update
sudo apt-get -y install git
# Install VLC player
echo "Installing VL Player"
sudo apt-get -y install vlc
# Install Sublime Text 4
echo "Installing Sublime Text 4"
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/sublimehq-archive.gpg > /dev/null
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install sublime-text
# Install chruby
echo "Installing chruby"
wget https://github.com/postmodern/chruby/releases/download/v0.3.9/chruby-0.3.9.tar.gz
tar -xzvf chruby-0.3.9.tar.gz
cd chruby-0.3.9/
sudo make install
# Install ruby-install
echo "Installing ruby-install"
wget https://github.com/postmodern/ruby-install/releases/download/v0.9.3/ruby-install-0.9.3.tar.gz
tar -xzvf ruby-install-0.9.3.tar.gz
cd ruby-install-0.9.3/
sudo make install
# Install NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
echo "All done"
@cesc1989
Copy link
Author

@cesc1989
Copy link
Author

Which one: dist-upgrade or upgrade?

Answer in AskUbuntu

Personal note: Next time I try eOS, use apt-get upgrade instead of apt-get dist-upgrade

Which version of VirtualBox to use?

I believe everytime I've used v4.3.30, I haven't been able to use Vagrant as usual. Better try earlier versions.

In eOS, using mentioned VBox version gave me error

There was on error while executing VBoxManage, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below Command: ["hostonlyif", "create"]

which has many solutions for MacOS but couldn't find anything for elementary os. link

For Elementary OS(Ubuntu) there's the command sudo modprobe vboxnetadp but when I issued it in console, it was too late and didn't help(or didn't help at all).

@cesc1989
Copy link
Author

More info on TLP

Web UPD 8

@cesc1989
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment