ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. Romo
    • Profile
    • Following 3
    • Followers 2
    • Topics 54
    • Posts 875
    • Groups 0

    Romo

    @Romo

    Seeking for knowledge

    602
    Reputation
    2.7k
    Profile views
    875
    Posts
    2
    Followers
    3
    Following
    Joined
    Last Online
    Age 39
    Location Guadalajara, Mexico

    Romo Unfollow Follow

    Best posts made by Romo

    • RE: What Are You Doing Right Now

      Very happy and proud to share with all of you guys a picture a my new born girl, Dania.

      0_1479168945353_my baby girl.jpg

      posted in Water Closet
      RomoR
      Romo
    • Creating an anonymous samba share in CentOS 7

      Didn't find a how to on the subject in Mangolassi and we were discussing about it in another thread so I decided to create one.

      I started with a CentOS 7.2 minimal install:

      -All commands were run as root.
      -Installing the packages needed.
      yum install samba samba-client samba-common firewalld

      -Enabling and starting firewalld
      systemctl enable firewalld
      systemctl start firewalld

      -Changing to the samba directory, making a backup of the original file and creating a master file which will be turned into our smb.conf file with testparm -s.
      cd /etc/samba/
      mv smb.conf smb.conf.bak
      cp smb.conf.bak smb.conf.master
      vi smb.conf.master

      -While editing our file, in the global parameters we need to add the map to guest = Bad User option and then define our share:

      [sharename]
          path = /chosen/path
          read only = No
          guest ok = Yes
          browseable = Yes 
          public = Yes
      

      -Testing our smb.conf.master file for errors and create smb.conf file if none are found.
      testparm -s smb.conf.master > smb.conf

      The final file should look something like this.

      [global]
          workgroup = MYGROUP
          server string = Samba Server Version %v
          security = USER
          map to guest = Bad User
          log file = /var/log/samba/log.%m
          max log size = 50
          idmap config * : backend = tdb
          cups options = raw
      
      # User defined share 
      [public]
          path = /home/public
          read only = No
          guest ok = Yes
          browseable = Yes 
          public = Yes
      

      No we need to create our share in our filesystem, taking careful consideration of what path we specified in our smb.conf file. In this case I choose to create my share inside home and give it a name of public.
      cd /home
      mkdir public

      We change the owner of the folder and its permissions:
      chown nobody:nobody public/
      chmod 777 public/

      Enabling the needed services and starting them.
      systemctl enable smb.service
      systemctl enable nmb.service
      systemctl restart smb.service
      systemctl restart nmb.service

      Allowing samba through our firewall.
      firewall-cmd --permanent --add-service=samba
      firewall-cmd --reload

      And finally getting SELinux to allow clients to access the share.
      setsebool -P samba_export_all_ro=1 samba_export_all_rw=1
      getsebool –a | grep samba_export
      yum install policycoreutils-python
      semanage fcontext –at samba_share_t "/home/public(/.*)?"
      restorecon /home/public

      You should have a writable anonymous share that can be accessed from your Windows Clients.

      ** Edit
      Checking the ip address of my samba host
      ip addr show

      [root@localhost ~]# ip addr show
      1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
      inet 127.0.0.1/8 scope host lo
         valid_lft forever preferred_lft forever
      inet6 ::1/128 scope host
         valid_lft forever preferred_lft forever
      2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
      link/ether 08:00:27:9f:69:b6 brd ff:ff:ff:ff:ff:ff
      inet 192.168.1.100/24 brd 192.168.1.255 scope global enp0s3
         valid_lft forever preferred_lft forever
      inet6 fe80::a00:27ff:fe9f:69b6/64 scope link
         valid_lft forever preferred_lft forever
      

      The ip address of my samba host is 192.168.1.100. Now we can access the share from our windows pc using \\192.168.1.100\public

      • Verifying our samba share exists in our server

        [root@localhost ~]# smbclient -L 192.168.1.100
        Enter root's password:
        Domain=[MYGROUP] OS=[Windows 6.1] Server=[Samba 4.2.10]
        
          Sharename       Type      Comment
          ---------       ----      -------
          public          Disk
          IPC$            IPC       IPC Service (Samba Server Version 4.2.10)
        
        Domain=[MYGROUP] OS=[Windows 6.1] Server=[Samba 4.2.10]
        
          Server               Comment
          ---------            -------
          LOCALHOST            Samba Server Version 4.2.10
        
          Workgroup            Master
          ---------            -------
          MYGROUP              LOCALHOST
          WORKGROUP            TECHNICOLOR
        

      -We can see samba properly shows our share, it is indeed named public as per our smb.conf file.

      -No we can mount our share in windows
      0_1471413349563_mapping-drive.png

      -Using \\192.168.1.100\public to connect to share
      0_1471413656079_mapping-drive-2.png

      Our share is now properly mounted and available in our Windows PC.

      0_1471413675060_mapping-drive-3.png

      posted in IT Discussion how to linux centos 7.2 samba 4
      RomoR
      Romo
    • RE: What Are You Doing Right Now

      Just finished setting up 60 new linux machines for work. 0_1504135889513_IMG_20170830_140711848.jpg

      posted in Water Closet
      RomoR
      Romo
    • Downloading and installing Starwind VSAN v8 on Hyper-V Server 2016 via powershell

      Downloading the starwind-v8.exe to our Hyper-V host.

      wget "https://url.to.your/file"  -outfile "starwind-v8.exe"
      

      Believe it or not windows sorta has wget, I was not expecting that!!! It really is an alias for Invoke-WebRequest but nevertheless its great having something similiar availble.

      After the download has finalized, just execute the .exe and the tipical windows install gui will pop up.

      .\starwind-v8.exe
      

      No management console install option available since this is a no gui server.
      alt text

      posted in IT Discussion powershell hyper-v server 2016 hyper-v 2016 starwind
      RomoR
      Romo
    • RE: Would You Hire Someone in IT Who Does Not Have a Home Lab

      Since I found out about virtualization I discovered I could always have a lab.

      posted in IT Careers
      RomoR
      Romo
    • RE: What Are You Doing Right Now

      Returning to work after my paternity leave, by the way thank you to everyone sending best wishes for my daughters birth. I didn't have much time to get online last couple of days and respond each one and the notifications have blown up and I can't even see them.

      posted in Water Closet
      RomoR
      Romo
    • Accessing and enabling Powershell Remoting in a workgroup environment

      All steps must be executed on powershell with administrator permissions and ran on target computers as well as connection initiator computers.


      Enabling PS Remoting

      Enable-PSRemoting -Force 
      

      Since this a workgroup setup, we need to configure the TrustedHosts settings on the computers in order to establish proper trusts.

      // if we trust the local lan completely
      Set-Item wsman:\localhost\client\trustedhosts *
      
      // Enabling access to specific hosts via hostname or ip address just pass a comma separated list of hosts 
      Set-Item wsman:\localhost\client\trustedhosts 'hostname1, hostname2 , ipaddress1'
      

      Restart the WinRM server to make changes take effect

      Restart-Service WinRM
      

      Accessing a remote PS Session

      Enter-PSSession -ComputerName  yourTargetHost -Credential yourUser
      

      0_1498584002691_ps-session-credentials.png

      After inserting your credentials the session should be ready! 😃
      0_1498584078409_loggedin-psremote-session.png

      posted in IT Discussion enable-psremoting psremoting powershell powershell remoting windows server windows
      RomoR
      Romo
    • RE: Extract Data from .csv file with Python

      Now that I have some free time, I'll give you a simple example of some of the things you can do using pandas.

      Our dataset will be all the posts in this topic, scraped and saved into an excel file.

      DATASET : pandas-test.xslx
      alt text

      I am going to be using a Jupyter notebook just to make the output clearer.

      $ import pandas
      $ pandas.read_excel('pandas-test.xlsx')
      

      alt text
      That is the whole spreadsheet read and basically printed out, but we can't work with that. We need to read the file into a variable and start working with it.

      # Reading the file to variable df
      $ df = pandas.read_excel('pandas-test.xlsx')
      
      # Printing how many rows and column in the file (rows,columns)
      $ df.shape
      (11,4)
      
      # Printing the column names
      $ df.columns
      Index(['Date', 'Time ', 'User', 'Post'], dtype='object')
      

      Only extracting columns - Date and User

      $ df[['Date', 'User']]
      

      alt text

      Lets check how many posts per day

      $ df.groupby(['Date'])['User'].count()
      

      alt text
      Now lets check by day and time

      $ df.groupby(['Date', 'Time ']).count()
      

      alt text


      Lets filter only your posts and create a new csv file based on the data found.

      $ subset = df.loc[df['User']=='Lakshmana']
      

      alt text

      Create a csv file only containing your posts

      $ subset.to_csv('Lakshmana-posts.csv')
      

      Final results your new csv file with your posts filtered out.

      Lakshmana-posts.csv
      alt text


      EDIT: Just if you need it, an example of filtering by date and user
      alt text

      posted in IT Discussion
      RomoR
      Romo
    • RE: Programming Printers

      So when can I learn how to program printers during my internship, I MUST have this knowledge.

      posted in Developer Discussion
      RomoR
      Romo
    • RE: Looking for Highshool IT Intern

      @Minion-Queen said in Looking for Highshool IT Intern:

      No they really aren't just need to actually want to be involved and actually do it.

      If age is not a problem, I would really love to intern for you guys.

      I have never been an intern =), in Mexico or at least in my state we are required by our Universities to do "servicio social" and/or "prácticas profesionales". If we get lucky they sometimes can be like one of your internships I guess, but most of the time we are doing them in a unrelated area, being treated as free labor (no proper learning experience), turned into the copy/coffee boy/girl or many just pay to get someone to sign their required reports because you work and don't have time for school, work and servicio social.

      I was actually a soccer player that was my paying job from age 13 to 25, so I started pretty late working in IT. I didn't get to have a proper internship (didn't have time my job gave me almost no free time) and my University knowledge wise was really just a waste of time as @scottalanmiller knows.

      I am the sole IT generalist of my current job, I manage a main office with 20 users in a Windows 2008 domain and a remote office with 10 regular users and a small 60 seat call center with 10 of those computers running Ubuntu Mate 15.10, computers are pretty basic only 1gb Of ram we get much better performance with Linux than the windows pcs and we really only use Web Apps so I hope I can migrate the rest to Linux soon.

      Main and remote offices both have kvm vm hosts with md raid 10 on HP ML110 G7 (really envy everyone who gets to play with bigger and proper servers). Small number of vms, AD and file servers, Linux jump boxes with zero tier and Elastix 2.5 vm for IT department (only me) communication (hate our Panasonic and Alcatel pbxs) .Both offices have pfsense firewalls as their default gateways connected with 200/200 Internet providers.

      Basically I am a self learner who really loves IT and Linux. I am eager to keep on learning and building my career in IT. I truly believe being an intern in Ntg would be a great opportunity to advance my knowledge and have some great mentoring. I would really liked to be considered for the position =).

      posted in IT Careers
      RomoR
      Romo

    Latest posts made by Romo

    • RE: No audio at Fanvil PA2S Paging Gateway

      @JasGot why doesn't PJSIP work on them? They should really register just fine using PJSIP. SIP is not supposed to be really anymore on asterisk based systems, its deprecated.

      posted in IT Discussion
      RomoR
      Romo
    • RE: Congrats to Eddie - New Linux Admin

      Congrats @EddieJennings

      posted in IT Careers
      RomoR
      Romo
    • RE: Skyetel is Hiring

      @skyetel By North America only you mean Canada/US/Mexico or just Canada/US?

      posted in Job Postings
      RomoR
      Romo
    • RE: Subnetting

      @wrcombs Classful networking was replaced with CIDR- Classless Inter-Domain Routing, which basically allows you to subnet your network to whatever size you want without really taking into consideration the specific IP ranges that where used before for subnett classes before.

      So as you mention, it is totally find today to use the 10.X.X.X and subnet it to only have 254 hosts in the network when using a 255.255.255.0 mask if that is what you require for network.

      posted in Water Closet
      RomoR
      Romo
    • RE: FreePBX and Uverse

      @syko24 One way audio is a NAT issue, it wouldnt be related to to ISO at all.

      posted in IT Discussion
      RomoR
      Romo
    • RE: Happy Birthday Thread

      Happy Birthday @scottalanmiller !!

      posted in Water Closet
      RomoR
      Romo
    • RE: Phone Outages for February 19, 2021

      6a30a5c4-431f-48ec-88b7-742fe59f1cd8-image.png

      posted in IT Discussion
      RomoR
      Romo
    • RE: FANVIL Deskphone setting for dialing

      @Dashrender The default is Enable Pre-Dial checked.

      posted in IT Discussion
      RomoR
      Romo
    • RE: FANVIL Deskphone setting for dialing

      Try disabling the Predial Feature - Phone Settings -> Features -> Enable Pre-Dial.

      posted in IT Discussion
      RomoR
      Romo
    • RE: FANVIL Deskphone setting for dialing

      They do have the posibility to modify the time to send the call after dialing, i am away from my computer currently but if no else replies before I get back i will get you the screenshot of where the setting is.

      posted in IT Discussion
      RomoR
      Romo