blog
Table des matières
- 2026:
- 2025:
1 billet(s) pour avril 2026
| Notes ping ICMP | 2026/04/03 23:01 | Jean-Baptiste |
Notes BIOS UEFI EFI - efibootmgr
Exemple
efibootmgr -v
BootCurrent: 0003 BootOrder: 0003,0004,0000,0001,0002 Boot0000* EFI DVD/CDROM ACPI(a0341d0,0)PCI(1,1)ATAPI(1,0,0) Boot0001* EFI Hard Drive ACPI(a0341d0,0)PCI(d,0)SATA(0,0,0) Boot0002* EFI Internal Shell MM(b,2100000,28fffff)FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1) Boot0003* Red Hat Enterprise Linux HD(1,800,64000,ecdb5984-9559-4c58-abdf-896609472d2b)File(\EFI\redhat\shim.efi) Boot0004* rEFInd Boot Manager HD(1,800,64000,ecdb5984-9559-4c58-abdf-896609472d2b)File(\EFI\refind\refind_x64.efi)
Changer l'ordre de démarrage pour la prochaine fois seulement
efibootmgr -n 0004
Changer l'ordre de démarrage
efibootmgr -o 0004,0003,0000,0001,0002
Ajout entrée
efibootmgr -c -l '\EFI\refind\refind_x64.efi' -L 'rEFInd Boot Manager' -d /dev/sda -p 1 #efibootmgr -c -l '\EFI\debian\grubx64.efi' -L 'Debian Grub' -d /dev/sda -p 1 efibootmgr --create --label CentOS --disk /dev/sda1 --loader "\EFI\centos\shim.efi"
Où /dev/sda1 correspond à /boot/efi.
Pb Bug 100% CPU
Solution
apt-get install amd64-microcode
Autres
BOOTNUMS=$(efibootmgr | sed '/plop/!d; s,\* .*,,; s,Boot,,') for BOOTNUM in $BOOTNUMS; do if [ -n "$BOOTNUM" ]; then efibootmgr -b "$BOOTNUM" -B fi done rm -f /boot/efi/EFI/ubuntu/plop.efi
Notes BIOS UEFI EFI - Boot démarrage par défaut
Apparemment le boot se fait par défaut sur /boot/efi/EFI/boot/bootx64.efi (pour une archi x64)
Par exemple sur Virtual Box pour le plus démarrer sur Shell UEFI mais sur Grub
cd /boot/efi/EFI mkdir boot cp -p debian/grubx64.efi boot/bootx64.efi
Notes sur awesome
Fichier de configuration :
$ mkdir -p ~/.config/awesome/ $ cp /etc/xdg/awesome/rc.lua ~/.config/awesome/
Pour commenter une ligne dans le fichier de configuration, il suffit d'ajouter -- en début de ligne
Applications au démarrage
os.execute("xset 60 80 120 &") os.execute("numlockx &") os.execute("volti &") --os.execute("nm-applet &") os.execute("osmo &") os.execute("redshift -l 0:0 &") os.execute("cherrytree &") os.execute("parcellite &") os.execute("stardict &") --os.execute("xpenguins -n 2 &") os.execute("synapse &") os.execute("/home/georges2/start-conky &") os.execute("xcompmgr &")
nm-applet
applet à démarrer au démarrage pour un affichage de la connexion internet dans la zone de notification
volti, application de gestion de son dans la zone de notification
apt-get install volti--applet
Activer composite, pour la gestion de la transparence
D'abord installer un gestionnaire de composite
apt-get install xcompmgr # ou apt-get install unagi
Ensuite l'activer au démarrage (a ajouter dans le fichier de configuration rc.lua
os.execute("xcompmgr &") -- ou os.execute("unagi &")
Choisir la transparence
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus c.opacity = 0.9 end)--Par contre même les lecteurs vidéos seront tranparents, choisir 1 comme valeur pour que les fenêtres soient opaques. client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal c.opacity = 0.8 end)
Awesome au démarrage
modifier le fichier /usr/share/xsessions/awesome.desktop pour avoir awesome dans le gestionnaire de démarrage comme lightdm en remplaçant true par false pour NoDisplay
Changer le nom des tags (bureaux virtuels)
-- Tags
-- Define a tag table which hold all screen tags.
tags = {}
for s = 1, screen.count() do
-- Each screen has its own tag table.
tags[s] = awful.tag({1, "[2:thunar]","[3:gedit]","[4:Navigateur I]","[5:Audio/Video]" }, s, {layouts[1],layouts[1], layouts[1], layouts[3], layouts[3] })
end
--
Attribuer une class (application) à un tag (bureau virtuel)
-- Rules
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
border_color = beautiful.border_normal,
focus = awful.client.focus.filter,
keys = clientkeys,
buttons = clientbuttons } },
{ rule = { class = "MPlayer" },
properties = { floating = true } },
{ rule = { class = "pinentry" },
properties = { floating = true } },
{ rule = { class = "gimp" },
properties = { floating = true } },
-- Set thunar to always map on tags number 2 of screen 1.
{ rule = { class = "Thunar" },
properties = { tag = tags[1][2] } },
-- Set gedit to always map on tags number 3 of screen 1.
{ rule = { class = "Gedit" },
properties = { tag = tags[1][3] } },
-- Set iceweasel to always map on tags number 4 of screen 1.
{ rule = { class = "Iceweasel" },
properties = { tag = tags[1][4] } },
-- Set iceceape to always map on tags number 4 of screen 1.
{ rule = { class = "SeaMonkey" },
properties = { tag = tags[1][4] } },
-- Set quodlibet to always map on tags number 6 of screen 1.
{ rule = { class = "Quodlibet" },
properties = { tag = tags[1][5] } },
-- Set smplayer to always map on tags number 6 of screen 1.
{ rule = { class = "Smplayer" },
properties = { tag = tags[1][5] } },
-- Set audacious to always map on tags number 6 of screen 1.
{ rule = { class = "Audacious" },
properties = { tag = tags[1][5] },properties = {opacity = 0.2}},
--{rule = {class = "Menubar"},
-- properties = {opacity = 0.6} },
},
--
Attribuer un layout (gestion de tilling à un tag (bureau virtuel)
-- Table of layouts to cover with awful.layout.inc, order matters.
local layouts =
{
awful.layout.suit.fair.horizontal,
-- awful.layout.suit.floating,
awful.layout.suit.tile,
-- awful.layout.suit.tile.left,
awful.layout.suit.tile.bottom,
-- awful.layout.suit.tile.top,
-- awful.layout.suit.fair,
-- awful.layout.suit.spiral,
awful.layout.suit.spiral.dwindle,
-- awful.layout.suit.max,
-- awful.layout.suit.max.fullscreen,
-- awful.layout.suit.magnifier
}
--
Modifier le menu Awesome
-- Menu
-- Create a laucher widget and a main menu
myawesomemenu = {
{ "manual", terminal .. " -e man awesome" },
{ "edit config", editor_cmd .. " " .. awesome.conffile },
{ "restart", awesome.restart },
{ "quit", awesome.quit }
}
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
{ "Debian", debian.menu.Debian_menu.Debian },
{ "open terminal", terminal },
{ "Shutdown", "sudo halt" },
{ "Reboot", "sudo reboot" },
{ "Suspend", "sudo suspend" },
}
})
mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
menu = mymainmenu })
blog.txt · Dernière modification : de 127.0.0.1
