# Solidity development on a tablet

By [chainpioneer](https://paragraph.com/@chainpioneer) · 2024-05-19

---

Steps to setup blockchain development on OnePlus Pad tablet

*   Order OnePlus Pad, wait for the delivery, unpack the tablet, recognize that you don’t have a proper charger, order it and now let’s dive further.
    
*   Connect Bluetooth devices that might help: Keyboard, Mouse, etc.
    

![Keyboard + mouse](https://storage.googleapis.com/papyrus_images/7e43e6ec9eb11b646f17cefebd42443cb4d8aa1168d3011b14877d96826b7f22.jpg)

Keyboard + mouse

*   Download and install [Termux](https://f-droid.org/en/packages/com.termux/). You will have a complete Linux terminal after launching the app.
    
*   Let’s install & launch Ubuntu terminal:
    
        pkg up
        pkg install proot-distro
        proot-distro install ubuntu
        proot-distro login ubuntu
        
    
*   Now when you have Ubuntu shell let’s install foundry
    
        curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
        source "$HOME/.cargo/env"
        curl -L https://foundry.paradigm.xyz | bash
        source .bashrc
        foundryup
        
    
*   Now you have Foundry installed, let’s dive deeper and install remix-ide and it’s dependencies.
    
        apt-get install python3-pip
        curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh
        exit
        proot-distro login ubuntu
        nvm install 20
        npm i -g yarn
        yarn global add @remix-project/remixd nx
        git clone https://github.com/ethereum/remix-project.git
        cd remix-project
        PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true yarn
        yarn run build:production # takes a few minutes
        python3 -m http.server 8081 -d "dist/apps/remix-ide"
        
    
    The last command serves local remix deployment which is available from Chrome
    
*   Now open new Termux session by swapping from left to right and clone some Foundry repo to test
    
        proot-distro login ubuntu
        git clone git@github.com:SunWeb3Sec/DeFiHackLabs.git
        
    
*   Now you can run forge test to test the setup
    
        cd DeFiHackLabs
        forge test --contracts ./src/test/2024-04/Yield_exp.sol -vvv
        
    
*   Next command will share local folder to self-hosted remix-ide
    
        remixd -s /root/DeFiHackLabs/ --remix-ide http://127.0.0.1:8081
        
    

![remixd](https://storage.googleapis.com/papyrus_images/0049f053aa281b5a1153c85c7209ded402c1f7796cf0ef854b32cbabbbf053d1.png)

remixd

*   Now you can simply open [http://127.0.0.1:8081](http://127.0.0.1:8081) in Chrome
    

![self-hosted remix-ide](https://storage.googleapis.com/papyrus_images/cc613c58d9de1d43f94caf5a836a1995257ed047a70d5cf6868342af4f4104f9.png)

self-hosted remix-ide

*   After clicking on **Start coding** you will see this page where you need to choose “_connect to localhost_” in the dropdown
    

![connecting to local project](https://storage.googleapis.com/papyrus_images/df69cb388ddbbba4ea30d8cba45449568b14b93579375162abd117b96ec119ea.jpg)

connecting to local project

*   If everything is OK you will see the local project connected
    

![local project in local remix-ide](https://storage.googleapis.com/papyrus_images/c47edb215dbcf2136913240d09920c58a929c22566e40136f75f38e0f8d255c4.jpg)

local project in local remix-ide

*   Now you have the best development setup on $400 tablet. Enjoy your amazing coding setup!
    

![it compiles](https://storage.googleapis.com/papyrus_images/06346dd21cfccf4c14e141edcc621e281dd779abaa3b51bb190f19b8083b9db4.jpg)

it compiles

---

*Originally published on [chainpioneer](https://paragraph.com/@chainpioneer/solidity-development-on-a-tablet)*
