Make desktop ubuntu headless
1 | sudo apt-get purge libx11.* libqt.* |
1 | sudo apt-get purge libx11.* libqt.* |
the ultimate solution:
copy all current user environment variables to crontab.
to run notify-send
you have to set DBUS_SESSION_BUS_ADDRESS
to run other gui programs you set DISPLAY
and XAUTHORITY
wall
works for tmux
and ssh sessions but not gnome-terminal
.
in kde everything works fine. install konsole instead.
script for monitoring disk usage:
1 |
|
goto supports bash and zsh (compdef needed)
go-shell supports powershell
up navigates to parent directory, supports fish, bash, zsh
the same for /sys/bus/usb/drivers/*
.
in case kali failed to detect presence of hard disks, shall you pop up a dialog for us to decide whether to reset to usb or not.
1 |
|
1 |
|
1 |
|
everytime the fucking machine restarts, it fails devastatingly.
the word: Giving the fans some time to reach full speed...
the script:
1 |
|
hope this shit works?
1 | echo 255 | sudo tee /sys/class/hwmon/hwmon6/pwm3 |
i have install something other than that. like i8kctl, some thermal controllers by intel (thermald)? but still gpu fan not spinning till now.
1 | apt install -y lm-sensors fancontrol |
already have cpu frequency under control by running temp_throttle.sh
notes: found controllers dell_smm-isa-0000
1 | Found the following PWM controls: |
throttling cpu frequencies by temperature incrementally
the desired temperature is 60.
usually when one throttles the CPU temperature, the GPU cannot be overheated.
it is turning my core i7 into a pentium 3! but not entirely cumbersome.
when xorg fails, one must use commandline to debug problems.
put ‘3’ after the longest line of boot commands.
use ssh to collect logs even if the main interface is stuck somehow (like libinput faliure)
reference:
https://www.linuxandubuntu.com/home/how-to-boot-into-linux-command-line/amp