简体中文 | English
This project is a fork based on Oneinstack, integrating many software and development environments, suitable for users who prefer Ubuntu Desktop system for development.
cd /opt
git clone git@github.com:yangliuan/ubuntu-development-start.git ubdevenv
Modify the configuration file "options.conf" by changing the "run_user" and "run_group" to your own user, custom directory, and commonly used software.
"versions.txt" is a configuration file for software versions.
sudo ./install.sh custom parameter install
sudo ./uninstall.sh custom parameter uninstall
Run the command "sudo ./install_ubsoft.sh" to install common software for Ubuntu.
Run the command "sudo ./install_devbase.sh" to install the development environment.
Run the command "sudo ./install_devtools.sh" to install development tools.
Run the command "sudo ./devaddons.sh" to install development components.
Run the command "sudo ./switch_env.sh" to switch environments. This command can be used to switch PHP versions, PHP extensions, Composer versions, Composer mirrors, and Nginx distributions.
sudo ./install_ubsoft.sh
################################################################################
# Development environment for Ubuntu 22.04 desktop #
# Install Software #
################################################################################
Do you want to remove default installed software? [y/n](n):
Do you want to install input method? [y/n](y):
Please select input method:
1. Install googlepinyin
2. Install sougoupinyin
3. Install baidupinyin
Please input a number:(Default 1 press Enter)
Do you want to install baidunetdisk? [y/n](y):
baidunetdisk already installed!
Do you want to install chrome? [y/n](y):
chrome already installed!
Do you want to install deepinwine? [y/n](y):
deepinwine_flag already installed!
...
sudo ./install_ubsoft.sh --input_method_option 2 --baidunetdisk --chrome --deepinwine --dingtalk --linuxqq --feishu --flameshot --indicator_sysmonitor --lantern --neteasy_cloudmusic --qqmusic --peek --qv2ray --sunlogin --theme_tools --bilibili_video_downloader --wps --conky --custom
#switch php extension
sudo /opt/ubdevenv/switch_env.sh --php_extension
#######################################################################
Switch Develop Environment
#######################################################################
0 /usr/local/php/etc/php.d/event.ini
1 /usr/local/php/etc/php.d/fileinfo.ini
2 /usr/local/php/etc/php.d/imagick.ini
3 /usr/local/php/etc/php.d/redis.ini
4 /usr/local/php/etc/php.d/swoole.ini
5 /usr/local/php/etc/php.d/disable/opcache.ini
6 /usr/local/php/etc/php.d/disable/pgsql.ini
7 /usr/local/php/etc/php.d/disable/xdebug.ini
8 /usr/local/php/etc/php.d/disable/yasd.ini
Please input a number to enable or disable php extension:(input example '0 1 2')0 4
event.ini disable success
swoole.ini disable success
Modify the values of snap_custom_packages and apt_custom_packages variables in options.conf configuration file.
sudo ./install_ubsoft.sh --custom
- LEMP/LAMP/LNMP/LNMPA/LTMP(Linux, Nginx/Tengine/OpenResty, Apache Httpd, MySQL/MariaDB/Percona, PHP, JAVA)
- Providing a plurality of devbase/database versions (MySQL-8.0, MySQL-5.7, MySQL-5.6, MySQL-5.5, MariaDB-10.5, MariaDB-10.4, MariaDB-10.3, MariaDB-5.5, Percona-8.0, Percona-5.7, Percona-5.6, Percona-5.5, PostgreSQL, MongoDB Sqlite)
- Providing multiple PHP versions (PHP-8.2, PHP-8.1, PHP-8.0, PHP-7.4, PHP-7.3, PHP-7.2, PHP-7.1, PHP-7.0, PHP-5.6, PHP-5.5, PHP-5.4, PHP-5.3)
- Provide Nginx, Tengine, OpenResty, Apache and ngx_lua_waf
- Providing a plurality of Tomcat version (Tomcat-10, Tomcat-9, Tomcat-8, Tomcat-7)
- Providing a plurality of JDK version (OpenJDK-8, OpenJDK-11)
- According to their needs to install PHP Cache Accelerator provides ZendOPcache, xcache, apcu, eAccelerator. And php extensions,include ZendGuardLoader,ionCube,SourceGuardian,imagick,gmagick,fileinfo,imap,ldap,calendar,phalcon,yaf,yar,redis,memcached,memcache,mongodb,swoole,xdebug,yasd_debug,event,parallel,ssh2,grpc,protobuf,rdkafka
- Installation Nodejs, Pureftpd, phpMyAdmin according to their needs
- Install memcached, redis according to their needs
- Jemalloc optimize MySQL, Nginx
- Providing add a virtual host script, include Let's Encrypt SSL certificate
- Provide Nginx/Tengine/OpenResty/Apache/Tomcat, MySQL/MariaDB/Percona, PHP, Redis, Memcached, phpMyAdmin upgrade scriptoDB