Latest Post

Lesson Objectives   

  • Understanding where images come from
  • Pulling a Docker image from Docker Hub
  • Pushing a Docker image to Docker Hub 

Getting an image from Docker Hub

Docker Hub is the place where open Docker images are stored. When we ran our first image by typing
docker run --rm -p 8787:8787 rocker/verse
the software first checked if this image is available on your computer and since it wasn’t it downloaded the image from Docker Hub. So getting an image from Docker Hub works sort of automatically. If you just want to pull the image but not run it, you can also do
docker pull rocker/verse

Getting an image to Docker Hub

Imagine you made your own Docker image and would like to share it with the world you can sign up for an account on https://hub.docker.com/. After verifying your email you are ready to go and upload your first docker image.
  1. Log in on https://hub.docker.com/
  2. Click on Create Repository.
  3. Choose a name (e.g. verse_gapminder) and a description for your repository and click Create.
  4. Log into the Docker Hub from the command line
    docker login --username=yourhubusername --email=youremail@company.com
    just with your own user name and email that you used for the account. Enter your password when prompted. If everything worked you will get a message similar to
    WARNING: login credentials saved in /home/username/.docker/config.json
    Login Succeeded
  5. Check the image ID using
    docker images
    and what you will see will be similar to
REPOSITORY              TAG       IMAGE ID         CREATED           SIZE
verse_gapminder_gsl     latest    023ab91c6291     3 minutes ago     1.975 GB
verse_gapminder         latest    bb38976d03cf     13 minutes ago    1.955 GB
rocker/verse            latest    0168d115f220     3 days ago        1.954 GB
and tag your image
docker tag bb38976d03cf yourhubusername/verse_gapminder:firsttry
The number must match the image ID and :firsttry is the tag. In general, a good choice for a tag is something that will help you understand what this container should be used in conjunction with, or what it represents. If this container contains the analysis for a paper, consider using that paper’s DOI or journal-issued serial number; if it’s meant for use with a particular version of a code or data version control repo, that’s a good choice too - whatever will help you understand what this particular image is intended for.
  1. Push your image to the repository you created
    docker push yourhubusername/verse_gapminder
Your image is now available for everyone to use.


Saving and loading images

Pushing to Docker Hub is great, but it does have some disadvantages:
  1. Bandwidth - many ISPs have much lower upload bandwidth than download bandwidth.
  2. Unless you’re paying extra for the private repositories, pushing equals publishing.
  3. When working on some clusters, each time you launch a job that uses a Docker container it pulls the container from Docker Hub, and if you are running many jobs, this can be really slow.
Solutions to these problems can be to save the Docker container locally as a a tar archive, and then you can easily load that to an image when needed.
To save a Docker image after you have pulled, committed or built it you use the docker save command. For example, lets save a local copy of the verse_gapminder docker image we made:
docker save verse_gapminder > verse_gapminder.tar
If we want to load that Docker container from the archived tar file in the future, we can use the docker load command:
docker load --input verse_gapminder.tar

As your app expands, you might find it necessary to fetch data from a server, interact with the device's sensors, access local storage, or render complex user interfaces. The versatility of your app demands a comprehensive testing strategy.
When developing a feature iteratively, you start by either writing a new test or by adding cases and assertions to an existing unit test. The test fails at first because the feature isn't implemented yet.
It's important to consider the units of responsibility that emerge as you design the new feature. For each unit, you write a corresponding unit test. Your unit tests should nearly exhaust all possible interactions with the unit, including standard interactions, invalid inputs, and cases where resources aren't available.
Omg ! Technologie Now Disponible For Your Smartphone .
enjoy ..
  


How To Install Oracle JAVA JDK8 On Ubuntu 16.04 / 17.10 / 18.04 Desktops

Oracle JAVA JDK9 was recently released… however, still many more applications and tools rely on JDK version 8 to function… If you’re going to be installing tools like NetBeans and Eclipse to manage your JAVA based projects, you’re still going to need JDK8 installed… that’s because JDK9 isn’t fully supported…
If you need to get JDK8 installed on Ubuntu 16.04 / 17.10 and 18.04, the steps below should be a great place to start…
This post shows students and new users how to get Oracle Java JDK 8 / JRE via PPA on Ubuntu 16.04 / 17.10 / 18.04 desktop computers.
Oracle Java JDK is a development environment for developing applications and tools based on Java. It can also be used for testing applications and program developed using the Java programming language.
There’s also an alternative open source version of JAVA JDK, however, many applications already developed still rely on the Oracle version of the software…
To install Java JDK 8, follow the steps below:

Step 1: Add A Third Party PPA To Ubuntu

