Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate blobfuse2 setup for new VM #1575

Open
wants to merge 6 commits into
base: blobfuse/2.4.1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions setupUBN.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This setup script can be used to install all the dependencies required to clone and run the project on Ubuntu machines

!/bin/bash

Run the go_installer script with the parent directory as an argument
./go_installer.sh ../
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can move this script to the setup directory

echo "Installed go"
go version
sudo apt update -y
sudo apt install openssh-server -y
sudo apt install net-tools -y
sudo apt install git -y
sudo apt install gcc -y
sudo apt install libfuse-dev -y
sudo apt install fuse -y
sudo apt install fuse3 -y
sudo apt install libfuse3-dev -y
echo "Installed all dependencies" -y

# Open the file /etc/fuse.conf and uncomment the line user_allow_other
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also add how to install Blobfuse2 which includes configuring the apt repository.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes we shall also add step here to enlist microsoft linux repo for ubuntu and may be install blobfuse2 latest version as part of this as well. This will help you setup syslog filters so that logs can be directed to syslog in a separate file.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, if we can add steps to install secpack that would be great.

sudo sed -i 's/#user_allow_other/user_allow_other/' /etc/fuse.conf
echo "Uncommented user_allow_other in /etc/fuse.conf"

# For not entering password every time on running sudo command, add this line at the end of the
# /etc/sudoers file,
# <user_name> ALL=(ALL:ALL) NOPASSWD:ALL

Loading