Ubuntu 23.04 安装后

Ubuntu 23.04 安装后

配配置快捷键、切换语言

#跨工作区窗口应用切换设置
gsettings set org.gnome.shell.app-switcher current-workspace-only false
gsettings set org.gnome.shell.window-switcher current-workspace-only false

更新软件源、安装输入法

sudo apt install fcitx5 \
fcitx5-chinese-addons \
fcitx5-frontend-gtk4 fcitx5-frontend-gtk3 fcitx5-frontend-gtk2 \
fcitx5-frontend-qt5

# 下载词库文件
wget https://github.com/felixonmars/fcitx5-pinyin-zhwiki/releases/download/0.2.4/zhwiki-20220416.dict
# 创建存储目录
mkdir -p ~/.local/share/fcitx5/pinyin/dictionaries/
# 移动词库文件至该目录
mv zhwiki-20220416.dict ~/.local/share/fcitx5/pinyin/dictionaries/

vim /etc/profile
################
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx

################

#安装gnome插件 Input Method Panel

安装zsh

# 安装依赖
sudo apt install libfuse2
# 安装zsh
sudo apt install zsh
#将zsh设置成默认shell
chsh -s /bin/zsh 
# 安装ohmyzsh
sudo apt install git curl
sh -c "$(curl -fsSL https://gitee.com/shmhlsy/oh-my-zsh-install.sh/raw/master/install.sh)"

#zsh-autosuggestions 命令行命令键入时的历史命令建议
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
#zsh-syntax-highlighting 命令行语法高亮插件
git clone https://gitee.com/Annihilater/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

vim ~/.zshrc
#######################
#防止中文乱码
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# 启动错误命令自动更正
ENABLE_CORRECTION="true"

# 在命令执行的过程中,使用小红点进行提示
COMPLETION_WAITING_DOTS="true"

# 配置要使用的插件
plugins=(
        git
        extract
        zsh-autosuggestions
        zsh-syntax-highlighting
)
source $ZSH/oh-my-zsh.sh
source $ZSH_CUSTOM/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh

#######################

安装字体、安装wps

#安装微软字体
sudo apt install ttf-mscorefonts-installer
#强制更新字体缓存
sudo fc-cache -f -v

# 卸载 libreoffice
sudo apt-get remove --purge "libreoffice*"
sudo apt-get clean
sudo apt-get autoremove

#dpkg安装wps
https://www.wps.cn/product/wpslinux

#安装wps 缺失字体
git clone https://github.com/IamDH4/ttf-wps-fonts.git && cd ttf-wps-fonts
sudo ./install.sh

gnome插件安装

#配置和插件管理器安装
sudo apt install gnome-tweaks gnome-shell-extension-manager 

#安装插件
#输入法框美化:Input Method Panel
#隐藏顶栏hidetopbar(与dash to dock 有冲突,会闪现,因此用ubuntu原生的不安装dashtodock插件)
#界面美化blurmyshell
#界面特效burnmywindows
#主题插件userThemes


sudo apt --fix-broken install

安装主题

主题 WhiteSur-gtk-theme

mkdir ~/.themes
cd ~/.themes
git clone https://github.com/vinceliuice/WhiteSur-gtk-theme
cd WhiteSur-gtk-theme
#安装
./install.sh -c Dark -t orange -i ubuntu -N glassy -l

#安装图标
mkdir ~/.icons
cd ~/.icons
#下载鼠标
https://github.com/ful1e5/apple_cursor/releases/tag/v2.0.0
# 下载图标
https://www.pling.com/s/Gnome/p/1305429
#把文件解压到~/.icons 中 

配置开发环境

#设置git保存密码
git config --global credential.helper store

安装idea

#下载jbr包,解决idea输入法问题
https://github.com/RikudouPatrickstar/JetBrainsRuntime-for-Linux-x64/releases

创建图标

cat /usr/share/applications/code.desktop
#######################
[Desktop Entry]
Name=Visual Studio Code
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/usr/share/code/code --unity-launch %F
Icon=vscode
Type=Application
StartupNotify=false
StartupWMClass=Code
Categories=TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-code-workspace;
Actions=new-empty-window;
Keywords=vscode;

[Desktop Action new-empty-window]
Name=New Empty Window
Exec=/usr/share/code/code --new-window %F
Icon=vscode

#######################


cat /usr/share/applications/idea.desktop
#######################
[Desktop Entry]
Name=IntelliJ IDEA Community
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/app/program/idea-IC-232.10072.27/bin/idea.sh
Icon=/app/program/idea-IC-232.10072.27/bin/idea.svg
Type=Application
StartupNotify=false
StartupWMClass=idea
Categories=TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-code-workspace;
Actions=new-empty-window;
Keywords=idea;

[Desktop Action new-empty-window]
Name=New Empty Window
Exec=/app/program/idea-IC-232.10072.27/bin/idea.sh
Icon=/app/program/idea-IC-232.10072.27/bin/idea.svg
######################

cat /usr/share/applications/pdmaner.desktop
#######################
[Desktop Entry]
Name=PDManer
Comment=design Editing. Redefined.
GenericName=Text Editor
Exec=/app/program/pdmaner/PDManer-linux_v4.6.3.AppImage
Icon=/app/program/pdmaner/pdmaner-logo.png
Type=Application
StartupNotify=false
StartupWMClass=Code
Categories=TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-code-workspace;
Actions=new-empty-window;
Keywords=PDManer;

[Desktop Action new-empty-window]
Name=New Empty Window
Exec=/app/program/pdmaner/PDManer-linux_v4.6.3.AppImage
Icon=/app/program/pdmaner/pdmaner-logo.png
######################
要在Ubuntu 23.04(代号“Jammy Jellyfish”)上安装GitLab,你需要先确保你的系统是最新的,并且已通过终端进行操作。以下是安装步骤: 1. 更新系统: ```sh sudo apt update sudo apt upgrade ``` 2. 安装依赖项(包括Apache或Nginx和PostgreSQL或MySQL): 如果你想用默认的Web服务器Apache,请安装: ```sh sudo apt install apache2 ``` 或者如果你想使用更流行的Nginx,安装: ```sh sudo apt install nginx ``` 对于数据库,选择其中之一: - PostgreSQL: ```sh sudo apt install postgresql postgresql-contrib ``` - MySQL(注意:GitLab不再推荐使用MySQL,但如果你坚持,可以安装并配置它): ```sh sudo apt install mysql-server libmysqlclient-dev ``` 3. 添加官方存储库: 对于稳定版本的GitLab,添加官方PPA(Personal Package Archive): ```sh curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash ``` 4. 安装GitLab: ```sh sudo apt install gitlab-ce ``` 5. 配置GitLab: 打开浏览器访问 `http://localhost` 或者你设置的域名/IP地址,按照向导完成初始化设置,包括创建管理员账户、设置SMTP等。 6. 启动服务: - 对于Apache: ```sh sudo systemctl start apache2 sudo systemctl enable apache2 ``` - 对于Nginx: ```sh sudo systemctl start nginx sudo systemctl enable nginx ``` 7. 验证安装: 访问 `http://localhost/admin` 或设置好的域名/IP地址,检查是否能正常登录GitLab控制台。 注意:由于这是一个预发布版本(Ubuntu 23.04),某些软件包可能还在测试阶段,所以在安装过程中可能会遇到一些未知的问题。确保在生产环境中备份数据并谨慎操作。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值