Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x

Linux OS Dev

Kernel programming for Linux operating systems can be done with many different languages; C, C++, Python, Perl and Java, which are some of the most common languages used.There are also many different varieties of Linux, such as Ubuntu, Fedora and OpenSUSE.

Share tech news, updates, or what's on your mind.

Sign up to Post

I am getting the following error when running make while trying to cross-compile OpenSSL:

make[1]: mips-linuxar: Command not found
Makefile:652: recipe for target 'libcrypto.a' failed
make[1]: *** [libcrypto.a] Error 127
make[1]: Leaving directory '/home/dev/openwrt/package/openssl-1.1.0f'
Makefile:128: recipe for target 'all' failed
make: *** [all] Error 2


From the Makefile:

PLATFORM=linux-generic32
OPTIONS=--cross-compile-prefix=mips-linux no-asan no-crypto-mdebug no-crypto-mdebug-backtrace no-ec_nistp_64_gcc_128 no-egd no-fuzz-afl no-fuzz-libfuzzer no-heartbeats no-md2 no-msan no-rc5 no-sctp no-ssl-trace no-ssl3 no-ssl3-method no-ubsan no-unit-test no-weak-ssl-ciphers no-zlib no-zlib-dynamic
CONFIGURE_ARGS=("linux-generic32", "--cross-compile-prefix=mips-linux")

ARFLAGS=
AR=$(CROSS_COMPILE)ar $(ARFLAGS) r


Line 652
      $(AR) $@ $?

I am new to this. Please tell me how I can make this question more useful.

Thank you.
Makefile
Configure
0
Not sure which OpenStack Certification to get?
Not sure which OpenStack Certification to get?

So you’ve realized you might want to get certified in OpenStack, but you’re not sure what the benefits might be or even which one you should take. You know there are several certification courses you can choose from, but how do you know which one is right for you?

Hello ,

We have suprised on one test. We realize that when an ip address directly sends 1million pps to a server. That server normally working with irq perfectly , it hits to only one core of the server.
Why that happens and how this issue should be over comed.
0
I am getting the following errors when cross compiling aircrack-ng to a MIPS based router:

ld: cannot find -lssl
ld: cannot find -crypto
ld: cannot find -lssp-nonshared
ld: cannot find -lssp

The compilers (c and c++) are producing what I believe are the expected object files:

aircrack-ng.o:      ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped
aircrack-ptw-lib.o: ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped
common.o:           ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped
cpuid.o:            ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped
crypto.o:           ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped
linecount.o:        ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped
uniqueiv.o:         ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped

I am new to Linux and cross compiling.

What do I have to find and where do I  need to put them in order to get further along?

Thank you.
0
Guys,
I saw some script that in our applications server has the gawk.exe with parameter as  below, do anyone here familiar with gawk and mind to explain what is this parameter does ?

gawk.exe "!x[$0]++"
0
I  have a few question for selection of drop policy applied place.

1. Which one first apply the drop rule ?
2. iptables and nftables are user space appliances but i do not know deeper , are they work in kernel space and pipe the requests from user space or are they work completely after kernel space ?
3. Is there any possibility to drop a packet before any kernel space module ,i tryed with netfilter and drop an ip xx.xx.xx.xx and i realize that tcpdump still reading the traffic but iptables not. So the traffic is passing to kernel space still on netfilter.
0
I want to search on below error
java.io.FileNotFoundException:

I want to search on all the weblogic domian directory files and its sub directory files and sub sub directory files?
how to search all the way to great great grad child level?

please advise
0
how can I see all packages that are installed in a Ubuntu instance?

thanks
0
Error: Package: R-core-devel-3.4.0-2.el6.x86_64
           Requires: libicu-devel
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************

--> Running transaction check
---> Package R-core-devel.x86_64 0:3.4.0-2.el6 will be an update
--> Processing Dependency: libicu-devel for package: R-core-devel-3.4.0-2.el6.x86_64
---> Package kernel.x86_64 0:2.6.32-642.11.1.el6 will be erased
--> Finished Dependency Resolution
Error: Package: R-core-devel-3.4.0-2.el6.x86_64
           Requires: libicu-devel
 You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
tomcat6-admin-webapps-6.0.24-98.el6_8.noarch has missing requires of tomcat6 = ('0', '6.0.24', '98.el6_8')
tomcat6-webapps-6.0.24-98.el6_8.noarch has missing requires of tomcat6 = ('0', '6.0.24', '98.el6_8')
0
Hi, please need guidance on how to fix the npm error. Thanks so much in advance.

# rpm --query centos-release
centos-release-6-6.el6.centos.12.2.x86_64

Open in new window


# node --version
v0.10.48