The easiest way to install Oracle Java JDK 8 on Ubuntu is via a third party PPA… To add that PPA, run the commands below
sudo add-apt-repository ppa:webupd8team/java
After running the commands above, you should see a prompt to accept the PPA key onto Ubuntu… accept and continue
Continue below to install Java 8…

Step 2: Download Oracle Java 8 Installer

Now that the PPA repository has been added to Ubuntu, run the commands below to download Oracle Java 8 installer…. the installer should install the latest Java JDK 8 on your Ubuntu machines.
sudo apt update
sudo apt install oracle-java8-installer
When you run the commands above you’ll be prompted to access the license terms of the software… accept and continue..
oracle java 9

Step 3: Configure Oracle JDK8 As Default

Set Oracle JDK8 as default, to do that, install the oracle-java8-set-default package. This will automatically set the JAVA env variable.
sudo apt install oracle-java8-set-default
The command above will automatically set Java 8 as the default… and that should complete your installation, you can check you java version by running following command.
javac -version
That’s it! You have successfully installed Oracle Java JDK 8 on Ubuntu 16.04 / 17.10 / 18.04 via PPA




Just days after the historic summit between the US and North Korea the US Department of Homeland Security identifies malicious activity originating from the North Korean Government, this was based on a report released on Thursday.
It would seem there is a new variant of Malware called TypeFrame. The report stated that the malware will be able to install additional malicious programs, proxies and trojans, modify firewalls and connect back to a command and control server. Most malware follow the same pattern, TypeFrame is just the latest version of the malware.
The DHS has issued a new alert due to North Korea’s malicious cyber activity. DHS also pointed out that the nation is trying to hack every other country around the world since 2009. The US also suspects North Korea as  being the source of the WannaCry attack that caused damage to Russia, Ukraine and UK’s National Health Service.
“This malware variant is known as TYPEFRAME,” according to the report by the DHS Computer Emergency Readiness Team, noting that “the US Government refers to malicious cyber activity by the North Korean government as HIDDEN COBRA.”
This is not the first time for the US to blame North Korean Hackers saying they have targeted major nations.
“Since June 2017, DHS and the FBI have publicly released 11 national cyber awareness products associated with North Korean government malicious cyber activity; four joint Technical Alerts (TA) and seven joint Malware Analysis Reports (MAR),” a DHS spokesperson told CNN.
“DHS pursues a model of ‘collective defence’ in cybersecurity, meaning government and industry take collaborative, tangible actions together to mitigate threats and reduce the most serious, enduring and collective strategic cyber risks to the United States and to our international partners,” the spokesperson said.
 

Installing heroku cli on kali linux

Ubuntu , Debian : 


I had tried installing heroku cli on my machine for about two weeks using the commands on https://devcenter.heroku.com/articles/heroku-cli , but all had be in vain.
After a couple of hours searching on stack overflow this morning, I came across this magical commands and thought it is wise sharing it with others.
$ apt-get update
$ heroku update
THIS SHOULD INSTALL HEROKU ON YOUR MACHINE
Or on Kali linux :        
  npm update -g heroku

Or            npm i -g npm





A DHS cyber-security audit for FISMA compliance, conducted by the Office of Inspector General rated the agency below the target levels in three out of five areas of information security.


The Office of Inspector General assessed the information security acts that were in practice by the Department of Homeland Security and found out that the agency was underperforming the expected targets in three out of five areas and so was not up to the mark. Three of these were given a level two while the remaining two got a level four.
This audit was performed following the guidelines of the Federal Information Security Modernization Act, 2014 (FISMA) so as to determine whether the practices and programs of DHS information security program are adequate in keeping the information and information systems secure or not and are there systems something that can be completely relied upon.
Unfortunately, while DHS FISMA scores were being expected to be around Level Four, the DHS cyber-security audit found that this agency only meets two out of the five targets of cyber-security functions.
Of the five functions which are:  Identity, Detect, Protection, Recover and Respond, DHS FISMA scored at Level Four in Identify and Response but at Level Three in Protection, Detect, and Recover.
The OIG report noted that DHS met FISMA compliance for 98% to 99% of systems in DHS headquarters, Coast Guard, and FEMA.
The OIG report reached to the conclusion that because of the FISMA results in the DHS cyber-security audit, an additional oversight and understanding is required for the department to put in all the required effort to improve in making sure that the constituents comply perfectly with the Federal and DHS information security policy.
This how the results can be enhanced and made to reach a level four.

