Skip to content

Instantly share code, notes, and snippets.

@PH7-Jack
Last active August 17, 2021 11:58
Show Gist options
  • Save PH7-Jack/dba9a318e8ab3b0ee8a67c2ba8b46837 to your computer and use it in GitHub Desktop.
Save PH7-Jack/dba9a318e8ab3b0ee8a67c2ba8b46837 to your computer and use it in GitHub Desktop.
Manjaro TallStack Setup
# Remove apps if not will use
k3b, konversation, thunderbird
# Add sudo password
sudo passwd root
# Set the fastest mirror
sudo pacman-mirrors --fasttrack
# Update your system
sudo pacman -Syu
# Enable AUR, Snap or Flatpak support in pamac settings
# Enable TRIM (SSD only)
sudo systemctl status fstrim.timer
sudo systemctl enable fstrim.timer
sudo systemctl start fstrim.timer
# Reduce swappiness
cat /proc/sys/vm/swappiness
sudo echo "vm.swappiness=10" > /etc/sysctl.d/100-manjaro.conf
if error, edit manually and set value
# Install base-devel
sudo pacman -S base-devel
# Install yay
git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si && cd ..
# Install google chrome
git clone https://aur.archlinux.org/google-chrome.git && cd google-chrome && makepkg -si && cd ..
# Install zsh
sudo pacman -S zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install Node, npm and Yarn
sudo pacman -S nvm
echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.zshrc && source ~/.zshrc
nvm install v16.1.0
npm i -g yarn
echo 'export PATH=$PATH:~/.yarn/bin' >> ~/.zshrc && source ~/.zshrc
# Install VsCode
yay -S visual-studio-code-bin
echo fs.inotify.max_user_watches=524288 | sudo tee \
/etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system
# Install FiraCode
sudo pacman -S ttf-fira-code
add in vscode preferences
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
# Install DBeaver
sudo pacman -S dbeaver
# Install Mysql
sudo pacman -S mysql # select 1
sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
sudo systemctl enable mysqld
sudo systemctl start mysqld
sudo systemctl status mysqld
sudo mysql_secure_installation
if has error in root password, see https://stackoverflow.com/questions/3032054/how-to-remove-mysql-root-password
SET PASSWORD FOR root@localhost=PASSWORD(''); -- MySQL 5.x
SET PASSWORD FOR root@localhost=''; -- MySQL 8.x
# Install PHP 8
yay -S php80 php80-igbinary php80-imagick php80-redis php80-gd php80-fpm
sudo pacman -S php-redis php-gd
sudo nano /etc/php80/php.ini
sudo nano /etc/php/php.ini
uncomment
extension=gd
extension=iconv
extension=mbstring
extension=pdo_mysql
sudo nano /etc/php80/conf.d/redis.ini
sudo nano /etc/php/conf.d/redis.ini
uncomment extension=redis
sudo nano /etc/php/conf.d/igbinary.ini
sudo nano /etc/php80/conf.d/igbinary.ini
uncomment extension=igbinary.so
sudo nano /etc/php80/conf.d/imagick.ini
uncomment extension=imagick
# Install XDebug
sudo pacman -S xdebug
sudo nano /etc/php/conf.d/xdebug.ini
replace all config with this
zend_extension=xdebug.so
xdebug.remote_enable=on
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9003
xdebug.remote_handler=dbgp
xdebug.start_with_request=yes
xdebug.mode=debug,develop
xdebug.log_level=0
# Install Composer
sudo pacman -S composer
echo 'export PATH=~/.config/composer/vendor/bin:$PATH' >> ~/.zshrc && source ~/.zshrc
# Install Laravel
composer global require laravel/installer
# Install Takeout
composer global require tightenco/takeout
# Install Docker
sudo pacman -S docker
sudo systemctl start docker
sudo systemctl enable docker
sudo systemctl status docker
sudo usermod -aG docker ${USER}
reboot # its necessary, dont jump it
# Enable your takeout images
# Install Valet
composer global require cpriego/valet-linux
sudo pacman -S jq xsel
valet install
# Install Slack
yay -S slack-desktop
# Install Zoom
yay -S zoom
# Install PHPCS Fixer
composer global require friendsofphp/php-cs-fixer
# Configure SSH
https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh
# Configure GPG if you need
https://docs.github.com/en/github/authenticating-to-github/managing-commit-signature-verification
# Configure Git
git config --global user.name "name"
git config --global user.email "email@example.com"
Tips
use flameshot to take screenshot
https://github.com/flameshot-org/flameshot
Troubleshooting
Error: Writing login information to the keychain failed with error 'The name org.freedesktop.secrets was not provided by any .service files'.
Solution: https://github.com/MicrosoftDocs/live-share/issues/224
References:
https://itsfoss.com/things-to-do-after-installing-manjaro/
https://averagelinuxuser.com/manjaro-xfce-after-install/#10-enable-trim-for-ssd
https://averagelinuxuser.com/10-things-to-do-after-installing-manjaro/
https://medium.com/tech-notes-and-geek-stuff/install-zsh-on-arch-linux-manjaro-and-make-it-your-default-shell-b0098b756a7a
https://github.com/tonsky/FiraCode/wiki/VS-Code-Instructions
https://forum.manjaro.org/t/howto-install-apache-mariadb-mysql-php-lamp/13000
https://www.linuxtechi.com/install-use-docker-on-arch-linux/
https://cpriego.github.io/valet-linux/
https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/3.0/doc/installation.rst
https://docs.github.com/pt/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
https://docs.github.com/pt/github/getting-started-with-github/setting-your-username-in-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment