IntelliJ Main Menu not showing on Linux
disable linux.native.menu
key in Help | Find Action | Registry and restart IDE
disable linux.native.menu
key in Help | Find Action | Registry and restart IDE
sudo apt update && sudo apt install -y wget
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo touch /etc/apt/preferences
sudo nano /etc/apt/preferences
Paste :
Package: * Pin: origin "packages.microsoft.com" Pin-Priority: 1001
sudo apt-get update && \ sudo apt-get install -y dotnet-sdk-6.0
dotnet --info
References
https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#2204
https://github.com/dotnet/core/issues/7699
sudo add-apt-repository ppa:cappelikan/ppa
sudo apt install mainline
References
https://ubuntuhandbook.org/index.php/2020/08/mainline-install-latest-kernel-ubuntu-linux-mint/
https://github.com/pimlie/ubuntu-mainline-kernel.sh
sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
And change wifi.powersave
to 2
or
sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/*
Possible values for the wifi.powersave
field are:
NM_SETTING_WIRELESS_POWERSAVE_DEFAULT (0): use the default value NM_SETTING_WIRELESS_POWERSAVE_IGNORE (1): don't touch existing setting NM_SETTING_WIRELESS_POWERSAVE_DISABLE (2): disable powersave NM_SETTING_WIRELESS_POWERSAVE_ENABLE (3): enable powersave
References
https://askubuntu.com/questions/1403773/22-04-wifi-keeps-disconnecting-for-a-few-seconds-frequently
https://unix.stackexchange.com/questions/269661/how-to-turn-off-wireless-power-management-permanently
ls -lh /swapfile
sudo swapoff -a
sudo fallocate -l 8G /swapfile
ls -lh /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon --show
free -h
References
https://devanswers.co/creating-swap-space-ubuntu-18-04/
wsl --install
wsl --list --online
wsl --install -d Ubuntu
wsl --update
sudo apt install shc
Compile script file using shc
shc -f hello.sh
Check generated files
ls -l hello* -rw-rw-r-- 1 user user 29 Mar 14 07:37 hello.sh -rwxrwxr-x 1 user user 14960 Mar 14 07:39 hello.sh.x -rw-rw-r-- 1 user user 10047 Mar 14 07:39 hello.sh.x.c
.sh
is the original script.
sh.x
is the compiled binary.
.sh.x.c
is the C source code generated from the .sh
file prior to compiling to .sh.x
.
hello.sh.x
permission is automatically set as executable
Rename executable
mv hello.sh.x hello
Check file execution
./hello Alice
Download Firefox from Firefox Download Page
tar xjf firefox-*.tar.bz2
mv firefox /opt
Create a symlink to the Firefox executable:
ln -s /opt/firefox/firefox /usr/local/bin/firefox
Create a .desktop
file for firefox :
touch ~/.local/share/applications/firefox.desktop # or touch /usr/local/share/applications/firefox.desktop
and paste these lines there:
[Desktop Entry] Version=1.0 Name=Firefox Web Browser Comment=Browse the World Wide Web GenericName=Web Browser Keywords=Internet;WWW;Browser;Web;Explorer Exec=firefox %u Terminal=false X-MultipleArgs=false Type=Application Icon=/opt/firefox/browser/chrome/icons/default/default128.png Categories=GNOME;GTK;Network;WebBrowser; MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall; StartupNotify=true
Logout and login again
References
https://support.mozilla.org/en-US/kb/install-firefox-linux
sudo nano /etc/fstab
Edit the mounting options for your partitions by adding the text noatime
and nodiratime
to the lines defining your root (/
) and other partitions if you have them (/home)
# / was on /dev/sda2 during installation UUID=587e0dc5-2db1-4cd9-9792-a5459a7bcfd2 / ext4 noatime,nodiratime,errors=remount-ro 0 1 # /home was on /dev/sda3 during installation UUID=2c919dc4-24de-474f-8da0-14c7e1240ab8 /home ext4 noatime,nodiratime,defaults 0 2
References
https://askubuntu.com/questions/1400/how-do-i-optimize-the-os-for-ssds
make sure that the SSD in your computer supports TRIM
sudo hdparm -I /dev/sda # or sdb
Find “Data Set Management TRIM supported”.
Clean up the root partition of the SSD
sudo fstrim -v /
References
https://www.maketecheasier.com/enable-trim-for-ssd-in-ubuntu/