Use Linux on a Samsung device?
Samsung has launched a survey to find out what users want and expect from the Linux on Galaxy idea.
The ‘Linux on Galaxy’ project allows a regular desktop Linux distro to run on select Samsung smartphones by sharing the same Linux kernel used in Android.
Users can then connect their smartphone to a Samsung DeX dock to convert their Samsung smartphone in to a normal desktop PC with an external monitor, bluetooth keyboard, mouse and so on.
‘Samsung want to learn more about how people intend to use Linux on Galaxy devices’
“Linux on Galaxy allows the latest Samsung Galaxy smartphone users to run their preferred Linux distribution on their smartphones utilizing the same Linux kernel that powers the Android OS to ensure the best possible performance,” the project page explains.
The company shared a proof-of-concept video of Ubuntu running on a Samsung Galaxy smartphone last year.
Now Samsung want to learn more about how people intend to use ‘Linux on Galaxy’ devices, the apps they want, and the Linux distro they’d like to run on it.
Take the Samsung ‘Linux on Galaxy’ Survey
In an email sent to those who registered for updates on the project Samsung writes:
“Thank you for showing interest in Linux on Galaxy, and for signing up for information and updates on the project.
“In order to determine how to best design the product to meet your needs, we ask for a moment of your time to complete this Linux on Galaxy Survey.”
If the novel idea — don’t use the ‘c’ word, it’s still too soon — has you interested do take the time to chime in with your thoughts.
You can take the survey at the link below but be aware that the survey will close/vanish at some point, so don’t dawdle!


It’s now even easier to find Snap apps in Ubuntu Software.
The latest stable update to Ubuntu Software in Ubuntu 17.04 (and up) ships with a number of Snap friendly improvements, including spotlighting a selection of Snap apps under the ‘Editor’s Picks‘ section on the home page of the software store app.
‘Featured Snaps’ are mixed in with regular upstream GNOME recommendations. The exact metric(s) that determines which apps snag a spot here isn’t one I know, so if you do please sate my curiosity in the comments!
Not that you’ll be able to tell the Snap apps from the regular archive suggestions — but that’s by design as the backend is not the sell, the app is.
These are the Snap apps listed under editor’s picks

Aside from making it easier for popular Snap apps to be discovered by users launching the Ubuntu Software app the latest stable update also improves the presentation of some Snap app listings in the store itself.
Specifically, Snaps without icons (including CLI tools like Emoj) don’t show up in the ‘Installed‘ section of the app store but do show up in search, creating confusion and making it a little harder to perform software management tasks.
Not so as in the latest release; Snap apps now show up reliably in the appropriate places, as intended.


A new version of KeePassXC, the community-driven fork of password manager KeePassX is out, and it unlocks a boatload of new features.
Janek Bevendorff, announcing the release of KeePassXC 2.2.0, says the update has “lots of new features and bug fixes in a well-rounded release.”
Among those new features you’ll find:
  • Time-based one-time passwords (TOTP) generator
  • Diceware password generator
  • YubiKey challenge-response/2FA support
  • CSV database import
  • Command Line Interface (CLI)
  • Portable mode with the config file residing in the same directory as the application
  • Single-instance mode
  • Extended ascii support in password generator
  • Automatic database locking when you lock your desktop session
  • New welcome screen when no database is loaded
“[KeePassXC] 2.2.0 is by far the biggest KeePassXC release so far and we thank all contributors who have made this amazing release possible,” Bevendorff adds.
KeePassXC is a fork of the password manager app KeePassX, which is itself is a port of the Windows-specific KeePass.

Download & Install KeePassXC on Ubuntu


KeePassXC is available to download and install on Ubuntu and other Linux distributions using a variety of different methods, including an AppImage and Snap app.
The latter of these is the recommended way to install KeePassXC on Ubuntu. You can install the KeePassXC 2.2.0 Snap app through the command line or through Ubuntu Software:


KDE users keen wanting to get a taste of GNOME Shell’s Activities Overview can now do so thanks to a new project.
qOverview is a dashboard “inspired by” GNOME’s Activities. It’s written in QML and has a Python backend, which means it should be able to run on pretty much any modern desktop environment, including KDE Plasma.
Writing on Reddit the project dev, Bharadwaj Raju, explains: “apparently quite a lot of people miss GNOME’s Activities overview in Plasma. I thought I could have a try at making a replacement.”
The Github page for the project says that “every feature of GNOME Activities is provided except drag-and-drop windows to workspaces [and] a more natural layout for the windows”.
A keyboard shortcut can be assigned to trigger qOverview, as can a screen ‘hot corner’, to further emulate the UX model of GNOME Shell.
Want to try it?
It’s still very much early days for the project. To try it out you’ll need to install a stack of dependencies and be comfortable running and configuring the app from the command line.
Regardless of whether you appreciate the intent or not qOverView is nonetheless a great demonstration of the versatility and adaptability of various open-source technologies and desktop environments.

logo
logo rescatux


