måndag 20 april 2015

archlinux - Install and configure has never been easier!

### Project no longer maintained

# Archlinux U Install

Install and configure archlinux has never been easier!

You can try it first with a `virtualbox`

## Prerequisites

- A working internet connection
- Logged in as 'root'

## How to get it
### With git
- Get list of packages and install git: `pacman -Sy git`
- get the script: `git clone git://github.com/helmuthdu/aui`

20 amusing Linux commands to have fun with the terminal

The linux terminal is not always dull and boring. There are commands to make it do some funny acts to entertain the user.

Here is a small collection of such commands.

1. Cowsay

Install cowsay with apt.
$ sudo apt-get install cowsay
Cowsay is a talking cow that will speak out anything you want it to.
$ cowsay "Hi, How are you"      
 _________________
< Hi, How are you >
 -----------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
Don't like cows ? No problem there are other animals in the cow zoo. To find out how many, use the l option to get a list

söndag 19 april 2015

archlinux - like apt-get source coreutils / buil-dep

I am using Arch Linux. I want to do the same thing like apt-get source coreutils; is it possible to download sources with Pacman? I didn't find a solution in the man pages.

How can I get the source code of a package?

archlinux - Swedish char åäö in xorg/kde setup from terminal



#-edit-------------------------------------------------------#
# sudo nano /etc/X11/xorg.conf.d/keyboard.conf #
#--insert --------------------------------------------------#


Section "InputClass"
Identifier   "Keyboard defaults"
MatchIsKeyboard   "yes"
Option      "XkbLayout" "se"
Option      "XkbModel" "asus_laptop"
Option      "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

#-edit------------------------------------------------------#
# sudo nano /etc/rc.conf, under LOCALIZATION #
#--insert---------------------------------------------------#

LOCALE="en_US.UTF-8"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Stockholm"
KEYMAP="sv-latin1"
CONSOLEFONT="Lat2-Terminus16"
CONSOLEMAP=
USECOLOR="yes"


"Now it is time for a reboot then you should have åäö"
hynten@speed-mailer.com

archlinux - no internet how to connect to eth0 and wlan in terminal

----------------------------------------------
- identify your eth0 network / wlan -
----------------------------------------------

wlan: $ wifi-menu  <-- needs dialog: $ pacman -S dialog
eth0: $ dhcpcd

--------------------------------------------
- check if you got internet acess: -
--------------------------------------------

$ ping www.google.com <---repated ping
$ ping -c 3 www.google.com <--- 3 times...

-------------------------------------------------------
- ARCH vs Debian sources.list / mirrorlist -
-------------------------------------------------------

in debian we did $ nano /etc/apt/sources.list
here in arch we do this: $ nano /etc/pacman.d/mirrorlist



hynten@speed-mailer.com

archinux - backup installed packages install on other computer own "repo" / "mirror"

# $ cd /home/hynt/
# $ mkdir repo
# $ cp -r /var/cache/pacman/pkg/  /home/hynt/repo
# $ comm -13 <(pacman -Qmq | sort) <(pacman -Qqe | sort) > /home/hynt/repo/pkg/pkglist
# $ cd repo
# $ cd pkg
# $ cat pkglist

# add local repo in mirrorlist

# $ sed -i -e '1iServer = file:///home/hynt/repo/pkg/\' /etc/pacman.d/mirrorlist

# install all packages on another computer

# $ cd /home/hynt/repo/pkg/ ; pacman -S $(cat pkglist)

archlinux - google translate in terminal



$ pacman -S packer
$ packer -S google-translate
$ google-translate sv en "det var mycket mera jobb att få det att fungera under debian"

it was a lot more work to get it to work under Debian


archlinux - How install packages & more

-----------------------------------
- to install ex firefox run:  -
----------------------------------
-
pacman -S firefox

------------------------------------------------------
- but pacman only take offical packages  -
------------------------------------------------------

then we got yaourt, pacaur, packer
packer -S vlc spotify <--- AND more....

-------------------------------------------
- Get a list of installed packages -
-------------------------------------------

pacman -Q

Linux Debian - Bye! Debian Welcome Arch!

goodbye debian find it difficult to sit at the same it works all too well!! just read site site, now then i rember the most of it time to end it all.. now whe welcome arch

Linux - Debian - Hyntish Bash Whiptail Menu v0.6

