So vim just suddenly started flaking out on me today and I can’t pinpont the problem. Haven’t touch the configuration file and the last thing I worked on before I noticed the problem was updating my sshd_config and sshd_config.pacnew files. What I noticed is that upon opening the sshd_config file …
Tag: linux
Accessing memory pointers in hardware registers
I’m working on enhancing the stock ahci driver provided in Linux in order to perform some needed tasks. I’m at the point of attempting to issue commands to the AHCI HBA for the hard drive to process. However, whenever I do so, my system locks up and reboots. Trying to explain the process of issuin…
Force lshosts command to return megabytes for “maxmem” and “maxswp” parameters
When I type “lshosts” I am given: I am trying to return maxmem and maxswp as megabytes, not gigabytes when lshosts is called. I am trying to send Xilinx ISE jobs to my LSF, however the software expects integer, megabyte values for maxmem and maxswp. By doing debugging, it appears that the software…
Remotely login to Linux using New-SshSession in PowerShell (with a private key) fails with “Invalid private key file”
Am trying to log on to Linux servers from Windows PowerShell using a key with the 3 inputs listed below. I’ve been sent the text for a private key from a colleague and need to know how to implement that. Saving it in a .ppk file hasn’t yielded any results. PowerShell spits out the following in res…
for loop syntax with grep in bash
I want to do text processing for lines in file.txt that ends with 0, I wrote an easy form of it to ask my question clearly. I want the output to be: 1 343 4352 0 432 432 2345 0 I want $i variable to be “1 343 4352 0” and after that to be “432 432 2345 0” but
size and objdump report different sizes for the text segment
I have tried this, but stuck up to the answer below questions where hello_world-1.c is The executed commands: Can anyone please help me to figure out what might be the reasons for the questions below? The size command didn’t list a stack or heap segment for hello_world or hello_world.o. What might be th…
SIZE command in UNIX
The following is my C file: It contains only return statement. But if I use the size command, it shows the output like this: Even though my program does not contain any global variable, or undeclared data. But, the output shows data segment have 252 and the bss have 8 bytes. So, why the output is like this? w…
Bash Array not accepting WildCard
I have an Array that I have setup in a bash script. My goal is to ping through a particular port on a a server with many network interfaces. For example the ping -I eth3 172.26.0.1 command to force ping through eth3 When I setup a bash Array I can get code to work if I call the Elements (ports)
Grant sudo permissions for nrpe to run the check as root
When I run service httpd status like root user I get httpd (pid 2932) is running… which is like expected. Now, when I su nrpe and run the same cmd service httpd status I get httpd dead but subsys locked. I’m kind of new to the Linux world but to me this smells like nrpe doesn’t have the perm…
-bash: laravel: command not found
I have installed the composer and move the composer.phar file to /usr/local/bin just follow the following step: Then I edit my ~/.bash_profile file as following: and save the change and excute: But, when I excute the laravel new test command, it returns an error: PS: in /usr/local/bin directory have no larave…