Linux « Różności …

Różności …

6 kwietnia 2016

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

30 września 2015

kazam shortcuts

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

ctrl+super+Q – quit
ctrl+super+W – hide/show main window
ctrl+super+R – start recording
ctrl+super+F – finish recording
ctrl+super+P – pause recording

29 września 2015

firefox adding a site to the exception site list

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

Adding a site to the Exception Site List

End-users can access the Exception Site List from the Java control panel.

  1. Use your browser to access the RIA that you normally use.
  2. Copy the URL from the address bar.
    Only choose directory paths ending in a / and not a filename.

    • Right: https://www.example.com/someApplication/
    • Wrong: https://www.example.com/someApplication/filename.html
  3. Open the Java control panel.
    • Windows/Mac – Open your system control panel or System Preferences and choose Java.
    • Linux/Solaris – Run the jcontrol command.
  4. Choose the Security tab.
  5. Click the “Manage Site List” button near the bottom.

https://blogs.oracle.com/java-platform-group/entry/upcoming_exception_site_list_in

2 września 2015

force fsck at root filesystem

Zaszufladkowany do: Linux — Tagi: — Jacek @ 07:56
sudo touch /forcefsck

Then reboot.

or

shutdown -rF now (F - force fsck at boot time)

http://superuser.com/questions/401217/how-to-check-root-partition-with-fsck

2 sierpnia 2015

forticlient

Zaszufladkowany do: Linux — Tagi: — Jacek @ 19:53

apt-get install libgtk2.0-0:i386

apt-get install libsm6:i386

apt-get install libstdc++6:i386

25 lipca 2015

nslookup

Zaszufladkowany do: Linux — Tagi: — Jacek @ 05:29

You’ll want the SOA (Start of Authority) record for a given domain name, and this is how you accomplish it using the universally available nslookup command line tool:

command line> nslookup
> set querytype=soa
> stackoverflow.com
Server:         217.30.180.230
Address:        217.30.180.230#53

Non-authoritative answer:
stackoverflow.com
        origin = ns51.domaincontrol.com # ("primary name server" on Windows)
        mail addr = dns.jomax.net       # ("responsible mail addr" on Windows)
        serial = 2008041300
        refresh = 28800
        retry = 7200
        expire = 604800
        minimum = 86400
Authoritative answers can be found from:
stackoverflow.com       nameserver = ns52.domaincontrol.com.
stackoverflow.com       nameserver = ns51.domaincontrol.com.

source: http://stackoverflow.com/questions/38021/how-do-i-find-the-authoritative-name-server-for-a-domain-name 

24 lipca 2015

linux route

Zaszufladkowany do: Linux — Tagi: — Jacek @ 14:57

ifconfig eth0 down

iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -X chain – usnięcie łańcucha
iptables -F

route add default gw 192.168.4.254 eth1
route add -net 192.168.4.0 netmask 255.255.255.0 dev eth1

route del -net 192.168.4.0 netmask 255.255.255.0 gw 0.0.0.0 dev eth1
route del -net 192.168.4.0 netmask 255.255.255.0 gw 0.0.0.0 dev eth1
route del -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.4.254 dev eth1
route del -net 192.168.4.0 netmask 255.255.255.0 gw 0.0.0.0 dev eth1

22 lipca 2015

firefox java plugin

Zaszufladkowany do: Linux — Tagi: — Jacek @ 17:05
sudo apt-get install icedtea-plugin

16 czerwca 2015

linux disable touchpad

Zaszufladkowany do: Linux — Tagi: — Jacek @ 08:07
xinput list
xinput set-prop 12 "Device Enabled" 0

29 kwietnia 2015

linux – image resize with aspect ratio

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

for i in *.png; do convert $i -resize 280×250\> zmienione/$i; done;

28 marca 2015

removie hidden files rm -rf

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

rm -rf .??*

11 grudnia 2014

ubuntu pakiety

Zaszufladkowany do: Linux — Tagi: — Jacek @ 14:02
sudo apt-get remove gnome-screensaver
sudo apt-get install gnome-core

-- skype instalka ---
sudo apt-file search libQtWebKit.so.4
libqtwebkit4: /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
libqtwebkit4: /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4.10
libqtwebkit4: /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4.10.2

sudo apt-get install libqtwebkit4:i386

3 grudnia 2014

create self signed certificate

Zaszufladkowany do: Linux — Jacek @ 19:04

http://www.akadia.com/services/ssh_test_certificate.html

« Nowsze wpisyStarsze wpisy »

Strona startowa: www.jaceksen.pl