<

























  • apt-get build-dep whiptail ; apt-get install whiptail
  • apt-get install dpkg-repack ; apt-get install fakeroot
  • osv... find out done the page.. maybe missed lite depends...
  • then you find out your self...


  • NEW FUNCTION!


  • remove all installed packages to day...
  • Make Your own deb cd / dvd
  • Mirror Hardrive to usb uses dd
  • and some more stuff..
  • test if you are stuck in a chroot within... (from v0.6)

  • www http://alturl.com/w9wbu
  • email hynten@speed-mailer.com
  • depends whiptail fakeroot grep sed dpkg-repack dpkg-dev apt-move sudo \
  • taskset gzip nano awk perl cowsay toilet rmdupe apt-cdrom genisoimage

  • sudo bash meny < -- TO RUN!


  • password = 0


  • LINK TO SCRIPT v0.6
  • http://pastebin.com/raw.php?i=KMMkQ0ZH

    Linux - Debian - Detecting a chroot jail from within

    http://pastebin.com/raw.php?i=UTq5JF1j





    lördag 18 april 2015

    Linux - Debian - What chroot() is really for

    What chroot() is really for

    By Jake Edge
    October 3, 2007
    The chroot() system call is often misunderstood, as it can appear to do much more than it actually does. The confusion arises because it appears to some to be a security tool – there are limited security uses – when it is meant as a tool for isolating processes for installation, debugging, and legacy library usage.

    Debian - Linux - Apt-Pinning for Beginners

    Why apt-pinning?

    Do you run Debian? Have you ever gotten annoyed at how Debian Stable always seems to be out of date?
    I will show you a way that you can have apt mix-and-match between Stable, Testing, and Unstable sources. This will allow you to run a mostly-Stable system, but also track the latest and greatest of t



    Linux - Debian - Firefox search addon backup ... maybe share that u think?

    Extensions RSS-Feed


    firefox has a plugin that makes it possible to visit a website and save the search function to the bar... and it don't sync....
    but if we backup and hare..

    somthing like this...
    or am I completely out biking as we say here in Sweden

    Swedish lyrics - Kartellen Ställ dig upp!!

    En natt hade en man en dröm, han drömde att han gick längst en strand tillsammans med gud, på himlen trädde plötsligt händer från hans liv fram, han märkte efter varje period i livet fanns spår av två par fötter, de ena spåret var hans de andra var guds, när den sista delen av hans liv framträdde såg han tillbaka på fotspåren i sanden
    då såg han många av sin lilla vandring fanns det bara ett fotspår han märkte också att detta inträffade under det mest ensamna och de svåra perioderna av sitt liv detta bekymrade honom verkligen

    Linux - Debian - Extract iso file to folder... works in termial ...

    do the following:
    7z e my.iso -o/tmp/output-dir


    Consider using x instead of e (see the man page). The man page advises against using the -r flag (without explaining why) – it doesn’t seem to be necessary anyway. The -o flag must have no spaces between it and the argument.

    Despite the flaky UI and documentation, 7z has always worked for me in extracting ISO’s – and I’ve used it a lot.

    LInux - Debian - How to mount an ISO file in Linux?




















    tried to install all the files with a small script I built but something went wrong and iso got fucked up. done now i now..
    pack up iso or burn to a disc

    Linux - Debian - Extract iso file to folder... works in termial ...

    was kind of drunk /high but works great... not sexy code..
    but 'm newbie


    function ALL-INSTALLED-PACKAGES () {
    AllInstalledPackagesSavePath=$(whiptail --inputbox "Where To Save Created Script:?" 8 78 "/home/hynt/" --title "Enter like ex. /home/hynt/backup/" 3>&1 1>&2 2>&3)
    cat /etc/apt/sources.list >> /$AllInstalledPackagesSavePath/sources.list
    sudo dpkg --get-selections | awk '$2 ~ /^install$/ {print $1}' > /$AllInstalledPackagesSavePath/installed
    sort $AllInstalledPackagesSavePath/installed | uniq -u >> /$AllInstalledPackagesSavePath/installed
    awk '{print "sudo apt-get -y --force-yes --allow-unauthenticated --ignore-missing install --reinstall " $0}' < /$AllInstalledPackagesSavePath/installed > $AllInstalledPackagesSavePath/installed-package-installer-`date +%Y-%m-%d`.sh
    perl -pi -e 'print "sudo cp sources.list /etc/apt/ && sudo apt-get update\n" if $.==1' /$AllInstalledPackagesSavePath/installed-package-installer-`date +%Y-%m-%d`.sh
    perl -pi -e 'print "#! /bin/bash\n" if $.==1' $AllInstalledPackagesSavePath/installed-package-installer-`date +%Y-%m-%d`.sh
    echo "sudo apt-get dist-upgrade" >> /$AllInstalledPackagesSavePath/installed-package-installer-`date +%Y-%m-%d`.sh
    chmod u=rwx,g=rx,o=r /$AllInstalledPackagesSavePath/installed-package-installer-`date +%Y-%m-%d`.sh
    sleep 2
    rm $AllInstalledPackagesSavePath/installed
    sudo echo echo "hynten@speed-mailer.com" >> $AllInstalledPackagesSavePath/installed-package-installer-`date +%Y-%m-%d`.sh
    red "RESTART-SCRIPT" ; RESTART-SCRIPT ; sleep 4
    }
    #-----------------------------------------------


    function DPKG-REPACK () {
    whiptail --title "DPKG-REPACK" --msgbox "All Installed Packages create repack 2 *.deb files script" 8 78
    repackSavePath=$(whiptail --inputbox "Where To Save Created Script:?" 8 78 "/home/hynt/" --title "Enter like ex. /home/hynt/backup/" 3>&1 1>&2 2>&3)
    dpkg -l | awk '{print $2}' | sed "s/^/\ fakeroot -u dpkg-repack /; s/$/\ /;" > /$repackSavePath/repack-all-packages-`date +%Y-%m-%d`.sh
    sed '1,6d' < /$repackSavePath/repack-all-packages-`date +%Y-%m-%d`.sh > /$repackSavePath/repack-all-package-`date +%Y-%m-%d`.sh 
    rm /$repackSavePath/repack-all-packages-`date +%Y-%m-%d`.sh
    chmod u=rwx,g=rx,o=r /$repackSavePath/repack-all-package-`date +%Y-%m-%d`.sh
    }

    function SCAN-PACKAGES-2-DVD () {
    ScanPackages2DvdPath=$(whiptail --inputbox "Scanpackages To Make Your Own Deb dvd/cd?" 8 78 "/home/snort/deb/" --title "Enter like ex. /home/snort/deb/" 3>&1 1>&2 2>&3)
    ScanPackages2DvdName=$(whiptail --inputbox "Give me a name to give to the iso file?" 8 78 "MyDebFiles-`date +%Y-%m-%d`" --title "Enter like ex. MyDebFiles-`date +%Y-%m-%d`" 3>&1 1>&2 2>&3)
    cd /$ScanPackages2DvdPath/ ; dpkg-scanpackages -m . /dev/null | gzip -9c > Packages.gz
    #cd /$ScanPackages2DvdPath/ ; mv *.sh ../      #flytta inte installerar med den

    genisoimage -r -o /$ScanPackages2DvdPath/$ScanPackages2DvdName.iso /$ScanPackages2DvdPath/
    whiptail --title "All done!" --msgbox "Burn it with your favorite burn program and run apt-cdrom add" 8 78
    }




    Linux - Debian - for beginners -how to scan a folder and remove duplicate files...


    Linux - Debian - for beginners -get the size of the file or folder in the terminal

    is about time I bring up some basics that is great to be able to know....

    Linux - Debian - some Tips and tricks.. you need to know...

    little fuicked up damm kali... but got it repaired

    Linux - Debian - Install missing libary and install i386 packages on amd64

    by rbn920 » 2009-03-26 15:15
    I nuked the package
    Code: Select all
    aptitude remove ktechlab


    And installed the ktecklab .deb from sourceforge.
    Code: Select all
    dpkg -i --force-architecture ktechlab_0.3-6_i386.deb

    Linux - Debian - installing both 64 and 32-bit software on the same machine

     

    What is this Multiarch?
    Multiarch lets you install library packages from multiple architectures on the same machine. This is useful in various ways, but the most common is installing both 64 and 32-bit software on the same machine and having dependencies correctly resolved automatically. In general you can have libraries of more than one architecture installed together and applications from one architecture or another installed as alternatives. Note that it does not enable multiple architecture versions of applications to be installed simultaneously. 

    Linux - Debian - webpage to pdf from konsole


    wkhtmltopdf is a command line utility that converts html to pdf using webkit rendering engine.

    url : http://code.google.com/p/wkhtmltopdf/

    Install : sudo apt-get install wkhtmltopdf

    Usage : The usage is very simple. Just run the command providing the url and name of the pdf file.

    $ wkhtmltopdf www.google.com google.pdf

    Linux - Debian Jessie - Fix vlc & spotify...


     
  • here you got what's working 4 me

  •  
    ☢ SPOTIFY-FIX ☢-  visit url: http://www.alturl.com/r7dzb 
        deb http://repository.spotify.com stable non-free

    ☢ VLC-MEDIA-PLAYER ☢ # apt-get -t testing  install vlc  
         deb-src http://debian.linuxmint.com/latest/multimedia testing main non-free
        then installed vlc add # before repository...

    fredag 17 april 2015

    Linux - Debian - Re: Can I install jessie package on wheezy? How?



    Postby lkraemer » 2013-09-25 11:15
    eatnut,
    Debian has several Repo's, and these need a bit of explaination, before proceeding.

    Repositories: ------ http://en.wikipedia.org/wiki/Debian
    stable, currently aliased wheezy
    backports
    testing, currently aliased jessie
    unstable, permanently aliased sid
    experimental

    Mixing Packages from various Repo's isn't advised, since you can break your system. The best practice is to check the backports Repo
    for your Debian Distro (example: Debian 7 "Wheezy") to see if the updated package exists, or build the package yourself.

    What you DON'T WANT is a situation where the package you want to install is going to bring down a huge pile of dependencies, as Bulkley
    has already stated.

    How do I backport a sid package to testing or stable?


    Install the Debian source (and the development tools, especially debhelper, devscripts, and build-essential), and then build the package.
    Step by step:
    Code: Select all
            add a deb-src line for sid to your sources.list
            apt-get update
            apt-get build-dep PACKAGE_NAME
            apt-get -b source PACKAGE_NAME


    Don't forget that you can find more information about the PACKAGE_NAME with the following commands (as root):
    Code: Select all
    #apt-get update
    #apt-cache show PACKAGE_NAME
    #apt-cache policy
    #apt-cache policy PACKAGE_NAME


    The resulting debs should be in the current directory and can be installed with dpkg -i the.deb.

    Aren't there already backports...?
    Possibly. Check http://backports.debian.org/Packages/ first to see if someone has already done it.


    Another option is to use Apt-Pinning. But, If you Break your system, you get to keep it.......................

    REF's:
    viewtopic.php?t=15612
    https://wiki.debian.org/AptPreferences
    http://www.argon.org/~roderick/apt-pinning.html
    http://carlo17.home.xs4all.nl/howto/debian.html#errata
    http://www.howtoforge.com/a-short-intro ... pt-pinning
    http://jaqque.sbih.org/kplug/apt-pinning.html


    BROKEN SYSTEM???
    If your system somehow has broken packages, or has held packages you can use aptitude to fix the problems. Basically, aptitude gives you a
    list of choices to repair your system, but it just displays the choices ONE at a TIME, with user responses of Y, N, Q (yes, no, quit), for each
    displayed choice. In my case the first choice was to keep all current packages, so I answered N, to view the second choice. Finally, the choice
    appeared that I thought would be the answer to repair my held packages. So, an answer of N will proceed to the next choice aptitude has available,
    with the option of Q to quit at any time. Use man aptitude from a Terminal for more information.

    2.2. Basic package management operations
    2.2.1. apt-get / apt-cache vs. aptitude


    http://www.debian.org/doc/manuals/debia ... de_literal


    Follow what Bigmoozer suggests:
    a) Do this first on a test machine.
    b) apt-get ... --dryn-run is your friend. It will tell you which packages is going to be installed and in which version - withou doing anything.

    You might want to build a system in VirtualBox, and try your building/updating and if it doesn't work, just DELETE your VirtualBox Image. That's
    much better than blowing away your current install.

    I did a similar thing when I updated Wheezy to XFCE4 Version 4.10 and posted "[HOWTO] - Debian 7 "Wheezy" Min Installation with XFCE".

    Good Luck!

    Larry

    Linux - Debian - how get info what package going to be installed and version witout doing anything

    is your friend. It will tell you which packages is going to be installed and in which version - withou doing anything.

    apt-get ... --dryn-run

    Linux - Debian - How to get/change conedame ("jessie") or ("sid") osv..

    ~# grep CODENAME /etc/lsb-release | cut -c 18-
    jessie
    ~# nano /etc/lsb-release

    there are some other information you can get.. try this.. perfect if you need help...

    ~# uname -a
    Linux jessie 3.18.0-kali3-amd64 #1 SMP Debian 3.18.6-1~kali2 (2015-03-02) x86_64 GNU/Linux
    ~#lsb_release -a
    No LSB modules are available. Distributor ID: Kali Description: Debian GNU/Linux 8 (jessie) Release: 8 Codename: moto

    ~# lsb_release -rd
    Description: Debian GNU/Linux 8 (jessie) Release: 8 ~# lsusb -v <--- TO log to post here..

    Linux - Debian - Jessie - MY-KIND-OFF-STYLE sources.list

    http://pastebin.com/0fCVFJGE




    ╔☢YOUR-TEXT-HERE☢━════════════════════════════ℎʸᶰᵗᵉⁿ☻╗
     ║ http://pastebin.com/raw.php?i=0fCVFJGE                                 ║ ╚════════════════════════════════════☢DEBIAN™JESSIE☢━╝
    ╔☢TEXT-HERE☢━╦════════════════════════════════ℎʸᶰᵗᵉⁿ⑧╗
    ║ visit url:           ║ http://www.alturl.com/r7dzb                             ║ ╚════════════╩═══════════════════════☢DEBIAN™JESSIE☢━╝
     link to ascii char and som of my stuff
    Snygga ascii tecken - messletters.com/sv 

    torsdag 16 april 2015

    Linux - Debian - Google Translate to serve as a command-line tool


    ═════════════════════════════════════════════════════
    sudo apt-get install gawk git
    git clone git://github.com/soimort/google-translate-cli.git
    cd google-translate-cli/
    make install
    checkinstall -D               <--- now it's working!..
    apt-get install translate-shell
    ────────────────────────────────────────────────────
    trans :en -b "hur är det vad ska jag göra nu"
    how is it what should i do
    ────────────────────────────────────────────────────
    echo "saknar något i mitt liv" | trans :en -b >> output-en.txt
    echo "i dont drink vodka" | trans :sv -b >> output-sv.txt
    ────────────────────────────────────────────────────
    trans sv: file://input-sv.txt > output-en.txt 
    trans :sv file://input-en.txt > output-sv.txt 
    ════════════════════════════════════════════════════

     Google Translate to serve as a command-line tool

     

    Linux - Debian - How Change Screen Font Size in virtual terminal!

    Step #1: in tre simple steps and it's done...

    Step #2: edit the file dont have nano use what u got!...
     
    Step #2: rekommened settings the -<---- here .... dont write that ;)

    Step #3: now you done it, and no reboot was needed......

    Linux - Debian - bash if root then dialog 2 else dialog1


    link if you want it!



  • http://pastebin.com/Q0yBG9Mc





  • Lägg till bildtext

    https://stackoverflow.com/questions/18215973/how-to-check-if-running-as-root-in-a-bash-script/29669172#29669172

    onsdag 15 april 2015

    Snygga ascii tecken - messletters.com/sv





    http://www.messletters.com/sv/

    All from above site in one file! 

     all the pictures comes from above....
      ┌DEBIAN™────┐┏DEBIAN™━━━━┓ ☯ ☮ ☻ ﭢ ┃ ✌ℎʸᶰᵗᵉⁿ✍ ┃│ ✌ℎʸᶰᵗᵉⁿ✍ │ ☠ ☢ ☣ ☹ ◇ └──────⌨USER┘┗━━━━━━⌨ROOT┛ ▫ ▭ ▯ ▱ ◎ ╔═══════╗┏━━━━━━┓╭───────╮ ▢ ◉ ○ ◌ ◍ ║╗╝║═╚╔ ║┃┓┛━┗┏┃┃│╮╯│─╰╭││ ℎ ℋ ℕ ᵀ ʸ ╚═══════╝┗━━━━━━┛╰───────╯✌™ ⌨ ✍ ᵉ ᵗ ╒═══════╕┌──────┐ ┫╽╿┣ ▒ ░ ▓ ◙ ▊ ᶰ ⁿ │╕╛│═╘╒ ││┐┘│─└┌│ 〓 ■ ▣ ❑ □ ∎ ☱ ☶ ☷ ☰ ╘═══════╛└──────┘ ▩ ▧ ▥ ▦ ▤ ▨ ☴ ☳ ☵ ☲ ▁ ▂ ▃ ▄ ▅ ▆ ▇ █ ▎hynten@speedmail.com

    Linux - Debian - Jessie - MY-KIND-OFF-STYLE sources.list

     


    Linux - Debian - Bash strip Build-Depends from apt-cache


    .

    Linux - Debian - Bash - Installed Or Not Script from hynten@speed-mailer.com



















    add this 2 lines:
      echo $1 >> packages.txt
      uniq packages.txt > packages2.txt ; mv packages2.txt packages.txt 

      
    the programs name is installed-or-not i have it in /bin
    installed-or-not firefox                < adds firefox to list and if already there rm



    Link To Download Script!
    http://pastebin.com/5Nks717G
  • https://stackoverflow.com/questions/29669581/bash-script-check-from-file-if-package-is-installed
  • måndag 13 april 2015

    Linux - Debian - Install GRUB2 on USB from Ubuntu Linux

    How to Install Grub2 on USB from Linux: In the following tutorial, I'll show you one way to easily install Grub2 to a USB Flash Drive from a running Live Ubuntu Operating Environment. I personally used an Ubuntu Live CD to perform all of the following steps.

    Note: This Grub2 USB Flash Drive Install tutorial assumes you will be running from an Ubuntu Live CD to create your Grub2 enabled Flash Drive. It may or may not work from another Linux operating environment.
    Grub2 USB Install From Ubuntu Live CD Essentials:
    • Ubuntu Live CD --
    • A PC that can boot from USB/CD
    • 1GB or larger USB Flash Drive
    • No Fear of the Terminal
    Grub2 USB Flash Drive Install using the Ubuntu Live CD:
    Before proceeding, take note:
    Old versions of grub used --root-directory=/mnt/USB
    while current versions use --boot-directory=/mnt/USB/boot
    If you do use the wrong syntax, you will receive an error stating "Installation is impossible. Aborting"
    1. Boot from your Live Ubuntu Linux CD
    2. Once booted, insert your USB Flash Drive
    3. Open a terminal and type sudo su
    4. Type fdisk -l (and note which device is your USB)
    5. Type mkdir /mnt/USB && mount /dev/sdx1 /mnt/USB (replacing x with your actual usb device)
    6. Type grub-install --force --no-floppy --boot-directory=/mnt/USB/boot /dev/sdx (replacing  x with your actual USB device)
    7. Type cd /mnt/USB/boot/grub
    8. Type wget pendrivelinux.com/downloads/grub.cfg
    9. Type df (and locate where cdrom is mounted I.E./dev/sr0)
    10. Type dd if=/dev/sr0 of=/mnt/USB/ubuntu.iso (replacing sr0 with the device found in step 9)
    11. Remove your Live CD and reboot your PC, setting your BIOS or Boot Menu to boot from the USB device.
    If all goes well, you should now be booting into your Grub2 prepared USB Flash Drive, with a Grub2 Boot Menu option to Boot from the Ubuntu ISO you copied to your USB in step 10.

    Similar Portable Linux Posts:

    • No Similar Portable Linux Posts Detected
    Install GRUB2 on USB from Ubuntu Linux published under Flash drive installs using Live CD  , , ,

    Linux - Debian - Using Facebook, the new way (via Terminal)



    osx-terminalBored with the old Facebook Interface? Well, here something you would love to try. I can’t imagine if this could go any geekier (if there’s a word as such ). Using Facebook with Terminal ( because www.facebook.com is too mainstream :D ) .
    Facebook can be used via Terminal and I have to say, its pretty awesome.
    fbcmd138x52
    Php5 allows us to use fbcmd command to do almost anything in CLI using terminal as we do in the normal GUI mode. fbcmd command can be setup in linux machine using the following steps:
    1. The First step would be to install php 5 on your linux machine.
    In Ubuntu:
    sudo apt-get install php5 php5-cli
    For RedHat and CentOS:
    here’s a simple guide on how to install php5
    2. After you are done with the installation, next thing you need to do is, get the fbcmd installation file. You can get the installation file using the command below:
    wget https://raw.github.com/dtompkins/fbcmd/master/fbcmd_update.php
    or just click here to download the file.
    3. After you have downloaded the fbcmd_update.php file, you can now install it using the command:
    sudo php fbcmd_update.php install
    Now you are almost ready. The only thing you need to do is verify fcbmd that you can access your Facebook account and add some required permissions to complete the process.
    fbcmd
    You have to follow those three simple steps then off you go. You can now use Facebook with terminal. Cool isn’t it??

    Linux - Debian - HOWTO: ISO creation from terminal


    Hi,
    I was looking for this (for a BASH script I wanted to write), and I found out how to do it. Now I want to share it

    1. Create ISO-file from folder
    Code:
    mkisofs -r -o /isofile.iso /folder
    where /isofile.iso is the relative or absolute path to the iso-file you want to create and /folder the absolute or relative path to the folder you want to backup.

    2. Create ISO-file from file(s)
    Code:
    mkisofs -r -o /isofile.iso /mybigfile
    or if you want to backup multipi files (like you .mp3 collection):
    Code:
    mkisofs -r -o /isofile.iso *.mp3
    3. Create ISO-file from a cd/dvd-drive
    Code:
    dd if=/dev/cdrom0 of=isofile.iso

    söndag 12 april 2015

    DebianInstaller Modify CD Debian-Installer: How to modify an existing CD image

    DebianInstaller itself is based on udebs. Many of those udebs are on the CD, but some of them are in an initrd. If you want to modify the udeb's in the initrd, then you should follow the instructions on DebianInstaller/Modify/CustomKernel. But when you want to modify non-initrd udeb's or you want to substitute or amend the *.debs, you can do this without the source code. Contents Debian-Installer: How to modify an existing CD image Create copy of the image Files and hooks Modify Image Workaround bug in deboostrap Create new Release and Packages files Alternate Method Fix md5sum's Create new image Helper scripts: diunpk, dipk Create copy of the image You need an already built ISO image from http://cdimage.debian.org/cdimage/daily-builds/sid_d-i/. That is the basis of the image that gets modified. Because you can't modify an ?ISO9660 image you must extract it first: $ rm -rf cd $ mkdir cd $ bsdtar -C cd -xf your-image.iso Files and hooks A list of hooks available for debian-installer: http://git.debian.org/?p=d-i/debian-installer.git;a=blob;f=doc/devel/internals/available-hooks.xml (XML source for the D-I Internals manual - does anyone know of this manual being available as compiled HTML anywhere?) (filepaths as seen from the installer) List of packages (udebs) to install or not install in into the d-i ramdisk. ''cdrom''.disk/udeb_include ["anna"] ''cdrom''.disk/udeb_exclude The content of these files are taken as lists of packages to install or not into the target area. ''cdrom''.disk/base_include [base-installer] ''cdrom''.disk/base_exclude If the file ''cdrom''.disk/base_installable exists, the base-installer udeb selects the cdrom as source for the installation. Modify Image Now put all the packages that you want on your image into pool/main (or below) in this copy. You also have to change/add md5 checksum in md5sum.txt in cd Workaround bug in deboostrap There is this bug in debootstrap: debootstrap script install base-files and base-passwd depends on them in Packages file's sequence. Basically, debootstrap is sensitive to whether the base-files or base-passwd is listed first in the Packages file. It shouldn't care. Because of it, we have two options if we want our modified CD to actually work: Patch the debootstrap functions file on the CD. Modify the sequence of packages in Packages generated by apt-ftparchive Here, we do the first alternative above and patch debootstrap. Save this as a script and run it: # For some reason, the wiki software eats my first script line which is #!/bin/bash # -e Exit immediately if a command exits with a non-zero status set -e # -x Print commands and their arguments as they are executed set -x # I tried to put the patch inline as a here-doc, but the wiki software messed # up the whitespace and so the patch was corrupt. The patch here is from # #601670 - debootstrap script install base-files and base-passwd depends on them in Packages file's sequence - Debian Bug report logs # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=601670 wget -O debootstrapFunctions.patch http://pastebin.com/download.php?i=JudHSnWE mkdir -p debootstrapPatch/DEBIAN dpkg-deb --fsys-tarfile cd/pool/main/d/debootstrap/debootstrap*.udeb | tar -C debootstrapPatch -x dpkg-deb -e cd/pool/main/d/debootstrap/debootstrap*.udeb debootstrapPatch/DEBIAN/ patch debootstrapPatch/usr/share/debootstrap/functions < debootstrapFunctions.patch # Prints: # patching file debootstrapPatch/usr/share/debootstrap/functions dpkg-deb --build debootstrapPatch # Prints: # dpkg-deb: building package `debootstrap-udeb' in `debootstrapPatch.deb'. mv debootstrapPatch.deb cd/pool/main/d/debootstrap/debootstrap*.udeb # Clean up rm -r debootstrapPatch debootstrapFunctions.patch Create new Release and Packages files This step is required only if you have added or changed packages. Create a config-udeb file with something like this : Dir { ArchiveDir "cd"; OverrideDir "indices"; CacheDir "indices"; }; TreeDefault { Directory "pool/"; }; BinDirectory "pool/main" { Packages "dists/squeeze/main/debian-installer/binary-i386/Packages"; BinOverride "override"; ExtraOverride "override.extra"; }; Default { Packages { Extensions ".udeb"; }; }; and a config-deb file with something like this : Dir { ArchiveDir "cd"; OverrideDir "indices"; CacheDir "indices"; }; TreeDefault { Directory "pool/"; }; BinDirectory "pool/main" { Packages "dists/squeeze/main/binary-i386/Packages"; BinOverride "override"; ExtraOverride "override.extra"; }; Default { Packages { Extensions ".deb"; }; }; The first is for the .udeb packages used by the Debian installer; the second is for Debian .deb packages. Because of the BinOverride line you also need the override file, you can get it from any debian mirror, e.g. get http://ftp.de.debian.org/debian/indices/override.squeeze.main.gz and extract it to the indices/override. Now go into the directory with your config file and run # apt-ftparchive generate config-udeb # apt-ftparchive generate config-deb to generate the Packages and Releases files. To update the cd/dists/squeeze/Release file, make a new text file called config-rel with something like this: APT::FTPArchive::Release::Codename "squeeze"; APT::FTPArchive::Release::Origin "Debian"; APT::FTPArchive::Release::Components "main"; APT::FTPArchive::Release::Label "Debian"; APT::FTPArchive::Release::Architectures "i386"; APT::FTPArchive::Release::Suite "testing"; To generate the Release file, run # apt-ftparchive -c config-rel release cd/dists/squeeze > cd/dists/squeeze/Release Alternate Method If you use apt-move to store the packages apt downloads when updating your system, you can use the mirror it creates to fill the cdrom with all the packages on your current system. Remember to call "apt-move sync" before mastering the image, to make sure, all dependencies are met. Fix md5sum's # cd cd; md5sum `find ! -name "md5sum.txt" ! -path "./isolinux/*" -follow -type f` > md5sum.txt; cd .. Create new image To make the cdrom bootable, you need to run genisoimage with appropriate parameters. Here is how to do it for x86/amd64, using isolinux. Change to the top of the cd directory then: To create the cdrom image using the isolinux boot image: # genisoimage -o test.iso -r -J -no-emul-boot -boot-load-size 4 \ -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat ./cd or, if your extra dists and pool (the apt-move mirror) are in a separate place # genisoimage -o test.iso -r -J -no-emul-boot -boot-load-size 4 \ -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat \ extra/dists=pathto/mirror/dists extra/pool=pathto/mirror/pool \ -graft-points ./cd if you want you could do a (very) quick test of the iso using qemu (you need to apt-get it): # qemu -user-net -cdrom test.iso burn the image to cdrom # cdrecord -dev /dev/hd? test.iso Finally, from the build directory (please adapt to your local paths): #!/bin/sh make clean TYPE=cdrom fakeroot make image cp myudebs/*udeb \ /home/vmware/bubulle/src/debian/d-i/archive/pool/main MYPWD=`pwd` cd /home/vmware/bubulle/src/debian/d-i/archive apt-ftparchive generate config cd $MYPWD genisoimage -r -J -b cdrom-image.img -o test.iso dest \ /home/vmware/bubulle/src/debian/d-i/archive genisoimage -r -J -b cdrom-image.img -o test.iso dest /mnt/loop A bit clumsy but this works, at least for me. This is how I tested the modified partitioner (which does not go to initrd as it requires fdisk-udeb which is huge). For smaller package tests, you may modify pkg-lists/cdrom/, add them there and drop the udebs to localudebs. Helper scripts: diunpk, dipk Here are example scripts for unpacking and packing d-i CD image file. You need to have aufs modules available. * diunpk: execute this with d-i.iso file as its argument. This generates tree under dated directory and cd into it. #!/bin/sh -e # Local customization to match your id (check with 'id' command). uid=1000 gid=1000 # Default values # $1 d-i iso image file # $2 d-i ro mount point # $3 d-i rw tree di_iso=${1:-d-i.iso} di_ro=${2:-d-i.ro} di_rw=${3:-d-i.rw} pwd=$(pwd) timestamp=$(date -u +%Y%m%d%H%M%S) mkdir $timestamp mkdir $timestamp/$di_ro mkdir $timestamp/$di_rw sudo mount ${di_iso} $timestamp/${di_ro} -t iso9660 -o loop,uid=${uid},gid=${gid} sudo mount -t aufs -o br:$timestamp/${di_rw}:$timestamp/${di_ro} none $timestamp/${di_rw} sudo chmod u+w $timestamp/${di_rw} sudo chmod u+w $timestamp/${di_rw}/md5sum.txt sudo find $timestamp/${di_rw}/dists -exec chmod u+w {} \; sudo find $timestamp/${di_rw}/pool -type d -exec chmod u+w {} \; cd $timestamp * dipk: execute this in dated directory. #!/bin/sh -e set -x # Local customization uid=1000 gid=1000 arch=amd64 release=squeeze # Default values # $1 d-i iso image file # $2 d-i ro mount point # $3 d-i rw tree di_iso=${1:-d-i.iso} di_ro=${2:-d-i.ro} di_rw=${3:-d-i.rw} cat > config << EOF Dir { ArchiveDir "."; OverrideDir "."; CacheDir "."; }; TreeDefault { Directory "pool/"; }; BinDirectory "pool/main" { Packages "dists/${release}/main/debian-installer/binary-${arch}/Packages"; }; Default { Packages { Extensions ".udeb"; }; }; EOF cd $di_rw sudo apt-ftparchive generate ../config sudo md5sum $(find ! -name "md5sum.txt" ! -path "./isolinux/*" -follow -type f) > md5sum.txt cd - #genisoimage ... sudo genisoimage -r -o $di_iso -V di$(date -u +%m%d%H%M%S) \ -b isolinux/isolinux.bin -c isolinux/boot.cat \ -no-emul-boot -boot-load-size 4 -boot-info-table $di_rw # check mounted by "mount" #sudo umount ${di_rw} #sudo umount ${di_ro} #rm -rf $di_rw

    linux - debian - clif: record CLI as gif (do a clif offline install)

    We explored several tools to record terminal and share them. Most of those use tools like ttyrec or script or follow the same principles. clif is a fresh tool that records console sessions as optimized gif files. It uses web technologies like JS to do the job. clif depends on child_pty, term.js omggif and phantomjs. child_pty is used to spawn a pseudo terminal which is captured. The captured frames are sent to phantomjs headless browser to render using term.js and screenshot. The gif is created using omggif. Features Small GIFs High quality (anti-aliased fonts) Rendered with CSS/JS, customizable Real-time parallel rendering Frame aggregation and customizable FPS Support for titles Terminal.app-style Supports Linux and OSX Installation To install clif, run: sudo npm install -g clif #--Now we trying to make clif to offline install--------------------------------------------------------------------------------------------------------------------- You have to first install npmbox module globally, This module creates an Offline package with all depedencies of given module. Then you could use npmunbox command to install that package to your offline machine. To install npmbox: npm install -g npmbox To create offline package of a module: npmbox -v localtunnel, It will generate a localtunnel.npmbox file to current directory. Copy that you your offline machine. To install offline package: npmunbox localtunnel.npmbox For more info: https://github.com/arei/npmbox

    tisdag 7 april 2015

    Linux - Debian 8 Jessie Äntligen Spotiy

    För att installera Spotify på Debian 8 Jessie måste man göra som 
    länken nedanför beskriver ... 
    följ guiden men skapa deb filen behöver du inte 
    för den delar jag med mig av... 

    spotify / dh-virtualenv /blob/ tutorial:

    http://alturl.com/yj4fq


    Här har du *.deb filen jag skapade:

    http://alturl.com/4ywfy

    
    
    Installera den igenom att skriva:
    
    
    dpkg -i spotify_dh-virtualenv.deb

    Sedan ska det bara vara att installera spotify som vanligt:

    deb http://repository.spotify.com stable non-free
    apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 94558F59
    apt-get update  && apt-get install spotify-client

    linux - debian - dpkg --get-selections to install script
























    #

    måndag 6 april 2015

    linux -debian - apt sources.list add # on every lie but local ppa and remove # on every line

    Sätter # On/Off på alla rader i /etc/apt/sources.list förutom local ppa


    # chmod u=rwx,g=rx,o=r comment-sources.sh
    # add # on every Line - But not on Local repo ppa


    #!/bin/bash
    sed 's/^/#/' /etc/apt/sources.list
    sed 's/#deb file:/deb file:/' /etc/apt/sources.list

    # chmod u=rwx,g=rx,o=r ucomment-sources.sh
    # Delete # on every line But not local repo ppa


    #!/bin/bash
    sed s/^#// /etc/apt/sources.list >/etc/apt/sources.bak
    mv /etc/apt/sources.bak /etc/apt/sources.list

    söndag 5 april 2015

    Linux - Debian Rename all Fucked up filenames from *.deb.FAILED.new.deb to *.deb


    -------------------------------------------------------------------------------------------------------
    root@jessie:/var/cache/apt/archives/partial# ls
    xserver-xorg-video-neomagic_1%3a1.2.8-1+b2_amd64.deb.FAILED.new.deb
    xserver-xorg-video-nouveau_1%3a1.0.11-1_amd64.deb.FAILED.new.deb
    xserver-xorg-video-openchrome_1%3a0.3.3-1+b2_amd64.deb.FAILED.new.deb
    xserver-xorg-video-qxl_0.1.1-2+b1_amd64.deb.FAILED.new.deb
    xserver-xorg-video-r128_6.9.2-1+b2_amd64.deb.FAILED.new.deb
    xserver-xorg-video-radeon_1%3a7.5.0-1_amd64.deb.FAILED.new.deb
    xserver-xorg-video-savage_1%3a2.3.7-2+b2_amd64.deb.FAILED.new.deb
    xserver-xorg-video-siliconmotion_1%3a1.7.7-2+b2_amd64.deb.FAILED.new.deb
    xserver-xorg-video-sisusb_1%3a0.9.6-2+b2_amd64.deb.FAILED.new.deb
    xserver-xorg-video-tdfx_1%3a1.4.5-1+b2_amd64.deb.FAILED.new.deb
    xserver-xorg-video-trident_1%3a1.3.6-2+b2_amd64.deb.FAILED.new.deb
    xserver-xorg-video-vesa_1%3a2.3.3-1+b3_amd64.deb.FAILED.new.deb
    xserver-xorg-video-vmware_1%3a13.0.2-3.1_amd64.deb.FAILED.new.deb
    -------------------------------------------------------------------------------------------------------
    root@jessie:/var/cache/apt/archives/partial# rename 's/.deb.FAILED.new.deb/.deb/' *.deb
    root@jessie:/var/cache/apt/archives/partial# ls
    -------------------------------------------------------------------------------------------------------
    xserver-xorg-video-neomagic_1%3a1.2.8-1+b2_amd64.deb
    xserver-xorg-video-nouveau_1%3a1.0.11-1_amd64.deb
    xserver-xorg-video-openchrome_1%3a0.3.3-1+b2_amd64.deb
    xserver-xorg-video-qxl_0.1.1-2+b1_amd64.deb
    xserver-xorg-video-r128_6.9.2-1+b2_amd64.deb
    xserver-xorg-video-radeon_1%3a7.5.0-1_amd64.deb
    xserver-xorg-video-savage_1%3a2.3.7-2+b2_amd64.deb
    xserver-xorg-video-siliconmotion_1%3a1.7.7-2+b2_amd64.deb
    xserver-xorg-video-sisusb_1%3a0.9.6-2+b2_amd64.deb
    xserver-xorg-video-tdfx_1%3a1.4.5-1+b2_amd64.deb
    xserver-xorg-video-trident_1%3a1.3.6-2+b2_amd64.deb
    xserver-xorg-video-vesa_1%3a2.3.3-1+b3_amd64.deb
    xserver-xorg-video-vmware_1%3a13.0.2-3.1_amd64.deb
    -------------------------------------------------------------------------------------------------------
    hynten@speed-mailer.com

    torsdag 2 april 2015

    Linux - Debian - Fun packages like cowsay toilet cmatrix fortunes

    apt-get install sl fortune cowthink say toilet cmatrix libaa-bin
    apt-get install fortunes cmatrix-xfont figlet source-highlight



    Linux - Användnings områden av grep i log samanhang

    Mycket bra sida:
    http://alturl.com/zuiah    <------

    #allt install
    grep "\ install\ " /var/log/dpkg.log

    #allt det datumet
    grep 2015-04-03 /var/log/dpkg.log

    # allt mellan dom två datumen
    grep -E '2015-04-03|2015-04-04' /var/log/dpkg.log

    #allt utom install
    grep -v "install" /var/log/dpkg.log

    #hur många gånger install
    hynt@wheezy:~$ grep -c "\ install\ " /var/log/dpkg.log
    1373


    Linux - Debian - own ppa server use apt-move dpkg-scannpackage "dpkg-dev"

    #!/bin/bash
    reset
    /usr/games/cowsay -t "Local PPA Server update / Reindex"
    sleep 5
    apt-move get
    apt-move move
    apt-move packages
    cd /var/www/debian/ && dpkg-scanpackages jessie/ /dev/null 2> error.txt | gzip -9c > jessie/Packages.gz
    cd /var/www/debian/ && grep "!" < error.txt > rm.txt
    #next line is not get tested
    #cd /var/www/debian/ && sed 's/dpkg-scanpackages: varning: använde den och ignorerade data från jessie//rm /var/www/debian/jessie/' rm.txt
    apt-move sync
    reset
    sudo /usr/games/cowsay -t "Muuuuuuuhaa! Cya Later!!"
    echo "Email:hynten@speed-mailer.com"
    echo " "

    Linux - Debian 8 Jessie "use kde" - This is what the cd1 gives

    acl acpi acpi-support-base acpid adduser akonadi-backend-mysql akonadi-server akregator alsa-base alsa-utils anacron apt apt-listchanges apt-utils aptitude aptitude-common aptitude-doc-en ark aspell aspell-en at avahi-daemon base-files base-passwd bash bash-completion bc bind9-host bsd-mailx bsdmainutils bsdutils busybox bzip2 ca-certificates console-setup console-setup-linux coreutils cpio cpp cpp-4.9 cron dash dbus dbus-x11 dc debconf debconf-i18n debian-archive-keyring debian-faq debianutils desktop-base dictionaries-common diffutils discover discover-data dmidecode dmsetup dnsutils doc-debian docbook-xml docbook-xsl docutils-common docutils-doc dolphin dosfstools dpkg dragonplayer e2fslibs:amd64 e2fsprogs eject emacsen-common enchant exim4 exim4-base exim4-config exim4-daemon-light file findutils fontconfig fontconfig-config fonts-dejavu fonts-dejavu-core fonts-dejavu-extra fonts-freefont-ttf freespacenotifier ftp gcc-4.8-base:amd64 gcc-4.9-base:amd64 geoip-database gettext-base gnupg gnupg-agent gnupg2 gpgv grep groff-base grub-common grub-pc grub-pc-bin grub2-common gstreamer1.0-plugins-base:amd64 guile-2.0-libs:amd64 gwenview gzip hicolor-icon-theme host hostname hunspell-en-us i965-va-driver:amd64 ifupdown info init init-system-helpers initramfs-tools initscripts insserv -info ation-report iproute2 iptables iputils-ping isc-dhcp-client isc-dhcp-common iso-codes iw juk kaddressbook kate kate-data katepart kbd kcalc kde-base-artwork kde-baseapps kde-baseapps-bin kde-baseapps-data kde-plasma-desktop kde-runtime kde-runtime-data kde-standard kde-style-oxygen kde-wallpapers-default kde-window-manager kde-workspace kde-workspace-bin kde-workspace-data kde-workspace-kgreet-plugins kdelibs-bin kdelibs5-data kdelibs5-plugins kdepasswd kdepim-runtime kdepimlibs-kio-plugins kdeplasma-addons kdm kdoctools keyboard-configuration kfind khelpcenter4 klibc-utils klipper kmail kmix kmod knotes konqueror konsole kopete korganizer krb5-locales kscreen kscreensaver ksnapshot ksysguard ksysguardd kwalletmanager kwrite laptop-detect less liba52-0.7.4 libaa1:amd64 libaacs0:amd64 libacl1:amd64 libaio1:amd64 libakonadi-calendar4 libakonadi-contact4 libakonadi-kabc4 libakonadi-kcal4 libakonadi-kde4 libakonadi-kmime4 libakonadi-notes4 libakonadiprotocolinternals1 libapt-inst1.5:amd64 libapt-pkg4.12:amd64 libarchive13:amd64 libasn1-8-heimdal:amd64 libasound2:amd64 libasound2-data libaspell15:amd64 libasprintf0c2:amd64 libass5:amd64 libassuan0:amd64 libastro1 libasyncns0:amd64 libatasmart4:amd64 libatk1.0-0:amd64 libatk1.0-data libattica0.4:amd64 libattr1:amd64 libaudio2:amd64 libaudit-common libaudit1:amd64 libavahi-client3:amd64 libavahi-common-data:amd64 libavahi-common3:amd64 libavahi-core7:amd64 libavc1394-0:amd64 libavcodec56:amd64 libavformat56:amd64 libavresample2:amd64 libavutil54:amd64 libbaloocore4 libbaloofiles4 libbaloopim4 libbalooqueryparser4 libbaloowidgets4 libbalooxapian4 libbasicusageenvironment0 libbind9-90 libblkid1:amd64 libbluetooth3:amd64 libbluray1:amd64 libboost-iostreams1.55.0:amd64 libboost-program-options1.55.0:amd64 libboost-system1.55.0:amd64 libboost-thread1.55.0:amd64 libbsd0:amd64 libbz2-1.0:amd64 libc-bin libc6:amd64 libcaca0:amd64 libcairo2:amd64 libcalendarsupport4 libcanberra0:amd64 libcap-ng0:amd64 libcap2:amd64 libcap2-bin libcddb2 libcdio13 libcdparanoia0:amd64 libchromaprint0:amd64 libclass-accessor-perl libclass-isa-perl libcln6 libcloog-isl4:amd64 libclucene-core1:amd64 libcomerr2:amd64 libcroco3:amd64 libcryptsetup4:amd64 libcrystalhd3:amd64 libcups2:amd64 libcupsfilters1:amd64 libcupsimage2:amd64 libcurl3-gnutls:amd64 libcwidget3:amd64 libdaemon0:amd64 libdatrie1:amd64 libdb5.3:amd64 libdbus-1-3:amd64 libdbus-glib-1-2:amd64 libdbusmenu-qt2:amd64 libdc1394-22:amd64 libdca0:amd64 libdebconfclient0:amd64 libdevmapper1.02.1:amd64 libdirectfb-1.2-9:amd64 libdiscover2 libdlrestrictions1 libdmtx0a:amd64 libdns-export100 libdns100 libdrm-intel1:amd64 libdrm-nouveau2:amd64 libdrm-radeon1:amd64 libdrm2:amd64 libdvbpsi9:amd64 libdvdnav4:amd64 libdvdread4:amd64 libebml4:amd64 libedit2:amd64 libegl1-mesa:amd64 libegl1-mesa-drivers:amd64 libelf1:amd64 libenca0:amd64 libenchant1c2a:amd64 libencode-locale-perl libepoxy0 libepub0 libestr0 libevdev2 libevent-2.0-5:amd64 libeventviews4 libexiv2-13:amd64 libexpat1:amd64 libfaad2:amd64 libfam0 libffi6:amd64 libfile-basedir-perl libfile-desktopentry-perl libfile-listing-perl libfile-mimeinfo-perl libflac8:amd64 libfollowupreminder4 libfontconfig1:amd64 libfontenc1:amd64 libfreerdp-cache1.1:amd64 libfreerdp-client1.1:amd64 libfreerdp-codec1.1:amd64 libfreerdp-common1.1.0:amd64 libfreerdp-core1.1:amd64 libfreerdp-crypto1.1:amd64 libfreerdp-gdi1.1:amd64 libfreerdp-locale1.1:amd64 libfreerdp-primitives1.1:amd64 libfreerdp-rail1.1:amd64 libfreerdp-utils1.1:amd64 libfreetype6:amd64 libfribidi0:amd64 libfuse2:amd64 libgadu3 libgbm1:amd64 libgc1c2:amd64 libgcc1:amd64 libgcrypt20:amd64 libgdbm3:amd64 libgdk-pixbuf2.0-0:amd64 libgdk-pixbuf2.0-common libgeoip1:amd64 libgif4:amd64 libgl1-mesa-dri:amd64 libgl1-mesa-glx:amd64 libglapi-mesa:amd64 libgles1-mesa:amd64 libgles2-mesa:amd64 libglew1.10:amd64 libglib2.0-0:amd64 libglu1-mesa:amd64 libgmp10:amd64 libgnutls-deb0-28:amd64 libgnutls-openssl27:amd64 libgomp1:amd64 libgpg-error0:amd64 libgpgme++2 libgpgme11:amd64 libgpm2:amd64 libgps21:amd64 libgrantlee-core0 libgrantlee-gui0 libgraphite2-3:amd64 libgroupsock1 libgs9 libgs9-common libgsm1:amd64 libgssapi-krb5-2:amd64 libgssapi3-heimdal:amd64 libgstreamer-plugins-base1.0-0:amd64 libgstreamer1.0-0:amd64 libgtk2.0-0:amd64 libgtk2.0-bin libgtk2.0-common libgudev-1.0-0:amd64 libharfbuzz0b:amd64 libhcrypto4-heimdal:amd64 libheimbase1-heimdal:amd64 libheimntlm0-heimdal:amd64 libhogweed2:amd64 libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libhunspell-1.3-0:amd64 libhx509-5-heimdal:amd64 libical1a libice6:amd64 libicu52:amd64 libidn11:amd64 libijs-0.35:amd64 libilmbase6:amd64 libimobiledevice4:amd64 libincidenceeditorsng4 libintl-perl libio-html-perl libio-socket-ip-perl libio-socket-ssl-perl libio-string-perl libiodbc2:amd64 libirs-export91 libisc-export95 libisc95 libisccc90 libisccfg-export90 libisccfg90 libisl10:amd64 libiso9660-8 libjasper1:amd64 libjbig0:amd64 libjbig2dec0 libjpeg62-turbo:amd64 libjson-c2:amd64 libk5crypto3:amd64 libkabc4 libkactivities-bin libkactivities-models1 libkactivities6 libkalarmcal2 libkate1 libkateinterfaces4 libkatepartinterfaces4 libkcal4 libkcalcore4 libkcalutils4 libkcmutils4 libkdcraw-data libkdcraw23 libkde3support4 libkdeclarative5 libkdecorations4abi2 libkdecore5 libkdepim4 libkdepimdbusinterfaces4 libkdesu5 libkdeui5 libkdewebkit5 libkdgantt2-0 libkdnssd4 libkemoticons4 libkephal4abi1 libkexiv2-11 libkexiv2-data libkeyutils1:amd64 libkfile4 libkfilemetadata4 libkgapi2-2:amd64 libkholidays4 libkhtml5 libkidletime4 libkimap4 libkio5 libkipi-data libkipi11 libkjsapi4 libkjsembed4 libkldap4 libkleo4 libklibc libkmanagesieve4 libkmbox4 libkmediaplayer4 libkmime4 libkmod2:amd64 libknewstuff2-4 libknewstuff3-4 libknotifyconfig4 libkntlm4 libkolab0 libkolabxml1 libkonq-common libkonq5-templates libkonq5abi1 libkonqsidebarplugin4a libkontactinterface4a libkopete4 libkparts4 libkpgp4 libkpimidentities4 libkpimtextedit4 libkpimutils4 libkprintutils4 libkpty4 libkrb5-26-heimdal:amd64 libkrb5-3:amd64 libkrb5support0:amd64 libkresources4 libkrosscore4 libksba8:amd64 libkscreen1:amd64 libkscreensaver5 libksgrd4 libksieve4 libksieveui4 libksignalplotter4 libktexteditor4 libktnef4 libkunitconversion4 libkwineffects1abi5 libkwinglesutils1 libkwinglutils1abi2 libkworkspace4abi2 libkxmlrpcclient4 liblcms2-2:amd64 libldap-2.4-2:amd64 libldb1:amd64 liblircclient0 liblivemedia23 libllvm3.5:amd64 liblocale-gettext-perl liblockfile-bin liblockfile1:amd64 liblogging-stdlog0:amd64 liblognorm1:amd64 libltdl7:amd64 liblua5.2-0:amd64 liblwp-mediatypes-perl liblwp-protocol-https-perl liblwres90 liblzma5:amd64 liblzo2-2:amd64 libmad0:amd64 libmagic1:amd64 libmailcommon4 libmailimporter4 libmailtransport4 libmarblewidget19 libmatroska6:amd64 libmeanwhile1 libmediastreamer-base3:amd64 libmessagecomposer4 libmessagecore4 libmessagelist4 libmessageviewer4 libmhash2:amd64 libmicroblog4 libmng1:amd64 libmnl0:amd64 libmodplug1 libmount1:amd64 libmp3lame0:amd64 libmpc3:amd64 libmpcdec6:amd64 libmpeg2-4:amd64 libmpfr4:amd64 libmsn0.3 libmtdev1:amd64 libmtp-common libmtp-runtime libmtp9:amd64 libmysqlclient18:amd64 libncurses5:amd64 libncursesw5:amd64 libnepomuk4 libnepomukcore4 libnepomukquery4a libnepomukutils4 libnet-dbus-perl libnet-http-perl libnet-ssleay-perl libnetfilter-acct1:amd64 libnettle4:amd64 libnewt0.52:amd64 libnfnetlink0:amd64 libnfsidmap2:amd64 libnl-3-200:amd64 libnl-genl-3-200:amd64 libnl-route-3-200:amd64 libnoteshared4 libnotify4:amd64 libnss-mdns:amd64 libntdb1:amd64 libntrack-qt4-1 libntrack0 libogg0:amd64 libokularcore5 libopenexr6:amd64 libopenjpeg5:amd64 libopenvg1-mesa:amd64 libopus0:amd64 liborc-0.4-0:amd64 libortp9:amd64 libotr5 libp11-kit0:amd64 libpam-modules:amd64 libpam-modules-bin libpam-runtime libpam-systemd:amd64 libpam0g:amd64 libpango-1.0-0:amd64 libpangocairo-1.0-0:amd64 libpangoft2-1.0-0:amd64 libpaper-utils libpaper1:amd64 libparse-debianchangelog-perl libparted2:amd64 libpci3:amd64 libpciaccess0:amd64 libpcre3:amd64 libperl4-corelibs-perl libphonon4:amd64 libpimcommon4 libpipeline1:amd64 libpixman-1-0:amd64 libplasma-geolocation-interface4 libplasma3 libplasmaclock4abi4 libplasmagenericshell4 libplist2:amd64 libpng12-0:amd64 libpolkit-agent-1-0:amd64 libpolkit-backend-1-0:amd64 libpolkit-gobject-1-0:amd64 libpolkit-qt-1-1 libpoppler-qt4-4:amd64 libpoppler46:amd64 libpopt0:amd64 libpostproc52 libprison0:amd64 libprocesscore4abi1 libprocessui4a libprocps3:amd64 libprotobuf-c1 libproxy-tools libproxy1:amd64 libpsl0:amd64 libpth20:amd64 libpulse-mainloop-glib0:amd64 libpulse0:amd64 libpython-stdlib:amd64 libpython2.7:amd64 libpython2.7-minimal:amd64 libpython2.7-stdlib:amd64 libqalculate5:amd64 libqalculate5-data libqca2:amd64 libqgpgme1 libqimageblitz4 libqjson0:amd64 libqmobipocket1 libqoauth1 libqrencode3:amd64 libqt4-dbus:amd64 libqt4-declarative:amd64 libqt4-designer:amd64 libqt4-network:amd64 libqt4-opengl:amd64 libqt4-qt3support:amd64 libqt4-script:amd64 libqt4-sql:amd64 libqt4-sql-mysql:amd64 libqt4-svg:amd64 libqt4-xml:amd64 libqt4-xmlpatterns:amd64 libqtcore4:amd64 libqtdbus4:amd64 libqtgui4:amd64 libqtwebkit4:amd64 libraptor2-0:amd64 librasqal3:amd64 libraw10:amd64 libraw1394-11:amd64 librdf0:amd64 libreadline6:amd64 libresid-builder0c2a libroken18-heimdal:amd64 librsvg2-2:amd64 librsvg2-common:amd64 librtmp1:amd64 libsamplerate0:amd64 libsasl2-2:amd64 libsasl2-modules:amd64 libsasl2-modules-db:amd64 libschroedinger-1.0-0:amd64 libsdl-image1.2:amd64 libsdl1.2debian:amd64 libselinux1:amd64 libsemanage-common libsemanage1:amd64 libsendlater4 libsensors4:amd64 libsepol1:amd64 libshine3:amd64 libshout3:amd64 libsidplay2 libsigc++-2.0-0c2a:amd64 libsigsegv2:amd64 libslang2:amd64 libsm6:amd64 libsmartcols1:amd64 libsmbclient:amd64 libsndfile1:amd64 libsolid4 libsoprano4 libspandsp2:amd64 libspectre1:amd64 libspeex1:amd64 libspeexdsp1:amd64 libsqlite3-0:amd64 libsrtp0 libss2:amd64 libssh-gcrypt-4:amd64 libssh2-1:amd64 libssl1.0.0:amd64 libstdc++6:amd64 libstreamanalyzer0 libstreams0 libsub-name-perl libswitch-perl libswscale3:amd64 libsyndication4 libsystemd0:amd64 libtag1-vanilla:amd64 libtag1c2a:amd64 libtalloc2:amd64 libtaskmanager4abi4 libtasn1-6:amd64 libtdb1:amd64 libtemplateparser4 libtevent0:amd64 libtext-charwidth-perl libtext-iconv-perl libtext-unidecode-perl libtext-wrapi18n-perl libthai-data libthai0:amd64 libtheora0:amd64 libthreadweaver4 libtiff5:amd64 libtimedate-perl libtinfo5:amd64 libtirpc1:amd64 libtokyocabinet9:amd64 libtwolame0 libtxc-dxtn-s2tc0:amd64 libudev1:amd64 libudisks2-0:amd64 libunistring0:amd64 libupnp6 libupower-glib3:amd64 liburi-perl libusageenvironment1 libusb-0.1-4:amd64 libusb-1.0-0:amd64 libusbmuxd2:amd64 libustr-1.0-1:amd64 libutempter0 libuuid-perl libuuid1:amd64 libv4l-0:amd64 libv4lconvert0:amd64 libva-drm1:amd64 libva-x11-1:amd64 libva1:amd64 libvcdinfo0 libvdpau1:amd64 libvisual-0.4-0:amd64 libvlc5 libvlccore8 libvncclient0:amd64 libvorbis0a:amd64 libvorbisenc2:amd64 libvorbisfile3:amd64 libvpx1:amd64 libwayland-client0:amd64 libwayland-egl1-mesa:amd64 libwayland-server0:amd64 libwbclient0:amd64 libweather-ion6 libwebp5:amd64 libwebpdemux1:amd64 libwebpmux1:amd64 libwind0-heimdal:amd64 libwinpr-crt0.1:amd64 libwinpr-crypto0.1:amd64 libwinpr-dsparse0.1:amd64 libwinpr-environment0.1:amd64 libwinpr-file0.1:amd64 libwinpr-handle0.1:amd64 libwinpr-heap0.1:amd64 libwinpr-input0.1:amd64 libwinpr-interlocked0.1:amd64 libwinpr-library0.1:amd64 libwinpr-path0.1:amd64 libwinpr-pool0.1:amd64 libwinpr-registry0.1:amd64 libwinpr-rpc0.1:amd64 libwinpr-sspi0.1:amd64 libwinpr-synch0.1:amd64 libwinpr-sysinfo0.1:amd64 libwinpr-thread0.1:amd64 libwinpr-utils0.1:amd64 libwrap0:amd64 libwww-perl libwww-robotrules-perl libx11-6:amd64 libx11-data libx11-protocol-perl libx11-xcb1:amd64 libx264-142:amd64 libxapian22 libxatracker2:amd64 libxau6:amd64 libxaw7:amd64 libxcb-composite0:amd64 libxcb-damage0:amd64 libxcb-dri2-0:amd64 libxcb-dri3-0:amd64 libxcb-glx0:amd64 libxcb-image0:amd64 libxcb-keysyms1:amd64 libxcb-present0:amd64 libxcb-randr0:amd64 libxcb-render0:amd64 libxcb-shape0:amd64 libxcb-shm0:amd64 libxcb-sync1:amd64 libxcb-util0:amd64 libxcb-xfixes0:amd64 libxcb-xtest0:amd64 libxcb-xv0:amd64 libxcb1:amd64 libxcomposite1:amd64 libxcursor1:amd64 libxdamage1:amd64 libxdmcp6:amd64 libxerces-c3.1:amd64 libxext6:amd64 libxfixes3:amd64 libxfont1:amd64 libxft2:amd64 libxi6:amd64 libxinerama1:amd64 libxkbfile1:amd64 libxml-libxml-perl libxml-namespacesupport-perl libxml-parser-perl libxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl libxml-twig-perl libxml2:amd64 libxml2-utils libxmu6:amd64 libxmuu1:amd64 libxpm4:amd64 libxrandr2:amd64 libxrender1:amd64 libxshmfence1:amd64 libxslt1.1:amd64 libxss1:amd64 libxt6:amd64 libxtables10 libxtst6:amd64 libxv1:amd64 libxvidcore4:amd64 libxvmc1:amd64 libxxf86dga1:amd64 libxxf86vm1:amd64 libyajl2:amd64 libzip2 libzvbi-common libzvbi0:amd64 linux-base linux-image-3.16.0-4-amd64 linux-image-amd64 locales login logrotate lsb-base lsb-release lsof m4 make-guile man-db manpages marble-data mawk mime-support mlocate mount multiarch-support mutt mysql-common mysql-server-core-5.5 nano ncurses-base ncurses-bin ncurses-term nepomuk-core-data net-tools netbase netcat-traditional nfacct nfs-common ntrack-module-libnl-0 okular openssh-client openssl os-prober oxygen-icon-theme oxygencursors parted passwd patch pciutils perl perl-base perl-modules phonon:amd64 phonon-backend-vlc:amd64 pinentry-gtk2 plasma-containments-addons plasma-dataengines-addons plasma-dataengines-workspace plasma-desktop plasma-desktopthemes-artwork plasma-runners-addons plasma-scriptengine-javascript plasma-wallpapers-addons plasma-widget-folderview plasma-widget-lancelot plasma-widgets-addons plasma-widgets-workspace policykit-1 polkit-kde-1 poppler-data popularity-contest procmail procps psmisc python python-apt python-apt-common python-chardet python-debian python-debianbts python-defusedxml python-docutils python-minimal python-pil:amd64 python-pkg-resources python-pygments python-reportbug python-roman python-six python-soappy python-support python-talloc python-wstools python2.7 python2.7-minimal qdbus qtchooser qtcore4-l10n readline-common reportbug rpcbind rsyslog samba-libs:amd64 sed sensible-utils sgml-base sgml-data shared-mime-info soprano-daemon startpar sweeper systemd systemd-sysv systemsettings sysv-rc sysvinit-utils tar task-desktop task-kde-desktop tasksel tasksel-data tcpd telnet texinfo time traceroute tzdata ucf udev udisks2 upower usbutils util-linux va-driver-all:amd64 vdpau-va-driver:amd64 vim-common vim-tiny vlc vlc-data vlc-nox vlc-plugin-notify vlc-plugin-pulse vlc-plugin-samba w3m wamerican wget whiptail whois x11-apps x11-common x11-session-utils x11-utils x11-xkb-utils x11-xserver-utils xauth xbitmaps xdg-utils xfonts-100dpi xfonts-75dpi xfonts-base xfonts-encodings xfonts-scalable xfonts-utils xinit xkb-data xml-core xorg xorg-docs-core xserver-common xserver-xorg xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-evdev xserver-xorg-input-mouse xserver-xorg-input-synaptics xserver-xorg-input-vmmouse xserver-xorg-input-wacom xserver-xorg-video-all xserver-xorg-video-ati xserver-xorg-video-cirrus xserver-xorg-video-fbdev xserver-xorg-video-intel xserver-xorg-video-mach64 xserver-xorg-video-mga xserver-xorg-video-modesetting xserver-xorg-video-neomagic xserver-xorg-video-nouveau xserver-xorg-video-openchrome xserver-xorg-video-qxl xserver-xorg-video-r128 xserver-xorg-video-radeon xserver-xorg-video-savage xserver-xorg-video-siliconmotion xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-trident xserver-xorg-video-vesa xserver-xorg-video-vmware xterm xz-utils zlib1g:amd64

    Debian 8 Jessie Source.list

    #deb cdrom:[Debian GNU/Linux testing _Jessie_ - Official Snapshot amd64 kde-CD Binary-1 20150330-06:26]/ jessie main #---------------------------------------------------------------------------- deb http://ftp.de.debian.org/debian jessie main #---------------------------------------------------------------------------- deb http://security.debian.org/ jessie/updates main deb-src http://security.debian.org/ jessie/updates main #---------------------------------------------------------------------------- deb http://ftp.debian.org/debian/ jessie-updates main deb-src http://ftp.debian.org/debian/ jessie-updates main #---------------------------------------------------------------------------- deb http://mirrors.kernel.org/debian jessie main contrib deb http://http.us.debian.org/debian jessie main non-free contrib #---------------------------------------------------------------------------- deb http://ftp.debian.org/debian/ jessie-backports main deb-src http://ftp.debian.org/debian/ jessie-backports main #---------------------------------------------------------------------------- #If you want real firefox installed on jessie deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main #apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29 #----------------------------------------------------------------------------

    Linux - Debian - Jessie - Create Yout Own Commands In terminal not talking about alias

    #---------------------------------------------------------------# Create Your Own Command in Linux forget old alias this rulez hynten@speed-mailer.com #---------------------------------------------------------------# root@wheezy:~# cd /root root@wheezy:~# nano .profile #add this line export PATH=$PATH":$HOME/bin" root@wheezy:~# nano .bash_aliases #add this line export PATH=$PATH":$HOME/bin" #to update root@wheezy:~# . .bash_aliases root@wheezy:~# . .profile root@wheezy:~# mkdir bin root@wheezy:~# ls bin root@wheezy:~# cd bin root@wheezy:~/bin# ls hello root@wheezy:~/bin# cat hello #! /bin/bash # place your bash script in the /root/bin/ # no .sh is needed.... # place #! /bin/bash on the first line echo "Hello! World" root@wheezy:~/bin# root@wheezy:~/bin# cd .. root@wheezy:~/bin# cd .. root@wheezy:/# hello bash: /root/bin/hello: Åtkomst nekas root@wheezy:/# chmod u=rwx,g=rx,o=r /root/bin/hello root@wheezy:/# hello Hello! World root@wheezy:/#

    onsdag 25 mars 2015

    Debian Wheezy - Spotify

    Spotify for Linux

    This is a preview build of Spotify for Linux. As a preview release this version is still unsupported, but we're running it ourselves and will try to make sure it keeps pace with its Mac and Windows siblings.
    So how do you get it? We've packaged it for Debian Squeeze/Ubuntu.

    Debian

    # 1. Add this line to your list of repositories by
    #    editing your /etc/apt/sources.list
    deb http://repository.spotify.com stable non-free
    
    # 2. 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
    
    # 3. Run apt-get update
    sudo apt-get update
    
    # 4. Install spotify!
    sudo apt-get install spotify-client 
     
    #--------------------------------------------------------------------------------------------
    As of this writing the current release of Spotify for Linux is built for Debian Squeeze/Ubuntu. That package is dependant on the libssl0.9.8 while Debian Wheezy has the newer libssl1.0.0 installed. The easy way to fix this would be to install libssl0.9.8 system wide from the Squeeze repository, however I don't like the idea of installing an older package system wide just because Spotify is slow on updating their package for Wheezy. This guide will show you how I worked around this issue, adding libssl0.9.8 only for spotify.
    First try to install Spotify using the guide on the Spotify homepage
    When running the command:
    sudo apt-get install spotify-client
    
    It will complain about libssl0.9.8 not being installed. In order to install the client we need to ignore the dependency, first download the deb file:
    apt-get download spotify-client
    
    Then install some more dependencies and the deb file while ignoring libssl0.9.8:
    sudo apt-get install libqt4-dbus libqt4-network libnspr4-0d
    sudo dpkg --ignore-depends=libssl0.9.8 -i spotify-client_0.9.1.55.gbdd3b79.203-1_amd64.deb
    
    Since we ignore a dependency to install Spotify we need to edit the file /var/lib/dpkg/status in order to be able to install new packages with apt-get, or else apt-get will complain that the dependency is not installed and that you should perform an apt-get -f install, which would remove Spotify since the dependency is not available in the Wheezy repository.
    Open the file /var/lib/dpkg/status and search for spotify-client, under spotify-client find the depends: line and remove the libssl0.9.8 dependency.
    So now we need to download libssl0.9.8 from the Debian package website
    Since I don't want to install the package system wide I only want to extract the files from the package and move them to a suitable path using this command:
    dpkg -x libssl0.9.8_0.9.8o-4squeeze14_amd64.deb /tmp/libssl0.9.8
    sudo mv /tmp/libssl0.9.8/usr/lib /usr/share/spotify/libssl0.9.8
    
    Then in order to start Spotify we need to tell Spotify where to look for the libssl0.9.8 library, this can be done with the LD_LIBRARY_PATH variable:
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/share/spotify/libssl0.9.8 spotify
    
    You can add the above command to a script in order to start Spotify easier:
    1
    2
    3
    4
    #!/bin/bash
    
    # Add libssl0.9.8 path
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/share/spotify/libssl0.9.8 spotify $1
    
    I call the script spotify-starter and place the script in /usr/local/bin.
    Remember to add execution permissions to the spotify-starter script
    sudo chmod +x spotify-starter
    
    Then I edit the Spotify desktop file /usr/share/applications/spotify.desktop and change Exec and TryExec to the following:
    Exec=spotify-starter %U
    TryExec=spotify-starter
    
    Now you should be able to start Spotify either using the desktop shortcut or by running the spotify-starter script.