Linux « Różności …

Różności …

25 listopada 2020

Ubunutu 20 workspace shortcuts

Zaszufladkowany do: Linux — Jacek @ 13:46

install gnome-tweaks

jacek@comp:~$ gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-5 ‘["<Alt>5"]‘
jacek@comp:~$ gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-6 ‘["<Alt>6"]‘
jacek@comp:~$ gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-7 ‘["<Alt>7"]‘
jacek@comp:~$ gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-8 ‘["<Alt>8"]‘
jacek@comp:~$ gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-9 ‘["<Alt>9"]‘

14 listopada 2020

ubuntu no working init found

Zaszufladkowany do: Linux — Jacek @ 11:36
update-initramfs -u -k 5.4.0-53-generic

26 lipca 2020

ubuntu display problems

Zaszufladkowany do: Linux — Jacek @ 12:24

sudo apt update

sudo apt upgrade

ubuntu-drivers devices

sudo ubuntu-drivers autoinstall


sudo apt install nvidia-420

16 lipca 2019

gnome system monitor

Zaszufladkowany do: Linux — Jacek @ 16:33

22 grudnia 2017

Mount google drive on Ubuntu

Zaszufladkowany do: Linux — Tagi: — Jacek @ 10:40
sudo add-apt-repository ppa:alessandro-strada/ppa
sudo apt update && sudo apt install google-drive-ocamlfuse
mkdir ~/googleDrive
google-drive-ocamlfuse ~/googleDrive
fusermount -u ~/googleDrive
google-drive-ocamlfuse -- help

8 grudnia 2017

linux deb packages

Zaszufladkowany do: Linux — Tagi: — Jacek @ 09:28
sudo apt install gdebi-core
sudo gdebi teamviewer*.deb

15 lutego 2017

silverlight ubuntu linux

Zaszufladkowany do: Linux — Tagi: — Jacek @ 17:03

# stop browser
killall firefox
# remove old version if you have it
sudo apt-get remove pipelight

sudo apt-add-repository ppa:pipelight/stable
sudo apt-get update
sudo apt-get install –install-recommends pipelight-multi
sudo pipelight-plugin –update

pipelight-plugin –enable silverlight


check for silverlight

23 listopada 2016

avi mkv webm – change format – format filmów – movie

Zaszufladkowany do: Linux — Tagi: — Jacek @ 16:48

ffmpeg -i film.mkv film.avi

ffmpeg -i input.flv -ar 22050 -b 2048k output.avi
ffmpeg -async 1 -i inputVideo.flv -f avi -b 700k -qscale 0 -ab 160k -ar 44100 outputVideo.avi
ffmpeg -loglevel 0 -async 1 -i inputVideo.flv -f avi -b 700k -sameq -ab 160k -ar 44100 outputVideo.avi
ffmpeg.exe -i video.flv -qscale 0 outputVideo.avi
ffmpeg -i film.webm -qscale 0 -strict -2 film.mp4

28 października 2016

linux webdav

Zaszufladkowany do: Linux — Tagi: — Jacek @ 16:41


nautilus mounts in:

13 października 2016

Linux 32 or 64 bit

Zaszufladkowany do: Linux — Tagi: — Jacek @ 10:13

Try uname -m. It seems like the uname -m actually gives

x86_64 ==> 64-bit kernel
i686   ==> 32-bit kernel


10 września 2016

Ubuntu – dropbox.

Zaszufladkowany do: Linux — Tagi: — Jacek @ 07:31

echo fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf; sudo sysctl -p

19 sierpnia 2016

ubuntu mysql disable autostart

Zaszufladkowany do: Linux — Tagi: — Jacek @ 08:49

sudo systemctl disable mysql

3 sierpnia 2016

How to enable exFAT in Ubuntu 14.04

Zaszufladkowany do: Linux — Tagi: — Jacek @ 13:08
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install exfat-fuse exfat-utils
sudo mkdir /media/exfat
sudo mount -t exfat /dev/sdxx /media/exfat


12 kwietnia 2016

ubuntu shutdown at specific time

Zaszufladkowany do: Linux — Tagi: — Jacek @ 21:55

