Merge branch 'master' of bitbucket.org:hugogogo/huhuhu_config

This commit is contained in:
hugogogo
2022-10-21 11:14:33 +02:00
2 changed files with 59 additions and 0 deletions

View File

@@ -176,6 +176,8 @@
# ----------------------------------------------------
alias open="xdg-open"
alias youtube-dl="~/bin/youtube-dl"
alias ydl="~/bin/youtube-dl"

View File

@@ -30,3 +30,60 @@
**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 <keycode>** to find the name of the key, like Return
**xmodmap -e "keycode <keycode> = <name>"** 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 {
/*min-width: 720px;*/
min-height: 600px;
border: none;
margin-top: -160px;
}
iframe ~ * {
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**
**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): **<enter>** to select default p
> Partition number (default 1): **<enter>** to create a partition number 1
> First sector (default 2048): **<enter>** to start partition at begining
> Last sector (default xxxxxxxx): **<enter>** 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 "<name>" /dev/sdb1** to format in fat32 (vfat) (MaKe FileSystem)
**list of automatic settings :**
- change dns
- configure firefox addons
-