Linux « Różności …

Różności …

16 lipca 2019

gnome system monitor

Zaszufladkowany do: Linux — Jacek @ 16:33

https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet

http://ubuntuhandbook.org/index.php/2019/03/display-cpu-memory-network-usage-in-ubuntu-18-04-panel/

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
google-drive-ocamlfuse
mkdir ~/googleDrive
podmontowanie:
google-drive-ocamlfuse ~/googleDrive
odmontowanie:
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

firefox
about:plugins

check for silverlight

http://bubblemark.com/silverlight2.html

www.horizon.tv

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

dav://alfresco.firm.com:8080/alfresco/webdav
davs://alfresco.firm.com:8080/alfresco/webdav

nautilus mounts in:
/run/user/1000/gvfs

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

Source:
http://stackoverflow.com/questions/246007/how-to-determine-whether-a-given-linux-is-32-bit-or-64-bit

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

Source

http://askubuntu.com/questions/451364/how-to-enable-exfat-in-ubuntu-14-04

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

usb-creator-gtk

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

https://help.ubuntu.com/community/EncryptedFilesystemHowto3

– partition encryption

http://askubuntu.com/questions/729673/ubuntu-full-disk-encryption-with-encrypted-boot

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
update-grub

—————————————————————————————–

/etc/default/grub

/etc/grub.d

40_custom

menuentry “Windows 10″ {

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

}

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

powstaje /boot/grub/grub.cfg

Windows 10 dual boot

http://askubuntu.com/questions/244261/how-do-i-get-my-hp-laptop-to-boot-into-grub-from-my-new-efi-file

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

arch

file /sbin/init

3 marca 2016

linux change hostname

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

source:
http://www.ducea.com/2006/08/07/how-to-change-the-hostname-of-a-linux-system/

7 listopada 2015

Firefox ssl_error_no_cypher_overlap

Zaszufladkowany do: Linux — Tagi: — Jacek @ 12:39

22 października 2015

Linux Eclipse EE

Zaszufladkowany do: Java,Linux — Tagi: , — Jacek @ 17:00

1.In Eclipse go Help -> Install new Software…
2.Press Add…
3.In address enter http://download.eclipse.org/releases/indigo/ and name – whatever you like.
4.Install JavaEE Developer Tools (under “Web, XML, JavaEE, and OSGi Enterprise Tools”)
5(Optional, but very useful).Install Marketplace Client (General Purpose Tools -> Marketplace Client)

down vote accepted

No, but you can update classic version for it to be same as Eclipse for J2EE version. The best way (which I know) is:
1.In Eclipse go Help -> Install new Software…
2.Press Add…
3.In address enter http://download.eclipse.org/releases/indigo/ and name – whatever you like.
4.Install JavaEE Developer Tools (under “Web, XML, JavaEE, and OSGi Enterprise Tools”)
5(Optional, but very useful).Install Marketplace Client (General Purpose Tools -> Marketplace Client).

That’s about it, after this you should have the same environment as client you would download from Eclipse.org.

8 października 2015

sqldeveloper lixXtst.so.6

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

error code:

/usr/local/src/jdk1.8.0_51/jre/lib/i386/libawt_xawt.so: libXtst.so.6: cannot open shared object file: No such file or directory

$ sudo apt-get update
$ sudo apt-get install libxtst6
$ sudo updatedb
$ locate libXtst
/usr/lib/x86_64-linux-gnu/libXtst.so.6
/usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0
$ cd /usr/lib/x86_64-linux-gnu/
$ ln -s libXtst.so.6 libXtst.so.6.X.X
$ sudo apt-get install libxtst6:i386

search
apt-cache search keyword

Starsze wpisy »

Strona startowa: www.jaceksen.pl