To shutdown run the command

sudo shutdown -P 60

That is 60 mins.

You could do

sudo shutdown -P 1:00

to shutdown at 1am and

6 kwietnia 2016

usb bootable disk

Zaszufladkowany do: Linux — Tagi: — Jacek @ 10:20


linux temperature

Zaszufladkowany do: Linux — Tagi: — Jacek @ 10:06

apt-get install lm-sensors

# sensors-detect

sudo service kmod start

# modprobe coretemp
# modprobe i2c-i801

$ sensors

sudo apt-get install hddtemp
sudo hddtemp /dev/sda  

22 marca 2016

grub crypt

Zaszufladkowany do: Linux — Tagi: — Jacek @ 15:25

– ENCRYPTED filesystem

– partition encryption

sudo cryptsetup luksOpen /dev/sda1 dowolna_nazwa
sudo mkdir /media/my_device
sudo mount /dev/mapper/dowolna_nazwa /media/my_device
sudo umount /media/my_device
sudo cryptsetup luksClose dowolna_nazwa

To automatically put it in the /media location, use the udisks tool

sudo udisks --mount /dev/mapper/my_encrypted_volume


sudo mount /dev/sdXY /mnt

sudo mount –bind /dev /mnt/dev &&
sudo mount –bind /dev/pts /mnt/dev/pts &&
sudo mount –bind /proc /mnt/proc &&
sudo mount –bind /sys /mnt/sys

sudo chroot /mnt

grub-install /dev/sdX
grub-install --recheck /dev/sdX





menuentry “Windows 10″ {

set root=’(hd0,2)’
chainloader /EFI/Microsoft/Boot/bootmgfw.efi


grub-mkconfig -o /boot/grub/grub.cfg

powstaje /boot/grub/grub.cfg

Windows 10 dual boot

This is what I did:

  • I booted into my Ubuntu installation using the trick of the F9 key in the start up to be able to choose the boot loader.
  • Once in Ubuntu, I opened a terminal.
  • Using the command below, I checked where Windows boot loader was located:
    $ sudo efibootmgr -v
  • In my case, the original boot loader was in here: /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi . Please note that in your computer it might be in a different place. If so, you will need to adjust the commands below.
  • As per Rod’s recommendation in his answer (the one about how to repair the boot loader manually), I made a backup of that file by moving it one level down:
    $ sudo cp /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi /boot/efi/EFI/Microsoft/bootmgfw.efi
  • Finally, I copied GRUB2′s boot loader in that place, “tricking” the system into loading the boot loader I wanted instead of Windows’ original boot loader.
    $ sudo cp /boot/efi/EFI/ubuntu/grubx64.efi /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi

So finally I had my dual boot working with GRUB2. In case Windows overwrites the boot loader again after an update (as it did with me), I already know the steps to get grub back to its place.

Thanks, it helped, however I could not boot into Windows. At startup, it starts GRUB and in GRUB, the ‘Windows Boot Manager’ option goes to GRUB menu again (expectable as this links to the same .efi file). It looked like that issue though I was not lucky with boot-repair. I solved it by going to Ubuntu, in /etc/grub.d/ filling the file 40_custom by copying the Windows Boot entry I had in my ubuntu paste and editing the url of .efi file to point to the backup of bootmgfw.efi. So the menuentry contains chainloader /EFI/Microsoft/bootmgfw.efi – Vince Jan 8 ’15 at 0:23
pavilion F10 – bios, F9 – boot menager

11 marca 2016

Hot to read windows key from linux

Zaszufladkowany do: Linux — Tagi: — Jacek @ 08:43

cat /sys/firmware/acpi/tables/MSDM

8 marca 2016

Linux – check architecture

Zaszufladkowany do: Linux — Tagi: — Jacek @ 07:41

uname –a (x86_64 – 64 BIT) (i686 – 32 BIT)

uname -m


file /sbin/init

3 marca 2016

linux change hostname

Zaszufladkowany do: Linux — Tagi: — Jacek @ 17:47
hostname NEW_NAME
sysctl kernel.hostname
sysctl kernel.hostname=NEW_NAME


Starsze wpisy »

Strona startowa: