-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
55 lines (44 loc) · 2 KB
/
dev.sh
File metadata and controls
55 lines (44 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
sudo docker system prune -a --volumes
sudo apt update
sudo apt upgrade
sudo apt install task-xfce-desktop blueman xfce4-terminal network-manager-gnome xfce4-power-manager -y
sudo cp ./conf/lightdm/lightdm.conf /etc/lightdm/lightdm.conf -f
sudo cp ./conf/etc/NetworkManager/system-connections/ssid /etc/NetworkManager/system-connections/Valiyamaliyakal.nmconnection -f
sudo apt install docker.io -y
sudo apt install apparmor -y
sudo apt install docker-compose -y
sudo apt install cups –y
sudo apt install chromium -y
#docker-compose up
docker run -d --restart unless-stopped --name db -e POSTGRES_DB=postgres -e POSTGRES_PASSWORD=odoo -e POSTGRES_USER=odoo postgres:15 && docker run -d --restart unless-stopped --name web --link db -p 8069:8069 vuna2004/docker-odoo:16.0-arm64
sudo docker run -d -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest
curl -fsSL https://tailscale.com/install.sh | sh
#Hostname
#cus_id
#ssid_&_pass
#legal acceptance
#chromium kiosk
#wallpappr logo change
#tmp swap turn off
#session turn off
#purge xfc panal
#novnc_test
echo "alias i='sudo apt install '" >> ~/.bashrc
echo "alias p='sudo apt purge '" >> ~/.bashrc
echo "alias ss='sudo systemctl stop '" >> ~/.bashrc
echo "alias sr='sudo systemctl restart '" >> ~/.bashrc
echo "alias bt='sudo bluetoothctl scan on'" >> ~/.bashrc
echo "alias s='sudo shutdown -h now '" >> ~/.bashrc
echo "alias r='sudo reboot'" >> ~/.bashrc
echo "alias e='sudo nano '" >> ~/.bashrc
echo "alias up='cd ../..'" >> ~/.bashrc
echo "alias c='clear'" >> ~/.bashrc
echo "alias h='history'" >> ~/.bashrc
echo "alias ..='cd ..'" >> ~/.bashrc
echo "alias ...='cd ../..'" >> ~/.bashrc
echo "alias g='grep'" >> ~/.bashrc
# Backup original lightdm.conf file
sudo cp /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.bak
# Replace the line containing "autologin-user" with "autologin-user=orangepi"
sudo sed -i 's/^autologin-user.*/autologin-user=orangepi/g' /etc/lightdm/lightdm.conf