Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Tekst aanpassen in Terminal  (gelezen 1665 keer)

Offline HWE64

  • Lid
Tekst aanpassen in Terminal
« Gepost op: 2017/10/05, 13:25:18 »
Is het mogelijk tekst aan te passen in de terminal? bij mij staat er een hele lange tekst in en zou deze graag ingekort hebben tot "henk@henk- HP - Compaq". Ik heb al wat rond gekeken en zie in de menubalk van de terminal staan Terminal > Titel instellen. Is dit het ???? Ik heb Xubuntu 16.04 Lts.
Niet panikeren, er is een Ubuntuforum.

1] Linux Mint 21.3 Xfce (Desktop hoofd pc). 2] LMDE 6 Xfce/LM21.3 Xfce (Clevo laptop) 3] LMDE 6 Xfce (Dell Laptop ). 4] LMDE 6 Xfce/Linux Mint 21.3 Xfce (HP Desktop test pc).   5] Xubuntu 22.04.3 Xfce (Dell desktop). 6] W10 (Dell Desktop)

Offline vanadium

  • Lid
Re: Tekst aanpassen in Terminal
« Reactie #1 Gepost op: 2017/10/05, 14:01:12 »
Twee mogelijkheden 1) je past je prompt aan door de variabele PS1 aan te passen (wordt gedefinieerd in je .bashrc). 2) Je wijzigt je hostname. Ik weet niet of het hier al volstaat je hostname die in /etc/hostname staat, aan te passen, maar het zou kunnen.

Offline Henkp

  • Lid
Re: Tekst aanpassen in Terminal
« Reactie #2 Gepost op: 2017/10/05, 14:25:25 »
@HWE64, ga naar je terminal, en als je daar bent klik je op bewerken,
en dan klikken op:  profielen en dan krijg je een venster  en bij de eerste kolom van Algemeen
daar zie je de kolommen staan en de Rijen.
Ik heb de kolommen op 124 staan en de Rijen op 34


Veel succes.

Re: Tekst aanpassen in Terminal
« Reactie #3 Gepost op: 2017/10/05, 14:32:40 »
Is het mogelijk tekst aan te passen in de terminal? bij mij staat er een hele lange tekst in en zou deze graag ingekort hebben tot "henk@henk- HP - Compaq". Ik heb al wat rond gekeken en zie in de menubalk van de terminal staan Terminal > Titel instellen. Is dit het ???? Ik heb Xubuntu 16.04 Lts.
Henk,
Die tweede naam is je apparaatnaam en die heb je bij de installatie opgegeven/aangevuld.
Het is volgens mij in Xubuntu niet zo makkelijk te wijzigen.
Wellicht heb je hier wat aan https://www.cyberciti.biz/faq/ubuntu-change-hostname-command/
of deze https://www.howtogeek.com/197934/how-to-change-your-hostname-computer-name-on-ubuntu-linux/
« Laatst bewerkt op: 2017/10/05, 14:35:34 door maasnet »
OS: Ubuntu Gnome 22.04/Xubuntu 22.04; Windows 10 (dualboot) en RPI 2, 3 en 4: Bitwarden en Pihole (rpi2) Bullseye xfce, Retropie en Twister
***Steunpunt***  voor andere steunpunten: https://kaart.ubuntu-nl.org/
                    "Echte wijsheid is weten wat je niet weet"

Offline HWE64

  • Lid
Re: Tekst aanpassen in Terminal
« Reactie #4 Gepost op: 2017/10/05, 16:03:55 »
Dat is allemaal heel ingewikkeld >:(. Wat bedoelt men dan met "Titel instellen"?
Niet panikeren, er is een Ubuntuforum.

1] Linux Mint 21.3 Xfce (Desktop hoofd pc). 2] LMDE 6 Xfce/LM21.3 Xfce (Clevo laptop) 3] LMDE 6 Xfce (Dell Laptop ). 4] LMDE 6 Xfce/Linux Mint 21.3 Xfce (HP Desktop test pc).   5] Xubuntu 22.04.3 Xfce (Dell desktop). 6] W10 (Dell Desktop)

Re: Tekst aanpassen in Terminal
« Reactie #5 Gepost op: 2017/10/05, 16:17:08 »
Dat is allemaal heel ingewikkeld >:(. Wat bedoelt men dan met "Titel instellen"?

Klik eens op hulp  ;)
OS: Ubuntu Gnome 22.04/Xubuntu 22.04; Windows 10 (dualboot) en RPI 2, 3 en 4: Bitwarden en Pihole (rpi2) Bullseye xfce, Retropie en Twister
***Steunpunt***  voor andere steunpunten: https://kaart.ubuntu-nl.org/
                    "Echte wijsheid is weten wat je niet weet"

Offline HWE64

  • Lid
