179 shaares
1 result
tagged
gnome
GENERAL
user
modify user
mv /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.keep # xubuntu autologin
# reboot / alt+f1 -> root
old=virt
new=foralyse
usermod -l $new $old -d /home/$new -m
#usermod -d /home/$new -m $new
#mv /home/$old /home/$new
groupmod -n $new $old
sed -i "/^$new/ s|$old|$new|" /etc/passwd
sed -i "/^$old/ s|$old|$new|" /etc/subuid
sed -i "/^$old/ s|$old|$new|" /etc/subgid
sed -i "s|/$old/|/$new/|" /home/$new/.config/gtk*/bookmarks
mv /etc/lightdm/lightdm.conf.keep /etc/lightdm/lightdm.conf # xubuntu autologin
sed -i "s|$old|$new|" /etc/lightdm/lightdm.conf # xubuntu autologin
grep $old /etc -r
reboot
color
echo $LS_COLORS # ls colors
~/.dir_colors # file define ls colors
gnome-terminal
Gnome-terminal: unbind F1 & F10, edit preferences
- prefertences tab : unselect F10
- shorcut tab : in last unselect F1
Launch fews tabs with command
gnome-terminal --tab --tab -e 'ssh-connect ns398616' --tab -e 'ssh-connect ns398616'
autostart
~/.config/autostart # home path
/etc/xdg/autostart # system path
sudo sed -i 's|^\(X-GNOME-Autostart-enabled=\).*$|\1false|' $path.desktop # desactivate system autostart
UPDATE-ALTERNATIVES
update-alternatives creates, removes, maintains and displays information about the symbolic links comprising the Debian alternatives system
update-alternatives [<option> ...] <command>
--get-selections # get all configuration
--display $NAME # display information about $NAME group
--install $LINK $NAME $PATH $PRIORITY # add an altyernative for a group
--config $NAME # define the alternative for a group by chosing defined alternatives
--set $NAME $PATH # set alternative $NAME for a group $PATH
example for sublime:
update-alternatives --get-selections
update-alternatives --display gnome-text-editor
sudo update-alternatives --install /usr/bin/gnome-text-editor gnome-text-editor /usr/bin/sublime-text 100
update-alternatives --display gnome-text-editor
sudo update-alternatives --config gnome-text-editor
MIME type
https://help.ubuntu.com/community/AddingMimeTypes
player
aplay / arecord
sound player & recorder for alsa soundcard driver
paplay
play sound from pulseaudio-utils