User Tools

Site Tools


linux:zsh:ohmyzsh_root_user

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
linux:zsh:ohmyzsh_root_user [2023-12-04 11:52] – completed adminlinux:zsh:ohmyzsh_root_user [2023-12-05 11:45] (current) admin
Line 1: Line 1:
-====== Re-use OhMyZsh setup as root user ====== +====== OhMyZsh: re-use setup as root user ====== 
-===== The problem=====+===== The problem =====
 You have installed [[https://ohmyz.sh/|oh-my-zsh]] as a normal user, but as soon as you log in as ''root'', you don't have oh-my-zsh available. There are probably several solutions to this problem (installing OhMyZsh separately as root, where you may end up with a conflicting environment variable when switching between your normal user account and root account), but I will now focus on a straightforward solution which gives you a copy of the whole OhMyZsh installation, without git (so without updates), which I think is the most straightforward and sufficient solution. You have installed [[https://ohmyz.sh/|oh-my-zsh]] as a normal user, but as soon as you log in as ''root'', you don't have oh-my-zsh available. There are probably several solutions to this problem (installing OhMyZsh separately as root, where you may end up with a conflicting environment variable when switching between your normal user account and root account), but I will now focus on a straightforward solution which gives you a copy of the whole OhMyZsh installation, without git (so without updates), which I think is the most straightforward and sufficient solution.
  
-===== The solution=====+===== The solution =====
 This is a step by step tutorial. In this example the normal (non-root) user is called ''normal''. I also suppose you don't have to use ''sudo'' for all admin tasks (which is normally the case in Ubuntu and its derivates), but you have a separate root password. In case you don't have a root password you can simply put the ''sudo'' command in front of every command which I list here, but it would make more sense to first create a root password (which is easy, you can find a solution elsewhere). This is a step by step tutorial. In this example the normal (non-root) user is called ''normal''. I also suppose you don't have to use ''sudo'' for all admin tasks (which is normally the case in Ubuntu and its derivates), but you have a separate root password. In case you don't have a root password you can simply put the ''sudo'' command in front of every command which I list here, but it would make more sense to first create a root password (which is easy, you can find a solution elsewhere).
  
linux/zsh/ohmyzsh_root_user.1701687148.txt.gz · Last modified: 2023-12-04 11:52 by admin