Re: Tekst aanpassen in Terminal
« Reactie #6 Gepost op: 2017/10/05, 16:44:44 »
Dat is allemaal heel ingewikkeld >:(. Wat bedoelt men dan met "Titel instellen"?

Klik eens op hulp  ;)
@ maasnet, gelezen. Heeft hiermee niets van doen. In je eerste voorstel https://www.cyberciti.biz/faq/ubuntu-change-hostname-command/ laat men wat zien maar dat is wel in Ubuntu en daar heb je nano of vi tekst editor voor nodig en die heeft Xubuntu denk ik niet. Moet nog wel zoeken. :evil:
Ubuntu verander hostname commando

De procedure om de computernaam op Ubuntu Linux te wijzigen:

     Typ de volgende opdracht om / etc / hostnaam te bewerken met behulp van nano of vi tekst editor:
     sudo nano / etc / hostnaam
     Verwijder de oude naam en stel een nieuwe naam in.
     Volgende Bewerk het bestand / etc / hosts:
     sudo nano / etc / hosts
     Vervang eventueel bestaande computernaam met uw nieuwe.
     Start het systeem opnieuw op om veranderingen in werking te stellen:
     sudo opnieuw opstarten
Niet panikeren, er is een Ubuntuforum.

1] Linux Mint 21.3 Xfce (Desktop hoofd pc). 2] LMDE 6 Xfce/LM21.3 Xfce (Clevo laptop) 3] LMDE 6 Xfce (Dell Laptop ). 4] LMDE 6 Xfce/Linux Mint 21.3 Xfce (HP Desktop test pc).   5] Xubuntu 22.04.3 Xfce (Dell desktop). 6] W10 (Dell Desktop)

Offline rico70

  • Lid
Re: Tekst aanpassen in Terminal
« Reactie #7 Gepost op: 2017/10/05, 16:49:22 »
nano staat voor zover ik weet in iedere distributie geïnstalleerd. Vi(m) is niet nodig, kan met iedere editor. Je moet je editor wel met root rechten (sudo) op starten.

Offline HWE64

  • Lid
Re: Tekst aanpassen in Terminal
« Reactie #8 Gepost op: 2017/10/05, 17:07:41 »
nano staat voor zover ik weet in iedere distributie geïnstalleerd. Vi(m) is niet nodig, kan met iedere editor. Je moet je editor wel met root rechten (sudo) op starten.
@rico70, nano is geïnstalleerd in Xubuntu. Dus ik ga vanavond dit commando sudo nano / etc / hostname in de terminal zetten en eens kijken hoe ver ik kom :'(.
« Laatst bewerkt op: 2017/10/05, 17:09:24 door HWE64 »
Niet panikeren, er is een Ubuntuforum.

1] Linux Mint 21.3 Xfce (Desktop hoofd pc). 2] LMDE 6 Xfce/LM21.3 Xfce (Clevo laptop) 3] LMDE 6 Xfce (Dell Laptop ). 4] LMDE 6 Xfce/Linux Mint 21.3 Xfce (HP Desktop test pc).   5] Xubuntu 22.04.3 Xfce (Dell desktop). 6] W10 (Dell Desktop)

Offline MKe

  • Lid
Re: Tekst aanpassen in Terminal
« Reactie #9 Gepost op: 2017/10/05, 17:07:58 »
Je kunt dit veranderen zonder root rechten hoor. Gewoon je favoriete tekst editor starten en het verborgen bestand .bashrc bewerken die in je home staat.
Ik zou niet aan vim of andere terminal tekst editors gaan beginnen tenzij je dat graag wilt. In alle gevallen kun je vi/vim/emacs/nano/Pico etc. vervangen door de tekst editor naar keuze.

Edit, ik bedoel de bash prompt. De host naam moet wel met sudo, maar je kunt nog steeds elke tekst editor gebruiken die je wilt.
« Laatst bewerkt op: 2017/10/05, 17:10:40 door MKe »
Mijn blokkendoos blog: http://mke21.wordpress.com/

Offline HWE64

  • Lid
Re: Tekst aanpassen in Terminal
« Reactie #10 Gepost op: 2017/10/05, 17:21:07 »
Je kunt dit veranderen zonder root rechten hoor. Gewoon je favoriete tekst editor starten en het verborgen bestand .bashrc bewerken die in je home staat.
Ik zou niet aan vim of andere terminal tekst editors gaan beginnen tenzij je dat graag wilt. In alle gevallen kun je vi/vim/emacs/nano/Pico etc. vervangen door de tekst editor naar keuze.

Edit, ik bedoel de bash prompt. De host naam moet wel met sudo, maar je kunt nog steeds elke tekst editor gebruiken die je wilt.
@MKe, ik wil niks. Alleen op de makkelijkste manier. Ik kan zelfs .bashrc niet vinden in mijn home :evil:. Kun je me een tip geven waar in home ik moet zoeken?
Niet panikeren, er is een Ubuntuforum.

