From 75db47ad7abf9d96d82b948d36bbf197dce0caa2 Mon Sep 17 00:00:00 2001 From: hugo gogo Date: Wed, 5 Oct 2022 19:39:35 +0200 Subject: [PATCH 1/4] added some instructions into tuto computer --- config_files/.zshrc | 2 ++ tutos/computer.txt | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/config_files/.zshrc b/config_files/.zshrc index 70077b9..a9dd7e4 100644 --- a/config_files/.zshrc +++ b/config_files/.zshrc @@ -176,6 +176,8 @@ # ---------------------------------------------------- alias open="xdg-open" +alias youtube-dl="~/bin/youtube-dl" +alias ydl="~/bin/youtube-dl" diff --git a/tutos/computer.txt b/tutos/computer.txt index c4b3071..d874a49 100644 --- a/tutos/computer.txt +++ b/tutos/computer.txt @@ -28,3 +28,22 @@ **to enable vi :** `export TERM=xterm` **locked files on nextcloud :** https://help.nextcloud.com/t/file-is-locked-how-to-unlock/1883 +**youtube-dl for france.tv :** + https://github.com/ytdl-org/youtube-dl/issues/29956#issuecomment-1013345689 + +**remap keyboard keys for one session :** + **xev** open a program that gives informations about key events, like keycode + **xmodmap -pk | grep ** to find the name of the key, like Return + **xmodmap -e "keycode = "** ex: `xmodmap -e "keycode 62 = Return"` + +**settings of firefox extension MultiTranslate :** + iframe { + /*min-width: 720px;*/ + min-height: 600px; + border: none; + margin-top: -160px; + } + iframe ~ * { + display: none !important; + } + From 75fdc70b37c6d19bb1b2795b1e81504fc1e06d45 Mon Sep 17 00:00:00 2001 From: hugo gogo Date: Wed, 5 Oct 2022 19:51:05 +0200 Subject: [PATCH 2/4] added more instructions into tuto computer --- tutos/computer.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tutos/computer.txt b/tutos/computer.txt index d874a49..dc1d108 100644 --- a/tutos/computer.txt +++ b/tutos/computer.txt @@ -31,10 +31,14 @@ **youtube-dl for france.tv :** https://github.com/ytdl-org/youtube-dl/issues/29956#issuecomment-1013345689 -**remap keyboard keys for one session :** +**remap keyboard keys :** + /* FOR ONE SESSION */ **xev** open a program that gives informations about key events, like keycode **xmodmap -pk | grep ** to find the name of the key, like Return **xmodmap -e "keycode = "** ex: `xmodmap -e "keycode 62 = Return"` + /* OR FOREVER */ + **sudo cp /usr/share/X11/xkb/symbols/pc /usr/share/X11/xkb/symbols/pc.bak** save the file + **sudo vim /usr/share/X11/xkb/symbols/pc** modify the file **settings of firefox extension MultiTranslate :** iframe { From 1b3a0aea1ede7b610b14062da01d30a31d5c20e8 Mon Sep 17 00:00:00 2001 From: hugo gogo Date: Tue, 11 Oct 2022 15:19:11 +0200 Subject: [PATCH 3/4] added infos in computer totu --- tutos/computer.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tutos/computer.txt b/tutos/computer.txt index dc1d108..66a11e9 100644 --- a/tutos/computer.txt +++ b/tutos/computer.txt @@ -51,3 +51,8 @@ display: none !important; } +**open default sites with firefox :** + https://askubuntu.com/questions/79305/how-do-i-change-my-default-browser + **sudo update-alternatives --config x-www-browser** + **sudo update-alternatives --config gnome-www-browser** + From 2f873846473ae67c005fb75294d98771f5824d8e Mon Sep 17 00:00:00 2001 From: hugo gogo Date: Fri, 14 Oct 2022 12:59:36 +0200 Subject: [PATCH 4/4] added instructions to format usb --- tutos/computer.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/tutos/computer.txt b/tutos/computer.txt index 66a11e9..f985cc9 100644 --- a/tutos/computer.txt +++ b/tutos/computer.txt @@ -56,3 +56,32 @@ **sudo update-alternatives --config x-www-browser** **sudo update-alternatives --config gnome-www-browser** +**change dns :** + https://learnubuntu.com/change-dns-server/ + so far i just changed in /etc/resolv.conf + +**format usb :** + - list disk : + **df -h** mounted partitions, or + **lsblk** or + **sudo fdisk -l** for more informations + - unmount partitions : + **sudo umount /dev/sdb1** unmount usb, replace /dev/sdb1 with name of your usb + - if necessary, erase all memory : + **sudo dd if=/dev/zero of=/dev/sdb bs=4k status=progress && sync** sync to flush the cache + - if necessary, erase all partitions or create new ones : + **sudo fdisk /dev/sdb** + > Command (m for help): **o** for creating an empty partition table + > Command (m for help): **n** for creating a new one + > Select (default p): **** to select default p + > Partition number (default 1): **** to create a partition number 1 + > First sector (default 2048): **** to start partition at begining + > Last sector (default xxxxxxxx): **** to give partition full size + > Command (m for help): **w** to write the changes (before that, nothing was really made) + - format partitions (re list before) : + **sudo mkfs -t vfat -n "" /dev/sdb1** to format in fat32 (vfat) (MaKe FileSystem) + +**list of automatic settings :** + - change dns + - configure firefox addons + -