Linux.com

Istimsak Abdulbasir

Istimsak Abdulbasir

  • Moderator
  • Posts: 586
  • Member Since: 05 Jan 10
  • Last Logged In: 2 days ago

Latest Posts

Posted by
Topic
Post Preview
Posted
  • Istimsak Abdulbasir
    RE: Missing package compiling...
    [quote="chris_crunch"]I'm trying to build DIGITS from the src package I downloaded. But there's a problem... chris@chris-crunch:~/apps/DIGITS/DIGITS-master$ ./digits-server Traceback (most recent call last): File "/usr/local/bin/gunicorn", line 5, in from pkg_resources import load_entry_point File "/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-19.4-py2.7.egg/pkg_resources/__init__.py", line 3130, in File "/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-19.4-py2.7.egg/pkg_resources/__init__.py", line 3116, in _call_aside File "/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-19.4-py2.7.egg/pkg_resources/__init__.py", line 3143, in _initialize_master_working_set File "/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-19.4-py2.7.egg/pkg_resources/__init__.py", line 642, in _build_master File "/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-19.4-py2.7.egg/pkg_resources/__init__.py", line 943, in require File "/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-19.4-py2.7.egg/pkg_resources/__init__.py", line 830, in resolve pkg_resources.DistributionNotFound: The 'gunicorn==17.5' distribution was not found and is required by the application So gunicorn=17.5 isn't found? What's the correct procedure here... [/quote] This may look like a dependency issued. gunicorn is a binary package not on your system. Before you attempted to compile, did you read the documentation or the README first. Most of these source programs do have README files or something that teaches you how to compile. Also, I would research gunicon through a browser to a full understanding of it. For instance, http://gunicorn.org/
    Link to this post 2 days ago

    chris_crunch said:

    I'm trying to build DIGITS from the src package I downloaded. But there's a problem...


    chris@chris-crunch:~/apps/DIGITS/DIGITS-master$ ./digits-server
    Traceback (most recent call last):
    File "/usr/local/bin/gunicorn", line 5, in <module>
    from pkg_resources import load_entry_point
    File "/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-19.4-py2.7.egg/pkg_resources/__init__.py", line 3130, in <module>
    File "/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-19.4-py2.7.egg/pkg_resources/__init__.py", line 3116, in _call_aside
    File "/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-19.4-py2.7.egg/pkg_resources/__init__.py", line 3143, in _initialize_master_working_set
    File "/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-19.4-py2.7.egg/pkg_resources/__init__.py", line 642, in _build_master
    File "/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-19.4-py2.7.egg/pkg_resources/__init__.py", line 943, in require
    File "/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-19.4-py2.7.egg/pkg_resources/__init__.py", line 830, in resolve
    pkg_resources.DistributionNotFound: The 'gunicorn==17.5' distribution was not found and is required by the application


    So gunicorn=17.5 isn't found? What's the correct procedure here...

    This may look like a dependency issued. gunicorn is a binary package not on your system. Before you attempted to compile, did you read the documentation or the README first. Most of these source programs do have README files or something that teaches you how to compile.

    Also, I would research gunicon through a browser to a full understanding of it. For instance, http://gunicorn.org/

  • Istimsak Abdulbasir
    RE: Language
    [quote="abybaby87"]Hi The language changed from English to Spanish, and as a Chrome User, i cant open the LMS window, its possible through Firefox though, but i see Spanish! Regards Abel[/quote] Is everything working as expected?
    Link to this post 2 days ago

    abybaby87 said:

    Hi

    The language changed from English to Spanish, and as a Chrome User, i cant open the LMS window, its possible through Firefox though, but i see Spanish!

    Regards
    Abel

    Is everything working as expected?

  • Istimsak Abdulbasir
    RE: Knowledge check 8.1
    Here is a good article that explains how Linux detects and names devices connected to it. https://www.linux.com/news/hardware/peripherals/180950-udev There are other areas and methods in a Linux systems that will aid tracking down devices connected to your system. We know the first place to check is /dev. Linux does store devices it successfully detects in that directory. However, that is not the only place to located your devices.
    Link to this post 2 days ago

    Here is a good article that explains how Linux detects and names devices connected to it.
    https://www.linux.com/news/hardware/peripherals/180950-udev

    There are other areas and methods in a Linux systems that will aid tracking down devices connected to your system. We know the first place to check is /dev. Linux does store devices it successfully detects in that directory. However, that is not the only place to located your devices.

  • Istimsak Abdulbasir
    RE: Lab 4.1 fake_service.txt
    [quote="FToledano"] As I refer previously, english is not my native language, I want to mean something like this: [url=https://en.wikipedia.org/wiki/Sticky_post#Stickying]Stickying[/url] As is mentioned in other moderation messages, the material corrections can't be done "at the moment" because some reasons, and I only wanted to suggest that a post in the top of the forum showing this issues may be helpfull, something like: [code] Corrections: Lesson ...... Lesson 4 - If you experienced problems with the text showed in LAB 2.1 script code, download it from this site .......... (or whatever you want to explain or correct). Lesson 5 etc. [/code] All people would see this post before read the lesson and to be prevented. As you said, we can post questions in the forum but when I experienced problems trying to run [b]service fake_service start[/b], the first I thinked is that I was doing something wrong even more so when running [b]chkconfig[/b] the [b]fake_service[/b] appears ok and in the correct runlevels. After repeat the process a lot of times and read the lesson again several times I decide to test formating the file with [b]dos2unix[/b] and all works ok. After that I visit the forum to post it, but all was commented in this post. I added my comment yesterday only to show Brucecurcio user that after copy/paste the pdf code and formating the file with [b]dos2unix[/b] utility, [b]service[/b] can read the file without problems. I try not to bother anyone, the sticky post was only a suggestion because the original post with the problem is dated from 2015 summer and the material in the spanish course isn't corrected yet. I thinked (because moderators have said it in others posts) that the correction of the material is not an easy task and this can help. [/quote] Well, if we can created a new thread under this forum category, and update it with new material by editing the original post, it would seem possible. Perhaps an article or blog might be better with permanent link added to this thread.
    Link to this post 3 days ago

    FToledano said:



    As I refer previously, english is not my native language, I want to mean something like this:

    Stickying

    As is mentioned in other moderation messages, the material corrections can't be done "at the moment" because some reasons, and I only wanted to suggest that a post in the top of the forum showing this issues may be helpfull, something like:

    Corrections:
    Lesson ......
    Lesson 4
    - If you experienced problems with the text showed in LAB 2.1 script code, download it from this site .......... (or whatever you want to explain or correct).
    Lesson 5
    etc.

    All people would see this post before read the lesson and to be prevented.

    As you said, we can post questions in the forum but when I experienced problems trying to run service fake_service start, the first I thinked is that I was doing something wrong even more so when running chkconfig the fake_service appears ok and in the correct runlevels. After repeat the process a lot of times and read the lesson again several times I decide to test formating the file with dos2unix and all works ok.

    After that I visit the forum to post it, but all was commented in this post. I added my comment yesterday only to show Brucecurcio user that after copy/paste the pdf code and formating the file with dos2unix utility, service can read the file without problems.

    I try not to bother anyone, the sticky post was only a suggestion because the original post with the problem is dated from 2015 summer and the material in the spanish course isn't corrected yet. I thinked (because moderators have said it in others posts) that the correction of the material is not an easy task and this can help.

    Well, if we can created a new thread under this forum category, and update it with new material by editing the original post, it would seem possible. Perhaps an article or blog might be better with permanent link added to this thread.

  • Istimsak Abdulbasir
    RE: Lab 4.1 fake_service.txt
    [quote="FToledano"]Hi Brucecurcio, I waste 3 hours with this problem. The script code in the link of the 4.1 Lab in the spanish course is also unformated. If a copy/paste of the text in the pdf is performed, service utility throws that the file /etc/init.d/fake_service not exist, but the file is well placed and chkconfig shows the service in the correct runlevels. Some character must be hidden in the text and the file gives errors with service utility. A way to fix the copied text from the pdf is the dos2unix utility. [code]dos2unix name_of_the_corrupted_file[/code] Once the file is well formatted the script runs without problems. Would if be possible for the moderators to write a sticky post in the forum with the corrections to the material on each lesson?. It will be very hepfull. What do you mean by [b]"Sticky[/b] post in this forum"? If you experience a problem with one of your course materials, create a post under the related thread and past the material with all components there. Someone should be able to help as Jerry did. Thanks![/quote]
    Link to this post 4 days ago

    FToledano said:

    Hi Brucecurcio,

    I waste 3 hours with this problem. The script code in the link of the 4.1 Lab in the spanish course is also unformated. If a copy/paste of the text in the pdf is performed, service utility throws that the file /etc/init.d/fake_service not exist, but the file is well placed and chkconfig shows the service in the correct runlevels. Some character must be hidden in the text and the file gives errors with service utility.

    A way to fix the copied text from the pdf is the dos2unix utility.

    dos2unix name_of_the_corrupted_file


    Once the file is well formatted the script runs without problems.

    Would if be possible for the moderators to write a sticky post in the forum with the corrections to the material on each lesson?. It will be very hepfull.

    What do you mean by "Sticky post in this forum"? If you experience a problem with one of your course materials, create a post under the related thread and past the material with all components there. Someone should be able to help as Jerry did.
    Thanks!

  • Istimsak Abdulbasir
    RE: unexpand command not working
    [quote="adriabp"]Hi all, I don't know if I understood the command properly but I thought it was suppose to convert spaces into tabs in a file, here's how I'm using it: [code] [root@localhost people]# cat peoplelist1.txt 23 female Bianca Princeton 50 male George Yale 30 female Karen Harvard 35 male Andrew Berkeley [root@localhost people]# [root@localhost people]# unexpand peoplelist1.txt > peoplelisttab.txt [root@localhost people]# [root@localhost people]# cat peoplelisttab.txt 23 female Bianca Princeton 50 male George Yale 30 female Karen Harvard 35 male Andrew Berkeley [root@localhost people]# [/code][/quote] This command, [b]"unexpand"[/b] is a weird one. After experimenting, I found that if you do not set the number of characters (or spaces) for the tab to jump, the spaces will stick with the default value of 8. Meaning, the tab will be treated as the spacebar. This is what became interesting. I created a test file, wrote two sentences of two words each. After the first word in the sentence, i jumped 3 spaced to the right writing, using the space bar to write the second word. I used [b]"unexpand"[/b] in a terminal with no options. The results were printed to standard output and it looked the same. I even opened the file in gedit. No difference.I played further and used the [b]"-a"[/b] and the [b]"-t"[/b] options. When I set the [b]"-t"[/b] to 1, meaning "move tab 1 character across", the space between the words increased. I opened the file using gedit and again, the spaces were bigger in the file. Moving across the spaces with the arrow keys, it felt as if I was tabbing. Going back to what Matt said, I believe the character number means how many bytes to use to move across the space. So it you use "unexpand" with no options, then you are telling tab to use the 8 characters in a byte to convert the spaces to tabs which you. If you set the [b]"-t"[/b] option to one, you are telling "unexpand" to treat every number of a spaces as a whole byte increasing the space between words. Please correct me if I am wrong. [url=http://linux.die.net/man/1/expand]expand manpage[/url]
    Link to this post 5 days ago

    adriabp said:

    Hi all, I don't know if I understood the command properly but I thought it was suppose to convert spaces into tabs in a file, here's how I'm using it:


    [root@localhost people]# cat peoplelist1.txt
    23 female Bianca Princeton
    50 male George Yale
    30 female Karen Harvard
    35 male Andrew Berkeley
    [root@localhost people]#
    [root@localhost people]# unexpand peoplelist1.txt > peoplelisttab.txt
    [root@localhost people]#
    [root@localhost people]# cat peoplelisttab.txt
    23 female Bianca Princeton
    50 male George Yale
    30 female Karen Harvard
    35 male Andrew Berkeley
    [root@localhost people]#

    This command, "unexpand" is a weird one. After experimenting, I found that if you do not set the number of characters (or spaces) for the tab to jump, the spaces will stick with the default value of 8. Meaning, the tab will be treated as the spacebar. This is what became interesting.

    I created a test file, wrote two sentences of two words each. After the first word in the sentence, i jumped 3 spaced to the right writing, using the space bar to write the second word. I used "unexpand" in a terminal with no options. The results were printed to standard output and it looked the same. I even opened the file in gedit. No difference.I played further and used the "-a" and the "-t" options. When I set the "-t" to 1, meaning "move tab 1 character across", the space between the words increased. I opened the file using gedit and again, the spaces were bigger in the file. Moving across the spaces with the arrow keys, it felt as if I was tabbing.

    Going back to what Matt said, I believe the character number means how many bytes to use to move across the space. So it you use "unexpand" with no options, then you are telling tab to use the 8 characters in a byte to convert the spaces to tabs which you. If you set the "-t" option to one, you are telling "unexpand" to treat every number of a spaces as a whole byte increasing the space between words.

    Please correct me if I am wrong.

    expand manpage

  • Istimsak Abdulbasir
    RE: New to Linux and Having Trouble Getting Started
    [quote="Jrichichi"]I have recently decided to move to Linux and have no experience whatsoever with the software. I have downloaded Mint 17.3 Cinnamon and am having an issue when I go to restart after the installation. Once I restart the machine asks me to remove the disc i used to load mint with and the machine restarts, but doesn't boot/ load. it just sits there black screen cursor blinking at the top left. So i have tried reinstalling three time with the disc and get the same result. Also, once I have completed the install and not yet restarted. If I open Firefox to look through forums, like i am for this post, if i take the disc out of the drive and attempt to go to another web page Firefox crashes and says it must reload. Only when the installation disc is in the drive can i operate the system with no issues. I also encountered a scenario where the computer was stuck on a black screen with the Linux Mint logo in the center and a lock icon with a text box. I assumed this was because i had setup a passkey when installing, but when i attempt to input my passkey/ password nothing appears in the box. Any thoughts???[/quote] Ok, lets just make sure the image burned on the disk is not corrupted. Can to find another machine and try the installation there? In the computer with the black screen and a blinking cursor, press [code]ctrl+alt+fs[/code] This should bring you to a text console. If you are able to get there, there is a problem with the Xserver. If not, then something went wrong with the installation.Try this out then get back to us.
    Link to this post 7 days ago

    Jrichichi said:

    I have recently decided to move to Linux and have no experience whatsoever with the software. I have downloaded Mint 17.3 Cinnamon and am having an issue when I go to restart after the installation. Once I restart the machine asks me to remove the disc i used to load mint with and the machine restarts, but doesn't boot/ load. it just sits there black screen cursor blinking at the top left. So i have tried reinstalling three time with the disc and get the same result. Also, once I have completed the install and not yet restarted. If I open Firefox to look through forums, like i am for this post, if i take the disc out of the drive and attempt to go to another web page Firefox crashes and says it must reload. Only when the installation disc is in the drive can i operate the system with no issues.

    I also encountered a scenario where the computer was stuck on a black screen with the Linux Mint logo in the center and a lock icon with a text box. I assumed this was because i had setup a passkey when installing, but when i attempt to input my passkey/ password nothing appears in the box.

    Any thoughts???

    Ok, lets just make sure the image burned on the disk is not corrupted. Can to find another machine and try the installation there? In the computer with the black screen and a blinking cursor, press

    ctrl+alt+fs

    This should bring you to a text console. If you are able to get there, there is a problem with the Xserver. If not, then something went wrong with the installation.Try this out then get back to us.

  • Istimsak Abdulbasir
    RE: Knowledge check 8.1
    [quote="vam"]Why is video adapter is not listed at /dev? $ ls -l /dev/ati total 0 crw-rw-rw- 1 root root 250, 0 янв. 29 16:05 card0 crw-rw-rw- 1 root root 250, 1 янв. 29 21:55 card1 [/quote] It seems like your video adaptor is listed. [code]/dev/ati[/code] This appears to be a directory of an ati controller that points to two video cards or connections. What I was able to find out, [b]/dev[/b] is a directory that holds files of devices on a linux system. The devices it holds are block, character and special device files. Block devices are devices that store data, character devices are devices that transmit data.Then there are special devices which I am not sure what those are. [b]/dev[/b] is where linux stores files of all devices it detects on the system. If this is not the case, where else would linux keep device files? Perhaps some place we haven't heard yet. This is my opinion, the files in [b]/dev[/b] are not files that can be easily read with a simple text editor. In fact, these device files are actually virtual device links to the actual devices themselves. They are handles for the kernel to access the devices. The drivers of these devices give names and attributes to the kernel. In which case, no driver, or supported driver, no access to the device. [b]lspci[/b] might show the device but not [b]/dev[/b]. There is a script that you can run to make the kernel detect every device in your system and locate them in [b]/dev[/b]. If it exists of course "MAKEDEV". [b]/dev[/b] will not give you the actual name of the device in human readable forms. These names are supplied by the driver for the kernel. It is just a matter of knowing what you are reading. Check out these sources, [url=http://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/dev.html]dev filesystem[/url] [url=http://www.tldp.org/HOWTO/Webcam-HOWTO/dev-intro.html]accessing the video[/url]
    Link to this post 7 days ago

    vam said:

    Why is video adapter is not listed at /dev?

    $ ls -l /dev/ati
    total 0
    crw-rw-rw- 1 root root 250, 0 янв. 29 16:05 card0
    crw-rw-rw- 1 root root 250, 1 янв. 29 21:55 card1


    It seems like your video adaptor is listed.

    /dev/ati

    This appears to be a directory of an ati controller that points to two video cards or connections.

    What I was able to find out, /dev is a directory that holds files of devices on a linux system. The devices it holds are block, character and special device files. Block devices are devices that store data, character devices are devices that transmit data.Then there are special devices which I am not sure what those are. /dev is where linux stores files of all devices it detects on the system. If this is not the case, where else would linux keep device files? Perhaps some place we haven't heard yet.

    This is my opinion, the files in /dev are not files that can be easily read with a simple text editor. In fact, these device files are actually virtual device links to the actual devices themselves. They are handles for the kernel to access the devices.

    The drivers of these devices give names and attributes to the kernel. In which case, no driver, or supported driver, no access to the device. lspci might show the device but not /dev. There is a script that you can run to make the kernel detect every device in your system and locate them in /dev. If it exists of course "MAKEDEV".

    /dev will not give you the actual name of the device in human readable forms. These names are supplied by the driver for the kernel. It is just a matter of knowing what you are reading. Check out these sources,

    dev filesystem

    accessing the video

  • Istimsak Abdulbasir
    RE: When is the course going to be updated again?
    [quote="rchenzheng"]I am wondering because I believe the new exam will include new topics[/quote] I would assume you can check with the institutes that supply the course to check for updated information.
    Link to this post 7 days ago

    rchenzheng said:

    I am wondering because I believe the new exam will include new topics

    I would assume you can check with the institutes that supply the course to check for updated information.

  • Istimsak Abdulbasir
    RE: KC 33.1: No mention of using passwd to lock password
    [quote="NYCJacob"]Is there a difference between locking the account and locking the password?[/quote] I would assume that there would be no difference. After some research, I have come to understand that locking an account keeps a user from logging in no matter what other methods of logging in they try to use, e.g, ssh login. Locking a password keeps the user from logging in using the associated password. However this may not keep them from logging in using other means. So in conclusion, locking an account and locking a password are two different things. Read this forum on CentOS for further details. [url=http://unix.stackexchange.com/questions/109314/two-ways-to-lock-a-password-but-only-one-to-unlock]Two way to lock a unix/linux login account[/url]
    Link to this post 29 Jan

    NYCJacob said:

    Is there a difference between locking the account and locking the password?

    I would assume that there would be no difference. After some research, I have come to understand that locking an account keeps a user from logging in no matter what other methods of logging in they try to use, e.g, ssh login.

    Locking a password keeps the user from logging in using the associated password. However this may not keep them from logging in using other means.

    So in conclusion, locking an account and locking a password are two different things. Read this forum on CentOS for further details.

    Two way to lock a unix/linux login account

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Linux Training / Board