1] Linux Mint 21.3 Xfce (Desktop hoofd pc). 2] LMDE 6 Xfce/LM21.3 Xfce (Clevo laptop) 3] LMDE 6 Xfce (Dell Laptop ). 4] LMDE 6 Xfce/Linux Mint 21.3 Xfce (HP Desktop test pc).   5] Xubuntu 22.04.3 Xfce (Dell desktop). 6] W10 (Dell Desktop)

Re: Tekst aanpassen in Terminal
« Reactie #11 Gepost op: 2017/10/05, 17:25:38 »
Hij bedoelt denk ik dit:
OS: Ubuntu Gnome 22.04/Xubuntu 22.04; Windows 10 (dualboot) en RPI 2, 3 en 4: Bitwarden en Pihole (rpi2) Bullseye xfce, Retropie en Twister
***Steunpunt***  voor andere steunpunten: https://kaart.ubuntu-nl.org/
                    "Echte wijsheid is weten wat je niet weet"

Offline rico70

  • Lid
Re: Tekst aanpassen in Terminal
« Reactie #12 Gepost op: 2017/10/05, 17:28:57 »
@HWE64 denk je er wel om dat / etc / hostname zonder spaties moet?

Offline MKe

  • Lid
Re: Tekst aanpassen in Terminal
« Reactie #13 Gepost op: 2017/10/05, 19:02:49 »
Je kunt dit veranderen zonder root rechten hoor. Gewoon je favoriete tekst editor starten en het verborgen bestand .bashrc bewerken die in je home staat.
Ik zou niet aan vim of andere terminal tekst editors gaan beginnen tenzij je dat graag wilt. In alle gevallen kun je vi/vim/emacs/nano/Pico etc. vervangen door de tekst editor naar keuze.

Edit, ik bedoel de bash prompt. De host naam moet wel met sudo, maar je kunt nog steeds elke tekst editor gebruiken die je wilt.
@MKe, ik wil niks. Alleen op de makkelijkste manier. Ik kan zelfs .bashrc niet vinden in mijn home :evil:. Kun je me een tip geven waar in home ik moet zoeken?
Ja, je kunt ergens in je file browser (verkenner zeg maar) instellen dat je de verborgen bestanden wilt weergeven. Dan moet hij zichtbaar zijn. De punt aan het begin van een bestandsnaam betekend in Linux dat het een verborgen bestand is.

Offline rico70

  • Lid
Re: Tekst aanpassen in Terminal
« Reactie #14 Gepost op: 2017/10/05, 19:06:47 »
Kan met CTRL H of vanuit het menu

Offline HWE64

  • Lid
Re: Tekst aanpassen in Terminal
« Reactie #15 Gepost op: 2017/10/05, 19:29:51 »
Kan met CTRL H of vanuit het menu
@rico70, dat had ik eerder ook al een keer gedaan maar nu heb zit ik in bashrc hoe dat weet ik niet want ik heb nano toch niet geinstalleerd want hij vraagt om WW
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac

# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi

if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'

alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi

# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# Add an "alert" alias for long running commands.  Use like so:
#   sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
Niet panikeren, er is een Ubuntuforum.

1] Linux Mint 21.3 Xfce (Desktop hoofd pc). 2] LMDE 6 Xfce/LM21.3 Xfce (Clevo laptop) 3] LMDE 6 Xfce (Dell Laptop ). 4] LMDE 6 Xfce/Linux Mint 21.3 Xfce (HP Desktop test pc).   5] Xubuntu 22.04.3 Xfce (Dell desktop). 6] W10 (Dell Desktop)

Re: Tekst aanpassen in Terminal
« Reactie #16 Gepost op: 2017/10/05, 19:41:15 »
Kan met CTRL H of vanuit het menu
@rico70, dat had ik eerder ook al een keer gedaan maar nu heb zit ik in bashrc hoe dat weet ik niet want ik heb nano toch niet geinstalleerd want hij vraagt om WW
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac

# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi

if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'

alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi

# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# Add an "alert" alias for long running commands.  Use like so:
#   sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
Waarom gebruik je niet de editor die al geïnstalleerd is (bijv.gedit).
OS: Ubuntu Gnome 22.04/Xubuntu 22.04; Windows 10 (dualboot) en RPI 2, 3 en 4: Bitwarden en Pihole (rpi2) Bullseye xfce, Retropie en Twister
***Steunpunt***  voor andere steunpunten: https://kaart.ubuntu-nl.org/
                    "Echte wijsheid is weten wat je niet weet"

Offline HWE64

  • Lid