Description


Rescatux is a GNU/Linux repair cd (and eventually also Windows) but it is not like other rescue disks. Rescatux comes with Rescapp. Rescapp is a nice wizard that will guide you through your rescue and repair tasks.

When the wizard is not able to solve your problem you can also enjoy of Rescatux unique support features:

* Chat: Open the chat for asking help directly in Rescatux channel.
* Share log: After running an option you can share its log (the action registry that it has done) so that in the chat they can help you better. O better, even, you can help debug and fix Rescatux bugs on the fly.
* Share log on forum: Prepares a forum post alike text so that you can just copy and paste it in your favourite forum. Logs are nicely inserted into it with [CODE] symbols.
* Boot Info Script: Run Boot Info Script option to share your computer configuration (specially boot one).

Boot options:
  • (>=0.41 beta 1) Update UEFI order
  • (>=0.41 beta 1) Create a new UEFI Boot entry
  • (>=0.41 beta 1) UEFI Partition Status
  • (>=0.41 beta 1) Fake Microsoft Windows UEFI
  • (>=0.41 beta 1) Hide Microsoft Windows UEFI
  • (>=0.41 beta 1) Reinstall Microsoft Windows EFI
  • (>=0.41 beta 1) Check UEFI Boot
GRUB options:
  • (>=0.40 beta 11) Easy GNU/Linux Boot Fix
  • Restore GRUB and GRUB2
  • (>=0.31 beta 4) Update any GRUB2 menues
  • Update Debian/Ubuntu grub menues
Windows options:                                                                       

  • Restore Windows MBR (BETA)
  • Clear Windows passwords
  • (>=0.31 beta 4) Promote a Windows user to Administrator role
  • (>=0.41 beta 1) Reinstall Microsoft Windows EFI
  • (>=0.31 beta 4) Unlock Windows user
Password options:
  • Change Gnu/Linux Password
  • Regenerate sudoers file
  • Clear Windows passwords

Downloadrescatux-0.41b1.iso



Tutoriel : 


The WinUSB fork we covered a while back was renamed to WoeUSB recently, while also seeing quite a few releases for the past few days.

WoeUSB

WoeUSB / WinUSB is a tool that can be used to create a bootable Windows installer USB stick from an ISO or DVD. The application supports Windows Vista, Windows 7, Windows 8, as well Windows 10, and can be used either with a GUI or from the command line.

As for supported bootmodes, WoeUSB / WinUSB can create a bootable Windows USB installation stick using the following:
  • Legacy / MBR-style / IBM PC compatible bootmode;
  • Native UEFI booting is supported for Windows 7 and later images (with a limitation: only FAT filesystem can be used as the target filesystem).

Since it was forked from Colin Gille's WinUSB, the application has seen a major code refactoring, bug fixes as well as some minor new features. The changes include:
  • support for both wxWidgets 2 and 3;
  • use pkexec instead of gksudo for privilege escalation;
  • UEFI boot support;
  • numerous bug fixes.

Some newer WoeUSB changes include:
  • support customizing the --label of the newly created filesystem in --format mode;
  • implement checking on target filesystem in --install mode;
  • command line: check if target media is busy before continuing and bail out when the target partition is mounted;
  • support Linux distributions that uses "grub2" as prefix name, such as Fedora;
  • --install and --format installation options are deprecated in favor of --partition and --device, to be more clear what both options will do. The old options will still be available until WoeUSB v3.0;
  • from now on, GRUB will pause when the ENTER key is used before starting to load Windows. This is useful if you want to see if there are errors in the GRUB loading stage.

Also, since the application name has changed, the executables have changed as well: "woeusbgui" for the GUI and "woeusb" for the command line tool.

You can see what's new in each new WoeUSB release (there were 13 new releases for the past 2 days) on GitHub.

Despite the major code refactoring and numerous bug fixes, I still encountered an error using the WoeUSB GUI, which I also found in the original WinUSB. When the Windows USB stick is completed, WoeUSB displayed the following message: "Installation failed ! Exit code: 256". This bug was closed on GitHub and it looks like it doesn't affect the actual Windows USB stick in any way. 

In my test, I was able to install Windows 10 64bit in VirtualBox (on an Ubuntu 17.04 host) despite this error.


Install WoeUSB in Ubuntu or Linux Mint via PPA


WoeUSB is available in the main WebUpd8 PPA, for Ubuntu 17.04, 16.10, 16.04 or 14.04 / Linux Mint 18.x or 17.x. To add the PPA and install WoeUSB, use the following commands:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt update
sudo apt install woeusb

Author Name

Haykel Maaoui

Formulaire de contact

Nom

E-mail *

Message *

Fourni par Blogger.