Open in new window


# npm --version

module.js:340
    throw err;
          ^
Error: Cannot find module 'npmlog'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at /usr/lib/node_modules/npm/bin/npm-cli.js:18:11
    at Object.<anonymous> (/usr/lib/node_modules/npm/bin/npm-cli.js:86:3)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)

Open in new window

0
Hi guys.

I wrote a little Bash script (That works together with Some Python Scripts)
to help me manage the number of tickets opened to the system administrators team.

When running the script manually, it works perfectly.

However, when I wrapped it into a service unit and a timer unit, something odd happens.
The script runs - I can see the output in the logs. I can hear the sound alert but I don't see the notify window popping up on the screen.

Here is the bash script:
#!/bin/bash
export DISPLAY=":1"
/usr/bin/kill $(/usr/bin/pidof yad) 2>/dev/null
TTIM=$(/home/david/scripts/tickets.py) # Holds the number of tickets in the mailbox (TIM = Tickets in mailbox)
LTC=$(cat /home/david/scripts/count.txt) #Holds the last ticket count. (LTC = Last Ticket Count)
UTIM=$(/home/david/scripts/utickets.py) # Holds the number of Unread Tickets in the mailbox

if (( $TTIM < $LTC )) # If the number of tickets in the mailbox is lower than the Last Count, update the last count and check for unread mails.
	then
		echo $TTIM >  /home/david/scripts/count.txt
		if ((  UTIM =0 ))
			then
				echo "There are $TTIM in the mailbox COND 1" >> /home/david/scripts/run.log
				/usr/bin/notify-send "There are no new Tickets! There are $TTIM tickets opened!"
				exit 0
		fi
fi
if (( $UTIM > 0 )) #If there are any unread tickets, throw the message anyway!
	then
		echo $TTIM >  /home/david/scripts/count.txt
		/usr/bin/aplay /home/david/scripts/1.wav;
		echo "There are $TTIM in the mailbox 

Open in new window

0
Learn Veeam advantages over legacy backup
LVL 1
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

I have linux application account and  would like to restrict the user to login directly. I want this account to be under sudoers. users can login and sudo into this account. How do i do that in linux?
0
Imagine the following scenario:

A NAS box, providing a samba share, with several versions of a fíle collection in dated directories (name i.e. "2017.05.24").

On the NAS should be some links into subdirectories of the latest version, so the copy script should create symbolic links on the share to the latest version of that file collection.

When I try
ln -s <samba_share/link_name> <samba_share/dated_dir_subdir/>

Open in new window

I get an error that this is not possible. Any hint ?
0
Hi guys,

Although I find it hard to believe that what I'm looking for even exists, I'll still try my luck.

