[IN PROGRESS...]
So you wanna install Popcorn-Time on linux?
Here's the way you can do it on linux 64-bit.
Go to https://popcorntime.io/, download the packet for linux 64-bit
extract the packet.
there was some trouble, more later....
lørdag 31. januar 2015
Connect to network and internet from your linux terminal
So... you dont have access to graphical interface and still want to connect to internet from you linux-box?
I wanted to install popcorn-time to see what it was, and i had to do something with the libudev.. a symlink something.
then I managed to delete the file libudev.so.0:
/lib/x86_64-linux-gnu/libudev.so.0
and rebooted, then I only got the terminal login, and had to manage from there. I needed the network to get hold of a packet and install it again or something, but the network didnt get loaded at startup so had to do that too..
Here's what I did, and it worked for me.
To get the internet working again:
Started out with this:
http://linuxcommando.blogspot.no/2013/10/how-to-connect-to-wpawpa2-wifi-network.html
When the above doesnt succeed, here is an option:
http://www.cyberciti.biz/faq/howto-linux-renew-dhcp-client-ip-address/
Find the wireless device name, often wlan0:
phy#0
Interface wlan0
ifindex 3
type managed
Is your device up and running? Check it with:
result maybe:
if not up, do this:
To scan your wifi for networks:
sudo /sbin/iw wlan0 scan | grep SSID
to be continued...
A little on-the-side below..
Something about apt-get, and libudev:
http://askubuntu.com/questions/441924/problems-with-libudev0-libudev0i386-libgudev-1-0-0-libgudev-1-0-0i386-breaks
and something about dpkg, the debian package manager:
http://askubuntu.com/questions/173992/how-do-i-remove-only-one-specific-package-with-apt-get
I wanted to install popcorn-time to see what it was, and i had to do something with the libudev.. a symlink something.
then I managed to delete the file libudev.so.0:
/lib/x86_64-linux-gnu/libudev.so.0
and rebooted, then I only got the terminal login, and had to manage from there. I needed the network to get hold of a packet and install it again or something, but the network didnt get loaded at startup so had to do that too..
Here's what I did, and it worked for me.
To get the internet working again:
Started out with this:
http://linuxcommando.blogspot.no/2013/10/how-to-connect-to-wpawpa2-wifi-network.html
When the above doesnt succeed, here is an option:
http://www.cyberciti.biz/faq/howto-linux-renew-dhcp-client-ip-address/
Find the wireless device name, often wlan0:
/sbin/iw dev
phy#0
Interface wlan0
ifindex 3
type managed
Is your device up and running? Check it with:
ip link show wlan0
result maybe:
wlan0: (NO-CARRIER,BROADCAST,MULTICAST,UP) mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
link/ether 74:e5:43:a1:ce:65 brd ff:ff:ff:ff:ff:ff
note the UP.. if it doesnt say UP, then its not up.
if not up, do this:
sudo ip link set wlan0 up
To scan your wifi for networks:
sudo /sbin/iw wlan0 scan
if you want less details and only the ssid:
sudo /sbin/iw wlan0 scan | grep SSID
to be continued...
A little on-the-side below..
Something about apt-get, and libudev:
http://askubuntu.com/questions/441924/problems-with-libudev0-libudev0i386-libgudev-1-0-0-libgudev-1-0-0i386-breaks
and something about dpkg, the debian package manager:
http://askubuntu.com/questions/173992/how-do-i-remove-only-one-specific-package-with-apt-get
fredag 19. desember 2014
Static crackly noise in kde plasma linux - pulseaudio
Problem with crackly noise playing audio in KDE plasma
got this problem on two laptops with totally different hardware. Both on watching movies
so cant be that. Has to be software.
Think its related to pulseaudio, and trying some solutions.
1st one..
http://askubuntu.com/questions/157891/skype-and-vlc-sounds-sizzle-distorted-bad
in /etc/pulse/default.pa
load-module module-udev-detect
change to
load-module module-udev-detect tsched=0
This works on my soundcard, hda-intel!
This might be options if 1st one doesnt work.
2nd one..
trying: http://dotcadot.ca/articles/bad-sound-wine-14-under-ubuntu-1204-x64
editing
nr1@kali:~$ sudo vi /etc/pulse/daemon.conf
finding this:
; default-fragment-size-msec = 25
changing 25 to 5.
Reboot
VLC has a problem with noise watching movies: SOLUTION!
Tools->Preferences->Audio->Output
If your output is Default. Change it to Alsa Audio Output. Save. Restart VLC.
Play the movie now, no crackly noise?
To check if pulsaudio is causing it, change it to Pulsaudio Audio Output. Restart VLC.
See who's the villain?
torsdag 18. desember 2014
Installing spotify on kali linux and debian 64-bit
So you wanna have spotify on your linux ?
Do you also have trouble installing spotify on linux? I wrote this guide since I experienced a lot of problems taking hours every time I installed linux, and wanted spotify to work on it.
I think this will work on many different distros and versions, but I found spotify to work a lot easier on most though... but kali 64 bit was a bugger..
It works on my Kali linux 64-bit now :-) YEY!
if you are getting this error when trying to start spotify in a terminalwindow:
spotify: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by spotify)
spotify: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/spotify/spotify-client/Data/libcef.so)
spotify: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by /opt/spotify/spotify-client/Data/libcef.so)
or you get the dreaded dependent on libssl0.9.8 erro...
... or spotify wont start when clicking spotifyicon
it most likely will work for you!
To make it work, you can follow these steps:
1. You must downgrade your spotify-client to version 0.9.4
2. you must download and install libssl-0-9-8.
3. you must edit your /var/lib/dpkg/status file and remove the libssl0.9.8 dependency
4. you must make a small script which direct spotify to use libssl0.9.8
Here is the recipe...
This took some long hours finding, so appreciate it :-)
Important note!
The solution where I ended with a working spotify, is based on an earlier version of spotify that uses glibc 1.13, but also uses libssl0.9.8, and as of today kali linux is on libssl1.0.0, so its not compatible(out of the box). So we got to download libssl0.9.8 by itself and only link to it with a spotifystarter script to make it work, and not install libssl0.9.8 system-wide, because it would break something else.
So here it is, its typed as I do it, and I wrote my thoughts...
I read this: https://community.spotify.com/t5/Help-Desktop-Linux-Mac-and/Spotify-0-9-10-for-GNU-Linux-Welcome-to-the-dark-side/td-p/556976/page/26
Aha, so I got to downgrade spotify to an earlier version...
testing: https://github.com/olejon/spotcommander/wiki/DowngradeSpotify
now this is the problem...
libssl could be a problem: http://askubuntu.com/questions/77256/i-want-to-install-libssl-0-9-8
if you already have installed a spotify-client:
uninstalling spotify:
sudo apt-get -y purge spotify-client
I download and use this version: Spotify 0.9.4 64-bit
as it was advised on the spotify-community, since its based on libssl0.9.8
found another nice guide...
trying this:
http://roger.steneteg.org/410/spotify-on-debian-wheezy/
So, I got to install install spotify-client, but it complains that its dependent on libssl...yack! Well, just ignore-depends then:
sudo dpkg --ignore-depends=libssl0.9.8 -i spotify-client_0.9.4.183.g644e24e.428-1_amd64.deb
it installs, giving me:
(Reading database ... 437105 files and directories currently installed.)
Preparing to replace spotify-client 1:0.9.4.183.g644e24e.428-1 (using spotify-client_0.9.4.183.g644e24e.428-1_amd64.deb) ...
Unpacking replacement spotify-client ...
Setting up spotify-client (1:0.9.4.183.g644e24e.428-1) ...
Processing triggers for menu ...
Now install some libs, if needed:
sudo apt-get install libqt4-dbus libqt4-network libnspr4-0d
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Now we got to delete libssl0.9.8 from dependency in the dpkg status, like this:
Go to the /var/lib/dpkg folder, and open the status-file in write-mode:
root@kali:/var/lib/dpkg# vi status
command to search is the slash: /
write spotify-client and hit enter.
it will take you here in the file, now look for the libssl0.9.8:
....
Package: spotify-client
Status: install ok installed
Priority: extra
Section: sound
Installed-Size: 114456
Maintainer: Spotify <libspotify@spotify.com>
Architecture: amd64
Source: spotify
Version: 1:0.9.4.183.g644e24e.428-1
Replaces: spotify-client-gnome-support (<< 1:0.8.0), spotify-client-qt (<< 1:0.8.0)
Provides: spotify-client-gnome-support, spotify-client-qt
Depends: libasound2 (>= 1.0.14), libc6 (>= 2.6), libqt4-dbus (>= 4.5.0), libqtcore4 (>= 4.5.0), libqtgui4 (>= 4.5.0), libqt4-network (>= 4.5.0), libstdc++6 (>= 4.0.0), libxss1 (>= 1:1.2.0), usbutils, libnspr4-0d, libgconf2-4, libgtk2.0-0, libnss3-1d, libssl0.9.8, libglib2.0-0, xdg-utils (>= 1.0.2), dbus-x11, libudev0 | libudev1
Recommends: libavcodec53 | libavcodec52 | libavcodec-extra-53 | libavcodec-extra-52, libavformat53 | libavformat52 | libavformat-extra-53 | libavformat-extra-52
Conflicts: spotify-client-gnome-support (<< 1:0.8.0), spotify-client-qt (<< 1:0.8.0)
Description: Spotify desktop client
...
now edit the file using the insert-command(just press): i
and delete the libssl0.9.8, from the tekst. Don't forget the comma.
now with libssl0.9.8 removed, it should look like this:
...<snip>
libgtk2.0-0, libnss3-1d, libglib2.0-0, xdg-utils (>= 1.0.2), dbus-x11, libudev0 | libudev1 ....
</snip>
if using vi, here is commands to write and quit:
:w to write the file
:q to quit vi
So now we need to download libssl0.9.8 from the Debian package website http://packages.debian.org/squeeze/libssl0.9.8
now unpack it:
dpkg -x libssl0.9.8_0.9.8o-4squeeze14_amd64.deb /tmp/libssl0.9.8
and copy it to a logical folder/path:
sudo mv /tmp/libssl0.9.8/usr/lib /usr/share/spotify/libssl0.9.8
Your spotify now has to be directed to look for the libssl0.9.8 like this:
Make a small script file and name it something with spotify, ex. spotifystart, and add the lines below:
#!/bin/bash
# Add libssl0.9.8 path to the LD_LIBRARY_PATH variable:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/share/spotify/libssl0.9.8 spotify $1
then save the file.
Now edit/make your spotify icon/desktop-entry point to your script:
root@kali:/usr/share/applications# vi spotify.desktop
[Desktop Entry]
Name=Spotify
GenericName=Music Player
Comment=Listen to music using Spotify
Icon=spotify-client
Exec=spotify %U
TryExec=spotify
Terminal=false
Type=Application
Categories=Qt;Audio;Music;Player;AudioVideo
MimeType=x-scheme-handler/spotify
change the two lines to:
Exec=spotifystart %U
TryExec=spotify-start
Write the file
And now for the finale....
trying it, running the startupscript:
nr1@kali:/usr/local/bin$ spotifystart
00:41:33.216 I [breakpad.cpp:107 ] Registered Breakpad for product: spotify
00:41:33.218 I [translate.cpp:140 ] Reloading language file
....
Hurra! it starts!
If this didnt work, let me know '-(
If it worked, let me know :-)
onsdag 17. desember 2014
NVIDIA GeForce Driver installasjon Kali linux 64-bit
Installere nvidia skjermkort på 64-bit kali linux
første forsøk med nvidias egne drivere gikk ikke. Se deler av den metoden her:følger denne nå: http://www.blackmoreops.com/2014/06/27/kali-linux-1-0-7-kernel-3-14-install-proprietary-nvidia-driver/
root@kali:/home/nr1# apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-3.14-kali1-amd64 is already the newest version.
The following packages were automatically installed and are no longer required:
baobab caribou caribou-antler empathy empathy-common fonts-cantarell gcalctool gdm3 gnome-backgrounds
gnome-dictionary gnome-disk-utility gnome-font-viewer gnome-icon-theme-extras gnome-packagekit
gnome-packagekit-data gnome-screenshot gnome-system-log gucharmap libavahi-gobject0 libavahi-ui-gtk3-0
libcaribou-gtk-module libcaribou-gtk3-module libchamplain-0.12-0 libchamplain-gtk-0.12-0 libgadu3 libgdict-1.0-6
libgdict-common libgdu-gtk0 libgeocode-glib0 libmozjs24d libtelepathy-farstream2 libtsk3-3 nautilus-sendto-empathy
network-manager-gnome sound-theme-freedesktop telepathy-gabble telepathy-logger telepathy-salut vino xulrunner-24.0
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@kali:/home/nr1# apt-get install nvidia-kernel-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
baobab caribou caribou-antler empathy empathy-common fonts-cantarell gcalctool gdm3 gnome-backgrounds
gnome-dictionary gnome-disk-utility gnome-font-viewer gnome-icon-theme-extras gnome-packagekit
gnome-packagekit-data gnome-screenshot gnome-system-log gucharmap libavahi-gobject0 libavahi-ui-gtk3-0
libcaribou-gtk-module libcaribou-gtk3-module libchamplain-0.12-0 libchamplain-gtk-0.12-0 libgadu3 libgdict-1.0-6
libgdict-common libgdu-gtk0 libgeocode-glib0 libmozjs24d libtelepathy-farstream2 libtsk3-3 nautilus-sendto-empathy
network-manager-gnome sound-theme-freedesktop telepathy-gabble telepathy-logger telepathy-salut vino xulrunner-24.0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
glx-alternative-mesa glx-alternative-nvidia glx-diversions nvidia-alternative nvidia-kernel-common nvidia-modprobe
Suggested packages:
nvidia-driver
The following NEW packages will be installed:
glx-alternative-mesa glx-alternative-nvidia glx-diversions nvidia-alternative nvidia-kernel-3.14-kali1-amd64
nvidia-kernel-common nvidia-modprobe
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,757 kB/6,783 kB of archives.
After this operation, 21.8 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://http.kali.org/kali/ kali/contrib nvidia-modprobe amd64 334.16-1kali1 [16.5 kB]
Get:2 http://http.kali.org/kali/ kali/non-free nvidia-alternative amd64 331.67-2kali1 [120 kB]
...
Setting up glx-alternative-mesa (0.4.1kali1) ...
update-alternatives: using /usr/lib/mesa-diverted to provide /usr/lib/glx (glx) in auto mode
Setting up glx-alternative-nvidia (0.4.1kali1) ...
update-initramfs: deferring update (trigger activated)
Setting up nvidia-kernel-common (20131102+1~bpo70+1) ...
update-rc.d: We have no instructions for the nvidia-kernel init script.
update-rc.d: It looks like a non-network service, we enable it.
update-initramfs: deferring update (trigger activated)
Setting up nvidia-modprobe (334.16-1kali1) ...
Setting up nvidia-alternative (331.67-2kali1) ...
Processing triggers for nvidia-alternative ...
update-alternatives: using /usr/lib/nvidia/current to provide /usr/lib/nvidia/nvidia (nvidia) in auto mode
Processing triggers for glx-alternative-nvidia ...
update-initramfs: deferring update (trigger activated)
Setting up nvidia-kernel-3.14-kali1-amd64 (331.67+kali1+2kali1+3.14.4-1kali1) ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.14-kali1-amd64
root@kali:/home/nr1#
OBS! DET KAN HENDE DU SKAL HOPPE OVER DENNE dkms-greia OG GÅ RETT TIL INSTALLASJON AV nvidia-settings
root@kali:/home/nr1# sudo apt-get install nvidia-kernel-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
baobab caribou caribou-antler empathy empathy-common fonts-cantarell gcalctool gdm3 gnome-backgrounds
gnome-dictionary gnome-disk-utility gnome-font-viewer gnome-icon-theme-extras gnome-packagekit
gnome-packagekit-data gnome-screenshot gnome-system-log gucharmap libavahi-gobject0 libavahi-ui-gtk3-0
libcaribou-gtk-module libcaribou-gtk3-module libchamplain-0.12-0 libchamplain-gtk-0.12-0 libgadu3 libgdict-1.0-6
libgdict-common libgdu-gtk0 libgeocode-glib0 libmozjs24d libtelepathy-farstream2 libtsk3-3 nautilus-sendto-empathy
network-manager-gnome sound-theme-freedesktop telepathy-gabble telepathy-logger telepathy-salut vino xulrunner-24.0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
dkms libgl1-nvidia-glx libgl1-nvidia-glx:i386 libgl1-nvidia-glx-i386:i386 libnvidia-ml1 libvdpau1
linux-headers-amd64 nvidia-driver nvidia-support nvidia-vdpau-driver xserver-xorg-video-nvidia
Suggested packages:
nvidia-kernel-dkms:i386 nvidia-kernel-source:i386
Recommended packages:
linux-image nvidia-settings libgl1-nvidia-glx-i386
The following NEW packages will be installed:
dkms libgl1-nvidia-glx libgl1-nvidia-glx:i386 libgl1-nvidia-glx-i386:i386 libnvidia-ml1 libvdpau1
linux-headers-amd64 nvidia-driver nvidia-kernel-dkms nvidia-support nvidia-vdpau-driver xserver-xorg-video-nvidia
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 33.0 MB/33.1 MB of archives.
After this operation, 118 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://http.kali.org/kali/ kali/non-free libgl1-nvidia-glx amd64 331.67-2kali1 [10.2 MB]
...
Conflicting nouveau kernel module loaded │
│ │
│ The free nouveau kernel module is currently loaded and conflicts with the non-free nvidia kernel module. │
│ │
│ The easiest way to fix this is to reboot the machine once the installation has finished. │
│
OK
┌──────────────────────────────┤ Configuring xserver-xorg-video-nvidia ├───────────────────────────────┐
│ │
│ Manual configuration required to enable NVIDIA driver │
│ │
│ The NVIDIA driver is not yet configured; it needs to be enabled in xorg.conf before it can be used. │
│ │
│ Please see the package documentation for instructions. │
│ │
│ <Ok> │
│ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────┘
OK
...
update-initramfs: Generating /boot/initrd.img-3.14-kali1-amd64
Setting up nvidia-support (20131102+1~bpo70+1) ...
Setting up libgl1-nvidia-glx:amd64 (331.67-2kali1) ...
Setting up libgl1-nvidia-glx:i386 (331.67-2kali1) ...
Setting up libnvidia-ml1:amd64 (331.67-2kali1) ...
Setting up libvdpau1:amd64 (0.4.1-7) ...
Setting up xserver-xorg-video-nvidia (331.67-2kali1) ...
Setting up nvidia-vdpau-driver:amd64 (331.67-2kali1) ...
Setting up dkms (2.2.0.3-1.2) ...
Setting up nvidia-kernel-dkms (331.67-2kali1) ...
Loading new nvidia-current-331.67 DKMS files...
First Installation: checking all kernels...
Building only for 3.14-kali1-amd64
Building initial module for 3.14-kali1-amd64
Done.
nvidia-current:
Running module version sanity check.
Error! Module version 331.67 for nvidia-current.ko
is not newer than what is already found in kernel 3.14-kali1-amd64 (331.67).
You may override by specifying --force.
nvidia-uvm.ko:
Running module version sanity check.
- Original module
- Installation
- Installing to /lib/modules/3.14-kali1-amd64/updates/dkms/
depmod....
DKMS: install completed.
Setting up nvidia-driver (331.67-2kali1) ...
Setting up libgl1-nvidia-glx-i386 (331.67-2kali1) ...
Setting up linux-headers-amd64 (3.14+57+kali1) ...
root@kali:/home/nr1#
root@kali:/home/nr1# apt-get install nvidia-xconfig
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
baobab caribou caribou-antler empathy empathy-common fonts-cantarell gcalctool gdm3 gnome-backgrounds
gnome-dictionary gnome-disk-utility gnome-font-viewer gnome-icon-theme-extras gnome-packagekit
gnome-packagekit-data gnome-screenshot gnome-system-log gucharmap libavahi-gobject0 libavahi-ui-gtk3-0
libcaribou-gtk-module libcaribou-gtk3-module libchamplain-0.12-0 libchamplain-gtk-0.12-0 libgadu3 libgdict-1.0-6
libgdict-common libgdu-gtk0 libgeocode-glib0 libmozjs24d libtelepathy-farstream2 libtsk3-3 nautilus-sendto-empathy
network-manager-gnome sound-theme-freedesktop telepathy-gabble telepathy-logger telepathy-salut vino xulrunner-24.0
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
nvidia-xconfig
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/86.4 kB of archives.
After this operation, 197 kB of additional disk space will be used.
Selecting previously unselected package nvidia-xconfig.
(Reading database ... 362076 files and directories currently installed.)
Unpacking nvidia-xconfig (from .../nvidia-xconfig_304.48-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up nvidia-xconfig (304.48-1) ...
root@kali:/home/nr1#
reboot
vil ikke starte x, får opp tekstbasert innlogging
root@kali #
prøver å
apt-get install nvidia-settings
slik han foreslårroot@kali:~$ sudo apt-get install nvidia-settings
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
baobab caribou caribou-antler empathy empathy-common fonts-cantarell gcalctool gdm3 gnome-backgrounds
gnome-dictionary gnome-disk-utility gnome-font-viewer gnome-icon-theme-extras gnome-packagekit
gnome-packagekit-data gnome-screenshot gnome-system-log gucharmap libavahi-gobject0 libavahi-ui-gtk3-0
libcaribou-gtk-module libcaribou-gtk3-module libchamplain-0.12-0 libchamplain-gtk-0.12-0 libgadu3 libgdict-1.0-6
libgdict-common libgdu-gtk0 libgeocode-glib0 libmozjs24d libtelepathy-farstream2 libtsk3-3 nautilus-sendto-empathy
network-manager-gnome sound-theme-freedesktop telepathy-gabble telepathy-logger telepathy-salut vino xulrunner-24.0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libxnvctrl0
The following packages will be REMOVED:
libgl1-nvidia-glx libgl1-nvidia-glx:i386 libgl1-nvidia-glx-i386:i386 nvidia-alternative nvidia-driver
nvidia-kernel-3.14-kali1-amd64 nvidia-kernel-dkms xserver-xorg-video-nvidia
The following NEW packages will be installed:
libxnvctrl0 nvidia-settings
0 upgraded, 2 newly installed, 8 to remove and 0 not upgraded.
Need to get 848 kB of archives.
After this operation, 135 MB disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://http.kali.org/kali/ kali/contrib libxnvctrl0 amd64 304.88-1 [16.8 kB]
Get:2 http://http.kali.org/kali/ kali/contrib nvidia-settings amd64 304.88-1 [831 kB]
Fetched 848 kB in 1s (697 kB/s)
(Reading database ... 362080 files and directories currently installed.)
Removing nvidia-driver ...
Removing xserver-xorg-video-nvidia ...
Removing libgl1-nvidia-glx:amd64 ...
Removing libgl1-nvidia-glx-i386 ...
Removing libgl1-nvidia-glx:i386 ...
Removing nvidia-kernel-dkms ...
-------- Uninstall Beginning --------
Module: nvidia-current
Version: 331.67
Kernel: 3.14-kali1-amd64 (x86_64)
-------------------------------------
Status: Before uninstall, this module version was ACTIVE on this kernel.
nvidia-current.ko:
- Uninstallation
- Deleting from: /lib/modules/3.14-kali1-amd64/
rmdir: failed to remove `': No such file or directory
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
nvidia-uvm.ko:
- Uninstallation
- Deleting from: /lib/modules/3.14-kali1-amd64/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
depmod....
DKMS: uninstall completed.
------------------------------
Deleting module version: 331.67
completely from the DKMS tree.
------------------------------
Done.
Removing nvidia-kernel-3.14-kali1-amd64 ...
Removing nvidia-alternative ...
Processing triggers for man-db ...
Processing triggers for glx-alternative-nvidia ...
update-alternatives: using /usr/lib/mesa-diverted to provide /usr/lib/glx (glx) in auto mode
update-initramfs: deferring update (trigger activated)
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.14-kali1-amd64
Selecting previously unselected package libxnvctrl0.
(Reading database ... 361826 files and directories currently installed.)
Unpacking libxnvctrl0 (from .../libxnvctrl0_304.88-1_amd64.deb) ...
Selecting previously unselected package nvidia-settings.
Unpacking nvidia-settings (from .../nvidia-settings_304.88-1_amd64.deb) ...
Processing triggers for menu ...
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Setting up libxnvctrl0 (304.88-1) ...
Setting up nvidia-settings (304.88-1) ...
Processing triggers for menu ...
nr1@kali:~$
tester om det er blitt installert og kjører en modul til nvidia
oot@kali:/home/nr1# lsmod | grep nvidia
nvidia 10651813 0
i2c_core 24265 7 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,nvidia,videodev
ser sånn ut
sjekker om nouveau fortsatt kjører:
root@kali:/home/nr1# lsmod | grep nouveau
root@kali:/home/nr1#
ser ikke sånn ut
cat: /etc/modprobe.d/nvidia.conf: No such file or directory
root@kali:/home/nr1# cat /etc/modprobe.d/nvidia-kernel-common.conf alias char-major-195* nvidia options nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=44 NVreg_DeviceFileMode=0660 # To enable FastWrites and Sidebus addressing, uncomment these lines # options nvidia NVreg_EnableAGPSBA=1 # options nvidia NVreg_EnableAGPFW=1
root@kali:/home/nr1# cat /etc/modprobe.d/nvidia-blacklists-nouveau.conf cat: /etc/modprobe.d/nvidia-blacklists-nouveau.conf: No such file or directory
ser ut som alt skal funke da
reboot
logger inn.
tester: nvidia-settings
msgbox:
"You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run `nvidia-xconfig` as root), and restart the X server. "
f..k!
nvidia-xconfig
reboot
no gui! didnt work!
Siste jeg prøvde var å:
installere grafikk-kort driver fra Synaptic Packet Manager
søkte på nvidia
Fant den siste for amd64 og installerte, da fjernet den nvidia-settings.
sjekker:
nr1@kali:~$ lsmod | grep nouveau nr1@kali:~$ lsmod | grep nvidia nvidia 10651813 0 i2c_core 24265 7 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,nvidia,videodev nr1@kali:~$
nr1@kali:~$ glxinfo name of display: :0 display: :0 screen: 0 direct rendering: Yes
...
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method,
GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_MESA_copy_sub_buffer, GLX_INTEL_swap_event
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
seems that it worked, but didnt try out on game or anything yet.
30+ things to do after installing a debian-based linux
This guide is in my native language, Norwegian. It contains my favorite installs after installing a debian-based linux OS, like jessie/sid, wheezy, kali linux etc.
Denne guiden er laget for å huske alle programmer/kommandoer for å installere et debian-basert linux-OS med alle programmer som jeg liker å ha og bruker ofte.
ting jeg vil ha til å fungere, men enda ikke funker på kali 64-bit system
spotify
nvidia geforce 860m
Denne er under oppdatering, og ikke ferdig. (still in progress)
1. Oppgradere Jessie Kun hvis du har installert Wheezy/Jessie, og vil oppgradere.
- legg disse i din /etc/apt/sources.list
deb http://ftp.us.debian.org/debian jessie main
deb-src http://ftp.us.debian.org/debian jessie main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
- gå videre med:
apt-get update
apt-get upgrade
apt-get dist-upgrade
snatched from: http://www.dailylinuxnews.com/blog/2014/09/things-to-do-after-installing-debian-jessie/
2. Innstallere Mozilla Firefox
- For å få flash og spille av flere multimedia filtyper bør du avinnstallere Iceweasel som er en firefox-klone og installere firefox
apt-get remove iceweasel
apt-get update
apt-get install firefox-mozilla-build
4. Innstallere Flash-player
Last ned flash fra adobe sin side.Pakk ut filene. Da har du dette i den nye mappen:
libflashplayer.so readme.txt usr
kopier den nye usr-mappen i pakken til /usr på din maskin:
cp -R usr/ /usr
kopier libflashplayer.so til plugins-mappen til firefox feks:
cp libflashplayer.so /usr/lib/mozilla/plugins/
Restart firefox.
firefox &
3. Spotify på Debian/Kali linux
Du må oppdatere din /etc/apt/sources.list slik:
# 1. Add this line to your list of repositories by
# editing your /etc/apt/sources.list
deb http://repository.spotify.com stable non-free
#If you want to verify the downloaded packages, you will need to add our public key:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 94558F59
#Run apt-get update
sudo apt-get update
#Install spotify!
sudo apt-get install spotify-client
# 5. Start spotify
spotify &
På kali linux 64-bit maskinen min har jeg fortsatt ikke fått spotify til å fungere native (uten wine), men på kali linux og debian jessie og wheezy fungerer den fint med ovenstående kommandoer.
- følgende feilmelding dukker opp:
- spotify: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by spotify)
- spotify: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/spotify/spotify-client/Data/libcef.so)
- spotify: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by /opt/spotify/spotify-client/Data/libcef.so)
tester: https://www.youtube.com/watch?v=b0KbXS4_Kk8
funker ikke
leste denne: https://community.spotify.com/t5/Help-Desktop-Linux-Mac-and/Spotify-0-9-10-for-GNU-Linux-Welcome-to-the-dark-side/td-p/556976/page/26
så må nedgradere spotify til en tidligere versjon
tester: https://github.com/olejon/spotcommander/wiki/DowngradeSpotify
libssl kan bli et problem: http://askubuntu.com/questions/77256/i-want-to-install-libssl-0-9-8
funket ikke med versjon: Spotify 0.9.4 64-bit
som ble foreslått på spotify-community
uninstalling spotify:
sudo apt-get -y purge spotify-client
prøver denne:
http://roger.steneteg.org/410/spotify-on-debian-wheezy/
sudo apt-get install libqt4-dbus libqt4-network libnspr4-0d
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Må inn å slette libssl0.9.8 fra dependency i status:
root@kali:/var/lib/dpkg# vi status
bruk kommando / for å søke
skriv inn spotify-client
du kommer da hit i fila:
bruk kommando: i
for å inserte noe/slette fra fila
Package: spotify-client
Status: install ok installed
Priority: extra
Section: sound
Installed-Size: 114456
Maintainer: Spotify <libspotify@spotify.com>
Architecture: amd64
Source: spotify
Version: 1:0.9.4.183.g644e24e.428-1
Replaces: spotify-client-gnome-support (<< 1:0.8.0), spotify-client-qt (<< 1:0.8.0)
Provides: spotify-client-gnome-support, spotify-client-qt
Depends: libasound2 (>= 1.0.14), libc6 (>= 2.6), libqt4-dbus (>= 4.5.0), libqtcore4 (>= 4.5.0), libqtgui4 (>= 4.5.0), libqt4-network (>= 4.5.0), libstdc++6 (>= 4.0.0), libxss1 (>= 1:1.2.0), usbutils, libnspr4-0d, libgconf2-4, libgtk2.0-0, libnss3-1d, libssl0.9.8, libglib2.0-0, xdg-utils (>= 1.0.2), dbus-x11, libudev0 | libudev1
Recommends: libavcodec53 | libavcodec52 | libavcodec-extra-53 | libavcodec-extra-52, libavformat53 | libavformat52 | libavformat-extra-53 | libavformat-extra-52
Conflicts: spotify-client-gnome-support (<< 1:0.8.0), spotify-client-qt (<< 1:0.8.0)
Description: Spotify desktop client
:w for å skrive fila
:q for å avslutte vi
So now we need to download libssl0.9.8 from the Debian package website http://packages.debian.org/squeeze/libssl0.9.8
nr1@kali:~/downloads$ dpkg -x libssl0.9.8_0.9.8o-4squeeze14_amd64.deb /tmp/libssl0.9.8
nr1@kali:~/downloads$ sudo mv /tmp/libssl0.9.8/usr/lib /usr/share/spotify/libssl0.9.8
root@kali:/usr/share/applications# vi spotify.desktop
endre til:
Exec=spotifystart %U TryExec=spotify-start
Lag et script du feks kaller noe med spotify: spotifystart
#!/bin/bash # Add libssl0.9.8 path LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/share/spotify/libssl0.9.8 spotify $1
Hurra!
nr1@kali:/usr/local/bin$ spotifystart
00:41:33.216 I [breakpad.cpp:107 ] Registered Breakpad for product: spotify
00:41:33.218 I [translate.cpp:140 ] Reloading language file
it starts!
4. Innstallere KDE Desktop
KDE sin desktop "Plasma" er full av finesser og gadgets. Du kan si hva du vil om den, men jeg liker den.sudo apt-get install kde-plasma-desktop
Installere skjermkort drivere feks. Nvidia GeForce 860
Installere ekstra codecs
sudo apt-get install libavcodec-extrasudo apt-get install gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad gstreamer0.10-fluendo-mp3 gstreamer0.10-pulseaudio
sudo apt-get install libgstreamer-perl libgstreamer-interfaces-perl
Java8 SDK and JRE
from: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
su root
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer
exit
Scribus
Programmeringsverktøy
Python
Python-kivy(fungerer kun på debian sid)
Eclipse - rammeverk for programutvikling
sudo apt-get install eclipseFonter
sudo apt-get install ttf-freefont ttf-mscorefonts-installer ttf-bitstream-vera ttf-dejavu ttf-liberationicedtea for java-plugins
sudo apt-get install icedtea-plugin
Diverse - PDF-leser okular, evince, libreoffice, vlc, shotwell
sudo apt-get install file-roller evince okular parcellite qalculate clementine vlc bleachbit shotwell gparted gnome-disk-utility libreoffice chromium terminator gimp
Firewall
UFW - Uncomplicated FireWallsudo apt-get install ufw
Grafisk grensesnitt for UFW
sudo apt-get install gufw
Nettverk
Network manager og nm-applet (i verktøylinjen)
sudo apt-get install network-manager-gnome
eller hvis bruker kde:
network-manager-kde
start nm-applet:
nm-applet &
Pakke-konverterer Alien
RPM
packages are precompiled and built for Red Hat Based Linux Distribution
and can be installed only using yum, Zypper and RPM based package
managers.
Since Kali Linux is based on Debian you can not install RPM packages directly using apt or dpkg package managers.
However, you can try a utility called Alien which can convert one package format into other but this doesn't mean every RPM will work since packages link to another packages for dependencies and this can cause troubles.
To install Alien and necessary package, run this command
To convert a package from RPM to debian format, use this command:
To install the package:
Since Kali Linux is based on Debian you can not install RPM packages directly using apt or dpkg package managers.
However, you can try a utility called Alien which can convert one package format into other but this doesn't mean every RPM will work since packages link to another packages for dependencies and this can cause troubles.
To install Alien and necessary package, run this command
$ sudo apt-get install alien dpkg-dev debhelper build-essential
To convert a package from RPM to debian format, use this command:
$ sudo alien packagename.rpm
To install the package:
$ sudo dpkg -i packagename.deb
Skjermkort - NVIDIA GeForce 860 linux driver
På debian var det problemer å starte X med dette skjermkortet, måtte prøve med forskjellige innstillinger i grub: nomodeset, nouveau.setmode=0 osv, men fungerte ikke, latterlig!På kali linux fungerer det fint, uten å redigere i grub. Men jeg vil ha grafikk aksellerasjon.
Mer om dette her:
http://www.blackmoreops.com/2014/06/27/kali-linux-1-0-7-kernel-3-14-install-proprietary-nvidia-driver/
Last ned driver fra nvidia her:
http://www.geforce.com/drivers/results/80647
installere kjerne kildefiler /kernel sources:
sudo apt-get install linux-headers-`uname -r
README her:
http://us.download.nvidia.com/XFree86/Linux-x86_64/340.65/README/index.html
OBS! til slutt fant run-filen kildefilene den trengte og det virket som innstallasjonen gikk bra, men så så jeg på denne siden til blackmoreops og gjorde derfor følgende:
First check if system is using glx module.
glxinfo | grep -i "direct rendering"
It should output “direct rendering: Yes” MIN output var: ... vel borte nå, men det var ikke yes!
(NÅ er den: Error: couldn't find RGB GLX visual or fbconfig)
nr1@kali:~$ sudo dpkg --configure -a
Setting up nvidia-installer-cleanup (20131102+1~bpo70+1) ...
WARNING: The '--no-runlevel-check' option is deprecated: nvidia-installer will ignore this option.
Welcome to the NVIDIA Software Installer for Unix/Linux
If you plan to no longer use the NVIDIA driver, you should make sure that no X screens are configured to use the
NVIDIA X driver in your X configuration file. If you used nvidia-xconfig to configure X, it may have created a
backup of your original configuration. Would you like to run `nvidia-xconfig --restore-original-backup` to
attempt restoration of the original X configuration file?
[default: (N)o]: No
N
OBS!!! DETTE TAR LANG TID... MAN TROR IKKE DET FUNGERER FORDI MAN IKKE SER AT DEN JOBBER, MEN DET GJØR DEN VIST...
Parsing log file:
Parsing: [# ] 1%dpkg: error processing nvidia-installer-cleanup (--configure):
subprocess installed post-installation script was killed by signal (Terminated)
Parsing: [##############################] 100%
Validating previous installation:
Validating: [## ] 4%Errors were encountered while processing:
nvidia-installer-cleanup
nr1@kali:~$ No
bash: No: command not found
nr1@kali:~$ N
bash: N: command not found
nr1@kali:~$
Validating: [##############################] 100%
Uninstalling NVIDIA Accelerated Graphics Driver for Linux-x86_64 (1.0-34065 (340.65)):
Uninstalling: [##############################] 100%
Uninstallation of existing driver: NVIDIA Accelerated Graphics Driver for Linux-x86_64 (340.65) is
complete.
Se mer på denne: http://apt-get-upgrade-linux.blogspot.de/2014/12/nvidia-geforce-driver-installasjon-kali.html
SD card reader driver
Bruk av minnekort SD til kamera med fler, trengs denne driveren.sudo apt-get install exfat-fuse exfat-utils
VPN - Virtual Private Network
Unngå å bli overvåket, krypter din internetttilkobling ved hjelp av VPN.feks. mullvad eller lignende.
Abonner på:
Innlegg (Atom)