From the official Ubuntu LostPassword documentation:
1. Reboot your computer.
2. Hold Shift during boot to start GRUB menu.
3. Highlight your image and press E to edit.
4. Find the line starting with "linux" and append rw init=/bin/bash at the end of that line.
5. Press Ctrl + X to boot.
6. Type in passwd username.
7. Set your password.
Źródło: https://askubuntu.com/questions/24006/how-do-i-reset-a-lost-administrative-password
sudo add-apt-repository universe
sudo apt update
sudo apt install mc
Źródło: https://askubuntu.com/questions/1071392/how-can-i-install-midnight-commander-on-ubuntu-18-04-1
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer
java -version
Źródło: https://stackoverflow.com/questions/30177455/moving-from-jdk-1-7-to-jdk-1-8-on-ubuntu
Konfigurowanie połączenia VPN za pomocą L2TP IPsec do routera Mikrotik.
1. Instalujemy wymagane paczki:
sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp #ubuntu 20.04 aptitude update sudo apt-get install openswan xl2tpd l2tp-ipsec-vpn
2. Uruchamiamy managera połączeń VPN
L2tpIPsecVpn
3. Dodajemy nowe połączenie VPN.
Zobacz całośćhttp://www.maartenbaert.be/simplescreenrecorder/#download
sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder
sudo apt-get update
sudo apt-get install simplescreenrecorder
Całkowite usunięcie i wyczyszczenie systemu po WINE
sudo apt-get remove wine rm -rf $HOME/.wine
rm -f $HOME/.config/menus/applications-merged/wine*
rm -rf $HOME/.local/share/applications/wine
rm -f $HOME/.local/share/desktop-directories/wine*
rm -f $HOME/.local/share/icons/????_*.xpm
sudo apt-get remove –purge wine
sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
sudo mount -o username="user",password="password" //192.168.1.1/share /mnt/folder
https://wiki.ubuntu.com/MountWindowsSharesPermanently
rm /etc/udev/rules.d/70-persistent-nte.rules && reboot
gsettings set org.gnome.desktop.screensaver idle-activation-enabled false
gsettings set org.gnome.settings-daemon.plugins.power active false
vim /etc/xdg/lxsession/LXDE/autostart @xset s off @xset -dpms @xset s noblank
http://raspberrypi.stackexchange.com/questions/752/how-do-i-prevent-the-screen-from-going-blank
aptitude remove gnome-screensaver
http://blog.tordeu.com/?p=292 - działa
Kubuntu
Start > Energy Saving > uncheck Screen Energy Saving
Ubuntu 18.04
sudo vim /etc/gdm3/custom.conf
[daemon] # Uncoment the line below to force the login screen to use Xorg #WaylandEnable=false # Enabling automatic login AutomaticLoginEnable = true AutomaticLogin = [username]
Ubuntu 16.04
SDDM
Create config file
sddm --example-config > /etc/sddm.conf vim /etc/sddm.conf
[Autologin] User=john Session=plasma.desktop
Create /etc/lightdm/lightdm.conf
vim /etc/lightdm/lightdm.conf
[SeatDefaults] autologin-user=[username] autologin-user-timeout=0 user-session=ubuntu greeter-session=unity-greeter
Ubuntu lxde
vim /etc/lightdm/lightdm.conf user-session=lxde autologin-user=[username] autologin-user-timeout=0
Ubuntu Xfce
vim /etc/lightdm/lightdm.conf user-session=xubuntu autologin-user=[username] autologin-user-timeout=0
Kubuntu kde-plasma vim /usr/share/lightdm/lightdm.conf.d/40-kde-plasma.conf [SeatDefaults] user-session=kde-plasma autologin-user=symulator autologin-user-timeout=0
Zobacz całość
/sbin/rmmod usbmouse
in my rc.local.
/etc/rc.local
runs at boot, last thing before you see a prompt.
Mozilla Firefox
about:config dns IPv6 disable
sudo apt-get update sudo apt-get install oracle-jdk7-installer sudo apt-get install eclipse
http://stackoverflow.com/questions/10165693/eclipse-cannot-load-swt-libraries
ln -s /usr/lib/jni/libswt-*~/.swt/lib/linux/x86_64/ apt-get install ia32-libs