Is there any Linux Based IDE with native support for bash scripting?
(I don't only mean things like syntax highlighting but also auto completion and etc.) and preferably with git support.

Is there anyway to get a compiled bytecode from a bash script? I know about SHC but it doesn't really help becasue reversing it is way to easy - there's already a ready shell script to reverse the SHC compilation called UNSHC.
0
Hi,

what are the best practices and features, options while using grep.

i am using these days to search in log files, files, directories, content etc

When should i give single quote '  '
like
zgrep 'xyz' aaa.gz


When should i give double quote " "
like
zgrep "xyz" aaa.gz


how to use tail and head etc along with grep to effectively monitor last or first 100 lines etc
please advise
0
Hi,

I keep getting below error when i wrote hello.sh shell script file and try to open it to.



Swap file ".hello.sh.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort:



why it created .swp file autoatically?
why it asks above question. How to tell unix not to ask that question.
please advise
0
Hi,
what are differences between
user defined, environmental. local, global variables

when to use which one. what are advanatages, disadvantages of using each with practical examples.
please advise
0
Hi,

I like to write a unix shell script to check calendar year, date, current working directory.

how to write and shave .sh file(Say test.sh) and how to execute to see the output.

Any detailed link explaining these steps with screenshots. please advise
0
Hi,

I like to delete matched pattern in a file using vi editor and sed command

i tried as below not working

$ sed 'hello' aaaa.txt :% aaaa.sh


please advise
0
I am trying to build nodejs from source code.

WARNING: C++ compiler too old, need g++ 4.8 or clang++ 3.4 (CXX=g++)
creating ./icu_config.gypi
* Using ICU in deps/icu-small
Using version-specific floating patch tools/icu/patches/58/source/i18n/digitlst.cpp
creating ./icu_config.gypi
{ 'target_defaults': { 'cflags': [],
                       'default_configuration': 'Release',
                       'defines': [],
                       'include_dirs': [],
                       'libraries': []},
  'variables': { 'asan': 0,
                 'coverage': 'false',
                 'debug_devtools': 'node',
                 'force_dynamic_crt': 0,
                 'gas_version': '2.20',
                 'host_arch': 'x64',
                 'icu_data_file': 'icudt58l.dat',
                 'icu_data_in': '../../deps/icu-small/source/data/in/icudt58l.dat',
                 'icu_endianness': 'l',
                 'icu_gyp_path': 'tools/icu/icu-generic.gyp',
                 'icu_locales': 'en,root',
                 'icu_path': 'deps/icu-small',
                 'icu_small': 'true',
                 'icu_ver_major': '58',
                 'node_byteorder': 'little',
                 'node_enable_d8': 'false',
                 'node_enable_v8_vtunejit': 'false',
                 'node_install_npm': 'true',
                 'node_module_version': 48,
                 'node_no_browser_globals': 'false',
                 'node_prefix': '/usr/local',
   …
0
Quick Start: DOCKER
Quick Start: DOCKER

Sometimes you just need a Quick Start on a topic in order to begin using it.. this is just what you need to know to get up and running with Docker!

I am running redhat linux 6.8

i want to build a new RPM using the source code of nodejs (6.10)

As i am new to RPB build, i am looking for assistance with creating RPM.

https://nodejs.org/en/download/
0
as per the output below i am getting some waiting for an event.  every time it is stuck at poll As i have limited skills in strace, can some one guide me to find the root cause of the slowness.


munmap(0x7f14322fb000, 4096)            = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 5
connect(5, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.x.x.1")}, 16) = 0
poll([{fd=5, events=POLLOUT}], 1, 0)    = 1 ([{fd=5, revents=POLLOUT}])
sendto(5, ">a\1\0\0\1\0\0\0\0\0\0\trhn1-01-c\5myc\2ca\0"..., 36, MSG_NOSIGNAL, NULL, 0) = 36
poll([{fd=5, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=5, revents=POLLOUT}])
sendto(5, "\242:\1\0\0\1\0\0\0\0\0\0\trhn1-01-c\myc\2ca\0"..., 36, MSG_NOSIGNAL, NULL, 0) = 36
poll([{fd=5, events=POLLIN}], 1, 4999



[root@ tmp]# strace -e poll yum repolist
Loaded plugins: product-id, search-disabled-repos, security, subscription-manager
poll([{fd=5, events=POLLIN}], 1, 10)    = 1 ([{fd=5, revents=POLLIN}])
poll([{fd=5, events=POLLOUT}], 1, 0)    = 1 ([{fd=5, revents=POLLOUT}])
poll([{fd=5, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=5, revents=POLLOUT}])
poll([{fd=5, events=POLLIN}], 1, 4999)  = 0 (Timeout)
poll([{fd=6, events=POLLOUT}], 1, 0)    = 1 ([{fd=6, revents=POLLOUT}])
poll([{fd=6, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=6, revents=POLLOUT}])
poll([{fd=6, events=POLLIN}], 1, 4999)  = 1 ([{fd=6, revents=POLLIN}])
poll([{fd=6, events=POLLIN}], 1, 4999)  = 1 ([{fd=6, revents=POLLIN}])
poll([{fd=6, …
0
My  VMware machine is not booting.
"vsd-mount                      [!!]
you have entered the recovery shell. the situation you are in may be recoverable.
if you are able to fix this situation the boot process will continue normally after you exit this terminal
/bin/sh: can't access tty; job control turned off"
0
Hello Folks,

I have a script *.sh That I like to install to few machines (IPs Address), is there anyway anybody can help me write script to do multiples at the same time ?

By the way I'm currently using centos x64

I'd appreciate it and thanks for looking
0
i have some old unix disks that are on 3.5 and i need to access the data on them, i have loaded up linux and hae been trying to load them but to no success have tried
$ mkdir /mnt/floppy
working through this page
https://www.bleepingcomputer.com/tutorials/introduction-to-mounting-filesystems-in-linux/
0
I have the following output i want to write a python code to read only $### and store in a list.

3/14/17
DiningGINO'S PIZZA
Dining ...2121$15.81
Open Drawer3/14/17
DiningBoosty
Dining ...2121$5.65
Open Drawer3/14/17
Tim Hortons Tim Hortons
Dining ...2121$5.60
Open Drawer3/11/17
DiningENCcont
Dining ...2121$8.76
Open Drawer3/11/17
...
output omitted.
0

Linux OS Dev

Kernel programming for Linux operating systems can be done with many different languages; C, C++, Python, Perl and Java, which are some of the most common languages used.There are also many different varieties of Linux, such as Ubuntu, Fedora and OpenSUSE.

Top Experts In
Linux OS Dev
<
Monthly
>