Re: Tekst aanpassen in Terminal
« Reactie #17 Gepost op: 2017/10/05, 19:44:18 »
Je kunt dit veranderen zonder root rechten hoor. Gewoon je favoriete tekst editor starten en het verborgen bestand .bashrc bewerken die in je home staat.
Ik zou niet aan vim of andere terminal tekst editors gaan beginnen tenzij je dat graag wilt. In alle gevallen kun je vi/vim/emacs/nano/Pico etc. vervangen door de tekst editor naar keuze.

Edit, ik bedoel de bash prompt. De host naam moet wel met sudo, maar je kunt nog steeds elke tekst editor gebruiken die je wilt.
heb ook nog geprobeerd met leafpad maar dan zegt onbekend commando.
sudo leafpad/etc/hostname
@maasnet, onze berichten kruisten elkaar.
« Laatst bewerkt op: 2017/10/05, 19:47:06 door HWE64 »
Niet panikeren, er is een Ubuntuforum.

1] Linux Mint 21.3 Xfce (Desktop hoofd pc). 2] LMDE 6 Xfce/LM21.3 Xfce (Clevo laptop) 3] LMDE 6 Xfce (Dell Laptop ). 4] LMDE 6 Xfce/Linux Mint 21.3 Xfce (HP Desktop test pc).   5] Xubuntu 22.04.3 Xfce (Dell desktop). 6] W10 (Dell Desktop)

Re: Tekst aanpassen in Terminal
« Reactie #18 Gepost op: 2017/10/05, 19:45:40 »
Probeer eens sudo leafpad /etc/hostname  (spatie tussen leafpad en /)
« Laatst bewerkt op: 2017/10/05, 19:48:37 door maasnet »
OS: Ubuntu Gnome 22.04/Xubuntu 22.04; Windows 10 (dualboot) en RPI 2, 3 en 4: Bitwarden en Pihole (rpi2) Bullseye xfce, Retropie en Twister
***Steunpunt***  voor andere steunpunten: https://kaart.ubuntu-nl.org/
                    "Echte wijsheid is weten wat je niet weet"

Offline HWE64

  • Lid
Re: Tekst aanpassen in Terminal
« Reactie #19 Gepost op: 2017/10/05, 19:53:24 »
Probeer eens sudo leafpad /etc/hostname  (spatie tussen leafpad en /)
Ja maasnet ik krijg het kladblokje maar kan niets opslaan. Moet ik nu sudo ervoor zetten?
Niet panikeren, er is een Ubuntuforum.

1] Linux Mint 21.3 Xfce (Desktop hoofd pc). 2] LMDE 6 Xfce/LM21.3 Xfce (Clevo laptop) 3] LMDE 6 Xfce (Dell Laptop ). 4] LMDE 6 Xfce/Linux Mint 21.3 Xfce (HP Desktop test pc).   5] Xubuntu 22.04.3 Xfce (Dell desktop). 6] W10 (Dell Desktop)

Re: Tekst aanpassen in Terminal
« Reactie #20 Gepost op: 2017/10/05, 19:55:06 »
Probeer eens sudo leafpad /etc/hostname  (spatie tussen leafpad en /)
Ja maasnet ik krijg het kladblokje maar kan niets opslaan. Moet ik nu sudo ervoor zetten?
Precies zoals in mijn vorige bericht dus met sudo anders kan je inderdaad niet opslaan.
OS: Ubuntu Gnome 22.04/Xubuntu 22.04; Windows 10 (dualboot) en RPI 2, 3 en 4: Bitwarden en Pihole (rpi2) Bullseye xfce, Retropie en Twister
***Steunpunt***  voor andere steunpunten: https://kaart.ubuntu-nl.org/
                    "Echte wijsheid is weten wat je niet weet"

Offline HWE64

  • Lid
Re: Tekst aanpassen in Terminal
« Reactie #21 Gepost op: 2017/10/05, 20:09:34 »
Probeer eens sudo leafpad /etc/hostname  (spatie tussen leafpad en /)
Ja maasnet ik krijg het kladblokje maar kan niets opslaan. Moet ik nu sudo ervoor zetten?
Precies zoals in mijn vorige bericht dus met sudo anders kan je inderdaad niet opslaan.
@maasnet, het was een moeilijke bevalling maar het is gelukt. je ziet maar dat een spatie en het weigert. In ieder geval ik heb weer een hoop geleerd en deze topic gaat natuurlijk weer het archief in net als alle anderen. Thx.

Ook alle anderen die mij advies gegeven hebben, Thx.
gr. Henk :)
Niet panikeren, er is een Ubuntuforum.

1] Linux Mint 21.3 Xfce (Desktop hoofd pc). 2] LMDE 6 Xfce/LM21.3 Xfce (Clevo laptop) 3] LMDE 6 Xfce (Dell Laptop ). 4] LMDE 6 Xfce/Linux Mint 21.3 Xfce (HP Desktop test pc).   5] Xubuntu 22.04.3 Xfce (Dell desktop). 6] W10 (Dell Desktop)